/* ==========================================================================
   ALPINE PAEONIES NZ — Design System & Site Styles
   Brand: alpine ridgelines + New Zealand-grown paeonies, wholesale/export.
   Palette, type and the ridge-line motif are documented inline by section.
   ========================================================================== */

/* -------------------- Design tokens -------------------- */
:root {
  /* Colour palette — drawn from the logo's red alpine peaks, tussock
     foothills and snow/wool-toned neutrals. Ochre is used sparingly. */
  --alpine-red: #7a2331;
  --alpine-red-dark: #4e1620;
  --alpine-red-tint: #a5434f;
  --brand-red: #ec292f;
  --brand-red-dark: #c81f25;
  --charcoal: #2b2420;
  --tussock: #5b6e4d;
  --tussock-dark: #435339;
  --tussock-tint: #edf0e6;
  --cream: #f7f1e8;
  --soft-white: #fffdf9;
  --ochre: #b4823c;
  --stone: #8c8378;
  --stone-light: #d8cfc0;
  --line: rgba(43, 36, 32, 0.12);

  /* Type */
  --font-display: "Fraunces", "Iowan Old Style", Georgia, serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", "SFMono-Regular", Consolas, monospace;

  /* Layout */
  --container: 1200px;
  --radius-sm: 4px;
  --radius-md: 10px;
  --radius-lg: 22px;
  --shadow-sm: 0 2px 10px rgba(43, 36, 32, 0.06);
  --shadow-md: 0 12px 32px rgba(43, 36, 32, 0.12);
  --shadow-lg: 0 24px 60px rgba(43, 36, 32, 0.18);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--charcoal);
  background: var(--cream);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.12;
  margin: 0 0 0.5em;
  color: var(--charcoal);
}

p {
  margin: 0 0 1em;
}

a {
  color: inherit;
  text-decoration: none;
}

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

button {
  font-family: inherit;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 24px;
}

/* Visible keyboard focus everywhere */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 2px solid var(--ochre);
  outline-offset: 3px;
  border-radius: 2px;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

/* -------------------- Utility type classes -------------------- */
.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ochre);
}

.eyebrow--onDark {
  color: #e7c894;
}

.lede {
  font-size: 1.15rem;
  color: var(--stone);
  max-width: 60ch;
}

.section-heading {
  max-width: 640px;
  margin-bottom: 44px;
}

.section-heading h2 {
  font-size: clamp(1.8rem, 3vw, 2.6rem);
}

.italic-accent {
  font-style: italic;
  font-weight: 300;
  color: var(--alpine-red);
}

/* -------------------- Buttons -------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 14px 28px;
  border-radius: 999px;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform 0.25s var(--ease), background 0.25s var(--ease), color 0.25s var(--ease), border-color 0.25s var(--ease);
  white-space: nowrap;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: var(--brand-red);
  color: var(--soft-white);
  box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
  background: var(--brand-red-dark);
}

.btn-outline {
  background: transparent;
  border-color: rgba(255, 253, 249, 0.55);
  color: inherit;
}

.btn-outline:hover {
  background: rgba(255, 253, 249, 0.12);
}

.btn-outline.on-light {
  border-color: var(--charcoal);
  color: var(--charcoal);
}

.btn-outline.on-light:hover {
  background: var(--charcoal);
  color: var(--soft-white);
}

.btn-ghost {
  padding: 10px 4px;
  border-bottom: 1.5px solid var(--ochre);
  border-radius: 0;
  font-size: 0.9rem;
}

/* Hero "Contact Us" button — filled with the same colour as the site
   header background, alpine red text. Used only for that one button. */
.btn-cream {
  background: var(--cream);
  color: var(--alpine-red);
}

.btn-cream:hover {
  background: var(--soft-white);
}

.btn-block {
  width: 100%;
  justify-content: center;
}

/* -------------------- Header / Navigation -------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(247, 241, 232, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow 0.3s var(--ease);
}

.site-header.is-scrolled {
  box-shadow: var(--shadow-sm);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-block: 14px;
}

/* Logo lockup: SVG ridge/tree/fence mark + wordmark */
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-mark {
  width: 46px;
  height: 42px;
  flex-shrink: 0;
}

.brand-word {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
}

.brand-word .name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.18rem;
  letter-spacing: 0.01em;
  color: var(--brand-red);
}

.brand-word .name sup {
  font-size: 0.55em;
  font-weight: 600;
}

.brand-word .tagline {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--stone);
  margin-top: 2px;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 32px;
}

.main-nav ul {
  display: flex;
  gap: 28px;
}

.main-nav a {
  font-weight: 500;
  font-size: 0.95rem;
  position: relative;
  padding-bottom: 4px;
}

.main-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: 0;
  height: 2px;
  background: var(--brand-red);
  transition: right 0.25s var(--ease);
}

.main-nav a:hover::after,
.main-nav a.active::after {
  right: 0;
}

.main-nav a.active::after {
  background: var(--alpine-red);
}

.main-nav a.active {
  color: var(--alpine-red);
}

.nav-cta {
  display: flex;
  align-items: center;
  gap: 18px;
}

/* .main-nav a sets padding-bottom:4px for the plain text links' underline
   gap; the CTA button is also an <a> in .main-nav, so restore its padding
   to keep the label centered in the pill instead of sitting low. */
.nav-cta .btn {
  padding-bottom: 14px;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--soft-white);
}

.nav-toggle span {
  display: block;
  height: 2px;
  width: 20px;
  margin-inline: auto;
  background: var(--charcoal);
  transition: transform 0.3s var(--ease), opacity 0.3s var(--ease);
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}
.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

@media (max-width: 880px) {
  .main-nav {
    position: fixed;
    inset: 68px 0 0 0;
    background: var(--cream);
    flex-direction: column;
    align-items: flex-start;
    padding: 28px 24px;
    gap: 24px;
    transform: translateX(100%);
    transition: transform 0.35s var(--ease);
    overflow-y: auto;
  }

  .main-nav.is-open {
    transform: translateX(0);
  }

  .main-nav ul {
    flex-direction: column;
    gap: 20px;
    width: 100%;
  }

  .main-nav a {
    font-size: 1.2rem;
  }

  .nav-cta {
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
  }

  .nav-toggle {
    display: flex;
  }
}

/* -------------------- Ridge-line divider (signature motif) -------------------- */
.ridge-divider {
  display: block;
  width: 100%;
  height: auto;
  line-height: 0;
}

.ridge-divider svg {
  display: block;
  width: 100%;
  height: 64px;
}

@media (max-width: 640px) {
  .ridge-divider svg {
    height: 36px;
  }
}

/* -------------------- Hero (home) -------------------- */
.hero {
  position: relative;
  background: radial-gradient(120% 140% at 15% 0%, #7a2331 0%, #52192a 45%, #2b2420 100%);
  color: var(--soft-white);
  overflow: hidden;
}

.hero-inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
  padding-block: 96px 120px;
}

.hero-copy .eyebrow {
  margin-bottom: 18px;
}

.hero h1 {
  color: var(--soft-white);
  font-size: clamp(2.6rem, 5vw, 4.2rem);
  max-width: 14ch;
}

.hero h1 em {
  font-style: italic;
  font-weight: 300;
  color: #e7b8c0;
}

.hero .lede {
  color: #f1e2d8;
  margin-top: 20px;
  max-width: 46ch;
}

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

.hero-stats {
  display: flex;
  gap: 32px;
  margin-top: 56px;
  flex-wrap: wrap;
}

.hero-stats .stat-num {
  font-family: var(--font-mono);
  font-size: 1.6rem;
  font-weight: 600;
  color: #e7c894;
  display: block;
}

.hero-stats .stat-label {
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #cbb9ae;
}

.hero-visual {
  position: relative;
}

.hero-visual .frame {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(255, 253, 249, 0.18);
  transform: rotate(1.5deg);
}

.hero-visual .frame img {
  width: 100%;
  height: 420px;
  object-fit: cover;
}

.hero-visual .badge-float {
  position: absolute;
  bottom: -22px;
  left: -22px;
  background: var(--soft-white);
  color: var(--charcoal);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  box-shadow: var(--shadow-md);
  max-width: 220px;
}

.hero-visual .badge-float strong {
  display: block;
  font-family: var(--font-display);
  color: var(--alpine-red);
  font-size: 1.1rem;
}

.hero-visual .badge-float span {
  font-size: 0.82rem;
  color: var(--stone);
}

.hero .ridge-divider {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  z-index: 1;
}

@media (max-width: 900px) {
  .hero-inner {
    grid-template-columns: 1fr;
    padding-block: 64px 90px;
  }

  .hero-visual .frame {
    transform: none;
  }

  .hero-visual .badge-float {
    left: 12px;
  }
}

/* -------------------- Page header (interior pages) -------------------- */
.page-header {
  position: relative;
  background: linear-gradient(120deg, var(--charcoal) 0%, var(--alpine-red-dark) 100%);
  color: var(--soft-white);
  padding-block: 76px 100px;
}

.page-header .container {
  position: relative;
  z-index: 2;
}

.page-header h1 {
  color: var(--soft-white);
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  max-width: 20ch;
}

.page-header .lede {
  color: #ecd9cf;
  margin-top: 14px;
}

.page-header .ridge-divider {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  z-index: 1;
}

.breadcrumb {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #d9b6a6;
  margin-bottom: 18px;
}

.breadcrumb a:hover {
  color: var(--soft-white);
}

/* -------------------- Sections -------------------- */
.section {
  padding-block: 88px;
}

.section-tint {
  background: var(--tussock-tint);
}

.section-white {
  background: var(--soft-white);
}

.section-dark {
  background: var(--charcoal);
  color: var(--stone-light);
}

.section-dark h2,
.section-dark h3 {
  color: var(--soft-white);
}

/* -------------------- Intro / About blocks -------------------- */
.intro-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.intro-grid .frame {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.intro-grid img {
  width: 100%;
  height: 380px;
  object-fit: cover;
}

@media (max-width: 860px) {
  .intro-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

.stat-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 40px;
}

.stat-card {
  background: var(--soft-white);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 22px 20px;
  text-align: left;
}

.stat-card .stat-num {
  font-family: var(--font-mono);
  font-size: 1.9rem;
  font-weight: 600;
  color: var(--alpine-red);
  display: block;
}

.stat-card .stat-label {
  font-size: 0.8rem;
  color: var(--stone);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

@media (max-width: 640px) {
  .stat-row {
    grid-template-columns: 1fr 1fr;
  }
}

/* -------------------- Values / feature cards -------------------- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.value-card {
  background: var(--soft-white);
  border-radius: var(--radius-md);
  padding: 32px 28px;
  border: 1px solid var(--line);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.value-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.value-card .icon {
  width: 44px;
  height: 44px;
  margin-bottom: 18px;
  color: var(--brand-red);
}

.value-card h3 {
  font-size: 1.15rem;
}

.value-card p {
  color: var(--stone);
  font-size: 0.96rem;
  margin-bottom: 0;
}

@media (max-width: 860px) {
  .card-grid {
    grid-template-columns: 1fr;
  }
}

/* -------------------- Seasonal availability ridge chart (signature) -------------------- */
.availability {
  position: relative;
  background: var(--tussock-tint);
  border-radius: var(--radius-lg);
  padding: 44px clamp(20px, 4vw, 56px) 30px;
}

.availability-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 8px;
}

.availability-legend {
  display: flex;
  gap: 22px;
  flex-wrap: wrap;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  font-family: var(--font-mono);
  color: var(--charcoal);
}

.legend-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
}

.dot-early { background: #f7a45a; }
.dot-mid { background: #f4b6c2; }
.dot-late { background: var(--brand-red); }

.ridge-chart {
  width: 100%;
  height: auto;
  margin-top: 10px;
}

.ridge-chart .month-label {
  font-family: var(--font-mono);
  font-size: 12px;
  fill: var(--stone);
}

.ridge-chart .peak-label {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  fill: var(--alpine-red);
}

/* Interactive bloom-ridge dots + tooltip (hover on desktop, tap on mobile) */
.ridge-dot {
  cursor: pointer;
  stroke: var(--soft-white);
  stroke-width: 1.5;
  transition: r 0.15s ease;
}

.ridge-dot:hover,
.ridge-dot:focus-visible {
  r: 7;
  outline: none;
}

.ridge-dot:focus-visible {
  stroke: var(--ochre);
  stroke-width: 2.5;
}

.ridge-tooltip {
  position: absolute;
  left: 0;
  top: 0;
  transform: translate(-50%, calc(-100% - 10px));
  background: var(--soft-white);
  border: 1.5px solid var(--brand-red);
  color: var(--charcoal);
  padding: 6px 13px;
  border-radius: 6px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  white-space: nowrap;
  box-shadow: var(--shadow-md);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s;
  z-index: 20;
}

.ridge-tooltip::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border: 6px solid transparent;
  border-top-color: var(--brand-red);
}

.ridge-tooltip::before {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(-1.5px);
  width: 0;
  height: 0;
  border: 4.5px solid transparent;
  border-top-color: var(--soft-white);
  z-index: 1;
}

.ridge-tooltip.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, calc(-100% - 16px));
}

/* -------------------- Varieties grid -------------------- */
.filter-bar {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

.filter-btn {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 9px 18px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--soft-white);
  color: var(--charcoal);
  cursor: pointer;
  transition: all 0.2s var(--ease);
}

.filter-btn:hover {
  border-color: var(--alpine-red);
}

.filter-btn.is-active {
  background: var(--alpine-red);
  border-color: var(--alpine-red);
  color: var(--soft-white);
}

.varieties-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.variety-card {
  background: var(--soft-white);
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.variety-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
}

.variety-media {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
}

.variety-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s var(--ease);
}

.variety-card:hover .variety-media img {
  transform: scale(1.06);
}

.season-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 6px 12px;
  border-radius: 999px;
  color: var(--soft-white);
  backdrop-filter: blur(4px);
}

.season-early { background: rgba(91, 110, 77, 0.92); }
.season-mid { background: rgba(180, 130, 60, 0.92); }
.season-late { background: rgba(122, 35, 49, 0.92); }

.variety-body {
  padding: 22px 22px 26px;
}

.variety-body h3 {
  font-size: 1.2rem;
  margin-bottom: 6px;
}

.variety-body p {
  color: var(--stone);
  font-size: 0.92rem;
  margin-bottom: 0;
}

@media (max-width: 980px) {
  .varieties-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 620px) {
  .varieties-grid {
    grid-template-columns: 1fr;
  }
}

/* -------------------- Wholesale process trail -------------------- */
.trail {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0;
  position: relative;
  margin-top: 20px;
}

.trail::before {
  content: "";
  position: absolute;
  top: 22px;
  left: 40px;
  right: 40px;
  height: 0;
  border-top: 2px dashed var(--stone-light);
  z-index: 0;
}

.trail-step {
  position: relative;
  z-index: 1;
  padding: 0 16px;
  text-align: left;
}

.trail-marker {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--alpine-red);
  color: var(--soft-white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-weight: 600;
  margin-bottom: 18px;
  box-shadow: var(--shadow-sm);
}

.trail-step h3 {
  font-size: 1.02rem;
  margin-bottom: 6px;
}

.trail-step p {
  font-size: 0.88rem;
  color: var(--stone);
  margin-bottom: 0;
}

@media (max-width: 980px) {
  .trail {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .trail::before {
    top: 0;
    bottom: 0;
    left: 22px;
    right: auto;
    width: 0;
    height: auto;
    border-top: none;
    border-left: 2px dashed var(--stone-light);
  }
  .trail-step {
    padding-left: 62px;
  }
  .trail-marker {
    position: absolute;
    left: 0;
    top: 0;
  }
}

/* Vertical variant of .trail — same markers/tokens, stacked at all widths.
   Used for longer, single-column processes (e.g. the dry-store steps). */
.trail.trail--vertical {
  grid-template-columns: 1fr;
  gap: 28px;
}

.trail.trail--vertical::before {
  top: 0;
  bottom: 0;
  left: 22px;
  right: auto;
  width: 0;
  height: auto;
  border-top: none;
  border-left: 2px dashed var(--stone-light);
}

.trail.trail--vertical .trail-step {
  padding-left: 62px;
}

.trail.trail--vertical .trail-marker {
  position: absolute;
  left: 0;
  top: 0;
}

/* -------------------- Note card (dry-store / availability callouts) -------------------- */
.note-card {
  background: var(--soft-white);
  border: 1px solid var(--line);
  border-left: 4px solid var(--brand-red);
  border-radius: var(--radius-md);
  padding: 26px 28px;
  margin-top: 28px;
}

.note-card h3 {
  font-size: 1.1rem;
  color: var(--brand-red);
  margin-bottom: 8px;
}

.note-card p {
  color: var(--charcoal);
  font-size: 0.96rem;
  margin-bottom: 0;
}

/* Dry-store process image (Wholesale page) */
.drystore-media {
  max-width: 640px;
  margin: 40px auto 0;
}

.drystore-media .frame {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.drystore-media img {
  width: 100%;
  height: 340px;
  object-fit: cover;
  display: block;
}

/* -------------------- Spec sheet (minimums / delivery) -------------------- */
.spec-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.spec-card {
  background: var(--soft-white);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 28px;
}

.spec-card h3 {
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-family: var(--font-mono);
  font-weight: 600;
  color: var(--alpine-red);
  margin-bottom: 14px;
}

.spec-list li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding-block: 9px;
  border-bottom: 1px dashed var(--line);
  font-size: 0.92rem;
}

.spec-list li:last-child {
  border-bottom: none;
}

.spec-list .spec-value {
  font-family: var(--font-mono);
  font-weight: 600;
  color: var(--charcoal);
  text-align: right;
}

@media (max-width: 860px) {
  .spec-grid {
    grid-template-columns: 1fr;
  }
}

/* -------------------- Gallery -------------------- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 220px;
  gap: 18px;
}

.gallery-item {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  cursor: zoom-in;
  border: 1px solid var(--line);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s var(--ease);
}

.gallery-item:hover img {
  transform: scale(1.08);
}

.gallery-item .cap {
  position: absolute;
  inset: auto 0 0 0;
  padding: 12px 14px;
  background: linear-gradient(0deg, rgba(43, 36, 32, 0.85), transparent);
  color: var(--soft-white);
  font-size: 0.8rem;
  opacity: 0;
  transform: translateY(6px);
  transition: all 0.3s var(--ease);
}

.gallery-item:hover .cap {
  opacity: 1;
  transform: translateY(0);
}

.gallery-item.tall { grid-row: span 2; }
.gallery-item.wide { grid-column: span 2; }

@media (max-width: 980px) {
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .gallery-item.wide { grid-column: span 2; }
}

@media (max-width: 560px) {
  .gallery-grid {
    grid-template-columns: 1fr;
    grid-auto-rows: 240px;
  }
  .gallery-item.wide,
  .gallery-item.tall {
    grid-column: auto;
    grid-row: auto;
  }
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(20, 16, 14, 0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s var(--ease);
  padding: 32px;
}

.lightbox.is-open {
  opacity: 1;
  pointer-events: auto;
}

.lightbox figure {
  max-width: 900px;
  width: 100%;
  margin: 0;
}

.lightbox img {
  width: 100%;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
}

.lightbox figcaption {
  color: var(--stone-light);
  text-align: center;
  margin-top: 14px;
  font-size: 0.9rem;
}

.lightbox-close {
  position: absolute;
  top: 28px;
  right: 32px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 253, 249, 0.12);
  color: var(--soft-white);
  border: 1px solid rgba(255, 253, 249, 0.3);
  font-size: 1.3rem;
  cursor: pointer;
}

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

.contact-form {
  background: var(--soft-white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow-sm);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.form-field {
  margin-bottom: 20px;
}

.form-field label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.form-field .req {
  color: var(--alpine-red);
}

.form-field input,
.form-field textarea {
  width: 100%;
  padding: 13px 15px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--line);
  font-family: var(--font-body);
  font-size: 0.95rem;
  background: var(--cream);
  transition: border-color 0.2s var(--ease), background 0.2s var(--ease);
}

.form-field input:focus,
.form-field textarea:focus {
  border-color: var(--alpine-red);
  background: var(--soft-white);
  outline: none;
}

.form-field .error-msg {
  display: none;
  color: var(--alpine-red);
  font-size: 0.78rem;
  margin-top: 6px;
}

.form-field.has-error input,
.form-field.has-error textarea {
  border-color: var(--alpine-red);
}

.form-field.has-error .error-msg {
  display: block;
}

.form-status {
  margin-top: 18px;
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  background: var(--tussock-tint);
  color: var(--tussock-dark);
  font-size: 0.9rem;
  display: none;
}

.form-status.is-visible {
  display: block;
}

.contact-info-card {
  background: var(--charcoal);
  color: var(--stone-light);
  border-radius: var(--radius-lg);
  padding: 40px;
}

.contact-info-card h3 {
  color: var(--soft-white);
}

.contact-line {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding-block: 14px;
  border-bottom: 1px solid rgba(255, 253, 249, 0.12);
}

.contact-line:last-of-type {
  border-bottom: none;
}

.contact-line .ic {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  color: var(--ochre);
  margin-top: 3px;
}

.contact-line a:hover {
  color: var(--ochre);
}

.contact-line .lbl {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #a99b8c;
  display: block;
  margin-bottom: 3px;
}

.map-placeholder {
  margin-top: 24px;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid rgba(255, 253, 249, 0.15);
}

.map-placeholder img {
  width: 100%;
  height: 160px;
  object-fit: cover;
}

@media (max-width: 900px) {
  .contact-grid {
    grid-template-columns: 1fr;
  }
  .form-row {
    grid-template-columns: 1fr;
  }
}

/* -------------------- CTA band -------------------- */
.cta-band {
  background: linear-gradient(120deg, var(--alpine-red) 0%, var(--alpine-red-dark) 100%);
  color: var(--soft-white);
  border-radius: var(--radius-lg);
  padding: 56px clamp(24px, 5vw, 64px);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
}

.cta-band h2 {
  color: var(--soft-white);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  max-width: 20ch;
  margin-bottom: 6px;
}

.cta-band p {
  color: #f1dcd4;
  margin-bottom: 0;
}

/* -------------------- Footer -------------------- */
.site-footer {
  background: var(--charcoal);
  color: var(--stone-light);
  position: relative;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr 0.8fr 1fr;
  gap: 40px;
  padding-block: 64px 40px;
}

.footer-brand .brand-word .name {
  color: var(--soft-white);
}

.footer-brand p {
  color: #a99b8c;
  font-size: 0.9rem;
  margin-top: 16px;
  max-width: 32ch;
}

.footer-col h4 {
  color: var(--soft-white);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 18px;
}

.footer-col ul li {
  margin-bottom: 11px;
}

.footer-col a {
  color: #cbbdae;
  font-size: 0.92rem;
  transition: color 0.2s var(--ease);
}

.footer-col a:hover {
  color: var(--ochre);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 253, 249, 0.1);
  padding-block: 22px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 0.8rem;
  color: #8f8175;
}

@media (max-width: 900px) {
  .footer-inner {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 560px) {
  .footer-inner {
    grid-template-columns: 1fr;
  }
}

/* -------------------- Misc -------------------- */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: start;
}

@media (max-width: 860px) {
  .two-col {
    grid-template-columns: 1fr;
  }
}

.quote-block {
  border-left: 3px solid var(--alpine-red);
  padding-left: 22px;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.25rem;
  color: var(--charcoal);
  margin: 32px 0;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: auto;
  background: var(--alpine-red);
  color: var(--soft-white);
  padding: 12px 18px;
  border-radius: var(--radius-sm);
  z-index: 1001;
}

.skip-link:focus {
  left: 16px;
  top: 16px;
}
