:root {
  --ink: #141210;
  --red: #E71F26;
  --red-cta: #C4141B;
  --tan: #B07A3C;
  --tan-ink: #8A5A22;
  --enamel: #FBFAF7;
  --steel: #EEF0F1;
  --radius: 12px;
  --bg: var(--enamel);
  --fg: var(--ink);
  --bg-alt: var(--steel);
  --red-text: var(--red-cta);
  --scrim: rgba(20, 18, 16, 0.85);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: var(--ink);
    --fg: var(--enamel);
    --bg-alt: #242220;
    --red-text: #FF6B6F;
    --scrim: rgba(0, 0, 0, 0.7);
  }
}




* { box-sizing: border-box; margin: 0; padding: 0; }
body {
  font-family: 'Archivo', sans-serif;
  background-color: var(--bg);
  color: var(--fg);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, .display {
  font-family: 'Archivo Black', sans-serif;
  font-weight: 400;
  line-height: 1.1;
  text-wrap: balance;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: flow-root; border-radius: var(--radius); }

.cta, .mock-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: var(--red-cta);
  color: #fff;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius);
  font-weight: 800;
  text-align: center;
  border: none;
  cursor: pointer;
  transition: transform 0.2s ease, filter 0.2s ease;
  min-height: 44px;
}
.cta:hover, .mock-btn:hover {
  filter: brightness(1.1);
}
.cta-sec {
  background: var(--tan);
  color: #fff;
}
.cta-sec:hover {
  filter: brightness(1.1);
}

@media (prefers-reduced-motion: no-preference) {
  .cta:hover, .mock-btn:hover, .cta-sec:hover, .photo-lift:hover {
    transform: translateY(-4px);
  }
}

.masthead {
  position: sticky;
  top: 0;
  background: var(--bg);
  z-index: 100;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1rem;
  border-bottom: 1px solid var(--bg-alt);
}
.masthead-left, .masthead-right {
  display: flex;
  align-items: center;
  gap: 1rem;
}
.masthead-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: 'Archivo Black', sans-serif;
  font-size: 1.25rem;
}
.mascot { width: 48px; height: 48px; border-radius: 0; }
.masthead-nav { display: none; }
.masthead-nav a { display: inline-flex; align-items: center; min-height: 44px; min-width: 44px; padding: 0 0.5rem; }
.desktop-cta { display: none; }

/* Mobile navigation details/summary */
.mnav { display: none; }

@media (max-width: 1024px) {
  .desktop-nav { display: none !important; }
  
  .masthead {
    display: flow-root;
    position: sticky;
    height: auto;
    min-height: 72px;
    padding: 0;
    z-index: 1000;
  }
  
  .masthead-left {
    float: left;
    height: 72px;
    display: flex;
    align-items: center;
    padding: 0 1rem;
  }
  
  .mnav { 
    display: block; 
  }
  .mnav__btn { 
    float: right;
    display: flex; align-items: center; gap: .5rem;
    height: 72px; min-width: 44px; padding: 0 1rem; cursor: pointer;
    list-style: none; font-weight: 800; 
  }
  .mnav__btn::-webkit-details-marker { display: none; }
  .mnav__panel { 
    clear: both;
    display: flex; flex-direction: column; 
    width: 100%;
    background: var(--bg);
  }
  .mnav__link { 
    display: flex; align-items: center; min-height: 44px; 
    padding: 0.5rem 1rem;
    border-top: 1px solid var(--bg-alt);
    font-weight: 800;
  }
}

@media(min-width: 1025px) {
  .masthead { padding: 0 2rem; }
  .masthead-nav { display: flex; gap: 1.5rem; font-weight: 800; }
  .mnav { display: none !important; }
  .desktop-cta { display: inline-flex; }
}

.hero {
  position: relative;
  min-height: calc(100vh - 72px);
  display: flex;
  align-items: flex-end;
  padding: 2rem 1rem 7rem 1rem;
}
@media(min-width: 768px) {
  .hero {
    padding: 2rem 1rem;
  }
}
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -2;
}
.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 0;
}
.hero-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top right, var(--scrim) 0%, rgba(20,18,16,0.3) 50%, transparent 100%);
  z-index: -1;
}
.hero-content {
  position: relative;
  max-width: 600px;
  color: #FBFAF7;
  z-index: 1;
  padding-bottom: 2rem;
}
.hero-kicker {
  font-weight: 800;
  letter-spacing: 0.05em;
  color: var(--enamel);
  background: var(--ink);
  display: inline-block;
  padding: 0.25rem 0.75rem;
  border-radius: 4px;
  margin-bottom: 1rem;
}
.hero h1 {
  font-size: clamp(2.6rem, 7vw, 5.5rem);
  margin-bottom: 1.5rem;
}
.hero-subhead {
  font-size: 1.25rem;
  margin-bottom: 2rem;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.roofline {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 24px;
  overflow: hidden;
  z-index: 10;
}
.roofline-part {
  display: block;
  position: absolute;
  top: 12px;
  left: 0;
  width: 100%;
  height: 100px;
  border-top: 4px solid var(--red);
  transform: rotate(-2deg);
  transform-origin: center top;
}
.roofline-part.right {
  transform: scaleX(-1) rotate(-2deg);
}

.pos-band {
  background: var(--bg-alt);
  padding: 4rem 1rem;
  text-align: center;
}
.pos-band h2 { color: inherit; margin-bottom: 1rem; font-size: 2.5rem; }
.pos-band p { font-size: 1.25rem; max-width: 800px; margin: 0 auto; }

.section { padding: 5rem 1rem; max-width: 1200px; margin: 0 auto; }
.section-header { margin-bottom: 3rem; text-align: left; }
.section-header h2 { font-size: 2.5rem; color: inherit; }

.services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}
@media(min-width: 768px) {
  .services-grid { grid-template-columns: 2fr 1fr; }
}
.service-card {
  padding: 2rem;
  border-radius: var(--radius);
}
.service-card:first-child {
  background: var(--bg-alt);
}
.service-card:last-child {
  background: transparent;
  border: 1px solid var(--bg-alt);
}
.service-card h3 { font-size: 1.75rem; margin-bottom: 1rem; }

.gallery-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
}
@media(min-width: 768px) {
  .gallery-grid {
    grid-template-columns: 2fr 1fr;
    grid-template-rows: auto auto;
  }
  .gal-1 { grid-column: 1 / 2; grid-row: 1 / 3; }
  .gal-2 { grid-column: 2 / 3; grid-row: 1 / 2; }
  .gal-3 { grid-column: 2 / 3; grid-row: 2 / 3; }
}
.gallery-grid img { width: 100%; height: 100%; object-fit: cover; border-radius: 0; }

.reviews-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 4rem;
}
@media(min-width: 768px) { .reviews-grid { grid-template-columns: 1fr; } }
.review-card {
  padding: 0;
  background: transparent;
  border: none;
  border-radius: 0;
  max-width: 800px;
  position: relative;
}
.review-card:nth-child(even) {
  margin-left: auto;
  text-align: right;
}
.review-body {
  font-size: 1.5rem;
  font-style: italic;
  margin-bottom: 1rem;
  font-weight: 400;
  line-height: 1.4;
  position: relative;
}
.review-card:nth-child(even) .review-author { font-weight: 800; color: var(--tan-ink); }

.coverage-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
}
@media(min-width: 768px) { .coverage-grid { grid-template-columns: 1fr 1fr; } }
.town-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
}
.town-span {
  background: var(--bg-alt);
  padding: 0.5rem 1rem;
  border-radius: var(--radius);
  font-weight: 800;
}

.contact-mock {
  max-width: 600px;
  margin: 0 auto;
  background: var(--ink);
  color: var(--enamel);
  padding: 2rem;
  border-radius: var(--radius);
}
.mock-field { margin-bottom: 1.5rem; display: flex; flex-direction: column; gap: 0.5rem; }
.mock-field label { font-weight: 800; }
.mock-input {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid var(--tan-ink);
  border-radius: 4px;
  background: var(--bg);
  color: var(--ink);
  min-height: 44px;
}
.mock-disclosure { margin-top: 1rem; font-size: 0.875rem; opacity: 0.8; text-align: center; }

.footer {
  background: var(--ink);
  color: var(--enamel);
  padding: 4rem 1rem;
  padding-bottom: 6rem;
  text-align: center;
}
.footer-logo { display: flex; align-items: center; justify-content: center; gap: 0.5rem; margin-bottom: 2rem; font-family: 'Archivo Black', sans-serif; font-size: 1.5rem; }
.footer-info {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 2rem;
}

.sticky-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--bg);
  padding: 1rem;
  border-top: 1px solid var(--bg-alt);
  display: flex;
  justify-content: center;
  z-index: 100;
}
@media(min-width: 768px) { .sticky-bar { display: none; } }
.sticky-bar .cta { width: 100%; max-width: 400px; }

@media (prefers-reduced-motion: no-preference) {
  @keyframes fadeUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
  }
  .hero-content > * {
    opacity: 0;
    animation: fadeUp 0.6s ease forwards;
  }
  .hero-content .hero-kicker { animation-delay: 0.1s; }
  .hero-content h1 { animation-delay: 0.2s; }
  .hero-content .hero-subhead { animation-delay: 0.3s; }
  .hero-content .hero-actions { animation-delay: 0.4s; }

  @keyframes wipe {
    from { clip-path: polygon(50% 0, 50% 0, 50% 100%, 50% 100%); }
    to { clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%); }
  }
  .roofline-part {
    animation: wipe 1s ease forwards;
    animation-delay: 0.5s;
    clip-path: polygon(50% 0, 50% 0, 50% 100%, 50% 100%);
  }
  
  @keyframes reveal {
    from { opacity: 0; transform: translateY(40px); }
    to { opacity: 1; transform: translateY(0); }
  }
  .scroll-reveal {
    animation: reveal linear both;
    animation-timeline: view();
    animation-range: entry 10% cover 30%;
  }
}

.section.dark-anchor {
  max-width: none;
  background: var(--ink);
  color: var(--enamel);
  padding: 5rem 0;
}
.section.dark-anchor .section-header {
  max-width: 1200px;
  margin: 0 auto 3rem auto;
  padding: 0 1rem;
}

/* --- QA FIXES (supervisor) --- */
@media (max-width: 768px) {
  a.btn, .btn, button, summary { min-height: 44px; }
  nav a, details a, .mnav a, .mobile-nav a { min-height: 44px; display: flex; align-items: center; }
}
