/* ==========================================================================
   Nova Roofing & Building Ltd
   Design system — extends the premium concept direction:
   ink + stone + gold, image-led, generous type, rounded frames.
   ========================================================================== */

:root {
  --ink: #12191a;
  --ink-soft: #202b2b;
  --stone: #f4f1eb;
  --paper: #fbfaf7;
  --line: rgba(18, 25, 26, .14);
  --muted: #6d7471;
  --gold: #d3ad62;
  --gold-light: #eed39a;
  --gold-deep: #a78142;
  --white: #fff;
  --radius: 24px;
  --display: "Avenir Next", "Helvetica Neue", Arial, sans-serif;
  --body: Inter, "Helvetica Neue", Arial, sans-serif;
  --header-h: 132px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
body.nav-open { overflow: hidden; }
img { display: block; width: 100%; object-fit: cover; }
a { color: inherit; text-decoration: none; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

.container { width: min(1200px, calc(100% - 64px)); margin: 0 auto; }
.skip-link {
  position: absolute; z-index: 50; top: 8px; left: 8px;
  padding: 10px 16px; border-radius: 999px;
  background: var(--gold); color: var(--ink);
  font-size: 12px; font-weight: 800;
  transform: translateY(-160%); transition: transform .2s ease;
}
.skip-link:focus { transform: none; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  color: var(--gold);
  font-size: 11px; font-weight: 800; letter-spacing: .16em; line-height: 1.2;
  text-transform: uppercase;
}
.eyebrow::before { content: ""; width: 28px; height: 1px; background: currentColor; }

h1, h2, h3, h4, p { margin-top: 0; }
h1, h2, h3 { font-family: var(--display); letter-spacing: -.045em; }
h1 { font-size: clamp(46px, 6.4vw, 92px); line-height: .96; font-weight: 700; }
h2 { font-size: clamp(38px, 4.6vw, 64px); line-height: 1; font-weight: 700; }
h3 { font-size: 23px; line-height: 1.12; }

.button {
  display: inline-flex; align-items: center; justify-content: center; gap: 14px;
  min-height: 54px; padding: 0 24px;
  border: 1px solid transparent; border-radius: 999px;
  font-size: 13px; font-weight: 800; letter-spacing: .02em;
  cursor: pointer;
  transition: transform .2s ease, background .2s ease, color .2s ease, border-color .2s ease;
}
.button:hover { transform: translateY(-2px); }
.button.gold { background: var(--gold); color: var(--ink); }
.button.gold:hover { background: var(--gold-light); }
.button.ghost { border-color: rgba(255,255,255,.34); color: var(--white); }
.button.ghost:hover { background: rgba(255,255,255,.1); }
.button.dark { background: var(--ink); color: var(--white); }
.button.dark:hover { background: var(--ink-soft); }
.button.outline { border-color: var(--line); color: var(--ink); }
.button.outline:hover { border-color: var(--ink); }
.button .arrow { font-size: 19px; line-height: 0; }

/* --------------------------------------------------------- Header / nav */
.site-header {
  position: absolute; z-index: 30; top: 0; left: 0;
  width: 100%; color: var(--white);
  transition: background .3s ease, box-shadow .3s ease;
}
.site-header.is-stuck {
  position: fixed;
  background: rgba(11, 16, 17, .94);
  backdrop-filter: blur(14px);
  box-shadow: 0 18px 48px rgba(8, 12, 13, .28);
}
.site-header.is-stuck .utility { display: none; }
.site-header.is-stuck .nav-inner { min-height: 76px; }

.utility {
  border-bottom: 1px solid rgba(255,255,255,.14);
  color: rgba(255,255,255,.74);
  font-size: 11px; letter-spacing: .08em; text-transform: uppercase;
}
.utility-inner { display: flex; justify-content: space-between; align-items: center; gap: 20px; min-height: 40px; }
.utility strong { color: var(--gold-light); font-weight: 700; }
.utility-right { display: flex; gap: 25px; }
.utility-right a:hover { color: var(--gold-light); }

.nav { border-bottom: 1px solid rgba(255,255,255,.14); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 92px; transition: min-height .3s ease; }
.brand { display: flex; align-items: center; gap: 11px; min-width: 170px; }
.brand img { width: 48px; height: 48px; object-fit: contain; }
.brand-text { font-family: var(--display); font-size: 19px; line-height: .95; font-weight: 800; letter-spacing: -.04em; }
.brand-text span { display: block; margin-top: 6px; color: var(--gold-light); font-family: var(--body); font-size: 8px; font-weight: 800; letter-spacing: .17em; }

.nav-links { display: flex; align-items: center; gap: 31px; color: rgba(255,255,255,.84); font-size: 13px; font-weight: 650; }
.nav-links > li { position: relative; list-style: none; }
.nav-links { margin: 0; padding: 0; }
.nav-links a, .nav-links .nav-trigger {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 0; border: 0; background: none;
  color: inherit; font: inherit; cursor: pointer;
  transition: color .2s ease;
}
.nav-links a:hover, .nav-links .nav-trigger:hover,
.nav-links li.is-open > .nav-trigger { color: var(--gold-light); }
.nav-links a.is-current, .nav-links .nav-trigger.is-current { color: var(--gold-light); }
.nav-drop a.is-current { background: rgba(255,255,255,.07); color: var(--white); }
.nav-drop a.is-current::after { opacity: 1; }
.nav-trigger::after { content: "⌄"; margin-top: -4px; color: var(--gold-light); }

.nav-drop {
  position: absolute; z-index: 5; top: calc(100% + 18px); left: -22px;
  width: 262px; margin: 0; padding: 12px;
  border: 1px solid rgba(255,255,255,.12); border-radius: 18px;
  background: rgba(13, 19, 20, .97);
  backdrop-filter: blur(16px);
  box-shadow: 0 26px 60px rgba(8, 12, 13, .42);
  list-style: none;
  opacity: 0; visibility: hidden; transform: translateY(8px);
  transition: opacity .2s ease, transform .2s ease, visibility .2s;
}
.nav-links li.is-open > .nav-drop,
.nav-links li:hover > .nav-drop { opacity: 1; visibility: visible; transform: none; }
.nav-drop a {
  display: flex; justify-content: space-between; align-items: center;
  padding: 10px 12px; border-radius: 11px;
  color: rgba(255,255,255,.78); font-size: 13px; font-weight: 650;
}
.nav-drop a::after { content: "↗"; opacity: 0; color: var(--gold-light); transition: opacity .2s ease; }
.nav-drop a:hover { background: rgba(255,255,255,.07); color: var(--white); }
.nav-drop a:hover::after { opacity: 1; }

.nav-cta { min-height: 45px; padding: 0 18px; font-size: 12px; }
.nav-toggle {
  display: none; align-items: center; justify-content: center;
  width: 46px; height: 46px; padding: 0;
  border: 1px solid rgba(255,255,255,.28); border-radius: 50%;
  background: none; color: var(--white); cursor: pointer;
}
.nav-toggle span { position: relative; display: block; width: 17px; height: 1.5px; background: currentColor; }
.nav-toggle span::before, .nav-toggle span::after {
  content: ""; position: absolute; left: 0; width: 17px; height: 1.5px; background: currentColor;
  transition: transform .25s ease, top .25s ease;
}
.nav-toggle span::before { top: -5px; }
.nav-toggle span::after { top: 5px; }
.nav-open .nav-toggle span { background: transparent; }
.nav-open .nav-toggle span::before { top: 0; transform: rotate(45deg); }
.nav-open .nav-toggle span::after { top: 0; transform: rotate(-45deg); }

/* Mobile drawer */
.mobile-nav {
  position: fixed; z-index: 29; inset: 0;
  display: flex; flex-direction: column;
  padding: 118px 0 40px;
  background: #0b1011; color: var(--white);
  overflow-y: auto;
  opacity: 0; visibility: hidden; transform: translateY(-12px);
  transition: opacity .28s ease, transform .28s ease, visibility .28s;
}
.nav-open .mobile-nav { opacity: 1; visibility: visible; transform: none; }
.mobile-nav ul { margin: 0; padding: 0; list-style: none; }
.mobile-nav > .container > ul > li { border-bottom: 1px solid rgba(255,255,255,.1); }
.mobile-nav a:not(.button), .mobile-nav .nav-trigger {
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  width: 100%; padding: 17px 0; border: 0; background: none;
  color: var(--white); font-family: var(--display); font-size: 21px; font-weight: 700;
  letter-spacing: -.03em; text-align: left; cursor: pointer;
}
.mobile-nav .nav-trigger::after { content: "+"; color: var(--gold-light); font-size: 22px; }
.mobile-nav li.is-open > .nav-trigger::after { content: "–"; }
.mobile-nav .nav-drop {
  position: static; display: none;
  width: auto; margin: 0 0 14px; padding: 0 0 0 16px;
  border: 0; border-left: 1px solid rgba(255,255,255,.16); border-radius: 0;
  background: none; backdrop-filter: none; box-shadow: none;
  opacity: 1; visibility: visible; transform: none;
}
.mobile-nav li.is-open > .nav-drop { display: block; }
.mobile-nav .nav-drop a:not(.button) { padding: 9px 0; font-family: var(--body); font-size: 14px; font-weight: 650; color: rgba(255,255,255,.72); }
.mobile-nav .nav-drop a::after { display: none; }
.mobile-nav-foot { display: grid; gap: 10px; margin-top: 30px; }
.mobile-nav-foot .button { width: 100%; }
.mobile-nav-foot small { color: rgba(255,255,255,.45); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; }

/* --------------------------------------------------------- Hero (home) */
.hero { position: relative; min-height: 820px; overflow: hidden; color: var(--white); background: var(--ink); }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(90deg, rgba(8,12,13,.91) 0%, rgba(8,12,13,.7) 43%, rgba(8,12,13,.16) 100%);
}
.hero-image { position: absolute; inset: 0; height: 100%; object-position: center; opacity: .92; }
.hero-inner {
  position: relative; z-index: 2;
  display: grid; grid-template-columns: .9fr 1.1fr; align-items: end;
  min-height: 820px; padding-top: 210px; padding-bottom: 68px;
}
.hero-copy { max-width: 670px; padding-bottom: 54px; }
.hero-copy h1 { max-width: 700px; margin: 25px 0 28px; font-size: clamp(44px, 5.6vw, 80px); }
.hero-copy h1 em { color: var(--gold-light); font-style: normal; }
.hero-copy > p { max-width: 530px; margin-bottom: 35px; color: rgba(255,255,255,.76); font-size: 17px; line-height: 1.66; }
.hero-actions { display: flex; align-items: center; gap: 13px; flex-wrap: wrap; }
.hero-note { display: flex; align-items: center; gap: 12px; margin-top: 46px; color: rgba(255,255,255,.65); font-size: 12px; }
.avatar-stack { display: flex; }
.avatar-stack span {
  display: grid; place-items: center; width: 29px; height: 29px; margin-left: -7px;
  border: 2px solid var(--ink); border-radius: 50%;
  background: var(--gold); color: var(--ink); font-size: 11px; font-weight: 900;
}
.avatar-stack span:first-child { margin-left: 0; background: #d7d0c4; }
.avatar-stack span:nth-child(2) { background: #ae8063; }
.avatar-stack span:nth-child(3) { background: #84999a; }

.hero-panel {
  align-self: end; justify-self: end;
  width: min(380px, 100%); margin-bottom: 16px; padding: 25px;
  border: 1px solid rgba(255,255,255,.25); border-radius: 20px;
  background: rgba(18,25,26,.57); backdrop-filter: blur(15px);
}
.hero-panel-label { color: var(--gold-light); font-size: 10px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; }
.hero-panel h3 { margin: 12px 0 22px; color: var(--white); font-size: 25px; }
.panel-link {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 16px; border-top: 1px solid rgba(255,255,255,.2);
  color: var(--white); font-size: 12px; font-weight: 800;
}
.panel-link span { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--gold); color: var(--ink); font-size: 17px; }

.hero-bottom { position: absolute; z-index: 2; right: 0; bottom: 0; left: 0; border-top: 1px solid rgba(255,255,255,.15); background: rgba(18,25,26,.35); }
.hero-bottom-inner { display: grid; grid-template-columns: repeat(4, 1fr); }
.hero-proof {
  display: flex; align-items: center; gap: 12px;
  min-height: 78px; padding: 0 22px;
  border-right: 1px solid rgba(255,255,255,.15);
  color: rgba(255,255,255,.78);
  font-size: 11px; font-weight: 700; line-height: 1.25; letter-spacing: .06em; text-transform: uppercase;
}
.hero-proof:first-child { padding-left: 0; }
.hero-proof:last-child { border-right: 0; }
.proof-number { color: var(--gold-light); font-family: var(--display); font-size: 24px; font-weight: 800; letter-spacing: -.04em; }

/* --------------------------------------------------- Page hero (interior) */
.page-hero { position: relative; overflow: hidden; color: var(--white); background: var(--ink); }
.page-hero::before {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(94deg, rgba(8,12,13,.94) 0%, rgba(8,12,13,.78) 48%, rgba(8,12,13,.3) 100%);
}
.page-hero-image { position: absolute; inset: 0; height: 100%; opacity: .9; }
.page-hero-inner { position: relative; z-index: 2; padding-top: 232px; padding-bottom: 96px; }
.breadcrumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 24px; color: rgba(255,255,255,.5); font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.breadcrumbs a:hover { color: var(--gold-light); }
.breadcrumbs span[aria-hidden] { color: rgba(255,255,255,.3); }
.page-hero h1 { max-width: 15ch; margin: 20px 0 24px; }
.page-hero h1 em { color: var(--gold-light); font-style: normal; }
.page-hero > .container > .page-hero-inner { position: relative; }
.page-hero-lede { max-width: 620px; margin-bottom: 34px; color: rgba(255,255,255,.76); font-size: 17px; line-height: 1.7; }
.page-hero-actions { display: flex; flex-wrap: wrap; gap: 13px; }
.badge-row { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 30px; padding: 0; list-style: none; }
.badge-row li {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 9px 16px;
  border: 1px solid rgba(255,255,255,.22); border-radius: 999px;
  color: rgba(255,255,255,.82);
  font-size: 11px; font-weight: 750; letter-spacing: .06em; text-transform: uppercase;
}
.badge-row li::before { content: "✓"; color: var(--gold-light); font-weight: 900; }

/* --------------------------------------------------------- Sections */
.section { padding: 125px 0; }
.section.tight { padding: 96px 0; }
.section.stone { background: var(--stone); }
.section.dark { color: var(--white); background: var(--ink); }
.section.dark h2, .section.dark h3 { color: var(--white); }

.section-head { display: flex; align-items: end; justify-content: space-between; gap: 32px; margin-bottom: 58px; }
.section-head h2 { max-width: 630px; margin: 21px 0 0; }
.section-head p { max-width: 360px; margin: 0; color: var(--muted); font-size: 15px; line-height: 1.68; }
.section.dark .section-head p { color: rgba(255,255,255,.63); }
.section-head.center { display: block; max-width: 720px; margin: 0 auto 58px; text-align: center; }
.section-head.center .eyebrow::before { display: none; }
.section-head.center p { max-width: none; margin-top: 20px; }

.image-frame { position: relative; overflow: hidden; border-radius: var(--radius); background: #d2cdc3; }
.image-frame img { height: 100%; }
.image-tag {
  position: absolute; right: 20px; bottom: 20px;
  padding: 15px 17px; border-radius: 12px;
  background: rgba(18,25,26,.86); color: var(--white);
  font-size: 11px; font-weight: 800; line-height: 1.3; letter-spacing: .08em; text-transform: uppercase;
}
.image-tag span { display: block; margin-bottom: 4px; color: var(--gold-light); font-size: 20px; letter-spacing: -.04em; }

/* Split (intro / benefits) */
.split { display: grid; grid-template-columns: .86fr 1.14fr; gap: 105px; align-items: center; }
.split.reverse { grid-template-columns: 1.14fr .86fr; }
.split.reverse .split-media { order: 2; }
.split-media { height: 580px; }
.split-copy h2 { max-width: 580px; margin: 23px 0 25px; }
.split-copy h2 span { color: #938168; }
.section.dark .split-copy h2 span { color: var(--gold-light); }
.split-copy > p { max-width: 540px; margin-bottom: 28px; color: var(--muted); font-size: 17px; line-height: 1.76; }
.section.dark .split-copy > p { color: rgba(255,255,255,.7); }

.tick-list { display: grid; grid-template-columns: 1fr 1fr; gap: 13px 24px; max-width: 540px; margin: 0 0 37px; padding: 0; list-style: none; }
.tick-list.single { grid-template-columns: 1fr; }
.tick-list li { position: relative; padding-left: 23px; color: var(--ink-soft); font-size: 13px; font-weight: 750; line-height: 1.5; }
.tick-list li::before { content: "✓"; position: absolute; left: 0; color: var(--gold-deep); font-weight: 900; }
.section.dark .tick-list li { color: rgba(255,255,255,.82); }
.section.dark .tick-list li::before { color: var(--gold-light); }

/* --------------------------------------------------------- Services grid */
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.service-card { position: relative; min-height: 360px; overflow: hidden; border-radius: 18px; background: var(--ink-soft); }
.service-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(18,25,26,.03) 22%, rgba(18,25,26,.94) 100%); }
.service-card img { position: absolute; inset: 0; height: 100%; transition: transform .45s ease; }
.service-card:hover img { transform: scale(1.05); }
.service-card-content { position: absolute; z-index: 1; right: 22px; bottom: 20px; left: 22px; }
.service-index { display: block; margin-bottom: 50px; color: var(--gold-light); font-size: 11px; font-weight: 800; letter-spacing: .13em; }
.service-card h3 { margin: 0 0 9px; color: var(--white); font-size: 25px; }
.service-card p { max-width: 290px; margin: 0; color: rgba(255,255,255,.72); font-size: 13px; line-height: 1.5; }
.service-arrow { position: absolute; z-index: 2; right: 22px; bottom: 20px; display: grid; place-items: center; width: 37px; height: 37px; border-radius: 50%; background: var(--gold); color: var(--ink); font-size: 21px; }
.service-card.wide { grid-column: span 2; }
.service-card.wide .service-card-content { max-width: 470px; }
.services-footer {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  margin-top: 43px; padding-top: 26px;
  border-top: 1px solid rgba(255,255,255,.17);
  color: rgba(255,255,255,.68); font-size: 13px;
}
.section:not(.dark) .services-footer { border-top-color: var(--line); color: var(--muted); }

/* Offer cards (sub-services on interior pages) */
.offer-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.offer-card {
  display: flex; flex-direction: column;
  padding: 30px 28px 26px;
  border: 1px solid var(--line); border-radius: 18px;
  background: var(--white);
  transition: transform .3s ease, border-color .3s ease, box-shadow .3s ease;
}
.offer-card:hover { transform: translateY(-4px); border-color: rgba(211,173,98,.7); box-shadow: 0 24px 50px rgba(18,25,26,.09); }
.offer-card .offer-index { margin-bottom: 30px; color: var(--gold-deep); font-family: var(--display); font-size: 12px; font-weight: 800; letter-spacing: .14em; }
.offer-card h3 { margin: 0 0 11px; font-size: 22px; }
.offer-card p { margin: 0 0 22px; color: var(--muted); font-size: 14px; line-height: 1.62; }
.offer-card .offer-link { display: inline-flex; align-items: center; gap: 9px; margin-top: auto; color: var(--ink); font-size: 11px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.offer-card .offer-link span { display: grid; place-items: center; width: 27px; height: 27px; border-radius: 50%; background: var(--stone); color: var(--ink); font-size: 15px; transition: background .25s ease; }
.offer-card:hover .offer-link span { background: var(--gold); }

/* --------------------------------------------------------- Process list */
.process-grid { display: grid; grid-template-columns: .75fr 1.25fr; gap: 110px; align-items: start; }
.process-intro h2 { margin: 21px 0 24px; }
.process-intro p { max-width: 380px; color: var(--muted); font-size: 16px; line-height: 1.72; }
.section.dark .process-intro p { color: rgba(255,255,255,.66); }
.process-list { border-top: 1px solid var(--line); }
.section.dark .process-list, .section.dark .process-item { border-color: rgba(255,255,255,.14); }
.process-item { display: grid; grid-template-columns: 65px 1fr 30px; gap: 24px; align-items: center; padding: 28px 0; border-bottom: 1px solid var(--line); }
.process-item-number { color: var(--gold-deep); font-family: var(--display); font-size: 18px; font-weight: 800; }
.section.dark .process-item-number { color: var(--gold-light); }
.process-item h3 { margin: 0 0 7px; font-size: 24px; }
.process-item p { max-width: 560px; margin: 0; color: var(--muted); font-size: 14px; line-height: 1.58; }
.section.dark .process-item p { color: rgba(255,255,255,.62); }
.process-item-arrow { color: var(--gold-deep); font-size: 23px; }
.section.dark .process-item-arrow { color: var(--gold-light); }

/* --------------------------------------------------------- Work gallery */
.work-grid { display: grid; grid-template-columns: 1.24fr .76fr; gap: 16px; }
.project-large, .project-small { position: relative; overflow: hidden; border-radius: 18px; }
.project-large { min-height: 660px; }
.project-small { min-height: 318px; }
.project-large img, .project-small img { position: absolute; inset: 0; height: 100%; transition: transform .45s ease; }
.project-large:hover img, .project-small:hover img { transform: scale(1.04); }
.project-large::after, .project-small::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(18,25,26,0) 35%, rgba(18,25,26,.82) 100%); }
.project-stack { display: grid; gap: 16px; }
.project-details { position: absolute; z-index: 1; right: 28px; bottom: 27px; left: 28px; color: var(--white); }
.project-details small { display: block; margin-bottom: 9px; color: var(--gold-light); font-size: 10px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; }
.project-details h3 { margin: 0; color: var(--white); font-size: 30px; }
.project-small .project-details h3 { font-size: 22px; }
.work-footer { display: flex; justify-content: center; margin-top: 38px; }

/* --------------------------------------------------------- Why choose us */
.reasons-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--line); }
.reason {
  padding: 40px 34px 38px;
  background: var(--paper);
  transition: background .3s ease;
}
.reason:hover { background: var(--white); }
.section.stone .reason { background: var(--stone); }
.section.stone .reason:hover { background: var(--paper); }
.reason-number { display: block; margin-bottom: 26px; color: var(--gold-deep); font-family: var(--display); font-size: 12px; font-weight: 800; letter-spacing: .14em; }
.reason h3 { margin: 0 0 12px; font-size: 21px; }
.reason p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.66; }

/* --------------------------------------------------------- Areas covered */
.areas-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.area-card { padding: 34px 30px; border: 1px solid var(--line); border-radius: 18px; background: var(--white); }
.section.dark .area-card { border-color: rgba(255,255,255,.14); background: var(--ink-soft); }
.area-card h3 { margin: 0 0 18px; font-size: 21px; }
.area-card ul { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.area-card li { padding: 7px 14px; border-radius: 999px; background: var(--stone); color: var(--ink-soft); font-size: 12px; font-weight: 700; }
.section.dark .area-card li { background: rgba(255,255,255,.08); color: rgba(255,255,255,.8); }

/* --------------------------------------------------------- CTA + contact */
.cta { color: var(--white); background: var(--ink); }
.cta-inner { position: relative; overflow: hidden; display: grid; grid-template-columns: 1fr .75fr; gap: 80px; align-items: center; min-height: 430px; padding: 73px 0; }
.cta-inner::after {
  content: "N"; position: absolute; top: -82px; right: -10px;
  color: rgba(255,255,255,.035); font-family: Georgia, serif; font-size: 500px; line-height: 1;
  pointer-events: none;
}
.cta h2 { position: relative; z-index: 1; max-width: 690px; margin: 18px 0 30px; }
.cta h2 span { color: var(--gold-light); }
.cta-copy > p { position: relative; z-index: 1; max-width: 540px; margin-bottom: 28px; color: rgba(255,255,255,.69); font-size: 16px; }
.cta-actions { position: relative; z-index: 1; display: flex; flex-wrap: wrap; gap: 13px; }
.quote-card { position: relative; z-index: 1; justify-self: end; width: min(370px, 100%); padding: 26px; border-radius: 18px; background: #eae5dc; color: var(--ink); }
.quote-card h3 { margin-bottom: 15px; font-size: 25px; }
.quote-card p { margin-bottom: 20px; color: #626865; font-size: 13px; }
.quote-card .button { width: 100%; }
.quote-card .quote-list { margin: 0 0 20px; padding: 0; list-style: none; }
.quote-card .quote-list li { display: flex; justify-content: space-between; gap: 14px; padding: 11px 0; border-top: 1px solid rgba(18,25,26,.12); font-size: 13px; font-weight: 750; }
.quote-card .quote-list li span { color: #626865; font-weight: 650; }

/* Contact blocks */
.contact-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.contact-card { padding: 34px 30px 32px; border: 1px solid var(--line); border-radius: 18px; background: var(--white); }
.contact-card h3 { margin: 0 0 16px; font-size: 13px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-deep); font-family: var(--body); }
.contact-card a, .contact-card p { display: block; margin: 0 0 9px; font-family: var(--display); font-size: 21px; font-weight: 700; letter-spacing: -.03em; }
.contact-card a:hover { color: var(--gold-deep); }
.contact-card small { display: block; margin-top: 12px; color: var(--muted); font-family: var(--body); font-size: 12px; font-weight: 650; letter-spacing: .04em; }

/* Form */
.form-layout { display: grid; grid-template-columns: .9fr 1.1fr; gap: 90px; align-items: start; }
.form-aside h2 { margin: 21px 0 22px; }
.form-aside > p { max-width: 400px; color: var(--muted); font-size: 16px; line-height: 1.72; }
.form-card { padding: 40px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); box-shadow: 0 28px 70px rgba(18,25,26,.06); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: block; margin-bottom: 18px; }
.field > span { display: block; margin-bottom: 8px; color: var(--ink-soft); font-size: 11px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.field input, .field select, .field textarea {
  width: 100%; min-height: 52px; padding: 14px 16px;
  border: 1px solid var(--line); border-radius: 12px;
  background: var(--paper);
  color: var(--ink); font-family: var(--body); font-size: 15px;
  transition: border-color .2s ease, background .2s ease;
}
.field textarea { min-height: 132px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--gold); background: var(--white); outline: none; }
.form-card .button { width: 100%; margin-top: 8px; }
.form-note { margin: 16px 0 0; color: var(--muted); font-size: 12px; line-height: 1.6; }
.form-status { margin: 18px 0 0; padding: 14px 16px; border-radius: 12px; background: var(--stone); color: var(--ink-soft); font-size: 13px; font-weight: 700; }
.form-status[hidden] { display: none; }
.form-status[data-state="ok"] { background: #e7efe4; color: #2f5133; }
.form-status[data-state="error"] { background: #f5e4de; color: #7c3327; }
.form-card button[disabled] { opacity: .6; cursor: progress; transform: none; }
/* Honeypot — off-screen rather than display:none, which some bots skip. */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ------------------------------------------------------ Success panel */
.quote-block { position: relative; }
.form-success {
  padding: 46px 40px 42px;
  border: 1px solid rgba(87, 124, 92, .28);
  border-radius: var(--radius);
  background: #eef3ec;
  text-align: center;
  animation: quote-in .38s cubic-bezier(.22,.61,.36,1);
}
.form-success:focus { outline: none; }
.form-success:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
.form-success-mark {
  display: grid; place-items: center;
  width: 68px; height: 68px; margin: 0 auto 24px;
  border-radius: 50%;
  background: #2f5133; color: #fff;
}
.form-success h3 {
  max-width: 18ch; margin: 0 auto 14px;
  color: #22391f;
  font-size: clamp(26px, 3.4vw, 34px); line-height: 1.1;
}
.form-success p { max-width: 42ch; margin: 0 auto; color: #4a5c4a; font-size: 15px; line-height: 1.66; }
.form-success-actions {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 12px;
  margin-top: 30px;
}
.form-success-actions .button.outline { border-color: rgba(47, 81, 51, .34); color: #2f5133; }
.form-success-actions .button.outline:hover { border-color: #2f5133; background: rgba(47, 81, 51, .06); }

/* In the modal the dialog already supplies the frame. */
.quote-block--modal .form-success { padding: 34px 8px 8px; border: 0; background: none; }
.quote-block--modal .form-success-mark { width: 76px; height: 76px; }

/* --------------------------------------------------- Quote modal (dialog) */
.quote-modal {
  width: min(680px, calc(100% - 32px));
  max-height: min(88vh, 900px);
  padding: 0;
  border: 0;
  border-radius: var(--radius);
  background: var(--paper);
  color: var(--ink);
  overflow: hidden;
  box-shadow: 0 40px 110px rgba(8, 12, 13, .45);
}
.quote-modal::backdrop {
  background: rgba(8, 12, 13, .68);
  backdrop-filter: blur(6px);
}
.quote-modal[open] { animation: quote-in .32s cubic-bezier(.22,.61,.36,1); }
.quote-modal[open]::backdrop { animation: quote-fade .32s ease; }
@keyframes quote-in { from { opacity: 0; transform: translateY(18px) scale(.97); } }
@keyframes quote-fade { from { opacity: 0; } }

.quote-modal-inner {
  max-height: min(88vh, 900px);
  padding: 38px 40px 34px;
  overflow-y: auto;
  overscroll-behavior: contain;
}
.quote-modal h2 { margin: 18px 0 12px; font-size: clamp(30px, 4.2vw, 40px); }
.quote-modal-lede { max-width: 48ch; margin: 0 0 26px; color: var(--muted); font-size: 15px; line-height: 1.65; }
.quote-modal-close {
  position: absolute; top: 18px; right: 18px; z-index: 2;
  display: grid; place-items: center;
  width: 40px; height: 40px; padding: 0;
  border: 1px solid var(--line); border-radius: 50%;
  background: var(--white); color: var(--ink);
  font-size: 24px; line-height: 1; cursor: pointer;
  transition: background .2s ease, transform .2s ease;
}
.quote-modal-close:hover { background: var(--stone); transform: rotate(90deg); }

/* Inside the modal the card is the dialog itself — drop the nested chrome.
   Scoped to .quote-modal so the responsive `.form-card` padding further down
   the sheet cannot win on source order. */
.quote-modal .form-card--modal { padding: 0; border: 0; border-radius: 0; background: none; box-shadow: none; }
.form-card--modal .field input,
.form-card--modal .field select,
.form-card--modal .field textarea { background: var(--white); }
.form-card--modal .field textarea { min-height: 104px; }

/* --------------------------------------------------------- Footer */
.footer { padding: 66px 0 25px; color: rgba(255,255,255,.72); background: #0b1011; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.1fr; gap: 45px; padding-bottom: 50px; }
.footer .brand { color: var(--white); }
.footer-intro { max-width: 300px; margin: 20px 0 0; color: rgba(255,255,255,.5); font-size: 13px; line-height: 1.68; }
.footer h4 { margin: 5px 0 17px; color: var(--gold-light); font-size: 10px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; }
.footer-col a, .footer-col p { display: block; margin: 0 0 9px; font-size: 13px; }
.footer-col a:hover { color: var(--gold-light); }
.footer-col .sub { color: rgba(255,255,255,.4); font-size: 11px; }
.footer-areas { display: grid; grid-template-columns: repeat(3, 1fr); gap: 34px; padding: 34px 0; border-top: 1px solid rgba(255,255,255,.12); }
.footer-areas h4 { margin-bottom: 14px; }
.footer-areas ul { display: flex; flex-wrap: wrap; gap: 7px 14px; margin: 0; padding: 0; list-style: none; }
.footer-areas li { color: rgba(255,255,255,.55); font-size: 12px; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 14px; padding-top: 19px; border-top: 1px solid rgba(255,255,255,.12); color: rgba(255,255,255,.38); font-size: 11px; }

/* --------------------------------------------------------- Utilities */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s cubic-bezier(.22,.61,.36,1), transform .7s cubic-bezier(.22,.61,.36,1); }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  * { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* --------------------------------------------------------- Responsive */
@media (max-width: 1100px) {
  .split { gap: 64px; }
  .process-grid { gap: 64px; }
  .form-layout { gap: 56px; }
  .services-grid, .offer-grid, .reasons-grid, .contact-grid, .areas-grid { grid-template-columns: repeat(2, 1fr); }
  .reasons-grid { border-radius: 20px; }
}

@media (max-width: 950px) {
  .container { width: min(100% - 38px, 720px); }
  .utility-right, .nav-links { display: none; }
  .nav-toggle { display: inline-flex; }
  .nav-inner { min-height: 76px; }
  .site-header.is-stuck .nav-inner { min-height: 70px; }
  .hero, .hero-inner { min-height: 820px; }
  /* Narrow viewports need a vertical scrim — the wide horizontal one leaves
     the right-hand side of the copy sitting over bare image. */
  .hero::before { background: linear-gradient(180deg, rgba(8,12,13,.9) 0%, rgba(8,12,13,.74) 42%, rgba(8,12,13,.93) 100%); }
  .page-hero::before { background: linear-gradient(180deg, rgba(8,12,13,.92) 0%, rgba(8,12,13,.8) 45%, rgba(8,12,13,.95) 100%); }
  .hero-inner { grid-template-columns: 1fr; padding-top: 150px; }
  .hero-panel { justify-self: start; width: min(390px, 100%); margin-top: 10px; }
  .hero-copy { padding-bottom: 0; }
  .hero-bottom-inner { grid-template-columns: repeat(2, 1fr); }
  .hero-proof { border-bottom: 1px solid rgba(255,255,255,.15); }
  .hero-proof:nth-child(2) { border-right: 0; }
  .hero-proof:nth-child(3), .hero-proof:nth-child(4) { border-bottom: 0; }
  .page-hero-inner { padding-top: 160px; padding-bottom: 76px; }
  .split, .split.reverse, .process-grid, .cta-inner, .form-layout { grid-template-columns: 1fr; gap: 50px; }
  .split.reverse .split-media { order: 0; }
  .split-media { height: 440px; }
  .work-grid { grid-template-columns: 1fr; }
  .project-large { min-height: 500px; }
  .project-stack { grid-template-columns: 1fr 1fr; }
  .project-small { min-height: 260px; }
  .quote-card { justify-self: start; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-areas { grid-template-columns: 1fr; gap: 24px; }
  .form-card { padding: 30px; }
}

@media (max-width: 620px) {
  .container { width: calc(100% - 32px); }
  .utility { display: none; }
  .mobile-nav { padding-top: 104px; }
  .brand-text { font-size: 16px; }
  .brand img { width: 41px; height: 41px; }
  .nav-cta { display: none; }
  .hero, .hero-inner { min-height: 790px; }
  .hero-inner { padding-top: 112px; padding-bottom: 170px; }
  .hero-copy h1 { font-size: clamp(44px, 13.5vw, 66px); }
  .hero-copy > p { font-size: 15px; }
  .hero-panel { padding: 19px; }
  .hero-bottom-inner { grid-template-columns: 1fr 1fr; }
  .hero-proof { min-height: 76px; padding: 0 10px; font-size: 9px; }
  .hero-proof:first-child { padding-left: 10px; }
  .page-hero-inner { padding-top: 132px; padding-bottom: 60px; }
  .page-hero-lede { font-size: 15px; }
  .badge-row li { padding: 8px 13px; font-size: 10px; }
  .section { padding: 78px 0; }
  .section.tight { padding: 64px 0; }
  .split-media { height: 340px; }
  .tick-list { grid-template-columns: 1fr; }
  .section-head { display: block; margin-bottom: 35px; }
  .section-head p { margin-top: 20px; }
  .services-grid, .offer-grid, .reasons-grid, .contact-grid, .areas-grid { grid-template-columns: 1fr; }
  .service-card, .service-card.wide { grid-column: span 1; min-height: 330px; }
  .services-footer { display: block; }
  .services-footer .button { margin-top: 20px; }
  .project-stack { grid-template-columns: 1fr; }
  .project-large { min-height: 430px; }
  .process-item { grid-template-columns: 38px 1fr; gap: 16px; }
  .process-item-arrow { display: none; }
  .form-row { grid-template-columns: 1fr; gap: 0; }
  .form-card { padding: 24px; }
  /* Full-height sheet on phones rather than a floating card. */
  .quote-modal {
    width: 100%; max-width: none; max-height: 100%;
    height: 100%; margin: 0;
    border-radius: 0;
  }
  .quote-modal-inner { max-height: 100%; padding: 74px 20px 32px; }
  .quote-modal h2 { font-size: 30px; }
  .quote-modal-close { top: 14px; right: 14px; }
  .form-success { padding: 34px 22px 30px; }
  .form-success-actions { flex-direction: column; }
  .form-success-actions .button { width: 100%; }
  .footer-grid { grid-template-columns: 1fr; gap: 30px; }
  .footer-bottom { display: block; }
  .footer-bottom span { display: block; margin-top: 7px; }
}
