/* ================================
   SUMP PUMP REPAIR MIDDLEBURY CT
   Modern Local Service Website
   ================================ */

:root {
    --primary: #0f4c81;
    --primary-dark: #0a3661;
    --primary-light: #e8f3fa;
    --secondary: #ffffff;
    --accent: #f59e0b;
    --accent-dark: #d97706;
    --text-dark: #1f2937;
    --text-medium: #4b5563;
    --text-light: #6b7280;
    --bg-light: #f8fafc;
    --bg-white: #ffffff;
    --border: #e5e7eb;
    --success: #10b981;
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 12px rgba(15, 76, 129, 0.12);
    --shadow-lg: 0 10px 30px rgba(15, 76, 129, 0.15);
    --radius: 8px;
    --radius-lg: 16px;
    --transition: all 0.3s ease;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; color: var(--text-dark); line-height: 1.6; overflow-x: hidden; background: var(--bg-white); }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
.container { width: min(1140px, calc(100% - 40px)); margin: 0 auto; }

/* Accessibility */
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.skip-link { position: absolute; top: -50px; left: 1rem; background: var(--primary); color: #fff; padding: .75rem 1rem; z-index: 999; }
.skip-link:focus { top: 1rem; }

/* Typography */
.section-header { text-align: center; max-width: 700px; margin: 0 auto 3rem; }
.section-title { font-size: clamp(1.9rem, 4vw, 2.6rem); line-height: 1.2; color: var(--primary-dark); margin-bottom: .8rem; font-weight: 750; letter-spacing: -.03em; }
.section-subtitle { font-size: 1.05rem; color: var(--text-medium); }
h3 { line-height: 1.3; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: .75rem 1.35rem; border: 2px solid transparent; border-radius: 6px; font-size: .96rem; font-weight: 700; cursor: pointer; transition: var(--transition); text-align: center; }
.btn-primary { background: var(--accent); color: #1f2937; border-color: var(--accent); }
.btn-primary:hover { background: var(--accent-dark); border-color: var(--accent-dark); color: #fff; transform: translateY(-2px); box-shadow: 0 6px 14px rgba(217,119,6,.28); }
.btn-secondary { background: transparent; color: #fff; border-color: rgba(255,255,255,.8); }
.btn-secondary:hover { background: #fff; color: var(--primary-dark); transform: translateY(-2px); }
.btn-large { min-height: 54px; padding: .9rem 1.6rem; font-size: 1rem; }
.btn-full { width: 100%; }

/* Header */
.header { position: sticky; top: 0; z-index: 1000; background: rgba(255,255,255,.97); border-bottom: 1px solid transparent; transition: var(--transition); }
.header.scrolled { box-shadow: var(--shadow-md); border-bottom-color: var(--border); }
.header-container { min-height: 74px; display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; }
.logo, .footer-logo { display: inline-flex; align-items: center; gap: .55rem; color: var(--primary-dark); font-weight: 800; line-height: 1.1; }
.logo-icon { font-size: 1.9rem; line-height: 1; }
.logo-text { font-size: 1rem; letter-spacing: -.02em; }
.logo-text small { font-size: .75rem; color: var(--text-medium); font-weight: 600; letter-spacing: 0; }
.nav-list { list-style: none; display: flex; gap: 1.4rem; align-items: center; }
.nav-link { color: var(--text-medium); font-weight: 600; font-size: .9rem; transition: color .2s; }
.nav-link:hover { color: var(--primary); }
.nav-cta { min-height: 40px; padding: .5rem 1rem; font-size: .85rem; }
.mobile-menu-btn { display: none; border: 0; background: transparent; cursor: pointer; width: 42px; height: 42px; padding: 8px; }
.hamburger, .hamburger::before, .hamburger::after { display: block; width: 25px; height: 2px; background: var(--primary-dark); position: relative; transition: var(--transition); }
.hamburger::before, .hamburger::after { content: ""; position: absolute; left: 0; }
.hamburger::before { top: -8px; }
.hamburger::after { top: 8px; }
.mobile-menu-btn.active .hamburger { background: transparent; }
.mobile-menu-btn.active .hamburger::before { transform: rotate(45deg); top: 0; }
.mobile-menu-btn.active .hamburger::after { transform: rotate(-45deg); top: 0; }

/* Hero */
.hero { position: relative; min-height: 600px; display: flex; align-items: center; overflow: hidden; background: var(--primary-dark); color: #fff; }
.hero-bg { position: absolute; inset: 0; background: linear-gradient(105deg, rgba(5, 35, 65, .98) 0%, rgba(10, 54, 97, .93) 53%, rgba(10, 54, 97, .7) 100%); }
.hero::after { content: ""; position: absolute; width: 600px; height: 600px; border: 90px solid rgba(255,255,255,.04); border-radius: 50%; right: -250px; top: -260px; }
.hero-container { position: relative; z-index: 1; display: grid; grid-template-columns: 1.1fr .8fr; gap: 3rem; align-items: center; padding: 5.5rem 0; }
.hero-content { max-width: 650px; }
.hero-title { font-size: clamp(2.35rem, 5vw, 4.15rem); line-height: 1.05; letter-spacing: -.045em; margin-bottom: 1.15rem; font-weight: 800; }
.hero-subtitle { font-size: clamp(1rem, 2vw, 1.2rem); line-height: 1.7; color: rgba(255,255,255,.88); max-width: 600px; margin-bottom: 2rem; }
.hero-cta { display: flex; flex-wrap: wrap; gap: .85rem; margin-bottom: 2rem; }
.hero-trust { display: flex; flex-wrap: wrap; gap: .85rem 1.4rem; }
.trust-item { display: flex; align-items: center; gap: .45rem; font-size: .88rem; color: rgba(255,255,255,.88); }
.trust-icon { display: flex; align-items: center; justify-content: center; width: 19px; height: 19px; border-radius: 50%; background: var(--success); color: #fff; font-size: .7rem; font-weight: 800; }
.hero-image { position: relative; max-width: 450px; justify-self: end; }
.hero-image::before { content: ""; position: absolute; width: 100%; height: 100%; background: var(--accent); border-radius: var(--radius-lg); transform: rotate(4deg) translate(14px, 12px); z-index: -1; opacity: .9; }
.hero-image img { width: 100%; height: 460px; object-fit: cover; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); }

/* Trust cards */
.trust-section { padding: 3.2rem 0; background: var(--bg-light); }
.trust-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.2rem; }
.trust-card { text-align: center; padding: 1.25rem .9rem; }
.trust-card-icon { font-size: 2rem; margin-bottom: .75rem; }
.trust-card h3 { font-size: 1rem; color: var(--primary-dark); margin-bottom: .45rem; }
.trust-card p { color: var(--text-medium); font-size: .86rem; line-height: 1.55; }

/* Services */
.services { padding: 5.8rem 0; }
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.service-card { border: 1px solid var(--border); padding: 1.7rem; border-radius: var(--radius); background: #fff; transition: var(--transition); display: flex; flex-direction: column; }
.service-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); border-color: rgba(15,76,129,.18); }
.service-icon { font-size: 2rem; margin-bottom: .9rem; }
.service-card h3 { font-size: 1.2rem; color: var(--primary-dark); margin-bottom: .65rem; }
.service-card p { font-size: .93rem; color: var(--text-medium); margin-bottom: 1.15rem; flex-grow: 1; }
.service-link { color: var(--primary); font-weight: 750; font-size: .92rem; }
.service-link:hover { color: var(--accent-dark); }

/* Why Us */
.why-us { padding: 5.8rem 0; background: var(--bg-light); }
.why-us-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.why-card { background: #fff; padding: 1.7rem; border-radius: var(--radius); border-top: 4px solid var(--primary); box-shadow: var(--shadow-sm); }
.why-number { font-size: .8rem; font-weight: 800; color: var(--accent-dark); letter-spacing: .08em; margin-bottom: .65rem; }
.why-card h3 { font-size: 1.13rem; color: var(--primary-dark); margin-bottom: .6rem; }
.why-card p { color: var(--text-medium); font-size: .92rem; }

/* Explanation */
.service-explanation { padding: 5.8rem 0; }
.explanation-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 4rem; align-items: center; }
.explanation-content .section-title { margin-bottom: 1.2rem; }
.explanation-content > p { color: var(--text-medium); margin-bottom: 1.35rem; }
.explanation-content h3 { color: var(--primary-dark); font-size: 1.13rem; margin-bottom: .85rem; }
.problem-list { list-style: none; display: grid; grid-template-columns: repeat(2, 1fr); gap: .65rem; margin-bottom: 1.6rem; }
.problem-list li { color: var(--text-medium); font-size: .9rem; display: flex; gap: .5rem; }
.check { color: var(--success); font-weight: 800; }
.explanation-image img { width: 100%; height: 410px; object-fit: cover; border-radius: var(--radius-lg); box-shadow: var(--shadow-md); }

/* Process */
.process { padding: 5.8rem 0; background: var(--primary-dark); color: #fff; }
.process .section-title { color: #fff; }
.process .section-subtitle { color: rgba(255,255,255,.8); }
.process-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.2rem; position: relative; }
.process-step { text-align: center; position: relative; padding: 0 .65rem; }
.step-number { width: 56px; height: 56px; border-radius: 50%; background: var(--accent); color: var(--text-dark); display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 1.25rem; margin: 0 auto 1rem; border: 4px solid rgba(255,255,255,.14); }
.process-step h3 { font-size: 1.1rem; margin-bottom: .55rem; }
.process-step p { color: rgba(255,255,255,.78); font-size: .88rem; }
.process-step a { color: #fff; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }

/* Service Area */
.service-area { padding: 5.8rem 0; background: linear-gradient(115deg, var(--primary-light), #f6fbff); }
.area-content { max-width: 850px; margin: 0 auto; text-align: center; }
.area-content > p { color: var(--text-medium); font-size: 1.03rem; margin: 1rem auto 2.3rem; }
.area-features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; text-align: left; }
.area-feature { display: flex; gap: .8rem; background: #fff; padding: 1.15rem; border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.feature-icon { font-size: 1.6rem; }
.area-feature h4 { font-size: .96rem; color: var(--primary-dark); margin-bottom: .2rem; }
.area-feature p { color: var(--text-medium); font-size: .84rem; }

/* Testimonials - safe review prompt */
.testimonials { padding: 5.8rem 0; }
.testimonials-grid { max-width: 840px; margin: 0 auto; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.testimonial-card { border: 1px solid var(--border); border-radius: var(--radius); padding: 1.5rem; background: var(--bg-light); }
.testimonial-card h3 { color: var(--primary-dark); font-size: 1.05rem; margin-bottom: .7rem; }
.testimonial-card p { color: var(--text-medium); font-size: .91rem; }
.testimonials-cta { text-align: center; margin-top: 2rem; }

/* FAQ */
.faq { padding: 5.8rem 0; background: var(--bg-light); }
.faq-list { max-width: 820px; margin: 0 auto; }
.faq-item { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); margin-bottom: .75rem; overflow: hidden; }
.faq-question { width: 100%; display: flex; align-items: center; justify-content: space-between; text-align: left; padding: 1.15rem 1.25rem; font: inherit; font-weight: 700; font-size: .98rem; color: var(--primary-dark); background: #fff; border: 0; cursor: pointer; gap: 1rem; }
.faq-icon { font-size: 1.5rem; color: var(--primary); font-weight: 400; transition: transform .25s; flex: 0 0 auto; }
.faq-question[aria-expanded="true"] .faq-icon { transform: rotate(45deg); }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height .3s ease; }
.faq-answer p { padding: 0 1.25rem 1.2rem; color: var(--text-medium); font-size: .93rem; }
.faq-item.active .faq-answer { max-height: 300px; }

/* CTA */
.cta-section { padding: 5rem 0; background: linear-gradient(110deg, var(--primary-dark), var(--primary)); color: #fff; text-align: center; }
.cta-content { max-width: 760px; margin: 0 auto; }
.cta-title { font-size: clamp(2rem, 4vw, 3rem); line-height: 1.15; letter-spacing: -.03em; margin-bottom: .9rem; }
.cta-text { color: rgba(255,255,255,.86); font-size: 1.05rem; margin-bottom: 1.8rem; }
.cta-buttons { display: flex; justify-content: center; flex-wrap: wrap; gap: .85rem; }

/* Contact */
.contact { padding: 5.8rem 0; }
.contact-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: 3rem; max-width: 980px; margin: 0 auto; }
.contact-info { background: var(--primary-dark); color: #fff; padding: 2rem; border-radius: var(--radius-lg); }
.contact-info > h3, .contact-form-wrapper > h3 { font-size: 1.35rem; margin-bottom: 1.5rem; }
.contact-item { display: flex; gap: .8rem; padding: 1rem 0; border-bottom: 1px solid rgba(255,255,255,.15); }
.contact-item:last-child { border-bottom: 0; }
.contact-icon { font-size: 1.3rem; flex: 0 0 auto; }
.contact-item strong { display: block; font-size: .9rem; margin-bottom: .15rem; }
.contact-item p { color: rgba(255,255,255,.8); font-size: .9rem; }
.contact-item a { color: #fff; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.contact-form-wrapper { padding: .2rem 0; }
.form-group { margin-bottom: 1rem; }
.form-group label { display: block; color: var(--text-dark); font-weight: 700; font-size: .88rem; margin-bottom: .35rem; }
.form-group input, .form-group select, .form-group textarea { display: block; width: 100%; border: 1px solid #cbd5e1; border-radius: 5px; padding: .75rem .85rem; color: var(--text-dark); font: inherit; font-size: .94rem; background: #fff; transition: border .2s, box-shadow .2s; }
.form-group textarea { resize: vertical; min-height: 110px; }
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { outline: 0; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(15,76,129,.12); }

/* Footer */
.footer { background: #102338; color: rgba(255,255,255,.78); padding: 4rem 0 1.3rem; }
.footer-grid { display: grid; grid-template-columns: 1.5fr .85fr 1.1fr 1.1fr; gap: 2.5rem; }
.footer-logo { color: #fff; margin-bottom: 1rem; }
.footer-logo .logo-text small { color: rgba(255,255,255,.65); }
.footer-brand > p { font-size: .89rem; max-width: 310px; }
.footer h4 { color: #fff; font-size: .96rem; margin-bottom: .9rem; }
.footer ul { list-style: none; }
.footer li, .footer-contact p { font-size: .87rem; margin-bottom: .5rem; }
.footer a:hover { color: var(--accent); }
.footer-contact a { color: #fff; font-weight: 650; }
.footer-bottom { margin-top: 3rem; padding-top: 1.2rem; border-top: 1px solid rgba(255,255,255,.12); display: flex; flex-wrap: wrap; gap: .4rem 1.5rem; justify-content: space-between; font-size: .8rem; }

/* Mobile sticky call */
.mobile-sticky-cta { display: none; position: fixed; z-index: 999; bottom: 1rem; left: 1rem; right: 1rem; min-height: 52px; justify-content: center; align-items: center; gap: .55rem; background: var(--accent); color: var(--text-dark); border-radius: 6px; font-weight: 800; box-shadow: 0 8px 24px rgba(0,0,0,.25); }
.mobile-cta-icon { font-size: 1.15rem; }

/* Responsive */
@media (max-width: 1024px) {
    .nav-list { gap: .9rem; }
    .hero-container { gap: 2rem; }
    .trust-grid { grid-template-columns: repeat(2, 1fr); }
    .process-grid { grid-template-columns: repeat(2, 1fr); row-gap: 2rem; }
    .footer-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 800px) {
    .header-container { min-height: 65px; }
    .nav { position: fixed; top: 65px; left: 0; right: 0; background: #fff; box-shadow: var(--shadow-md); padding: .7rem 20px 1rem; transform: translateY(-130%); opacity: 0; visibility: hidden; transition: var(--transition); }
    .nav.open { transform: translateY(0); opacity: 1; visibility: visible; }
    .nav-list { flex-direction: column; align-items: stretch; gap: 0; }
    .nav-link { display: block; padding: .8rem .3rem; border-bottom: 1px solid var(--border); }
    .nav-cta { display: none; }
    .mobile-menu-btn { display: block; }
    .hero { min-height: auto; }
    .hero-container { grid-template-columns: 1fr; padding: 4rem 0; }
    .hero-image { display: none; }
    .hero-title { max-width: 600px; }
    .services-grid, .why-us-grid { grid-template-columns: repeat(2, 1fr); }
    .explanation-grid { grid-template-columns: 1fr; gap: 2rem; }
    .explanation-image { max-width: 600px; }
    .area-features { grid-template-columns: 1fr; max-width: 500px; margin: 0 auto; }
    .testimonials-grid { grid-template-columns: 1fr; }
    .contact-grid { grid-template-columns: 1fr; gap: 2rem; }
}

@media (max-width: 560px) {
    .container { width: min(100% - 32px, 1140px); }
    .hero-container { padding: 3.5rem 0; }
    .hero-title { font-size: 2.25rem; }
    .hero-cta, .cta-buttons { flex-direction: column; align-items: stretch; }
    .hero-cta .btn, .cta-buttons .btn { width: 100%; }
    .hero-trust { flex-direction: column; gap: .5rem; }
    .trust-grid, .services-grid, .why-us-grid, .process-grid { grid-template-columns: 1fr; }
    .trust-section, .services, .why-us, .service-explanation, .process, .service-area, .testimonials, .faq, .contact { padding: 4rem 0; }
    .section-header { margin-bottom: 2rem; }
    .problem-list { grid-template-columns: 1fr; }
    .explanation-image img { height: 280px; }
    .process-grid { gap: 1.75rem; }
    .process-step { padding: 0; }
    .faq-question { font-size: .93rem; padding: 1rem; }
    .faq-answer p { padding: 0 1rem 1rem; }
    .footer { padding-bottom: 5.3rem; }
    .footer-grid { grid-template-columns: 1fr; gap: 1.8rem; }
    .footer-bottom { flex-direction: column; }
    .mobile-sticky-cta { display: flex; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; transition-duration: .01ms !important; }
}
