/* ========== RESET & BASE ========== */

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #0b0f0d;
  background: #f6f3ee;
}

/* Palette */
:root {
  --green: #0f3d2e;      /* forest green */
  --green-dark: #0b2e23;
  --gold: #cda349;
  --gold-soft: #e4c874;
  --taupe: #f2ebe1;
  --taupe-soft: #faf5ef;
  --ink: #0b0f0d;
  --muted: #56645d;
  --line: #e1d8cb;
}

/* ========== APP SHELL ========== */

#ID_APP {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

#ID_MAIN {
  flex: 1;
}

#ID_MAIN_SHELL {
  padding: 10px 32px 24px 32px;
}

#ID_MAIN_TABLE {
  width: 100%;
  border-collapse: collapse;
}

/* Sections as table cells (single-page routing) */
.section-cell {
  display: none;
  vertical-align: top;
}

.section-cell.is-active {
  display: table-cell;
}

/* Section card */
.section {
  background: #ffffff;
  border-radius: 16px;
  border: 1px solid var(--line);
  padding: 24px 24px 28px 24px;
  margin-bottom: 24px;
  box-shadow: 0 10px 26px rgba(16, 24, 20, 0.10);
}

.section-soft {
  background: linear-gradient(180deg, #ffffff, #faf4eb);
}

.section-gallery {
  background: linear-gradient(180deg, #ffffff, #f9efe2);
}

/* ========== TYPOGRAPHY ========== */

h1 {
  font-size: 32px;
  margin: 0 0 8px 0;
  line-height: 1.15;
  letter-spacing: -0.5px;
}

h2 {
  font-size: 22px;
  margin: 0 0 6px 0;
}

h3 {
  font-size: 16px;
  margin: 0 0 6px 0;
}

.lead {
  font-size: 16px;
  line-height: 1.65;
  color: #1d2b25;
}

.muted {
  font-size: 14px;
  color: var(--muted);
}

.small-muted {
  margin-top: 10px;
  font-size: 14px;
  color: #6a7972;
  line-height: 1.5;
}

/* Lists */

.list {
  margin: 6px 0 10px 0;
  padding-left: 18px;
}

.list li {
  margin-bottom: 5px;
  line-height: 1.5;
  color: #233029;
  font-size: 15px;
}

.list.check li::marker {
  color: var(--green);
}

/* ========== HEADER & NAV ========== */

#ID_HEADER {
  background: var(--green);
  color: #ffffff;
  border-bottom: 3px solid var(--gold);
  position: sticky;
  top: 0;
  z-index: 20;
}

#ID_HEADER_INNER {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 32px 8px 32px;
}

/* Brand */

#ID_BRAND {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

#ID_LOGO {
  width: 40px;
  height: 40px;
  border-radius: 999px;
  object-fit: contain;
  flex-shrink: 0;
}

#ID_BRAND_TEXT {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

#ID_BRAND_NAME {
  font-weight: 900;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  font-size: 14px;
  white-space: nowrap;
}

#ID_BRAND_TAGLINE {
  font-size: 14px;
  color: var(--taupe);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Nav (desktop base) */

#ID_NAV {
  margin-left: auto;
}

#ID_NAV_ITEMS {
  display: flex;
  gap: 6px;
}

/* Desktop nav links */

.nav-link {
  border-radius: 999px;
  padding: 7px 12px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--taupe);
  font-size: 14px;
  cursor: pointer;
  white-space: nowrap;
}

.nav-link:hover {
  background: rgba(255, 255, 255, 0.15);
  color: #ffffff;
}

.nav-link.is-active {
  background: var(--gold);
  border-color: #b08a3b;
  color: #1c1609;
  font-weight: 800;
}

/* Hamburger button base (desktop = hidden) */

body.nav-open {
  overflow: hidden;
}

.nav-toggle {
  border: none;
  background: transparent;
  cursor: pointer;
  padding: 6px;
  border-radius: 999px;
  display: none; /* shown only in mobile aspect query */
  z-index: 50;
}

.nav-toggle-icon {
  display: block;
  width: 24px;
  height: 24px;
}

/* ========== HERO ========== */

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 24px;
  align-items: center;
}

.hero-copy {
  color: var(--ink);
}

.hero-eyebrow {
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 6px;
}

.hero-lead {
  margin: 8px 0 16px 0;
  font-size: 16px;
  line-height: 1.7;
  color: #223029;
}

.hero-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 12px;
}

.hero-bullets {
  margin: 0;
  padding-left: 18px;
  font-size: 14px;
  color: #2a3a34;
  line-height: 1.55;
}

.hero-bullets li {
  margin-bottom: 4px;
}

/* Hero photo */

.hero-photo {
  justify-self: center;
}

.hero-photo img {
  width: 100%;
  max-width: 420px;
  border-radius: 18px;
  border: 1px solid var(--line);
  box-shadow: 0 14px 34px rgba(20, 25, 22, 0.22);
  display: block;
  object-fit: cover;
}

/* ========== WHAT WE ARE / BENEFITS / GALLERY ========== */

.wwa-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 18px;
}

.wwa-card {
  border-radius: 12px;
  border: 1px solid var(--line);
  padding: 14px;
  background: #ffffff;
}

.wwa-card h2 {
  font-size: 16px;
  color: var(--green-dark);
}

.wwa-card ul {
  margin: 4px 0 0 0;
  padding-left: 18px;
}

.wwa-card li {
  margin-bottom: 4px;
  line-height: 1.5;
  color: #233029;
}

/* Benefit grid */

.benefit-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.benefit-card {
  border-radius: 12px;
  border: 1px solid var(--line);
  padding: 14px;
  background: #ffffff;
}

.benefit-card h3 {
  color: var(--green-dark);
}

.benefit-card p {
  margin: 6px 0 0 0;
  line-height: 1.6;
  color: #2a3530;
}

/* Gallery */

.gallery-header {
  margin-bottom: 10px;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.gallery-card {
  margin: 0;
  border-radius: 12px;
  border: 1px solid var(--line);
  overflow: hidden;
  background: #ffffff;
}

.gallery-card img {
  width: 100%;
  height: 210px;
  object-fit: cover;
  display: block;
}

.gallery-card figcaption {
  padding: 10px 12px;
  font-weight: 800;
  color: var(--green-dark);
}

/* ========== SPLIT LAYOUTS, STEPS, SERVICE & EXPECT GRIDS ========== */

.split {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.85fr);
  gap: 18px;
  align-items: flex-start;
}

.side-visual img {
  width: 100%;
  border-radius: 14px;
  border: 1px solid var(--line);
  display: block;
  object-fit: cover;
}

.side-caption {
  margin-top: 8px;
  padding: 8px 10px;
  border-radius: 10px;
  background: var(--taupe);
  border: 1px solid #dfd2c1;
  font-size: 14px;
  font-weight: 700;
  color: var(--green-dark);
}

/* Steps */

.steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 12px 0 12px 0;
}

.step {
  display: flex;
  gap: 10px;
  padding: 12px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: #ffffff;
}

.step-num {
  min-width: 36px;
  height: 36px;
  border-radius: 999px;
  background: var(--green);
  color: #ffffff;
  display: grid;
  place-items: center;
  font-weight: 900;
}

.step-body p {
  margin: 4px 0 0 0;
  color: #25342f;
}

/* Services */

.service-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 12px;
}

.service-card {
  border-radius: 12px;
  border: 1px solid var(--line);
  overflow: hidden;
  background: #ffffff;
}

.service-card img {
  width: 100%;
  height: 190px;
  object-fit: cover;
  display: block;
}

.service-card h3 {
  padding: 10px 12px 0 12px;
}

.service-card p {
  padding: 0 12px 12px 12px;
  color: #26352f;
  line-height: 1.55;
}

/* Expect grid */

.expect-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 10px;
}

.expect-card {
  border-radius: 12px;
  border: 1px solid var(--line);
  padding: 14px;
  background: #ffffff;
}

/* ========== CALLOUT, CONTACT, PANEL ========== */

.callout {
  margin-top: 10px;
  padding: 12px;
  border-radius: 10px;
  background: var(--taupe);
  border: 1px solid #dfd2c1;
  border-left: 4px solid var(--gold);
  font-size: 15px;
  font-weight: 700;
  color: #1b2923;
}

.contact-card {
  border-radius: 12px;
  border: 1px solid var(--line);
  padding: 12px;
  margin: 8px 0 8px 0;
  background: #ffffff;
}

.panel {
  border-radius: 12px;
  border: 1px solid var(--line);
  background: #fbf6ee;
  padding: 14px;
}

.panel-title {
  font-size: 15px;
  font-weight: 900;
  letter-spacing: 1px;
  color: var(--green-dark);
  margin-bottom: 8px;
}

/* ========== BUTTONS & CTA ========== */

.btn {
  border-radius: 999px;
  padding: 9px 18px;
  font-size: 15px;
  border: 1px solid transparent;
  cursor: pointer;
  font-weight: 800;
}

.btn-primary {
  background: var(--gold);
  border-color: #b08a3b;
  color: #1b1407;
}

.btn-primary:hover {
  background: var(--gold-soft);
}

.btn-secondary {
  background: #ffffff;
  border-color: #d9cec0;
  color: var(--green-dark);
}

.btn-secondary:hover {
  background: #f6efe5;
}

/* CTA row */

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 10px;
}

/* ========== FOOTER ========== */

#ID_FOOTER {
  background: var(--green);
  color: #ffffff;
  border-top: 3px solid var(--gold);
}

#ID_FOOTER_INNER {
  padding: 10px 32px 10px 32px;
  font-size: 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}

.dot {
  opacity: 0.7;
}

/* =========================================================
   MOBILE MODE (ASPECT-BASED)
   max-aspect-ratio: 3/5 = tall/narrow screens
   Hard cap content width at 360px including padding/margins
   ========================================================= */

@media (max-aspect-ratio: 3/5) {
  /* Hard cap total width */
  #ID_APP {
    max-width: 360px;
    margin: 0 auto;
  }

  #ID_HEADER_INNER,
  #ID_MAIN_SHELL,
  #ID_FOOTER_INNER {
    padding-left: 12px;
    padding-right: 12px;
  }

  .section {
    padding: 16px 16px 20px 16px;
    margin-bottom: 16px;
    border-radius: 12px;
  }

  h1 {
    font-size: 24px;
  }

  h2 {
    font-size: 18px;
  }

  .lead {
    font-size: 15px;
  }

  /* Header layout */
  #ID_HEADER_INNER {
    gap: 8px;
  }

  #ID_BRAND_TAGLINE {
    font-size: 12px;
  }

  /* Mobile hamburger + overlay nav */
  .nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  #ID_NAV {
    position: fixed;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 360px;
    background: #ffffff;
    display: none;
    padding-top: 64px; /* space for sticky header */
    z-index: 40;
    border-bottom: 1px solid #ece4d8;
  }

  body.nav-open #ID_NAV {
    display: block;
  }

  #ID_NAV_ITEMS {
    display: flex;
    flex-direction: column;
    margin: 0;
    padding: 0 16px 16px 16px;
    gap: 0;
  }

  .nav-link {
    width: 100%;
    text-align: left;
    margin: 0;
    padding: 14px 0 14px 0;
    border-radius: 0;
    border: none;
    border-bottom: 1px solid #ece4d8;
    background: transparent;
    color: #111111;
    font-size: 15px;
    font-weight: 500;
  }

  .nav-link:last-child {
    border-bottom: none;
  }

  .nav-link.is-active {
    color: var(--green);
    font-weight: 700;
    background: transparent;
    border-bottom-color: #d9cec0;
  }

  /* Layout stacks to 1 column */
  .hero {
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
  }

  .wwa-row,
  .benefit-grid,
  .gallery-grid,
  .service-grid,
  .expect-grid,
  .steps,
  .split {
    grid-template-columns: minmax(0, 1fr);
  }

  .gallery-card img {
    height: 180px;
  }
}
