/* ==========================================================================
   MD2 Botanic Cafe & Resort — md2resort.com
   Design system + all page styles. No framework, no build step.

   Palette rationale: the brand mark is a deep botanical green with a gold
   pineapple. The site pairs that forest green with brass/gold accents on a
   warm cream paper, which reads "highland resort + Malay kitchen" rather
   than generic corporate blue. Pineapple yellow appears only as a small
   accent so it stays an accent, never a theme.
   ========================================================================== */

/* ---------- Tokens ---------- */
:root {
  /* Brand */
  --forest-900: #0d1f14;
  --forest-800: #14301f;
  --forest-700: #1c422b;
  --forest-600: #275b3b;
  --forest-500: #35754d;
  --forest-300: #7ea88d;
  --forest-100: #d9e6dd;

  --gold-600: #a9853a;
  --gold-500: #c8a24a;
  --gold-400: #d9bc72;
  --gold-100: #f2e6c9;

  --pineapple: #e9b949;

  --cream-50: #faf7f0;
  --cream-100: #f4eee2;
  --sand-200: #e7dcc7;
  --sand-300: #d5c6aa;

  --ink-900: #191a16;
  --ink-700: #3a3c35;
  --ink-500: #6b6d63;
  --ink-300: #9a9c92;

  --white: #ffffff;

  /* Type */
  --font-display: 'Cormorant Garamond', 'Iowan Old Style', Georgia, 'Times New Roman', serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;

  --step--1: clamp(0.82rem, 0.79rem + 0.15vw, 0.9rem);
  --step-0: clamp(1rem, 0.96rem + 0.2vw, 1.09rem);
  --step-1: clamp(1.2rem, 1.12rem + 0.4vw, 1.45rem);
  --step-2: clamp(1.5rem, 1.34rem + 0.8vw, 2.05rem);
  --step-3: clamp(1.9rem, 1.6rem + 1.5vw, 3rem);
  --step-4: clamp(2.4rem, 1.85rem + 2.7vw, 4.4rem);

  /* Space */
  --sp-1: 0.25rem;
  --sp-2: 0.5rem;
  --sp-3: 0.75rem;
  --sp-4: 1rem;
  --sp-5: 1.5rem;
  --sp-6: 2rem;
  --sp-7: 3rem;
  --sp-8: 4rem;
  --sp-9: 6rem;

  --radius-sm: 6px;
  --radius: 12px;
  --radius-lg: 20px;

  --shadow-sm: 0 1px 3px rgba(13, 31, 20, 0.08), 0 1px 2px rgba(13, 31, 20, 0.04);
  --shadow: 0 6px 24px rgba(13, 31, 20, 0.1), 0 2px 8px rgba(13, 31, 20, 0.06);
  --shadow-lg: 0 24px 60px rgba(13, 31, 20, 0.18), 0 8px 24px rgba(13, 31, 20, 0.1);

  --container: 1200px;
  --container-narrow: 860px;

  --header-h: 76px;
}

/* ---------- Reset ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 1rem);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.65;
  color: var(--ink-900);
  background: var(--cream-50);
  overflow-x: hidden;
}

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

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.12;
  margin: 0 0 var(--sp-4);
  color: var(--forest-900);
  letter-spacing: -0.01em;
}

h1 { font-size: var(--step-4); }
h2 { font-size: var(--step-3); }
h3 { font-size: var(--step-2); }
h4 { font-size: var(--step-1); }

p { margin: 0 0 var(--sp-4); }
p:last-child { margin-bottom: 0; }

a { color: var(--forest-600); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--gold-600); }

ul, ol { margin: 0 0 var(--sp-4); padding-left: 1.25rem; }

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

/* ---------- Layout ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--sp-5);
}

.container--narrow { max-width: var(--container-narrow); }

.section { padding-block: var(--sp-9); }
.section--tight { padding-block: var(--sp-8); }
.section--cream { background: var(--cream-100); }
.section--forest {
  background: var(--forest-800);
  color: var(--cream-100);
}
.section--forest h2,
.section--forest h3 { color: var(--cream-50); }
.section--forest p { color: rgba(244, 238, 226, 0.82); }

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--forest-800);
  color: var(--cream-50);
  padding: var(--sp-3) var(--sp-4);
  z-index: 200;
  border-radius: 0 0 var(--radius-sm) 0;
}
.skip-link:focus { left: 0; }

/* ---------- Section headers ---------- */
.eyebrow {
  display: inline-block;
  font-size: var(--step--1);
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold-600);
  margin-bottom: var(--sp-3);
}
.section--forest .eyebrow { color: var(--gold-400); }

.section-head {
  max-width: 62ch;
  margin-bottom: var(--sp-7);
}
.section-head--center {
  margin-inline: auto;
  text-align: center;
}
.section-head p {
  color: var(--ink-500);
  font-size: var(--step-1);
  line-height: 1.55;
}
.section--forest .section-head p { color: rgba(244, 238, 226, 0.78); }

.rule {
  width: 64px;
  height: 2px;
  background: var(--gold-500);
  border: 0;
  margin: var(--sp-4) 0 var(--sp-5);
}
.section-head--center .rule { margin-inline: auto; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-2);
  font-family: var(--font-body);
  font-size: var(--step--1);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.95rem 1.75rem;
  border-radius: 999px;
  border: 1.5px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.18s ease, background-color 0.18s ease, color 0.18s ease,
    border-color 0.18s ease, box-shadow 0.18s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn--primary {
  background: var(--forest-700);
  color: var(--cream-50);
  box-shadow: var(--shadow-sm);
}
.btn--primary:hover {
  background: var(--forest-600);
  color: var(--white);
  box-shadow: var(--shadow);
}

.btn--gold {
  background: var(--gold-500);
  color: var(--forest-900);
}
.btn--gold:hover { background: var(--gold-400); color: var(--forest-900); }

.btn--ghost {
  background: transparent;
  border-color: rgba(250, 247, 240, 0.55);
  color: var(--cream-50);
}
.btn--ghost:hover {
  background: rgba(250, 247, 240, 0.12);
  border-color: var(--cream-50);
  color: var(--white);
}

.btn--outline {
  background: transparent;
  border-color: var(--forest-700);
  color: var(--forest-700);
}
.btn--outline:hover { background: var(--forest-700); color: var(--cream-50); }

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-3);
}
.btn-row--center { justify-content: center; }

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  height: var(--header-h);
  z-index: 100;
  display: flex;
  align-items: center;
  transition: background-color 0.3s ease, box-shadow 0.3s ease, height 0.3s ease;
}
.site-header::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(13, 31, 20, 0.6), rgba(13, 31, 20, 0));
  opacity: 1;
  transition: opacity 0.3s ease;
  pointer-events: none;
}
.site-header.is-solid {
  background: var(--forest-800);
  box-shadow: var(--shadow);
}
.site-header.is-solid::before { opacity: 0; }

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-4);
  position: relative;
  z-index: 1;
}

.brand {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  text-decoration: none;
  color: var(--cream-50);
}
.brand__mark {
  width: 38px;
  height: 38px;
  flex: none;
}
.brand__text { display: flex; flex-direction: column; line-height: 1; }
.brand__name {
  font-family: var(--font-display);
  font-size: 1.32rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--cream-50);
}
.brand__sub {
  font-size: 0.6rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold-400);
  margin-top: 3px;
}

.nav { display: flex; align-items: center; gap: var(--sp-5); }

.nav__list {
  display: flex;
  align-items: center;
  gap: var(--sp-5);
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav__link {
  color: rgba(250, 247, 240, 0.9);
  text-decoration: none;
  font-size: var(--step--1);
  font-weight: 500;
  letter-spacing: 0.04em;
  padding: var(--sp-2) 0;
  position: relative;
  white-space: nowrap;
}
.nav__link::after {
  content: '';
  position: absolute;
  left: 0;
  right: 100%;
  bottom: 0;
  height: 1.5px;
  background: var(--gold-500);
  transition: right 0.25s ease;
}
.nav__link:hover,
.nav__link[aria-current='page'] { color: var(--cream-50); }
.nav__link:hover::after,
.nav__link[aria-current='page']::after { right: 0; }

/* Language switch */
.lang {
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(250, 247, 240, 0.4);
  border-radius: 999px;
  overflow: hidden;
  flex: none;
}
.lang__btn {
  appearance: none;
  border: 0;
  background: transparent;
  color: rgba(250, 247, 240, 0.85);
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  padding: 0.4rem 0.7rem;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease;
}
.lang__btn:hover { background: rgba(250, 247, 240, 0.14); color: var(--cream-50); }
.lang__btn[aria-pressed='true'] {
  background: var(--gold-500);
  color: var(--forest-900);
}

/* Mobile menu button */
.nav-toggle {
  display: none;
  appearance: none;
  border: 1px solid rgba(250, 247, 240, 0.4);
  background: transparent;
  border-radius: var(--radius-sm);
  width: 42px;
  height: 42px;
  cursor: pointer;
  padding: 0;
  align-items: center;
  justify-content: center;
  flex: none;
}
.nav-toggle span {
  display: block;
  width: 18px;
  height: 1.5px;
  background: var(--cream-50);
  position: relative;
  transition: background-color 0.2s ease;
}
.nav-toggle span::before,
.nav-toggle span::after {
  content: '';
  position: absolute;
  left: 0;
  width: 18px;
  height: 1.5px;
  background: var(--cream-50);
  transition: transform 0.25s ease, top 0.25s ease;
}
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after { top: 6px; }
.nav-toggle[aria-expanded='true'] span { background: transparent; }
.nav-toggle[aria-expanded='true'] span::before { top: 0; transform: rotate(45deg); }
.nav-toggle[aria-expanded='true'] span::after { top: 0; transform: rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: min(92vh, 820px);
  display: flex;
  align-items: center;
  color: var(--cream-50);
  isolation: isolate;
  overflow: hidden;
}
.hero__media {
  position: absolute;
  inset: 0;
  z-index: -2;
}
.hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(to bottom, rgba(13, 31, 20, 0.62) 0%, rgba(13, 31, 20, 0.32) 42%, rgba(13, 31, 20, 0.82) 100%);
}
.hero__inner {
  padding-top: calc(var(--header-h) + var(--sp-7));
  padding-bottom: var(--sp-8);
  max-width: 780px;
}
.hero__eyebrow {
  display: inline-block;
  font-size: var(--step--1);
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--gold-400);
  margin-bottom: var(--sp-4);
}
.hero h1 {
  color: var(--cream-50);
  font-size: var(--step-4);
  margin-bottom: var(--sp-4);
  text-shadow: 0 2px 24px rgba(13, 31, 20, 0.45);
}
.hero__lede {
  font-size: var(--step-1);
  line-height: 1.5;
  color: rgba(250, 247, 240, 0.92);
  max-width: 56ch;
  margin-bottom: var(--sp-6);
}

/* Page hero (interior pages) */
.page-hero {
  position: relative;
  min-height: 56vh;
  display: flex;
  align-items: flex-end;
  color: var(--cream-50);
  isolation: isolate;
  overflow: hidden;
}
.page-hero__media { position: absolute; inset: 0; z-index: -2; }
.page-hero__media img { width: 100%; height: 100%; object-fit: cover; }
.page-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(to bottom, rgba(13, 31, 20, 0.66) 0%, rgba(13, 31, 20, 0.3) 45%, rgba(13, 31, 20, 0.85) 100%);
}
.page-hero__inner {
  padding-top: calc(var(--header-h) + var(--sp-7));
  padding-bottom: var(--sp-7);
  max-width: 760px;
}
.page-hero h1 { color: var(--cream-50); margin-bottom: var(--sp-3); }
.page-hero p {
  font-size: var(--step-1);
  color: rgba(250, 247, 240, 0.9);
  max-width: 54ch;
}

/* ---------- Cards / grids ---------- */
.grid { display: grid; gap: var(--sp-5); }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  border: 1px solid rgba(20, 48, 31, 0.06);
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }

.card__media {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--sand-200);
}
.card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.card:hover .card__media img { transform: scale(1.05); }

.card__body {
  padding: var(--sp-5);
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
  flex: 1;
}
.card__body h3 { margin: 0; }
.card__body p { color: var(--ink-500); margin: 0; }
.card__foot {
  margin-top: auto;
  padding-top: var(--sp-3);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-3);
  border-top: 1px solid var(--cream-100);
}

.price {
  font-family: var(--font-display);
  font-size: var(--step-2);
  font-weight: 600;
  color: var(--forest-700);
  line-height: 1;
}
.price__unit {
  font-family: var(--font-body);
  font-size: var(--step--1);
  font-weight: 500;
  color: var(--ink-500);
  letter-spacing: 0.04em;
}

/* Feature (icon) cards */
.feature {
  text-align: center;
  padding: var(--sp-5);
}
.feature__icon {
  display: block;
  width: 56px;
  height: 56px;
  margin: 0 auto var(--sp-4);
  color: var(--gold-600);
}
.feature__icon svg { width: 100%; height: 100%; display: block; }
.feature h3 { font-size: var(--step-1); margin-bottom: var(--sp-2); }
.feature p { color: var(--ink-500); font-size: var(--step--1); line-height: 1.6; }
.section--forest .feature__icon { color: var(--gold-400); }
.section--forest .feature p { color: rgba(244, 238, 226, 0.72); }

/* ---------- Split (image + text) ---------- */
.split {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--sp-7);
  align-items: center;
}
.split__media {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  aspect-ratio: 4 / 3;
}
.split__media img { width: 100%; height: 100%; object-fit: cover; }
.split--reverse .split__media { order: 2; }

/* ---------- Menu (restaurant) ---------- */
.menu-package {
  background: var(--white);
  border: 1px solid var(--sand-200);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
}
.menu-package__head {
  background: var(--forest-800);
  color: var(--cream-50);
  padding: var(--sp-5);
  text-align: center;
}
.menu-package__head h3 {
  color: var(--cream-50);
  margin-bottom: var(--sp-1);
  font-size: var(--step-2);
}
.menu-package__tag {
  font-size: var(--step--1);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-400);
}
.menu-package__body { padding: var(--sp-5); flex: 1; }
.menu-list { list-style: none; margin: 0; padding: 0; }
.menu-list li {
  display: flex;
  gap: var(--sp-3);
  padding: var(--sp-3) 0;
  border-bottom: 1px dashed var(--sand-200);
  align-items: baseline;
}
.menu-list li:last-child { border-bottom: 0; }
.menu-list__num {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--gold-600);
  flex: none;
  width: 1.4rem;
}
.menu-list__name { font-weight: 600; color: var(--ink-900); }
.menu-list__desc {
  display: block;
  font-size: var(--step--1);
  color: var(--ink-500);
  font-weight: 400;
  margin-top: 2px;
}
.menu-package__foot {
  background: var(--cream-100);
  padding: var(--sp-4) var(--sp-5);
  text-align: center;
  border-top: 1px solid var(--sand-200);
}
.menu-package__price {
  font-family: var(--font-display);
  font-size: var(--step-3);
  font-weight: 700;
  color: var(--forest-700);
  line-height: 1;
}
.menu-package__note {
  display: block;
  font-size: var(--step--1);
  color: var(--ink-500);
  margin-top: var(--sp-2);
}

/* Dish grid */
.dish {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(20, 48, 31, 0.06);
}
.dish__media { aspect-ratio: 1 / 1; overflow: hidden; background: var(--sand-200); }
.dish__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease; }
.dish:hover .dish__media img { transform: scale(1.06); }
.dish__body { padding: var(--sp-4); }
.dish__body h4 { margin-bottom: var(--sp-1); font-size: var(--step-1); }
.dish__body p { font-size: var(--step--1); color: var(--ink-500); margin: 0; }

/* ---------- Gallery ---------- */
.gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--sp-3);
}
.gallery__item {
  overflow: hidden;
  border-radius: var(--radius-sm);
  aspect-ratio: 1 / 1;
  background: var(--sand-200);
}
.gallery__item--wide { grid-column: span 2; aspect-ratio: 2 / 1; }
.gallery__item--tall { grid-row: span 2; aspect-ratio: 1 / 2; }
.gallery__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.gallery__item:hover img { transform: scale(1.07); }

/* ---------- Stats strip ---------- */
.stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--sp-5);
  text-align: center;
}
.stat__value {
  font-family: var(--font-display);
  font-size: var(--step-3);
  font-weight: 600;
  color: var(--gold-400);
  line-height: 1;
  margin-bottom: var(--sp-2);
}
.stat__label {
  font-size: var(--step--1);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(244, 238, 226, 0.7);
}

/* ---------- Contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-7);
  align-items: start;
}
.info-list { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--sp-5); }
.info-list li { display: flex; gap: var(--sp-4); align-items: flex-start; }
.info-list__icon {
  width: 40px;
  height: 40px;
  flex: none;
  border-radius: 50%;
  background: var(--forest-100);
  color: var(--forest-700);
  display: grid;
  place-items: center;
}
.info-list__icon svg { width: 20px; height: 20px; }
.info-list__label {
  display: block;
  font-size: var(--step--1);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-500);
  margin-bottom: 2px;
}
.info-list__value { font-weight: 600; color: var(--ink-900); }
.info-list__value a { color: var(--forest-700); text-decoration: none; }
.info-list__value a:hover { color: var(--gold-600); text-decoration: underline; }

.form {
  background: var(--white);
  padding: var(--sp-6);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--sand-200);
}
.field { margin-bottom: var(--sp-4); }
.field label {
  display: block;
  font-size: var(--step--1);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-700);
  margin-bottom: var(--sp-2);
}
.field input,
.field select,
.field textarea {
  width: 100%;
  font-family: var(--font-body);
  font-size: var(--step-0);
  color: var(--ink-900);
  background: var(--cream-50);
  border: 1.5px solid var(--sand-200);
  border-radius: var(--radius-sm);
  padding: 0.8rem 0.95rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--forest-500);
  background: var(--white);
  box-shadow: 0 0 0 4px rgba(53, 117, 77, 0.12);
}
.field textarea { min-height: 130px; resize: vertical; }
.field--row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-4); }

.map-embed {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--sand-200);
  aspect-ratio: 16 / 9;
  background: var(--sand-200);
}
.map-embed iframe { width: 100%; height: 100%; border: 0; display: block; }

/* ---------- CTA band ---------- */
.cta-band {
  position: relative;
  isolation: isolate;
  color: var(--cream-50);
  text-align: center;
  padding-block: var(--sp-9);
  overflow: hidden;
}
.cta-band__media { position: absolute; inset: 0; z-index: -2; }
.cta-band__media img { width: 100%; height: 100%; object-fit: cover; }
.cta-band::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgba(13, 31, 20, 0.76);
}
.cta-band h2 { color: var(--cream-50); }
.cta-band p {
  color: rgba(250, 247, 240, 0.85);
  font-size: var(--step-1);
  max-width: 56ch;
  margin-inline: auto;
  margin-bottom: var(--sp-6);
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--forest-900);
  color: rgba(244, 238, 226, 0.72);
  padding-block: var(--sp-8) var(--sp-5);
  font-size: var(--step--1);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.2fr;
  gap: var(--sp-6);
  padding-bottom: var(--sp-7);
  border-bottom: 1px solid rgba(244, 238, 226, 0.14);
}
.site-footer h4 {
  color: var(--cream-50);
  font-family: var(--font-body);
  font-size: var(--step--1);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: var(--sp-4);
}
.footer-list { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--sp-3); }
.footer-list a { color: rgba(244, 238, 226, 0.72); text-decoration: none; }
.footer-list a:hover { color: var(--gold-400); }
.footer-bottom {
  padding-top: var(--sp-5);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-3);
  color: rgba(244, 238, 226, 0.5);
}
.social {
  display: flex;
  gap: var(--sp-3);
}
.social a {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid rgba(244, 238, 226, 0.22);
  display: grid;
  place-items: center;
  color: rgba(244, 238, 226, 0.8);
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.social a:hover { background: var(--gold-500); color: var(--forest-900); border-color: var(--gold-500); }
.social svg { width: 18px; height: 18px; }

/* WhatsApp float */
.wa-float {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 90;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #25d366;
  color: #fff;
  display: grid;
  place-items: center;
  box-shadow: var(--shadow);
  transition: transform 0.2s ease;
}
.wa-float:hover { transform: scale(1.08); color: #fff; }
.wa-float svg { width: 30px; height: 30px; }

/* ---------- Reveal on scroll ----------
   Progressive enhancement: content is VISIBLE by default. The hidden
   starting state is only applied when JavaScript is running (i18n.js adds
   .js to <html> in the head), so a script failure can never blank the page. */
html.js .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.5s ease, transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
  will-change: opacity, transform;
}
html.js .reveal.is-visible { opacity: 1; transform: none; }

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

/* ---------- Language visibility (no-JS safety) ---------- */
[data-lang-only] { display: none; }
html[lang='en'] [data-lang-only='en'],
html[lang='ms'] [data-lang-only='ms'] { display: revert; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--sp-6); }
}

@media (max-width: 860px) {
  :root { --header-h: 64px; }

  .nav-toggle { display: inline-flex; }

  .nav {
    position: fixed;
    inset: var(--header-h) 0 auto 0;
    background: var(--forest-800);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: var(--sp-4) var(--sp-5) var(--sp-6);
    box-shadow: var(--shadow-lg);
    transform: translateY(-120%);
    transition: transform 0.32s cubic-bezier(0.2, 0.8, 0.2, 1);
    max-height: calc(100vh - var(--header-h));
    overflow-y: auto;
  }
  .nav.is-open { transform: translateY(0); }

  .nav__list {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    width: 100%;
  }
  .nav__list li { border-bottom: 1px solid rgba(244, 238, 226, 0.12); }
  .nav__link {
    display: block;
    padding: var(--sp-4) 0;
    font-size: var(--step-0);
  }
  .nav__link::after { display: none; }

  .nav .lang { align-self: flex-start; margin-top: var(--sp-4); }

  .grid--2,
  .grid--3,
  .grid--4 { grid-template-columns: 1fr; }

  .split { grid-template-columns: 1fr; gap: var(--sp-5); }
  .split--reverse .split__media { order: 0; }

  .contact-grid { grid-template-columns: 1fr; gap: var(--sp-6); }

  .gallery { grid-template-columns: repeat(2, 1fr); }
  .gallery__item--tall { grid-row: span 1; aspect-ratio: 1 / 1; }

  .section { padding-block: var(--sp-8); }
  .hero { min-height: 84vh; }
  .field--row { grid-template-columns: 1fr; }
}

@media (max-width: 520px) {
  .footer-grid { grid-template-columns: 1fr; gap: var(--sp-5); }
  .btn { width: 100%; }
  .btn-row { flex-direction: column; }
  .brand__name { font-size: 1.1rem; }
  .gallery__item--wide { grid-column: span 2; }
}

/* ---------- Print ---------- */
@media print {
  .site-header, .wa-float, .nav-toggle, .lang { display: none !important; }
  body { background: #fff; }
}
