:root {
  --black: #000000;
  --ink: #10100f;
  --ink-soft: #191815;
  --brown: #694b2a;
  --gold: #edbc5e;
  --gold-light: #fcf4b4;
  --ivory: #fffefc;
  --muted: #b9b4aa;
  --line: rgba(237, 188, 94, 0.22);
  --gradient: linear-gradient(112deg, #694b2a 0%, #edbc5e 48%, #fcf4b4 72%, #8b6234 100%);
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.24);
  --radius: 22px;
  --container: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; }
body {
  margin: 0;
  background: var(--ivory);
  color: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
body.menu-open { overflow: hidden; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }

.skip-link {
  position: fixed;
  z-index: 9999;
  left: 16px;
  top: -80px;
  padding: 12px 16px;
  background: var(--gold-light);
  color: var(--black);
  border-radius: 8px;
  font-weight: 700;
}
.skip-link:focus { top: 16px; }
.container { width: min(calc(100% - 40px), var(--container)); margin-inline: auto; }
.section { padding: 108px 0; }
.section-sm { padding: 72px 0; }
.dark { background: var(--black); color: var(--ivory); }
.soft { background: #f5f1e9; }
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 18px;
  color: var(--brown);
  font-size: .76rem;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
}
.dark .eyebrow { color: var(--gold); }
.eyebrow::before { content: ""; width: 26px; height: 1px; background: currentColor; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 {
  font-family: "Times New Roman", Times, serif;
  font-weight: 400;
  line-height: 1.04;
  letter-spacing: -.025em;
}
h1 { font-size: clamp(3.15rem, 6.5vw, 6.6rem); }
h2 { font-size: clamp(2.45rem, 4.6vw, 4.65rem); }
h3 { font-size: clamp(1.4rem, 2.1vw, 2rem); }
.lead { max-width: 720px; color: #5c584f; font-size: clamp(1.04rem, 1.5vw, 1.18rem); }
.dark .lead { color: #c9c3b8; }
.gold-text {
  color: var(--gold);
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 32px; margin-bottom: 46px; }
.section-head h2 { max-width: 690px; margin-bottom: 0; }
.section-head .lead { max-width: 430px; margin-bottom: 4px; }
.btn {
  min-height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 13px 23px;
  font-size: .83rem;
  font-weight: 700;
  letter-spacing: .07em;
  text-transform: uppercase;
  transition: transform .25s ease, box-shadow .25s ease, background .25s ease, border-color .25s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn svg { width: 17px; height: 17px; }
.btn-gold { color: var(--black); background: var(--gradient); box-shadow: 0 12px 32px rgba(237, 188, 94, .19); }
.btn-gold:hover { box-shadow: 0 18px 40px rgba(237, 188, 94, .28); }
.btn-outline { color: var(--ivory); border-color: rgba(255, 255, 255, .32); background: rgba(255, 255, 255, .05); }
.btn-outline:hover { border-color: var(--gold); background: rgba(237, 188, 94, .08); }
.btn-dark { background: var(--black); color: var(--ivory); }

/* Header */
.site-header {
  position: fixed;
  z-index: 1000;
  inset: 0 0 auto;
  height: 88px;
  color: var(--ivory);
  transition: background .25s ease, box-shadow .25s ease, height .25s ease;
}
.site-header.scrolled, .site-header.inner-header { background: rgba(0, 0, 0, .96); box-shadow: 0 9px 30px rgba(0, 0, 0, .2); }
.site-header.scrolled { height: 76px; }
.nav-wrap { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 26px; }
.brand { flex: 0 0 auto; width: 256px; }
.brand img { width: 100%; height: auto; }
.main-nav { display: flex; align-items: center; gap: 31px; }
.main-nav > a:not(.btn) {
  position: relative;
  color: #ddd7ca;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.main-nav > a:not(.btn)::after { content: ""; position: absolute; left: 0; right: 100%; bottom: -8px; height: 1px; background: var(--gold); transition: right .25s ease; }
.main-nav > a:not(.btn):hover, .main-nav > a.active { color: var(--gold-light); }
.main-nav > a:not(.btn):hover::after, .main-nav > a.active::after { right: 0; }
.menu-toggle { display: none; width: 46px; height: 46px; border: 1px solid rgba(255,255,255,.22); border-radius: 50%; background: transparent; color: white; align-items: center; justify-content: center; }
.menu-toggle svg { width: 22px; }

/* Hero */
.hero {
  min-height: 860px;
  display: grid;
  align-items: center;
  position: relative;
  overflow: hidden;
  color: var(--ivory);
  background: #070706 url('../images/hero.jpg') center/cover no-repeat;
}
.hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(0,0,0,.96) 0%, rgba(0,0,0,.78) 46%, rgba(0,0,0,.33) 100%); }
.hero::after { content: ""; position: absolute; inset: auto 0 0; height: 170px; background: linear-gradient(transparent, rgba(0,0,0,.82)); }
.hero-grid { position: relative; z-index: 2; display: grid; grid-template-columns: 1.22fr .78fr; gap: 66px; align-items: center; padding: 150px 0 96px; }
.hero-copy { max-width: 740px; }
.hero h1 { margin-bottom: 24px; }
.hero-copy > p:not(.eyebrow) { max-width: 620px; margin-bottom: 31px; color: #d6d0c4; font-size: 1.1rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-note { display: flex; flex-wrap: wrap; gap: 22px; margin-top: 30px; color: #cfc8bb; font-size: .84rem; }
.hero-note span { display: inline-flex; gap: 8px; align-items: center; }
.hero-note svg { width: 16px; height: 16px; color: var(--gold); }

.estimate-card { border: 1px solid rgba(237,188,94,.26); background: rgba(14,14,12,.88); backdrop-filter: blur(18px); border-radius: var(--radius); padding: 34px; box-shadow: var(--shadow); }
.estimate-card .eyebrow { margin-bottom: 12px; }
.estimate-card h2 { margin-bottom: 9px; font-size: 2.15rem; }
.estimate-card > p { margin-bottom: 24px; color: #bdb6aa; font-size: .91rem; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 13px; }
.field { display: grid; gap: 7px; }
.field.full { grid-column: 1 / -1; }
.field label { color: #d8d2c7; font-size: .75rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.field input, .field select, .field textarea {
  width: 100%;
  border: 1px solid rgba(255,255,255,.15);
  background: rgba(255,255,255,.065);
  color: var(--ivory);
  border-radius: 11px;
  padding: 13px 14px;
  outline: 0;
  transition: border-color .2s ease, background .2s ease;
}
.field input, .field select { height: 48px; }
.field textarea { min-height: 108px; resize: vertical; }
.field input::placeholder, .field textarea::placeholder { color: #8f8a82; }
.field select { color-scheme: dark; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--gold); background: rgba(255,255,255,.1); }
.consent { grid-column: 1 / -1; display: grid; grid-template-columns: 17px 1fr; gap: 9px; align-items: start; color: #98938b; font-size: .68rem; line-height: 1.45; }
.consent input { margin: 3px 0 0; accent-color: var(--gold); }
.consent a { color: var(--gold-light); text-decoration: underline; }
.estimate-card .btn { grid-column: 1 / -1; width: 100%; border: 0; margin-top: 3px; }
.form-message { min-height: 22px; grid-column: 1 / -1; margin-top: 3px; font-size: .82rem; }
.form-success { color: #b9e8b1; }
.form-error { color: #ffb3ad; }

/* Trust */
.trust-strip { position: relative; z-index: 5; margin-top: -1px; background: var(--black); color: var(--ivory); border-top: 1px solid var(--line); }
.trust-grid { display: grid; grid-template-columns: repeat(3, 1fr); }
.trust-item { min-height: 124px; display: flex; align-items: center; gap: 16px; padding: 26px 34px; border-right: 1px solid rgba(255,255,255,.11); }
.trust-item:last-child { border-right: 0; }
.trust-item svg { flex: 0 0 auto; width: 31px; height: 31px; color: var(--gold); }
.trust-item strong { display: block; margin-bottom: 2px; font-family: "Times New Roman", Times, serif; font-size: 1.34rem; font-weight: 400; }
.trust-item span { color: #9f9a91; font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; }

/* Services */
.services-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.service-card { position: relative; min-height: 400px; overflow: hidden; border-radius: 18px; background: #1a1917; color: white; isolation: isolate; }
.service-card::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, rgba(0,0,0,.08) 25%, rgba(0,0,0,.92) 100%); transition: background .35s ease; }
.service-card::after { content: ""; position: absolute; inset: 0; z-index: 1; border: 1px solid rgba(237,188,94,.1); border-radius: inherit; pointer-events: none; }
.service-card img { width: 100%; height: 100%; position: absolute; inset: 0; object-fit: cover; transition: transform .65s cubic-bezier(.2,.7,.2,1); }
.service-card:hover img { transform: scale(1.06); }
.service-card:hover::before { background: linear-gradient(180deg, rgba(0,0,0,.1) 10%, rgba(0,0,0,.96) 100%); }
.service-content { position: absolute; z-index: 2; inset: auto 24px 24px; }
.service-number { display: block; margin-bottom: 13px; color: var(--gold); font-size: .69rem; font-weight: 700; letter-spacing: .15em; }
.service-content h3 { margin-bottom: 7px; }
.service-content p { max-height: 0; overflow: hidden; margin: 0; color: #c8c1b6; font-size: .86rem; opacity: 0; transform: translateY(7px); transition: max-height .35s ease, opacity .35s ease, transform .35s ease; }
.service-card:hover .service-content p { max-height: 100px; opacity: 1; transform: translateY(0); }
.services-cta { margin-top: 34px; text-align: center; }

/* Image + copy */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 82px; align-items: center; }
.split-media { position: relative; min-height: 610px; }
.split-media > img { width: calc(100% - 54px); height: 550px; object-fit: cover; border-radius: var(--radius); }
.split-media .floating-image { position: absolute; width: 52%; height: 280px; right: 0; bottom: 0; border: 9px solid var(--ivory); object-fit: cover; border-radius: 17px; box-shadow: var(--shadow); }
.split-copy h2 { margin-bottom: 24px; }
.split-copy p { color: #5f5a51; }
.feature-list { display: grid; gap: 15px; margin: 30px 0 34px; padding: 0; list-style: none; }
.feature-list li { display: flex; gap: 13px; align-items: flex-start; }
.feature-list svg { flex: 0 0 auto; width: 20px; height: 20px; margin-top: 3px; color: var(--brown); }
.feature-list strong { display: block; margin-bottom: 2px; }
.feature-list span { color: #6d675e; font-size: .9rem; }

/* Process */
.process-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: rgba(237,188,94,.22); border: 1px solid var(--line); }
.process-item { position: relative; min-height: 285px; padding: 38px; background: var(--black); }
.process-item .step { color: var(--gold); font-size: .7rem; letter-spacing: .15em; }
.process-item h3 { margin: 50px 0 13px; }
.process-item p { margin-bottom: 0; color: #a9a39a; font-size: .92rem; }

/* Gallery band */
.gallery-band { display: grid; grid-template-columns: 1.25fr .75fr 1fr; min-height: 560px; background: #111; }
.gallery-band figure { position: relative; overflow: hidden; margin: 0; }
.gallery-band figure:nth-child(2) { border-inline: 4px solid var(--ivory); }
.gallery-band img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s ease; }
.gallery-band figure:hover img { transform: scale(1.04); }
.gallery-band figcaption { position: absolute; inset: auto 20px 18px; display: inline-flex; padding: 7px 11px; background: rgba(0,0,0,.72); color: var(--gold-light); border-radius: 999px; font-size: .66rem; letter-spacing: .1em; text-transform: uppercase; }

/* Warranty */
.warranty { position: relative; overflow: hidden; }
.warranty::before { content: ""; position: absolute; width: 510px; height: 510px; right: -160px; top: -180px; border: 1px solid rgba(237,188,94,.18); border-radius: 50%; box-shadow: inset 0 0 0 90px rgba(237,188,94,.02), inset 0 0 0 170px rgba(237,188,94,.025); }
.warranty-grid { position: relative; display: grid; grid-template-columns: 1.1fr .9fr; gap: 90px; align-items: center; }
.warranty h2 { margin-bottom: 18px; }
.warranty-boxes { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.warranty-box { padding: 25px; border: 1px solid var(--line); border-radius: 16px; background: rgba(255,255,255,.035); }
.warranty-box strong { display: block; margin-bottom: 5px; color: var(--gold-light); font-family: "Times New Roman", Times, serif; font-size: 1.35rem; font-weight: 400; }
.warranty-box p { margin: 0; color: #9e9990; font-size: .82rem; }

/* FAQ */
.faq-grid { display: grid; grid-template-columns: .72fr 1.28fr; gap: 80px; }
.faq-list { border-top: 1px solid #d7d0c4; }
.faq-item { border-bottom: 1px solid #d7d0c4; }
.faq-question { width: 100%; display: flex; justify-content: space-between; gap: 20px; padding: 23px 0; border: 0; background: transparent; text-align: left; color: var(--ink); font-family: "Times New Roman", Times, serif; font-size: 1.2rem; }
.faq-question svg { width: 20px; flex: 0 0 auto; transition: transform .25s ease; }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height .3s ease; }
.faq-answer p { padding: 0 42px 23px 0; color: #625d54; font-size: .92rem; }
.faq-item.open .faq-question svg { transform: rotate(45deg); }
.faq-item.open .faq-answer { max-height: 240px; }

/* Reviews CTA and final CTA */
.review-panel { display: flex; justify-content: space-between; align-items: center; gap: 32px; padding: 46px; border: 1px solid #dbd2c4; border-radius: var(--radius); background: white; }
.review-panel h3 { margin: 0 0 7px; }
.review-panel p { margin: 0; color: #686259; }
.stars { display: flex; gap: 5px; margin-bottom: 11px; color: #b88428; }
.stars svg { width: 18px; height: 18px; fill: currentColor; }
.final-cta { position: relative; overflow: hidden; text-align: center; color: white; background: #080807 url('../images/exterior.jpg') center/cover no-repeat; }
.final-cta::before { content: ""; position: absolute; inset: 0; background: rgba(0,0,0,.82); }
.final-cta .container { position: relative; z-index: 1; max-width: 900px; }
.final-cta h2 { margin-bottom: 20px; }
.final-cta p { max-width: 680px; margin: 0 auto 30px; color: #ccc6bb; }
.final-cta .hero-actions { justify-content: center; }

/* Inner pages */
.page-hero { min-height: 560px; display: flex; align-items: end; position: relative; overflow: hidden; padding: 170px 0 84px; color: white; background: #090908 center/cover no-repeat; }
.page-hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(0,0,0,.92), rgba(0,0,0,.42)); }
.page-hero .container { position: relative; z-index: 1; }
.page-hero h1 { max-width: 850px; margin: 0 0 17px; font-size: clamp(3.25rem, 6vw, 5.8rem); }
.page-hero p { max-width: 650px; margin: 0; color: #d0cabc; font-size: 1.06rem; }
.services-hero { background-image: url('../images/cabinets.jpg'); }
.about-hero { background-image: url('../images/living-room.jpg'); }
.contact-hero { min-height: 470px; background-image: url('../images/windows-doors.jpg'); }
.service-detail-list { display: grid; gap: 86px; }
.service-detail { display: grid; grid-template-columns: 1fr 1fr; gap: 74px; align-items: center; }
.service-detail:nth-child(even) .service-detail-media { order: 2; }
.service-detail-media { height: 480px; overflow: hidden; border-radius: var(--radius); }
.service-detail-media img { width: 100%; height: 100%; object-fit: cover; }
.service-tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 24px 0 30px; }
.service-tags span { padding: 7px 11px; border: 1px solid #d9d0c2; border-radius: 999px; color: #5e584e; font-size: .72rem; text-transform: uppercase; letter-spacing: .07em; }
.story-stat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 30px; }
.story-stat { padding: 20px; border: 1px solid #ddd5c9; border-radius: 14px; }
.story-stat strong { display: block; color: var(--brown); font-family: "Times New Roman", Times, serif; font-size: 2rem; font-weight: 400; }
.story-stat span { color: #706a60; font-size: .76rem; text-transform: uppercase; letter-spacing: .07em; }
.values-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.value-card { min-height: 280px; padding: 34px; border: 1px solid var(--line); border-radius: 18px; background: rgba(255,255,255,.035); }
.value-card svg { width: 35px; height: 35px; margin-bottom: 48px; color: var(--gold); }
.value-card h3 { margin-bottom: 10px; }
.value-card p { color: #aaa49b; font-size: .9rem; }
.contact-layout { display: grid; grid-template-columns: .72fr 1.28fr; gap: 70px; align-items: start; }
.contact-list { display: grid; gap: 14px; margin-top: 34px; }
.contact-card { display: flex; gap: 15px; align-items: center; padding: 20px; border: 1px solid #ddd4c6; border-radius: 14px; background: white; }
.contact-card svg { width: 24px; height: 24px; color: var(--brown); }
.contact-card small { display: block; color: #777066; text-transform: uppercase; letter-spacing: .08em; }
.contact-card strong { font-weight: 700; }
.contact-form-wrap { padding: 42px; border-radius: var(--radius); background: var(--black); color: white; box-shadow: var(--shadow); }
.contact-form-wrap h2 { font-size: 2.5rem; margin-bottom: 8px; }
.contact-form-wrap > p { color: #aaa49a; }
.legal { max-width: 900px; }
.legal h1 { margin-bottom: 20px; font-size: clamp(2.8rem, 5vw, 4.5rem); }
.legal h2 { margin: 46px 0 16px; font-size: 2rem; }
.legal h3 { margin: 30px 0 12px; font-size: 1.4rem; }
.legal p, .legal li { color: #514d46; }
.legal a { color: var(--brown); text-decoration: underline; }

/* Footer */
.site-footer { padding: 78px 0 28px; background: var(--black); color: var(--ivory); }
.footer-grid { display: grid; grid-template-columns: 1.25fr .65fr .65fr 1fr; gap: 54px; }
.site-footer img.footer-logo {
  display: block;
  width: min(100%, 270px);
  height: auto !important;
  max-height: 64px;
  aspect-ratio: 1100 / 233;
  object-fit: contain;
  object-position: left center;
  margin-bottom: 22px;
}
.footer-intro { max-width: 390px; color: #9e9990; font-size: .9rem; }
.footer-title { margin: 4px 0 19px; color: var(--gold); font-family: Arial, Helvetica, sans-serif; font-size: .7rem; font-weight: 700; letter-spacing: .15em; text-transform: uppercase; }
.footer-links { display: grid; gap: 10px; }
.footer-links a { color: #b7b1a7; font-size: .87rem; }
.footer-links a:hover { color: var(--gold-light); }
.socials { display: flex; gap: 9px; margin-top: 20px; }
.socials a { width: 40px; height: 40px; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.18); border-radius: 50%; color: var(--gold); transition: border-color .2s ease, transform .2s ease; }
.socials a:hover { transform: translateY(-2px); border-color: var(--gold); }
.socials svg { width: 17px; height: 17px; }
.footer-bottom { display: flex; justify-content: space-between; gap: 24px; margin-top: 58px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.1); color: #77736d; font-size: .75rem; }
.footer-bottom a:hover { color: var(--gold-light); }

.floating-actions { position: fixed; z-index: 900; right: 22px; bottom: 22px; display: flex; flex-direction: column; gap: 9px; }
.floating-action { width: 54px; height: 54px; display: grid; place-items: center; border-radius: 50%; color: var(--black); background: var(--gradient); box-shadow: 0 12px 30px rgba(0,0,0,.28); transition: transform .2s ease; }
.floating-action:hover { transform: translateY(-3px); }
.floating-action svg { width: 22px; height: 22px; }

/* Estimate popup */
body.popup-open { overflow: hidden; }
.estimate-popup {
  position: fixed;
  z-index: 2100;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 22px;
  opacity: 0;
  visibility: hidden;
  transition: opacity .28s ease, visibility .28s ease;
}
.estimate-popup.open { opacity: 1; visibility: visible; }
.popup-backdrop { position: absolute; inset: 0; padding: 0; border: 0; background: rgba(0, 0, 0, .82); backdrop-filter: blur(7px); }
.popup-dialog {
  position: relative;
  z-index: 1;
  width: min(100%, 980px);
  max-height: min(90vh, 760px);
  display: grid;
  grid-template-columns: .78fr 1.22fr;
  overflow: hidden;
  border: 1px solid rgba(237, 188, 94, .28);
  border-radius: 22px;
  background: var(--black);
  color: var(--ivory);
  box-shadow: 0 35px 100px rgba(0, 0, 0, .6);
  transform: translateY(22px) scale(.98);
  transition: transform .32s cubic-bezier(.2, .7, .2, 1);
}
.estimate-popup.open .popup-dialog { transform: none; }
.popup-visual {
  position: relative;
  min-height: 100%;
  display: flex;
  align-items: flex-end;
  padding: 34px;
  background: #171612 url('../images/living-room.jpg') center/cover no-repeat;
}
.popup-visual::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.12), rgba(0,0,0,.9)); }
.popup-visual-copy { position: relative; z-index: 1; }
.popup-visual-copy img { width: 64px; height: auto; margin-bottom: 22px; }
.popup-visual-copy h2 { margin-bottom: 11px; font-size: clamp(2rem, 3vw, 3rem); }
.popup-visual-copy p { margin: 0; color: #c8c1b6; font-size: .9rem; }
.popup-panel { overflow-y: auto; padding: 38px; }
.popup-panel .eyebrow { margin-bottom: 10px; }
.popup-panel h2 { margin-bottom: 8px; font-size: clamp(2rem, 3.3vw, 3rem); }
.popup-panel > p { margin-bottom: 23px; color: #aaa49a; font-size: .9rem; }
.popup-close {
  position: absolute;
  z-index: 3;
  top: 14px;
  right: 14px;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 50%;
  background: rgba(0,0,0,.72);
  color: white;
  transition: border-color .2s ease, background .2s ease, transform .2s ease;
}
.popup-close:hover { border-color: var(--gold); background: var(--brown); transform: rotate(4deg); }
.popup-close svg { width: 19px; height: 19px; }
.popup-panel .form-grid { gap: 11px; }
.popup-panel .field input,
.popup-panel .field select { height: 45px; }
.popup-panel .field label { font-size: .7rem; }
.popup-panel .consent { font-size: .64rem; }
.popup-panel .btn { min-height: 49px; }

[data-reveal] { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
[data-reveal].revealed { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  [data-reveal] { opacity: 1; transform: none; }
}

@media (max-width: 1050px) {
  .brand { width: 220px; }
  .main-nav { gap: 20px; }
  .main-nav .btn { display: none; }
  .hero-grid { grid-template-columns: 1fr 390px; gap: 38px; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .split { gap: 50px; }
  .footer-grid { grid-template-columns: 1.2fr .7fr .7fr; }
  .footer-grid > div:last-child { grid-column: 1 / -1; }
}

@media (max-width: 820px) {
  .section { padding: 78px 0; }
  .site-header, .site-header.scrolled { height: 74px; background: rgba(0,0,0,.97); }
  .brand { width: 208px; }
  .menu-toggle { display: inline-flex; }
  .main-nav { position: fixed; inset: 74px 0 0; display: flex; flex-direction: column; align-items: stretch; gap: 0; padding: 26px 20px 38px; background: #050505; transform: translateX(100%); visibility: hidden; transition: transform .28s ease, visibility .28s; }
  .main-nav.open { transform: translateX(0); visibility: visible; }
  .main-nav > a:not(.btn) { display: block; padding: 18px 4px; border-bottom: 1px solid rgba(255,255,255,.1); font-family: "Times New Roman", Times, serif; font-size: 1.45rem; font-weight: 400; letter-spacing: 0; text-transform: none; }
  .main-nav > a:not(.btn)::after { display: none; }
  .main-nav .btn { display: inline-flex; margin-top: 24px; }
  .hero { min-height: 0; background-position: 58% center; }
  .hero::before { background: linear-gradient(180deg, rgba(0,0,0,.85), rgba(0,0,0,.93)); }
  .hero-grid { grid-template-columns: 1fr; gap: 42px; padding: 128px 0 70px; }
  .hero-copy { max-width: 680px; }
  .estimate-card { max-width: 620px; }
  .trust-grid { grid-template-columns: 1fr; }
  .trust-item { min-height: 98px; border-right: 0; border-bottom: 1px solid rgba(255,255,255,.1); padding: 22px 0; }
  .section-head { display: block; }
  .section-head .lead { margin-top: 20px; }
  .split, .warranty-grid, .faq-grid, .contact-layout, .service-detail { grid-template-columns: 1fr; }
  .split-media { order: -1; }
  .split { gap: 38px; }
  .process-grid, .values-grid { grid-template-columns: 1fr; }
  .process-item { min-height: 235px; }
  .gallery-band { min-height: 760px; grid-template-columns: 1fr 1fr; }
  .gallery-band figure:first-child { grid-column: 1 / -1; }
  .gallery-band figure:nth-child(2) { border-inline: 0; border-right: 2px solid var(--ivory); border-top: 4px solid var(--ivory); }
  .gallery-band figure:nth-child(3) { border-top: 4px solid var(--ivory); }
  .warranty-grid { gap: 42px; }
  .faq-grid { gap: 36px; }
  .service-detail:nth-child(even) .service-detail-media { order: 0; }
  .service-detail-media { order: -1 !important; height: 430px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > div:first-child, .footer-grid > div:last-child { grid-column: 1 / -1; }
  .popup-dialog { grid-template-columns: .7fr 1.3fr; }
  .popup-visual { padding: 27px; }
  .popup-panel { padding: 34px 27px; }
}

@media (max-width: 560px) {
  .container { width: min(calc(100% - 30px), var(--container)); }
  .section { padding: 66px 0; }
  h1 { font-size: clamp(2.75rem, 14vw, 4rem); }
  h2 { font-size: clamp(2.2rem, 11vw, 3.25rem); }
  .brand { width: 178px; }
  .hero-grid { padding-top: 112px; }
  .hero-copy > p:not(.eyebrow) { font-size: 1rem; }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; }
  .hero-note { display: grid; gap: 11px; }
  .estimate-card { padding: 25px 19px; border-radius: 17px; }
  .form-grid { grid-template-columns: 1fr; }
  .field.full, .consent, .estimate-card .btn, .form-message { grid-column: 1; }
  .services-grid { grid-template-columns: 1fr; }
  .service-card { min-height: 390px; }
  .service-content p { max-height: 100px; opacity: 1; transform: none; }
  .split-media { min-height: 470px; }
  .split-media > img { width: calc(100% - 26px); height: 420px; }
  .split-media .floating-image { width: 58%; height: 190px; border-width: 6px; }
  .process-item { padding: 29px 24px; }
  .gallery-band { min-height: 900px; grid-template-columns: 1fr; }
  .gallery-band figure, .gallery-band figure:first-child { grid-column: auto; }
  .gallery-band figure:nth-child(2), .gallery-band figure:nth-child(3) { border: 0; border-top: 3px solid var(--ivory); }
  .warranty-boxes { grid-template-columns: 1fr; }
  .review-panel { display: block; padding: 30px 23px; }
  .review-panel .btn { margin-top: 24px; width: 100%; }
  .page-hero { min-height: 470px; padding: 145px 0 65px; }
  .page-hero h1 { font-size: clamp(2.8rem, 14vw, 4rem); }
  .service-detail-list { gap: 62px; }
  .service-detail { gap: 27px; }
  .service-detail-media { height: 340px; }
  .story-stat-grid { grid-template-columns: 1fr; }
  .contact-form-wrap { padding: 30px 19px; }
  .footer-grid { grid-template-columns: 1fr; gap: 36px; }
  .footer-grid > div:first-child, .footer-grid > div:last-child { grid-column: auto; }
  .footer-bottom { display: grid; }
  .floating-actions { right: 14px; bottom: 14px; }
  .floating-action { width: 50px; height: 50px; }
  .estimate-popup { padding: 10px; }
  .popup-dialog { max-height: 95vh; grid-template-columns: 1fr; overflow-y: auto; border-radius: 17px; }
  .popup-visual { min-height: 178px; padding: 22px; background-position: center 58%; }
  .popup-visual-copy img { width: 45px; margin-bottom: 9px; }
  .popup-visual-copy h2 { margin-bottom: 5px; font-size: 1.8rem; }
  .popup-visual-copy p { font-size: .78rem; }
  .popup-panel { overflow: visible; padding: 25px 18px 22px; }
  .popup-panel > p { margin-bottom: 18px; }
  .popup-close { top: 12px; right: 12px; }
}
