:root {
  --ink: #0b1f33;
  --ink-2: #334e68;
  --paper: #f4f7fb;
  --card: #ffffff;
  --white: #fff;
  --accent: #0b6e4f;
  --accent-dark: #07553d;
  --blue: #165d9c;
  --green: #123b5d;
  --line: rgba(11,31,51,.15);
  --muted: #5d7185;
  --shadow: 0 22px 60px rgba(11,31,51,.14);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; }
a { color: inherit; }
.container { width: min(1140px, calc(100% - 36px)); margin: 0 auto; }
.serif { font-family: Georgia, "Times New Roman", serif; }

.site-header { position: relative; z-index: 20; border-bottom: 1px solid var(--line); background: rgba(244,247,251,.96); backdrop-filter: blur(14px); }
.nav { min-height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 28px; }
.logo { display: inline-flex; align-items: center; gap: 10px; font-size: .9rem; font-weight: 900; text-decoration: none; white-space: nowrap; }
.logo-mark { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 10px; color: var(--white); background: var(--ink); font-size: .78rem; letter-spacing: -.05em; }
.nav-links { display: flex; align-items: center; gap: 22px; overflow-x: auto; scrollbar-width: none; }
.nav-links::-webkit-scrollbar { display: none; }
.nav-links a { color: var(--muted); font-size: .82rem; font-weight: 750; text-decoration: none; white-space: nowrap; }
.nav-links a:hover, .nav-links a:focus-visible, .nav-links a[aria-current="page"] { color: var(--accent); }

.eyebrow { margin: 0 0 16px; color: var(--accent-dark); font-size: .75rem; font-weight: 850; letter-spacing: .11em; text-transform: uppercase; }
.page-title { margin: 0; font: 700 clamp(2.8rem, 6vw, 5.7rem)/.97 Georgia, "Times New Roman", serif; letter-spacing: -.055em; text-wrap: balance; }
.lead { color: var(--ink-2); font-size: clamp(1.03rem, 1.7vw, 1.2rem); line-height: 1.68; }

.cta { min-height: 58px; display: inline-flex; align-items: center; justify-content: center; padding: 15px 24px; border-radius: 12px; color: var(--white); background: var(--accent); box-shadow: 0 12px 28px rgba(11,110,79,.28); font-size: .92rem; font-weight: 850; text-decoration: none; transition: transform .18s ease, background .18s ease; }
.cta::after { content: "→"; margin-left: 10px; font-size: 1.18rem; }
.cta:hover, .cta:focus-visible { background: var(--accent-dark); transform: translateY(-2px); }
.cta:focus-visible { outline: 3px solid rgba(11,110,79,.28); outline-offset: 4px; }
.cta-note { margin: 10px 0 0; color: var(--muted); font-size: .75rem; line-height: 1.5; }

.site-footer { border-top: 1px solid var(--line); padding: 27px 0 32px; color: var(--muted); font-size: .75rem; line-height: 1.55; }
.footer-row { display: flex; justify-content: space-between; gap: 30px; }
.footer-row p { max-width: 680px; margin: 0; }
.footer-row p:last-child { max-width: 390px; text-align: right; }

/* Homepage */
.home-hero { display: grid; grid-template-columns: .9fr 1.1fr; align-items: center; gap: clamp(42px,7vw,84px); padding: clamp(58px,9vw,110px) 0; }
.home-hero .lead { max-width: 600px; margin: 26px 0 0; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 11px; margin-top: 30px; }
.ghost { border: 1px solid var(--line); color: var(--ink); background: rgba(255,255,255,.45); box-shadow: none; }
.ghost:hover, .ghost:focus-visible { color: var(--ink); background: var(--white); }
.image-stack { position: relative; min-height: 535px; }
.stack-card { position: absolute; overflow: hidden; border: 7px solid var(--paper); border-radius: 22px; background: #d7dee1; box-shadow: var(--shadow); }
.stack-card img { width: 100%; height: 100%; display: block; object-fit: cover; }
.stack-card.one { top: 0; left: 0; width: 78%; height: 65%; transform: rotate(-2deg); }
.stack-card.two { right: 0; bottom: 0; width: 72%; height: 60%; transform: rotate(2deg); }
.stack-card.one img { object-position: 68% center; }
.stack-card.two img { object-position: 65% center; }
.stack-label { position: absolute; bottom: 12px; left: 12px; padding: 7px 10px; border-radius: 7px; color: #fff; background: rgba(16,24,32,.8); font-size: .72rem; font-weight: 800; }
.dark-section { padding: clamp(64px,9vw,105px) 0; color: var(--white); background: var(--ink); }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 36px; margin-bottom: 35px; }
.section-head h2 { max-width: 690px; margin: 0; font: 700 clamp(2.2rem,5vw,4rem)/1 Georgia, "Times New Roman", serif; letter-spacing: -.045em; }
.section-head p { max-width: 470px; margin: 0; color: rgba(255,255,255,.64); font-size: .95rem; line-height: 1.6; }
.category-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 15px; }
.category-card { overflow: hidden; border: 1px solid rgba(255,255,255,.13); border-radius: 19px; background: #1b2730; }
.category-card img { width: 100%; height: 220px; display: block; object-fit: cover; }
.category-card.roof img { object-position: 67% center; }
.category-card.window img { object-position: 63% center; }
.category-card.bath img { object-position: 60% center; }
.category-copy { padding: 23px; }
.category-copy h3 { margin: 0; font: 700 1.7rem/1.05 Georgia, "Times New Roman", serif; }
.category-copy p { min-height: 66px; margin: 13px 0 18px; color: #aeb8be; font-size: .88rem; line-height: 1.5; }
.version-links { display: flex; flex-wrap: wrap; gap: 8px; }
.version-links a { padding: 8px 10px; border: 1px solid rgba(255,255,255,.16); border-radius: 8px; color: #fff; font-size: .72rem; font-weight: 800; text-decoration: none; }
.version-links a:hover, .version-links a:focus-visible { border-color: var(--accent); background: var(--accent); }
.why-section { padding: clamp(64px,9vw,100px) 0; }
.benefit-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 13px; margin-top: 34px; }
.benefit { padding: 25px; border: 1px solid var(--line); border-radius: 16px; background: rgba(255,255,255,.55); }
.benefit b { display: block; margin-bottom: 22px; color: var(--accent); font-size: .72rem; letter-spacing: .1em; }
.benefit h3 { margin: 0 0 8px; font-size: 1rem; }
.benefit p { margin: 0; color: var(--muted); font-size: .88rem; line-height: 1.55; }

/* Shared offer page */
.offer-head { max-width: 900px; margin: 0 auto; padding: clamp(42px,7vw,78px) 0 32px; text-align: center; }
.offer-head .lead { max-width: 760px; margin: 22px auto 0; }
.offer-head .cta { width: min(100%,390px); margin-top: 23px; }
.hero-image { width: min(1040px,100%); height: clamp(320px,53vw,590px); margin: 0 auto; overflow: hidden; border-radius: 25px; box-shadow: var(--shadow); }
.hero-image img { width: 100%; height: 100%; display: block; object-fit: cover; }
.roof-image img { object-position: 66% center; }
.window-image img { object-position: 64% center; }
.bath-image img { object-position: 61% center; }
.offer-footer-note { margin-top: 9px; }
.mobile-cta { position: fixed; right: 22px; bottom: 22px; z-index: 50; display: block; padding: 8px; border: 1px solid var(--line); border-radius: 15px; background: rgba(255,255,255,.96); box-shadow: 0 12px 34px rgba(11,31,51,.18); }
.mobile-cta .cta { min-width: 240px; }

/* V1 blog */
.blog-layout { display: grid; grid-template-columns: minmax(0,700px) 270px; justify-content: center; align-items: start; gap: clamp(34px,6vw,66px); padding: clamp(42px,7vw,76px) 0; }
.article { font: 400 1.08rem/1.8 Georgia, "Times New Roman", serif; }
.article p { margin: 0 0 1.2em; }
.article h2 { margin: 1.9em 0 .55em; font-size: clamp(1.7rem,3.3vw,2.35rem); line-height: 1.15; letter-spacing: -.03em; }
.budget-note { margin: 30px 0; padding: 22px 23px; border-left: 5px solid var(--accent); border-radius: 0 13px 13px 0; background: #eaf7f1; font: 400 .98rem/1.6 Inter, ui-sans-serif, system-ui, sans-serif; }
.budget-note strong { display: block; margin-bottom: 5px; }
.side-card { position: sticky; top: 20px; overflow: hidden; border: 1px solid var(--line); border-radius: 16px; background: var(--card); }
.side-card h3 { margin: 0; padding: 21px; color: #fff; background: var(--green); font-size: 1.05rem; line-height: 1.3; }
.side-card ul { margin: 0; padding: 9px 21px 18px; list-style: none; }
.side-card li { padding: 12px 0; border-bottom: 1px solid var(--line); color: var(--ink-2); font-size: .84rem; font-weight: 700; line-height: 1.4; }
.side-card li:last-child { border: 0; }
.end-cta { margin-top: 36px; padding: clamp(27px,5vw,42px); border-radius: 20px; color: #fff; background: var(--ink); text-align: center; }
.end-cta h2 { margin: 0; color: #fff; font-size: clamp(1.7rem,4vw,2.5rem); }
.end-cta p { max-width: 540px; margin: 12px auto 22px; color: rgba(255,255,255,.7); font: 400 .95rem/1.55 Inter, ui-sans-serif, system-ui, sans-serif; }
.end-cta .cta-note { color: rgba(255,255,255,.58); }

/* V2 feature story */
.feature-story { background: #f8fafb; }
.story-label { padding: 9px 0; color: #fff; background: var(--ink); font-size: .7rem; font-weight: 850; letter-spacing: .12em; text-align: center; text-transform: uppercase; }
.story-hero { display: grid; grid-template-columns: 1fr 1fr; align-items: stretch; min-height: 600px; margin: 28px auto 0; overflow: hidden; border: 1px solid var(--line); border-radius: 24px; background: #fff; box-shadow: var(--shadow); }
.story-copy { display: flex; flex-direction: column; justify-content: center; padding: clamp(36px,6vw,70px); }
.story-copy .page-title { font-size: clamp(2.7rem,5.3vw,5rem); }
.story-copy .lead { margin: 22px 0 0; }
.story-copy .cta { width: min(100%,390px); margin-top: 24px; }
.story-photo { min-height: 430px; }
.story-photo img { width: 100%; height: 100%; display: block; object-fit: cover; }
.story-photo.roof-image img { object-position: 68% center; }
.story-photo.window-image img { object-position: 66% center; }
.story-photo.bath-image img { object-position: 62% center; }
.story-content { width: min(850px,calc(100% - 36px)); margin: 0 auto; padding: clamp(52px,8vw,90px) 0; }
.story-content h2 { margin: 0 0 16px; font: 700 clamp(2rem,4vw,3.2rem)/1.08 Georgia, "Times New Roman", serif; letter-spacing: -.035em; }
.story-content > p { color: var(--ink-2); font: 400 1.05rem/1.75 Georgia, "Times New Roman", serif; }
.story-points { display: grid; grid-template-columns: repeat(3,1fr); gap: 12px; margin: 32px 0 44px; }
.story-point { padding: 21px; border: 1px solid var(--line); border-radius: 14px; background: #fff; }
.story-point strong { display: block; margin-bottom: 7px; }
.story-point p { margin: 0; color: var(--muted); font-size: .86rem; line-height: 1.5; }
.quote-strip { padding: clamp(28px,5vw,44px); border-radius: 19px; color: #fff; background: var(--green); text-align: center; }
.quote-strip h2 { margin-bottom: 10px; color: #fff; }
.quote-strip p { max-width: 590px; margin: 0 auto 21px; color: rgba(255,255,255,.74); font-size: .95rem; line-height: 1.55; }
.quote-strip .cta-note { color: rgba(255,255,255,.62); }

/* V3 simple */
.simple { min-height: calc(100vh - 72px); display: grid; align-items: center; padding: clamp(38px,6vw,70px) 0; }
.simple-card { display: grid; grid-template-columns: .9fr 1.1fr; min-height: 620px; overflow: hidden; border: 1px solid var(--line); border-radius: 27px; background: #fff; box-shadow: var(--shadow); }
.simple-copy { display: flex; flex-direction: column; justify-content: center; padding: clamp(34px,6vw,68px); }
.simple-copy .page-title { font-size: clamp(2.7rem,5vw,4.8rem); }
.simple-copy .lead { margin: 21px 0 0; }
.simple-list { display: grid; gap: 9px; margin: 26px 0; padding: 0; list-style: none; }
.simple-list li { position: relative; padding-left: 29px; color: var(--ink-2); font-size: .9rem; font-weight: 700; line-height: 1.45; }
.simple-list li::before { content: "✓"; position: absolute; left: 0; top: 0; width: 20px; height: 20px; display: grid; place-items: center; border-radius: 50%; color: #fff; background: var(--green); font-size: .68rem; }
.simple-copy .cta { width: 100%; }
.simple-photo { min-height: 440px; }
.simple-photo img { width: 100%; height: 100%; display: block; object-fit: cover; }
.simple-photo.roof-image img { object-position: 68% center; }
.simple-photo.window-image img { object-position: 66% center; }
.simple-photo.bath-image img { object-position: 62% center; }

/* Contact */
.contact-page { min-height: calc(100vh - 72px); display: grid; align-items: center; padding: clamp(52px,9vw,100px) 0; }
.contact-layout { display: grid; grid-template-columns: 1fr .75fr; align-items: center; gap: clamp(40px,8vw,86px); }
.contact-layout .lead { max-width: 600px; }
.contact-card { padding: clamp(28px,5vw,42px); border-radius: 22px; color: #fff; background: var(--ink); box-shadow: var(--shadow); }
.contact-card h2 { margin: 0; font: 700 2rem/1.08 Georgia, "Times New Roman", serif; }
.contact-card p { color: rgba(255,255,255,.68); font-size: .9rem; line-height: 1.58; }
.email-link { width: 100%; min-height: 56px; display: inline-flex; align-items: center; justify-content: center; padding: 14px; border-radius: 11px; color: #fff; background: var(--accent); font-size: .88rem; font-weight: 850; text-decoration: none; overflow-wrap: anywhere; }
.partner-note { padding-top: 16px; border-top: 1px solid rgba(255,255,255,.14); font-size: .76rem !important; }

@media (max-width: 900px) {
  .home-hero, .story-hero, .simple-card, .contact-layout { grid-template-columns: 1fr; }
  .home-hero { gap: 38px; }
  .image-stack { min-height: 500px; }
  .category-grid { grid-template-columns: 1fr 1fr; }
  .category-card:last-child { grid-column: 1/-1; }
  .blog-layout { grid-template-columns: minmax(0,700px); }
  .side-card { display: none; }
  .story-photo { grid-row: 1; height: 440px; }
  .story-copy { grid-row: 2; }
  .simple-photo { grid-row: 1; height: 440px; }
  .simple-copy { grid-row: 2; }
}

@media (max-width: 640px) {
  .container { width: min(100% - 22px,560px); }
  .offer-page { padding-bottom: calc(78px + env(safe-area-inset-bottom)); }
  .nav { min-height: 0; align-items: flex-start; flex-direction: column; gap: 10px; padding: 11px 0 9px; }
  .nav-links { width: 100%; gap: 18px; padding-bottom: 3px; }
  .page-title { font-size: clamp(2.75rem,14vw,4.2rem); }
  .home-hero { padding: 44px 0 65px; }
  .hero-actions { display: grid; }
  .hero-actions .cta { width: 100%; }
  .image-stack { min-height: 390px; }
  .stack-card { border-width: 5px; border-radius: 16px; }
  .section-head { display: block; }
  .section-head p { margin-top: 14px; }
  .category-grid, .benefit-grid, .story-points { grid-template-columns: 1fr; }
  .category-card:last-child { grid-column: auto; }
  .category-copy p { min-height: 0; }
  .offer-head { padding-top: 38px; text-align: left; }
  .offer-head .lead { margin-left: 0; }
  .offer-head .cta { width: 100%; }
  .hero-image { height: 310px; border-radius: 16px; }
  .blog-layout { padding-top: 38px; }
  .article { font-size: 1.02rem; }
  .story-hero { margin-top: 16px; border-radius: 17px; }
  .story-photo, .simple-photo { height: 300px; min-height: 300px; }
  .story-copy { padding: 31px 22px 34px; }
  .story-copy .cta { width: 100%; }
  .story-content { width: min(100% - 22px,560px); }
  .simple { min-height: 0; padding: 16px 0 42px; }
  .simple-card { border-radius: 17px; }
  .simple-copy { padding: 30px 22px 34px; }
  .footer-row { display: block; }
  .footer-row p:last-child { margin-top: 9px; text-align: left; }
  .mobile-cta { position: fixed; right: 0; bottom: 0; left: 0; z-index: 50; display: block; padding: 9px 11px calc(9px + env(safe-area-inset-bottom)); border: 0; border-top: 1px solid var(--line); border-radius: 0; background: rgba(255,255,255,.96); box-shadow: 0 -8px 25px rgba(11,31,51,.1); }
  .mobile-cta .cta { width: 100%; min-height: 52px; }
}

@media (prefers-reduced-motion: reduce) { *,*::before,*::after { scroll-behavior: auto !important; transition: none !important; } }
