/* ==========================================================================
   The Cheshire Landscaping & Decking Co. — Visual System
   Charcoal / warm timber / natural stone / muted forest
   ========================================================================== */

:root {
  --ink: #171511;          /* deep warm charcoal */
  --ink-2: #211e18;        /* raised charcoal surface */
  --ink-3: #2c2820;        /* card on dark */
  --paper: #f1ece2;        /* warm limestone */
  --paper-2: #e7e0d1;      /* deeper stone */
  --white: #faf8f3;
  --timber: #c18b50;       /* warm sawn timber */
  --timber-bright: #d9a967;
  --timber-deep: #8d6234;
  --forest: #4a5844;       /* muted forest green */
  --muted: #6d675c;        /* stone-grey text on light */
  --muted-dark: #a49b8b;   /* stone text on dark */
  --line-light: rgba(23, 21, 17, 0.14);
  --line-dark: rgba(250, 248, 243, 0.14);
  --shadow-soft: 0 18px 50px -18px rgba(23, 21, 17, 0.35);
  --shadow-lift: 0 28px 70px -24px rgba(23, 21, 17, 0.5);
  --radius: 6px;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --container: 1180px;
  --gutter: clamp(20px, 4vw, 44px);
}

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

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Inter", -apple-system, "Segoe UI", sans-serif;
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* height:auto keeps the intrinsic ratio even when width/height attributes
   are present for CLS; cover/contain images override height explicitly */
img { max-width: 100%; height: auto; display: block; }

h1, h2, h3, h4 {
  font-family: "Fraunces", Georgia, serif;
  font-weight: 560;
  line-height: 1.08;
  letter-spacing: -0.015em;
  margin: 0 0 0.5em;
  text-wrap: balance;
}

h1 { font-size: clamp(2.5rem, 6.4vw, 4.6rem); }
h2 { font-size: clamp(1.9rem, 4vw, 3rem); }
h3 { font-size: clamp(1.25rem, 2.2vw, 1.6rem); }

p { margin: 0 0 1.1em; }
a { color: inherit; }

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

/* --------------------------------------------------------------------------
   Eyebrow / kicker
   -------------------------------------------------------------------------- */
.kicker {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--timber-deep);
  margin-bottom: 1.4em;
}
.kicker::before {
  content: "";
  width: 34px;
  height: 1px;
  background: currentColor;
  opacity: 0.7;
}
.on-dark .kicker { color: var(--timber-bright); }

.lead {
  font-size: clamp(1.1rem, 1.8vw, 1.28rem);
  line-height: 1.7;
  color: var(--muted);
  max-width: 44em;
}
.on-dark .lead { color: var(--muted-dark); }

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 1em 1.9em;
  font-family: "Inter", sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-decoration: none;
  border-radius: var(--radius);
  border: 1px solid transparent;
  cursor: pointer;
  transition: background-color 0.3s var(--ease-out), color 0.3s var(--ease-out),
    border-color 0.3s var(--ease-out), transform 0.3s var(--ease-out),
    box-shadow 0.3s var(--ease-out);
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn-primary {
  background: var(--timber);
  color: var(--ink);
  box-shadow: 0 14px 34px -14px rgba(193, 139, 80, 0.65);
}
.btn-primary:hover { background: var(--timber-bright); }

.btn-ghost {
  background: transparent;
  color: var(--white);
  border-color: rgba(250, 248, 243, 0.45);
}
.btn-ghost:hover { border-color: var(--white); background: rgba(250, 248, 243, 0.08); }

.btn-dark {
  background: var(--ink);
  color: var(--white);
}
.btn-dark:hover { background: var(--ink-3); }

.btn-lg { padding: 1.15em 2.4em; font-size: 1rem; }

.btn svg { flex: none; }

/* --------------------------------------------------------------------------
   Header
   -------------------------------------------------------------------------- */
.site-header {
  position: fixed;
  inset-inline: 0;
  top: 0;
  z-index: 60;
  background: linear-gradient(rgba(17, 15, 12, 0.85), rgba(17, 15, 12, 0));
  transition: background-color 0.4s var(--ease-out), box-shadow 0.4s var(--ease-out);
}
.site-header.is-solid {
  background: rgba(17, 15, 12, 0.96);
  box-shadow: 0 10px 40px -18px rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(10px);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 28px;
  max-width: var(--container);
  margin-inline: auto;
  padding: 14px var(--gutter);
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  color: var(--white);
  margin-right: auto;
}
.brand img {
  width: 54px;
  height: 54px;
  flex: none;
  object-fit: contain;
  border-radius: 50%;
  mix-blend-mode: screen; /* logo sits on pure black — melts into dark header */
}
.brand-name {
  font-family: "Fraunces", serif;
  font-size: 1.06rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  line-height: 1.15;
}
.brand-name small {
  display: block;
  font-family: "Inter", sans-serif;
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--timber-bright);
  margin-top: 3px;
}

.site-nav { display: flex; align-items: center; gap: 4px; }
.site-nav a {
  padding: 10px 14px;
  white-space: nowrap;
  font-size: 0.92rem;
  font-weight: 550;
  color: rgba(250, 248, 243, 0.82);
  text-decoration: none;
  border-radius: 4px;
  transition: color 0.25s, background-color 0.25s;
}
.site-nav a:hover { color: var(--white); background: rgba(250, 248, 243, 0.07); }
.site-nav a.is-active { color: var(--timber-bright); }
.site-nav .btn { margin-left: 14px; padding: 0.78em 1.5em; font-size: 0.88rem; }

.nav-toggle {
  display: none;
  background: none;
  border: 0;
  padding: 10px;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  width: 26px;
  height: 2px;
  background: var(--white);
  margin: 6px 0;
  border-radius: 2px;
  transition: transform 0.35s var(--ease-out), opacity 0.25s;
}

@media (max-width: 1120px) {
  .nav-toggle { display: block; }
  .site-nav {
    position: fixed;
    inset: 0;
    height: 100vh;
    height: 100dvh;
    max-height: 100dvh;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    gap: 8px;
    padding: calc(78px + env(safe-area-inset-top, 0px)) 24px
             calc(30px + env(safe-area-inset-bottom, 0px));
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    background: rgba(17, 15, 12, 0.98);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.35s var(--ease-out);
  }
  /* flexible spacers centre the links on tall screens but collapse to zero
     on short screens so the whole menu stays reachable by scrolling */
  .site-nav::before,
  .site-nav::after {
    content: "";
    flex: 1 1 0;
    min-height: 0;
  }
  .site-nav a { font-size: clamp(1.1rem, 4.5vh, 1.35rem); padding: 10px 22px; text-align: center; flex: none; }
  .site-nav .btn { margin: 14px 0 0; font-size: 1rem; }
  body.nav-open .site-nav { opacity: 1; pointer-events: auto; }
  body.nav-open { overflow: hidden; }
  body.nav-open .nav-toggle span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
  body.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
  body.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
  .nav-toggle { position: relative; z-index: 70; }
}

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  color: var(--white);
}
.hero.hero-short { min-height: 72svh; }

.hero-media {
  position: absolute;
  inset: -12% 0;
  z-index: 0;
  will-change: transform;
}
.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(to top, rgba(17, 15, 12, 0.92) 0%, rgba(17, 15, 12, 0.35) 45%, rgba(17, 15, 12, 0.45) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
  padding-block: clamp(90px, 12vh, 150px);
}
.hero-content .kicker { color: var(--timber-bright); }
.hero-content h1 { max-width: 13em; }
.hero-sub {
  font-size: clamp(1.08rem, 1.7vw, 1.3rem);
  line-height: 1.7;
  color: rgba(250, 248, 243, 0.85);
  max-width: 36em;
  margin-bottom: 2.2em;
}
.hero-ctas { display: flex; flex-wrap: wrap; gap: 16px; }

.hero-badge {
  position: absolute;
  z-index: 2;
  right: clamp(20px, 6vw, 90px);
  top: clamp(110px, 16vh, 190px);
  width: clamp(120px, 14vw, 190px);
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  mix-blend-mode: screen;
  opacity: 0.9;
  pointer-events: none;
}
@media (max-width: 720px) { .hero-badge { display: none; } }

.scroll-cue {
  position: absolute;
  z-index: 2;
  left: 50%;
  bottom: 26px;
  transform: translateX(-50%);
  width: 1px;
  height: 54px;
  background: rgba(250, 248, 243, 0.35);
  overflow: hidden;
}
.scroll-cue::after {
  content: "";
  position: absolute;
  top: -40%;
  left: 0;
  width: 100%;
  height: 40%;
  background: var(--timber-bright);
  animation: cue 2.2s var(--ease-out) infinite;
}
@keyframes cue { to { top: 110%; } }

/* --------------------------------------------------------------------------
   Sections
   -------------------------------------------------------------------------- */
.section { padding-block: clamp(72px, 10vw, 130px); }
.section-tight { padding-block: clamp(56px, 7vw, 90px); }

.on-dark {
  background: var(--ink);
  color: var(--white);
}
.on-dark-2 { background: var(--ink-2); }

.section-head {
  max-width: 780px;
  margin-bottom: clamp(40px, 6vw, 70px);
}
.section-head.center { margin-inline: auto; text-align: center; }
.section-head.center .kicker { justify-content: center; }

/* Split intro (Built to Last) */
.split {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(36px, 6vw, 80px);
  align-items: center;
}
@media (max-width: 880px) { .split { grid-template-columns: 1fr; } }

.split-media {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-lift);
}
.split-media img { width: 100%; height: 100%; object-fit: cover; }
.split-media::after {
  content: "";
  position: absolute;
  inset: 0;
  border: 1px solid rgba(250, 248, 243, 0.12);
  border-radius: var(--radius);
  pointer-events: none;
}

.stat-row {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(24px, 4vw, 56px);
  margin-top: 2.4em;
  padding-top: 2em;
  border-top: 1px solid var(--line-light);
}
.on-dark .stat-row { border-color: var(--line-dark); }
.stat b {
  display: block;
  font-family: "Fraunces", serif;
  font-size: clamp(1.7rem, 3vw, 2.3rem);
  font-weight: 600;
  color: var(--timber-deep);
}
.on-dark .stat b { color: var(--timber-bright); }
.stat span { font-size: 0.88rem; color: var(--muted); letter-spacing: 0.04em; }
.on-dark .stat span { color: var(--muted-dark); }

/* --------------------------------------------------------------------------
   Featured projects
   -------------------------------------------------------------------------- */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: clamp(16px, 2.4vw, 28px);
}
.feature-card {
  position: relative;
  grid-column: span 4;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4 / 5;
  text-decoration: none;
  color: var(--white);
  box-shadow: var(--shadow-soft);
}
.feature-card.wide { grid-column: span 8; aspect-ratio: auto; }
@media (max-width: 880px) {
  .feature-card, .feature-card.wide { grid-column: span 12; aspect-ratio: 4 / 3; }
}
.feature-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.1s var(--ease-out);
}
.feature-card:hover img { transform: scale(1.045); }
.feature-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(17, 15, 12, 0.85), rgba(17, 15, 12, 0.05) 55%);
  transition: background 0.4s;
}
.feature-meta {
  position: absolute;
  z-index: 1;
  inset-inline: 0;
  bottom: 0;
  padding: clamp(18px, 3vw, 30px);
}
.feature-meta .tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--timber-bright);
  margin-bottom: 8px;
}
.feature-meta h3 { margin: 0; font-weight: 520; }

/* --------------------------------------------------------------------------
   Why choose — craft pillars
   -------------------------------------------------------------------------- */
.pillars {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(14px, 2vw, 24px);
}
.pillar {
  flex: 1 1 200px;
  min-width: 200px;
  padding: clamp(24px, 3vw, 34px);
  background: var(--ink-3);
  border: 1px solid rgba(250, 248, 243, 0.07);
  border-radius: var(--radius);
  transition: transform 0.4s var(--ease-out), border-color 0.4s;
}
.pillar:hover { transform: translateY(-5px); border-color: rgba(217, 169, 103, 0.4); }
.pillar svg { width: 30px; height: 30px; stroke: var(--timber-bright); margin-bottom: 16px; }
.pillar h3 { font-size: 1.12rem; font-weight: 560; margin-bottom: 0.45em; }
.pillar p { font-size: 0.92rem; line-height: 1.6; color: var(--muted-dark); margin: 0; }

/* --------------------------------------------------------------------------
   Services
   -------------------------------------------------------------------------- */
.service-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(16px, 2.4vw, 28px);
}
@media (max-width: 780px) { .service-grid { grid-template-columns: 1fr; } }

.service-card {
  position: relative;
  display: block;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 16 / 10;
  text-decoration: none;
  color: var(--white);
  box-shadow: var(--shadow-soft);
}
.service-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.1s var(--ease-out);
}
.service-card:hover img { transform: scale(1.05); }
.service-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(17, 15, 12, 0.88), rgba(17, 15, 12, 0.08) 60%);
}
.service-meta {
  position: absolute;
  z-index: 1;
  inset-inline: 0;
  bottom: 0;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  padding: clamp(20px, 3vw, 30px);
}
.service-meta h3 { margin: 0 0 4px; font-weight: 540; }
.service-meta p { margin: 0; font-size: 0.92rem; color: rgba(250, 248, 243, 0.78); }
.service-meta .arrow {
  flex: none;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(250, 248, 243, 0.4);
  border-radius: 50%;
  transition: background-color 0.3s, transform 0.4s var(--ease-out);
}
.service-card:hover .arrow { background: var(--timber); border-color: var(--timber); transform: translateX(4px); }
.service-card:hover .arrow svg { stroke: var(--ink); }
.arrow svg { width: 18px; height: 18px; stroke: var(--white); transition: stroke 0.3s; }

/* Craft services strip (small services) */
.craft-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 12px;
}
.craft-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 18px;
  background: var(--white);
  border: 1px solid var(--line-light);
  border-radius: var(--radius);
  font-size: 0.95rem;
  font-weight: 550;
  transition: transform 0.35s var(--ease-out), box-shadow 0.35s var(--ease-out), border-color 0.35s;
}
.craft-item:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-soft);
  border-color: rgba(193, 139, 80, 0.5);
}
.craft-item::before {
  content: "";
  flex: none;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--timber);
}

/* --------------------------------------------------------------------------
   Gallery
   -------------------------------------------------------------------------- */
.masonry {
  columns: 3 300px;
  column-gap: clamp(14px, 2vw, 24px);
}
.masonry a {
  display: block;
  margin-bottom: clamp(14px, 2vw, 24px);
  border-radius: var(--radius);
  overflow: hidden;
  position: relative;
  box-shadow: var(--shadow-soft);
  break-inside: avoid;
}
.masonry img {
  width: 100%;
  transition: transform 1s var(--ease-out), filter 0.5s;
}
.masonry a:hover img { transform: scale(1.04); }
.masonry a::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(17, 15, 12, 0.5), transparent 40%);
  opacity: 0;
  transition: opacity 0.45s;
}
.masonry a:hover::after { opacity: 1; }
.masonry figcaption {
  position: absolute;
  z-index: 1;
  left: 18px;
  bottom: 14px;
  color: var(--white);
  font-size: 0.85rem;
  font-weight: 550;
  letter-spacing: 0.04em;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.45s, transform 0.45s var(--ease-out);
}
.masonry a:hover figcaption { opacity: 1; transform: translateY(0); }
.masonry figure { margin: 0; }

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: grid;
  place-items: center;
  background: rgba(13, 12, 10, 0.94);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s var(--ease-out);
}
.lightbox.open { opacity: 1; pointer-events: auto; }
.lightbox img {
  max-width: min(92vw, 1400px);
  max-height: 84vh;
  border-radius: var(--radius);
  box-shadow: 0 40px 120px -30px rgba(0, 0, 0, 0.9);
  transform: scale(0.97);
  transition: transform 0.45s var(--ease-out);
}
.lightbox.open img { transform: scale(1); }
.lightbox-caption {
  position: absolute;
  bottom: 26px;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(250, 248, 243, 0.8);
  font-size: 0.9rem;
  letter-spacing: 0.05em;
}
.lightbox button {
  position: absolute;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  background: rgba(250, 248, 243, 0.07);
  border: 1px solid rgba(250, 248, 243, 0.25);
  border-radius: 50%;
  color: var(--white);
  cursor: pointer;
  transition: background-color 0.3s;
}
.lightbox button:hover { background: rgba(250, 248, 243, 0.18); }
.lightbox button svg { width: 20px; height: 20px; stroke: currentColor; }
.lb-close { top: 24px; right: 24px; }
.lb-prev { left: 20px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 20px; top: 50%; transform: translateY(-50%); }
@media (max-width: 640px) {
  .lb-prev, .lb-next { top: auto; bottom: 70px; transform: none; }
  .lb-prev { left: calc(50% - 66px); }
  .lb-next { right: calc(50% - 66px); }
}

/* --------------------------------------------------------------------------
   Reviews
   -------------------------------------------------------------------------- */
.review-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: clamp(16px, 2.4vw, 26px);
}
.review-card {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: clamp(26px, 3.4vw, 38px);
  background: var(--white);
  border: 1px solid var(--line-light);
  border-radius: var(--radius);
}
.review-stars { display: flex; gap: 4px; }
.review-stars svg { width: 17px; height: 17px; fill: var(--timber); }
.review-card blockquote {
  margin: 0;
  font-family: "Fraunces", serif;
  font-size: 1.08rem;
  line-height: 1.55;
  font-weight: 480;
}
.review-card figcaption {
  margin-top: auto;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}
.review-note {
  text-align: center;
  font-size: 0.88rem;
  color: var(--muted);
  margin-top: 28px;
}
.review-note a { color: var(--timber-deep); font-weight: 600; }

/* --------------------------------------------------------------------------
   CTA band
   -------------------------------------------------------------------------- */
.cta-band {
  position: relative;
  overflow: hidden;
  color: var(--white);
}
.cta-band .cta-media {
  position: absolute;
  inset: 0;
}
.cta-band .cta-media img { width: 100%; height: 100%; object-fit: cover; }
.cta-band::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, rgba(17, 15, 12, 0.92) 30%, rgba(17, 15, 12, 0.55));
}
.cta-inner {
  position: relative;
  z-index: 1;
  padding-block: clamp(80px, 11vw, 140px);
  max-width: 640px;
}
.cta-inner h2 { color: var(--white); }
.cta-inner p { color: rgba(250, 248, 243, 0.82); margin-bottom: 2em; }
.cta-contact-line {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 28px;
  margin-top: 26px;
  font-size: 0.95rem;
  color: rgba(250, 248, 243, 0.75);
}
.cta-contact-line a { color: var(--timber-bright); text-decoration: none; font-weight: 600; }
.cta-contact-line a:hover { text-decoration: underline; }

/* --------------------------------------------------------------------------
   Page hero (inner pages)
   -------------------------------------------------------------------------- */
.page-hero {
  position: relative;
  min-height: 62svh;
  display: flex;
  align-items: flex-end;
  color: var(--white);
  overflow: hidden;
}
.page-hero .hero-media { inset: -10% 0; }
.page-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(17, 15, 12, 0.9), rgba(17, 15, 12, 0.35) 55%, rgba(17, 15, 12, 0.5));
}
.page-hero .hero-content { padding-block: clamp(70px, 9vh, 110px); }

/* Editorial alternating rows */
.editorial {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(36px, 6vw, 80px);
  align-items: center;
}
.editorial + .editorial { margin-top: clamp(64px, 9vw, 120px); }
.editorial.flip .editorial-media { order: 2; }
@media (max-width: 880px) {
  .editorial { grid-template-columns: 1fr; }
  .editorial.flip .editorial-media { order: 0; }
}
.editorial-media {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-lift);
}
.editorial-media img { width: 100%; height: 100%; object-fit: cover; }
.editorial-copy h2 { font-size: clamp(1.7rem, 3.2vw, 2.4rem); }
.editorial-copy ul {
  margin: 1.4em 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
}
.editorial-copy li {
  display: flex;
  gap: 12px;
  align-items: baseline;
  font-size: 0.98rem;
  color: var(--muted);
}
.on-dark .editorial-copy li { color: var(--muted-dark); }
.editorial-copy li::before {
  content: "";
  flex: none;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--timber);
  transform: translateY(-2px);
}

/* --------------------------------------------------------------------------
   Contact page
   -------------------------------------------------------------------------- */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 0.85fr;
  gap: clamp(40px, 6vw, 90px);
  align-items: start;
}
@media (max-width: 920px) { .contact-layout { grid-template-columns: 1fr; } }

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.form-grid .full { grid-column: 1 / -1; }
@media (max-width: 560px) { .form-grid { grid-template-columns: 1fr; } }

.field label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 8px;
}
.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 14px 16px;
  font: inherit;
  font-size: 1rem;
  color: var(--ink);
  background: var(--white);
  border: 1px solid var(--line-light);
  border-radius: var(--radius);
  transition: border-color 0.3s, box-shadow 0.3s;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--timber);
  box-shadow: 0 0 0 3px rgba(193, 139, 80, 0.22);
}
.field textarea { min-height: 150px; resize: vertical; }

.radio-row { display: flex; flex-wrap: wrap; gap: 10px; }
.radio-pill {
  position: relative;
  cursor: pointer;
}
.radio-pill input {
  position: absolute;
  opacity: 0;
  inset: 0;
  cursor: pointer;
}
.radio-pill span {
  display: inline-block;
  padding: 10px 20px;
  font-size: 0.92rem;
  font-weight: 550;
  background: var(--white);
  border: 1px solid var(--line-light);
  border-radius: 100px;
  transition: all 0.25s;
}
.radio-pill input:checked + span {
  background: var(--ink);
  color: var(--white);
  border-color: var(--ink);
}
.radio-pill input:focus-visible + span { box-shadow: 0 0 0 3px rgba(193, 139, 80, 0.4); }

.form-status {
  margin-top: 16px;
  font-size: 0.95rem;
  font-weight: 550;
  color: var(--forest);
  min-height: 1.4em;
}
.form-status.error { color: #a2452c; }

/* Photo upload */
.upload-zone {
  display: grid;
  place-items: center;
  gap: 6px;
  padding: 30px 20px;
  text-align: center;
  background: var(--white);
  border: 1.5px dashed rgba(23, 21, 17, 0.28);
  border-radius: var(--radius);
  cursor: pointer;
  transition: border-color 0.25s, background-color 0.25s;
}
.upload-zone:hover,
.upload-zone.dragover {
  border-color: var(--timber);
  background: rgba(193, 139, 80, 0.06);
}
.upload-zone svg { width: 26px; height: 26px; stroke: var(--timber-deep); }
.upload-zone b { font-size: 0.98rem; }
.upload-zone span { font-size: 0.85rem; color: var(--muted); }
.upload-zone input { display: none; }

.upload-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(90px, 1fr));
  gap: 10px;
  margin-top: 12px;
}
.upload-thumb {
  position: relative;
  aspect-ratio: 1 / 1;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line-light);
}
.upload-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.upload-thumb button {
  position: absolute;
  top: 5px;
  right: 5px;
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  background: rgba(23, 21, 17, 0.75);
  border: 0;
  border-radius: 50%;
  color: var(--white);
  font-size: 15px;
  line-height: 1;
  cursor: pointer;
}
.upload-thumb button:hover { background: var(--ink); }

/* Social icon links */
.social-links {
  display: flex;
  gap: 12px;
  margin-top: 18px;
}
.social-links a {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(250, 248, 243, 0.22);
  border-radius: 50%;
  color: var(--muted-dark);
  transition: color 0.25s, border-color 0.25s, transform 0.3s var(--ease-out);
}
.social-links a:hover {
  color: var(--white);
  border-color: var(--timber-bright);
  transform: translateY(-2px);
}
.social-links svg { width: 19px; height: 19px; }
.social-links.on-light a { border-color: var(--line-light); color: var(--muted); }
.social-links.on-light a:hover { color: var(--ink); border-color: var(--timber-deep); }

/* Review stat card */
.review-stat {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  padding: clamp(26px, 3.4vw, 38px);
  background: var(--ink);
  color: var(--white);
  border-radius: var(--radius);
}
.review-stat b {
  font-family: "Fraunces", serif;
  font-size: clamp(2.6rem, 5vw, 3.6rem);
  font-weight: 600;
  line-height: 1;
  color: var(--timber-bright);
}
.review-stat span { font-size: 1rem; color: var(--muted-dark); }
.review-stat a {
  margin-top: auto;
  color: var(--white);
  font-weight: 600;
  font-size: 0.92rem;
}

.contact-side {
  display: grid;
  gap: 16px;
}
.contact-card {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  padding: clamp(22px, 3vw, 30px);
  background: var(--white);
  border: 1px solid var(--line-light);
  border-radius: var(--radius);
  text-decoration: none;
  color: var(--ink);
  transition: transform 0.35s var(--ease-out), box-shadow 0.35s, border-color 0.35s;
}
.contact-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-soft);
  border-color: rgba(193, 139, 80, 0.5);
}
.contact-card .icon {
  flex: none;
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  background: var(--paper-2);
  border-radius: 50%;
}
.contact-card .icon svg { width: 21px; height: 21px; stroke: var(--timber-deep); }
.contact-card b { display: block; font-size: 1.02rem; margin-bottom: 2px; }
.contact-card span { font-size: 0.92rem; color: var(--muted); }

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.site-footer {
  background: #121009;
  color: var(--muted-dark);
  padding: clamp(60px, 8vw, 90px) 0 40px;
  font-size: 0.94rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: clamp(30px, 5vw, 60px);
  padding-bottom: 50px;
  border-bottom: 1px solid rgba(250, 248, 243, 0.09);
}
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }

.footer-brand img {
  width: 130px;
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  mix-blend-mode: screen;
  margin-bottom: 18px;
}
.footer-brand p { max-width: 30em; line-height: 1.7; }

.site-footer h4 {
  font-family: "Inter", sans-serif;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--timber-bright);
  margin-bottom: 1.4em;
}
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.site-footer a { color: var(--muted-dark); text-decoration: none; transition: color 0.25s; }
.site-footer a:hover { color: var(--white); }

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 30px;
  justify-content: space-between;
  padding-top: 28px;
  font-size: 0.82rem;
  color: rgba(164, 155, 139, 0.75);
}

/* --------------------------------------------------------------------------
   Reveal animations
   -------------------------------------------------------------------------- */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out);
}
.reveal.in { opacity: 1; transform: none; }
.reveal-d1 { transition-delay: 0.08s; }
.reveal-d2 { transition-delay: 0.16s; }
.reveal-d3 { transition-delay: 0.24s; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero-media { will-change: auto; }
  .feature-card img, .service-card img, .masonry img { transition: none; }
  .scroll-cue { display: none; }
}

/* --------------------------------------------------------------------------
   Utility
   -------------------------------------------------------------------------- */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 12px;
  z-index: 100;
  padding: 12px 20px;
  background: var(--timber);
  color: var(--ink);
  font-weight: 600;
  border-radius: var(--radius);
  text-decoration: none;
}
.skip-link:focus { left: 12px; }

::selection { background: rgba(193, 139, 80, 0.35); }
