/* Simify Cars — shared styles for / (EN) and /th (TH) */

:root {
  --navy-900: #0b1b3f;
  --navy-800: #11285c;
  --blue-700: #1e40af;
  --blue-600: #2453c9;
  --blue-50: #eff5ff;
  --orange-500: #f97316;
  --orange-600: #c2410c;
  --green-wa: #25d366;
  --green-line: #06c755;
  --ink: #0f172a;
  --ink-soft: #334155;
  --muted: #5b6b82;
  --border: #dbe4f0;
  --surface: #ffffff;
  --bg: #f6f8fc;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 1px 2px rgba(15, 23, 42, 0.06), 0 8px 24px rgba(15, 23, 42, 0.06);
  --shadow-lg: 0 20px 50px rgba(11, 27, 63, 0.18);
  --font: "Plus Jakarta Sans", "IBM Plex Sans Thai", system-ui, -apple-system, "Segoe UI", sans-serif;
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 80px; }

body {
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }
svg { display: block; }

.icon { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
.icon-sm { width: 18px; height: 18px; }

.container { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 20px; }

:focus-visible { outline: 3px solid var(--orange-500); outline-offset: 2px; border-radius: 6px; }

/* BUTTONS */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 12px 24px;
  border-radius: 999px;
  border: 0;
  font: inherit;
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease;
}

.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn-primary { background: var(--orange-500); color: #1a1205; box-shadow: 0 8px 20px rgba(249, 115, 22, 0.35); }
.btn-primary:hover { background: #fb8a3c; box-shadow: 0 12px 26px rgba(249, 115, 22, 0.4); }
.btn-whatsapp { background: var(--green-wa); color: #062b14; }
.btn-whatsapp:hover { background: #3ee07c; }
.btn-line { background: var(--green-line); color: #032b13; }
.btn-line:hover { background: #2bd774; }
.btn-ghost { background: rgba(255, 255, 255, 0.1); color: #fff; border: 1px solid rgba(255, 255, 255, 0.3); }
.btn-ghost:hover { background: rgba(255, 255, 255, 0.18); }
.btn-lg { min-height: 56px; padding: 14px 30px; font-size: 1.05rem; }

/* HEADER */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(11, 27, 63, 0.94);
  backdrop-filter: saturate(150%) blur(10px);
  -webkit-backdrop-filter: saturate(150%) blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

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

.logo { display: inline-flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; font-weight: 800; font-size: 1.15rem; letter-spacing: -0.01em; }
.logo-mark { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; background: var(--orange-500); color: #1a1205; }

.header-nav { display: flex; align-items: center; gap: 4px; }
.header-nav .nav-link { display: inline-flex; align-items: center; min-height: 44px; color: #c9d5ea; text-decoration: none; font-weight: 600; font-size: 0.95rem; padding: 8px 12px; border-radius: 8px; }
.header-nav .nav-link:hover { color: #fff; background: rgba(255, 255, 255, 0.06); }
.header-nav .btn { min-height: 44px; padding: 8px 18px; font-size: 0.95rem; margin-left: 6px; }

@media (max-width: 760px) {
  .header-nav .hide-sm { display: none; }
  /* The sticky bottom bar carries the CTA on phones */
  .header-nav .btn { display: none; }
}

.logo, .btn { white-space: nowrap; }

/* HERO */
.hero {
  position: relative;
  overflow: hidden;
  color: #fff;
  background:
    radial-gradient(1000px 500px at 85% -10%, rgba(36, 83, 201, 0.55), transparent 60%),
    radial-gradient(700px 400px at -10% 110%, rgba(249, 115, 22, 0.18), transparent 60%),
    linear-gradient(160deg, var(--navy-900) 0%, var(--navy-800) 100%);
  padding: 56px 0 72px;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.07) 1px, transparent 1px);
  background-size: 22px 22px;
  -webkit-mask-image: linear-gradient(to bottom, black, transparent 85%);
  mask-image: linear-gradient(to bottom, black, transparent 85%);
  pointer-events: none;
}

.hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 48px; align-items: center; }

@media (max-width: 900px) {
  .hero { padding: 40px 0 56px; }
  .hero-grid { grid-template-columns: 1fr; gap: 32px; }
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(249, 115, 22, 0.15);
  border: 1px solid rgba(249, 115, 22, 0.4);
  color: #ffc59b;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  margin-bottom: 20px;
}

.hero h1 {
  font-size: clamp(2.1rem, 5.2vw, 3.6rem);
  line-height: 1.1;
  font-weight: 800;
  letter-spacing: -0.025em;
  margin-bottom: 18px;
  text-wrap: balance;
}

html[lang="th"] .hero h1 { line-height: 1.3; letter-spacing: 0; }

.hero h1 .accent { color: var(--orange-500); }

.hero-lead { font-size: clamp(1.05rem, 2.2vw, 1.2rem); color: #c9d5ea; max-width: 560px; margin-bottom: 24px; }

.hero-checks { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 10px 20px; margin-bottom: 30px; max-width: 520px; }
.hero-checks li { display: flex; align-items: center; gap: 10px; font-weight: 600; color: #e6edf8; }
.hero-checks .icon { color: #4ade80; width: 20px; height: 20px; }

@media (max-width: 480px) {
  .hero-checks { grid-template-columns: 1fr; }
  .hero-ctas .btn { width: 100%; }
}

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

/* Hero timeline card */
.timeline-card {
  background: #fff;
  color: var(--ink);
  border-radius: 20px;
  padding: 28px;
  box-shadow: var(--shadow-lg);
}

.timeline-card .card-title { font-size: 1.05rem; font-weight: 800; margin-bottom: 4px; }
.timeline-card .card-sub { font-size: 0.9rem; color: var(--muted); margin-bottom: 16px; }

.timeline { list-style: none; position: relative; }
.timeline::before { content: ""; position: absolute; left: 19px; top: 24px; bottom: 24px; width: 2px; background: var(--border); }
.timeline li { position: relative; display: flex; gap: 14px; padding: 10px 0; }
.timeline .dot { position: relative; z-index: 1; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--blue-50); color: var(--blue-700); flex-shrink: 0; }
.timeline li:last-child .dot { background: #dcfce7; color: #15803d; }
.timeline strong { display: block; font-size: 0.98rem; }
.timeline span { font-size: 0.88rem; color: var(--muted); }

/* TRUST STRIP */
.trust { background: var(--surface); border-bottom: 1px solid var(--border); }
.trust-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.trust-item { padding: 24px 16px; text-align: center; border-left: 1px solid var(--border); }
.trust-item:first-child { border-left: 0; }
.trust-item .num { font-size: 1.6rem; font-weight: 800; color: var(--blue-700); letter-spacing: -0.02em; line-height: 1.25; }
.trust-item .label { font-size: 0.88rem; color: var(--muted); }

@media (max-width: 760px) {
  .trust-grid { grid-template-columns: 1fr 1fr; }
  .trust-item:nth-child(3) { border-left: 0; }
  .trust-item:nth-child(n+3) { border-top: 1px solid var(--border); }
  .trust-item .num { font-size: 1.35rem; }
}

/* SECTIONS */
.section { padding: 80px 0; }
.section-alt { background: var(--surface); }

@media (max-width: 760px) { .section { padding: 56px 0; } }

.section-head { text-align: center; max-width: 660px; margin: 0 auto 44px; }
.section-head .kicker { display: inline-block; font-size: 0.82rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--orange-600); margin-bottom: 10px; }
.section-head h2 { font-size: clamp(1.7rem, 3.6vw, 2.4rem); line-height: 1.2; font-weight: 800; letter-spacing: -0.02em; margin-bottom: 12px; text-wrap: balance; }
.section-head p { color: var(--muted); font-size: 1.05rem; }

/* SITUATIONS */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 900px) { .cards { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .cards { grid-template-columns: 1fr; } }

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: var(--shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.card:hover { transform: translateY(-3px); border-color: #bcd0ee; box-shadow: 0 14px 34px rgba(15, 23, 42, 0.1); }
.card .card-icon { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 12px; background: var(--blue-50); color: var(--blue-700); margin-bottom: 16px; }
.card h3 { font-size: 1.1rem; font-weight: 800; margin-bottom: 8px; }
.card p { color: var(--ink-soft); font-size: 0.96rem; }

/* STEPS */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 760px) { .steps { grid-template-columns: 1fr; } }

.step { background: var(--bg); border-radius: var(--radius); padding: 28px 24px; }
.step-num { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--blue-700); color: #fff; font-weight: 800; font-size: 1.1rem; margin-bottom: 14px; }
.step h3 { font-size: 1.1rem; font-weight: 800; margin-bottom: 6px; }
.step p { color: var(--ink-soft); font-size: 0.96rem; }

/* FORM */
.form-layout { display: grid; grid-template-columns: 1fr 340px; gap: 28px; align-items: start; }
@media (max-width: 900px) { .form-layout { grid-template-columns: 1fr; } }

.form-card { background: var(--surface); border: 1px solid var(--border); border-radius: 20px; padding: 32px; box-shadow: var(--shadow); }
@media (max-width: 600px) { .form-card { padding: 22px 18px; } }

.form-card fieldset { border: 0; margin-bottom: 26px; min-width: 0; }
.form-card legend { display: flex; align-items: center; gap: 10px; font-size: 1.1rem; font-weight: 800; margin-bottom: 14px; padding: 0; }
.badge-num { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--blue-50); color: var(--blue-700); font-size: 0.85rem; }

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 560px) { .form-grid { grid-template-columns: 1fr; } }

.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group.full { grid-column: 1 / -1; }

label { font-size: 0.92rem; font-weight: 700; color: var(--ink-soft); }
label .req { color: var(--orange-600); }
label .opt { color: var(--muted); font-weight: 500; }

input, select, textarea {
  width: 100%;
  min-height: 48px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  font: inherit;
  font-size: 16px;
  color: var(--ink);
  background: #fbfcfe;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
}

input::placeholder, textarea::placeholder { color: #8a97ab; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--blue-600); background: #fff; box-shadow: 0 0 0 4px rgba(36, 83, 201, 0.15); }
input:user-invalid, select:user-invalid { border-color: #dc2626; }
textarea { resize: vertical; min-height: 96px; }

.submit-btn { width: 100%; }
.submit-btn:disabled { background: #cbd5e1; color: #475569; box-shadow: none; cursor: not-allowed; transform: none; }

.form-note { display: flex; align-items: center; justify-content: center; gap: 8px; text-align: center; font-size: 0.86rem; color: var(--muted); margin-top: 12px; }

.form-error { display: none; margin-top: 12px; padding: 12px 14px; border-radius: 10px; background: #fef2f2; border: 1px solid #fecaca; color: #991b1b; font-size: 0.92rem; }
.form-error a { font-weight: 700; }

.success-msg { display: none; text-align: center; padding: 32px 16px; }
.success-msg .success-icon { display: grid; place-items: center; width: 64px; height: 64px; margin: 0 auto 16px; border-radius: 50%; background: #dcfce7; color: #15803d; }
.success-msg .success-icon .icon { width: 32px; height: 32px; }
.success-msg h3 { font-size: 1.3rem; font-weight: 800; margin-bottom: 6px; }
.success-msg p { color: var(--ink-soft); }

.aside-card { background: var(--navy-900); color: #fff; border-radius: 20px; padding: 28px; position: sticky; top: 88px; }
.aside-card h3 { font-size: 1.15rem; font-weight: 800; margin-bottom: 8px; }
.aside-card p { color: #c9d5ea; font-size: 0.95rem; margin-bottom: 18px; }
.aside-card .btn { width: 100%; margin-bottom: 10px; }
.aside-card hr { border: 0; border-top: 1px solid rgba(255, 255, 255, 0.12); margin: 18px 0; }
.aside-card ul { list-style: none; display: grid; gap: 10px; }
.aside-card li { display: flex; gap: 10px; align-items: flex-start; font-size: 0.93rem; color: #e6edf8; }
.aside-card li .icon { color: #4ade80; width: 20px; height: 20px; margin-top: 2px; }

@media (max-width: 900px) { .aside-card { position: static; } }

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* DOCS + WHY */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } }

.panel { background: var(--surface); border: 1px solid var(--border); border-radius: 20px; padding: 32px; box-shadow: var(--shadow); }
@media (max-width: 600px) { .panel { padding: 24px 20px; } }
.panel h2 { font-size: 1.5rem; font-weight: 800; letter-spacing: -0.01em; margin-bottom: 18px; }
.check-list { list-style: none; display: grid; gap: 12px; }
.check-list li { display: flex; gap: 12px; align-items: flex-start; color: var(--ink-soft); }
.check-list .icon { color: var(--blue-700); width: 20px; height: 20px; margin-top: 3px; }
.panel .note { margin-top: 18px; padding: 14px 16px; border-radius: 12px; background: var(--blue-50); font-size: 0.92rem; color: var(--ink-soft); }

.why-list { list-style: none; display: grid; gap: 18px; }
.why-list li { display: flex; gap: 14px; }
.why-list .card-icon { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: #fff3e8; color: var(--orange-600); flex-shrink: 0; }
.why-list strong { display: block; font-size: 1.02rem; }
.why-list span { color: var(--muted); font-size: 0.94rem; }

/* FAQ */
.faq-list { max-width: 780px; margin: 0 auto; display: grid; gap: 12px; }
.faq-list details { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 0 20px; transition: border-color 0.2s ease, box-shadow 0.2s ease; }
.faq-list details[open] { border-color: #bcd0ee; box-shadow: var(--shadow); }
.faq-list summary { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 16px 0; min-height: 56px; font-weight: 700; font-size: 1.02rem; cursor: pointer; list-style: none; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary .icon { color: var(--blue-700); transition: transform 0.2s ease; }
.faq-list details[open] summary .icon { transform: rotate(180deg); }
.faq-list details p { padding: 0 0 18px; color: var(--ink-soft); }

/* FINAL CTA */
.final-cta { background: linear-gradient(135deg, var(--blue-700), var(--navy-900)); color: #fff; border-radius: 24px; padding: 48px 32px; text-align: center; }
@media (max-width: 600px) { .final-cta { padding: 36px 20px; } }
.final-cta h2 { font-size: clamp(1.6rem, 3.4vw, 2.2rem); font-weight: 800; letter-spacing: -0.02em; margin-bottom: 10px; text-wrap: balance; }
.final-cta p { color: #c9d5ea; margin-bottom: 24px; }
.final-cta .ctas { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }

/* FOOTER */
footer { background: var(--navy-900); color: #93a3bd; font-size: 0.9rem; padding: 32px 0 104px; }
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; }
footer a { color: #c9d5ea; }
@media (min-width: 761px) { footer { padding-bottom: 32px; } }

/* MOBILE STICKY BAR */
.mobile-bar { display: none; }

@media (max-width: 760px) {
  .mobile-bar {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 60;
    padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
    background: rgba(255, 255, 255, 0.97);
    border-top: 1px solid var(--border);
    box-shadow: 0 -6px 20px rgba(15, 23, 42, 0.08);
  }
  .mobile-bar .btn { min-height: 48px; padding: 10px 12px; font-size: 0.98rem; }
}

/* REVEAL (only hidden once JS has marked the page, so content never stays invisible) */
.js .reveal { opacity: 0; transform: translateY(12px); transition: opacity 0.4s ease, transform 0.4s ease; }
.js .reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .js .reveal { opacity: 1; transform: none; }
}

/* GUIDES */
.page-hero { background: linear-gradient(160deg, var(--navy-900) 0%, var(--navy-800) 100%); color: #fff; padding: 48px 0 56px; }
.page-hero .crumbs { font-size: 0.88rem; color: #93a3bd; margin-bottom: 14px; }
.page-hero .crumbs a { color: #c9d5ea; text-decoration: none; }
.page-hero .crumbs a:hover { text-decoration: underline; }
.page-hero h1 { font-size: clamp(1.9rem, 4.6vw, 2.9rem); line-height: 1.15; font-weight: 800; letter-spacing: -0.02em; max-width: 820px; text-wrap: balance; }
.page-hero .lead { color: #c9d5ea; font-size: 1.1rem; max-width: 720px; margin-top: 14px; }
.page-hero .meta { color: #93a3bd; font-size: 0.88rem; margin-top: 16px; }

.article-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 40px; align-items: start; padding: 56px 20px 80px; }
@media (max-width: 900px) { .article-layout { grid-template-columns: 1fr; padding-top: 40px; } }

.article { background: var(--surface); border: 1px solid var(--border); border-radius: 20px; padding: 40px; box-shadow: var(--shadow); font-size: 1.05rem; line-height: 1.75; color: var(--ink-soft); }
@media (max-width: 600px) { .article { padding: 26px 20px; } }
.article h2 { color: var(--ink); font-size: 1.5rem; line-height: 1.3; font-weight: 800; letter-spacing: -0.01em; margin: 36px 0 12px; }
.article h2:first-child { margin-top: 0; }
.article h3 { color: var(--ink); font-size: 1.15rem; font-weight: 800; margin: 24px 0 8px; }
.article p { margin-bottom: 16px; }
.article ul, .article ol { margin: 0 0 18px 22px; }
.article li { margin-bottom: 8px; }
.article strong { color: var(--ink); }
.article a { color: var(--blue-700); font-weight: 600; }
.article .callout { margin: 24px 0; padding: 18px 20px; border-radius: 14px; background: var(--blue-50); border-left: 4px solid var(--blue-700); font-size: 0.98rem; }
.article .callout p:last-child { margin-bottom: 0; }

.guide-cta { position: sticky; top: 88px; }
@media (max-width: 900px) { .guide-cta { position: static; } }

.guide-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
@media (max-width: 760px) { .guide-list { grid-template-columns: 1fr; } }
.guide-card { display: block; text-decoration: none; color: inherit; }
.guide-card .more { display: inline-flex; align-items: center; gap: 6px; margin-top: 14px; color: var(--blue-700); font-weight: 700; font-size: 0.95rem; }

.related { margin-top: 32px; }
.related h2 { font-size: 1.2rem; margin: 0 0 12px; }
.related ul { list-style: none; margin: 0; display: grid; gap: 8px; }
.related a { display: flex; align-items: center; gap: 8px; min-height: 44px; }

/* MOBILE TAP TARGETS: small text links get a taller hit area without changing the layout */
.logo { min-height: 44px; }
footer a, .page-hero .crumbs a { display: inline-block; padding: 12px 2px; margin: -12px 0; }
footer p:last-child { line-height: 2.4; }
@media (max-width: 380px) {
  .header-nav .nav-link { padding: 8px 8px; }
  .logo { gap: 8px; font-size: 1.05rem; }
}
.header-nav .nav-link { min-width: 44px; justify-content: center; }
