/* =========================================================
   A's Exterior Services — site styles
   Brand colors: luxury green, white, deep navy.
   Change them in :root below.
   ========================================================= */
:root {
  --green: #1f4433;         /* luxury green: hero, buttons on light */
  --green-deep: #15301f;
  --green-soft: #e8efea;
  --navy: #0f1c30;          /* deep navy: header, quote, reviews */
  --navy-deep: #0a1322;
  --navy-line: rgba(255,255,255,.12);
  --white: #ffffff;
  --mist: #f4f6f5;          /* light section background */
  --ink: #142019;
  --muted: #5b6662;
  --on-dark: #c9d3cf;       /* body text on dark backgrounds */
  --line: #dde2df;
  --radius-sm: 6px;
  --radius-lg: 14px;
  --head: "Marcellus", Georgia, serif;
  --body: "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;
  --wrap: 1140px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }
body { margin: 0; background: var(--white); color: var(--ink); font-family: var(--body); font-size: 1.0625rem; line-height: 1.6; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--green); }
a:hover { color: var(--navy); }
:focus-visible { outline: 3px solid #7fb39a; outline-offset: 3px; }

h1, h2, h3 { font-family: var(--head); font-weight: 400; line-height: 1.15; letter-spacing: .005em; margin: 0 0 .5em; }
h1 { font-size: clamp(2.3rem, 5.2vw, 4rem); }
h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); }
h3 { font-size: 1.35rem; }
p { margin: 0 0 1em; max-width: 68ch; }

.wrap { width: min(var(--wrap), 100% - 32px); margin-inline: auto; }
.section { padding: clamp(56px, 9vw, 104px) 0; }
.section--mist { background: var(--mist); }
.section--navy { background: var(--navy); color: var(--white); }
.section--navy p { color: var(--on-dark); }
.section--green { background: var(--green); color: var(--white); }
.lede { font-size: 1.2rem; color: var(--muted); }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 16px; top: 16px; background: var(--white); padding: 8px 12px; z-index: 100; }

/* ---------- Buttons ---------- */
.btn { display: inline-block; font-family: var(--body); font-weight: 600; font-size: 1rem; text-decoration: none; padding: 14px 24px; border-radius: var(--radius-sm); border: 2px solid transparent; cursor: pointer; transition: background .15s, color .15s, border-color .15s; text-align: center; }
.btn--white { background: var(--white); color: var(--navy); }
.btn--white:hover { background: var(--green-soft); color: var(--navy); }
.btn--outline { border-color: rgba(255,255,255,.6); color: var(--white); }
.btn--outline:hover { background: rgba(255,255,255,.1); color: var(--white); }
.btn--green { background: var(--green); color: var(--white); }
.btn--green:hover { background: var(--green-deep); color: var(--white); }
.btn--navy { background: var(--navy); color: var(--white); }
.btn--navy:hover { background: var(--navy-deep); color: var(--white); }

/* ---------- Header ---------- */
.site-header { background: var(--navy); color: var(--white); position: sticky; top: 0; z-index: 50; border-bottom: 1px solid var(--navy-line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 84px; }
.brand { display: flex; align-items: center; text-decoration: none; }
.brand-logo { height: 66px; width: auto; }
.nav { display: flex; align-items: center; gap: 20px; }
.nav a { color: #dfe6ef; text-decoration: none; font-size: .97rem; }
.nav a:hover, .nav a[aria-current="page"] { color: #9fd0b6; }
.nav .btn { padding: 10px 16px; font-size: .95rem; color: var(--white); }
.nav .btn:hover { color: var(--white); }
.nav-toggle { display: none; background: none; border: 1px solid rgba(255,255,255,.4); color: var(--white); border-radius: var(--radius-sm); padding: 8px 12px; font: inherit; }
@media (max-width: 980px) {
  .nav-toggle { display: block; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 84px; background: var(--navy); flex-direction: column; align-items: flex-start; padding: 8px 16px 20px; gap: 14px; border-top: 1px solid var(--navy-line); }
  .nav.is-open { display: flex; }
}
@media (max-width: 600px) { .brand-logo { height: 56px; } }

/* ---------- Hero ---------- */
.hero { background: var(--green-deep); color: var(--white); padding: clamp(64px, 9vw, 120px) 0; position: relative; overflow: hidden; }
.hero::after { content: ""; position: absolute; right: -10%; bottom: -40%; width: 60%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(closest-side, rgba(15,28,48,.65), transparent); pointer-events: none; }
.hero .wrap { position: relative; z-index: 1; }
.hero-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 48px; align-items: center; }
.hero h1 { max-width: 16ch; }
.hero p { color: var(--on-dark); font-size: 1.2rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero-photo { border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 4/3; background: var(--green); }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; }
.ticks { display: flex; flex-wrap: wrap; gap: 8px 26px; margin: 32px 0 0; padding: 0; list-style: none; color: var(--on-dark); font-size: .97rem; }
.ticks li { padding-left: 24px; position: relative; }
.ticks li::before { content: ""; position: absolute; left: 3px; top: 7px; width: 11px; height: 6px; border-left: 2px solid #9fd0b6; border-bottom: 2px solid #9fd0b6; transform: rotate(-45deg); }
@media (max-width: 820px) { .hero-grid { grid-template-columns: 1fr; } .hero-photo { aspect-ratio: 16/10; } }

.page-hero { background: var(--green-deep); color: var(--white); padding: clamp(56px, 8vw, 96px) 0 clamp(44px, 6vw, 72px); }
.page-hero p { color: var(--on-dark); font-size: 1.15rem; }
.crumbs { font-size: .9rem; color: #9fb3a8; margin-bottom: 18px; }
.crumbs a { color: var(--on-dark); }

/* ---------- Trust strip ---------- */
.trust { background: var(--navy); color: var(--white); }
.trust ul { list-style: none; margin: 0; padding: 26px 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.trust li { font-size: .97rem; color: var(--on-dark); border-left: 2px solid var(--green); padding-left: 14px; }
.trust strong { display: block; color: var(--white); font-weight: 600; font-size: 1.02rem; }
@media (max-width: 820px) { .trust ul { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .trust ul { grid-template-columns: 1fr; } }

/* ---------- Services (rows) ---------- */
.services { border-top: 1px solid var(--line); margin-top: 32px; }
.service-row { display: grid; grid-template-columns: 220px 1fr auto; gap: 28px; align-items: center; padding: 26px 0; border-bottom: 1px solid var(--line); text-decoration: none; color: inherit; }
.service-row:hover h3 { color: var(--green); }
.service-row img { width: 220px; aspect-ratio: 3/2; object-fit: cover; border-radius: var(--radius-sm); }
.service-row h3 { margin-bottom: .25em; }
.service-row p { color: var(--muted); margin: 0; }
.service-row .go { font-weight: 600; color: var(--green); white-space: nowrap; }
.service-row--feature { grid-template-columns: 340px 1fr auto; background: var(--green-soft); padding: 26px; border-radius: var(--radius-lg); border-bottom: 0; margin: 18px 0; }
.service-row--feature img { width: 340px; }
.service-row--feature h3 { font-size: 1.7rem; }
.tag { display: inline-block; font-size: .8rem; font-weight: 600; background: var(--navy); color: var(--white); padding: 3px 10px; border-radius: 999px; margin-left: 8px; vertical-align: middle; font-family: var(--body); }
@media (max-width: 760px) { .service-row, .service-row--feature { grid-template-columns: 1fr; gap: 12px; } .service-row img, .service-row--feature img { width: 100%; } }

/* ---------- Gallery ---------- */
.gallery { display: grid; grid-template-columns: repeat(12, 1fr); gap: 14px; margin-top: 32px; }
.gallery figure { margin: 0; position: relative; border-radius: var(--radius-sm); overflow: hidden; background: var(--line); grid-column: span 5; }
.gallery img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4/3; }
.gallery figure:nth-child(1) { grid-column: span 7; grid-row: span 2; }
.gallery figure:nth-child(1) img { aspect-ratio: auto; }
.gallery figure:nth-child(n+4) { grid-column: span 4; }
.gallery figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 22px 14px 10px; color: var(--white); font-size: .9rem; background: linear-gradient(transparent, rgba(10,19,34,.8)); }
@media (max-width: 720px) { .gallery figure, .gallery figure:nth-child(n) { grid-column: span 12; grid-row: auto; } .gallery figure:nth-child(1) img { aspect-ratio: 4/3; } }

/* ---------- Reviews ---------- */
.reviews { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 22px; margin-top: 32px; }
.review { margin: 0; background: var(--navy-deep); border: 1px solid var(--navy-line); border-radius: var(--radius-lg); padding: 26px; display: flex; flex-direction: column; gap: 14px; }
.review .stars { color: #f2c94c; letter-spacing: 2px; font-size: 1.05rem; }
.review blockquote { margin: 0; color: #e6ecf3; font-size: 1.05rem; line-height: 1.6; }
.review figcaption { color: var(--on-dark); font-size: .92rem; margin-top: auto; }
.review figcaption strong { color: var(--white); }

/* ---------- Story ---------- */
.story { display: grid; grid-template-columns: 1fr 1.2fr; gap: 56px; align-items: center; }
.story img { border-radius: var(--radius-lg); aspect-ratio: 1/1; object-fit: cover; }
.pullquote { font-family: var(--head); font-size: clamp(1.5rem, 2.6vw, 2rem); line-height: 1.3; color: var(--navy); border-left: 3px solid var(--green); padding-left: 20px; margin: 0 0 24px; }
@media (max-width: 820px) { .story { grid-template-columns: 1fr; } }

/* ---------- Process (a real sequence, so it's numbered) ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; counter-reset: step; margin: 36px 0 0; padding: 0; list-style: none; }
.steps li { counter-increment: step; border-top: 2px solid var(--navy); padding-top: 18px; }
.steps li::before { content: counter(step); font-family: var(--head); font-size: 2.4rem; color: var(--green); display: block; line-height: 1; margin-bottom: 10px; }
.steps p { color: var(--muted); }
@media (max-width: 760px) { .steps { grid-template-columns: 1fr; } }

/* ---------- Two-column content ---------- */
.split { display: grid; grid-template-columns: 1.4fr 1fr; gap: 56px; align-items: start; }
.split > div > h2 { margin-top: 1.4em; }
.split > div > img + h2, .split > div > h2:first-child { margin-top: 0; }
.split aside { background: var(--mist); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 28px; position: sticky; top: 104px; }
.split aside h3 { margin-bottom: .4em; }
.checks { list-style: none; padding: 0; margin: 0 0 1.2em; }
.checks li { padding: 8px 0 8px 30px; position: relative; border-bottom: 1px solid var(--line); }
.checks li::before { content: ""; position: absolute; left: 4px; top: 16px; width: 12px; height: 7px; border-left: 2px solid var(--green); border-bottom: 2px solid var(--green); transform: rotate(-45deg); }
.content-photo { border-radius: var(--radius-lg); margin: 8px 0 28px; aspect-ratio: 16/9; object-fit: cover; width: 100%; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } .split aside { position: static; } }

/* ---------- Areas ---------- */
.area-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px; margin-top: 28px; }
.area-card { display: block; text-decoration: none; color: var(--ink); background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 22px; transition: border-color .15s; }
.area-card:hover { border-color: var(--green); color: var(--ink); }
.area-card h3 { margin-bottom: .2em; }
.area-card span { color: var(--muted); font-size: .93rem; }
.surrounding { margin-top: 26px; color: var(--muted); }
.surrounding strong { color: var(--ink); }
.pill-list { display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 12px 0 0; list-style: none; }
.pill-list li { background: var(--green-soft); color: var(--green-deep); padding: 5px 12px; border-radius: 999px; font-size: .92rem; }

/* ---------- FAQ ---------- */
.faq details { border-bottom: 1px solid var(--line); padding: 18px 0; }
.faq summary { cursor: pointer; font-weight: 600; font-size: 1.1rem; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--head); font-size: 1.5rem; line-height: 1; color: var(--green); }
.faq details[open] summary::after { content: "−"; }
.faq details p { margin: 12px 0 0; color: var(--muted); }

/* ---------- Quote form ---------- */
.quote { background: var(--navy); color: var(--white); }
.quote-grid { display: grid; grid-template-columns: 1fr 1.3fr; gap: 56px; }
.quote p { color: var(--on-dark); }
.quote .contact-lines { list-style: none; padding: 0; margin: 24px 0 0; }
.quote .contact-lines li { padding: 6px 0; }
.quote .contact-lines a { color: #9fd0b6; font-weight: 600; text-decoration: none; }
form.lead { background: var(--white); color: var(--ink); border-radius: var(--radius-lg); padding: clamp(22px, 4vw, 36px); display: grid; grid-template-columns: 1fr 1fr; gap: 16px 18px; }
form.lead .full { grid-column: 1 / -1; }
form.lead label { display: block; font-weight: 600; font-size: .95rem; margin-bottom: 6px; }
form.lead .hint { font-weight: 400; color: var(--muted); font-size: .85rem; }
form.lead input, form.lead select, form.lead textarea { width: 100%; font: inherit; font-size: 1rem; padding: 12px 14px; border: 1px solid #c4ccc8; border-radius: var(--radius-sm); background: #fbfcfc; color: var(--ink); }
form.lead textarea { min-height: 120px; resize: vertical; }
form.lead input:focus, form.lead select:focus, form.lead textarea:focus { outline: 2px solid var(--green); border-color: var(--green); }
form.lead .checkset { display: flex; flex-wrap: wrap; gap: 8px 18px; }
form.lead .checkset label { font-weight: 400; display: flex; align-items: center; gap: 8px; margin: 0; }
form.lead .checkset input { width: auto; }
form.lead .fine { font-size: .82rem; color: var(--muted); margin: 0; }
.hidden { display: none; }
@media (max-width: 860px) { .quote-grid { grid-template-columns: 1fr; } form.lead { grid-template-columns: 1fr; } }

/* ---------- CTA band + footer ---------- */
.band { background: var(--green); color: var(--white); padding: 44px 0; }
.band .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px; }
.band h2 { margin: 0; font-size: clamp(1.5rem, 2.8vw, 2.1rem); }
.band .hero-actions { margin: 0; }
.site-footer { background: var(--navy-deep); color: #a6b2c2; padding: 56px 0 28px; font-size: .95rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; }
.footer-logo { height: 70px; width: auto; margin-bottom: 14px; }
.site-footer h3 { color: var(--white); font-size: 1.1rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { padding: 4px 0; }
.site-footer a { color: #d5dde8; text-decoration: none; }
.site-footer a:hover { color: #9fd0b6; }
.legal { border-top: 1px solid var(--navy-line); margin-top: 40px; padding-top: 20px; font-size: .85rem; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---------- Sticky mobile call / quote bar ---------- */
.mobile-cta { display: none; }
@media (max-width: 760px) {
  .mobile-cta { display: grid; grid-template-columns: 1fr 1fr; position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; box-shadow: 0 -6px 18px rgba(0,0,0,.18); }
  .mobile-cta a { padding: 15px 10px; text-align: center; font-weight: 600; text-decoration: none; }
  .mobile-cta .call { background: var(--navy); color: var(--white); }
  .mobile-cta .quote-link { background: var(--green); color: var(--white); }
  body { padding-bottom: 54px; }
}

.mt { margin-top: 28px; }

/* =========================================================
   Motion: a calm, premium feel. Content is always visible
   without JavaScript; animations only run when .js is set,
   and are turned off for people who prefer reduced motion.
   ========================================================= */
@media (prefers-reduced-motion: no-preference) {
  /* Page-load sequence for the hero */
  .js .hero h1, .js .hero p, .js .hero .hero-actions, .js .hero .ticks,
  .js .page-hero .crumbs, .js .page-hero h1, .js .page-hero p, .js .page-hero .hero-actions {
    opacity: 0; transform: translateY(18px);
    animation: rise .9s cubic-bezier(.2,.7,.2,1) forwards;
  }
  .js .hero h1, .js .page-hero .crumbs { animation-delay: .1s; }
  .js .hero p, .js .page-hero h1 { animation-delay: .25s; }
  .js .hero .hero-actions, .js .page-hero p { animation-delay: .4s; }
  .js .hero .ticks, .js .page-hero .hero-actions { animation-delay: .55s; }
  .js .hero-photo { opacity: 0; transform: scale(.97); animation: settle 1.3s cubic-bezier(.2,.7,.2,1) .2s forwards; }
  .js .hero-photo img { transform: scale(1.08); animation: slowzoom 2.4s cubic-bezier(.2,.7,.2,1) .2s forwards; }
  @keyframes rise { to { opacity: 1; transform: none; } }
  @keyframes settle { to { opacity: 1; transform: none; } }
  @keyframes slowzoom { to { transform: scale(1); } }

  /* Scroll reveals */
  .js [data-reveal] { opacity: 0; transform: translateY(26px); transition: opacity .9s cubic-bezier(.2,.7,.2,1), transform .9s cubic-bezier(.2,.7,.2,1); transition-delay: var(--d, 0s); }
  .js [data-reveal].in { opacity: 1; transform: none; }

  /* Gallery and service photos: slow zoom on hover */
  .gallery figure img, .service-row img { transition: transform 1.2s cubic-bezier(.2,.7,.2,1); }
  .gallery figure:hover img, .service-row:hover img { transform: scale(1.05); }
  .service-row { overflow: hidden; }
  .service-row img { will-change: transform; }

  /* Buttons lift slightly */
  .btn { transition: background .2s, color .2s, border-color .2s, transform .2s, box-shadow .2s; }
  .btn:hover { transform: translateY(-2px); box-shadow: 0 10px 22px rgba(10,19,34,.22); }

  /* Area cards */
  .area-card { transition: border-color .2s, transform .3s, box-shadow .3s; }
  .area-card:hover { transform: translateY(-3px); box-shadow: 0 14px 28px rgba(15,28,48,.10); }
}

/* Header tightens once you scroll */
.site-header .wrap { transition: min-height .3s; }
.brand-logo { transition: height .3s; }
.site-header.is-scrolled { box-shadow: 0 6px 24px rgba(0,0,0,.25); }
.site-header.is-scrolled .wrap { min-height: 68px; }
.site-header.is-scrolled .brand-logo { height: 52px; }
@media (max-width: 980px) { .site-header.is-scrolled .nav { top: 68px; } }

/* Review stars glow in */
.review .stars { text-shadow: 0 0 12px rgba(242,201,76,.35); }
.origin { margin: 0; }
.origin figcaption { margin-top: 10px; font-size: .92rem; color: var(--muted); }
