/* =============================================
   RIFT CO. DESIGNS — v3
   ============================================= */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,opsz,wght@0,14..44,300;0,14..44,400;1,14..44,300;1,14..44,400&display=swap');

@font-face {
  font-family: 'TT Norms';
  src: url('./assets/fonts/TTNorms-Regular.woff') format('woff');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'TT Norms';
  src: url('./assets/fonts/TTNorms-Bold.woff') format('woff');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'TT Norms';
  src: url('./assets/fonts/TTNorms-Bold.woff') format('woff');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* ── Tokens ──────────────────────────────── */
:root {
  --shell:  #F7F2EF;
  --stone:  #C2B9AA;
  --bark:   #5A3E2D;
  --coal:   #1C1C1C;

  --serif:  'Cormorant Garamond', 'Times New Roman', serif;
  --sans:   'TT Norms', 'Helvetica Neue', Helvetica, Arial, sans-serif;

  --nav-h:  76px;
  --ease:   cubic-bezier(0.22, 1, 0.36, 1);
  --gutter: clamp(24px, 5vw, 80px);
  --max:    1400px;
}

/* ── Reset ───────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--sans);
  background: var(--shell);
  color: var(--coal);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; border: none; background: none; font-family: var(--sans); }
ul { list-style: none; }

/* ── Type ────────────────────────────────── */
.serif { font-family: var(--serif); }
.eyebrow {
  font-family: var(--sans);
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--bark);
}
.eyebrow--light { color: rgba(247,242,239,0.45); }
.eyebrow--stone { color: var(--stone); }

/* ── Layout ──────────────────────────────── */
.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* ── Buttons ─────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--sans);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 14px 32px;
  border: 1px solid currentColor;
  transition: background 0.35s var(--ease), color 0.35s var(--ease);
  white-space: nowrap;
}
.btn-bark  { color: var(--bark); }
.btn-bark:hover  { background: var(--bark);  color: var(--shell) !important; }
.btn-coal  { color: var(--coal); }
.btn-coal:hover  { background: var(--coal);  color: var(--shell) !important; }
.btn-shell { color: rgba(247,242,239,0.85); border-color: rgba(247,242,239,0.4); }
.btn-shell:hover { background: var(--shell); color: var(--bark) !important; border-color: var(--shell); }

/* ── NAV ─────────────────────────────────── */
#nav {
  position: fixed;
  inset: 0 0 auto;
  z-index: 200;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  padding: 0 var(--gutter);
  transition: background 0.5s var(--ease), box-shadow 0.5s var(--ease);
}
#nav.solid {
  background: var(--shell);
  box-shadow: 0 1px 0 rgba(194,185,170,0.4);
}
.nav-inner {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo img {
  height: 36px;
  width: auto;
  display: block;
  transition: opacity 0.3s, filter 0.3s;
}
.nav-logo img:hover { opacity: 0.75; }

/* Over dark hero — invert to white (transparent bg means no box) */
#nav:not(.solid) .nav-logo img {
  filter: brightness(0) invert(1);
}
/* Over shell background — bark logo shows naturally on Shell, no treatment needed */
#nav.solid .nav-logo img,
#nav.solid-default .nav-logo img {
  filter: none;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
}
.nav-links a {
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 10px 18px;
  transition: color 0.3s;
}
/* hero state */
#nav:not(.solid) .nav-links a { color: rgba(247,242,239,0.75); }
#nav:not(.solid) .nav-links a:hover { color: var(--shell); }
/* scrolled state */
#nav.solid .nav-links a { color: var(--coal); }
#nav.solid .nav-links a:hover { color: var(--bark); }
#nav.solid .nav-links a.active { color: var(--bark); }
/* non-hero pages */
#nav.solid-default .nav-links a { color: var(--coal); }
#nav.solid-default .nav-links a:hover { color: var(--bark); }
#nav.solid-default .nav-links a.active { color: var(--bark); }

.nav-cta {
  margin-left: 12px;
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 10px 22px;
  border: 1px solid;
  transition: background 0.3s, color 0.3s, border-color 0.3s;
}
#nav:not(.solid) .nav-cta { border-color: rgba(247,242,239,0.35); color: var(--shell); }
#nav:not(.solid) .nav-cta:hover { background: var(--shell); color: var(--bark) !important; border-color: var(--shell); }
#nav.solid .nav-cta,
#nav.solid-default .nav-cta { border-color: var(--bark); color: var(--bark); }
#nav.solid .nav-cta:hover,
#nav.solid-default .nav-cta:hover { background: var(--bark); color: var(--shell) !important; }

/* Hamburger */
.nav-burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  width: 36px;
  height: 36px;
  padding: 4px;
}
.nav-burger span {
  display: block;
  height: 1px;
  background: var(--coal);
  transition: transform 0.4s var(--ease), opacity 0.4s, background 0.3s;
}
/* Hero page: white hamburger over dark photo */
#nav.hero-page:not(.solid) .nav-burger span { background: var(--shell); }
/* Solid/default pages: dark hamburger on light nav */
#nav.solid .nav-burger span,
#nav.solid-default .nav-burger span { background: var(--coal); }
.nav-burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-burger.open span:nth-child(2) { opacity: 0; }
.nav-burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile drawer */
#nav-drawer {
  position: fixed;
  inset: var(--nav-h) 0 0;
  background: var(--shell);
  z-index: 199;
  display: flex;
  flex-direction: column;
  padding: 40px var(--gutter) 60px;
  transform: translateX(100%);
  transition: transform 0.5s var(--ease);
}
#nav-drawer.open { transform: translateX(0); }
#nav-drawer a {
  font-family: var(--serif);
  font-size: clamp(2rem, 8vw, 3.5rem);
  font-weight: 300;
  color: var(--coal);
  padding: 18px 0;
  border-bottom: 1px solid rgba(194,185,170,0.3);
  transition: color 0.3s;
}
#nav-drawer a:hover { color: var(--bark); }
#nav-drawer .drawer-cta {
  margin-top: 40px;
  align-self: flex-start;
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 14px 28px;
  border-bottom: none;
  color: var(--bark);
  border: 1px solid var(--bark);
}
#nav-drawer .drawer-cta:hover {
  background: var(--bark);
  color: var(--shell) !important;
}

@media (max-width: 860px) {
  .nav-links { display: none; }
  .nav-burger { display: flex; }
}

/* ── HERO ────────────────────────────────── */
.hero {
  position: relative;
  height: 100svh;
  min-height: 600px;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
}

.hero-img-wrap {
  position: absolute;
  inset: -15%;
  will-change: transform;
}
.hero-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(28,28,28,0.82) 0%,
    rgba(28,28,28,0.30) 50%,
    rgba(28,28,28,0.10) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
  padding: 0 var(--gutter) clamp(56px, 8vh, 96px);
  max-width: var(--max);
  margin: 0 auto;
}
.hero-content .eyebrow { margin-bottom: 20px; }
.hero-headline {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(4rem, 9vw, 9rem);
  line-height: 0.92;
  color: var(--shell);
  letter-spacing: -0.02em;
  margin-bottom: 36px;
}
.hero-headline em { font-style: italic; color: var(--stone); }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

.hero-scroll-hint {
  position: absolute;
  bottom: clamp(24px, 4vh, 40px);
  right: var(--gutter);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  opacity: 0.4;
}
.hero-scroll-hint span {
  font-size: 0.58rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--shell);
  writing-mode: vertical-rl;
}
.scroll-line {
  width: 1px;
  height: 56px;
  background: var(--shell);
  transform-origin: top;
  animation: scrollPulse 2.2s ease-in-out infinite;
}
@keyframes scrollPulse {
  0%   { transform: scaleY(0); opacity: 0; }
  40%  { transform: scaleY(1); opacity: 1; }
  100% { transform: scaleY(1); opacity: 0; }
}

/* ── SERVICES STRIP ──────────────────────── */
.services-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-bottom: 1px solid rgba(194,185,170,0.5);
}
.service-item {
  padding: clamp(28px, 4vw, 48px) clamp(24px, 3vw, 40px);
  border-right: 1px solid rgba(194,185,170,0.5);
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.service-item:last-child { border-right: none; }
.service-num {
  font-size: 0.6rem;
  letter-spacing: 0.2em;
  color: var(--stone);
  font-weight: 500;
}
.service-name {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(1.8rem, 3vw, 2.8rem);
  color: var(--coal);
  line-height: 1;
}
.service-desc {
  font-size: 0.8rem;
  color: var(--stone);
  line-height: 1.7;
  max-width: 28ch;
}

@media (max-width: 640px) {
  .services-strip { grid-template-columns: 1fr; }
  .service-item { border-right: none; border-bottom: 1px solid rgba(194,185,170,0.5); }
  .service-item:last-child { border-bottom: none; }
}

/* ── WORK GRID (homepage) ────────────────── */
.work-section { padding: clamp(72px, 10vw, 128px) 0; }
.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  padding: 0 var(--gutter);
  max-width: var(--max);
  margin: 0 auto clamp(36px, 5vw, 56px);
}
.section-head h2 {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(2.4rem, 5vw, 4.5rem);
  line-height: 1;
  margin-top: 10px;
}

/* ── UNIFIED HOMEPAGE WORK GRID ─────────────
   Layout:
   [  Card 1 (tall, spans rows 1+2)  ] [ Card 2 (top right)  ]
   [                                  ] [ Card 3 ] [ Card 4   ]
   ─────────────────────────────────── */
.work-grid-home {
  display: grid;
  grid-template-columns: 55fr 25fr 20fr;
  grid-template-rows: clamp(260px, 30vw, 460px) clamp(200px, 23vw, 360px);
  gap: 4px;
}
.work-card {
  position: relative;
  overflow: hidden;
  display: block;
  cursor: pointer;
  min-height: 0;
}
.wg-1 { grid-column: 1; grid-row: 1 / 3; }
.wg-2 { grid-column: 2 / 4; grid-row: 1; }
.wg-3 { grid-column: 2; grid-row: 2; }
.wg-4 { grid-column: 3; grid-row: 2; }

.work-card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
}
.work-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.1s var(--ease);
  display: block;
}
.work-card:hover img { transform: scale(1.05); }

.work-cap {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(28,28,28,0.7) 0%, transparent 55%);
  display: flex;
  align-items: flex-end;
  padding: clamp(14px, 2vw, 24px);
  opacity: 0;
  transition: opacity 0.5s var(--ease);
}
.work-card:hover .work-cap { opacity: 1; }
.work-cap-text .eyebrow { color: var(--stone); margin-bottom: 5px; }
.work-cap-title {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(1rem, 1.8vw, 1.5rem);
  color: var(--shell);
  line-height: 1.2;
}

/* Tablet */
@media (max-width: 900px) {
  .work-grid-home {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: clamp(220px, 35vw, 360px) clamp(200px, 30vw, 320px);
  }
  .wg-1 { grid-column: 1 / 3; grid-row: 1; }
  .wg-2 { grid-column: 1; grid-row: 2; }
  .wg-3 { grid-column: 2; grid-row: 2; }
  .wg-4 { display: none; }
}
/* Mobile */
@media (max-width: 560px) {
  .work-grid-home {
    grid-template-columns: 1fr;
    grid-template-rows: repeat(3, clamp(200px, 55vw, 320px));
  }
  .wg-1 { grid-column: 1; grid-row: 1; }
  .wg-2 { grid-column: 1; grid-row: 2; }
  .wg-3 { grid-column: 1; grid-row: 3; }
  .wg-4 { display: none; }
}

/* ── ABOUT SPLIT ─────────────────────────── */
.about-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
}
.about-photo {
  position: relative;
  overflow: hidden;
  min-height: 560px;
}
.about-photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
  transition: transform 1.2s var(--ease);
}
.about-split:hover .about-photo img { transform: scale(1.03); }

.about-copy {
  background: var(--coal);
  padding: clamp(56px, 8vw, 96px) clamp(36px, 5vw, 72px);
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.about-copy .eyebrow { margin-bottom: 20px; }
.about-copy h2 {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(2.2rem, 4vw, 4rem);
  color: var(--shell);
  line-height: 1.05;
  margin-bottom: 32px;
}
.about-copy h2 em { font-style: italic; color: var(--stone); }
.about-rule {
  width: 40px;
  height: 1px;
  background: var(--bark);
  margin-bottom: 28px;
}
.about-copy p {
  font-size: 0.9rem;
  line-height: 1.9;
  color: rgba(247,242,239,0.55);
  margin-bottom: 12px;
  max-width: 44ch;
}
.about-copy p:last-of-type { margin-bottom: 40px; }

@media (max-width: 840px) {
  .about-split { grid-template-columns: 1fr; }
  .about-photo { min-height: 300px; }
}

/* ── CTA BAND ────────────────────────────── */
.cta-band {
  background: var(--bark);
  padding: clamp(72px, 10vw, 120px) var(--gutter);
  text-align: center;
}
.cta-band .eyebrow { margin-bottom: 16px; }
.cta-band h2 {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(2.4rem, 5vw, 5rem);
  color: var(--shell);
  line-height: 1;
  margin-bottom: 48px;
}
.cta-band h2 em { font-style: italic; }
.cta-band-actions { display: flex; justify-content: center; gap: 16px; flex-wrap: wrap; }

/* ── PORTFOLIO PAGE ──────────────────────── */
.page-hero {
  padding-top: var(--nav-h);
  padding-bottom: 0;
  background: var(--shell);
}
.page-hero-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(48px, 8vh, 96px) var(--gutter) clamp(36px, 5vh, 64px);
  border-bottom: 1px solid rgba(194,185,170,0.4);
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
}
.page-hero-inner h1 {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(3rem, 7vw, 7rem);
  line-height: 0.95;
  letter-spacing: -0.02em;
}
.page-hero-inner h1 em { font-style: italic; color: var(--stone); }

/* Filter */
.filter-row {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: flex;
  border-bottom: 1px solid rgba(194,185,170,0.4);
}
.filter-btn {
  font-size: 0.65rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 500;
  padding: 20px 24px;
  color: var(--stone);
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  transition: color 0.3s, border-color 0.3s;
  cursor: pointer;
}
.filter-btn:hover { color: var(--coal); }
.filter-btn.active { color: var(--bark); border-bottom-color: var(--bark); }

/* Portfolio grid — 2-col */
.port-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2px;
  background: rgba(194,185,170,0.3);
}
.port-item {
  position: relative;
  overflow: hidden;
  background: var(--shell);
  cursor: pointer;
}
.port-item-inner { aspect-ratio: 4/3; position: relative; overflow: hidden; }
.port-item-inner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.1s var(--ease);
}
.port-item:hover .port-item-inner img { transform: scale(1.06); }
.port-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(28,28,28,0.68) 0%, transparent 55%);
  display: flex;
  align-items: flex-end;
  padding: 24px 28px;
  opacity: 0;
  transition: opacity 0.45s var(--ease);
}
.port-item:hover .port-overlay { opacity: 1; }
.port-overlay .eyebrow { color: var(--stone); margin-bottom: 6px; }
.port-overlay-title {
  font-family: var(--serif);
  font-weight: 300;
  font-size: 1.5rem;
  color: var(--shell);
  line-height: 1.15;
}
.port-item.hidden { display: none; }

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

/* ── CONTRACTORS PAGE ────────────────────── */
.contr-intro {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(64px, 10vw, 128px) var(--gutter);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 96px);
  align-items: start;
}
.contr-intro h2 {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(2.4rem, 4.5vw, 5rem);
  line-height: 0.95;
  letter-spacing: -0.02em;
}
.contr-intro h2 em { font-style: italic; color: var(--stone); }
.contr-intro p {
  font-size: 0.9rem;
  line-height: 1.9;
  color: rgba(28,28,28,0.6);
  margin-bottom: 14px;
}
.contr-intro p:last-of-type { margin-bottom: 32px; }

@media (max-width: 768px) {
  .contr-intro { grid-template-columns: 1fr; }
}

/* Contractors banner photo */
.contr-banner {
  width: 100%;
  height: clamp(280px, 40vw, 540px);
  overflow: hidden;
  position: relative;
}
.contr-banner img {
  width: 100%;
  height: 115%;
  object-fit: cover;
  object-position: center 30%;
  will-change: transform;
}

/* Dark process section */
.process-section {
  background: var(--coal);
  padding: clamp(72px, 10vw, 120px) var(--gutter);
}
.process-section .eyebrow { margin-bottom: 16px; }
.process-section > .wrap > h2 {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(2.2rem, 4vw, 4rem);
  color: var(--shell);
  line-height: 1.05;
  margin-bottom: clamp(48px, 7vw, 80px);
}
.process-section > .wrap > h2 em { font-style: italic; color: var(--stone); }

.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: rgba(194,185,170,0.12);
}
.step {
  background: var(--coal);
  padding: clamp(36px, 5vw, 56px) clamp(28px, 4vw, 48px);
}
.step-n {
  font-family: var(--serif);
  font-size: clamp(4rem, 7vw, 7rem);
  font-weight: 300;
  color: rgba(194,185,170,0.15);
  line-height: 1;
  margin-bottom: 24px;
  display: block;
}
.step h3 {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(1.4rem, 2.5vw, 2rem);
  color: var(--shell);
  margin-bottom: 16px;
}
.step p {
  font-size: 0.82rem;
  line-height: 1.85;
  color: rgba(247,242,239,0.45);
}

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

/* Project types */
.types-section {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(64px, 8vw, 96px) var(--gutter);
}
.types-section .eyebrow { margin-bottom: 16px; }
.types-section h2 {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(2rem, 3.5vw, 3.5rem);
  margin-bottom: clamp(36px, 5vw, 56px);
  margin-top: 10px;
}
.types-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-top: 1px solid rgba(194,185,170,0.4);
}
.type-item {
  padding: 20px 0;
  border-bottom: 1px solid rgba(194,185,170,0.4);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.9rem;
}
.type-item:nth-child(odd)  { padding-right: 48px; border-right: 1px solid rgba(194,185,170,0.4); }
.type-item:nth-child(even) { padding-left: 48px; }
.type-tag {
  font-size: 0.58rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--stone);
}
@media (max-width: 580px) {
  .types-grid { grid-template-columns: 1fr; }
  .type-item:nth-child(odd)  { padding-right: 0; border-right: none; }
  .type-item:nth-child(even) { padding-left: 0; }
}

/* ── CONTACT PAGE ────────────────────────── */
.contact-layout {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(64px, 8vw, 96px) var(--gutter) clamp(80px, 12vw, 140px);
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: clamp(48px, 8vw, 120px);
}
.contact-info .eyebrow { margin-bottom: 16px; }
.contact-info h2 {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(2.2rem, 4vw, 4rem);
  line-height: 1;
  margin-bottom: 48px;
  margin-top: 10px;
}
.contact-info h2 em { font-style: italic; color: var(--stone); }

.contact-detail { margin-bottom: 36px; }
.contact-detail-label {
  font-size: 0.6rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--stone);
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
}
.contact-detail p,
.contact-detail a {
  font-size: 0.9rem;
  color: var(--coal);
  line-height: 1.7;
}
.contact-detail a { transition: color 0.3s; }
.contact-detail a:hover { color: var(--bark); }

@media (max-width: 840px) {
  .contact-layout { grid-template-columns: 1fr; }
}

/* Form */
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 32px; }
@media (max-width: 600px) { .form-row { grid-template-columns: 1fr; } }

.form-group { margin-bottom: 40px; }
.form-label {
  display: block;
  font-size: 0.6rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--stone);
  margin-bottom: 12px;
}
.form-input {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(194,185,170,0.6);
  padding: 8px 0 12px;
  font-size: 0.95rem;
  font-family: var(--sans);
  color: var(--coal);
  outline: none;
  border-radius: 0;
  -webkit-appearance: none;
  transition: border-color 0.3s;
}
.form-input:focus { border-bottom-color: var(--bark); }
.form-input::placeholder { color: rgba(194,185,170,0.7); }
select.form-input { cursor: pointer; background: transparent; }
textarea.form-input { resize: none; min-height: 100px; line-height: 1.7; }

/* ── FOOTER ──────────────────────────────── */
footer {
  background: var(--coal);
  padding: clamp(56px, 8vw, 96px) var(--gutter) 36px;
}
.footer-inner {
  max-width: var(--max);
  margin: 0 auto;
}
.footer-top {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap: 56px;
  padding-bottom: 56px;
  border-bottom: 1px solid rgba(194,185,170,0.1);
}
.footer-logo img { height: 28px; width: auto; margin-bottom: 20px; filter: brightness(0) invert(1); opacity: 0.5; }
.footer-tagline {
  font-size: 0.8rem;
  color: rgba(194,185,170,0.35);
  line-height: 1.7;
}
.footer-col-label {
  font-size: 0.58rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(194,185,170,0.25);
  display: block;
  margin-bottom: 20px;
  font-weight: 500;
}
.footer-col ul { display: flex; flex-direction: column; gap: 14px; }
.footer-col a {
  font-size: 0.82rem;
  color: rgba(247,242,239,0.45);
  transition: color 0.3s;
}
.footer-col a:hover { color: var(--shell); }

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 32px;
  gap: 16px;
  flex-wrap: wrap;
}
.footer-copy { font-size: 0.68rem; color: rgba(194,185,170,0.2); }
.footer-social { display: flex; gap: 20px; }
.footer-social a {
  font-size: 0.62rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(247,242,239,0.25);
  transition: color 0.3s;
}
.footer-social a:hover { color: var(--shell); }

@media (max-width: 840px) {
  .footer-top { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 500px) {
  .footer-top { grid-template-columns: 1fr; gap: 36px; }
}

/* ── SCROLL ANIMATIONS ───────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(36px);
  transition: opacity 0.85s var(--ease), transform 0.85s var(--ease);
}
.reveal.visible { opacity: 1; transform: none; }
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }
.reveal-left {
  opacity: 0;
  transform: translateX(-28px);
  transition: opacity 0.85s var(--ease), transform 0.85s var(--ease);
}
.reveal-left.visible { opacity: 1; transform: none; }
.reveal-right {
  opacity: 0;
  transform: translateX(28px);
  transition: opacity 0.85s var(--ease), transform 0.85s var(--ease);
}
.reveal-right.visible { opacity: 1; transform: none; }

/* =============================================
   MOBILE OPTIMIZATIONS
   ============================================= */

/* Work section — remove bottom padding on mobile to close gap before about */
@media (max-width: 768px) {
  .work-section { padding-bottom: 0; }
}

/* Hero — smaller headline on very small screens */
@media (max-width: 480px) {
  .hero-headline {
    font-size: clamp(2.8rem, 12vw, 4rem);
  }
  .hero-content {
    padding-bottom: 72px;
  }
  .hero-actions {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
  .hero-actions .btn {
    width: auto;
  }
}

/* Services strip — tighter on mobile */
@media (max-width: 640px) {
  .service-item { padding: 28px 20px; }
  .service-name { font-size: 1.8rem; }
}

/* Section head — stack on mobile */
@media (max-width: 560px) {
  .section-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
    padding: 0 var(--gutter);
  }
}

/* About split — image height on mobile */
@media (max-width: 840px) {
  .about-photo { min-height: 280px; }
  .about-copy { padding: 40px 28px; }
  .about-copy h2 { font-size: 2.4rem; }
}

/* CTA band — tighter on mobile */
@media (max-width: 560px) {
  .cta-band-actions {
    flex-direction: column;
    align-items: center;
  }
  .cta-band-actions .btn { width: 100%; max-width: 280px; justify-content: center; }
}

/* Portfolio grid — single col on small mobile */
@media (max-width: 480px) {
  .port-grid { grid-template-columns: 1fr; }
  .port-item-inner { aspect-ratio: 3/2; }
}

/* Filter row — wrap on mobile */
@media (max-width: 480px) {
  .filter-btn { padding: 16px 14px; font-size: 0.6rem; }
}

/* Page hero — mobile */
@media (max-width: 560px) {
  .page-hero-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 28px;
  }
  .page-hero-inner h1 { font-size: 3rem; }
}

/* Contractors process steps */
@media (max-width: 560px) {
  .step { padding: 32px 24px; }
  .step-n { font-size: 4rem; }
}

/* Contact form */
@media (max-width: 480px) {
  .contact-layout { padding-top: 48px; }
  .contact-info h2 { font-size: 2.4rem; margin-bottom: 32px; }
}

/* Nav drawer — ensure full height on mobile */
@media (max-width: 860px) {
  #nav-drawer {
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }
  .drawer-cta { font-size: 0.72rem; padding: 14px 28px; }
}

/* Footer — tighten on small mobile */
@media (max-width: 480px) {
  .footer-bottom {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }
  .footer-copy { font-size: 0.6rem; }
}

/* Prevent horizontal overflow sitewide */
html, body { overflow-x: hidden; }
