/* ============================================================
   Boulder Roof Co — Global Stylesheet
   Design system: gironroofing (dark, warm, Ubuntu + Mr Dafoe)
   5px base grid · accent #ff1f27 · bg #222222
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Ubuntu:wght@400;500;700&family=Mr+Dafoe&display=swap');

/* ── Design Tokens ─────────────────────────────────────────── */
:root {
  --background:   #222222;
  --surface:      #000000;
  --text-primary: #ffffff;
  --text-muted:   #666666;
  --accent:       #ff1f27;
  --accent-dark:  #a61e23;
  --border:       #555555;
  --success:      #2bc550;

  --font-body:    'Ubuntu', sans-serif;
  --font-display: 'Mr Dafoe', cursive;

  --container:    1140px;
  --radius:       5px;
  --radius-lg:    10px;

  --shadow-sm:    0 1px 3px rgba(0,0,0,.15);
  --shadow-md:    0 2px 10px rgba(0,0,0,.25);
  --shadow-lg:    5px 5px 15px rgba(0,0,0,.4);

  --transition:   0.3s ease;
  --transition-fast: 0.15s ease;
}

/* ── Reset ─────────────────────────────────────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html { scroll-behavior: smooth; }
img, video { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
ul, ol { list-style: none; }

/* ── Base ──────────────────────────────────────────────────── */
body {
  background: var(--background);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

/* ── Typography ────────────────────────────────────────────── */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-body);
  font-weight: 700;
  line-height: 1.2;
  color: var(--text-primary);
}
h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.5rem, 3.5vw, 2.25rem); }
h3 { font-size: clamp(1.1rem, 2.5vw, 1.5rem); }
h4 { font-size: 1.15rem; }
h5 { font-size: 1rem; }
h6 { font-size: 0.9rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-muted); }

.display-script {
  font-family: var(--font-display);
  font-weight: 400;
  color: var(--accent);
}
p { margin-bottom: 15px; max-width: 65ch; }
p:last-child { margin-bottom: 0; }
strong { font-weight: 700; }
em { font-style: italic; }

/* ── Layout ────────────────────────────────────────────────── */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 20px;
}
.container-fluid {
  width: 100%;
  padding: 0 20px;
}
.section {
  padding: 65px 0;
}
.section-sm { padding: 40px 0; }
.section-lg { padding: 90px 0; }

.row {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
}
.col { flex: 1; min-width: 0; }
.col-half { flex: 0 0 calc(50% - 15px); }
.col-third { flex: 0 0 calc(33.333% - 20px); }
.col-quarter { flex: 0 0 calc(25% - 22.5px); }

.text-center { text-align: center; }
.text-left   { text-align: left; }
.text-muted  { color: var(--text-muted); }
.mt-0  { margin-top: 0; }
.mt-10 { margin-top: 10px; }
.mt-20 { margin-top: 20px; }
.mt-30 { margin-top: 30px; }
.mt-40 { margin-top: 40px; }
.mb-10 { margin-bottom: 10px; }
.mb-20 { margin-bottom: 20px; }
.mb-30 { margin-bottom: 30px; }
.d-flex       { display: flex; }
.align-center { align-items: center; }
.justify-center { justify-content: center; }
.gap-10 { gap: 10px; }
.gap-20 { gap: 20px; }

/* ── Buttons ───────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 25px;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 700;
  line-height: 1;
  text-align: center;
  transition: background var(--transition-fast), color var(--transition-fast), opacity var(--transition-fast);
  white-space: nowrap;
  cursor: pointer;
  border: 2px solid transparent;
}
.btn-primary {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}
.btn-primary:hover {
  background: var(--accent-dark);
  border-color: var(--accent-dark);
}
.btn-primary:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
}
.btn-ghost {
  background: transparent;
  color: #fff;
  border-color: var(--border);
}
.btn-ghost:hover {
  color: var(--accent);
  border-color: var(--accent);
}
.btn-lg { padding: 15px 35px; font-size: 1rem; }
.btn-sm { padding: 8px 15px; font-size: 13px; }

/* ── Cards ─────────────────────────────────────────────────── */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 25px;
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition), border-color var(--transition);
}
.card:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--accent);
}
.card-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: var(--radius) var(--radius) 0 0;
  margin: -25px -25px 20px -25px;
  width: calc(100% + 50px);
}
.card-title {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 10px;
}
.card-body { color: var(--text-muted); font-size: 14px; }

/* ── Inputs ────────────────────────────────────────────────── */
.input, .textarea, .select {
  display: block;
  width: 100%;
  background: var(--background);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px 15px;
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 15px;
  transition: border-color var(--transition-fast);
  outline: none;
}
.input:focus, .textarea:focus, .select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 2px rgba(255,31,39,.2);
}
.input::placeholder, .textarea::placeholder { color: var(--text-muted); }
.textarea { resize: vertical; min-height: 120px; }
.form-group { margin-bottom: 20px; }
.form-label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 6px;
}

/* ── Badges ────────────────────────────────────────────────── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 10px;
  border-radius: 50px;
  font-size: 12px;
  font-weight: 700;
  background: var(--surface);
  color: var(--text-muted);
  border: 1px solid var(--border);
}
.badge-accent { background: var(--accent); color: #fff; border-color: var(--accent); }
.badge-success { background: var(--success); color: #fff; border-color: var(--success); }

/* ── Navigation (shared) ───────────────────────────────────── */
.nav-link {
  color: var(--text-primary);
  font-size: 14px;
  font-weight: 500;
  padding: 8px 10px;
  border-radius: var(--radius);
  transition: color var(--transition-fast);
  white-space: nowrap;
}
.nav-link:hover    { color: var(--accent); }
.nav-link.active   { color: var(--accent); }
.nav-link:focus-visible { outline: 2px solid var(--accent); }

/* ── Site Header ───────────────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-md);
}
.site-header .header-top {
  background: var(--accent-dark);
  padding: 6px 0;
  font-size: 13px;
}
.site-header .header-top .container {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 20px;
}
.site-header .header-top a {
  color: #fff;
  transition: opacity var(--transition-fast);
}
.site-header .header-top a:hover { opacity: 0.8; }

.site-header .header-main {
  padding: 15px 0;
}
.site-header .header-main .container {
  display: flex;
  align-items: center;
  gap: 30px;
}
.site-header .logo-wrap {
  flex-shrink: 0;
}
.site-header .logo-img {
  height: 55px;
  width: auto;
  object-fit: contain;
}
.site-header .main-nav {
  display: flex;
  align-items: center;
  gap: 5px;
  flex: 1;
}
.site-header .header-cta {
  display: flex;
  align-items: center;
  gap: 15px;
  flex-shrink: 0;
}
.site-header .phone-link {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-primary);
  transition: color var(--transition-fast);
}
.site-header .phone-link:hover { color: var(--accent); }

/* Mobile toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 30px;
  padding: 5px;
  margin-left: auto;
}
.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile drawer */
.nav-drawer {
  display: none;
  flex-direction: column;
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 15px 20px 20px;
  gap: 5px;
}
.nav-drawer.is-open { display: flex; }
.nav-drawer .nav-link {
  padding: 10px 15px;
  border-radius: var(--radius);
  font-size: 15px;
}
.nav-drawer .nav-link:hover { background: rgba(255,255,255,.05); }
.nav-drawer .btn-primary { margin-top: 10px; text-align: center; }

/* ── Site Footer ───────────────────────────────────────────── */
.site-footer {
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding-top: 60px;
  padding-bottom: 30px;
}
.site-footer .footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}
.site-footer .footer-logo {
  height: 50px;
  width: auto;
  margin-bottom: 15px;
}
.site-footer .footer-desc {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 20px;
  max-width: 30ch;
}
.site-footer .footer-contact {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 14px;
  color: var(--text-muted);
}
.site-footer .footer-contact a {
  color: var(--text-muted);
  transition: color var(--transition-fast);
}
.site-footer .footer-contact a:hover { color: var(--accent); }
.site-footer .footer-heading {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-bottom: 15px;
}
.site-footer .footer-links {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.site-footer .footer-links a {
  font-size: 14px;
  color: var(--text-muted);
  transition: color var(--transition-fast);
}
.site-footer .footer-links a:hover { color: var(--accent); }
.site-footer .footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  flex-wrap: wrap;
}
.site-footer .footer-bottom p {
  font-size: 13px;
  color: var(--text-muted);
  margin: 0;
  max-width: none;
}
.site-footer .footer-bottom a { color: var(--text-muted); }
.site-footer .footer-bottom a:hover { color: var(--accent); }

/* ── Trust Strip ───────────────────────────────────────────── */
.trust-strip {
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 20px 0;
}
.trust-strip .trust-items {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
}
.trust-strip .trust-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
}
.trust-strip .trust-item .trust-icon {
  width: 35px;
  height: 35px;
  object-fit: contain;
  flex-shrink: 0;
}
.trust-strip .trust-item .stars {
  color: #ffb800;
  font-size: 16px;
  letter-spacing: -1px;
}

/* ── Hero Sections ─────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 520px;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--surface);
}
.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.35;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(0,0,0,.7) 0%, rgba(34,34,34,.4) 100%);
}
.hero-content {
  position: relative;
  z-index: 1;
  padding: 65px 0;
}
.hero-eyebrow {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent);
  margin-bottom: 15px;
}
.hero h1 { margin-bottom: 20px; }
.hero-sub {
  font-size: 1.1rem;
  color: rgba(255,255,255,.8);
  margin-bottom: 30px;
  max-width: 50ch;
}
.hero-actions {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
  align-items: center;
}
.hero-phone {
  font-size: 1.2rem;
  font-weight: 700;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: color var(--transition-fast);
}
.hero-phone:hover { color: var(--accent); }

/* ── Section Headers ───────────────────────────────────────── */
.section-header {
  margin-bottom: 45px;
}
.section-header.center { text-align: center; }
.section-header.center p { margin: 10px auto 0; }
.section-eyebrow {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent);
  margin-bottom: 10px;
}

/* ── Service Grid ──────────────────────────────────────────── */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
}
.service-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 25px 20px;
  text-align: center;
  transition: box-shadow var(--transition), border-color var(--transition), transform var(--transition);
}
.service-card:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--accent);
  transform: translateY(-3px);
}
.service-card .service-icon {
  width: 60px;
  height: 60px;
  object-fit: contain;
  margin: 0 auto 15px;
}
.service-card h3 {
  font-size: 1rem;
  margin-bottom: 10px;
}
.service-card p {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 15px;
}
.service-card .btn { font-size: 13px; padding: 8px 15px; }

/* ── Testimonials ──────────────────────────────────────────── */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}
.testimonial-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 25px;
}
.testimonial-card .stars {
  color: #ffb800;
  font-size: 18px;
  letter-spacing: -1px;
  margin-bottom: 15px;
}
.testimonial-card blockquote {
  font-size: 14px;
  color: rgba(255,255,255,.8);
  line-height: 1.6;
  margin-bottom: 15px;
  font-style: italic;
}
.testimonial-card blockquote::before {
  content: '"';
  color: var(--accent);
  font-size: 2rem;
  line-height: 0;
  vertical-align: -0.4em;
  margin-right: 4px;
}
.testimonial-card .reviewer {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-muted);
}

/* ── CTA Bands ─────────────────────────────────────────────── */
.cta-band {
  background: var(--accent);
  padding: 50px 0;
  text-align: center;
}
.cta-band h2 { color: #fff; margin-bottom: 15px; }
.cta-band p  { color: rgba(255,255,255,.85); margin: 0 auto 25px; max-width: 55ch; }
.cta-band .btn-ghost {
  border-color: rgba(255,255,255,.6);
  color: #fff;
}
.cta-band .btn-ghost:hover {
  border-color: #fff;
  background: rgba(255,255,255,.1);
}
.cta-band .cta-actions {
  display: flex;
  gap: 15px;
  justify-content: center;
  flex-wrap: wrap;
  align-items: center;
}
.cta-phone-large {
  font-size: 1.5rem;
  font-weight: 700;
  color: #fff;
  transition: opacity var(--transition-fast);
}
.cta-phone-large:hover { opacity: 0.85; }

/* ── FAQ Accordion ─────────────────────────────────────────── */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.faq-item summary {
  padding: 18px 20px;
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  background: var(--surface);
  transition: background var(--transition-fast);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+';
  font-size: 1.4rem;
  font-weight: 400;
  color: var(--accent);
  flex-shrink: 0;
  transition: transform var(--transition);
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item[open] summary { background: rgba(255,255,255,.03); }
.faq-item .faq-answer {
  padding: 0 20px 18px;
  font-size: 14px;
  color: rgba(255,255,255,.8);
  line-height: 1.65;
  background: var(--surface);
}

/* ── Service Areas ─────────────────────────────────────────── */
.areas-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.area-chip {
  padding: 8px 15px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 50px;
  font-size: 13px;
  font-weight: 500;
  transition: border-color var(--transition-fast), color var(--transition-fast);
}
.area-chip:hover { border-color: var(--accent); color: var(--accent); }

/* ── Gallery ───────────────────────────────────────────────── */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 10px;
}
.gallery-grid img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: var(--radius);
  transition: transform var(--transition), box-shadow var(--transition);
}
.gallery-grid img:hover {
  transform: scale(1.03);
  box-shadow: var(--shadow-lg);
}

/* ── Process Steps ─────────────────────────────────────────── */
.process-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 30px;
  counter-reset: steps;
}
.step-item {
  position: relative;
  padding-top: 60px;
}
.step-item::before {
  counter-increment: steps;
  content: counter(steps);
  position: absolute;
  top: 0;
  left: 0;
  width: 45px;
  height: 45px;
  background: var(--accent);
  color: #fff;
  font-size: 1.1rem;
  font-weight: 700;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
}
.step-item h4 { margin-bottom: 8px; }
.step-item p  { font-size: 14px; color: var(--text-muted); }

/* ── Rating Block ──────────────────────────────────────────── */
.rating-block {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.rating-score {
  font-size: 3rem;
  font-weight: 700;
  line-height: 1;
  color: var(--text-primary);
}
.rating-details { display: flex; flex-direction: column; gap: 4px; }
.rating-stars { color: #ffb800; font-size: 1.4rem; letter-spacing: -1px; }
.rating-count { font-size: 13px; color: var(--text-muted); }

/* ── Dividers ──────────────────────────────────────────────── */
hr { border: none; border-top: 1px solid var(--border); margin: 40px 0; }
.section-divider { height: 4px; background: var(--accent); width: 50px; border-radius: 2px; margin: 15px 0 20px; }
.section-divider.center { margin: 15px auto 20px; }

/* ── Responsive ────────────────────────────────────────────── */
@media (max-width: 991px) {
  .site-footer .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 767px) {
  .section    { padding: 45px 0; }
  .section-lg { padding: 60px 0; }

  .site-header .main-nav,
  .site-header .header-cta { display: none; }
  .nav-toggle { display: flex; }

  .site-header .header-main .container { gap: 15px; }

  .hero { min-height: 420px; }
  .hero-content { padding: 45px 0; }

  .row { gap: 20px; }
  .col-half, .col-third, .col-quarter { flex: 0 0 100%; }

  .site-footer .footer-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  .trust-strip .trust-items { gap: 20px; }

  .services-grid { grid-template-columns: repeat(2, 1fr); gap: 15px; }
  .testimonials-grid { grid-template-columns: 1fr; }

  .cta-band { padding: 40px 0; }
  .cta-phone-large { font-size: 1.2rem; }

  .process-steps { grid-template-columns: 1fr; gap: 20px; }
}
@media (max-width: 450px) {
  .services-grid { grid-template-columns: 1fr; }
  .hero-actions { flex-direction: column; align-items: flex-start; }
}

/* ── Reduced Motion ────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  html { scroll-behavior: auto; }
  [data-aos] { transition: none !important; opacity: 1 !important; transform: none !important; }
}
