/* Mobile Car Care — pilot site styles. Mobile-first, no CSS framework. */

:root {
  --color-bg: #ffffff;
  --color-bg-muted: #f4f7fa;
  --color-text: #1a2330;
  --color-text-muted: #4b5768;
  --color-border: #7c8998;
  --color-primary: #0a5f8a;
  --color-primary-dark: #084a6c;
  --color-accent: #b94c12;
  --color-accent-dark: #963b0b;
  --color-focus: #1c7ec4;
  --radius: 10px;
  --wrap-max: 1100px;
  --font-body: "Noto Sans", "Noto Sans Thai", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }

body.nav-open {
  overflow: hidden;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.6;
  font-size: 16px;
}

h1, h2, h3 { line-height: 1.25; font-weight: 700; }
h1 { font-size: clamp(1.75rem, 4vw, 2.5rem); margin: 0 0 0.5em; }
h2 { font-size: clamp(1.35rem, 3vw, 1.75rem); margin: 1.5em 0 0.6em; }
h3 { font-size: 1.15rem; margin: 0 0 0.4em; }
p { margin: 0 0 1em; }
a { color: var(--color-primary); }
a:hover { color: var(--color-primary-dark); }

.wrap {
  max-width: var(--wrap-max);
  margin: 0 auto;
  padding: 0 20px;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--color-primary);
  color: #fff;
  padding: 10px 16px;
  z-index: 1000;
  border-radius: 0 0 8px 0;
}
.skip-link:focus {
  left: 0;
}

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

a:focus-visible, button:focus-visible, input:focus-visible,
select:focus-visible, textarea:focus-visible, summary:focus-visible {
  outline: 3px solid var(--color-focus);
  outline-offset: 2px;
}

/* Header */
.site-header {
  border-bottom: 1px solid var(--color-border);
  background: #fff;
  position: sticky;
  top: 0;
  z-index: 100;
}
.site-header__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  gap: 16px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--color-text);
  font-weight: 700;
  font-size: 1.05rem;
}
.brand__mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: var(--color-primary);
  color: #fff;
  font-size: 0.75rem;
  letter-spacing: 0.02em;
}

.nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  background: #fff;
  cursor: pointer;
}
.nav-toggle__bar,
.nav-toggle__bar::before,
.nav-toggle__bar::after {
  content: "";
  display: block;
  width: 20px;
  height: 2px;
  background: var(--color-text);
  position: relative;
}
.nav-toggle__bar::before { position: absolute; top: -6px; }
.nav-toggle__bar::after { position: absolute; top: 6px; }

.primary-nav {
  display: none;
  position: fixed;
  left: 0; right: 0; top: 65px; bottom: 0;
  background: #fff;
  padding: 16px 20px 24px;
  overflow-y: auto;
  z-index: 90;
  border-top: 1px solid var(--color-border);
}
.primary-nav.is-open { display: block; }
.primary-nav ul {
  list-style: none;
  margin: 0 0 16px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.primary-nav a {
  display: block;
  padding: 10px 4px;
  text-decoration: none;
  color: var(--color-text);
  font-weight: 600;
  border-radius: 6px;
  white-space: nowrap;
}
.primary-nav a:hover { background: var(--color-bg-muted); }
.primary-nav__actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.lang-switch {
  font-weight: 700;
  text-decoration: none;
  padding: 8px 10px;
  border: 1px solid var(--color-border);
  border-radius: 6px;
}

@media (min-width: 1200px) {
  .nav-toggle { display: none; }
  .primary-nav {
    display: flex;
    position: static;
    border: none;
    padding: 0;
    align-items: center;
    gap: 24px;
    flex: 1;
    justify-content: flex-end;
  }
  .primary-nav ul {
    flex-direction: row;
    flex-wrap: wrap;
    row-gap: 6px;
    margin: 0;
    gap: 4px 10px;
  }
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 12px 20px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 700;
  border: 2px solid transparent;
  cursor: pointer;
  font-size: 1rem;
  font-family: inherit;
}
.btn--primary { background: var(--color-accent); color: #fff; }
.btn--primary:hover { background: var(--color-accent-dark); color: #fff; }
.btn--secondary { background: var(--color-primary); color: #fff; }
.btn--secondary:hover { background: var(--color-primary-dark); color: #fff; }
.btn--ghost { background: transparent; border-color: var(--color-primary); color: var(--color-primary); }
.btn--ghost:hover { background: var(--color-bg-muted); }
.btn--large { padding: 14px 26px; font-size: 1.05rem; }
.btn--small { padding: 8px 14px; font-size: 0.9rem; }

/* Layout sections */
.section { padding: 48px 0; }
.section--muted { background: var(--color-bg-muted); }
.section--narrow .wrap { max-width: 720px; }
.section--center { text-align: center; }

.hero {
  padding: 56px 0 48px;
  background: linear-gradient(180deg, #eef6fb 0%, #ffffff 100%);
}
.badge {
  display: inline-block;
  background: #dff0e4;
  color: #1c6b3a;
  font-weight: 700;
  font-size: 0.85rem;
  padding: 6px 12px;
  border-radius: 999px;
  margin-bottom: 14px;
}
.hero__lede { max-width: 640px; color: var(--color-text-muted); font-size: 1.05rem; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 20px; }

.grid { display: grid; gap: 20px; margin-top: 20px; }
.grid--2 { grid-template-columns: 1fr; }
.grid--3 { grid-template-columns: 1fr; }
@media (min-width: 640px) {
  .grid--2 { grid-template-columns: 1fr 1fr; }
  .grid--3 { grid-template-columns: repeat(3, 1fr); }
}

.card {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 22px;
}
.card--audience { background: var(--color-bg-muted); }
.card h3 a { color: var(--color-text); text-decoration: none; }
.card-link { display: inline-block; font-weight: 700; text-decoration: none; margin-top: 6px; }

.step { padding: 4px 0; }
.step h3 { color: var(--color-primary); }

.cta-banner {
  margin-top: 32px;
  padding: 24px;
  background: var(--color-bg-muted);
  border-radius: var(--radius);
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.lede { font-size: 1.05rem; color: var(--color-text-muted); }
.fine-print { font-size: 0.9rem; color: var(--color-text-muted); }
.availability-note { font-weight: 600; }

.check-list, .note-list { padding-left: 1.2em; }
.check-list li { margin-bottom: 0.5em; }
.note-list li { margin-bottom: 0.5em; color: var(--color-text-muted); }

.pill-list { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.pill-list li {
  background: var(--color-bg-muted);
  border: 1px solid var(--color-border);
  border-radius: 999px;
  padding: 6px 14px;
  font-size: 0.92rem;
}

.faq-list { margin-top: 12px; }
.faq-item {
  border: 1px solid var(--color-border);
  border-radius: 8px;
  padding: 12px 16px;
  margin-bottom: 10px;
}
.faq-item summary {
  font-weight: 700;
  cursor: pointer;
}
.faq-item p { margin-top: 10px; margin-bottom: 0; }

.breadcrumbs ol {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 0;
  margin: 0 0 16px;
  font-size: 0.88rem;
  color: var(--color-text-muted);
}
.breadcrumbs li:not(:last-child)::after { content: "›"; margin-left: 6px; }
.breadcrumbs a { color: var(--color-text-muted); }

/* Forms */
.stack-form { margin-top: 24px; max-width: 640px; }
.form-row { margin-bottom: 18px; }
.form-row--split { display: grid; grid-template-columns: 1fr; gap: 16px; }
@media (min-width: 560px) {
  .form-row--split { grid-template-columns: 1fr 1fr; }
}
.form-row label, .form-row legend {
  display: block;
  font-weight: 700;
  margin-bottom: 6px;
}
.form-row input[type="text"],
.form-row input[type="tel"],
.form-row input[type="email"],
.form-row input[type="date"],
.form-row input[type="time"],
.form-row input[type="number"],
.form-row select,
.form-row textarea {
  width: 100%;
  padding: 11px 12px;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  font-size: 1rem;
  font-family: inherit;
  background: #fff;
  color: var(--color-text);
}
.form-row textarea { resize: vertical; }
fieldset.form-row {
  border: 1px solid var(--color-border);
  border-radius: 8px;
  padding: 14px 16px;
}
fieldset.form-row legend { padding: 0 4px; }
.checkbox-grid { display: grid; grid-template-columns: 1fr; gap: 8px; }
@media (min-width: 560px) {
  .checkbox-grid { grid-template-columns: 1fr 1fr; }
}
.checkbox-label, .radio-label {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-weight: 400;
  cursor: pointer;
}
.checkbox-label input, .radio-label input { margin-top: 4px; }
.form-row--consent .checkbox-label span { color: var(--color-text-muted); font-size: 0.94rem; }
.form-required-note { font-size: 0.85rem; color: var(--color-text-muted); }

/* Footer */
.site-footer {
  background: #12202c;
  color: #cdd8e2;
  padding: 40px 0 24px;
  margin-top: 60px;
}
.site-footer a { color: #cdd8e2; }
.site-footer a:hover { color: #fff; }
.site-footer__disclaimer {
  border-bottom: 1px solid #2a3c4c;
  padding-bottom: 20px;
  margin-bottom: 20px;
  font-size: 0.9rem;
}
.site-footer__grid {
  display: grid;
  gap: 24px;
  grid-template-columns: 1fr;
}
@media (min-width: 720px) {
  .site-footer__grid { grid-template-columns: 1.2fr 1fr 1fr; }
}
.site-footer__brand { font-weight: 700; color: #fff; margin-bottom: 6px; }
.site-footer__links { display: flex; flex-direction: column; gap: 6px; }
.site-footer__copyright { margin-top: 28px; font-size: 0.82rem; color: #8ea0b0; }

/* Accessible disclosure navigation; links remain available without JavaScript. */
.brand { flex-shrink: 0; }
.nav-toggle { display: none; }
.primary-nav { display: block; position: static; }
.site-header__row { flex-wrap: wrap; }
.primary-nav { width: 100%; }
.js .nav-toggle { display: inline-flex; }
.js .primary-nav { display: none; }
.js .primary-nav.is-open { display: block; max-height: 70vh; overflow-y: auto; }
@media (min-width: 1200px) {
  .js .nav-toggle { display: none; }
  .primary-nav, .js .primary-nav { display: flex; width: auto; }
}
.primary-nav a.btn--primary { color: #fff; }
.primary-nav a.btn--primary:hover { background: var(--color-accent-dark); }
.form-fields { border: 0; padding: 0; margin: 0; min-width: 0; }
.form-fields:disabled { opacity: .65; }
.honeypot { display: none; }
.form-status, .form-unavailable, .preview-notice { padding: 16px; background: #fff4df; border-radius: 8px; }
.form-status:empty { display: none; }
.preview-notice { margin-top: 16px; }
.form-row .checkbox-label, .form-row .radio-label { display: flex; font-weight: 400; }
button:disabled { cursor: not-allowed; }
input, select, textarea { min-width: 0; }
html { scroll-padding-top: 100px; }
