/* London Town Roofing — style.css */

/* ─── Variables ─── */
:root {
  --bg: #f7f4ef;
  --bg-dark: #2b2f33;
  --text-primary: #2b2f33;
  --text-secondary: #4a5057;
  --accent: #c0603a;
  --accent-dark: #a04d2e;
  --accent-tint: rgba(192,96,58,0.09);
  --white: #ffffff;
  --font-serif: Georgia, 'Times New Roman', serif;
  --font-sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica Neue, Arial, sans-serif;
  --max-width: 1100px;
  --section-pad: 6rem 1.5rem;
  --radius: 10px;
  --radius-sm: 5px;
  --shadow-sm: 0 1px 3px rgba(43,47,51,0.07), 0 1px 2px rgba(43,47,51,0.04);
  --shadow-md: 0 6px 18px rgba(43,47,51,0.10), 0 2px 6px rgba(43,47,51,0.06);
}

/* ─── Reset ─── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: var(--font-sans); background: var(--bg); color: var(--text-primary); line-height: 1.65; font-size: 1rem; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* ─── Base typography ─── */
h1, h2, h3 { font-family: var(--font-serif); color: var(--text-primary); }
h1 { font-size: clamp(2.5rem, 6vw, 4.5rem); line-height: 1.05; letter-spacing: -0.03em; }
h2 { font-size: clamp(1.6rem, 3vw, 2.25rem); line-height: 1.15; letter-spacing: -0.02em; margin-bottom: 1rem; }
h3 { font-size: 1.1rem; line-height: 1.3; letter-spacing: -0.01em; margin-bottom: 0.4rem; }
p { color: var(--text-secondary); max-width: 68ch; }

/* ─── Buttons ─── */
.btn {
  display: inline-block;
  padding: 0.9rem 1.85rem;
  border-radius: var(--radius-sm);
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  cursor: pointer;
  border: 2px solid transparent;
  transition: background 0.18s, color 0.18s, border-color 0.18s, transform 0.12s, box-shadow 0.18s;
  text-align: center;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-primary {
  background: var(--accent);
  color: var(--white);
  border-color: var(--accent);
  box-shadow: 0 2px 8px rgba(192,96,58,0.28);
}
.btn-primary:hover, .btn-primary:focus {
  background: var(--accent-dark);
  border-color: var(--accent-dark);
  box-shadow: 0 5px 16px rgba(192,96,58,0.38);
}
.btn-secondary {
  background: transparent;
  color: var(--text-primary);
  border-color: rgba(43,47,51,0.35);
}
.btn-secondary:hover, .btn-secondary:focus {
  background: var(--text-primary);
  color: var(--white);
  border-color: var(--text-primary);
}

/* ─── Container ─── */
.container { max-width: var(--max-width); margin: 0 auto; padding: 0 1.5rem; }

/* ─── Sections ─── */
section { padding: var(--section-pad); }

/* ─── Visually hidden (accessibility) ─── */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

/* ─── Header ─── */
#site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(0,0,0,0.07);
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding-top: 1rem;
  padding-bottom: 1rem;
}
.wordmark {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  font-weight: bold;
  letter-spacing: -0.01em;
  color: var(--text-primary);
  flex: 1;
  white-space: nowrap;
}
.nav-list { display: flex; gap: 1.4rem; }
.nav-link { font-size: 0.85rem; color: var(--text-secondary); font-weight: 500; letter-spacing: 0.01em; transition: color 0.15s; white-space: nowrap; }
.nav-link:hover, .nav-link:focus { color: var(--accent); }
.header-cta { padding: 0.55rem 1.15rem; font-size: 0.875rem; white-space: nowrap; }

#nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px;
  min-width: 44px;
  min-height: 44px;
}
.hamburger-bar { display: block; width: 24px; height: 2px; background: var(--text-primary); border-radius: 2px; }

@media (max-width: 768px) {
  .header-cta { display: none; }
  #nav-toggle { display: flex; }
  #nav-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(255,255,255,0.97);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(0,0,0,0.07);
    padding: 1rem 1.5rem;
  }
  #nav-menu.is-open { display: block; }
  .nav-list { flex-direction: column; gap: 1rem; }
}

/* ─── Hero ─── */
#hero {
  padding: 8rem 1.5rem 7rem;
  background-image:
    radial-gradient(ellipse 75% 65% at 72% 52%, rgba(192,96,58,0.05) 0%, transparent 65%),
    radial-gradient(ellipse 45% 70% at 5% 95%, rgba(43,47,51,0.03) 0%, transparent 60%);
}
.hero-inner {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 4rem;
  align-items: center;
}
.hero-content { display: flex; flex-direction: column; gap: 1.85rem; }
.hero-sub { font-size: 1.2rem; line-height: 1.7; max-width: 52ch; }
.hero-ctas { display: flex; gap: 1rem; flex-wrap: wrap; }
.trust-badges { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.trust-badges li {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-secondary);
  background: var(--white);
  padding: 0.35rem 0.9rem;
  border-radius: 999px;
  border: 1px solid rgba(0,0,0,0.1);
}
.hero-roof-photo {
  width: 100%;
  aspect-ratio: 4/5;
  object-fit: cover;
  border-radius: 12px;
  display: block;
}

@media (max-width: 768px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-photo { order: -1; max-width: 200px; margin: 0 auto; }
}

/* ─── Trust Bar ─── */
#trust-bar { background: var(--bg-dark); padding: 0.9rem 1.5rem; }
.trust-bar-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem 1.25rem;
  font-size: 0.8rem;
  letter-spacing: 0.03em;
  color: rgba(255,255,255,0.75);
  font-weight: 500;
  text-align: center;
}
.trust-bar-inner [aria-hidden="true"] { color: rgba(255,255,255,0.22); }

/* ─── About ─── */
#about { background: var(--white); }
.about-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 4rem;
  align-items: start;
}
.about-text { display: flex; flex-direction: column; gap: 1.4rem; }

/* ─── Services ─── */
#services { background: var(--bg); }
#services h2 { margin-bottom: 2.5rem; }
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}
.service-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.85rem;
  border: 1px solid rgba(0,0,0,0.06);
  border-top: 3px solid rgba(0,0,0,0.06);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-top-color 0.22s ease;
}
.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-top-color: var(--accent);
}
.service-icon {
  color: var(--accent);
  margin-bottom: 0.85rem;
  flex-shrink: 0;
  width: 36px;
  height: 36px;
}

@media (max-width: 900px) { .services-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .services-grid { grid-template-columns: 1fr; } }

/* ─── Gallery ─── */
#gallery { background: var(--white); }
#gallery h2 { margin-bottom: 0.5rem; }
.section-intro { margin-bottom: 2.25rem; }
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.65rem;
}
.gallery-tile {
  margin: 0;
  overflow: hidden;
  border-radius: var(--radius);
  position: relative;
}
.gallery-tile img,
.gallery-placeholder {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  display: block;
  transition: transform 0.45s ease;
}
.gallery-tile:hover img { transform: scale(1.05); }
.gallery-placeholder { background: #d0cdc8; }

@media (max-width: 768px) { .gallery-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .gallery-grid { grid-template-columns: 1fr; } }

/* ─── Reviews ─── */
#reviews { background: var(--bg); }
#reviews h2 { margin-bottom: 0.75rem; }
.reviews-trust-line { margin-bottom: 2.75rem; }
.reviews-link { color: var(--accent); text-decoration: underline; }

.reviews-carousel { position: relative; padding: 0 3.25rem; }
.reviews-track { position: relative; }

.reviews-slide {
  display: none;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  opacity: 0;
  animation: reviews-fade-in 0.5s ease forwards;
}
.reviews-slide.is-active { display: grid; }

@keyframes reviews-fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

.review-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.85rem;
  border: 1px solid rgba(0,0,0,0.06);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  position: relative;
  overflow: hidden;
}
.review-card::before {
  content: '\201C';
  font-family: var(--font-serif);
  font-size: 6rem;
  line-height: 1;
  color: var(--accent-tint);
  position: absolute;
  top: -0.25rem;
  left: 1rem;
  pointer-events: none;
  user-select: none;
}
.review-quote {
  color: var(--text-secondary);
  font-style: italic;
  line-height: 1.7;
  flex: 1;
  padding-top: 1.75rem;
}
.review-footer { display: flex; align-items: center; gap: 0.75rem; flex-wrap: wrap; }
.review-stars { color: var(--accent); letter-spacing: 2px; font-size: 0.85rem; }
.review-author { font-size: 0.85rem; font-weight: 600; color: var(--text-primary); }

.reviews-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 50%;
  border: 1px solid rgba(0,0,0,0.08);
  background: var(--white);
  box-shadow: var(--shadow-sm);
  color: var(--text-primary);
  font-size: 1.5rem;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}
.reviews-arrow:hover { background: var(--accent); color: var(--white); }
.reviews-arrow--prev { left: 0; }
.reviews-arrow--next { right: 0; }

.reviews-dots {
  display: flex;
  justify-content: center;
  gap: 0.6rem;
  margin-top: 2rem;
}
.reviews-dot {
  width: 0.6rem;
  height: 0.6rem;
  border-radius: 50%;
  border: none;
  padding: 0;
  background: var(--accent-tint);
  cursor: pointer;
  transition: background 0.15s ease, transform 0.15s ease;
}
.reviews-dot:hover { transform: scale(1.15); }
.reviews-dot.is-active { background: var(--accent); }

@media (max-width: 768px) {
  .reviews-slide { grid-template-columns: 1fr; }
  .reviews-carousel { padding: 0 2.75rem; }
  .reviews-arrow { width: 2.25rem; height: 2.25rem; font-size: 1.25rem; }
}

/* ─── Contact ─── */
#contact { background: var(--white); }
.contact-inner {
  display: grid;
  grid-template-columns: 1fr 260px;
  gap: 4rem;
  align-items: start;
}
.contact-form-wrap { display: flex; flex-direction: column; gap: 1.5rem; }
.form-group { display: flex; flex-direction: column; gap: 0.4rem; }
.form-group label { font-size: 0.875rem; font-weight: 600; letter-spacing: 0.01em; color: var(--text-primary); }
.optional { font-weight: 400; color: var(--text-secondary); }
.form-group input,
.form-group textarea {
  padding: 0.75rem 1rem;
  border: 1.5px solid #cec9c3;
  border-radius: var(--radius-sm);
  font-family: var(--font-sans);
  font-size: 1rem;
  background: var(--bg);
  color: var(--text-primary);
  transition: border-color 0.15s, box-shadow 0.15s;
}
.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(192,96,58,0.12);
}
.form-group textarea { resize: vertical; }
.form-success-msg {
  background: #e8f5e9;
  border: 1px solid #a5d6a7;
  border-radius: var(--radius-sm);
  padding: 1rem 1.25rem;
  color: #2e7d32;
  font-weight: 600;
  max-width: none;
}
.form-error-msg {
  background: #fce4ec;
  border: 1px solid #f48fb1;
  border-radius: var(--radius-sm);
  padding: 1rem 1.25rem;
  color: #c62828;
  max-width: none;
}
.form-error-msg a { color: var(--accent); text-decoration: underline; }
.contact-details {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding-top: 4rem;
}
.contact-details h3 { margin-bottom: 0.25rem; }
.contact-phone { font-size: 1.5rem; font-weight: 700; color: var(--accent); display: block; }
.contact-email { font-size: 0.95rem; color: var(--text-secondary); display: block; }
.contact-area { font-size: 0.85rem; color: var(--text-secondary); margin-top: 0.5rem; max-width: none; }

@media (max-width: 768px) {
  .contact-inner { grid-template-columns: 1fr; }
  .contact-details { padding-top: 0; }
}

/* ─── Footer ─── */
#site-footer {
  background: var(--bg-dark);
  color: rgba(255,255,255,0.62);
  padding: 3.5rem 1.5rem;
  border-top: 3px solid var(--accent);
}
.footer-inner { display: flex; flex-direction: column; gap: 1.25rem; }
.footer-brand { display: flex; flex-direction: column; gap: 0.3rem; }
.footer-name {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  letter-spacing: -0.01em;
  color: var(--white);
  font-weight: bold;
}
.footer-tagline { font-size: 0.82rem; letter-spacing: 0.01em; max-width: none; }
.footer-contact { display: flex; flex-direction: column; gap: 0.35rem; }
.footer-contact a { font-size: 0.95rem; color: rgba(255,255,255,0.78); transition: color 0.15s; }
.footer-contact a:hover { color: var(--white); }
.footer-copy { font-size: 0.78rem; margin-top: 0.5rem; max-width: none; color: rgba(255,255,255,0.35); }

/* ─── Sticky Mobile Call Bar ─── */
#mobile-call-bar {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 200;
  background: var(--accent);
  box-shadow: 0 -3px 14px rgba(0,0,0,0.18);
}
.mobile-call-link {
  display: block;
  width: 100%;
  padding: 1rem;
  text-align: center;
  color: var(--white);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.01em;
}

@media (max-width: 768px) {
  #mobile-call-bar { display: block; }
  body { padding-bottom: 64px; }
  #hero { padding: 5rem 1.25rem 4rem; }
  section { padding: 3.5rem 1.25rem; }
}

/* ─── Reviews link placeholder ─── */
.reviews-link-text { color: var(--text-secondary); font-style: italic; font-size: 0.9rem; }

/* ─── Inner-page hero (service/about/areas/contact/case-studies pages) ─── */
.page-hero { background: var(--white); padding: 7.5rem 1.5rem 4.5rem; }
.page-hero-inner { max-width: 74ch; }
.page-eyebrow {
  display: block;
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.85rem;
}
.page-hero h1 { font-size: clamp(2.1rem, 4.5vw, 3.25rem); margin-bottom: 1.1rem; }
.page-hero .hero-sub { margin-bottom: 1.75rem; }

.page-hero-inner.has-photo {
  max-width: var(--max-width);
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 3rem;
  align-items: center;
}
.page-hero-photo img {
  width: 100%;
  aspect-ratio: 4/5;
  object-fit: cover;
  border-radius: 12px;
  display: block;
}

@media (max-width: 768px) {
  .page-hero { padding: 5.5rem 1.25rem 3rem; }
  .page-hero-inner.has-photo { grid-template-columns: 1fr; }
  .page-hero-photo { order: -1; max-width: 220px; margin: 0 auto 1.5rem; }
}

/* ─── CTA band ─── */
.cta-band { background: var(--bg-dark); padding: 2.25rem 1.5rem; }
.cta-band-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
}
.cta-band p { color: rgba(255,255,255,0.82); max-width: 46ch; margin: 0; }
.cta-band-ctas { display: flex; gap: 0.85rem; flex-wrap: wrap; flex-shrink: 0; }
.cta-band .btn-secondary { color: var(--white); border-color: rgba(255,255,255,0.4); }
.cta-band .btn-secondary:hover, .cta-band .btn-secondary:focus { background: var(--white); color: var(--bg-dark); border-color: var(--white); }

@media (max-width: 600px) {
  .cta-band-inner { justify-content: center; text-align: center; }
}

/* ─── Numbered process list ─── */
.process-list { counter-reset: step; display: flex; flex-direction: column; gap: 1.35rem; margin-top: 1.5rem; max-width: 68ch; }
.process-list li { display: flex; gap: 1rem; align-items: flex-start; }
.process-list li::before {
  counter-increment: step;
  content: counter(step);
  flex-shrink: 0;
  width: 2.1rem;
  height: 2.1rem;
  border-radius: 50%;
  background: var(--accent-tint);
  color: var(--accent);
  font-weight: 700;
  font-family: var(--font-sans);
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  justify-content: center;
}
.process-list p { margin: 0; }
.process-list strong { color: var(--text-primary); display: block; margin-bottom: 0.2rem; }

/* ─── Benefit checklist ─── */
.benefits-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.9rem 1.5rem; margin-top: 1.5rem; max-width: 68ch; }
.benefits-list li { display: flex; gap: 0.65rem; align-items: flex-start; color: var(--text-secondary); }
.benefits-list li::before { content: '\2713'; color: var(--accent); font-weight: 700; flex-shrink: 0; }

@media (max-width: 600px) { .benefits-list { grid-template-columns: 1fr; } }

/* ─── FAQ block ─── */
.faq-block { display: flex; flex-direction: column; gap: 1.6rem; margin-top: 1.5rem; max-width: 68ch; }
.faq-item h3 { margin-bottom: 0.4rem; }

/* ─── Case study / gallery cards with captions ─── */
.case-study-card figcaption { padding: 0.85rem 0.1rem 0; font-size: 0.85rem; color: var(--text-secondary); }
.case-study-card figcaption strong { color: var(--text-primary); display: block; font-size: 0.92rem; margin-bottom: 0.15rem; }

/* ─── Areas list ─── */
.areas-note {
  background: var(--accent-tint);
  border: 1px solid rgba(192,96,58,0.18);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  margin-top: 2rem;
  max-width: 68ch;
}
.areas-note p { margin: 0; }

/* ─── Footer sitemap ─── */
.footer-sitemap { display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; }
.footer-sitemap a { font-size: 0.82rem; color: rgba(255,255,255,0.62); transition: color 0.15s; }
.footer-sitemap a:hover { color: var(--white); }
