/* ═══════════════════════════════════════
   Waltham Gutters — Global Stylesheet
   ═══════════════════════════════════════ */
:root {
  --midnight:  #1B2838;
  --copper:    #C17F3E;
  --copper-dk: #A86B30;
  --stone:     #F5F0EB;
  --slate:     #5B7B9A;
  --charcoal:  #2E2E2E;
  --white:     #FFFFFF;
  --font-head: 'DM Serif Display', Georgia, serif;
  --font-body: 'Plus Jakarta Sans', system-ui, sans-serif;
  --max-w:     1200px;
  --nav-h:     72px;
  --radius:    6px;
  --shadow:    0 2px 12px rgba(27,40,56,0.08);
  --shadow-lg: 0 8px 24px rgba(27,40,56,0.12);
}

/* Reset */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--font-body); font-size: 16px; line-height: 1.7; color: var(--charcoal); background: var(--white); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { font-family: var(--font-head); font-weight: 400; color: var(--midnight); line-height: 1.2; }
h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.6rem); }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.5rem); }
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 24px; }

/* ═══ NAV ═══ */
.nav { position: fixed; will-change: box-shadow; top: 0; left: 0; right: 0; z-index: 1000; background: var(--midnight); height: var(--nav-h); transition: box-shadow 0.3s ease; }
.nav.scrolled { box-shadow: 0 2px 20px rgba(0,0,0,0.3); }
.nav-inner { max-width: var(--max-w); margin: 0 auto; padding: 0 24px; display: flex; align-items: center; justify-content: space-between; height: 100%; }
.nav-logo { display: flex; flex-direction: column; align-items: flex-start; line-height: 1; }
.nav-logo-main { font-family: var(--font-head); font-size: 1.4rem; color: var(--white); letter-spacing: 0.5px; }
.nav-logo-accent { width: 36px; height: 2px; background: var(--copper); margin-top: 3px; }
.nav-links { display: flex; align-items: center; gap: 28px; list-style: none; }
.nav-links a { font-size: 0.85rem; font-weight: 400; color: rgba(255,255,255,0.8); letter-spacing: 0.3px; transition: color 0.2s; text-transform: uppercase; }
.nav-links a:hover { color: var(--copper); }
.nav-phone { font-size: 0.95rem; font-weight: 700; color: var(--white); display: flex; align-items: center; gap: 6px; }
.nav-phone svg { width: 16px; height: 16px; fill: var(--copper); }
.nav-cta { background: var(--copper); color: var(--white); padding: 10px 24px; border-radius: var(--radius); font-weight: 600; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.5px; transition: background 0.3s; white-space: nowrap; }
.nav-cta:hover { background: var(--copper-dk); }
.nav-right { display: flex; align-items: center; gap: 20px; }
.hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; padding: 8px; background: none; border: none; }
.hamburger span { display: block; width: 24px; height: 2px; background: var(--white); transition: 0.3s; }
.hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }
.mobile-menu { position: fixed; top: var(--nav-h); left: 0; right: 0; bottom: 0; background: var(--midnight); z-index: 999; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 32px; transform: translateX(100%); transition: transform 0.35s ease; }
.mobile-menu.open { transform: translateX(0); }
.mobile-menu a { font-size: 1.3rem; color: var(--white); font-weight: 400; text-transform: uppercase; letter-spacing: 1px; }
.mobile-menu a:hover { color: var(--copper); }

/* ═══ HERO (Homepage) ═══ */
.hero { position: relative; min-height: 92vh; display: flex; align-items: center; background: var(--midnight); overflow: hidden; padding-top: var(--nav-h); }
.hero-bg { position: absolute; inset: 0; background-size: cover; background-position: center; opacity: 0.25; }
.hero-gradient { position: absolute; inset: 0; background: linear-gradient(135deg, rgba(27,40,56,0.95) 0%, rgba(27,40,56,0.7) 50%, rgba(91,123,154,0.4) 100%); }
.hero-content { position: relative; z-index: 2; max-width: var(--max-w); margin: 0 auto; padding: 60px 24px; }
.hero-badge { display: inline-flex; align-items: center; gap: 8px; background: rgba(193,127,62,0.15); border: 1px solid rgba(193,127,62,0.3); padding: 6px 16px; border-radius: 50px; font-size: 0.8rem; font-weight: 600; color: var(--copper); text-transform: uppercase; letter-spacing: 1px; margin-bottom: 24px; }
.hero-badge::before { content: ''; width: 6px; height: 6px; background: var(--copper); border-radius: 50%; animation: pulse 2s infinite; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.4; } }
.hero h1 { color: var(--white); max-width: 700px; margin-bottom: 20px; }
.hero h1 span { color: var(--copper); }
.hero-sub { font-size: clamp(1rem, 2vw, 1.2rem); color: rgba(255,255,255,0.75); max-width: 540px; margin-bottom: 36px; line-height: 1.7; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; }
.hero-stats { display: flex; gap: 40px; margin-top: 50px; padding-top: 30px; border-top: 1px solid rgba(255,255,255,0.1); }
.hero-stat-num { font-family: var(--font-head); font-size: 2rem; color: var(--copper); }
.hero-stat-label { font-size: 0.8rem; color: rgba(255,255,255,0.5); text-transform: uppercase; letter-spacing: 1px; }

/* ═══ BUTTONS ═══ */
.btn-primary { background: var(--copper); color: var(--white); padding: 16px 36px; border-radius: var(--radius); font-family: var(--font-body); font-weight: 600; font-size: 1rem; text-transform: uppercase; letter-spacing: 0.5px; border: none; cursor: pointer; transition: all 0.3s; display: inline-flex; align-items: center; gap: 8px; }
.btn-primary:hover { background: var(--copper-dk); transform: translateY(-2px); box-shadow: 0 6px 20px rgba(193,127,62,0.4); }
.btn-primary svg { width: 18px; height: 18px; fill: currentColor; }
.btn-outline { background: transparent; color: var(--white); padding: 16px 36px; border-radius: var(--radius); font-family: var(--font-body); font-weight: 600; font-size: 1rem; border: 2px solid rgba(255,255,255,0.3); cursor: pointer; transition: all 0.3s; display: inline-flex; align-items: center; gap: 8px; }
.btn-outline:hover { border-color: var(--white); background: rgba(255,255,255,0.05); }
.btn-block { width: 100%; justify-content: center; }
.btn-lg { font-size: 1.15rem; padding: 18px 44px; }

/* ═══ TRUST BAR ═══ */
.trust-bar { background: var(--midnight); border-top: 1px solid rgba(91,123,154,0.2); padding: 28px 0; }
.trust-items { display: flex; justify-content: center; flex-wrap: wrap; gap: 32px; }
.trust-item { display: flex; align-items: center; gap: 10px; color: rgba(255,255,255,0.85); font-size: 0.85rem; font-weight: 400; }
.trust-icon { width: 36px; height: 36px; border-radius: 50%; background: rgba(193,127,62,0.15); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.trust-icon svg { width: 18px; height: 18px; fill: var(--copper); }

/* ═══ SECTIONS ═══ */
section { padding: 80px 0; }
.section-stone { background: var(--stone); }
.section-dark { background: var(--midnight); }
.section-header { text-align: center; margin-bottom: 48px; }
.section-header p { color: var(--slate); max-width: 600px; margin: 12px auto 0; font-size: 1.05rem; }
.section-label { font-size: 0.8rem; font-weight: 600; color: var(--copper); text-transform: uppercase; letter-spacing: 2px; margin-bottom: 8px; }

/* ═══ SERVICE CARDS ═══ */
.services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 24px; }
.service-card { background: var(--white); border-radius: var(--radius); padding: 36px 28px; box-shadow: var(--shadow); border: 1px solid rgba(27,40,56,0.05); transition: all 0.3s; position: relative; overflow: hidden; }
.service-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.service-card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: var(--copper); transform: scaleX(0); transition: transform 0.3s; transform-origin: left; }
.service-card:hover::before { transform: scaleX(1); }
.service-icon { width: 48px; height: 48px; border-radius: var(--radius); background: rgba(193,127,62,0.1); display: flex; align-items: center; justify-content: center; margin-bottom: 20px; }
.service-icon svg { width: 24px; height: 24px; fill: var(--copper); }
.service-card h3 { margin-bottom: 10px; }
.service-card p { font-size: 0.9rem; color: var(--slate); line-height: 1.65; }
.card-link { display: inline-flex; align-items: center; gap: 4px; margin-top: 16px; font-size: 0.85rem; font-weight: 600; color: var(--copper); text-transform: uppercase; letter-spacing: 0.5px; transition: gap 0.2s; }
.card-link:hover { gap: 8px; }

/* ═══ WHY SECTION ═══ */
.why-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.why-image { border-radius: var(--radius); overflow: hidden; aspect-ratio: 4/3; background-size: cover; background-position: center; box-shadow: var(--shadow-lg); }
.why-list { display: flex; flex-direction: column; gap: 28px; }
.why-item { display: flex; gap: 16px; }
.why-num { font-family: var(--font-head); font-size: 2rem; color: var(--copper); line-height: 1; min-width: 40px; }
.why-item h3 { margin-bottom: 4px; font-size: 1.15rem; }
.why-item p { font-size: 0.9rem; color: var(--slate); }

/* ═══ AREA CARDS ═══ */
.areas-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 16px; }
.area-card { background: var(--white); border-radius: var(--radius); padding: 24px; text-align: center; border: 1px solid rgba(27,40,56,0.06); transition: all 0.3s; cursor: pointer; display: block; }
.area-card:hover { border-color: var(--copper); transform: translateY(-2px); box-shadow: var(--shadow); }
.area-card h3 { font-size: 1.1rem; margin-bottom: 4px; }
.area-card span { font-size: 0.8rem; color: var(--slate); }
.area-card.primary { background: var(--midnight); border-color: transparent; }
.area-card.primary h3 { color: var(--white); }
.area-card.primary span { color: var(--copper); }
.areas-grid-lg { display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); gap: 24px; }
.area-card-lg { background: var(--white); border-radius: var(--radius); padding: 32px; border: 1px solid rgba(27,40,56,0.06); transition: all 0.3s; display: block; }
.area-card-lg:hover { border-color: var(--copper); transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.area-card-lg h3 { margin-bottom: 8px; }
.area-card-lg p { font-size: 0.9rem; color: var(--slate); margin-bottom: 12px; }
.area-card-lg.primary { background: var(--midnight); border-color: transparent; }
.area-card-lg.primary h3 { color: var(--white); }
.area-card-lg.primary p { color: rgba(255,255,255,0.6); }
.area-card-lg.primary .card-link { color: var(--copper); }

/* ═══ TESTIMONIALS ═══ */
.testimonials-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); gap: 24px; }
.testimonial { background: rgba(255,255,255,0.05); border-radius: var(--radius); padding: 32px; border: 1px solid rgba(91,123,154,0.15); }
.testimonial-stars { color: var(--copper); font-size: 1.2rem; margin-bottom: 16px; letter-spacing: 2px; }
.testimonial p { color: rgba(255,255,255,0.8); font-size: 0.95rem; font-style: italic; line-height: 1.7; }
.testimonial-author { margin-top: 20px; padding-top: 16px; border-top: 1px solid rgba(91,123,154,0.15); display: flex; align-items: center; gap: 12px; }
.testimonial-avatar { width: 40px; height: 40px; border-radius: 50%; background: var(--copper); display: flex; align-items: center; justify-content: center; font-weight: 700; color: var(--white); font-size: 0.85rem; flex-shrink: 0; }
.testimonial-name { color: var(--white); font-weight: 600; font-size: 0.9rem; }
.testimonial-loc { color: var(--slate); font-size: 0.8rem; }

/* ═══ CTA BANNER ═══ */
.cta-banner { padding: 80px 0; background: linear-gradient(135deg, var(--midnight) 0%, #243447 100%); text-align: center; position: relative; overflow: hidden; }
.cta-banner::before { content: ''; position: absolute; top: -50%; right: -10%; width: 500px; height: 500px; border-radius: 50%; background: rgba(193,127,62,0.06); }
.cta-banner h2 { color: var(--white); margin-bottom: 12px; position: relative; }
.cta-banner p { color: rgba(255,255,255,0.7); margin-bottom: 32px; font-size: 1.1rem; position: relative; }
.cta-banner .btn-primary { font-size: 1.1rem; padding: 18px 44px; position: relative; }
.cta-phone { margin-top: 16px; font-size: 1.3rem; font-weight: 700; color: var(--copper); position: relative; }
.cta-phone a { color: var(--copper); }
.cta-phone a:hover { text-decoration: underline; }

/* ═══ PAGE HERO (Inner Pages) ═══ */
.page-hero { position: relative; padding: 140px 0 60px; background: var(--midnight); background-size: cover; background-position: center; min-height: 340px; display: flex; align-items: flex-end; }
.page-hero-short { min-height: 240px; padding: 120px 0 40px; }
.page-hero-overlay { position: absolute; inset: 0; background: linear-gradient(135deg, rgba(27,40,56,0.92) 0%, rgba(27,40,56,0.8) 100%); }
.page-hero-content { position: relative; z-index: 2; }
.page-hero-content h1 { color: var(--white); margin-bottom: 12px; }
.page-hero-sub { color: rgba(255,255,255,0.7); font-size: 1.1rem; max-width: 600px; margin-bottom: 24px; }

/* ═══ BREADCRUMBS ═══ */
.breadcrumbs { margin-bottom: 16px; font-size: 0.8rem; }
.breadcrumbs a { color: var(--copper); transition: opacity 0.2s; }
.breadcrumbs a:hover { opacity: 0.8; }
.breadcrumb-current { color: rgba(255,255,255,0.5); }

/* ═══ CONTENT LAYOUT ═══ */
.content-section { padding: 60px 0; }
.content-wrapper { display: grid; grid-template-columns: 1fr 340px; gap: 48px; }
.content-main { min-width: 0; }
.content-block { margin-bottom: 40px; }
.content-block h2 { margin-bottom: 16px; font-size: clamp(1.5rem, 3vw, 2rem); }
.content-block p { margin-bottom: 12px; line-height: 1.8; }
.content-block strong { color: var(--midnight); }
.lead { font-size: 1.1rem; color: var(--midnight); line-height: 1.8; }
.pricing-block { background: var(--stone); padding: 32px; border-radius: var(--radius); border-left: 4px solid var(--copper); }

/* ═══ SIDEBAR ═══ */
.content-sidebar { position: sticky; top: calc(var(--nav-h) + 24px); align-self: start; }
.sidebar-cta { background: var(--midnight); color: var(--white); padding: 32px; border-radius: var(--radius); margin-bottom: 24px; }
.sidebar-cta h3 { color: var(--white); margin-bottom: 8px; }
.sidebar-cta p { color: rgba(255,255,255,0.7); font-size: 0.9rem; margin-bottom: 20px; }
.sidebar-services, .sidebar-areas { background: var(--stone); padding: 24px; border-radius: var(--radius); margin-bottom: 24px; }
.sidebar-services h4, .sidebar-areas h4 { font-family: var(--font-body); font-weight: 600; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 1px; color: var(--midnight); margin-bottom: 12px; }
.sidebar-services ul, .sidebar-areas ul { list-style: none; }
.sidebar-services li, .sidebar-areas li { margin-bottom: 8px; }
.sidebar-services a, .sidebar-areas a { font-size: 0.9rem; color: var(--charcoal); transition: color 0.2s; }
.sidebar-services a:hover, .sidebar-areas a:hover { color: var(--copper); }

/* ═══ FAQ ═══ */
.faq-section { margin-top: 48px; }
.faq-section h2 { margin-bottom: 24px; }
.faq-item { margin-bottom: 20px; padding-bottom: 20px; border-bottom: 1px solid rgba(27,40,56,0.08); }
.faq-q { font-size: 1.1rem; margin-bottom: 8px; cursor: pointer; }
.faq-a { color: var(--slate); font-size: 0.95rem; line-height: 1.7; }

/* ═══ RELATED GRID ═══ */
.related-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; }
.related-card { background: var(--white); border-radius: var(--radius); padding: 32px; border: 1px solid rgba(27,40,56,0.06); transition: all 0.3s; display: block; text-align: center; }
.related-card:hover { border-color: var(--copper); transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.related-card .service-icon { margin: 0 auto 16px; }

/* ═══ STAT GRID ═══ */
.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 16px; margin-top: 16px; }
.stat-card { background: var(--stone); padding: 24px; border-radius: var(--radius); text-align: center; }
.stat-num { font-family: var(--font-head); font-size: 1.8rem; color: var(--copper); }
.stat-label { font-size: 0.85rem; color: var(--slate); margin-top: 4px; }

/* ═══ CONTACT ═══ */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; }
.contact-main h2 { margin-bottom: 16px; }
.contact-details { margin-top: 32px; }
.contact-item { margin-bottom: 24px; }
.contact-item h3 { font-size: 1.1rem; margin-bottom: 6px; }
.contact-item p { color: var(--slate); font-size: 0.95rem; }
.map-placeholder { background: var(--stone); border-radius: var(--radius); height: 400px; display: flex; align-items: center; justify-content: center; text-align: center; color: var(--slate); font-size: 0.9rem; border: 2px dashed rgba(91,123,154,0.3); }

/* ═══ LEGAL ═══ */
.legal-content { max-width: 800px; margin: 0 auto; }
.legal-content h2 { font-size: 1.4rem; margin: 32px 0 12px; }
.legal-content p { margin-bottom: 12px; line-height: 1.8; color: var(--charcoal); }
.legal-content strong { color: var(--midnight); }

/* ═══ FOOTER ═══ */
.footer { background: #111B26; padding: 64px 0 0; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 48px; border-bottom: 1px solid rgba(91,123,154,0.15); }
.footer-brand p { color: rgba(255,255,255,0.5); font-size: 0.9rem; margin: 16px 0; max-width: 300px; line-height: 1.7; }
.footer h4 { color: var(--white); font-size: 0.8rem; font-family: var(--font-body); font-weight: 600; text-transform: uppercase; letter-spacing: 1.5px; margin-bottom: 20px; }
.footer-links { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-links a { color: rgba(255,255,255,0.5); font-size: 0.9rem; transition: color 0.2s; }
.footer-links a:hover { color: var(--copper); }
.footer-bottom { padding: 24px 0; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px; }
.footer-bottom p { color: rgba(255,255,255,0.3); font-size: 0.8rem; }
.footer-bottom a { color: rgba(255,255,255,0.3); font-size: 0.8rem; }
.footer-bottom a:hover { color: var(--copper); }
.footer-legal { display: flex; gap: 20px; }
.footer-logo { font-family: var(--font-head); font-size: 1.6rem; color: var(--white); }
.footer-logo-bar { width: 36px; height: 2px; background: var(--copper); margin-top: 4px; }

/* ═══ SCROLL REVEAL ═══ */
.reveal { opacity: 0; transition: opacity 0.5s ease; }
.reveal.visible { opacity: 1; }
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }

/* ═══ RESPONSIVE ═══ */
@media (max-width: 1024px) {
  .why-grid { grid-template-columns: 1fr; }
  .why-image { max-height: 300px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .content-wrapper { grid-template-columns: 1fr; }
  .content-sidebar { position: static; }
  .contact-grid { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  :root { --nav-h: 64px; }
  section { padding: 56px 0; }
  .nav-links, .nav-phone { display: none; }
  .hamburger { display: flex; }
  .hero { min-height: 85vh; }
  .hero-stats { gap: 24px; flex-wrap: wrap; }
  .services-grid { grid-template-columns: 1fr; }
  .testimonials-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .btn-primary, .btn-outline { justify-content: center; }
  .trust-items { gap: 20px; }
  .areas-grid { grid-template-columns: 1fr 1fr; }
  .areas-grid-lg { grid-template-columns: 1fr; }
  .related-grid { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .areas-grid { grid-template-columns: 1fr; }
  .hero-stats { flex-direction: column; gap: 16px; }
  .stat-grid { grid-template-columns: 1fr; }
}

/* ═══ PRINT ═══ */
@media print {
  .nav, .mobile-menu, .cta-banner, .trust-bar, .hamburger { display: none !important; }
  body { font-size: 12pt; color: #000; }
  a { color: #000; text-decoration: underline; }
  .hero { min-height: auto; padding: 24px 0; }
  section { padding: 24px 0; }
}


/* ═══ PERFORMANCE ═══ */
.section-stone, .section-dark, .cta-banner, .footer {
  content-visibility: auto;
  contain-intrinsic-size: auto 600px;
}
