/* ============================================================
   JONES HOME & REPAIRS — style.css
   ============================================================ */

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

:root {
  --black:      #0d0c0b;
  --charcoal:   #1c1a17;
  --brown:      #2e2318;
  --tan:        #b8965a;
  --gold:       #d4a853;
  --cream:      #f0e8d8;
  --white:      #faf7f2;
  --rust:       #8b3a1f;
  --stone:      #9e9389;
  --font-display: 'Oswald', sans-serif;
  --font-body:    'Libre Baskerville', serif;
  --font-mono:    'IBM Plex Mono', monospace;
}

html { scroll-behavior: smooth; }

body {
  background-color: var(--black);
  color: var(--cream);
  font-family: var(--font-body);
  overflow-x: hidden;
}

/* ── FIXED BACKGROUND ─────────────────────────────────────
   background-attachment:fixed breaks on iOS Safari — use a
   pseudo-element on body instead so it works on all devices. */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -2;
  background: url('assets/bg.jpg') center center / cover no-repeat;
  /* No dark overlay here — sections and hero handle their own haze */
  filter: brightness(0.85);
}

/* Fallback solid so nothing is ever pure white */
.fixed-bg { display: none; }

/* ── NAV ───────────────────────────────────────────────── */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.6rem 3rem;
  background: linear-gradient(to bottom, rgba(13,12,11,0.92), transparent);
  transition: background 0.3s;
}

nav.scrolled {
  background: rgba(13,12,11,0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(212,168,83,0.18);
}

.nav-logo-img {
  height: 48px;
  width: auto;
  display: block;
  object-fit: contain;
}

.nav-links {
  display: flex;
  gap: 2.5rem;
  list-style: none;
}

.nav-links a {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--cream);
  text-decoration: none;
  opacity: 0.75;
  transition: opacity 0.2s, color 0.2s;
}

.nav-links a:hover { opacity: 1; color: var(--gold); }

.nav-cta {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--black);
  background: var(--gold);
  padding: 0.6rem 1.4rem;
  text-decoration: none;
  font-weight: 500;
  transition: background 0.2s, transform 0.1s;
}

.nav-cta:hover { background: var(--tan); transform: translateY(-1px); }

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
  background: none;
  border: none;
}

.hamburger span {
  display: block;
  width: 26px;
  height: 2px;
  background: var(--gold);
  transition: all 0.3s;
}

.mobile-menu {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(13,12,11,0.97);
  z-index: 99;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2.5rem;
}

.mobile-menu.open { display: flex; }

.mobile-menu a {
  font-family: var(--font-display);
  font-size: 2.2rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--cream);
  text-decoration: none;
  transition: color 0.2s;
}

.mobile-menu a:hover { color: var(--gold); }

.mobile-close {
  position: absolute;
  top: 1.5rem; right: 2rem;
  font-size: 1.8rem;
  color: var(--gold);
  cursor: pointer;
  background: none;
  border: none;
  font-family: var(--font-display);
  font-weight: 700;
}

/* ── HERO ──────────────────────────────────────────────────
   Tightened top padding so hero text sits higher on mobile. */
#hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: flex-end;
  padding: 0 4rem 7rem;
  overflow: hidden;
}

/* Gradient fade at bottom of hero so text is readable */
#hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(13,12,11,0.88) 0%,
    rgba(13,12,11,0.3) 50%,
    transparent 100%
  );
  pointer-events: none;
  z-index: 0;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
}

.hero-eyebrow {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.35em;
  color: var(--gold);
  text-transform: uppercase;
  margin-bottom: 1.2rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  animation: fadeUp 0.7s ease 0.2s both;
}

.hero-eyebrow::before {
  content: '';
  display: block;
  width: 40px;
  height: 1px;
  background: var(--gold);
  flex-shrink: 0;
}

.hero-h1 {
  font-family: var(--font-display);
  font-size: clamp(3rem, 8vw, 7.5rem);
  font-weight: 700;
  line-height: 0.92;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 1.2rem;
  animation: fadeUp 0.7s ease 0.4s both;
}

.hero-h1 em {
  font-style: normal;
  color: var(--gold);
  display: block;
}

.hero-sub {
  font-size: 1rem;
  line-height: 1.7;
  color: rgba(240,232,216,0.95);
  max-width: 520px;
  margin-bottom: 2rem;
  animation: fadeUp 0.7s ease 0.6s both;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  align-items: center;
  animation: fadeUp 0.7s ease 0.8s both;
}

.btn-primary {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--black);
  background: var(--gold);
  padding: 1rem 2.2rem;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.2s;
  display: inline-block;
}

.btn-primary:hover { background: var(--tan); transform: translateY(-2px); }

.btn-ghost {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--cream);
  border: 1px solid rgba(240,232,216,0.35);
  padding: 1rem 2.2rem;
  text-decoration: none;
  transition: all 0.2s;
  display: inline-block;
}

.btn-ghost:hover { border-color: var(--gold); color: var(--gold); }

/* ── HERO STATS BAR ────────────────────────────────────── */
.hero-stats {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  display: flex;
  z-index: 1;
  /* Solid dark base with gold top rule */
  border-top: 1px solid rgba(212,168,83,0.5);
  background: rgba(8,7,6,0.75);
}

.hero-stat {
  flex: 1;
  padding: 1.4rem 2rem;
  border-right: 1px solid rgba(212,168,83,0.15);
  position: relative;
  overflow: hidden;
  transition: background 0.3s;
}

/* Gold top accent that slides in on hover */
.hero-stat::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s ease;
}

.hero-stat:hover { background: rgba(46,35,24,0.5); }
.hero-stat:hover::before { transform: scaleX(1); }
.hero-stat:last-child { border-right: none; }

.hero-stat-num {
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--gold);
  line-height: 1;
  letter-spacing: -0.02em;
}

.hero-stat-label {
  font-family: var(--font-mono);
  font-size: 0.58rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: rgba(240,232,216,0.75);
  margin-top: 0.4rem;
}

/* ── CAROUSEL STRIP ────────────────────────────────────── */
.carousel-strip {
  position: relative;
  z-index: 1;
  overflow: hidden;
  background: rgba(8,7,6,0.72);
  /* Double gold border — top and bottom with gap */
  border-top: 1px solid rgba(212,168,83,0.55);
  border-bottom: 1px solid rgba(212,168,83,0.55);
  /* Inner shadow to give depth */
  box-shadow:
    inset 0 1px 0 rgba(212,168,83,0.08),
    inset 0 -1px 0 rgba(212,168,83,0.08);
}

/* Fade edges so text dissolves into background */
.carousel-strip::before,
.carousel-strip::after {
  content: '';
  position: absolute;
  top: 0; bottom: 0;
  width: 120px;
  z-index: 2;
  pointer-events: none;
}

.carousel-strip::before {
  left: 0;
  background: linear-gradient(to right, rgba(8,7,6,0.9), transparent);
}

.carousel-strip::after {
  right: 0;
  background: linear-gradient(to left, rgba(8,7,6,0.9), transparent);
}

.carousel-track {
  display: flex;
  align-items: center;
  white-space: nowrap;
  animation: marquee 40s linear infinite;
  width: max-content;
  padding: 1.1rem 0;
}

.carousel-track span {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--cream);
  opacity: 0.6;
  padding: 0 2.5rem;
  display: inline-block;
  transition: opacity 0.2s;
}

.carousel-track span:hover { opacity: 1; }

.carousel-track .dot {
  color: var(--gold);
  font-size: 0.4rem;
  opacity: 0.8;
  padding: 0;
  vertical-align: middle;
  flex-shrink: 0;
}

@keyframes marquee {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.carousel-strip:hover .carousel-track { animation-play-state: paused; }

/* ── SECTION BREAKS ────────────────────────────────────── */
.section-break {
  position: relative;
  z-index: 1;
  height: 100px;
  background: transparent;
}

.section-break::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 50px;
  height: 1px;
  background: rgba(212,168,83,0.35);
}

/* ── SECTION BASE ──────────────────────────────────────── */
section { position: relative; z-index: 1; }

section.panel {
  background: rgba(10,9,8,0.48);
}

.section-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.section-eyebrow {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.35em;
  color: var(--gold);
  text-transform: uppercase;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.section-eyebrow::before {
  content: '';
  display: block;
  width: 30px;
  height: 1px;
  background: var(--gold);
  flex-shrink: 0;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 5vw, 4rem);
  font-weight: 700;
  text-transform: uppercase;
  line-height: 0.95;
  color: var(--white);
  margin-bottom: 1.5rem;
}

/* ── SERVICES ──────────────────────────────────────────── */
#services { padding: 6rem 0; }

.services-header {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: end;
  margin-bottom: 4rem;
}

.services-desc {
  font-size: 1rem;
  line-height: 1.8;
  color: rgba(240,232,216,0.88);
  align-self: end;
}

/* Sharp grid — gold dividers */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border: 1px solid rgba(212,168,83,0.25);
}

.service-card {
  background: rgba(8,7,6,0.55);
  padding: 2.2rem 2rem 2rem 2.2rem;
  border-right: 1px solid rgba(212,168,83,0.15);
  border-bottom: 1px solid rgba(212,168,83,0.15);
  position: relative;
  overflow: hidden;
  transition: background 0.3s;
}

/* Gold left accent bar slides down on hover */
.service-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 3px;
  height: 0;
  background: linear-gradient(to bottom, var(--gold), rgba(212,168,83,0.2));
  transition: height 0.4s ease;
}

.service-card:hover { background: rgba(46,35,24,0.65); }
.service-card:hover::before { height: 100%; }

/* Number — large, gold, clearly readable */
.service-card::after {
  content: attr(data-num);
  position: absolute;
  top: 1rem;
  right: 1.2rem;
  font-family: var(--font-display);
  font-size: 3.2rem;
  font-weight: 700;
  color: rgba(212,168,83,0.25);
  line-height: 1;
  pointer-events: none;
  transition: color 0.3s;
}

.service-card:hover::after {
  color: rgba(212,168,83,0.45);
}

/* Gold underline beneath icon */
.service-icon {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  display: block;
  padding-bottom: 0.8rem;
  border-bottom: 1px solid rgba(212,168,83,0.25);
  width: fit-content;
}

.service-name {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--white);
  margin-bottom: 0.5rem;
  margin-top: 0.6rem;
}

.service-desc {
  font-size: 0.82rem;
  line-height: 1.75;
  color: rgba(240,232,216,0.85);
}

/* ── PROJECTS ──────────────────────────────────────────── */
#projects { padding: 6rem 0; }

.projects-intro {
  font-size: 1rem;
  line-height: 1.8;
  color: rgba(240,232,216,0.88);
  max-width: 600px;
  margin-bottom: 2.5rem;
}

/* Tabs */
.project-tabs {
  display: flex;
  margin-bottom: 2.5rem;
  border: 1px solid rgba(212,168,83,0.2);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  position: relative;
  z-index: 2;
}

.tab-btn {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--stone);
  background: rgba(13,12,11,0.5);
  border: none;
  padding: 1rem 2rem;
  cursor: pointer;
  transition: all 0.2s;
  flex: 1;
  white-space: nowrap;
  border-right: 1px solid rgba(212,168,83,0.15);
  /* Ensure tappable on mobile */
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

.tab-btn:last-child { border-right: none; }
.tab-btn:hover { color: var(--cream); background: rgba(46,35,24,0.6); }
.tab-btn.active { color: var(--black); background: var(--gold); }

/* Panels — never use reveal class on panels themselves */
.project-panel { display: none; }
.project-panel.active { display: block; }

.project-layout {
  display: grid;
  grid-template-columns: 3fr 2fr;
  gap: 3rem;
  align-items: start;
}

.project-gallery { display: flex; flex-direction: column; gap: 1rem; }

.gallery-main {
  width: 100%;
  aspect-ratio: 16/10;
  overflow: hidden;
  background: rgba(46,35,24,0.4);
  border: 1px solid rgba(212,168,83,0.12);
}

.gallery-main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: opacity 0.25s ease;
}

.gallery-thumbs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.6rem;
}

.thumb {
  aspect-ratio: 1/1;
  overflow: hidden;
  cursor: pointer;
  border: 2px solid transparent;
  transition: border-color 0.2s;
  background: rgba(46,35,24,0.4);
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

.thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}

.thumb:hover img { transform: scale(1.06); }
.thumb.active { border-color: var(--gold); }

.project-info {
  background: rgba(13,12,11,0.4);
  border: 1px solid rgba(212,168,83,0.1);
  border-left: 3px solid var(--gold);
  padding: 2rem;
}

.project-tag {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.8rem;
}

.project-title {
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 3vw, 2.5rem);
  font-weight: 700;
  text-transform: uppercase;
  line-height: 1;
  color: var(--white);
  margin-bottom: 1rem;
}

.project-body {
  font-size: 0.92rem;
  line-height: 1.8;
  color: rgba(240,232,216,0.88);
  margin-bottom: 1.8rem;
}

.project-details { border-top: 1px solid rgba(107,98,87,0.25); }

.project-detail-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.7rem 0;
  border-bottom: 1px solid rgba(107,98,87,0.15);
}

.detail-label {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--stone);
}

.detail-val {
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--cream);
}

/* ── PROCESS ───────────────────────────────────────────── */
#process { padding: 6rem 0; }

.process-header { text-align: center; }

.process-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  margin-top: 4rem;
  background: rgba(212,168,83,0.18);
  border: 1px solid rgba(212,168,83,0.25);
}

.process-step {
  padding: 3rem 2rem;
  text-align: center;
  background: rgba(8,7,6,0.55);
  position: relative;
  transition: background 0.3s;
  overflow: hidden;
}

.process-step:hover { background: rgba(46,35,24,0.65); }

/* Gold top accent bar on hover */
.process-step::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(to right, transparent, var(--gold), transparent);
  transform: scaleX(0);
  transition: transform 0.4s ease;
}

.process-step:hover::before { transform: scaleX(1); }

/* Large visible gold number */
.step-num {
  font-family: var(--font-display);
  font-size: 4.5rem;
  font-weight: 700;
  color: rgba(212,168,83,0.3);
  line-height: 1;
  margin-bottom: 1rem;
  display: block;
  transition: color 0.3s;
  letter-spacing: -0.02em;
}

.process-step:hover .step-num {
  color: rgba(212,168,83,0.55);
}

.step-title {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--gold);
  margin-bottom: 1rem;
  padding-bottom: 0.8rem;
  border-bottom: 1px solid rgba(212,168,83,0.2);
}

.step-desc {
  font-size: 0.84rem;
  line-height: 1.8;
  color: rgba(240,232,216,0.85);
}

/* ── ABOUT ─────────────────────────────────────────────── */
#about { padding: 6rem 0; }

.about-wrap {
  display: grid;
  grid-template-columns: 5fr 4fr;
  gap: 6rem;
  align-items: center;
}

.about-body {
  font-size: 1rem;
  line-height: 1.9;
  color: rgba(240,232,216,0.9);
  margin-bottom: 1.5rem;
}

.about-body strong { color: var(--gold); font-weight: 700; }

.about-image-block { position: relative; }

.about-img-frame {
  width: 100%;
  aspect-ratio: 3/4;
  background: var(--brown);
  border: 1px solid rgba(212,168,83,0.2);
  overflow: hidden;
  position: relative;
}

.about-img-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(15%) brightness(0.78);
}

.about-img-frame::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(212,168,83,0.1), transparent 60%);
}

.about-accent-box {
  position: absolute;
  bottom: -2rem;
  left: -2rem;
  background: var(--gold);
  color: var(--black);
  padding: 1.5rem 2rem;
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  line-height: 1.4;
}

/* ── CONTACT ───────────────────────────────────────────── */
#contact { padding: 6rem 0; border-top: none; }

.contact-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6rem;
  align-items: start;
}

.contact-tagline {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 700;
  text-transform: uppercase;
  line-height: 1;
  color: var(--white);
  margin-bottom: 2rem;
}

.contact-tagline em { color: var(--gold); font-style: normal; display: block; }

.contact-info { margin-top: 3rem; }

.contact-row {
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
  padding: 1rem 0;
  border-bottom: 1px solid rgba(107,98,87,0.2);
}

.contact-row:first-child { border-top: 1px solid rgba(107,98,87,0.2); }
.contact-icon { font-size: 1rem; color: var(--gold); flex-shrink: 0; margin-top: 2px; }

.contact-detail-label {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--stone);
  margin-bottom: 0.3rem;
}

.contact-detail-val { font-size: 0.95rem; color: var(--cream); }
.contact-detail-val a { color: var(--cream); text-decoration: none; transition: color 0.2s; }
.contact-detail-val a:hover { color: var(--gold); }

.contact-form { display: flex; flex-direction: column; gap: 1.1rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
.form-field { display: flex; flex-direction: column; gap: 0.45rem; }

.form-field label {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--stone);
}

.form-field input,
.form-field select,
.form-field textarea {
  background: rgba(13,12,11,0.55);
  border: 1px solid rgba(107,98,87,0.4);
  color: var(--cream);
  font-family: var(--font-body);
  font-size: 0.9rem;
  padding: 0.85rem 1rem;
  outline: none;
  transition: border-color 0.2s;
  width: 100%;
  -webkit-appearance: none;
  appearance: none;
}

.form-field select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23b8965a' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus { border-color: var(--gold); }

.form-field textarea { resize: vertical; min-height: 120px; }

.form-field input::placeholder,
.form-field textarea::placeholder { color: rgba(107,98,87,0.55); font-size: 0.85rem; }

.form-field option { background: var(--charcoal); }

.form-submit {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--black);
  background: var(--gold);
  border: none;
  padding: 1rem 2rem;
  cursor: pointer;
  font-weight: 500;
  transition: all 0.2s;
  width: 100%;
  margin-top: 0.5rem;
}

.form-submit:hover { background: var(--tan); transform: translateY(-1px); }

/* ── FOOTER ────────────────────────────────────────────── */
footer {
  background: rgba(13,12,11,0.9);
  border-top: 1px solid rgba(212,168,83,0.15);
  padding: 2.5rem 3rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.5rem;
  position: relative;
  z-index: 1;
}

.footer-logo {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--gold);
  text-transform: uppercase;
}

.footer-copy {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.15em;
  color: var(--stone);
  text-transform: uppercase;
}

.footer-links { display: flex; gap: 2rem; list-style: none; }

.footer-links a {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--stone);
  text-decoration: none;
  transition: color 0.2s;
}

.footer-links a:hover { color: var(--gold); }

/* ── ANIMATIONS ────────────────────────────────────────── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Reveal: visible by default, JS adds .animate to opt into animation */
.reveal { opacity: 1; transform: none; }

.reveal.animate {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.animate.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── RESPONSIVE ────────────────────────────────────────── */
@media (max-width: 1024px) {
  .project-layout { grid-template-columns: 1fr; gap: 2rem; }
  .about-wrap { grid-template-columns: 1fr; gap: 3rem; }
  .about-image-block { max-width: 420px; }
}

@media (max-width: 900px) {
  nav { padding: 0.5rem 1.5rem; }
  .nav-links, .nav-cta { display: none; }
  .hamburger { display: flex; }

  /* Hero: tighter top gap on mobile */
  #hero { padding: 0 1.5rem 8rem; min-height: 100svh; }
  .hero-stats { flex-wrap: wrap; }
  .hero-stat { flex: 1 1 50%; padding: 1rem 1.2rem; }

  .services-header { grid-template-columns: 1fr; gap: 1.2rem; margin-bottom: 2.5rem; }
  .services-grid { grid-template-columns: 1fr 1fr; }

  .process-steps { grid-template-columns: 1fr 1fr; }

  .contact-wrap { grid-template-columns: 1fr; gap: 3rem; }
  .form-row { grid-template-columns: 1fr; }

  footer { flex-direction: column; align-items: flex-start; padding: 2rem 1.5rem; }
  .section-inner { padding: 0 1.5rem; }
  #services, #projects, #process, #about, #contact { padding: 4rem 0; }
  .section-break { height: 70px; }
}

@media (max-width: 640px) {
  /* Single column services on small phones */
  .services-grid { grid-template-columns: 1fr; }
  .process-steps { grid-template-columns: 1fr; }
  .hero-stats { display: none; }
  .hero-h1 { font-size: 2.8rem; }
  .tab-btn { padding: 0.9rem 0.8rem; font-size: 0.62rem; letter-spacing: 0.12em; }
  .gallery-thumbs { gap: 0.4rem; }

  /* On very small screens, tighten section breaks */
  .section-break { height: 50px; }
}
