/* T&A Restoration — styles matched to the original Blocksy/Kadence build */

@font-face {
  font-family: "Sakana";
  src: url("/assets/fonts/Sakana.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --orange: #F1840D;
  --orange-dark: #be6e19;
  --navy: #202933;
  --gray: #7B8794;
  --text-muted: #4A5568;
  --light: #F3F4F7;
  --white: #ffffff;
  --display: "Sakana", "Montserrat", sans-serif;
  --body: "Inter", sans-serif;
  --ui: "Montserrat", sans-serif;
  --container: 1290px;
  --radius: 5px;
  --header-h: 95px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 10px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--body);
  font-size: 18px;
  line-height: 1.65;
  color: var(--navy);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 { margin: 0; font-weight: 400; }
p { margin: 0 0 1em; }
button { font: inherit; cursor: pointer; }
svg { fill: currentColor; }

.skip-link { position: absolute; left: -9999px; top: 0; z-index: 1000; background: var(--orange); color: #fff; padding: 10px 16px; }
.skip-link:focus { left: 10px; top: 10px; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 900px; margin-left: auto; margin-right: auto; }
.center { text-align: center; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--ui); font-weight: 700; font-size: 18px; line-height: 1.65;
  letter-spacing: -0.5px; text-decoration: none;
  padding: 5px 16px; border-radius: 3px; border: 2px solid transparent;
  transition: background-color .2s, color .2s, border-color .2s, transform .2s;
}
.btn-primary { background: var(--orange); color: #fff; border-color: var(--orange); }
.btn-primary:hover { background: var(--orange-dark); border-color: var(--orange-dark); }
.btn-outline { background: #fff; color: var(--orange); border-color: var(--orange); }
.btn-outline:hover { background: var(--orange); color: #fff; }
.btn-outline-light { background: transparent; color: #fff; border-color: #fff; }
.btn-outline-light:hover { background: #fff; color: var(--navy); }
.btn-sm { font-size: 16px; padding: 4px 14px; }
.btn-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.btn-row.center { justify-content: center; }
.btn:focus-visible, a:focus-visible, button:focus-visible, summary:focus-visible { outline: 3px solid var(--navy); outline-offset: 2px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: #fff; border-bottom: 1px solid rgba(0,0,0,.08);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; height: var(--header-h); }
.logo img { width: 210px; height: auto; }
.main-nav { display: flex; gap: 0; margin-left: auto; }
.main-nav a {
  font-family: var(--ui); font-weight: 600; font-size: 16px; text-transform: uppercase;
  text-decoration: none; padding: 0 12.5px; color: var(--navy); transition: color .2s;
}
.main-nav a:hover { color: var(--orange); }
.header-actions { display: flex; align-items: center; gap: 14px; }
.btn-header { font-size: 20px; font-weight: 600; padding: 5px 20px; }
.header-socials { display: none; gap: 14px; }
.header-socials a { color: var(--navy); display: flex; }
.header-socials svg { width: 20px; height: 20px; }
.menu-toggle { display: none; background: none; border: 0; padding: 8px; width: 42px; height: 42px; flex-direction: column; justify-content: center; gap: 5px; }
.menu-toggle span { display: block; height: 3px; background: var(--navy); border-radius: 2px; transition: transform .25s, opacity .25s; }
.menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
.mobile-menu { display: flex; flex-direction: column; padding: 10px 20px 24px; background: #fff; border-top: 1px solid rgba(0,0,0,.06); }
.mobile-menu[hidden] { display: none; }
.mobile-menu a { font-family: var(--ui); font-weight: 600; text-transform: uppercase; text-decoration: none; padding: 12px 0; border-bottom: 1px solid var(--light); font-size: 16px; }
.mobile-menu .btn { margin-top: 16px; }

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 593px; display: flex; align-items: center;
  background: url("/assets/img/roof-repair.webp") center / cover no-repeat;
  color: #fff; text-align: center;
}
.hero-overlay { position: absolute; inset: 0; background: #000; opacity: .65; }
.hero-content { position: relative; padding-top: 60px; padding-bottom: 60px; }
.hero h1 {
  font-family: var(--display); font-size: 50px; line-height: 1.5; color: #fff;
  text-shadow: 1px 1px 1px #000;
}
.hero p { font-weight: 700; font-size: 20px; line-height: 1.65; max-width: 920px; margin: 18px auto 0; }
.hero .btn-row { justify-content: center; }

/* ---------- Trust bar ---------- */
.trust-bar { background: var(--light); }
.trust-inner { display: flex; justify-content: space-around; align-items: center; min-height: 101px; gap: 16px; flex-wrap: wrap; padding-top: 20px; padding-bottom: 20px; }
.trust-item { display: flex; align-items: center; gap: 10px; font-size: 20px; font-weight: 500; }
.trust-item svg { width: 22px; height: 22px; color: var(--orange); }

/* ---------- Sections ---------- */
.section { padding: 90px 0; }
.section.alt { background: var(--light); }
.eyebrow {
  font-family: var(--display); font-size: 30.8px; line-height: 1.5; color: var(--orange);
  margin: 0 0 6px; text-transform: uppercase;
}
.eyebrow-lg { font-size: 44.3px; line-height: 1.4; margin-bottom: 40px; }
.title { font-family: var(--body); font-weight: 700; font-size: 38.8px; line-height: 1.3; color: var(--navy); margin-bottom: 24px; }
.narrow .title { max-width: 780px; margin-left: auto; margin-right: auto; }
.lead { font-size: 18px; }

/* ---------- Cards ---------- */
.card { background: #fff; border: 1px solid var(--orange); border-radius: var(--radius); }

.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 40px; }
.service-card { padding: 24px; text-align: center; transition: box-shadow .25s, transform .25s; }
.service-card:hover { box-shadow: 0 12px 30px rgba(32,41,51,.12); transform: translateY(-4px); }
.service-card img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 2px; margin-bottom: 20px; }
.service-card h3, .feature h3, .step h3 {
  font-family: var(--display); color: var(--orange); font-size: 22px; line-height: 1.5; text-transform: uppercase; margin: 5px 0 10px;
}
.service-card p, .feature p, .step p { font-size: 16px; line-height: 1.65; color: var(--text-muted); margin: 0; }

/* Why us */
.why-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: center; margin-top: 30px; }
.why-text { font-size: 18px; margin-bottom: 24px; }
.feature-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.feature { padding: 24px; text-align: center; }
.feature svg { width: 22px; height: 22px; color: var(--orange); margin: 0 auto 6px; }
.feature h3 { font-size: 18px; }

/* Carousel */
.carousel { position: relative; overflow: hidden; border-radius: var(--radius); padding-bottom: 30px; }
.carousel-track { display: flex; transition: transform .5s ease; }
.carousel-track img { flex: 0 0 100%; width: 100%; aspect-ratio: 3 / 4; max-height: 760px; object-fit: cover; border-radius: var(--radius); }
.carousel-btn {
  position: absolute; top: calc(50% - 15px); transform: translateY(-50%);
  width: 30px; height: 38px; border: 0; background: var(--orange); color: #fff; opacity: .85;
  display: flex; align-items: center; justify-content: center; border-radius: 2px;
}
.carousel-btn:hover { opacity: 1; }
.carousel-btn svg { width: 12px; height: 12px; }
.carousel-btn.prev { left: 10px; }
.carousel-btn.next { right: 10px; }
.carousel-dots { position: absolute; bottom: 6px; left: 0; right: 0; display: flex; justify-content: center; gap: 6px; }
.carousel-dots button { width: 10px; height: 10px; border-radius: 50%; border: 0; padding: 0; background: var(--orange); opacity: .35; }
.carousel-dots button[aria-selected="true"] { opacity: 1; }

/* Process */
.process-grid { list-style: none; padding: 0; margin: 40px 0 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.step { padding: 24px 20px; text-align: center; }
.step-num { display: block; font-family: var(--display); color: var(--orange); font-size: 32px; line-height: 1.3; }
.step h3 { font-size: 16px; }

/* Need restoration CTA */
.cta-box { display: grid; grid-template-columns: 1fr 2fr; gap: 30px; align-items: center; padding: 60px 50px; }
.cta-box-left { text-align: center; }
.cta-box h2 { font-family: var(--display); color: var(--orange); font-size: 35px; line-height: 1.5; text-transform: uppercase; margin-bottom: 16px; }
.cta-box p { margin: 0; }

/* FAQ */
.faq-wrap { max-width: 900px; }
.faq-list { display: flex; flex-direction: column; gap: 20px; }
.faq { background: #fff; border: 1px solid var(--orange); border-radius: var(--radius); }
.faq summary {
  list-style: none; cursor: pointer; padding: 22px 25px; font-weight: 700; font-size: 20px; line-height: 1.3; letter-spacing: .3px;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; flex: 0 0 10px; width: 10px; height: 10px; border-right: 2px solid var(--navy); border-bottom: 2px solid var(--navy);
  transform: rotate(45deg) translateY(-3px); transition: transform .25s;
}
.faq[open] summary::after { transform: rotate(-135deg) translateY(-2px); }
.faq[open] summary { color: var(--orange); }
.faq-body { padding: 0 25px 22px; font-size: 18px; }
.faq-body p { margin: 0; }

/* Service area */
.area-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }

/* Final CTA */
.final-cta {
  position: relative; padding: 110px 0; min-height: 800px; display: flex; align-items: center;
  background: url("/assets/img/footer-background-scaled.jpg") center / cover no-repeat;
}
.final-cta-overlay { position: absolute; inset: 0; background: #000; opacity: .6; }
.final-cta .container { position: relative; }
.glass-box {
  max-width: 560px; padding: 50px 40px; color: #fff;
  background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.45); border-radius: var(--radius);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
.glass-box h2 { font-family: var(--display); font-size: 30.8px; line-height: 1.5; text-transform: uppercase; margin-bottom: 20px; }
.glass-box p { margin-bottom: 24px; }

/* ---------- Footer ---------- */
.site-footer { background: #fff; padding-top: 70px; font-size: 16px; }
.footer-grid { display: grid; grid-template-columns: 1.15fr 1fr 1.15fr; gap: 40px; }
.footer-logo { width: 300px; margin-bottom: 24px; }
.contact-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 18px; }
.contact-list li { display: flex; gap: 16px; align-items: flex-start; }
.contact-list .ci { flex: 0 0 42px; width: 42px; height: 42px; border: 1px solid var(--orange); border-radius: 50%; display: flex; align-items: center; justify-content: center; color: var(--orange); }
.contact-list .ci svg { width: 16px; height: 16px; }
.contact-list strong { display: block; font-weight: 600; font-size: 15px; }
.contact-list a, .contact-list span { font-size: 15px; }
.contact-list a:hover { color: var(--orange); }
.footer-title { font-family: var(--display); color: var(--orange); font-size: 22px; text-transform: uppercase; margin-bottom: 16px; }
.footer-text { font-size: 15px; }
.arrow-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; font-size: 15px; }
.arrow-list.two-col { grid-template-columns: 1fr 1fr; }
.arrow-list li { position: relative; padding-left: 24px; }
.arrow-list li::before { content: "→"; position: absolute; left: 0; color: var(--orange); }
.arrow-list a { text-decoration: none; }
.arrow-list a:hover { color: var(--orange); }
.footer-bottom { text-align: center; padding: 30px 20px; margin-top: 40px; }
.footer-bottom p { font-family: var(--display); text-transform: uppercase; font-size: 13px; margin: 0; }
.footer-bottom a { color: var(--orange); }

/* ---------- Modal + form ---------- */
body.modal-open { overflow: hidden; }
.modal { position: fixed; inset: 0; z-index: 100; display: flex; align-items: center; justify-content: center; padding: 20px; }
.modal[hidden] { display: none; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(18, 21, 25, .5); animation: fade .25s ease; }
.modal-panel {
  position: relative; background: #fff; border-radius: var(--radius); width: 100%; max-width: 700px;
  max-height: calc(100vh - 40px); overflow-y: auto; padding: 30px 24px; animation: pop .3s ease;
  box-shadow: 0 20px 60px rgba(0,0,0,.25);
}
@supports (height: 100dvh) { .modal-panel { max-height: calc(100dvh - 40px); } }
.modal-close {
  position: absolute; top: 8px; right: 8px; width: 28px; height: 28px; border-radius: 50%; border: 0;
  background: var(--orange); color: #fff; font-size: 20px; line-height: 1; display: flex; align-items: center; justify-content: center; z-index: 2;
}
@keyframes fade { from { opacity: 0; } }
@keyframes pop { from { opacity: 0; transform: translateY(16px) scale(.98); } }

.progress { margin-bottom: 18px; }
.progress-label { text-align: center; font-family: var(--ui); font-size: 14px; font-weight: 600; color: #585e6a; margin: 0 0 6px; }
.progress-bar { height: 10px; border-radius: 10px; background: rgba(0,0,0,.08); overflow: hidden; }
.progress-bar span { display: block; height: 100%; width: 25%; background: var(--orange); border-radius: 10px; transition: width .35s ease; }

.form-step { border: 0; margin: 0; padding: 0; min-width: 0; }
.form-step legend { width: 100%; text-align: center; padding: 0; margin-bottom: 16px; }
.form-step h3 { font-family: var(--display); color: var(--orange); font-size: 30px; line-height: 1.4; text-transform: uppercase; }
.hint { display: block; font-style: italic; font-size: 16px; color: var(--navy); }

.image-choices { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px 10px; }
.ic { width: 125px; text-align: center; cursor: pointer; position: relative; }
.ic input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.ic-img {
  display: block; width: 125px; height: 125px; border-radius: 50%; background: #fff center / cover no-repeat;
  border: 6px solid #fff; box-shadow: 0 2px 10px rgba(0,0,0,.18); transition: border-color .2s, transform .2s;
  position: relative;
}
.ic-img.contain { background-size: 70%; }
.ic:hover .ic-img { transform: scale(1.04); }
.ic input:checked + .ic-img { border-color: var(--orange); }
.ic input:checked + .ic-img::after {
  content: "✓"; position: absolute; top: -4px; right: -4px; width: 28px; height: 28px; border-radius: 50%;
  background: var(--orange); color: #fff; font-size: 16px; font-weight: 700; display: flex; align-items: center; justify-content: center;
}
.ic input:focus-visible + .ic-img { outline: 3px solid var(--navy); outline-offset: 2px; }
.ic-label { display: block; font-size: 14px; margin-top: 8px; line-height: 1.3; }

.fields { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field { display: flex; flex-direction: column; gap: 4px; font-size: 14px; font-weight: 600; color: var(--navy); }
.field.full { grid-column: 1 / -1; }
.field em { font-style: normal; font-weight: 400; color: #585e6a; }
.field input, .field select, .field textarea {
  font: 400 16px var(--body); color: var(--navy); padding: 9px 12px; border: 1px solid var(--orange); border-radius: 3px; background: #fff; width: 100%;
  min-height: 42px;
}
.field textarea { resize: vertical; min-height: 96px; line-height: 1.5; }
.field textarea::placeholder { color: #9aa1ab; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--orange); outline-offset: 0; }
.field input[aria-invalid="true"], .field select[aria-invalid="true"] { border-color: #c02b0a; background: #fff8f7; }
.field-error { color: #c02b0a; font-size: 14px; text-align: center; margin: 12px 0 0; min-height: 0; }
.field-error:empty { display: none; }
.form-nav { display: flex; justify-content: center; gap: 10px; margin-top: 22px; }
.form-nav .btn[disabled] { opacity: .6; cursor: wait; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.turnstile-wrap { display: flex; justify-content: center; margin-top: 16px; }
.turnstile-wrap:empty { display: none; }
.form-privacy { text-align: center; font-size: 13px; color: var(--gray); margin: 14px 0 0; }
.form-privacy a { color: var(--gray); }
.form-success { text-align: center; padding: 20px 10px; }
.form-success h3 { font-family: var(--display); color: var(--orange); font-size: 30px; text-transform: uppercase; margin-bottom: 12px; }
.form-success a { color: var(--orange); font-weight: 600; }

/* ---------- Reveal animation ---------- */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
.js .reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .carousel-track { transition: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1199px) {
  .main-nav a { padding: 0 9px; font-size: 15px; }
  .logo img { width: 180px; }
  .btn-header { font-size: 18px; padding: 5px 16px; }
}
@media (max-width: 999px) {
  :root { --header-h: 76px; }
  .main-nav { display: none; }
  .menu-toggle { display: flex; }
  .header-socials { display: flex; }
  .hero { min-height: 520px; }
  .hero h1 { font-size: 40px; }
  .hero .br-desktop { display: none; }
  .section { padding: 70px 0; }
  .title { font-size: 32px; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .why-grid { grid-template-columns: 1fr; }
  .carousel { max-width: 560px; margin: 0 auto; width: 100%; }
  .process-grid { grid-template-columns: repeat(2, 1fr); }
  .cta-box { grid-template-columns: 1fr; text-align: center; padding: 40px 30px; }
  .area-grid { grid-template-columns: 1fr; }
  .eyebrow-lg { font-size: 36px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > div:first-child { grid-column: 1 / -1; }
  .final-cta { min-height: 600px; }
}
@media (max-width: 689px) {
  body { font-size: 16px; }
  .container { padding: 0 16px; }
  .header-socials { display: none; }
  .btn-header { font-size: 15px; padding: 4px 12px; }
  .logo img { width: 150px; }
  .header-actions { gap: 6px; }
  .hero { min-height: 480px; }
  .hero h1 { font-size: 29px; line-height: 1.45; }
  .hero p { font-size: 17px; }
  .trust-inner { display: grid; grid-template-columns: repeat(3, 1fr); min-height: 0; gap: 0; align-items: start; padding-top: 18px; padding-bottom: 18px; }
  .trust-item { flex-direction: column; justify-content: flex-start; gap: 6px; text-align: center; font-size: 14px; font-weight: 600; line-height: 1.25; padding: 0 6px; }
  .trust-item + .trust-item { border-left: 1px solid rgba(32, 41, 51, .12); }
  .trust-item svg { width: 24px; height: 24px; }
  .section { padding: 56px 0; }
  .eyebrow { font-size: 24px; }
  .eyebrow-lg { font-size: 28px; margin-bottom: 28px; }
  .title { font-size: 26px; }
  .lead, .why-text, .faq-body { font-size: 16px; }
  .services-grid, .feature-grid, .process-grid { grid-template-columns: 1fr; gap: 18px; }
  .cta-box { padding: 32px 20px; }
  .cta-box h2 { font-size: 28px; }
  .faq summary { font-size: 17px; padding: 18px; }
  .faq-body { padding: 0 18px 18px; }
  .final-cta { padding: 70px 0; min-height: 0; }
  .glass-box { padding: 32px 22px; }
  .glass-box h2 { font-size: 24px; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-logo { width: 240px; }
  .modal { padding: 10px; }
  .modal-panel { padding: 26px 16px; max-height: calc(100vh - 20px); }
  .form-step h3 { font-size: 22px; }
  .ic, .ic-img { width: 96px; }
  .ic-img { height: 96px; border-width: 4px; }
  .fields { grid-template-columns: 1fr; }
}
@media (max-width: 360px) {
  .btn-header { display: none; }
}
