/* ============================================================
   Brighton Locker — Main Stylesheet
   Bright & clean aesthetic. Crimson accent. Strong typography.
   ============================================================ */

/* ── Google Fonts ─────────────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@700;900&family=Inter:wght@400;500;600&display=swap');

/* ── CSS Variables ────────────────────────────────────────── */
:root {
  --bg:          #FFFFFF;
  --bg-off:      #F7F4F0;      /* warm off-white for section alternation */
  --bg-dark:     #1A1A1A;      /* footer, dark sections */
  --accent:      #8B1A1A;      /* deep crimson — primary brand accent */
  --accent-hover:#6d1414;      /* darker on hover */
  --accent-light:#f9f0f0;      /* very light tint for callout backgrounds */
  --text:        #1A1A1A;      /* near-black body text */
  --text-muted:  #6B6460;      /* secondary/caption text */
  --text-light:  #F7F4F0;      /* text on dark backgrounds */
  --border:      #E2DDD8;      /* subtle warm border */
  --border-dark: #333333;      /* border on dark backgrounds */

  --font-heading: 'Playfair Display', Georgia, serif;
  --font-body:    'Inter', system-ui, sans-serif;

  --radius:      6px;
  --radius-lg:   12px;
  --shadow:      0 2px 12px rgba(0,0,0,0.08);
  --shadow-md:   0 4px 24px rgba(0,0,0,0.12);

  --max-width:   1160px;
  --nav-height:  80px;
}

/* ── Reset ────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }

/* ── Typography ───────────────────────────────────────────── */
h1, h2, h3, h4 {
  font-family: var(--font-heading);
  line-height: 1.15;
  color: var(--text);
}
h1 { font-size: clamp(2.4rem, 5vw, 3.8rem); }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.6rem); }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.5rem); }
h4 { font-size: 1.1rem; }

p { margin-bottom: 1rem; }
p:last-child { margin-bottom: 0; }

.eyebrow {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.75rem;
  display: block;
}

/* ── Layout Utilities ─────────────────────────────────────── */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin-inline: auto;
  padding-inline: 1.5rem;
}

.section {
  padding-block: 5rem;
}
.section--off {
  background: var(--bg-off);
}
.section--dark {
  background: var(--bg-dark);
  color: var(--text-light);
}
.section--dark h1,
.section--dark h2,
.section--dark h3 { color: var(--text-light); }

.section-header {
  margin-bottom: 3rem;
}
.section-header--center {
  text-align: center;
}
.section-header p {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 56ch;
}
.section-header--center p {
  margin-inline: auto;
}

/* ── Buttons ──────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.8rem 1.75rem;
  border-radius: var(--radius);
  font-size: 0.95rem;
  font-weight: 600;
  font-family: var(--font-body);
  transition: background 0.18s, color 0.18s, transform 0.12s, box-shadow 0.18s;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }

.btn-primary {
  background: var(--accent);
  color: #fff;
}
.btn-primary:hover {
  background: var(--accent-hover);
  box-shadow: 0 4px 16px rgba(139,26,26,0.28);
}

.btn-outline {
  background: transparent;
  color: var(--accent);
  border: 2px solid var(--accent);
}
.btn-outline:hover {
  background: var(--accent);
  color: #fff;
}

.btn-outline-light {
  background: transparent;
  color: #fff;
  border: 2px solid rgba(255,255,255,0.7);
}
.btn-outline-light:hover {
  background: rgba(255,255,255,0.12);
  border-color: #fff;
}

.btn-lg {
  padding: 1rem 2.25rem;
  font-size: 1rem;
}

/* ── Navigation ───────────────────────────────────────────── */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  height: 130px;
  box-shadow: 0 1px 8px rgba(0,0,0,0.06);
  transition: height 0.35s ease;
}
.site-nav.scrolled {
  height: var(--nav-height);
}

.nav-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.nav-logo {
  flex-shrink: 0;
  height: 112px;
  transition: height 0.35s ease;
}
.site-nav.scrolled .nav-logo {
  height: 56px;
}
.nav-logo img {
  height: 100%;
  width: auto;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  flex: 1;
  justify-content: center;
}
.nav-links a {
  padding: 0.45rem 0.9rem;
  border-radius: var(--radius);
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text);
  transition: color 0.15s, background 0.15s;
}
.nav-links a:hover,
.nav-links a.active {
  color: var(--accent);
  background: var(--accent-light);
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-shrink: 0;
}
.nav-phone {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
.nav-phone svg { color: var(--accent); }
.nav-phone:hover { color: var(--accent); }

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  border-radius: var(--radius);
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.25s, opacity 0.25s;
}

/* Mobile nav drawer — hidden by default, shown only at mobile via media query */
.nav-mobile { display: none; }

/* ── Hero ─────────────────────────────────────────────────── */
.hero {
  padding-block: 6rem 5rem;
  background: var(--bg-off);
  border-bottom: 1px solid var(--border);
  position: relative;
}
/* Subtle texture overlay */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%231A1A1A' fill-opacity='0.025'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  position: relative;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--accent-light);
  color: var(--accent);
  border: 1px solid rgba(139,26,26,0.15);
  border-radius: 100px;
  padding: 0.35rem 1rem;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
}

.hero-content h1 {
  margin-bottom: 1.25rem;
  color: var(--text);
}
.hero-content h1 em {
  font-style: italic;
  color: var(--accent);
}
.hero-content p {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 46ch;
  margin-bottom: 2rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
}
.hero-phone-note {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-top: 1rem;
}
.hero-phone-note a {
  color: var(--accent);
  font-weight: 600;
}
.hero-phone-note a:hover { text-decoration: underline; }

.hero-graphic {
  display: flex;
  justify-content: center;
  align-items: center;
}
.hero-logo-display {
  width: 100%;
  max-width: 380px;
  opacity: 0.88;
}

/* ── Stats Bar ────────────────────────────────────────────── */
.stats-bar {
  background: var(--accent);
  padding-block: 2rem;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  text-align: center;
}
.stat-item {}
.stat-number {
  font-family: var(--font-heading);
  font-size: 2.2rem;
  font-weight: 900;
  color: #fff;
  line-height: 1;
}
.stat-label {
  font-size: 0.82rem;
  font-weight: 500;
  color: rgba(255,255,255,0.78);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-top: 0.35rem;
}

/* ── Service Cards ────────────────────────────────────────── */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.service-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  transition: box-shadow 0.2s, transform 0.2s, border-color 0.2s;
  display: flex;
  flex-direction: column;
}
.service-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
  border-color: var(--accent);
}

.service-icon {
  width: 52px;
  height: 52px;
  background: var(--accent-light);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  color: var(--accent);
}
.service-card h3 {
  margin-bottom: 0.75rem;
  font-size: 1.2rem;
}
.service-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
  flex: 1;
}
.service-card .card-link {
  margin-top: 1.25rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--accent);
  display: flex;
  align-items: center;
  gap: 0.35rem;
  transition: gap 0.15s;
}
.service-card:hover .card-link { gap: 0.6rem; }

/* ── Why Brighton ─────────────────────────────────────────── */
.why-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

.why-item {
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
}
.why-icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  background: var(--accent-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  margin-top: 0.2rem;
}
.why-item h4 {
  margin-bottom: 0.35rem;
  font-family: var(--font-heading);
  font-size: 1.05rem;
}
.why-item p {
  font-size: 0.93rem;
  color: var(--text-muted);
}

/* ── Testimonials ─────────────────────────────────────────── */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.testimonial-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
}
.testimonial-stars {
  color: var(--accent);
  font-size: 1rem;
  letter-spacing: 2px;
  margin-bottom: 0.75rem;
}
.testimonial-card blockquote {
  font-size: 0.95rem;
  color: var(--text);
  line-height: 1.6;
  margin-bottom: 1.25rem;
  font-style: italic;
}
.testimonial-author {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* ── CTA Banner ───────────────────────────────────────────── */
.cta-banner {
  background: var(--bg-dark);
  padding-block: 4rem;
  text-align: center;
}
.cta-banner h2 {
  color: #fff;
  margin-bottom: 0.75rem;
}
.cta-banner p {
  color: rgba(255,255,255,0.7);
  font-size: 1.05rem;
  margin-bottom: 2rem;
}
.cta-actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1rem;
}
.cta-phone-big {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--accent);
  display: block;
  margin-bottom: 1.5rem;
  letter-spacing: 0.02em;
}
.cta-phone-big a { color: inherit; transition: opacity 0.15s; }
.cta-phone-big a:hover { opacity: 0.8; }

/* CTA banner with photo background */
.cta-banner--photo {
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}
.cta-banner--photo .cta-phone-big { color: #e87070; }
.cta-banner--photo .cta-phone-big a { color: inherit; }

/* ── Footer ───────────────────────────────────────────────── */
.site-footer {
  background: var(--bg-dark);
  color: var(--text-light);
  padding-block: 3.5rem 2rem;
  border-top: 3px solid var(--accent);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 3rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid var(--border-dark);
  margin-bottom: 2rem;
}

.footer-brand {}
.footer-logo {
  height: 70px;
  width: auto;
  filter: brightness(0) invert(1);  /* invert to white on dark bg */
  margin-bottom: 1rem;
}
.footer-tagline {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.55);
  max-width: 28ch;
  line-height: 1.55;
}

.footer-col h5 {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.45);
  margin-bottom: 1rem;
}
.footer-col ul li + li { margin-top: 0.5rem; }
.footer-col ul a {
  font-size: 0.92rem;
  color: rgba(255,255,255,0.72);
  transition: color 0.15s;
}
.footer-col ul a:hover { color: #fff; }

.footer-hours dt {
  font-size: 0.85rem;
  font-weight: 600;
  color: rgba(255,255,255,0.55);
}
.footer-hours dd {
  font-size: 0.92rem;
  color: rgba(255,255,255,0.72);
  margin-bottom: 0.35rem;
}

.footer-contact-line {
  font-size: 0.92rem;
  color: rgba(255,255,255,0.72);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}
.footer-contact-line a:hover { color: #fff; }
.footer-contact-line svg { color: var(--accent); flex-shrink: 0; }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}
.footer-copy {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.35);
}

/* ── Hero photo variant ───────────────────────────────────── */
.hero--photo {
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  border-bottom-color: transparent;
}
.hero--photo::before { display: none; }
.hero--photo .eyebrow { color: #e87070; }
.hero--photo .hero-content h1 { color: #fff; }
.hero--photo .hero-content h1 em { color: #e87070; }
.hero--photo .hero-content p,
.hero--photo .hero-phone-note { color: rgba(255,255,255,0.75); }
.hero--photo .hero-phone-note a { color: #e87070; }

/* ── Page Hero (interior pages) ───────────────────────────── */
.page-hero {
  background: var(--bg-off);
  border-bottom: 1px solid var(--border);
  padding-block: 3.5rem 3rem;
}
.page-hero .eyebrow { margin-bottom: 0.5rem; }
.page-hero h1 { margin-bottom: 0.75rem; }
.page-hero p {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 56ch;
}

/* ── Forms ────────────────────────────────────────────────── */
.form-group {
  margin-bottom: 1.25rem;
}
.form-group label {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
  color: var(--text);
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--text);
  background: var(--bg);
  transition: border-color 0.15s, box-shadow 0.15s;
  appearance: none;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(139,26,26,0.1);
}
.form-group textarea { resize: vertical; min-height: 130px; }

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

/* ── Utility ──────────────────────────────────────────────── */
.text-center { text-align: center; }
.text-muted { color: var(--text-muted); }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.flex { display: flex; }
.gap-1 { gap: 0.5rem; }
.gap-2 { gap: 1rem; }
.items-center { align-items: center; }
.divider {
  border: none;
  border-top: 1px solid var(--border);
  margin-block: 2rem;
}

/* ── Responsive ───────────────────────────────────────────── */
@media (max-width: 1024px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-graphic { display: none; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .testimonials-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 768px) {
  :root { --nav-height: 68px; }
  /* No oversized logo on mobile — keep nav compact */
  .site-nav { height: var(--nav-height); }
  .nav-logo { height: 44px; }

  .nav-links,
  .nav-phone { display: none; }

  .nav-toggle { display: flex; }

  /* Mobile nav drawer */
  .nav-mobile {
    display: none;
    position: absolute;
    top: var(--nav-height);
    left: 0; right: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    padding: 1rem 1.5rem 1.5rem;
    box-shadow: 0 8px 24px rgba(0,0,0,0.1);
    flex-direction: column;
    gap: 0.25rem;
  }
  .nav-mobile.open { display: flex; }
  .nav-mobile a {
    padding: 0.65rem 0.75rem;
    border-radius: var(--radius);
    font-weight: 500;
    font-size: 1rem;
    color: var(--text);
    transition: background 0.15s;
  }
  .nav-mobile a:hover { background: var(--bg-off); }
  .nav-mobile .mob-phone {
    margin-top: 0.75rem;
    padding-top: 0.75rem;
    border-top: 1px solid var(--border);
    font-weight: 600;
    color: var(--accent);
    display: flex;
    align-items: center;
    gap: 0.5rem;
  }

  .hero { padding-block: 4rem 3.5rem; }
  .hero-content p { max-width: 100%; }

  .services-grid { grid-template-columns: 1fr; }
  .why-grid { grid-template-columns: 1fr; }
  .testimonials-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }

  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }

  .form-row { grid-template-columns: 1fr; }
}
