/* Top Tier Carpentry & Roofing — site styles */
:root {
  --navy: #1b2d6f;
  --navy-700: #15245a;
  --navy-900: #0d1636;
  --navy-tint: #e9edf8;
  --steel: #8f949b;
  --ink: #14171c;
  --muted: #4b5361;
  --paper: #f3f4f6;
  --line: #dde1e7;
  --accent: #f5b301;
  --accent-hover: #ffc72c;
  --accent-ink: #0d1636;
  --radius: 10px;
  --wrap: 1180px;
  --header-h: 92px;
  --font-body: "Barlow", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --font-head: "Barlow Semi Condensed", "Barlow", system-ui, sans-serif;
  --shadow: 0 1px 2px rgba(13, 22, 54, .06), 0 10px 28px rgba(13, 22, 54, .10);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body { margin: 0; font-family: var(--font-body); font-size: 1.0625rem; line-height: 1.6; color: var(--ink); background: #fff; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--navy); }
h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.08; margin: 0 0 .5em; color: var(--navy-900); letter-spacing: -.01em; }
h1 { font-size: clamp(2.2rem, 5.4vw, 3.75rem); font-weight: 800; }
h2 { font-size: clamp(1.8rem, 3.8vw, 2.7rem); font-weight: 700; }
h3 { font-size: 1.4rem; font-weight: 700; }
p { margin: 0 0 1em; }
ul, ol { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }

.skip { position: absolute; left: -9999px; top: 8px; z-index: 100; background: #fff; padding: 10px 16px; border-radius: 6px; }
.skip:focus { left: 8px; }
.sr-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.i { width: 1.2em; height: 1.2em; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.i--fill { fill: currentColor; stroke: none; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.section { padding: clamp(56px, 8vw, 96px) 0; }
.section--paper { background: var(--paper); }
.section--navy { background: var(--navy-900); color: #d3d9ea; }
.section--navy h2, .section--navy h3 { color: #fff; }
.section--tight { padding-top: 0; }
.section-head { max-width: 760px; margin-bottom: 40px; }
.section-head--center { margin-left: auto; margin-right: auto; text-align: center; }
.section-foot { margin-top: 36px; }
.eyebrow { display: inline-block; font-family: var(--font-head); font-weight: 700; text-transform: uppercase; letter-spacing: .12em; font-size: .85rem; color: var(--navy); margin-bottom: .8rem; }
.section--navy .eyebrow, .hero .eyebrow { color: var(--accent); }
.lead { font-size: 1.2rem; color: var(--muted); max-width: 62ch; }
.section--navy .lead { color: #c3cbe0; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .55em; min-height: 52px; padding: .75em 1.35em; border: 2px solid transparent; border-radius: 8px; font-family: var(--font-head); font-weight: 700; font-size: 1.12rem; line-height: 1.1; text-decoration: none; cursor: pointer; transition: background-color .15s, border-color .15s, color .15s; }
.btn--accent { background: var(--accent); color: var(--accent-ink); }
.btn--accent:hover { background: var(--accent-hover); }
.btn--navy { background: var(--navy); color: #fff; }
.btn--navy:hover { background: var(--navy-700); }
.btn--ghost { border-color: rgba(255, 255, 255, .7); color: #fff; }
.btn--ghost:hover { background: rgba(255, 255, 255, .1); border-color: #fff; }
.btn--outline { border-color: var(--navy); color: var(--navy); background: #fff; }
.btn--outline:hover { background: var(--navy-tint); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }
.link-arrow { display: inline-flex; align-items: center; gap: .4em; font-family: var(--font-head); font-weight: 700; font-size: 1.1rem; text-decoration: none; }
.link-arrow:hover { text-decoration: underline; }

/* Top bar */
.topbar { background: var(--navy-900); color: #c3cbe0; font-size: .92rem; }
.topbar .wrap { display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 40px; }
.topbar p { margin: 0; }
.topbar strong { color: #fff; font-weight: 600; }
.topbar a { color: #fff; font-weight: 600; text-decoration: none; display: inline-flex; align-items: center; gap: 6px; }
.topbar__right { display: flex; gap: 22px; align-items: center; }

/* Header + nav */
.header { position: sticky; top: 0; z-index: 50; background: #fff; border-bottom: 1px solid var(--line); }
.header__inner { display: flex; align-items: center; gap: 24px; height: var(--header-h); }
.brand { flex: none; margin-right: auto; }
.brand img { height: 70px; width: auto; }
.nav__list { display: flex; align-items: center; gap: 2px; list-style: none; margin: 0; padding: 0; }
.nav a { display: block; padding: 10px 12px; border-radius: 6px; font-family: var(--font-head); font-weight: 600; font-size: 1.08rem; color: var(--ink); text-decoration: none; }
.nav a:hover { color: var(--navy); background: var(--navy-tint); }
.nav a[aria-current="page"] { color: var(--navy); box-shadow: inset 0 -3px 0 var(--accent); border-radius: 6px 6px 0 0; }
.nav__group { position: relative; }
.nav__group > a::after { content: ""; display: inline-block; width: 7px; height: 7px; margin-left: 8px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: translateY(-3px) rotate(45deg); }
.nav__menu { display: none; position: absolute; top: 100%; left: 0; min-width: 250px; list-style: none; margin: 0; padding: 8px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.nav__group:hover .nav__menu, .nav__group:focus-within .nav__menu { display: block; }
.nav__menu a { font-weight: 600; }
.menu-btn { display: none; align-items: center; gap: 8px; min-height: 48px; padding: 0 14px; border: 2px solid var(--line); border-radius: 8px; background: #fff; color: var(--navy-900); font: 700 1.05rem var(--font-head); cursor: pointer; }
.menu-btn .i { width: 1.4em; height: 1.4em; }

/* Mobile quick-contact bar */
.actionbar { display: none; }

@media (max-width: 1080px) {
  :root { --header-h: 72px; }
  .brand img { height: 52px; }
  .header__cta { display: none; }
  .menu-btn { display: inline-flex; }
  .nav { display: none; position: absolute; top: 100%; left: 0; right: 0; background: #fff; border-bottom: 1px solid var(--line); box-shadow: var(--shadow); max-height: calc(100vh - var(--header-h)); overflow-y: auto; }
  .nav.is-open { display: block; }
  .nav__list { flex-direction: column; align-items: stretch; padding: 10px 20px 20px; }
  .nav a { padding: 14px 8px; font-size: 1.2rem; border-bottom: 1px solid var(--line); border-radius: 0; }
  .nav a[aria-current="page"] { box-shadow: inset 4px 0 0 var(--accent); padding-left: 16px; }
  .nav__group > a::after { display: none; }
  .nav__menu { display: block; position: static; box-shadow: none; border: 0; padding: 0 0 0 16px; min-width: 0; }
  .nav__menu a { font-size: 1.1rem; color: var(--muted); }
  .actionbar { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; padding: 10px 12px calc(10px + env(safe-area-inset-bottom)); background: #fff; border-top: 1px solid var(--line); box-shadow: 0 -6px 20px rgba(13, 22, 54, .08); }
  .actionbar .btn { min-height: 54px; }
  body { padding-bottom: 80px; }
}
@media (max-width: 720px) {
  .topbar__hide-sm { display: none; }
  .topbar .wrap { justify-content: center; }
}

/* Hero */
.hero { position: relative; overflow: hidden; background: var(--navy-900); color: #fff; }
.hero__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(13, 22, 54, .95) 0%, rgba(13, 22, 54, .86) 48%, rgba(13, 22, 54, .45) 100%); }
.hero .wrap { position: relative; z-index: 1; padding-top: clamp(64px, 10vw, 128px); padding-bottom: clamp(64px, 10vw, 128px); }
.hero h1 { color: #fff; max-width: 20ch; }
.hero .lead { color: #d3d9ea; margin-bottom: 30px; }
.hero__trust { display: flex; flex-wrap: wrap; gap: 12px 28px; list-style: none; margin: 36px 0 0; padding: 0; font-weight: 600; }
.hero__trust li { display: flex; align-items: center; gap: 8px; }
.hero__trust .i { color: var(--accent); }
.hero--page .wrap { padding-top: clamp(48px, 7vw, 88px); padding-bottom: clamp(48px, 7vw, 88px); }
.hero--page h1 { max-width: 20ch; }
@media (max-width: 720px) {
  .hero::after { background: rgba(13, 22, 54, .86); }
  .hero .btn-row .btn { flex: 1 1 100%; }
}

.crumbs { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 18px; padding: 0; font-size: .95rem; color: #aab3cc; }
.crumbs li + li::before { content: "/"; margin-right: 6px; color: #6f7a99; }
.crumbs a { color: #d3d9ea; text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }

/* Cards */
.cards { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); }
@media (min-width: 960px) { .cards--3 { grid-template-columns: repeat(3, 1fr); } }
.card { display: flex; flex-direction: column; gap: 10px; padding: 28px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); color: inherit; text-decoration: none; transition: border-color .15s, box-shadow .15s, transform .15s; }
a.card:hover { border-color: var(--navy); box-shadow: var(--shadow); transform: translateY(-2px); }
.card__icon { display: grid; place-items: center; width: 54px; height: 54px; border-radius: 12px; background: var(--navy-tint); color: var(--navy); }
.card__icon .i { width: 28px; height: 28px; }
.card h3 { margin: 6px 0 0; }
.card p { margin: 0; color: var(--muted); }
.card__more { display: inline-flex; align-items: center; gap: .4em; margin-top: auto; padding-top: 10px; font-family: var(--font-head); font-weight: 700; font-size: 1.08rem; color: var(--navy); }
.card--feature { background: var(--navy); border-color: var(--navy); color: #d3d9ea; }
.card--feature h3 { color: #fff; }
.card--feature p { color: #c3cbe0; }
.card--feature .card__icon { background: rgba(255, 255, 255, .12); color: var(--accent); }
.card--feature .card__more { color: var(--accent); }
.card--plain { background: var(--paper); border-style: dashed; border-color: #c5cbd6; }
.price { font-family: var(--font-head); font-weight: 800; font-size: 2rem; line-height: 1; color: #fff; }
.price small { font-size: 1rem; font-weight: 600; color: #c3cbe0; }

/* Steps */
.steps { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); list-style: none; margin: 0; padding: 0; counter-reset: step; }
.steps li { padding: 28px 24px 26px; border: 1px solid rgba(255, 255, 255, .14); border-radius: var(--radius); background: rgba(255, 255, 255, .03); }
.steps li::before { counter-increment: step; content: counter(step, decimal-leading-zero); display: block; margin-bottom: 14px; font-family: var(--font-head); font-weight: 800; font-size: 2.5rem; line-height: 1; color: var(--accent); }
.steps h3 { font-size: 1.3rem; margin-bottom: 6px; }
.steps p { margin: 0; color: #c3cbe0; }

/* Split image/text */
.split { display: grid; gap: clamp(28px, 5vw, 64px); align-items: center; }
@media (min-width: 900px) {
  .split { grid-template-columns: 1fr 1fr; }
  .split--flip .split__media { order: 2; }
}
.split__media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); }
.split + .split { margin-top: clamp(48px, 7vw, 88px); }

/* Tick lists */
.ticks { list-style: none; margin: 0 0 1.5em; padding: 0; display: grid; gap: 10px; }
.ticks li { position: relative; padding-left: 34px; }
.ticks li::before { content: ""; position: absolute; left: 0; top: .2em; width: 22px; height: 22px; border-radius: 50%; background: var(--navy) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 13px no-repeat; }
.ticks--2col { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); column-gap: 28px; }
.section--navy .ticks li::before { background-color: var(--accent); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230d1636' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E"); }

/* Service blocks (roofing / carpentry on home) */
.duo { display: grid; gap: 24px; }
@media (min-width: 860px) { .duo { grid-template-columns: 1fr 1fr; } }
.duo__item { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.duo__item img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.duo__body { display: flex; flex-direction: column; flex: 1; padding: 28px; }
.duo__body .ticks { margin-bottom: 20px; }
.duo__body .link-arrow { margin-top: auto; }

/* Gallery */
.gallery { display: grid; gap: 12px; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 800px) { .gallery { grid-template-columns: repeat(3, 1fr); gap: 16px; } }
.gallery figure { position: relative; margin: 0; overflow: hidden; border-radius: var(--radius); background: #cfd4dc; }
.gallery img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; }
.gallery figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 36px 14px 12px; background: linear-gradient(transparent, rgba(13, 22, 54, .88)); color: #e6eaf5; font-size: .95rem; line-height: 1.3; }
.gallery figcaption strong { display: block; font-family: var(--font-head); font-size: 1.15rem; color: #fff; }

/* Reviews */
.reviews { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.review { display: flex; flex-direction: column; gap: 14px; margin: 0; padding: 26px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.review .i--fill { width: 30px; height: 30px; color: var(--accent); }
.review blockquote { margin: 0; font-size: 1.1rem; line-height: 1.55; }
.review figcaption { margin-top: auto; font-family: var(--font-head); font-weight: 700; font-size: 1.05rem; color: var(--navy); }

/* Stats strip */
.stats { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); margin: 0; padding: 0; list-style: none; }
.stats li { padding: 22px 24px; border-left: 4px solid var(--accent); background: #fff; border-radius: 0 var(--radius) var(--radius) 0; }
.stats strong { display: block; font-family: var(--font-head); font-weight: 800; font-size: 1.9rem; line-height: 1.1; color: var(--navy-900); }
.stats span { color: var(--muted); }

/* Call-to-action band */
.cta { display: grid; gap: 28px; align-items: center; padding: clamp(28px, 5vw, 56px); border-radius: 16px; background: var(--navy); color: #d3d9ea; }
@media (min-width: 900px) { .cta { grid-template-columns: 1.5fr 1fr; } .cta .btn-row { justify-content: flex-end; } }
.cta h2 { color: #fff; margin-bottom: .35em; }
.cta p { margin: 0; color: #c3cbe0; max-width: 56ch; }

/* Callout box */
.note { padding: 22px 24px; border-radius: var(--radius); background: var(--navy-tint); border-left: 4px solid var(--navy); }
.note p:last-child { margin-bottom: 0; }
.price-box { padding: 28px; border-radius: var(--radius); background: var(--navy); color: #d3d9ea; }
.price-box h3 { color: #fff; }
.price-box .price { margin: 4px 0 16px; }

/* FAQ */
.faq { max-width: 820px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { position: relative; padding: 20px 44px 20px 0; cursor: pointer; list-style: none; font-family: var(--font-head); font-weight: 700; font-size: 1.25rem; color: var(--navy-900); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 6px; top: 50%; transform: translateY(-50%); font-size: 1.8rem; font-weight: 600; color: var(--navy); }
.faq details[open] summary::after { content: "\2013"; }
.faq details p { color: var(--muted); padding-bottom: 8px; max-width: 70ch; }

/* Prose */
.prose { max-width: 70ch; }
.prose h2 { margin-top: 1.4em; }
.prose h2:first-child { margin-top: 0; }

/* Contact */
.contact { display: grid; gap: 32px; align-items: start; }
@media (min-width: 960px) { .contact { grid-template-columns: 1.6fr 1fr; } }
.panel { padding: clamp(22px, 4vw, 36px); background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow); }
.info { display: grid; gap: 22px; }
.info__item { display: flex; gap: 14px; }
.info__item .i { width: 26px; height: 26px; margin-top: 2px; color: var(--navy); }
.info__item h3 { font-size: 1.15rem; margin: 0 0 2px; }
.info__item p { margin: 0; color: var(--muted); }
.info__item a { font-weight: 600; }
.form { display: grid; gap: 20px; }
.form__row { display: grid; gap: 20px; }
@media (min-width: 640px) { .form__row { grid-template-columns: 1fr 1fr; } }
.field { display: grid; gap: 6px; margin: 0; padding: 0; border: 0; min-width: 0; }
.field > label, .field > legend { padding: 0; font-family: var(--font-head); font-weight: 700; font-size: 1.08rem; color: var(--navy-900); }
.field .hint { font-size: .95rem; color: var(--muted); }
.field input, .field select, .field textarea { width: 100%; min-height: 52px; padding: 12px 14px; border: 1.5px solid #bfc6d1; border-radius: 8px; background: #fff; color: var(--ink); font: inherit; }
.field textarea { min-height: 150px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 3px solid rgba(27, 45, 111, .22); border-color: var(--navy); }
.req { color: #b42318; }
.choices { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 4px; }
.choice { position: relative; }
.choice input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.choice span { display: inline-flex; align-items: center; min-height: 46px; padding: 0 20px; border: 1.5px solid #bfc6d1; border-radius: 999px; font-weight: 600; cursor: pointer; }
.choice input:checked + span { background: var(--navy); border-color: var(--navy); color: #fff; }
.choice input:focus-visible + span { outline: 3px solid var(--accent); outline-offset: 2px; }
.form .btn { width: 100%; }
.form__small { margin: 0; font-size: .95rem; color: var(--muted); }

/* Footer */
.footer { padding: 64px 0 28px; background: var(--navy-900); color: #aab3cc; font-size: 1rem; }
.footer a { color: #fff; text-decoration: none; }
.footer a:hover { text-decoration: underline; }
.footer__grid { display: grid; gap: 36px; }
@media (min-width: 800px) { .footer__grid { grid-template-columns: 1.4fr 1fr 1fr 1.1fr; } }
.footer__brand img { height: 104px; width: auto; margin-bottom: 20px; padding: 12px 16px; background: #fff; border-radius: 10px; box-sizing: content-box; }
.footer h4 { margin-bottom: 14px; font-size: 1.15rem; color: #fff; letter-spacing: .02em; }
.footer ul { display: grid; gap: 9px; list-style: none; margin: 0; padding: 0; }
.footer__contact li { display: flex; gap: 10px; align-items: flex-start; }
.footer__contact .i { margin-top: 3px; color: var(--accent); }
.footer__legal { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; margin-top: 48px; padding-top: 22px; border-top: 1px solid rgba(255, 255, 255, .12); font-size: .9rem; }
.footer__legal p { margin: 0; }

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

/* Emergency strip */
.alert { background: var(--accent); color: var(--accent-ink); }
.alert__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 28px; padding-top: 18px; padding-bottom: 18px; }
.alert p { margin: 0; font-size: 1.1rem; max-width: 70ch; }
.alert strong { font-family: var(--font-head); font-size: 1.25rem; }

/* Job cards (before / during / after) */
.jobs { display: grid; gap: 24px; }
@media (min-width: 860px) { .jobs { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1040px) { .jobs--3 { grid-template-columns: repeat(3, 1fr); } }
.job { display: flex; flex-direction: column; margin: 0; overflow: hidden; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.job__photos { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 3px; background: var(--line); }
.job__photos figure { position: relative; margin: 0; }
.job__photos img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; }
.job__photos figcaption { position: absolute; left: 8px; top: 8px; padding: 3px 9px; border-radius: 4px; background: rgba(13, 22, 54, .86); color: #fff; font: 700 .78rem/1.4 var(--font-head); letter-spacing: .06em; text-transform: uppercase; }
.job__photos .is-after figcaption { background: var(--accent); color: var(--accent-ink); }
.job__body { padding: 20px 22px 24px; }
.job__body h3 { font-size: 1.3rem; margin-bottom: 6px; }
.job__body p { margin: 0; color: var(--muted); }
.section + .section--jobs { padding-top: 0; }
