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

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

/* ── TOKENS ─────────────────────────────────────── */
:root {
  --navy:        #0f172a;
  --navy-mid:    #1e293b;
  --navy-light:  #334155;
  --orange:      #f97316;
  --orange-h:    #ea6c0a;
  --orange-light:#fff7ed;
  --teal:        #0891b2;
  --teal-light:  #e0f2fe;
  --white:       #ffffff;
  --gray-50:     #f8fafc;
  --gray-100:    #f1f5f9;
  --gray-200:    #e2e8f0;
  --gray-400:    #94a3b8;
  --gray-600:    #475569;
  --gray-800:    #1e293b;
  --text:        #0f172a;
  --text-mid:    #334155;
  --text-muted:  #64748b;

  --font: 'Prompt', 'Helvetica Neue', sans-serif;
  --r-sm: 8px;
  --r-md: 14px;
  --r-lg: 20px;
  --r-xl: 28px;
  --max-w: 1100px;
  --px: 1.5rem;
  --shadow-sm: 0 1px 4px rgba(0,0,0,0.07);
  --shadow-md: 0 6px 24px rgba(0,0,0,0.10);
  --shadow-lg: 0 16px 48px rgba(0,0,0,0.13);
}

/* ── 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: 18px;
  line-height: 1.8;
  color: var(--text);
  background: var(--white);
  font-weight: 300;
}

/* ── TYPOGRAPHY ─────────────────────────────────── */
h1 { font-size: clamp(2rem, 4.5vw, 3rem);   font-weight: 700; line-height: 1.25; }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.4rem); font-weight: 700; line-height: 1.3;  }
h3 { font-size: clamp(1.2rem, 2.2vw, 1.5rem); font-weight: 600; line-height: 1.4;  }
h4 { font-size: 1.1rem; font-weight: 600; }
p  { color: var(--text-mid); line-height: 1.9; margin-bottom: 1rem; font-size: 18px; }
p:last-child { margin-bottom: 0; }

.eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.15em;
  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: 5rem 0; }
.section--gray    { background: var(--gray-50); }
.section--navy    { background: var(--navy); }
.section--white   { background: var(--white); }

/* ── TOP BAR ────────────────────────────────────── */
#top-bar {
  background: var(--navy-mid);
  color: var(--gray-400);
  font-size: 14px;
  font-weight: 400;
  padding: 9px var(--px);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}
#top-bar a { color: var(--gray-400); 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: 68px;
  gap: 1rem;
}

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

#site-nav ul {
  display: flex;
  gap: 0.15rem;
  list-style: none;
  align-items: center;
}
#site-nav a {
  font-size: 15px;
  font-weight: 500;
  color: var(--text-mid);
  padding: 7px 13px;
  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: 240px;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--r-md);
  box-shadow: 0 12px 32px rgba(0,0,0,0.12);
  padding: .6rem 0;
  z-index: 300;
  list-style: none;
}
.dropdown-menu li { border-bottom: none; }
.dropdown-menu a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 1.4rem;
  font-size: 15px;
  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: 24px;
  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: 9px;
  font-family: var(--font);
  font-size: 16px;
  font-weight: 600;
  padding: 13px 28px;
  border-radius: var(--r-md);
  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 6px 16px rgba(249,115,22,0.35);
}
.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.4); }
.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: 18px; padding: 16px 34px; }
.btn-sm { font-size: 14px; padding: 9px 18px; }
.btn-block { width: 100%; justify-content: center; }

/* ── HERO ─────────────────────────────────────────── */
.hero {
  background: var(--navy);
  padding: 5rem 0 4.5rem;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: -80px; right: -80px;
  width: 500px; height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(249,115,22,0.10) 0%, transparent 70%);
  pointer-events: none;
}
.hero::after {
  content: '';
  position: absolute;
  bottom: -100px; left: -60px;
  width: 350px; height: 350px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(8,145,178,0.08) 0%, transparent 70%);
  pointer-events: none;
}

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

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 13px;
  font-weight: 600;
  color: var(--orange);
  background: rgba(249,115,22,0.12);
  border: 1px solid rgba(249,115,22,0.3);
  padding: 6px 14px;
  border-radius: 40px;
  margin-bottom: 1.5rem;
  letter-spacing: 0.03em;
}

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

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

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

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

/* hero info card */
.hero-card {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: var(--r-xl);
  padding: 2rem;
}
.hero-card-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--orange);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 1.1rem;
  padding-bottom: 0.85rem;
  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.7rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  font-size: 15px;
  color: rgba(255,255,255,0.8);
  font-weight: 300;
}
.hero-list li:last-child { border-bottom: none; }
.hero-list .dot {
  width: 20px; height: 20px;
  border-radius: 50%;
  background: rgba(249,115,22,0.18);
  border: 1px solid rgba(249,115,22,0.4);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; margin-top: 3px;
}
.hero-list .dot::after {
  content: '';
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--orange);
}

/* ── IMAGE DIVIDER ──────────────────────────────── */
.img-divider {
  width: 100%;
  overflow: hidden;
  border-radius: var(--r-xl);
  margin: 2.5rem 0;
}
.img-divider img { width: 100%; height: 100%; object-fit: cover; }

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

.card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--r-xl);
  padding: 2rem;
  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 7px 7px;
}

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

.card h3 { color: var(--navy); margin-bottom: 0.55rem; }
.card p { font-size: 15px; 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: 9px; font-size: 14px; color: var(--text-mid); padding: 4px 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: 1.1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.card-price .label { font-size: 13px; color: var(--text-muted); }
.card-price .amount { font-size: 17px; 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: 30px;
  left: calc(12.5% + 30px);
  right: calc(12.5% + 30px);
  height: 1px;
  background: var(--gray-200);
}

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

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

.pricing-row {
  display: grid;
  grid-template-columns: 1fr 160px 150px;
  padding: 1.25rem 1.75rem;
  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: 16px; font-weight: 600; color: var(--navy); margin-bottom: 3px; }
.p-desc { font-size: 14px; color: var(--text-muted); }
.p-price { font-size: 1.4rem; font-weight: 700; color: var(--navy); text-align: right; }
.p-unit { font-size: 12px; font-weight: 400; color: var(--text-muted); text-align: right; display: block; }
.p-btn { text-align: right; }

/* ── ABOUT CONTENT ───────────────────────────────── */
.about-content h2 { color: var(--navy); margin-bottom: 1.25rem; }
.about-content p { font-size: 18px; }
.about-content ul { list-style: none; padding: 0; }
.about-content ul li {
  font-size: 17px;
  color: var(--text-mid);
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--gray-100);
  display: flex;
  gap: 10px;
}
.about-content ul li:last-child { border-bottom: none; }
.about-content ul li strong { color: var(--navy); }

/* ── STATS ───────────────────────────────────────── */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  margin: 3rem 0;
}
.stat-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--r-xl);
  padding: 2rem 1rem;
  text-align: center;
}
.stat-val { font-size: 2.2rem; font-weight: 700; color: var(--navy); display: block; margin-bottom: 0.3rem; }
.stat-label { font-size: 14px; color: var(--text-muted); font-weight: 500; }

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

.footer-logo { font-size: 1.35rem; font-weight: 700; color: var(--white); margin-bottom: 0.85rem; }
.footer-logo span { color: var(--orange); }
.footer-desc {
  font-size: 14px;
  color: rgba(255,255,255,0.42);
  line-height: 1.9;
  font-weight: 300;
  margin-bottom: 1.35rem;
}

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

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

/* ── SECTION HEADING ─────────────────────────────── */
.section-head { margin-bottom: 3rem; }
.section-head.center { text-align: center; }
.section-head h2 { color: var(--navy); margin-top: 0.3rem; }
.section-head .divider {
  width: 48px; height: 4px;
  background: linear-gradient(90deg, var(--orange), #fb923c);
  border-radius: 3px;
  margin-top: 1rem;
}
.section-head.center .divider { margin: 1rem auto 0; }

/* ── CTA BAND ────────────────────────────────────── */
.cta-band {
  background: var(--navy);
  padding: 5rem 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-band::before {
  content: '';
  position: absolute;
  top: -60px; right: -60px;
  width: 300px; height: 300px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(249,115,22,0.1) 0%, transparent 70%);
}
.cta-band h2 { color: var(--white); margin-bottom: 0.85rem; }
.cta-band p { color: rgba(255,255,255,0.55); font-weight: 300; margin-bottom: 2rem; max-width: 520px; margin-left: auto; margin-right: auto; font-size: 18px; }
.cta-band-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ── ENTRY CONTENT ───────────────────────────────── */
.entry-content h2 { margin: 2.2rem 0 1.1rem; color: var(--navy); }
.entry-content h3 { margin: 1.75rem 0 0.85rem; color: var(--navy); }
.entry-content p  { margin-bottom: 1.35rem; }
.entry-content ul,
.entry-content ol { padding-left: 1.5rem; margin-bottom: 1.35rem; }
.entry-content li { margin-bottom: 0.5rem; color: var(--text-mid); }
.entry-content img { border-radius: var(--r-lg); margin: 1.75rem 0; }

/* ── CONTACT ────────────────────────────────────── */
.contact-page-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; }

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

/* ── ANIMATIONS ──────────────────────────────────── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
.fade-up { opacity: 0; animation: fadeUp .6s ease forwards; animation-play-state: paused; }
.d1 { animation-delay: .1s; }
.d2 { animation-delay: .2s; }
.d3 { animation-delay: .3s; }
.d4 { animation-delay: .4s; }

/* ── RESPONSIVE ──────────────────────────────────── */
@media (max-width: 1024px) {
  .footer-top { grid-template-columns: 1fr 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 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-page-grid  { grid-template-columns: 1fr; }
  .pricing-header,
  .pricing-row        { grid-template-columns: 1fr auto; }
  .p-btn              { display: none; }
  .pricing-header span:last-child { display: none; }
}

@media (max-width: 768px) {
  :root { --px: 1.1rem; }
  .section { padding: 3.5rem 0; }
  #top-bar { display: none; }
  body { font-size: 17px; }
  p { font-size: 17px; }

  #site-nav {
    display: none;
    position: absolute;
    top: 68px; left: 0; right: 0;
    background: var(--white);
    border-bottom: 1px solid var(--gray-200);
    padding: 0.85rem var(--px) 1.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: 13px 4px; font-size: 16px; border-radius: 0; }
  .menu-toggle { display: flex; }

  .services-grid { grid-template-columns: 1fr; }
  .steps-grid    { grid-template-columns: 1fr; }
  .stats-grid    { grid-template-columns: repeat(2, 1fr); }
  .footer-top    { grid-template-columns: 1fr; gap: 2rem; }
  .footer-bottom { flex-direction: column; text-align: center; gap: 0.3rem; }

  h1 { font-size: 1.9rem; }
  h2 { font-size: 1.55rem; }
  h3 { font-size: 1.25rem; }
  .btn-lg { font-size: 16px; padding: 14px 24px; }
}
