/* ============================================================
   Foley Homes LLC — Redesign
   Palette drawn from their portfolio: warm plaster whites,
   deep vanity navy, brushed brass, walnut & butcher block.
   ============================================================ */

:root {
  --ink: #23262b;
  --ink-soft: #4b4f56;
  --paper: #fbfaf7;
  --cream: #f3efe7;
  --line: #e5e0d5;
  --navy: #334059;
  --navy-deep: #232c3f;
  --brass: #ab8a56;
  --brass-soft: #c9ad82;
  --serif: "Cormorant Garamond", "Times New Roman", serif;
  --sans: "Jost", "Avenir Next", "Helvetica Neue", sans-serif;
  --shadow: 0 18px 50px -18px rgba(35, 38, 43, 0.28);
  --radius: 6px;
}

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

html { scroll-behavior: smooth; }

html, body { overflow-x: clip; }

body {
  font-family: var(--sans);
  font-weight: 300;
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

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

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

/* ---------- Type ---------- */

h1, h2, h3 { font-family: var(--serif); font-weight: 500; line-height: 1.15; }

.kicker {
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 400;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--brass);
  margin-bottom: 1rem;
}

.section-title { font-size: clamp(2rem, 4vw, 2.9rem); margin-bottom: 1.1rem; }

.lede { font-size: 1.15rem; color: var(--ink-soft); max-width: 62ch; }

.center { text-align: center; }
.center .lede { margin: 0 auto; }

/* ---------- Layout ---------- */

.wrap { max-width: 1180px; margin: 0 auto; padding: 0 clamp(1.25rem, 4vw, 2.5rem); }

section { padding: clamp(4rem, 8vw, 7rem) 0; }

.section-cream { background: var(--cream); }

/* ---------- Header ---------- */

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  padding: 1.1rem 0;
  transition: background 0.35s ease, box-shadow 0.35s ease, padding 0.35s ease;
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.site-header.scrolled {
  background: rgba(251, 250, 247, 0.94);
  backdrop-filter: blur(10px);
  box-shadow: 0 1px 0 var(--line);
  padding: 0.65rem 0;
}

.brand { display: flex; align-items: center; gap: 0.7rem; }

.brand svg { display: block; }

.brand-name {
  font-family: var(--sans);
  font-weight: 300;
  font-size: 1.22rem;
  letter-spacing: 0.32em;
  text-transform: none;
  white-space: nowrap;
}

/* Header starts transparent over hero on the home page */
.header-on-hero:not(.scrolled) { color: #fff; }
.header-on-hero:not(.scrolled) .brand svg .stroke { stroke: #fff; }
.header-on-hero:not(.scrolled) .nav-toggle span { background: #fff; }

.site-header:not(.header-on-hero) { background: rgba(251, 250, 247, 0.94); box-shadow: 0 1px 0 var(--line); }

.main-nav { display: flex; align-items: center; gap: clamp(1.1rem, 2.4vw, 2rem); }

.main-nav a {
  font-size: 0.82rem;
  font-weight: 400;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  opacity: 0.85;
  transition: opacity 0.2s;
  padding: 0.3rem 0;
  border-bottom: 1px solid transparent;
}

.main-nav a:hover { opacity: 1; }
.main-nav a.active { border-bottom-color: var(--brass); opacity: 1; }

.nav-cta {
  border: 1px solid currentColor;
  padding: 0.55rem 1.3rem !important;
  border-radius: 2px;
  transition: background 0.25s, color 0.25s, border-color 0.25s;
}

.nav-cta:hover { background: var(--brass); border-color: var(--brass); color: #fff !important; }

.nav-toggle {
  display: none;
  background: none;
  border: 0;
  cursor: pointer;
  width: 30px;
  height: 22px;
  position: relative;
  z-index: 110;
}

.nav-toggle span {
  position: absolute;
  left: 0;
  width: 100%;
  height: 1.5px;
  background: var(--ink);
  transition: transform 0.3s, opacity 0.3s, top 0.3s;
}

.nav-toggle span:nth-child(1) { top: 2px; }
.nav-toggle span:nth-child(2) { top: 10px; }
.nav-toggle span:nth-child(3) { top: 18px; }

/* ---------- Hero (video-style Ken Burns rotator) ---------- */

.hero {
  position: relative;
  height: 100svh;
  min-height: 620px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #fff;
  overflow: hidden;
  padding: 0;
}

.hero-slides, .hero-slide { position: absolute; inset: 0; }

.hero-slide {
  background-size: cover;
  background-position: center;
  opacity: 0;
  transform: scale(1);
  transition: opacity 1.8s ease;
  will-change: transform, opacity;
}

.hero-slide.active {
  opacity: 1;
  animation: kenburns 9s ease-out forwards;
}

@keyframes kenburns {
  from { transform: scale(1); }
  to   { transform: scale(1.09); }
}

.hero video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-scrim {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at center, rgba(20, 23, 30, 0.38) 0%, rgba(20, 23, 30, 0.12) 65%),
    linear-gradient(180deg, rgba(20, 23, 30, 0.55) 0%, rgba(20, 23, 30, 0.34) 40%, rgba(20, 23, 30, 0.66) 100%);
}

.hero-content { position: relative; z-index: 2; max-width: 880px; padding: 0 1.5rem; }

.hero-mark { margin: 0 auto 1.6rem; opacity: 0.95; }

.hero h1 {
  font-size: clamp(2.6rem, 6.2vw, 4.6rem);
  font-weight: 500;
  letter-spacing: 0.01em;
  text-shadow: 0 2px 30px rgba(0, 0, 0, 0.35);
}

.hero h1 em { font-style: italic; color: var(--brass-soft); }

.hero p {
  margin: 1.3rem auto 2.4rem;
  max-width: 56ch;
  font-size: clamp(1rem, 1.6vw, 1.2rem);
  font-weight: 300;
  letter-spacing: 0.04em;
  opacity: 0.94;
}

.hero-ctas { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

.hero-scroll {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  font-size: 0.68rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  opacity: 0.75;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.55rem;
  color: #fff;
}

.hero-scroll::after {
  content: "";
  width: 1px;
  height: 42px;
  background: linear-gradient(#fff, transparent);
  animation: drip 2.2s ease-in-out infinite;
}

@keyframes drip {
  0%, 100% { transform: scaleY(0.4); transform-origin: top; opacity: 0.4; }
  50% { transform: scaleY(1); opacity: 1; }
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-block;
  font-family: var(--sans);
  font-size: 0.8rem;
  font-weight: 400;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  padding: 0.95rem 2.2rem;
  border-radius: 2px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.25s, color 0.25s, border-color 0.25s, transform 0.2s;
}

.btn:active { transform: translateY(1px); }

.btn-solid { background: var(--brass); color: #fff; }
.btn-solid:hover { background: #96773f; }

.btn-outline { border-color: rgba(255, 255, 255, 0.75); color: #fff; }
.btn-outline:hover { background: #fff; color: var(--ink); }

.btn-dark { background: var(--navy-deep); color: #fff; }
.btn-dark:hover { background: var(--navy); }

.btn-ghost { border-color: var(--ink); color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: #fff; }

/* ---------- Intro split ---------- */

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2.5rem, 6vw, 5.5rem);
  align-items: center;
}

.split-img { position: relative; }

.split-img img { border-radius: var(--radius); box-shadow: var(--shadow); }

.split-img::before {
  content: "";
  position: absolute;
  inset: 1.4rem -1.4rem -1.4rem 1.4rem;
  border: 1px solid var(--brass-soft);
  border-radius: var(--radius);
  z-index: -1;
}

.stat-row { display: flex; gap: 2.5rem; margin-top: 2.2rem; flex-wrap: wrap; }

.stat b {
  display: block;
  font-family: var(--serif);
  font-size: 2.1rem;
  font-weight: 500;
  color: var(--navy);
  line-height: 1.1;
}

.stat span { font-size: 0.78rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-soft); }

/* ---------- Service cards ---------- */

.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.8rem; margin-top: 3rem; }

.svc-card {
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 8px 32px -14px rgba(35, 38, 43, 0.18);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}

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

.svc-card .img-crop { aspect-ratio: 4 / 3; overflow: hidden; }

.svc-card .img-crop img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.svc-card:hover .img-crop img { transform: scale(1.05); }

.svc-card-body { padding: 1.7rem 1.7rem 2rem; flex: 1; display: flex; flex-direction: column; }

.svc-card h3 { font-size: 1.55rem; margin-bottom: 0.6rem; }

.svc-card p { font-size: 0.98rem; color: var(--ink-soft); flex: 1; }

.text-link {
  margin-top: 1.2rem;
  font-size: 0.78rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--brass);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.text-link::after { content: "\2192"; transition: transform 0.25s; }
.text-link:hover::after { transform: translateX(5px); }

/* ---------- Portfolio ---------- */

.filter-bar { display: flex; gap: 0.6rem; justify-content: center; margin: 2.4rem 0 2.6rem; flex-wrap: wrap; }

.filter-btn {
  font-family: var(--sans);
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  background: none;
  border: 1px solid var(--line);
  color: var(--ink-soft);
  padding: 0.55rem 1.4rem;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.25s;
}

.filter-btn:hover { border-color: var(--brass); color: var(--brass); }
.filter-btn.active { background: var(--navy-deep); border-color: var(--navy-deep); color: #fff; }

.masonry { columns: 3; column-gap: 1.4rem; }

.masonry .tile { break-inside: avoid; margin-bottom: 1.4rem; }

.tile {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  display: block;
}

.tile img { width: 100%; transition: transform 0.6s ease; }

.tile::after {
  content: attr(data-caption);
  position: absolute;
  inset: auto 0 0 0;
  padding: 2.2rem 1.2rem 1rem;
  background: linear-gradient(transparent, rgba(20, 23, 30, 0.72));
  color: #fff;
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  opacity: 0;
  transition: opacity 0.35s;
}

.tile:hover::after { opacity: 1; }
.tile:hover img { transform: scale(1.04); }

.tile.hidden { display: none; }

/* Home page strip */
.strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.2rem; margin-top: 3rem; }
.strip .tile { aspect-ratio: 3 / 4; }
.strip .tile img { height: 100%; object-fit: cover; }

/* ---------- Lightbox ---------- */

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(18, 20, 25, 0.93);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 3rem 1.5rem;
}

.lightbox.open { display: flex; }

.lightbox img {
  max-width: min(1100px, 92vw);
  max-height: 84vh;
  border-radius: 4px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
}

.lightbox figcaption {
  position: absolute;
  bottom: 1.6rem;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.9rem;
  letter-spacing: 0.08em;
}

.lb-close, .lb-prev, .lb-next {
  position: absolute;
  background: none;
  border: 0;
  color: rgba(255, 255, 255, 0.8);
  font-size: 2rem;
  cursor: pointer;
  padding: 0.8rem;
  line-height: 1;
  transition: color 0.2s;
}

.lb-close:hover, .lb-prev:hover, .lb-next:hover { color: #fff; }

.lb-close { top: 1.2rem; right: 1.6rem; font-size: 1.7rem; }
.lb-prev { left: 1rem; top: 50%; transform: translateY(-50%); }
.lb-next { right: 1rem; top: 50%; transform: translateY(-50%); }

/* ---------- Process ---------- */

.process-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem; margin-top: 3rem; }

.step { position: relative; padding-top: 1.4rem; }

.step::before {
  content: attr(data-n);
  position: absolute;
  top: -1.2rem;
  left: 0;
  font-family: var(--serif);
  font-size: 4.4rem;
  font-weight: 500;
  color: transparent;
  -webkit-text-stroke: 1px var(--brass-soft);
  opacity: 0.85;
  line-height: 1;
}

.step h3 { font-size: 1.35rem; margin-bottom: 0.5rem; position: relative; }

.step p { font-size: 0.95rem; color: var(--ink-soft); position: relative; }

/* ---------- Quote band ---------- */

.quote-band {
  background: var(--navy-deep);
  color: #fff;
  text-align: center;
}

.quote-band blockquote {
  font-family: var(--serif);
  font-size: clamp(1.5rem, 3.2vw, 2.3rem);
  font-style: italic;
  font-weight: 500;
  line-height: 1.45;
  max-width: 26ch;
  margin: 0 auto 1.6rem;
}

.quote-band blockquote::before { content: "\201C"; color: var(--brass-soft); }
.quote-band blockquote::after { content: "\201D"; color: var(--brass-soft); }

.quote-band cite {
  font-family: var(--sans);
  font-style: normal;
  font-size: 0.8rem;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--brass-soft);
}

.stars { color: var(--brass-soft); letter-spacing: 0.35em; margin-bottom: 1.4rem; font-size: 1.05rem; }

/* ---------- Service area ---------- */

.area-cloud { display: flex; flex-wrap: wrap; gap: 0.7rem; justify-content: center; margin-top: 2.4rem; max-width: 820px; margin-inline: auto; }

.area-chip {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 999px;
  padding: 0.45rem 1.15rem;
  font-size: 0.85rem;
  letter-spacing: 0.05em;
  color: var(--ink-soft);
}

.area-chip.hq { border-color: var(--brass); color: var(--brass); font-weight: 400; }

/* ---------- CTA banner ---------- */

.cta-banner {
  position: relative;
  background-size: cover;
  background-position: center 60%;
  color: #fff;
  text-align: center;
}

.cta-banner::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(rgba(24, 28, 38, 0.72), rgba(24, 28, 38, 0.72));
}

.cta-banner .wrap { position: relative; }

.cta-banner h2 { font-size: clamp(2rem, 4.4vw, 3.1rem); margin-bottom: 1rem; }

.cta-banner p { max-width: 58ch; margin: 0 auto 2.2rem; opacity: 0.92; }

/* ---------- Page hero (interior pages) ---------- */

.page-hero {
  position: relative;
  padding: clamp(9rem, 16vw, 12rem) 0 clamp(3.5rem, 6vw, 5rem);
  background-size: cover;
  background-position: center;
  color: #fff;
}

.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(rgba(24, 28, 38, 0.62), rgba(24, 28, 38, 0.62));
}

.page-hero .wrap { position: relative; }

.page-hero h1 { font-size: clamp(2.4rem, 5vw, 3.6rem); }

.page-hero p { max-width: 60ch; margin-top: 0.9rem; opacity: 0.92; }

.page-hero .kicker { color: var(--brass-soft); }

/* ---------- Values ---------- */

.value-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 1.4rem; margin-top: 3rem; }

.value-card {
  background: #fff;
  border: 1px solid var(--line);
  border-top: 2px solid var(--brass);
  border-radius: var(--radius);
  padding: 1.6rem 1.3rem;
}

.value-card h3 { font-size: 1.25rem; margin-bottom: 0.5rem; }

.value-card p { font-size: 0.88rem; color: var(--ink-soft); line-height: 1.6; }

/* ---------- Team ---------- */

.team-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2.5rem; margin-top: 3rem; }

.team-card {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 1.8rem;
  align-items: start;
  background: #fff;
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: 0 8px 32px -14px rgba(35, 38, 43, 0.15);
}

.team-card img { border-radius: 50%; aspect-ratio: 1; object-fit: cover; }

.team-card h3 { font-size: 1.6rem; }

.team-card .role {
  font-size: 0.75rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--brass);
  margin: 0.2rem 0 0.8rem;
}

.team-card p { font-size: 0.95rem; color: var(--ink-soft); }

/* ---------- Services detail ---------- */

.svc-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2.5rem, 5vw, 4.5rem);
  align-items: center;
  padding: clamp(2.5rem, 5vw, 4rem) 0;
}

.svc-row + .svc-row { border-top: 1px solid var(--line); }

.svc-row:nth-child(even) .svc-row-img { order: 2; }

.svc-row-img img { border-radius: var(--radius); box-shadow: var(--shadow); aspect-ratio: 4/3; object-fit: cover; width: 100%; }

.svc-row h2 { font-size: clamp(1.8rem, 3vw, 2.4rem); margin-bottom: 0.9rem; }

.svc-row p { color: var(--ink-soft); }

.price-note {
  margin-top: 1.4rem;
  display: inline-block;
  background: var(--cream);
  border-left: 2px solid var(--brass);
  padding: 0.8rem 1.2rem;
  font-size: 0.92rem;
  color: var(--ink-soft);
}

.price-note b { color: var(--ink); font-weight: 500; }

.checklist { margin: 1.2rem 0 0; list-style: none; }

.checklist li {
  padding-left: 1.6rem;
  position: relative;
  margin-bottom: 0.45rem;
  font-size: 0.97rem;
  color: var(--ink-soft);
}

.checklist li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 0.55rem;
  height: 0.28rem;
  border-left: 1.5px solid var(--brass);
  border-bottom: 1.5px solid var(--brass);
  transform: rotate(-45deg);
}

/* ---------- FAQ ---------- */

.faq-list { max-width: 780px; margin: 0 auto; }

.faq-item { border-bottom: 1px solid var(--line); }

.faq-q {
  width: 100%;
  background: none;
  border: 0;
  text-align: left;
  font-family: var(--serif);
  font-size: 1.3rem;
  font-weight: 500;
  color: var(--ink);
  padding: 1.4rem 3rem 1.4rem 0;
  cursor: pointer;
  position: relative;
}

.faq-q::after {
  content: "+";
  position: absolute;
  right: 0.4rem;
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--sans);
  font-weight: 300;
  font-size: 1.6rem;
  color: var(--brass);
  transition: transform 0.3s;
}

.faq-item.open .faq-q::after { transform: translateY(-50%) rotate(45deg); }

.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
}

.faq-a p { padding: 0 0 1.5rem; color: var(--ink-soft); font-size: 1rem; max-width: 68ch; }

/* ---------- Contact ---------- */

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: clamp(2.5rem, 5vw, 5rem);
  align-items: start;
}

.contact-info h2 { font-size: 2rem; margin-bottom: 1.2rem; }

.info-line { display: flex; gap: 1rem; align-items: baseline; margin-bottom: 1.1rem; }

.info-line .lbl {
  font-size: 0.72rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--brass);
  min-width: 74px;
}

.info-line a:hover { color: var(--brass); }

.form-card {
  background: #fff;
  border-radius: var(--radius);
  padding: clamp(1.8rem, 3.5vw, 2.8rem);
  box-shadow: var(--shadow);
}

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; }

.field { display: flex; flex-direction: column; gap: 0.35rem; }

.field.full { grid-column: 1 / -1; }

.field label {
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.field input, .field select, .field textarea {
  font-family: var(--sans);
  font-size: 1rem;
  font-weight: 300;
  padding: 0.75rem 0.9rem;
  border: 1px solid var(--line);
  border-radius: 3px;
  background: var(--paper);
  color: var(--ink);
  transition: border-color 0.2s;
}

.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--brass);
}

.form-note { font-size: 0.85rem; color: var(--ink-soft); margin-top: 1rem; }

/* ---------- Footer ---------- */

.site-footer {
  background: var(--navy-deep);
  color: rgba(255, 255, 255, 0.82);
  padding: 4rem 0 2rem;
  font-size: 0.95rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 2.5rem;
  padding-bottom: 2.8rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.site-footer .brand-name { color: #fff; font-size: 1.05rem; }

.footer-tag { margin-top: 1rem; font-size: 0.92rem; max-width: 34ch; color: rgba(255, 255, 255, 0.62); }

.site-footer h4 {
  font-family: var(--sans);
  font-weight: 400;
  font-size: 0.75rem;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--brass-soft);
  margin-bottom: 1.1rem;
}

.site-footer ul { list-style: none; }

.site-footer li { margin-bottom: 0.55rem; }

.site-footer a:hover { color: #fff; }

.footer-base {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  padding-top: 1.8rem;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.45);
}

.social-row { display: flex; gap: 0.9rem; margin-top: 1.4rem; }

.social-row a {
  width: 38px;
  height: 38px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 50%;
  display: grid;
  place-items: center;
  transition: border-color 0.25s, background 0.25s;
}

.social-row a:hover { border-color: var(--brass-soft); background: rgba(171, 138, 86, 0.18); }

.social-row svg { width: 17px; height: 17px; fill: currentColor; }

/* ---------- Reveal on scroll ---------- */

.reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.7s ease, transform 0.7s ease; }

.reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero-slide.active { animation: none; }
}

/* ---------- Responsive ---------- */

@media (max-width: 960px) {
  .card-grid, .process-grid { grid-template-columns: repeat(2, 1fr); }
  .masonry { columns: 2; }
  .strip { grid-template-columns: repeat(2, 1fr); }
  .value-grid { grid-template-columns: repeat(2, 1fr); }
  .team-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 760px) {
  .main-nav {
    position: fixed;
    inset: 0;
    background: var(--navy-deep);
    color: #fff;
    flex-direction: column;
    justify-content: center;
    gap: 1.6rem;
    transform: translateX(100%);
    visibility: hidden;
    transition: transform 0.4s ease, visibility 0.4s;
  }

  .main-nav.open { transform: none; visibility: visible; }

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

  .nav-toggle { display: block; }

  body.nav-open { overflow: hidden; }
  body.nav-open .nav-toggle span { background: #fff; }
  body.nav-open .nav-toggle span:nth-child(1) { top: 10px; transform: rotate(45deg); }
  body.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
  body.nav-open .nav-toggle span:nth-child(3) { top: 10px; transform: rotate(-45deg); }

  .split, .svc-row, .contact-grid { grid-template-columns: 1fr; }
  .svc-row:nth-child(even) .svc-row-img { order: 0; }
  .split-img::before { display: none; }
  .form-grid { grid-template-columns: 1fr; }
  .team-card { grid-template-columns: 1fr; text-align: center; justify-items: center; }
}

@media (max-width: 560px) {
  .card-grid, .process-grid, .strip, .value-grid { grid-template-columns: 1fr; }
  .masonry { columns: 1; }
  .footer-grid { grid-template-columns: 1fr; }
  .brand-name { letter-spacing: 0.22em; font-size: 1.05rem; }
}
