/*
Theme Name: Vanvaew
Theme URI: https://www.vanvaew.com
Author: Vanvaew Content / หจก.ไอเดียล พาร์ทเนอร์ กรุ๊ป
Description: Professional Content & AI Editing Service — บริการเขียนบทความและแก้ไขงาน AI
Version: 2.0.0
License: GNU General Public License v2 or later
Text Domain: vanvaew
*/

@import url('https://fonts.googleapis.com/css2?family=Sarabun:ital,wght@0,300;0,400;0,500;0,600;0,700;1,400&display=swap');

/* ── TOKENS ─────────────────────────────────────── */
:root {
  --navy:        #1a2332;
  --navy-mid:    #243044;
  --navy-light:  #2e3d55;
  --orange:      #e8490f;
  --orange-h:    #d03e0b;
  --orange-light:#fff0eb;
  --teal:        #00897b;
  --teal-light:  #e0f2f1;
  --white:       #ffffff;
  --gray-50:     #f7f8fa;
  --gray-100:    #eef0f3;
  --gray-200:    #dde1e7;
  --gray-400:    #9aa3b0;
  --gray-600:    #5a6478;
  --gray-800:    #2d3748;
  --text:        #1a2332;
  --text-mid:    #4a5568;
  --text-muted:  #718096;

  --font: 'Sarabun', 'Helvetica Neue', sans-serif;
  --r-sm: 6px;
  --r-md: 10px;
  --r-lg: 16px;
  --max-w: 1100px;
  --px: 1.5rem;
  --shadow-sm: 0 1px 4px rgba(0,0,0,0.08);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.10);
}

/* ── RESET ──────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }
img  { max-width: 100%; display: block; }
a    { color: inherit; text-decoration: none; }

body {
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.7;
  color: var(--text);
  background: var(--white);
}

/* ── TYPOGRAPHY ─────────────────────────────────── */
h1 { font-size: clamp(1.75rem, 4vw, 2.6rem); font-weight: 700; line-height: 1.25; }
h2 { font-size: clamp(1.4rem, 3vw, 2rem);    font-weight: 700; line-height: 1.3;  }
h3 { font-size: clamp(1.05rem, 2vw, 1.25rem);font-weight: 600; line-height: 1.4;  }
h4 { font-size: 1rem; font-weight: 600; }
p  { color: var(--text-mid); line-height: 1.8; margin-bottom: 1rem; }
p:last-child { margin-bottom: 0; }

.eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 0.6rem;
}

/* ── LAYOUT ─────────────────────────────────────── */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--px);
}
.section          { padding: 4rem 0; }
.section--gray    { background: var(--gray-50); }
.section--navy    { background: var(--navy); }
.section--white   { background: var(--white); }

/* ── TOP BAR ────────────────────────────────────── */
#top-bar {
  background: var(--navy);
  color: var(--gray-200);
  font-size: 13px;
  padding: 8px var(--px);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}
#top-bar a {
  color: var(--gray-200);
  transition: color .2s;
}
#top-bar a:hover { color: var(--white); }

.top-bar-contact { display: flex; gap: 1.5rem; align-items: center; }

/* ── HEADER / NAV ───────────────────────────────── */
#site-header {
  position: sticky;
  top: 0;
  z-index: 200;
  background: var(--white);
  border-bottom: 1px solid var(--gray-200);
  box-shadow: var(--shadow-sm);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  gap: 1rem;
}

.site-logo {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--navy);
  white-space: nowrap;
  flex-shrink: 0;
}
.site-logo span { color: var(--orange); }

#site-nav ul {
  display: flex;
  gap: 0.25rem;
  list-style: none;
  align-items: center;
}
#site-nav a {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-mid);
  padding: 6px 12px;
  border-radius: var(--r-sm);
  transition: color .2s, background .2s;
  display: block;
}
#site-nav a:hover {
  color: var(--navy);
  background: var(--gray-100);
}

.nav-cta-line {
  background: #06c755 !important;
  color: var(--white) !important;
  border-radius: var(--r-sm) !important;
  font-weight: 600 !important;
}
.nav-cta-line:hover { background: #05b04b !important; }

.nav-cta-primary {
  background: var(--orange) !important;
  color: var(--white) !important;
  border-radius: var(--r-sm) !important;
  font-weight: 600 !important;
}
.nav-cta-primary:hover { background: var(--orange-h) !important; }

/* dropdown */
.has-dropdown { position: relative; }
.dropdown-menu {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  min-width: 220px;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--r-md);
  box-shadow: 0 8px 24px rgba(0,0,0,0.10);
  padding: .5rem 0;
  z-index: 300;
  list-style: none;
}
.dropdown-menu li { border-bottom: none; }
.dropdown-menu a {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 1.25rem;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-mid);
  border-radius: 0;
  white-space: nowrap;
}
.dropdown-menu a:hover {
  background: var(--gray-50);
  color: var(--navy);
}
.has-dropdown:hover .dropdown-menu,
.has-dropdown.open .dropdown-menu { display: block; }
.dropdown-toggle { user-select: none; }

/* hamburger */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  flex-direction: column;
  gap: 5px;
}
.menu-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--navy);
  border-radius: 2px;
  transition: transform .3s, opacity .3s;
}
.menu-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle.open span:nth-child(2) { opacity: 0; }
.menu-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── BUTTONS ─────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font);
  font-size: 15px;
  font-weight: 600;
  padding: 11px 24px;
  border-radius: var(--r-sm);
  border: 2px solid transparent;
  cursor: pointer;
  transition: all .2s;
  line-height: 1;
  text-decoration: none;
}
.btn-primary {
  background: var(--orange);
  color: var(--white);
  border-color: var(--orange);
}
.btn-primary:hover {
  background: var(--orange-h);
  border-color: var(--orange-h);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(232,73,15,0.3);
}
.btn-outline {
  background: transparent;
  color: var(--navy);
  border-color: var(--navy);
}
.btn-outline:hover {
  background: var(--navy);
  color: var(--white);
}
.btn-outline-white {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,0.5);
}
.btn-outline-white:hover {
  background: rgba(255,255,255,0.1);
  border-color: var(--white);
}
.btn-line {
  background: #06c755;
  color: var(--white);
  border-color: #06c755;
}
.btn-line:hover { background: #05b04b; border-color: #05b04b; }
.btn-lg { font-size: 16px; padding: 14px 30px; }
.btn-sm { font-size: 13px; padding: 8px 16px; }
.btn-block { width: 100%; justify-content: center; }

/* ── HERO ─────────────────────────────────────────── */
.hero {
  background: var(--navy);
  padding: 4.5rem 0 4rem;
  position: relative;
  overflow: hidden;
}
.hero::after {
  content: '';
  position: absolute;
  right: -100px; bottom: -100px;
  width: 400px; height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(232,73,15,0.12) 0%, transparent 70%);
  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 3rem;
  align-items: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  color: var(--orange);
  background: rgba(232,73,15,0.12);
  border: 1px solid rgba(232,73,15,0.3);
  padding: 5px 12px;
  border-radius: 20px;
  margin-bottom: 1.25rem;
}

.hero h1 {
  color: var(--white);
  margin-bottom: 1rem;
}
.hero h1 em {
  font-style: normal;
  color: var(--orange);
}

.hero-sub {
  font-size: 16px;
  color: var(--gray-400);
  font-weight: 300;
  margin-bottom: 1.75rem;
  line-height: 1.8;
}

.hero-checks {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 2rem;
}
.hero-check {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 500;
  color: var(--white);
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.12);
  padding: 5px 12px;
  border-radius: 20px;
}
.hero-check::before {
  content: '✓';
  color: var(--orange);
  font-weight: 700;
}

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

/* hero info card */
.hero-card {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--r-lg);
  padding: 1.75rem;
}
.hero-card-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--orange);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.hero-list { list-style: none; }
.hero-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 0.65rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  font-size: 14px;
  color: rgba(255,255,255,0.8);
  font-weight: 300;
}
.hero-list li:last-child { border-bottom: none; }
.hero-list .dot {
  width: 18px; height: 18px;
  border-radius: 50%;
  background: rgba(232,73,15,0.2);
  border: 1px solid rgba(232,73,15,0.4);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; margin-top: 2px;
}
.hero-list .dot::after {
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--orange);
}

/* ── SERVICE CARDS ──────────────────────────────── */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--r-lg);
  padding: 1.75rem;
  position: relative;
  transition: box-shadow .25s, transform .25s, border-color .25s;
}
.card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
  border-color: var(--gray-400);
}
.card.featured {
  border-color: var(--orange);
  border-width: 2px;
}

.card-badge {
  position: absolute;
  top: -1px; left: 1.5rem;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: var(--orange);
  color: var(--white);
  padding: 3px 10px;
  border-radius: 0 0 6px 6px;
}

.card-icon {
  width: 44px; height: 44px;
  background: var(--orange-light);
  border-radius: var(--r-md);
  display: flex; align-items: center; justify-content: center;
  font-size: 20px;
  margin-bottom: 1rem;
}
.card.teal .card-icon { background: var(--teal-light); }

.card h3 { color: var(--navy); margin-bottom: 0.5rem; }

.card p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.75;
  margin-bottom: 1rem;
}

.card-checklist {
  list-style: none;
  margin-bottom: 1.25rem;
}
.card-checklist li {
  display: flex;
  gap: 8px;
  font-size: 13px;
  color: var(--text-mid);
  padding: 3px 0;
}
.card-checklist li::before {
  content: '✓';
  color: var(--orange);
  font-weight: 700;
  flex-shrink: 0;
}

.card-price {
  border-top: 1px solid var(--gray-100);
  padding-top: 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.card-price .label { font-size: 12px; color: var(--text-muted); }
.card-price .amount {
  font-size: 16px;
  font-weight: 700;
  color: var(--navy);
}

/* ── STEPS ──────────────────────────────────────── */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  position: relative;
}
.steps-grid::before {
  content: '';
  position: absolute;
  top: 28px;
  left: calc(12.5% + 28px);
  right: calc(12.5% + 28px);
  height: 1px;
  background: var(--gray-200);
}

.step { text-align: center; position: relative; z-index: 1; }
.step-num {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: var(--white);
  border: 2px solid var(--orange);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--orange);
  margin: 0 auto 1rem;
}
.step h4 { font-size: 15px; margin-bottom: 0.4rem; color: var(--navy); }
.step p { font-size: 13px; color: var(--text-muted); }

/* ── PRICING TABLE ──────────────────────────────── */
.pricing-table {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.pricing-header {
  display: grid;
  grid-template-columns: 1fr 140px 140px;
  background: var(--navy);
  padding: 1rem 1.5rem;
  gap: 1rem;
}
.pricing-header span {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.6);
}
.pricing-header span:not(:first-child) { text-align: right; }

.pricing-row {
  display: grid;
  grid-template-columns: 1fr 140px 140px;
  padding: 1.1rem 1.5rem;
  border-bottom: 1px solid var(--gray-100);
  gap: 1rem;
  align-items: center;
  transition: background .15s;
}
.pricing-row:hover { background: var(--gray-50); }
.pricing-row:last-child { border-bottom: none; }

.p-name {
  font-size: 15px;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 2px;
}
.p-desc { font-size: 13px; color: var(--text-muted); }

.p-price {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--navy);
  text-align: right;
}
.p-unit {
  font-size: 11px;
  font-weight: 400;
  color: var(--text-muted);
  text-align: right;
  display: block;
}

.p-btn { text-align: right; }

/* ── CONTACT ────────────────────────────────────── */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 3.5rem;
  align-items: start;
}

.contact-item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin-bottom: 1.25rem;
}
.contact-item-icon {
  width: 38px; height: 38px;
  border-radius: var(--r-md);
  background: var(--orange-light);
  border: 1px solid rgba(232,73,15,0.2);
  display: flex; align-items: center; justify-content: center;
  font-size: 17px;
  flex-shrink: 0;
}
.contact-item-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 2px;
}
.contact-item-value {
  font-size: 15px;
  font-weight: 500;
  color: var(--navy);
}

/* form */
.vw-form label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--gray-600);
  margin-bottom: 5px;
  letter-spacing: 0.03em;
}
.vw-form input,
.vw-form textarea,
.vw-form select {
  width: 100%;
  background: var(--white);
  border: 1.5px solid var(--gray-200);
  border-radius: var(--r-sm);
  padding: 10px 14px;
  font-family: var(--font);
  font-size: 15px;
  color: var(--navy);
  outline: none;
  transition: border-color .2s, box-shadow .2s;
  margin-bottom: 1.1rem;
  appearance: none;
}
.vw-form input:focus,
.vw-form textarea:focus,
.vw-form select:focus {
  border-color: var(--orange);
  box-shadow: 0 0 0 3px rgba(232,73,15,0.1);
}
.vw-form textarea { min-height: 110px; resize: vertical; }

/* ── FOOTER ─────────────────────────────────────── */
#site-footer {
  background: var(--navy);
}
.footer-top {
  padding: 3rem 0 2.5rem;
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 2.5rem;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.footer-logo {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 0.75rem;
}
.footer-logo span { color: var(--orange); }
.footer-desc {
  font-size: 13px;
  color: rgba(255,255,255,0.45);
  line-height: 1.8;
  font-weight: 300;
  margin-bottom: 1.25rem;
}

.footer-col h5 {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 0.55rem; }
.footer-col a {
  font-size: 14px;
  color: rgba(255,255,255,0.6);
  transition: color .2s;
}
.footer-col a:hover { color: var(--white); }

.footer-bottom {
  padding: 1.25rem 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  font-size: 12px;
  color: rgba(255,255,255,0.35);
}
.footer-bottom a { color: rgba(255,255,255,0.45); transition: color .2s; }
.footer-bottom a:hover { color: var(--white); }

/* ── SECTION HEADING ─────────────────────────────── */
.section-head { margin-bottom: 2.5rem; }
.section-head.center { text-align: center; }
.section-head h2 { color: var(--navy); margin-top: 0.25rem; }
.section-head .divider {
  width: 40px; height: 3px;
  background: var(--orange);
  border-radius: 2px;
  margin-top: 0.75rem;
}
.section-head.center .divider { margin: 0.75rem auto 0; }

/* ── CTA BAND ────────────────────────────────────── */
.cta-band {
  background: var(--navy);
  padding: 4rem 0;
  text-align: center;
}
.cta-band h2 { color: var(--white); margin-bottom: 0.75rem; }
.cta-band p { color: rgba(255,255,255,0.6); font-weight: 300; margin-bottom: 1.75rem; max-width: 500px; margin-left: auto; margin-right: auto; }
.cta-band-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ── UTILITIES ───────────────────────────────────── */
.text-center { text-align: center; }
.text-orange  { color: var(--orange); }
.text-navy    { color: var(--navy); }

/* ── ANIMATIONS ──────────────────────────────────── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}
.fade-up { opacity: 0; animation: fadeUp .55s ease forwards; animation-play-state: paused; }
.d1 { animation-delay: .08s; }
.d2 { animation-delay: .18s; }
.d3 { animation-delay: .28s; }
.d4 { animation-delay: .38s; }

/* ── RESPONSIVE ──────────────────────────────────── */
@media (max-width: 1024px) {
  .footer-top { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 900px) {
  .hero-grid          { grid-template-columns: 1fr; }
  .hero-card          { display: none; }
  .services-grid      { grid-template-columns: 1fr 1fr; }
  .steps-grid         { grid-template-columns: 1fr 1fr; }
  .steps-grid::before { display: none; }
  .contact-grid       { grid-template-columns: 1fr; gap: 2rem; }
  .pricing-header,
  .pricing-row        { grid-template-columns: 1fr auto; }
  .p-btn              { display: none; }
  .pricing-header span:last-child,
  .pricing-row .p-btn { display: none; }
}

@media (max-width: 768px) {
  :root { --px: 1rem; }
  .section { padding: 3rem 0; }
  #top-bar { display: none; }

  /* nav mobile */
  #site-nav {
    display: none;
    position: absolute;
    top: 64px; left: 0; right: 0;
    background: var(--white);
    border-bottom: 1px solid var(--gray-200);
    padding: 0.75rem var(--px) 1rem;
    box-shadow: var(--shadow-md);
  }
  #site-nav.open { display: block; }
  #site-nav ul { flex-direction: column; gap: 0; }
  #site-nav li { border-bottom: 1px solid var(--gray-100); }
  #site-nav a { padding: 12px 4px; font-size: 15px; border-radius: 0; }
  .menu-toggle { display: flex; }

  .services-grid { grid-template-columns: 1fr; }
  .steps-grid    { grid-template-columns: 1fr; }
  .footer-top    { grid-template-columns: 1fr; gap: 1.75rem; }
  .footer-bottom { flex-direction: column; text-align: center; gap: 0.25rem; }

  h1 { font-size: 1.65rem; }
  h2 { font-size: 1.3rem; }
  .btn-lg { font-size: 15px; padding: 13px 22px; }
}
