/* ============================================================
   SAHARA DRINK WATER — Design tokens
   Concept: a desert name, an oasis of pure water.
   Palette: sand + clay from the Isaan landscape, cut with a
   deep oasis teal that stands for the water itself.
   ============================================================ */

:root {
  /* color */
  --sand: #E4D9BE;
  --sand-deep: #D8C9A3;
  --paper: #FBF8F1;
  --ink: #241F16;
  --ink-soft: #4B4436;
  --clay: #8B5A2B;
  --clay-deep: #6E4620;
  --oasis: #175C54;
  --oasis-deep: #0F3E38;
  --oasis-tint: #E6EFEC;
  --stone: #A8A296;
  --line: rgba(36, 31, 22, 0.14);

  /* type */
  --font-display: 'Chonburi', serif;
  --font-body: 'Sarabun', system-ui, sans-serif;

  /* layout */
  --wrap: 1180px;
  --radius-s: 6px;
  --radius-m: 14px;
}

/* ============================================================
   Reset & base
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.35;
  margin: 0;
  color: var(--oasis-deep);
}

h2 { font-size: clamp(1.7rem, 1.3rem + 1.6vw, 2.5rem); }
h3 { font-size: 1.15rem; }

p { margin: 0 0 1em; max-width: 62ch; }

a { color: var(--oasis); text-decoration-thickness: 1.5px; text-underline-offset: 3px; }

img, svg { max-width: 100%; display: block; }

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

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--oasis);
  color: var(--paper);
  padding: 12px 20px;
  z-index: 999;
  border-radius: 0 0 var(--radius-s) 0;
}
.skip-link:focus { left: 0; }

:focus-visible {
  outline: 3px solid var(--clay);
  outline-offset: 2px;
}

/* ============================================================
   Buttons
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: var(--radius-s);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  cursor: pointer;
  border: 2px solid transparent;
  transition: transform 0.15s ease, background-color 0.15s ease, border-color 0.15s ease;
}
.btn:hover { transform: translateY(-1px); }

.btn-primary {
  background: var(--oasis);
  color: var(--paper);
}
.btn-primary:hover { background: var(--oasis-deep); }

.btn-ghost {
  background: transparent;
  border-color: var(--oasis);
  color: var(--oasis-deep);
}
.btn-ghost:hover { background: var(--oasis-tint); }

/* ============================================================
   Header
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(251, 248, 241, 0.92);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 28px;
  min-height: 76px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  margin-inline-end: auto;
}

.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-th {
  font-family: var(--font-display);
  font-size: 1.35rem;
  color: var(--oasis-deep);
}
.brand-en {
  font-size: 0.62rem;
  letter-spacing: 0.08em;
  color: var(--stone);
}

.main-nav ul {
  list-style: none;
  display: flex;
  gap: 28px;
  margin: 0;
  padding: 0;
}
.main-nav a {
  color: var(--ink-soft);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.98rem;
  padding: 6px 2px;
  border-bottom: 2px solid transparent;
  transition: border-color 0.15s ease, color 0.15s ease;
}
.main-nav a:hover { color: var(--oasis-deep); border-color: var(--clay); }

.nav-cta { white-space: nowrap; }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  cursor: pointer;
}
.nav-toggle span {
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.nav-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============================================================
   Hero
   ============================================================ */
.hero {
  position: relative;
  background: var(--sand);
  padding-top: 64px;
  overflow: hidden;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 40px;
  align-items: center;
  padding-bottom: 90px;
}

.hero-kicker {
  font-family: var(--font-body);
  font-weight: 600;
  color: var(--clay-deep);
  margin-bottom: 14px;
  font-size: 0.98rem;
}

.hero h1 {
  font-size: clamp(2.1rem, 1.6rem + 2.4vw, 3.4rem);
  margin-bottom: 22px;
}

.hero-lede {
  font-size: 1.08rem;
  color: var(--ink-soft);
  max-width: 52ch;
}

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

.hero-figure { position: relative; }
.dune-art { width: 100%; height: auto; }

.section-wave {
  display: block;
  width: 100%;
  height: 60px;
  position: relative;
  margin-top: -2px;
}

/* ============================================================
   Section shared
   ============================================================ */
section { padding: 96px 0; }

.section-head { max-width: 640px; margin-bottom: 52px; }
.eyebrow-plain {
  font-weight: 600;
  color: var(--clay-deep);
  margin-bottom: 10px;
  font-size: 0.98rem;
}
.section-lede { color: var(--ink-soft); }

/* ============================================================
   Services / process
   ============================================================ */
.services { background: var(--paper); }

.process {
  list-style: none;
  margin: 0 0 64px;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0;
  position: relative;
}

.process::before {
  content: "";
  position: absolute;
  top: 22px;
  left: 6%;
  right: 6%;
  height: 2px;
  background: repeating-linear-gradient(to right, var(--stone) 0 8px, transparent 8px 16px);
}

.process-step {
  position: relative;
  padding: 0 16px;
  border-inline-start: none;
}

.step-num {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--oasis);
  color: var(--paper);
  font-family: var(--font-display);
  font-size: 1.1rem;
  margin-bottom: 18px;
  position: relative;
  z-index: 1;
}

.process-step h3 { font-size: 1.02rem; margin-bottom: 8px; color: var(--ink); }
.process-step p { font-size: 0.92rem; color: var(--ink-soft); margin-bottom: 0; }

.service-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.service-card {
  background: var(--oasis-tint);
  border-radius: var(--radius-m);
  padding: 28px 24px;
}
.card-icon { width: 40px; height: 40px; margin-bottom: 18px; }
.service-card h3 { margin-bottom: 8px; }
.service-card p { font-size: 0.94rem; color: var(--ink-soft); margin-bottom: 0; }

/* ============================================================
   About
   ============================================================ */
.about { background: var(--sand); }

.about-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: start;
}

.about-copy p { color: var(--ink-soft); }

.fact-strip {
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
  overflow: hidden;
}

.fact {
  background: var(--paper);
  padding: 22px 24px;
}
.fact dt {
  font-size: 0.82rem;
  color: var(--clay-deep);
  font-weight: 600;
  margin-bottom: 6px;
}
.fact dd { margin: 0; font-size: 0.98rem; }
.fact-en { font-size: 0.78rem; color: var(--stone); }

.status-dot {
  display: inline-block;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--oasis);
  margin-inline-end: 8px;
}

/* ============================================================
   Portfolio
   ============================================================ */
.portfolio { background: var(--paper); }

.bottle-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.bottle-card {
  text-align: center;
  padding: 32px 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
}
.bottle-svg { width: 84px; margin: 0 auto 20px; }
.bottle-card h3 { margin-bottom: 8px; }
.bottle-card p { font-size: 0.9rem; color: var(--ink-soft); margin-bottom: 0; }

/* ============================================================
   FAQ
   ============================================================ */
.faq { background: var(--sand); }
.faq-inner { max-width: 800px; }

.accordion-item {
  border-bottom: 1px solid var(--line);
}
.accordion-item h3 { margin: 0; font-family: var(--font-body); font-size: 1rem; }

.accordion-trigger {
  width: 100%;
  text-align: start;
  background: none;
  border: none;
  padding: 22px 4px;
  font-family: var(--font-body);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.accordion-trigger::after {
  content: "+";
  font-family: var(--font-display);
  font-size: 1.4rem;
  color: var(--oasis);
  flex-shrink: 0;
  transition: transform 0.2s ease;
}
.accordion-trigger[aria-expanded="true"]::after {
  content: "−";
}

.accordion-panel {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.25s ease;
}
.accordion-panel p {
  padding: 0 4px 22px;
  color: var(--ink-soft);
  margin: 0;
}

/* ============================================================
   Contact
   ============================================================ */
.contact { background: var(--paper); }

.contact-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: start;
}

.contact-details {
  list-style: none;
  margin: 28px 0;
  padding: 0;
  display: grid;
  gap: 18px;
}
.contact-details li { display: grid; gap: 4px; }
.contact-label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--clay-deep);
}

.map-frame {
  border-radius: var(--radius-m);
  overflow: hidden;
  border: 1px solid var(--line);
  aspect-ratio: 4 / 3;
}
.map-frame iframe { width: 100%; height: 100%; border: 0; }

.contact-form {
  background: var(--oasis-tint);
  border-radius: var(--radius-m);
  padding: 36px;
}
.contact-form h3 { margin-bottom: 22px; }

.field { margin-bottom: 18px; }
.field label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--ink-soft);
}
.field input, .field textarea {
  width: 100%;
  font-family: var(--font-body);
  font-size: 1rem;
  padding: 12px 14px;
  border: 1px solid var(--stone);
  border-radius: var(--radius-s);
  background: var(--paper);
  color: var(--ink);
}
.field input:focus, .field textarea:focus {
  border-color: var(--oasis);
}
.field textarea { resize: vertical; }

.form-submit { width: 100%; margin-top: 6px; }
.form-note {
  margin: 14px 0 0;
  font-size: 0.9rem;
  color: var(--oasis-deep);
  min-height: 1.2em;
}

/* ============================================================
   Footer
   ============================================================ */
.site-footer {
  background: var(--oasis-deep);
  color: var(--sand);
}
.footer-inner {
  display: grid;
  grid-template-columns: 1.2fr 1.6fr 1.2fr;
  gap: 32px;
  padding: 56px 24px 40px;
  border-bottom: 1px solid rgba(228, 217, 190, 0.18);
}
.footer-brand .brand-th {
  font-family: var(--font-display);
  font-size: 1.3rem;
  color: var(--sand);
}
.footer-brand p { color: rgba(228, 217, 190, 0.75); font-size: 0.92rem; margin-top: 10px; }

.footer-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}
.footer-nav a {
  color: rgba(228, 217, 190, 0.85);
  text-decoration: none;
  font-size: 0.95rem;
}
.footer-nav a:hover { color: var(--paper); }

.footer-address {
  color: rgba(228, 217, 190, 0.75);
  font-size: 0.92rem;
  margin: 0;
}

.footer-bottom {
  padding: 20px 24px;
  font-size: 0.85rem;
  color: rgba(228, 217, 190, 0.6);
}

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 980px) {
  .hero-inner { grid-template-columns: 1fr; padding-bottom: 60px; }
  .hero-figure { order: -1; max-width: 320px; margin: 0 auto; }
  .process { grid-template-columns: repeat(3, 1fr); row-gap: 36px; }
  .process::before { display: none; }
  .service-cards { grid-template-columns: repeat(2, 1fr); }
  .about-inner { grid-template-columns: 1fr; }
  .bottle-row { grid-template-columns: repeat(2, 1fr); }
  .contact-inner { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .main-nav, .nav-cta { display: none; }
  .nav-toggle { display: flex; }

  .site-header.nav-open .main-nav {
    display: block;
    position: absolute;
    top: 76px;
    left: 0;
    right: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    padding: 12px 24px 24px;
  }
  .site-header.nav-open .main-nav ul {
    flex-direction: column;
    gap: 4px;
  }
  .site-header.nav-open .main-nav a {
    display: block;
    padding: 12px 4px;
  }
  section { padding: 64px 0; }
  .process { grid-template-columns: 1fr 1fr; }
  .fact-strip { grid-template-columns: 1fr; }
}
