/* Sterling & Stone — Luxury Exterior Renovations
   Palette and type per brand plan: Obsidian Charcoal, Warm Ivory, Architectural Stone,
   Champagne Bronze (accents only), Deep Forest Green (sparingly). Cormorant Garamond + Manrope. */
:root {
  --charcoal: #1C1D1B;
  --charcoal-2: #252623;
  --ivory: #F4F0E8;
  --ivory-2: #EBE5DA;
  --stone: #A6A095;
  --stone-dark: #6E695F;      /* stone darkened for readable text on ivory (AA) */
  --bronze: #A38B68;
  --bronze-dark: #7A6648;     /* bronze darkened for small text on ivory (AA) */
  --forest: #263A32;
  --line-light: rgba(28,29,27,0.12);
  --line-dark: rgba(244,240,232,0.14);
  --serif: 'Cormorant Garamond', 'Libre Baskerville', Georgia, serif;
  --sans: 'Manrope', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --wrap: 1240px;
  --ease: cubic-bezier(.2,.7,.2,1);
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--ivory); color: var(--charcoal); font-family: var(--sans); font-size: 16.5px; line-height: 1.75; -webkit-font-smoothing: antialiased; }
img, video { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 40px; }
.skip { position: absolute; left: -9999px; top: 0; background: var(--ivory); color: var(--charcoal); padding: 10px 16px; z-index: 100; }
.skip:focus { left: 12px; top: 12px; }
:focus-visible { outline: 2px solid var(--bronze); outline-offset: 3px; }

/* ---------- type ---------- */
h1, h2, h3 { font-family: var(--serif); font-weight: 500; letter-spacing: 0.005em; line-height: 1.08; margin: 0; }
h1 { font-size: clamp(44px, 6.2vw, 84px); }
h2 { font-size: clamp(36px, 4.4vw, 58px); }
h3 { font-size: clamp(26px, 2.4vw, 32px); }
.eyebrow { font-family: var(--sans); font-size: 11.5px; font-weight: 700; letter-spacing: 0.32em; text-transform: uppercase; color: var(--bronze-dark); display: inline-flex; align-items: center; gap: 14px; margin-bottom: 22px; }
.eyebrow::before { content: ''; width: 34px; height: 1px; background: currentColor; }
.dark .eyebrow, .hero .eyebrow, .page-hero .eyebrow, .forest .eyebrow { color: var(--bronze); }
.lead { font-size: 18.5px; line-height: 1.75; color: #3c3d3a; max-width: 640px; }
.dark .lead, .forest .lead, .page-hero .lead { color: rgba(244,240,232,0.8); }
p { margin: 0 0 1.1em; }
.muted { color: var(--stone-dark); }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; gap: 12px; padding: 17px 30px; font-family: var(--sans); font-size: 12.5px; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase; text-decoration: none; border: 1px solid transparent; transition: background .35s var(--ease), color .35s var(--ease), border-color .35s var(--ease); cursor: pointer; }
.btn-solid { background: var(--ivory); color: var(--charcoal); }
.btn-solid:hover { background: var(--bronze); color: var(--charcoal); }
.btn-dark { background: var(--charcoal); color: var(--ivory); }
.btn-dark:hover { background: var(--forest); }
.btn-line { border-color: rgba(244,240,232,0.45); color: var(--ivory); }
.btn-line:hover { border-color: var(--ivory); background: rgba(244,240,232,0.08); }
.btn-line-dark { border-color: rgba(28,29,27,0.35); color: var(--charcoal); }
.btn-line-dark:hover { border-color: var(--charcoal); }
.link { font-size: 12.5px; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase; text-decoration: none; color: var(--bronze-dark); border-bottom: 1px solid currentColor; padding-bottom: 4px; }
.dark .link { color: var(--bronze); }
.link:hover { color: var(--charcoal); }
.dark .link:hover { color: var(--ivory); }

/* ---------- header ---------- */
.site-header { position: fixed; inset: 0 0 auto 0; z-index: 50; transition: background .4s var(--ease), box-shadow .4s var(--ease); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 92px; }
.site-header.solid, .site-header.always-solid { background: var(--charcoal); box-shadow: 0 1px 0 var(--line-dark); }
.brand { display: flex; align-items: center; gap: 16px; text-decoration: none; color: var(--ivory); }
.brand img { width: 58px; height: auto; }
.brand-name { font-family: var(--serif); font-size: 21px; font-weight: 600; letter-spacing: 0.24em; line-height: 1; }
.brand-sub { display: block; font-family: var(--sans); font-size: 8.5px; font-weight: 600; letter-spacing: 0.34em; color: var(--bronze); margin-top: 7px; }
.nav { display: flex; align-items: center; gap: 34px; }
.nav a { color: rgba(244,240,232,0.82); text-decoration: none; font-size: 12px; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; padding: 6px 0; border-bottom: 1px solid transparent; transition: color .3s, border-color .3s; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--ivory); border-bottom-color: var(--bronze); }
.nav .btn { padding: 13px 20px; border-color: rgba(244,240,232,0.4); color: var(--ivory); }
.nav .btn:hover { border-color: var(--bronze); background: transparent; }
.menu-toggle { display: none; background: none; border: 0; color: var(--ivory); cursor: pointer; padding: 8px; }
.menu-toggle span { display: block; width: 26px; height: 1px; background: currentColor; margin: 7px 0; transition: transform .3s; }

/* ---------- hero ---------- */
.hero { position: relative; min-height: 100vh; min-height: 100svh; display: flex; align-items: flex-end; color: var(--ivory); background: var(--charcoal); overflow: hidden; }
.hero-media, .hero-media video, .hero-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(28,29,27,0.55) 0%, rgba(28,29,27,0.25) 35%, rgba(28,29,27,0.82) 100%); }
.hero .wrap { position: relative; z-index: 2; padding-bottom: 110px; width: 100%; }
.hero h1 { max-width: 900px; margin-bottom: 26px; }
.hero .lead { color: rgba(244,240,232,0.86); margin-bottom: 40px; }
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }
.hero-caption { position: absolute; right: 40px; bottom: 34px; z-index: 2; font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase; color: rgba(244,240,232,0.6); }

.page-hero { position: relative; color: var(--ivory); background: var(--charcoal); padding: 210px 0 110px; overflow: hidden; }
.page-hero.has-image::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(28,29,27,0.7), rgba(28,29,27,0.86)); }
.page-hero img.bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.page-hero .wrap { position: relative; z-index: 2; }
.page-hero h1 { max-width: 920px; margin-bottom: 24px; }

/* ---------- sections ---------- */
section { position: relative; }
.pad { padding: 140px 0; }
.pad-sm { padding: 96px 0; }
.dark { background: var(--charcoal); color: var(--ivory); }
.ivory-2 { background: var(--ivory-2); }
.forest { background: var(--forest); color: var(--ivory); }
.rule { height: 1px; background: var(--line-light); border: 0; margin: 0; }
.split { display: grid; grid-template-columns: 5fr 7fr; gap: 90px; align-items: start; }
.split.even { grid-template-columns: 1fr 1fr; align-items: center; }
.statement { font-family: var(--serif); font-size: clamp(30px, 3.4vw, 46px); line-height: 1.25; font-weight: 400; max-width: 1000px; }
.statement em { color: var(--bronze); font-style: italic; }
.centered { text-align: center; margin: 0 auto; }

/* philosophy band */
.philosophy p { font-size: 18px; color: #3c3d3a; }
.philosophy .closing { font-family: var(--serif); font-size: 26px; font-style: italic; color: var(--charcoal); margin-top: 30px; }

/* expertise grid */
.services { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; margin-top: 70px; }
.service { position: relative; overflow: hidden; background: var(--charcoal); color: var(--ivory); text-decoration: none; display: block; min-height: 520px; }
.service img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.4s var(--ease), opacity .6s; opacity: 0.86; }
.service:hover img { transform: scale(1.04); opacity: 0.7; }
.service::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 35%, rgba(28,29,27,0.92) 100%); }
.service-body { position: absolute; left: 0; right: 0; bottom: 0; padding: 40px; z-index: 2; }
.service-body h3 { margin-bottom: 12px; }
.service-body p { color: rgba(244,240,232,0.8); margin: 0; max-width: 460px; font-size: 15.5px; }
.service-num { font-family: var(--serif); font-size: 15px; color: var(--bronze); letter-spacing: 0.2em; display: block; margin-bottom: 10px; }

/* difference */
.difference { display: grid; grid-template-columns: 1fr 1fr; gap: 0; }
.difference .img { min-height: 640px; background-size: cover; background-position: center; }
.difference .copy { padding: 120px 90px; }
.pillars { list-style: none; padding: 0; margin: 40px 0 0; display: grid; gap: 0; }
.pillars li { display: grid; grid-template-columns: 60px 1fr; gap: 10px; padding: 22px 0; border-top: 1px solid var(--line-dark); }
.pillars li:last-child { border-bottom: 1px solid var(--line-dark); }
.pillars .n { font-family: var(--serif); color: var(--bronze); font-size: 20px; }
.pillars strong { display: block; font-weight: 600; letter-spacing: 0.02em; margin-bottom: 2px; }
.pillars span.d { color: rgba(244,240,232,0.7); font-size: 15px; }

/* projects */
.projects { display: grid; grid-template-columns: repeat(2, 1fr); gap: 60px 40px; margin-top: 70px; }
.project { text-decoration: none; display: block; }
.project .ph { overflow: hidden; aspect-ratio: 4/3; background: var(--ivory-2); }
.project img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.4s var(--ease); }
.project:hover img { transform: scale(1.035); }
.project .meta { display: flex; justify-content: space-between; align-items: baseline; gap: 20px; padding-top: 22px; border-top: 1px solid var(--line-light); margin-top: 22px; }
.project h3 { font-size: 28px; }
.project .loc { font-size: 11.5px; font-weight: 700; letter-spacing: 0.24em; text-transform: uppercase; color: var(--bronze-dark); white-space: nowrap; }
.project .scope { color: var(--stone-dark); font-size: 15px; margin-top: 8px; }

/* case studies */
.case { padding: 120px 0; border-top: 1px solid var(--line-light); }
.case:first-of-type { border-top: 0; }
.case-head { display: grid; grid-template-columns: 7fr 5fr; gap: 80px; align-items: end; margin-bottom: 56px; }
.case-head h2 { margin-top: 6px; }
.facts { display: grid; grid-template-columns: 1fr 1fr; gap: 22px 30px; margin: 0; }
.facts div { border-top: 1px solid var(--line-light); padding-top: 12px; }
.facts dt { font-size: 10.5px; font-weight: 700; letter-spacing: 0.26em; text-transform: uppercase; color: var(--bronze-dark); margin-bottom: 4px; }
.facts dd { margin: 0; font-size: 15px; }
.gallery { display: grid; grid-template-columns: 2fr 1fr; grid-auto-rows: 300px; gap: 14px; }
.gallery figure { margin: 0; overflow: hidden; position: relative; background: var(--ivory-2); }
.gallery figure:first-child { grid-row: span 2; }
.gallery img { width: 100%; height: 100%; object-fit: cover; }
.gallery figcaption { position: absolute; left: 0; bottom: 0; padding: 8px 14px; font-size: 10.5px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--ivory); background: rgba(28,29,27,0.62); }
.case-body { display: grid; grid-template-columns: 1fr 1fr; gap: 70px; margin-top: 56px; }
.case-body h4 { font-family: var(--sans); font-size: 11.5px; font-weight: 700; letter-spacing: 0.26em; text-transform: uppercase; color: var(--bronze-dark); margin: 0 0 10px; }

/* expertise page rows */
.exp-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0; align-items: stretch; }
.exp-row .img { min-height: 560px; background-size: cover; background-position: center; }
.exp-row .copy { padding: 100px 90px; display: flex; flex-direction: column; justify-content: center; }
.exp-row:nth-child(even) .img { order: 2; }
.exp-row .copy ul { list-style: none; padding: 0; margin: 10px 0 34px; }
.exp-row .copy li { padding: 9px 0; border-bottom: 1px solid var(--line-light); font-size: 15.5px; }
.exp-row .copy li::before { content: '—'; color: var(--bronze); margin-right: 12px; }

/* philosophy page */
.principles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; margin-top: 70px; border-top: 1px solid var(--line-light); }
.principle { padding: 44px 40px 44px 0; border-bottom: 1px solid var(--line-light); }
.principle:not(:nth-child(3n)) { border-right: 1px solid var(--line-light); }
.principle:not(:nth-child(3n+1)) { padding-left: 40px; }
.principle .n { font-family: var(--serif); color: var(--bronze-dark); font-size: 18px; letter-spacing: 0.15em; }
.principle h3 { font-size: 27px; margin: 10px 0 12px; }
.principle p { color: #4a4b47; font-size: 15.5px; margin: 0; }
.comm { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; margin-top: 60px; }
.comm h3 { font-size: 26px; margin-bottom: 18px; padding-bottom: 14px; border-bottom: 1px solid var(--line-dark); }
.comm ul { list-style: none; padding: 0; margin: 0; }
.comm li { padding: 7px 0; color: rgba(244,240,232,0.78); font-size: 15px; }
.comm li::before { content: ''; display: inline-block; width: 5px; height: 5px; background: var(--bronze); transform: rotate(45deg); margin: 0 14px 2px 0; }

/* process */
.steps { list-style: none; padding: 0; margin: 60px 0 0; counter-reset: s; }
.steps li { display: grid; grid-template-columns: 150px 1fr 1.2fr; gap: 40px; padding: 54px 0; border-top: 1px solid var(--line-light); align-items: start; }
.steps li:last-child { border-bottom: 1px solid var(--line-light); }
.steps .n { font-family: var(--serif); font-size: 64px; line-height: 1; color: var(--bronze); }
.steps h3 { font-size: 34px; }
.steps p { color: #3c3d3a; margin: 0; }

/* CTA band */
.cta { text-align: center; }
.cta h2 { margin-bottom: 22px; }
.cta .lead { margin: 0 auto 40px; }

/* form */
.form-wrap { display: grid; grid-template-columns: 4fr 7fr; gap: 90px; align-items: start; }
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 26px 28px; }
.field { display: flex; flex-direction: column; gap: 9px; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: 11px; font-weight: 700; letter-spacing: 0.24em; text-transform: uppercase; color: var(--charcoal); }
.field label .opt { color: var(--stone-dark); font-weight: 600; letter-spacing: 0.1em; text-transform: none; }
.field input, .field select, .field textarea { font: inherit; font-size: 16px; color: var(--charcoal); background: #fbf9f5; border: 1px solid rgba(28,29,27,0.22); border-radius: 0; padding: 15px 16px; transition: border-color .25s; width: 100%; }
.field textarea { min-height: 150px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--bronze-dark); outline: none; box-shadow: 0 0 0 3px rgba(163,139,104,0.18); }
.form .consent { grid-column: 1 / -1; font-size: 13.5px; color: var(--stone-dark); line-height: 1.6; }
.form .consent a { color: var(--charcoal); }
.form .actions { grid-column: 1 / -1; }
.form-msg { grid-column: 1 / -1; padding: 22px 26px; border-left: 2px solid var(--bronze); background: #fbf9f5; display: none; }
.form-msg.show { display: block; }
.aside-card { border-top: 1px solid var(--line-light); padding-top: 30px; margin-top: 36px; }
.aside-card h3 { font-size: 24px; margin-bottom: 14px; }
.aside-card ol { padding-left: 20px; margin: 0; color: #3c3d3a; font-size: 15.5px; }
.aside-card li { margin: 8px 0; }

/* prose (privacy) */
.prose { max-width: 760px; }
.prose h2 { font-size: 30px; margin: 46px 0 14px; }

/* footer */
.site-footer { background: var(--charcoal); color: rgba(244,240,232,0.72); padding: 100px 0 40px; font-size: 14.5px; }
.footer-top { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 60px; padding-bottom: 70px; border-bottom: 1px solid var(--line-dark); }
.footer-mark img { width: 110px; margin-bottom: 22px; }
.footer-name { font-family: var(--serif); font-size: 26px; letter-spacing: 0.24em; color: var(--ivory); }
.footer-tag { font-size: 10px; letter-spacing: 0.34em; color: var(--bronze); margin-top: 8px; text-transform: uppercase; }
.footer-motto { font-family: var(--serif); font-style: italic; font-size: 21px; color: var(--ivory); margin-top: 28px; }
.site-footer h4 { font-size: 10.5px; font-weight: 700; letter-spacing: 0.28em; text-transform: uppercase; color: var(--bronze); margin: 0 0 18px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin: 9px 0; }
.site-footer a { text-decoration: none; color: rgba(244,240,232,0.78); }
.site-footer a:hover { color: var(--ivory); }
.footer-bottom { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; padding-top: 30px; font-size: 12.5px; color: rgba(244,240,232,0.5); }

/* reveal */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 1.1s var(--ease), transform 1.1s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } html { scroll-behavior: auto; } .service img, .project img { transition: none; } }

/* ---------- responsive ---------- */
@media (max-width: 1100px) {
  .wrap { padding: 0 32px; }
  .split, .split.even, .form-wrap, .case-head, .case-body { grid-template-columns: 1fr; gap: 48px; }
  .difference, .exp-row { grid-template-columns: 1fr; }
  .exp-row:nth-child(even) .img { order: 0; }
  .difference .img, .exp-row .img { min-height: 420px; }
  .difference .copy, .exp-row .copy { padding: 80px 32px; }
  .principles { grid-template-columns: 1fr 1fr; }
  .principle, .principle:not(:nth-child(3n+1)) { padding: 36px 28px 36px 0; border-right: 0 !important; }
  .comm { grid-template-columns: 1fr; }
  .steps li { grid-template-columns: 90px 1fr; }
  .steps li p { grid-column: 2; }
}
@media (max-width: 900px) {
  .nav { position: fixed; inset: 92px 0 auto 0; background: var(--charcoal); flex-direction: column; align-items: flex-start; gap: 0; padding: 10px 32px 34px; transform: translateY(-120%); transition: transform .45s var(--ease); box-shadow: 0 20px 40px rgba(0,0,0,0.25); }
  .nav.open { transform: none; }
  .nav a { padding: 16px 0; width: 100%; border-bottom: 1px solid var(--line-dark); }
  .nav .btn { margin-top: 22px; width: auto; }
  .menu-toggle { display: block; }
  .site-header .wrap { height: 80px; } .nav { inset: 80px 0 auto 0; }
  .services, .projects { grid-template-columns: 1fr; }
  .service { min-height: 440px; }
  .footer-top { grid-template-columns: 1fr; gap: 44px; }
  .gallery { grid-template-columns: 1fr; grid-auto-rows: 240px; }
  .gallery figure:first-child { grid-row: span 1; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .wrap { padding: 0 22px; }
  .pad { padding: 96px 0; } .pad-sm { padding: 72px 0; }
  .hero .wrap { padding-bottom: 80px; }
  .hero::after { background: linear-gradient(180deg, rgba(28,29,27,0.6) 0%, rgba(28,29,27,0.5) 40%, rgba(28,29,27,0.88) 100%); }
  .hero-caption { display: none; }
  .page-hero { padding: 160px 0 80px; }
  .brand-name { font-size: 16px; letter-spacing: 0.2em; } .brand img { width: 44px; }
  .brand-sub { font-size: 7.5px; }
  .form { grid-template-columns: 1fr; }
  .principles { grid-template-columns: 1fr; }
  .facts { grid-template-columns: 1fr; }
  .service-body { padding: 28px; }
  .steps li { grid-template-columns: 1fr; gap: 14px; }
  .steps li p { grid-column: 1; }
  .btn { padding: 16px 24px; }
}
.field .label { font-size: 11px; font-weight: 700; letter-spacing: 0.24em; text-transform: uppercase; color: var(--charcoal); }
.field .label .opt { color: var(--stone-dark); font-weight: 600; letter-spacing: 0.1em; text-transform: none; }
.upload { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.upload input[type=file] { position: absolute; width: 1px; height: 1px; opacity: 0; overflow: hidden; clip: rect(0 0 0 0); }
.upload .btn-line-dark { color: var(--charcoal); border: 1px solid rgba(28,29,27,0.35); background: transparent; padding: 14px 24px; }
.upload .btn-line-dark:hover, .upload input:focus-visible + .btn-line-dark { border-color: var(--charcoal); background: var(--charcoal); color: var(--ivory); }
.upload-note { font-size: 14px; color: var(--stone-dark); }
