/* ==========================================================================
   Silvertop Constructions - Design System
   Warm white / Ink charcoal / Peninsula sand / Olive sage / Burnished copper
   ========================================================================== */

:root {
  --warm-white: #FAF8F5;
  --ink: #1F2A2F;
  --sand: #E9DFCF;
  --sage: #5F725C;
  --sage-dark: #4A5A48;
  --sage-light: #7A8E77;
  --copper: #B67B45;
  --copper-dark: #9C6636;
  --white: #FFFFFF;

  --ink-70: rgba(31, 42, 47, 0.7);
  --ink-50: rgba(31, 42, 47, 0.5);
  --ink-20: rgba(31, 42, 47, 0.12);
  --sand-50: rgba(233, 223, 207, 0.5);

  --font-display: "Poppins", "Helvetica Neue", Arial, sans-serif;
  --font-body: "Poppins", "Helvetica Neue", Arial, sans-serif;

  --container: 1240px;
  --container-narrow: 800px;
  --radius-sm: 4px;
  --radius-md: 10px;
  --radius-lg: 28px;
  --radius-curve: 120px;

  --shadow-sm: 0 2px 10px rgba(31, 42, 47, 0.07);
  --shadow-md: 0 12px 40px rgba(31, 42, 47, 0.12);
  --shadow-lg: 0 24px 70px rgba(31, 42, 47, 0.18);

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body, h1, h2, h3, h4, p, figure, blockquote, dl, dd, ul, ol { margin: 0; }
ul[class], ol[class] { list-style: none; padding: 0; }
img, picture, svg { max-width: 100%; display: block; }
img { height: auto; }
input, button, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { text-wrap: balance; }

body {
  font-family: var(--font-body);
  background: var(--warm-white);
  color: var(--ink);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* Skip link */
.skip-link {
  position: absolute; left: -999px; top: 0; background: var(--sage); color: var(--white);
  padding: 12px 20px; z-index: 200; border-radius: 0 0 var(--radius-sm) 0;
}
.skip-link:focus { left: 0; }

/* ---------- Typography ---------- */
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 400; color: var(--ink); line-height: 1.18; letter-spacing: -0.01em; }
h1 { font-weight: 300; }
h1 { font-size: clamp(2.6rem, 5vw + 1rem, 4.6rem); font-weight: 500; letter-spacing: -0.01em; }
h2 { font-size: clamp(2rem, 3vw + 1rem, 3rem); font-weight: 500; letter-spacing: -0.01em; }
h3 { font-size: clamp(1.4rem, 1.4vw + 1rem, 1.9rem); font-weight: 500; }
h4 { font-size: 1.15rem; font-weight: 500; }
p { color: var(--ink-70); }
.lede { font-size: 1.25rem; line-height: 1.6; color: var(--ink-70); }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-body); text-transform: uppercase; letter-spacing: 0.18em;
  font-size: 0.78rem; font-weight: 500; color: var(--copper); margin-bottom: 18px;
}
.eyebrow::before { content: ""; width: 26px; height: 1.5px; background: var(--copper); display: inline-block; }
.serif-italic { font-family: var(--font-display); font-style: italic; font-weight: 300; }

/* ---------- Layout ---------- */
.container { max-width: var(--container); margin-inline: auto; padding-inline: 28px; }
.container-narrow { max-width: var(--container-narrow); margin-inline: auto; padding-inline: 28px; }
.section { padding-block: clamp(64px, 9vw, 128px); }
.section-tight { padding-block: clamp(48px, 6vw, 80px); }
.section-sand { background: var(--sand); }
.section-ink { background: var(--ink); color: var(--sand); }
.section-ink h2, .section-ink h3, .section-ink h4 { color: var(--warm-white); }
.section-ink p { color: rgba(233, 223, 207, 0.8); }

.grid { display: grid; gap: 28px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.center { text-align: center; }
.section-head { max-width: 680px; margin-bottom: 52px; }
.section-head.center { margin-inline: auto; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: var(--font-body); font-weight: 500; font-size: 0.98rem;
  padding: 16px 34px; border-radius: 999px; border: 1.5px solid transparent;
  transition: transform 0.3s var(--ease), background-color 0.3s var(--ease), color 0.3s var(--ease), border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--sage); color: var(--warm-white); box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: var(--sage-dark); box-shadow: var(--shadow-md); }
.btn-copper { background: var(--copper); color: var(--warm-white); box-shadow: var(--shadow-sm); }
.btn-copper:hover { background: var(--copper-dark); box-shadow: var(--shadow-md); }
.btn-outline { background: transparent; color: var(--ink); border-color: var(--ink-20); }
.btn-outline:hover { border-color: var(--sage); color: var(--sage); }
.btn-outline-light { background: transparent; color: var(--warm-white); border-color: rgba(250,248,245,0.4); }
.btn-outline-light:hover { border-color: var(--warm-white); background: rgba(250,248,245,0.08); }
.btn-sm { padding: 11px 24px; font-size: 0.88rem; }
.btn-block { width: 100%; }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  padding-block: 20px;
  transition: background-color 0.4s var(--ease), padding 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.site-header.is-solid, .site-header.is-open {
  background: rgba(250, 248, 245, 0.96); backdrop-filter: blur(8px);
  box-shadow: 0 2px 24px rgba(31,42,47,0.06);
  padding-block: 14px;
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: flex; align-items: center; }
.brand img { height: 34px; width: auto; transition: filter 0.3s var(--ease); }
.brand .logo-light { display: block; }
.brand .logo-dark { display: none; }

.site-header.is-solid .brand .logo-light,
.site-header.is-open .brand .logo-light { display: none; }
.site-header.is-solid .brand .logo-dark,
.site-header.is-open .brand .logo-dark { display: block; }

.main-nav { display: flex; align-items: center; gap: 2px; }
.main-nav a:not(.btn) {
  display: inline-block; padding: 9px 12px; font-size: 0.93rem; font-weight: 500;
  color: var(--nav-color, var(--ink)); border-radius: 999px; transition: background-color 0.3s var(--ease), color 0.3s var(--ease);
  position: relative;
}
.site-header:not(.is-solid) .main-nav a:not(.btn) { color: var(--warm-white); }
.site-header:not(.is-solid) .main-nav a.btn-outline { color: var(--warm-white); border-color: rgba(250,248,245,0.5); }
.main-nav a:not(.btn):hover { background: var(--ink-20); }
.site-header:not(.is-solid) .main-nav a:not(.btn):hover { background: rgba(250,248,245,0.15); }
.main-nav a.is-active { color: var(--copper) !important; }
.header-cta { display: flex; align-items: center; gap: 14px; margin-left: 8px; }
.header-phone {
  display: flex; align-items: center; gap: 8px; font-weight: 500; font-size: 0.95rem;
  color: var(--warm-white);
}
.site-header.is-solid .header-phone, .site-header.is-open .header-phone { color: var(--ink); }

.nav-toggle {
  display: none; flex-direction: column; gap: 5px; background: none; border: none; padding: 8px;
}
.nav-toggle span { width: 24px; height: 2px; background: var(--ink); transition: 0.3s var(--ease); }
.site-header:not(.is-solid) .nav-toggle span { background: var(--warm-white); }

/* ---------- Hero / Rotating banner ---------- */
.hero {
  position: relative; min-height: 100vh; display: flex; align-items: flex-end;
  color: var(--warm-white); overflow: hidden;
}
.hero-slides { position: absolute; inset: 0; }
.hero-slide {
  position: absolute; inset: 0; background-size: cover; background-position: center;
  opacity: 0; transition: opacity 1.8s var(--ease);
}
.hero-slide.is-active { opacity: 1; }
.hero-slide::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(31,42,47,0.32) 0%, rgba(31,42,47,0.18) 38%, rgba(31,42,47,0.78) 100%);
}
.hero-content { position: relative; z-index: 2; padding-block: 140px 90px; width: 100%; }
.hero-eyebrow {
  text-transform: uppercase; letter-spacing: 0.22em; font-size: 0.8rem; font-weight: 500;
  color: var(--sand); margin-bottom: 22px; display: flex; align-items: center; gap: 10px;
}
.hero-eyebrow::before { content: ""; width: 30px; height: 1.5px; background: var(--copper); }
.hero h1 { color: var(--warm-white); max-width: 900px; }
.hero .lede { color: rgba(250,248,245,0.88); max-width: 620px; margin-top: 22px; font-size: 1.2rem; }
.hero-actions { display: flex; gap: 16px; margin-top: 40px; flex-wrap: wrap; }
.hero-dots { position: absolute; z-index: 3; right: 28px; bottom: 40px; display: flex; flex-direction: column; gap: 10px; }
.hero-dots button {
  width: 9px; height: 9px; border-radius: 50%; border: 1.5px solid rgba(250,248,245,0.6); background: transparent; padding: 0;
}
.hero-dots button.is-active { background: var(--copper); border-color: var(--copper); }

.page-hero {
  position: relative; padding-block: 190px 90px; color: var(--warm-white);
  background-size: cover; background-position: center;
}
.page-hero::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(31,42,47,0.55) 0%, rgba(31,42,47,0.68) 100%);
}
.page-hero .container { position: relative; z-index: 2; }
.page-hero h1 { color: var(--warm-white); }
.page-hero .lede { color: rgba(250,248,245,0.88); margin-top: 18px; max-width: 640px; }
.breadcrumb { display: flex; gap: 8px; align-items: center; font-size: 0.9rem; color: rgba(250,248,245,0.75); margin-bottom: 18px; }
.breadcrumb a:hover { color: var(--warm-white); }

/* ---------- Cards ---------- */
.card {
  background: var(--white); border-radius: var(--radius-md); overflow: hidden;
  box-shadow: var(--shadow-sm); transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }

.project-card { display: block; border-radius: var(--radius-md); overflow: hidden; position: relative; box-shadow: var(--shadow-sm); transition: transform 0.45s var(--ease), box-shadow 0.45s var(--ease); }
.project-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); }
.project-card .thumb { aspect-ratio: 4/5; overflow: hidden; background: var(--sand); }
.project-card .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.7s var(--ease); }
.project-card:hover .thumb img { transform: scale(1.06); }
.project-card .thumb.placeholder { display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg, var(--sand), #ded1b5); }
.project-card .thumb.placeholder span { font-family: var(--font-display); font-style: italic; color: var(--sage-dark); font-size: 1.05rem; text-align: center; padding: 20px; }
.project-card .body { padding: 26px 28px 30px; background: var(--white); }
.project-card .loc { font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.14em; color: var(--copper); font-weight: 500; margin-bottom: 8px; }
.project-card h3 { margin-bottom: 10px; }
.project-card p { font-size: 0.96rem; margin: 0; }
.project-card .arrow { margin-top: 16px; display: inline-flex; align-items: center; gap: 8px; font-size: 0.88rem; font-weight: 500; color: var(--sage); }

.service-card {
  background: var(--white); border-radius: var(--radius-md); padding: 38px 32px;
  box-shadow: var(--shadow-sm); transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
  border-top: 3px solid var(--sage);
}
.service-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.service-card .num { font-family: var(--font-display); font-style: italic; color: var(--copper); font-size: 1rem; margin-bottom: 18px; display: block; }
.service-card h3 { margin-bottom: 14px; }
.service-card p:last-child { margin-bottom: 0; }

.perk-card { display: flex; gap: 20px; align-items: flex-start; }
.perk-icon {
  flex: none; width: 52px; height: 52px; border-radius: 50%; background: var(--sand);
  display: flex; align-items: center; justify-content: center; color: var(--sage);
}
.perk-icon svg { width: 24px; height: 24px; }
.perk-card h4 { margin-bottom: 8px; }
.perk-card p { margin: 0; font-size: 0.96rem; }

/* Approach numbered steps */
.approach-list { display: flex; flex-direction: column; }
.approach-item {
  display: grid; grid-template-columns: 90px 1fr; gap: 28px; padding-block: 34px;
  border-top: 1px solid var(--ink-20);
}
.approach-item:last-child { border-bottom: 1px solid var(--ink-20); }
.approach-item .n { font-family: var(--font-display); font-style: italic; font-size: 2.2rem; color: var(--copper); }
.approach-item h3 { margin-bottom: 10px; }
.approach-item p { margin: 0; max-width: 620px; }

/* ---------- Team ---------- */
.team-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 40px; }
.team-card { text-align: left; }
.avatar {
  aspect-ratio: 1; border-radius: var(--radius-lg); overflow: hidden; margin-bottom: 22px;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(150deg, var(--sage) 0%, var(--sage-dark) 100%);
  position: relative;
}
.avatar.copper { background: linear-gradient(150deg, var(--copper) 0%, var(--copper-dark) 100%); }
.avatar span { font-family: var(--font-display); font-size: 5rem; color: var(--warm-white); font-weight: 500; }
.avatar::after {
  content: ""; position: absolute; inset: 0; opacity: 0.15;
  background-image: radial-gradient(circle at 30% 20%, rgba(255,255,255,0.6), transparent 45%);
}
.team-card h3 { margin-bottom: 2px; }
.team-role { color: var(--copper); font-weight: 500; font-size: 0.9rem; text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 16px; display: block; }

.crew-card { text-align: center; }
.crew-card .avatar { width: 84px; height: 84px; margin-inline: auto; border-radius: 50%; margin-bottom: 14px; }
.crew-card .avatar span { font-size: 1.8rem; }
.crew-card h4 { margin-bottom: 2px; }
.crew-card .team-role { font-size: 0.78rem; margin-bottom: 0; }

/* ---------- Testimonials ---------- */
.testimonial {
  background: var(--white); border-radius: var(--radius-lg); padding: clamp(36px, 5vw, 64px);
  box-shadow: var(--shadow-sm); position: relative;
}
.testimonial .quote-mark { font-family: var(--font-display); font-size: 4.5rem; color: var(--copper); line-height: 1; margin-bottom: 6px; }
.testimonial blockquote { font-family: var(--font-body); font-size: clamp(1.15rem, 1.3vw, 1.4rem); line-height: 1.6; color: var(--ink); font-style: normal; font-weight: 400; }
.testimonial cite { display: block; margin-top: 26px; font-style: normal; font-weight: 500; color: var(--sage-dark); font-size: 0.96rem; }
.testimonial cite span { display: block; font-weight: 400; color: var(--ink-50); font-size: 0.86rem; margin-top: 2px; }
.testimonial.placeholder { border: 1.5px dashed var(--ink-20); box-shadow: none; background: var(--sand-50); }
.testimonial.placeholder blockquote { color: var(--ink-70); }
.placeholder-tag {
  display: inline-block; font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.1em;
  color: var(--copper); background: rgba(182,123,69,0.12); padding: 5px 12px; border-radius: 999px; margin-bottom: 16px;
}

/* ---------- Gallery / Lightbox ---------- */
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.gallery a { display: block; border-radius: var(--radius-sm); overflow: hidden; aspect-ratio: 1; background: var(--sand); }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--ease); }
.gallery a:hover img { transform: scale(1.08); }
.gallery .span-2 { grid-column: span 2; grid-row: span 2; aspect-ratio: 1; }

.lightbox {
  position: fixed; inset: 0; background: rgba(31,42,47,0.94); z-index: 300;
  display: none; align-items: center; justify-content: center; padding: 40px;
}
.lightbox.is-open { display: flex; }
.lightbox img { max-width: 100%; max-height: 84vh; border-radius: var(--radius-sm); box-shadow: var(--shadow-lg); }
.lightbox-close, .lightbox-prev, .lightbox-next {
  position: absolute; background: rgba(250,248,245,0.1); border: 1px solid rgba(250,248,245,0.3);
  color: var(--warm-white); width: 46px; height: 46px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  transition: background-color 0.3s var(--ease);
}
.lightbox-close:hover, .lightbox-prev:hover, .lightbox-next:hover { background: rgba(250,248,245,0.22); }
.lightbox-close { top: 26px; right: 26px; }
.lightbox-prev { left: 26px; top: 50%; transform: translateY(-50%); }
.lightbox-next { right: 26px; top: 50%; transform: translateY(-50%); }

/* ---------- Placeholder photo panel (no real photos yet) ---------- */
.photo-placeholder {
  border-radius: var(--radius-lg); background: linear-gradient(135deg, var(--sand) 0%, #ddcda2 100%);
  aspect-ratio: 16/9; display: flex; align-items: center; justify-content: center; position: relative; overflow: hidden;
}
.photo-placeholder::before {
  content: ""; position: absolute; inset: 0; opacity: 0.5;
  background-image: repeating-linear-gradient(135deg, rgba(95,114,92,0.07) 0 2px, transparent 2px 26px);
}
.photo-placeholder .msg {
  position: relative; text-align: center; font-family: var(--font-display); font-style: italic;
  color: var(--sage-dark); font-size: 1.2rem; padding: 24px; max-width: 380px;
}

/* ---------- Forms ---------- */
.form-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: 0.86rem; font-weight: 500; color: var(--ink); }
.field .req { color: var(--copper); }
.field input, .field select, .field textarea {
  background: var(--white); border: 1.5px solid var(--ink-20); border-radius: var(--radius-sm);
  padding: 14px 16px; font-size: 1rem; color: var(--ink); transition: border-color 0.3s var(--ease);
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--sage); }
.field textarea { resize: vertical; min-height: 130px; }
.radio-group { display: flex; flex-wrap: wrap; gap: 10px; }
.radio-pill { position: relative; }
.radio-pill input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.radio-pill span {
  display: inline-flex; padding: 11px 20px; border-radius: 999px; border: 1.5px solid var(--ink-20);
  font-size: 0.92rem; transition: 0.3s var(--ease);
}
.radio-pill input:checked + span { background: var(--sage); border-color: var(--sage); color: var(--warm-white); }
.radio-pill input:focus-visible + span { outline: 2px solid var(--sage); outline-offset: 2px; }
.form-note { font-size: 0.84rem; color: var(--ink-50); margin-top: 6px; }
.form-panel { background: var(--white); border-radius: var(--radius-lg); padding: clamp(28px, 4vw, 52px); box-shadow: var(--shadow-md); }

/* honeypot */
.hidden-field { position: absolute; left: -9999px; top: -9999px; }

/* ---------- Contact info blocks ---------- */
.contact-info-list { display: flex; flex-direction: column; gap: 26px; }
.contact-info-item { display: flex; gap: 16px; align-items: flex-start; }
.contact-info-item .icon {
  flex: none; width: 44px; height: 44px; border-radius: 50%; background: var(--sage); color: var(--warm-white);
  display: flex; align-items: center; justify-content: center;
}
.contact-info-item .icon svg { width: 20px; height: 20px; }
.contact-info-item h4 { margin-bottom: 4px; }
.contact-info-item p, .contact-info-item a { margin: 0; font-size: 0.96rem; }
.contact-info-item a:hover { color: var(--sage); }

/* ---------- Blog ---------- */
.blog-card { display: block; }
.blog-card .thumb { aspect-ratio: 3/2; border-radius: var(--radius-md); overflow: hidden; margin-bottom: 20px; }
.blog-card .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--ease); }
.blog-card:hover .thumb img { transform: scale(1.06); }
.blog-meta { font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--copper); margin-bottom: 10px; font-weight: 500; }
.blog-card h3 { margin-bottom: 10px; }
.blog-card p { font-size: 0.96rem; }
.read-more { display: inline-flex; align-items: center; gap: 8px; font-weight: 500; color: var(--sage); margin-top: 14px; font-size: 0.92rem; }

.post-header { padding-block: 170px 60px; }
.post-header .blog-meta { color: var(--copper); }
.post-body { max-width: var(--container-narrow); margin-inline: auto; padding-inline: 28px; }
.post-hero-img { border-radius: var(--radius-lg); overflow: hidden; margin-bottom: 50px; box-shadow: var(--shadow-md); }
.post-hero-img img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; }
.post-hero-img.tall img { aspect-ratio: 4 / 5; max-height: 85vh; }
.post-content h2 { margin-top: 2.4em; margin-bottom: 0.7em; }
.post-content h3 { margin-top: 2em; margin-bottom: 0.6em; }
.post-content p { margin-bottom: 1.3em; font-size: 1.08rem; }
.post-content ul, .post-content ol { margin-bottom: 1.3em; padding-left: 1.4em; color: var(--ink-70); }
.post-content li { margin-bottom: 0.5em; }
.post-content blockquote {
  border-left: 3px solid var(--copper); padding-left: 24px; margin: 2em 0;
  font-family: var(--font-display); font-style: italic; font-size: 1.25rem; color: var(--ink);
}
.post-content a { color: var(--sage); text-decoration: underline; text-underline-offset: 3px; }
.post-cta {
  margin-top: 60px; padding: 40px; border-radius: var(--radius-lg); background: var(--sand);
  display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap;
}
.post-cta h3 { margin-bottom: 6px; }
.post-cta p { margin: 0; }
.post-author {
  display: flex; align-items: center; gap: 14px; padding-top: 40px; margin-top: 50px; border-top: 1px solid var(--ink-20);
}
.post-author .avatar { width: 54px; height: 54px; border-radius: 50%; margin: 0; }
.post-author .avatar span { font-size: 1.4rem; }
.post-author strong { display: block; }
.post-author span.role { color: var(--ink-50); font-size: 0.88rem; }

/* ---------- CTA band ---------- */
.cta-band {
  background: linear-gradient(135deg, var(--sage) 0%, var(--sage-dark) 100%);
  color: var(--warm-white); border-radius: var(--radius-lg);
  padding: clamp(46px, 6vw, 84px); position: relative; overflow: hidden;
}
.cta-band::before {
  content: ""; position: absolute; width: 480px; height: 480px; border-radius: 50%;
  background: radial-gradient(circle, rgba(250,248,245,0.10), transparent 72%);
  top: -220px; right: -160px;
}
.cta-band-inner { position: relative; z-index: 1; display: flex; align-items: center; justify-content: space-between; gap: 40px; flex-wrap: wrap; }
.cta-band h2 { color: var(--warm-white); max-width: 560px; }
.cta-band p { color: rgba(250,248,245,0.85); margin-top: 14px; max-width: 460px; }
.cta-band .actions { flex: none; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: rgba(233,223,207,0.85); padding-block: 80px 30px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 44px; }
.footer-brand img { height: 36px; width: auto; margin-bottom: 20px; }
.footer-brand p { color: rgba(233,223,207,0.7); font-size: 0.94rem; max-width: 320px; }
.footer-col h4 { color: var(--warm-white); font-size: 0.86rem; text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 20px; font-weight: 600; }
.footer-col ul { display: flex; flex-direction: column; gap: 12px; list-style: none; padding: 0; }
.footer-col a { font-size: 0.95rem; color: rgba(233,223,207,0.8); transition: color 0.3s var(--ease); }
.footer-col a:hover { color: var(--copper); }
.footer-social { display: flex; gap: 12px; margin-top: 22px; }
.footer-social a {
  width: 38px; height: 38px; border-radius: 50%; border: 1px solid rgba(233,223,207,0.3);
  display: flex; align-items: center; justify-content: center; transition: 0.3s var(--ease);
}
.footer-social a:hover { background: var(--copper); border-color: var(--copper); }
.footer-social svg { width: 17px; height: 17px; }
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 14px;
  margin-top: 64px; padding-top: 28px; border-top: 1px solid rgba(233,223,207,0.15);
  font-size: 0.84rem; color: rgba(233,223,207,0.55);
}
.footer-bottom p { color: rgba(233,223,207,0.6); }
.footer-bottom a { color: rgba(233,223,207,0.6); }
.footer-bottom a:hover { color: var(--copper); }

/* ---------- Misc ---------- */
.divider { height: 1px; background: var(--ink-20); border: none; margin-block: var(--gap, 60px); }
.tag-row { display: flex; flex-wrap: wrap; gap: 10px; }
.tag { padding: 7px 16px; border-radius: 999px; background: var(--sand); font-size: 0.82rem; font-weight: 500; color: var(--sage-dark); }
.stat { text-align: center; }
.stat .n { font-family: var(--font-display); font-size: clamp(2.2rem, 3vw, 3.2rem); color: var(--copper); font-style: italic; }
.stat .l { font-size: 0.86rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--ink-50); margin-top: 6px; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 90px); align-items: center; }
.img-curve { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-md); }
.img-curve img { width: 100%; height: 100%; object-fit: cover; }
.offset-frame { position: relative; }
.offset-frame::after {
  content: ""; position: absolute; inset: 20px -20px -20px 20px; border: 2px solid var(--copper);
  border-radius: var(--radius-lg); z-index: -1;
}

/* ---------- 404 ---------- */
.error-page { min-height: 80vh; display: flex; align-items: center; justify-content: center; text-align: center; padding-top: 100px; }
.error-page .code { font-family: var(--font-display); font-style: italic; font-size: 7rem; color: var(--copper); line-height: 1; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1080px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .team-grid { grid-template-columns: 1fr; max-width: 460px; margin-inline: auto; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .gallery { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 860px) {
  .main-nav, .header-cta .header-phone { display: none; }
  /* Mobile menu: solid full-screen panel. Blur removed while open so the panel
     sizes to the whole screen, not just the header bar. */
  .site-header.is-open {
    background: var(--warm-white); backdrop-filter: none; -webkit-backdrop-filter: none;
  }
  .site-header.is-open .main-nav {
    display: flex; position: fixed; top: 0; left: 0; right: 0; bottom: 0;
    height: 100vh; height: 100dvh; background: var(--warm-white); flex-direction: column;
    justify-content: flex-start; align-items: center; gap: 6px;
    padding: 110px 40px 40px; overflow-y: auto;
  }
  .site-header.is-open .brand { position: relative; z-index: 110; }
  .nav-toggle { position: relative; }
  .site-header.is-open .main-nav a:not(.btn) { color: var(--ink); font-size: 1.3rem; }
  .site-header.is-open .main-nav .btn { margin-top: 20px; }
  .nav-toggle { display: flex; z-index: 110; }
  .site-header.is-open .nav-toggle span { background: var(--ink); }
  .site-header.is-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .site-header.is-open .nav-toggle span:nth-child(2) { opacity: 0; }
  .site-header.is-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  .two-col, .form-grid, .grid-2 { grid-template-columns: 1fr; }
  .grid-3, .grid-4 { grid-template-columns: 1fr 1fr; }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 36px; }
  .cta-band-inner { justify-content: center; text-align: center; }
  .approach-item { grid-template-columns: 1fr; gap: 10px; }
  .post-cta { flex-direction: column; text-align: center; }
}

@media (max-width: 560px) {
  body { font-size: 16px; }
  .grid-3 { grid-template-columns: 1fr; }
  .grid-4, .gallery { grid-template-columns: 1fr 1fr; }
  .hero { min-height: 92vh; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn { width: 100%; }
  .footer-grid { grid-template-columns: 1fr; }
  .form-grid { gap: 16px; }
}

.testimonial-pair .testimonial blockquote { font-size: clamp(1.02rem, 1.1vw, 1.15rem); }

/* Contact page: info + form side by side on desktop, stacked on tablets and phones */
.contact-grid { grid-template-columns: 1fr 1.6fr; gap: 56px; align-items: flex-start; }
@media (max-width: 860px) {
  .contact-grid { grid-template-columns: 1fr; gap: 40px; }
}
/* Safety net: never let anything push the page wider than the screen */
html, body { overflow-x: clip; }
.grid > * { min-width: 0; }
.form-grid > * { min-width: 0; }
.field input, .field select, .field textarea { width: 100%; max-width: 100%; box-sizing: border-box; min-width: 0; }
@media (max-width: 560px) { .form-panel { padding: 24px 18px; } }
.contact-info-item > div { min-width: 0; }
.contact-info-item a, .footer-col a { overflow-wrap: anywhere; }
.two-col > * { min-width: 0; }
@media (max-width: 400px) { .btn { white-space: normal; max-width: 100%; text-align: center; } }
