/* ==========================================================
   Katkot Herbal – stylesheet
   Mobile first: base styles are for phones, the
   @media (min-width: ...) blocks add layout for bigger screens.
   ========================================================== */

/* ---------- 1. Design tokens (colours, fonts, spacing) ---------- */
:root {
  --green-900: #163a21;   /* deep green from the logo */
  --green-700: #22552f;
  --green-100: #e4ede3;
  --brown-700: #6b3f22;   /* warm brown from his robe */
  --gold-500: #b8892f;    /* poster gold, used sparingly */
  --cream-50: #fbf8f1;    /* page background */
  --cream-100: #f3ecdd;
  --ink-900: #1d1d1b;     /* main text */
  --ink-600: #4a4a45;     /* secondary text */
  --white: #ffffff;
  --whatsapp: #1d8f4e;    /* darker than WhatsApp's brand green so white text passes contrast */

  --font-heading: Georgia, "Times New Roman", serif;
  --font-body: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;

  --radius: 12px;
  --gutter: 16px;
  --max-width: 1080px;
  --shadow: 0 2px 10px rgba(22, 58, 33, 0.08);
}

/* ---------- 2. Base ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink-900);
  background: var(--cream-50);
  /* room for the fixed WhatsApp bar on phones */
  padding-bottom: 76px;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

h1,
h2,
h3 {
  font-family: var(--font-heading);
  color: var(--green-900);
  line-height: 1.2;
  margin: 0 0 0.5em;
}

h1 { font-size: clamp(2rem, 7vw, 3.1rem); }
h2 { font-size: clamp(1.6rem, 5vw, 2.1rem); }
h3 { font-size: 1.25rem; }

p { margin: 0 0 1em; }

a { color: var(--green-700); }
a:hover { color: var(--brown-700); }

:focus-visible {
  outline: 3px solid var(--gold-500);
  outline-offset: 3px;
}

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.skip-link {
  position: absolute;
  left: -9999px;
}
.skip-link:focus {
  left: var(--gutter);
  top: var(--gutter);
  z-index: 100;
  background: var(--white);
  padding: 8px 12px;
  border-radius: 6px;
}

/* ---------- 3. Header and navigation ---------- */
.site-header {
  background: var(--white);
  border-bottom: 1px solid var(--cream-100);
  position: sticky;
  top: 0;
  z-index: 50;
}

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

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--green-900);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.15rem;
}
.brand img {
  width: 44px;
  height: 40px;
  object-fit: contain;
}

.menu-toggle {
  background: none;
  border: 2px solid var(--green-900);
  border-radius: 8px;
  color: var(--green-900);
  font: inherit;
  font-weight: 600;
  padding: 6px 12px;
  cursor: pointer;
}

.main-nav {
  display: none;               /* hidden on phones until the menu button is pressed */
}
.main-nav.is-open {
  display: block;
  position: absolute;
  top: 64px;
  left: 0;
  right: 0;
  background: var(--white);
  border-bottom: 1px solid var(--cream-100);
  box-shadow: var(--shadow);
}
.main-nav ul {
  list-style: none;
  margin: 0;
  padding: 8px var(--gutter) 16px;
}
.main-nav a {
  display: block;
  padding: 12px 4px;
  text-decoration: none;
  color: var(--ink-900);
  font-weight: 600;
  border-bottom: 1px solid var(--cream-100);
}
.main-nav a[aria-current="page"] {
  color: var(--green-700);
}

/* Language switcher (EN / ES / FR), a second small list inside the main nav.
   On phones it sits as its own row under the page links; on bigger screens
   the nav becomes a flex row (see the tablet breakpoint below) and it sits
   beside them instead. */
.main-nav .lang-switch {
  display: flex;
  gap: 8px;
  list-style: none;
  margin: 8px 0 0;
  padding: 8px var(--gutter) 0;
  border-top: 1px solid var(--cream-100);
  font-size: 0.85rem;
}
.main-nav .lang-switch a,
.main-nav .lang-switch .lang-current {
  display: inline-block;
  padding: 4px 8px;
  border-radius: 6px;
  font-weight: 700;
  color: var(--ink-900);
  text-decoration: none;
}
.main-nav .lang-switch .lang-current {
  color: var(--green-700);
}

/* ---------- 4. Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;            /* big enough to tap with a thumb */
  padding: 12px 22px;
  border-radius: 999px;
  font-weight: 700;
  text-decoration: none;
  border: 2px solid transparent;
  text-align: center;
}
.btn svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}
.btn-whatsapp {
  background: var(--whatsapp);
  color: var(--white);
}
.btn-whatsapp:hover {
  background: #177540;
  color: var(--white);
}
.btn-outline {
  background: transparent;
  color: var(--green-900);
  border-color: var(--green-900);
}
.btn-outline:hover {
  background: var(--green-900);
  color: var(--white);
}
.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* Fixed WhatsApp bar along the bottom of phone screens */
.mobile-cta {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 60;
  padding: 10px var(--gutter);
  background: var(--white);
  border-top: 1px solid var(--cream-100);
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.06);
}
.mobile-cta .btn {
  width: 100%;
}

/* ---------- 5. Hero (top of the home page) ---------- */
.hero {
  background: var(--green-900);
  color: var(--white);
}
.hero-inner {
  display: grid;
  gap: 24px;
  padding-top: 32px;
  padding-bottom: 40px;
}
.hero h1 {
  color: var(--white);
}
.hero .eyebrow {
  color: #e6c98a;
}
.hero p {
  color: #e8efe7;
  font-size: 1.125rem;
}
.hero .btn-outline {
  color: var(--white);
  border-color: var(--white);
}
.hero .btn-outline:hover {
  background: var(--white);
  color: var(--green-900);
}
.hero-photo {
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4 / 5;
  max-height: 460px;
}
.hero-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
}

.eyebrow {
  display: block;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brown-700);
  margin-bottom: 8px;
}

/* ---------- 6. Facts strip ---------- */
.facts {
  background: var(--cream-100);
}
.facts ul {
  list-style: none;
  margin: 0;
  padding: 20px 0;
  display: grid;
  gap: 12px;
}
.facts li {
  display: flex;
  gap: 10px;
  align-items: baseline;
  font-weight: 600;
}
.facts li::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gold-500);
  flex-shrink: 0;
  transform: translateY(-2px);
}

/* ---------- 7. Page sections ---------- */
.section {
  padding: 48px 0;
}
.section-alt {
  background: var(--white);
}
.page-intro {
  background: var(--green-100);
  padding: 36px 0 28px;
}
.page-intro p {
  color: var(--ink-600);
  max-width: 60ch;
}
.lead {
  font-size: 1.15rem;
  color: var(--ink-600);
  max-width: 60ch;
}
.prose {
  max-width: 65ch;
}
.prose h2 {
  margin-top: 1.4em;
}

.cards {
  display: grid;
  gap: 16px;
  margin-top: 24px;
}
.card {
  background: var(--white);
  border: 1px solid var(--cream-100);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow);
}
.section-alt .card {
  background: var(--cream-50);
}
.card p:last-child {
  margin-bottom: 0;
}

/* Embedded Google Map: a fixed-ratio box that scales with the page width,
   so the map always fits the screen instead of the iframe's own pixel size. */
.map-frame {
  margin-top: 24px;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.map-frame iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

/* FAQ accordion: native <details>/<summary>, so it opens and closes
   without needing any JavaScript. */
.faq-list {
  margin-top: 24px;
  display: grid;
  gap: 12px;
}
.faq-list details {
  background: var(--white);
  border: 1px solid var(--cream-100);
  border-radius: var(--radius);
  padding: 16px 20px;
}
.faq-list summary {
  cursor: pointer;
  font-weight: 600;
}
.faq-list details p {
  margin: 12px 0 0;
}

/* Numbered "how a visit works" steps */
.steps {
  list-style: none;
  counter-reset: step;
  margin: 24px 0 0;
  padding: 0;
  display: grid;
  gap: 16px;
}
.steps li {
  counter-increment: step;
  position: relative;
  padding: 20px 20px 20px 72px;
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid var(--cream-100);
}
.steps li::before {
  content: counter(step);
  position: absolute;
  left: 20px;
  top: 18px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--green-900);
  color: var(--white);
  font-weight: 700;
  display: grid;
  place-items: center;
}
.steps h3 {
  margin-bottom: 4px;
}
.steps p {
  margin: 0;
  color: var(--ink-600);
}

.notice {
  border-left: 4px solid var(--gold-500);
  background: var(--cream-100);
  padding: 16px 18px;
  border-radius: 0 var(--radius) var(--radius) 0;
  max-width: 65ch;
}
.notice p:last-child {
  margin-bottom: 0;
}

.about-photo {
  border-radius: var(--radius);
  overflow: hidden;
  max-width: 420px;
}

/* Opening hours and contact details */
.info-list {
  margin: 0;
  display: grid;
  gap: 14px;
}
.info-list div {
  display: grid;
  gap: 2px;
}
.info-list dt {
  font-weight: 700;
  color: var(--green-900);
}
.info-list dd {
  margin: 0;
}

.cta-band {
  background: var(--green-900);
  color: var(--white);
  text-align: center;
  padding: 44px 0;
}
.cta-band h2 {
  color: var(--white);
}
.cta-band p {
  color: #e8efe7;
}
.cta-band .btn-row {
  justify-content: center;
}

/* ---------- 8. Footer ---------- */
.site-footer {
  background: var(--ink-900);
  color: #d6d6d0;
  padding: 36px 0 24px;
  font-size: 0.95rem;
}
.site-footer a {
  color: #ffffff;
}
.footer-grid {
  display: grid;
  gap: 24px;
}
.site-footer h2 {
  color: #ffffff;
  font-size: 1.1rem;
}
.site-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.site-footer li {
  margin-bottom: 6px;
}
.footer-disclaimer {
  border-top: 1px solid #3a3a36;
  margin-top: 24px;
  padding-top: 16px;
  font-size: 0.85rem;
  color: #b4b4ad;
}

/* ---------- 9. Tablet and up ---------- */
@media (min-width: 720px) {
  body {
    padding-bottom: 0;         /* no fixed bar on bigger screens */
  }
  .mobile-cta {
    display: none;
  }
  .menu-toggle {
    display: none;
  }
  .main-nav,
  .main-nav.is-open {
    display: flex;
    align-items: center;
    gap: 16px;
    position: static;
    box-shadow: none;
    border: 0;
  }
  .main-nav ul {
    display: flex;
    gap: 4px;
    padding: 0;
  }
  .main-nav a {
    border: 0;
    padding: 8px 12px;
    border-radius: 8px;
  }
  .main-nav a:hover,
  .main-nav a[aria-current="page"] {
    background: var(--green-100);
  }
  .main-nav .lang-switch {
    margin: 0;
    padding: 0;
    border-top: 0;
  }
  .hero-inner {
    grid-template-columns: 1.2fr 1fr;
    align-items: center;
    padding-top: 56px;
    padding-bottom: 56px;
  }
  .facts ul {
    grid-template-columns: repeat(3, 1fr);
  }
  .cards {
    grid-template-columns: repeat(2, 1fr);
  }
  .steps {
    grid-template-columns: repeat(3, 1fr);
  }
  .steps li {
    padding: 72px 20px 20px;
  }
  .about-grid {
    display: grid;
    grid-template-columns: 1fr 1.4fr;
    gap: 40px;
    align-items: start;
  }
  .footer-grid {
    grid-template-columns: 2fr 1fr 1fr;
  }
}

@media (min-width: 1000px) {
  .cards-3 {
    grid-template-columns: repeat(3, 1fr);
  }
}
