/* Roofer Aurora - site styles */
@font-face { font-family: "Barlow Semi Condensed"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/barlow-semi-condensed-600.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Barlow Semi Condensed"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/barlow-semi-condensed-700.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Source Sans 3"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/source-sans-3-400.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  --navy: #14293d;
  --navy-light: #1e3a55;
  --orange: #f26b21;
  --orange-dark: #b84a0c;
  --gray: #f5f4f1;
  --line: #dedbd4;
  --text: #1c1f23;
  --muted: #535a62;
  --white: #fff;
  --radius: 6px;
  --shadow: 0 8px 24px rgb(20 41 61 / 10%);
  --heading: "Barlow Semi Condensed", "Arial Narrow", Arial, sans-serif;
  --body: "Source Sans 3", "Segoe UI", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; scroll-padding-bottom: 84px; -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 400 1.125rem/1.6 var(--body); color: var(--text); background: var(--white); padding-bottom: 68px; }
img, svg, iframe { display: block; max-width: 100%; }
a { color: var(--navy-light); }
a:hover { color: var(--orange-dark); }
a[href^="tel:"] { white-space: nowrap; }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 2px; }

h1, h2, h3 { font-family: var(--heading); color: var(--navy); line-height: 1.12; margin: 0 0 .5em; font-weight: 700; }
h1 { font-size: clamp(2.5rem, 7vw, 4.25rem); }
h2 { font-size: clamp(2rem, 4.5vw, 2.875rem); }
h3 { font-size: 1.5rem; font-weight: 600; }
h1, h2 { text-wrap: balance; }
p { margin: 0 0 1em; }
/* Only the regular body font ships, so bold labels use the heading font's real 600/700 weights. */
strong, b { font-family: var(--heading); font-weight: 700; letter-spacing: .01em; }

.container { width: min(1160px, 100% - 40px); margin-inline: auto; }
.narrow { max-width: 780px; }
.section { padding: clamp(56px, 8vw, 92px) 0; }
.section:not(.section-gray, .section-navy) + .section:not(.section-gray, .section-navy) { padding-top: 0; }
.section-gray { background: var(--gray); }
.section-navy { background: var(--navy); color: #e8edf2; }
.section-navy h2, .section-navy h3 { color: var(--white); }
.section-navy a:not(.btn) { color: var(--white); }
.section-navy .quote-form a:not(.btn) { color: var(--navy-light); }
.section-head { max-width: 720px; margin-bottom: 40px; }
.section-head p { color: var(--muted); font-size: 1.125rem; margin: 0; }
.section-navy .section-head p { color: #c9d4de; }

/* Details the owner must confirm before launch. Search the HTML for class="ph". */
.ph { background: #fff3b0; color: #4d3c00; padding: 0 .3em; border-radius: 3px; font-family: var(--heading); font-weight: 600; }

.skip-link { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--white); padding: 10px 16px; border-radius: var(--radius); }
.skip-link:focus { top: 12px; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 50px; padding: 11px 24px; border: 2px solid transparent; border-radius: var(--radius); font: 700 1.125rem/1.2 var(--heading); letter-spacing: .02em; text-align: center; text-decoration: none; cursor: pointer; transition: background-color .15s, color .15s, border-color .15s; }
.btn-primary { background: var(--orange); color: var(--navy); }
.btn-primary:hover { background: #ff8340; color: var(--navy); }
.btn-outline { border-color: var(--white); color: var(--white); }
.btn-outline:hover { background: var(--white); color: var(--navy); }
.btn-dark { border-color: var(--navy); color: var(--navy); }
.btn-dark:hover { background: var(--navy); color: var(--white); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--white); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 72px; }
.logo { display: inline-flex; align-items: center; gap: 10px; font: 700 1.5rem/1 var(--heading); color: var(--navy); text-decoration: none; white-space: nowrap; }
.logo:hover { color: var(--navy); }
.logo img { width: 40px; height: 40px; }
.logo span span { color: var(--orange-dark); }
.nav-toggle { display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px; background: none; border: 2px solid var(--navy); border-radius: var(--radius); font: 700 1.0625rem var(--heading); color: var(--navy); cursor: pointer; }
.site-nav { display: none; position: absolute; top: 100%; left: 0; right: 0; background: var(--white); border-bottom: 1px solid var(--line); box-shadow: var(--shadow); padding: 8px 20px 20px; max-height: calc(100vh - 72px); overflow-y: auto; }
.nav-open .site-nav { display: block; }
.site-nav ul { list-style: none; margin: 0; padding: 0; }
.site-nav a:not(.btn) { display: block; padding: 11px 0; color: var(--navy); text-decoration: none; border-bottom: 1px solid var(--line); }
.site-nav a[aria-current="page"] { color: var(--orange-dark); font-family: var(--heading); font-weight: 700; }
.sub-toggle { display: none; }
.sub-menu a:not(.btn) { padding-left: 18px; font-size: 1.0625rem; }
.nav-cta { display: none; }
.visually-hidden { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }

/* Fixed mobile call bar */
.call-bar { position: fixed; inset: auto 0 0; z-index: 60; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 8px 10px; background: var(--navy); }
.call-bar .btn { min-height: 52px; padding: 8px; }

/* Hero */
.hero { position: relative; display: flex; align-items: center; min-height: min(760px, 88vh); padding: 72px 0 120px; color: var(--white); background: var(--navy); clip-path: polygon(0 0, 100% 0, 100% calc(100% - 42px), 50% 100%, 0 calc(100% - 42px)); }
.hero { z-index: 1; }
.hero-img { position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%; object-fit: cover; }
.hero + .section { margin-top: -42px; padding-top: calc(clamp(56px, 8vw, 92px) + 42px); }
.hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgb(13 29 44 / 92%) 0%, rgb(13 29 44 / 72%) 52%, rgb(13 29 44 / 12%) 100%); }
.hero .container { position: relative; }
.hero-copy { max-width: 660px; }
.hero h1 { color: var(--white); }
.hero p.lead { font-size: clamp(1.125rem, 2.3vw, 1.3125rem); color: #e8edf2; max-width: 590px; margin-bottom: 28px; }

/* Inner-page banner */
.page-hero { background: var(--navy); color: #e8edf2; padding: clamp(44px, 7vw, 76px) 0; }
.page-hero h1 { color: var(--white); font-size: clamp(2.375rem, 6vw, 3.625rem); }
.page-hero p { max-width: 720px; font-size: 1.1875rem; }
.page-hero .btn-row { margin-top: 24px; }
.page-hero-split { display: grid; gap: 32px; align-items: center; }
.page-hero-photo { width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; border-radius: var(--radius); }
.breadcrumb { font-size: .9375rem; margin-bottom: 18px; }
.breadcrumb ol { display: flex; flex-wrap: wrap; list-style: none; margin: 0; padding: 0; }
.breadcrumb li + li::before { content: "/"; margin: 0 .5em; color: #c9d4de; }
.breadcrumb a { color: #c9d4de; }
.breadcrumb a:hover { color: var(--white); }

/* Grids and cards */
.grid { display: grid; gap: 24px; grid-template-columns: 1fr; }
.card { display: flex; flex-direction: column; padding: 28px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); }
.card p { color: var(--muted); }
.card > :last-child { margin-bottom: 0; }
.card-photo { width: calc(100% + 56px); max-width: none; height: auto; aspect-ratio: 3 / 2; object-fit: cover; margin: -28px -28px 22px; }
.service-card p { flex: 1; }
.service-card h3 a { color: var(--navy); text-underline-offset: 3px; }
.service-card h3 a:hover { color: var(--orange-dark); }
.split { display: grid; gap: 40px; align-items: start; }
.feature { padding-left: 18px; border-left: 3px solid var(--orange); }
.why-label { font: 600 .9375rem/1.3 var(--heading); letter-spacing: .08em; text-transform: uppercase; color: var(--orange-dark); margin-bottom: 10px; }
.feature p { color: var(--muted); margin: 0; }
.check-list { list-style: none; margin: 0 0 1em; padding: 0; }
.check-list li { position: relative; padding: 0 0 10px 30px; }
.check-list li::before { content: ""; position: absolute; left: 3px; top: 7px; width: 13px; height: 7px; border-left: 3px solid var(--orange-dark); border-bottom: 3px solid var(--orange-dark); transform: rotate(-45deg); }
.section-navy .check-list li::before { border-color: #ff9a61; }

/* Process steps */
.steps { list-style: none; counter-reset: step; margin: 0; padding: 0; display: grid; gap: 28px; }
.steps li { counter-increment: step; }
.steps li::before { content: counter(step); display: block; margin-bottom: 6px; color: var(--orange-dark); font: 700 2.25rem/1 var(--heading); }
.steps p { color: var(--muted); margin: 0; }

/* Project examples */
.project { min-width: 0; }
.project-photo { position: relative; }
.project-photo img { width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; border-radius: var(--radius); }
.about-photo { overflow: hidden; border-radius: var(--radius); }
.project-body { padding-top: 10px; }
.project-body h3 { margin-bottom: 6px; }

/* Reviews */
.review blockquote { margin: 0 0 16px; font-size: 1.0625rem; }
.review cite { font-style: normal; font-family: var(--heading); font-size: 1.125rem; font-weight: 600; color: var(--navy); }
.review-service { margin: 4px 0 0; font-size: .9375rem; }
.reviews-actions { margin-top: 28px; }
.review-stars { margin-bottom: 8px; color: var(--orange-dark) !important; font-size: 1.125rem; letter-spacing: .08em; }

/* Service-area tags */
.area-list { list-style: none; columns: 2; column-gap: 24px; margin: 0 0 24px; padding: 0; }
.area-list li { padding: 2px 0; break-inside: avoid; }
.map { width: 100%; height: 400px; border: 0; border-radius: var(--radius); background: var(--gray); }
.map-facade { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; padding: 28px 20px; text-align: center; border: 1px solid var(--line); background-image: linear-gradient(rgb(20 41 61 / 6%) 1px, transparent 1px), linear-gradient(90deg, rgb(20 41 61 / 6%) 1px, transparent 1px); background-size: 36px 36px; }
.map-facade > * { margin: 0; }
.map-facade .btn-row { justify-content: center; }
.map-pin { fill: var(--orange-dark); }
.map-title { font: 700 1.375rem/1.2 var(--heading); color: var(--navy); }
.map-note { font-size: .875rem; color: var(--muted); }

/* FAQ */
.faq details { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 12px; }
.faq summary { position: relative; padding: 17px 52px 17px 20px; font: 600 1.25rem/1.25 var(--heading); color: var(--navy); cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 20px; top: 12px; font-size: 1.75rem; color: var(--orange-dark); }
.faq details[open] summary::after { content: "\2212"; }
.faq details > div { padding: 0 20px 6px; color: var(--muted); }

/* Forms */
.quote-form { padding: clamp(22px, 4vw, 34px); background: var(--white); color: var(--text); border-radius: var(--radius); box-shadow: var(--shadow); }
.quote-form h3 { color: var(--navy); }
.form-grid { display: grid; gap: 18px; }
.field label { display: block; margin-bottom: 5px; font-family: var(--heading); font-size: 1.0625rem; font-weight: 600; color: var(--navy); }
.field small { font-family: var(--body); font-size: .9375rem; font-weight: 400; color: var(--muted); }
.field input, .field select, .field textarea { width: 100%; min-height: 48px; padding: 10px 12px; font: inherit; color: var(--text); background: var(--white); border: 1px solid #8b9198; border-radius: var(--radius); }
.field input[type="file"] { padding: 9px; }
.field textarea { min-height: 112px; resize: vertical; }
.quote-form .btn { width: 100%; margin-top: 20px; }
.form-note { margin: 12px 0 0; font-size: .875rem; color: var(--muted); }
.hidden-field { position: absolute; left: -9999px; }

/* Call-to-action band */
.cta-band { background: var(--navy); color: #e8edf2; padding: 52px 0; }
.cta-band h2 { color: var(--white); margin-bottom: 8px; }
.cta-band p { margin-bottom: 22px; }

.prose h2 { font-size: 1.875rem; margin-top: 1.4em; }
.prose h3 { margin-top: 1.2em; }
.callout { padding: 20px 22px; margin: 22px 0; background: var(--gray); border-radius: var(--radius); }
.callout > :last-child { margin-bottom: 0; }

/* Footer */
.site-footer { background: #0e1e2d; color: #c9d4de; padding: 56px 0 26px; font-size: .9688rem; }
.site-footer h2 { color: var(--white); font-size: 1.25rem; margin-bottom: 12px; }
.site-footer a { color: #e8edf2; }
.site-footer a:hover { color: #ff9a61; }
.site-footer .footer-logo:hover { color: #e8edf2; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 3px; }
.site-footer li a { display: inline-block; padding: 3px 0; }
.footer-grid { display: grid; gap: 34px; }
.footer-logo { color: var(--white); margin-bottom: 14px; }
.footer-logo span span { color: #ff9a61; }
.footer-bottom { margin-top: 38px; padding-top: 20px; border-top: 1px solid #2a4055; font-size: .875rem; }
.footer-bottom p { margin: 0; }

@media (min-width: 640px) {
  .grid-2, .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .grid-photos { grid-template-columns: repeat(3, 1fr); gap: 16px; }
  .grid-photos h3 { font-size: 1.3125rem; }
  .form-grid { grid-template-columns: 1fr 1fr; }
  .field-full { grid-column: 1 / -1; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (min-width: 768px) {
  body { padding-bottom: 0; }
  .call-bar, .nav-toggle { display: none; }
  html { scroll-padding-bottom: 0; }
  .site-nav { display: flex; position: static; align-items: center; gap: 22px; padding: 0; background: none; border: 0; box-shadow: none; max-height: none; overflow: visible; }
  .site-nav .nav-list { display: flex; align-items: center; gap: 18px; }
  .site-nav a:not(.btn) { padding: 6px 0; font-size: .9688rem; border: 0; }
  /* Services dropdown */
  .has-sub { position: relative; display: flex; align-items: center; }
  .sub-toggle { display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 32px; margin-right: -6px; padding: 0; background: none; border: 0; border-radius: 4px; color: var(--navy); cursor: pointer; }
  .sub-toggle::before { content: ""; width: 7px; height: 7px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: translateY(-2px) rotate(45deg); transition: transform .15s; }
  .has-sub.open .sub-toggle::before { transform: translateY(2px) rotate(225deg); }
  .sub-menu { display: none; position: absolute; top: 100%; left: -16px; z-index: 10; min-width: 230px; padding: 8px 0; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
  .has-sub:hover .sub-menu, .has-sub.open .sub-menu { display: block; }
  .site-nav .sub-menu a:not(.btn) { padding: 9px 16px; font-size: 1rem; white-space: nowrap; }
  .site-nav .sub-menu a:hover { background: var(--gray); color: var(--orange-dark); }
  .nav-cta { display: flex; align-items: center; gap: 14px; }
  .nav-phone { font: 700 1.1875rem var(--heading); color: var(--navy); text-decoration: none; white-space: nowrap; }
  .nav-cta .btn { min-height: 44px; padding: 8px 16px; font-size: 1.0625rem; }
}

/* Tablet: desktop header on two rows (logo + call/estimate, then links) */
@media (min-width: 768px) and (max-width: 1079.98px) {
  html { scroll-padding-top: 136px; }
  .header-inner { position: relative; flex-wrap: wrap; row-gap: 0; }
  .logo { min-height: 72px; }
  .site-nav { flex: 1 0 100%; }
  .site-nav .nav-list { flex: 1; gap: clamp(18px, 3.2vw, 34px); padding: 6px 0 8px; border-top: 1px solid var(--line); }
  .nav-cta { position: absolute; top: 0; right: 0; height: 72px; }
}

/* Tablet: the third review spans the row instead of sitting alone */
@media (min-width: 640px) and (max-width: 959.98px) {
  .grid-3 > .review:nth-child(3):last-child { grid-column: 1 / -1; }
}

@media (min-width: 960px) {
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .page-hero-split { grid-template-columns: 6fr 5fr; gap: 56px; }
  .split { grid-template-columns: 1fr 1fr; gap: 64px; }
  .split-form { grid-template-columns: 5fr 6fr; }
  .steps { grid-template-columns: repeat(4, 1fr); }
  .footer-grid { grid-template-columns: 1.5fr 1fr 1fr 1.1fr; }
}

@media (max-width: 500px) {
  .hero { padding-top: 52px; }
  .hero::before { background: linear-gradient(180deg, rgb(13 29 44 / 88%) 0%, rgb(13 29 44 / 76%) 68%, rgb(13 29 44 / 34%) 100%); }
  .hero .btn-row .btn { width: 100%; }
}

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

@media print {
  .site-header, .call-bar, .cta-band, .site-footer { display: none; }
  body { padding-bottom: 0; }
}
