/* Absolute Filtration Systems & Repairs — Stylesheet */
/* Google Fonts: Oswald (headings) + Nunito (body) */
@import url('https://fonts.googleapis.com/css2?family=Oswald:wght@400;500;600;700&family=Nunito:wght@400;500;600;700&display=swap');

/* ===== CSS VARIABLES ===== */
:root {
  --primary:    #0B2D4E;
  --blue:       #1A7DC4;
  --aqua:       #00B4D8;
  --light-blue: #EBF5FB;
  --slate:      #2C3E50;
  --white:      #FFFFFF;
  --gray:       #6B7280;
  --light-gray: #F4F6F8;
  --cta:        #E67E22;
  --cta-dark:   #CA6F1E;
  --text:       #1A2533;
  --shadow:     0 4px 24px rgba(11,45,78,0.12);
  --shadow-lg:  0 8px 48px rgba(11,45,78,0.18);
  --radius:     8px;
  --radius-lg:  16px;
  --transition: 0.3s ease;
}

/* ===== RESET ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body { font-family: 'Nunito', sans-serif; color: var(--text); background: var(--white); line-height: 1.7; }
img { display: block; max-width: 100%; height: auto; }
a { color: var(--blue); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--aqua); }
ul { list-style: none; }

/* ===== SKIP LINK ===== */
.skip-link {
  position: absolute; top: -100%; left: 1rem; padding: 0.5rem 1rem;
  background: var(--primary); color: white; border-radius: var(--radius);
  font-weight: 700; z-index: 9999; transition: top 0.2s;
}
.skip-link:focus { top: 1rem; }

/* ===== TYPOGRAPHY ===== */
h1, h2, h3, h4, h5 { font-family: 'Oswald', sans-serif; line-height: 1.2; color: var(--primary); font-weight: 600; }
h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.5rem); }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.6rem); }
h4 { font-size: 1.15rem; }
p { margin-bottom: 1rem; }
p:last-child { margin-bottom: 0; }

/* ===== LAYOUT ===== */
.container { max-width: 1140px; margin: 0 auto; padding: 0 1.5rem; }
.section { padding: 5rem 0; }
.section--light { background: var(--light-gray); }
.section--blue { background: var(--light-blue); }
.section--dark { background: var(--primary); color: white; }
.section--dark h2, .section--dark h3 { color: white; }
.section-header { text-align: center; margin-bottom: 3.5rem; }
.section-header h2 { margin-bottom: 0.75rem; }
.section-header p { color: var(--gray); font-size: 1.05rem; max-width: 560px; margin: 0 auto; }
.section-header--light h2 { color: white; }
.section-header--light p { color: rgba(255,255,255,0.75); }

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.875rem 2rem; border-radius: var(--radius);
  font-family: 'Oswald', sans-serif; font-size: 1rem; font-weight: 600;
  letter-spacing: 0.05em; text-transform: uppercase;
  cursor: pointer; border: none; transition: all var(--transition);
  text-decoration: none;
}
.btn--cta { background: var(--cta); color: white; box-shadow: 0 4px 16px rgba(230,126,34,0.4); }
.btn--cta:hover, .btn--cta:focus-visible { background: var(--cta-dark); color: white; transform: translateY(-2px); box-shadow: 0 6px 24px rgba(230,126,34,0.5); }
.btn--primary { background: var(--blue); color: white; box-shadow: 0 4px 16px rgba(26,125,196,0.35); }
.btn--primary:hover, .btn--primary:focus-visible { background: var(--primary); color: white; transform: translateY(-2px); }
.btn--outline { background: transparent; color: white; border: 2px solid rgba(255,255,255,0.7); }
.btn--outline:hover, .btn--outline:focus-visible { background: white; color: var(--primary); border-color: white; }
.btn:focus-visible { outline: 3px solid var(--aqua); outline-offset: 3px; }

/* ===== NAVBAR ===== */
.navbar {
  position: sticky; top: 0; z-index: 100;
  background: var(--primary); box-shadow: 0 2px 16px rgba(0,0,0,0.2);
}
.navbar__inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 1.5rem; max-width: 1140px; margin: 0 auto; height: 70px;
}
.navbar__brand { display: flex; align-items: center; gap: 0.75rem; }
.navbar__logo { width: 48px; height: 48px; object-fit: contain; border-radius: 50%; background: white; padding: 3px; }
.navbar__name { font-family: 'Oswald', sans-serif; color: white; font-size: 1.1rem; font-weight: 600; line-height: 1.2; }
.navbar__name span { display: block; font-size: 0.75rem; font-weight: 400; color: var(--aqua); letter-spacing: 0.08em; text-transform: uppercase; }
.navbar__nav { display: flex; align-items: center; gap: 0.25rem; }
.navbar__nav a { color: rgba(255,255,255,0.85); padding: 0.5rem 0.9rem; border-radius: var(--radius); font-family: 'Oswald', sans-serif; font-weight: 500; letter-spacing: 0.04em; text-transform: uppercase; font-size: 0.9rem; transition: all var(--transition); }
.navbar__nav a:hover, .navbar__nav a:focus-visible { color: white; background: rgba(255,255,255,0.1); }
.navbar__nav a.active { color: var(--aqua); }
.navbar__cta { background: var(--cta); color: white !important; border-radius: var(--radius); padding: 0.5rem 1.1rem !important; }
.navbar__cta:hover { background: var(--cta-dark) !important; color: white !important; }
.navbar__toggle { display: none; background: none; border: none; cursor: pointer; padding: 0.5rem; }
.navbar__toggle span { display: block; width: 24px; height: 2px; background: white; margin: 5px 0; border-radius: 2px; transition: all var(--transition); }

/* ===== HERO ===== */
.hero {
  position: relative; min-height: 88vh; display: flex; align-items: center;
  overflow: hidden; background: var(--primary);
}
.hero__bg {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0;
  opacity: 0.35;
}
.hero__overlay {
  position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(135deg, rgba(11,45,78,0.92) 0%, rgba(26,125,196,0.6) 100%);
}
.hero__content {
  position: relative; z-index: 2; max-width: 700px;
  padding: 3rem 1.5rem; margin: 0 auto; text-align: center;
}
.hero__badge {
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: rgba(0,180,216,0.2); border: 1px solid rgba(0,180,216,0.4);
  color: var(--aqua); border-radius: 999px; padding: 0.35rem 1rem;
  font-size: 0.8rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase;
  margin-bottom: 1.5rem;
  animation: fadeDown 0.6s ease both;
}
.hero__title { color: white; margin-bottom: 1rem; text-shadow: 0 2px 12px rgba(0,0,0,0.3); animation: fadeUp 0.7s 0.2s ease both; }
.hero__tagline { color: rgba(255,255,255,0.85); font-size: 1.2rem; margin-bottom: 2.5rem; animation: fadeUp 0.7s 0.35s ease both; }
.hero__actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; animation: fadeUp 0.7s 0.5s ease both; }
.hero__trust { display: flex; gap: 2rem; justify-content: center; flex-wrap: wrap; margin-top: 3rem; animation: fadeUp 0.7s 0.65s ease both; }
.hero__trust-item { display: flex; align-items: center; gap: 0.5rem; color: rgba(255,255,255,0.8); font-size: 0.9rem; }
.hero__trust-item svg { flex-shrink: 0; color: var(--aqua); }

/* ===== STATS BAND ===== */
.stats-band { background: var(--blue); padding: 3rem 1rem; }
.stats-band__grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 3rem; max-width: 900px; margin: 0 auto; }
.stat-item { text-align: center; }
.stat-item .counter { font-family: 'Oswald', sans-serif; font-size: 3rem; font-weight: 700; color: white; display: block; line-height: 1; }
.stat-item .stat-label { text-transform: uppercase; letter-spacing: 2px; font-size: 0.75rem; color: rgba(255,255,255,0.75); display: block; margin-top: 0.35rem; }

/* ===== SERVICE CARDS ===== */
.services-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1.75rem; }
.service-card {
  background: white; border-radius: var(--radius-lg); padding: 2rem 1.75rem;
  box-shadow: var(--shadow); border: 1px solid rgba(26,125,196,0.08);
  transition: transform var(--transition), box-shadow var(--transition);
}
.service-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.service-card__icon {
  width: 56px; height: 56px; border-radius: 14px;
  background: linear-gradient(135deg, var(--blue), var(--aqua));
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 1.25rem; color: white;
}
.service-card h3 { margin-bottom: 0.6rem; font-size: 1.2rem; }
.service-card p { color: var(--gray); font-size: 0.95rem; }

/* ===== ABOUT STRIP ===== */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; }
.about-image-wrap { position: relative; border-radius: var(--radius-lg); overflow: hidden; }
.about-image-wrap img { width: 100%; height: 400px; object-fit: cover; }
.about-badge {
  position: absolute; bottom: -1.5rem; right: -1.5rem;
  background: var(--cta); color: white; border-radius: var(--radius-lg);
  padding: 1.25rem 1.5rem; text-align: center; box-shadow: var(--shadow);
}
.about-badge strong { font-family: 'Oswald', sans-serif; font-size: 2.25rem; display: block; line-height: 1; }
.about-badge span { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 1px; opacity: 0.9; }
.about-content h2 { margin-bottom: 1.25rem; }
.about-content p { color: var(--slate); margin-bottom: 1.25rem; line-height: 1.8; }
.about-features { display: flex; flex-direction: column; gap: 0.75rem; margin-top: 1.5rem; }
.about-feature { display: flex; align-items: center; gap: 0.75rem; font-weight: 600; color: var(--primary); }
.about-feature svg { color: var(--aqua); flex-shrink: 0; }

/* ===== TESTIMONIALS ===== */
.testimonials-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 1.75rem; }
.testimonial-card {
  background: white; border-radius: var(--radius-lg); padding: 2rem;
  box-shadow: var(--shadow); border-left: 4px solid var(--aqua);
  position: relative;
}
.testimonial-card::before {
  content: '\201C'; font-family: Georgia, serif;
  font-size: 5rem; line-height: 1; color: var(--light-blue);
  position: absolute; top: -0.5rem; left: 1.25rem;
}
.testimonial-card blockquote { font-style: italic; color: var(--slate); line-height: 1.75; margin-bottom: 1rem; padding-top: 1.5rem; }
.testimonial-card cite { font-style: normal; font-weight: 700; color: var(--primary); font-size: 0.9rem; }
.testimonial-stars { color: #F59E0B; margin-bottom: 0.5rem; }

/* ===== EMERGENCY BANNER ===== */
.emergency-banner {
  background: linear-gradient(90deg, var(--primary) 0%, var(--blue) 100%);
  padding: 3.5rem 1.5rem; text-align: center;
}
.emergency-banner h2 { color: white; margin-bottom: 0.75rem; font-size: clamp(1.6rem, 3vw, 2.25rem); }
.emergency-banner p { color: rgba(255,255,255,0.85); margin-bottom: 1.75rem; font-size: 1.05rem; }
.emergency-banner__phones { display: flex; flex-wrap: wrap; justify-content: center; gap: 1rem; margin-bottom: 1.75rem; }
.emergency-phone {
  display: inline-flex; align-items: center; gap: 0.6rem;
  background: rgba(255,255,255,0.12); border: 1px solid rgba(255,255,255,0.25);
  color: white; border-radius: var(--radius); padding: 0.75rem 1.5rem;
  font-family: 'Oswald', sans-serif; font-size: 1.15rem; font-weight: 600;
  transition: all var(--transition);
}
.emergency-phone:hover { background: rgba(255,255,255,0.22); color: white; }

/* ===== FAQ ===== */
.faq-list { max-width: 720px; margin: 0 auto; }
.faq-item { border-bottom: 1px solid rgba(26,125,196,0.15); }
.faq-item summary {
  cursor: pointer; font-weight: 700; font-size: 1.05rem; padding: 1.25rem 0;
  list-style: none; display: flex; justify-content: space-between; align-items: center;
  color: var(--primary); gap: 1rem;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::marker { display: none; content: ''; }
.faq-chevron { flex-shrink: 0; color: var(--blue); transition: transform var(--transition); }
.faq-item[open] .faq-chevron { transform: rotate(180deg); }
.faq-answer { padding: 0 0 1.25rem; color: var(--slate); line-height: 1.75; }

/* ===== CONTACT PAGE ===== */
.contact-grid { display: grid; grid-template-columns: 1fr 1.4fr; gap: 4rem; align-items: start; }
.contact-info h2 { margin-bottom: 1.25rem; }
.contact-info p { color: var(--slate); margin-bottom: 2rem; }
.contact-details { display: flex; flex-direction: column; gap: 1.25rem; }
.contact-detail { display: flex; align-items: flex-start; gap: 1rem; }
.contact-detail__icon {
  width: 44px; height: 44px; border-radius: 10px; flex-shrink: 0;
  background: var(--light-blue); display: flex; align-items: center; justify-content: center; color: var(--blue);
}
.contact-detail__text strong { display: block; font-weight: 700; color: var(--primary); margin-bottom: 0.2rem; }
.contact-detail__text span { color: var(--slate); font-size: 0.95rem; }
.contact-form { background: white; border-radius: var(--radius-lg); padding: 2.5rem; box-shadow: var(--shadow); }
.contact-form h3 { margin-bottom: 1.75rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-bottom: 1rem; }
.form-group { margin-bottom: 1rem; }
.form-group label { display: block; font-weight: 700; margin-bottom: 0.4rem; font-size: 0.9rem; color: var(--primary); }
.form-group input, .form-group select, .form-group textarea {
  width: 100%; padding: 0.75rem 1rem; border: 2px solid #E5E7EB;
  border-radius: var(--radius); font-family: 'Nunito', sans-serif; font-size: 1rem;
  color: var(--text); background: white; transition: border-color var(--transition);
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
  outline: none; border-color: var(--blue);
}
.form-group textarea { resize: vertical; min-height: 130px; }
.form-success { display: none; background: #ECFDF5; border: 1px solid #10B981; color: #065F46; border-radius: var(--radius); padding: 1rem 1.25rem; margin-top: 1rem; font-weight: 600; }

/* ===== SERVICE AREA MAP ===== */
#service-area-map { height: 380px; border-radius: var(--radius-lg); box-shadow: var(--shadow); }

/* ===== PAGE HERO (inner pages) ===== */
.page-hero {
  background: linear-gradient(135deg, var(--primary) 0%, var(--blue) 100%);
  padding: 5rem 1.5rem 4rem; text-align: center;
}
.page-hero h1 { color: white; margin-bottom: 0.75rem; }
.page-hero p { color: rgba(255,255,255,0.8); font-size: 1.1rem; max-width: 560px; margin: 0 auto; }

/* ===== BREADCRUMB ===== */
.breadcrumb { display: flex; gap: 0.5rem; align-items: center; justify-content: center; margin-bottom: 1.25rem; }
.breadcrumb a { color: rgba(255,255,255,0.65); font-size: 0.85rem; }
.breadcrumb a:hover { color: white; }
.breadcrumb span { color: rgba(255,255,255,0.4); font-size: 0.85rem; }
.breadcrumb strong { color: white; font-size: 0.85rem; }

/* ===== SERVICES PAGE ===== */
.services-page-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 2rem; }
.service-page-card {
  background: white; border-radius: var(--radius-lg); overflow: hidden;
  box-shadow: var(--shadow); transition: transform var(--transition), box-shadow var(--transition);
}
.service-page-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.service-page-card img { width: 100%; height: 220px; object-fit: cover; }
.service-page-card__body { padding: 1.75rem; }
.service-page-card h3 { margin-bottom: 0.75rem; }
.service-page-card p { color: var(--gray); font-size: 0.95rem; margin-bottom: 1.25rem; }

/* ===== FOOTER ===== */
footer {
  background: var(--primary); color: rgba(255,255,255,0.8);
  padding: 4rem 1.5rem 1.5rem;
}
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 3rem; max-width: 1140px; margin: 0 auto 3rem; }
.footer-brand { }
.footer-brand img { width: 56px; height: 56px; object-fit: contain; border-radius: 50%; background: white; padding: 4px; margin-bottom: 1rem; }
.footer-brand p { font-size: 0.9rem; line-height: 1.7; max-width: 300px; }
.footer-brand .footer-name { font-family: 'Oswald', sans-serif; color: white; font-size: 1.1rem; margin-bottom: 0.5rem; }
.footer-col h4 { font-family: 'Oswald', sans-serif; color: white; font-size: 1rem; text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 1rem; }
.footer-col ul li { margin-bottom: 0.5rem; }
.footer-col ul li a { color: rgba(255,255,255,0.7); font-size: 0.9rem; transition: color var(--transition); }
.footer-col ul li a:hover { color: var(--aqua); }
.footer-col address { font-style: normal; font-size: 0.9rem; line-height: 1.8; }
.footer-col address a { color: rgba(255,255,255,0.7); }
.footer-col address a:hover { color: var(--aqua); }
.footer-bottom { max-width: 1140px; margin: 0 auto; padding-top: 1.5rem; border-top: 1px solid rgba(255,255,255,0.1); display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1rem; font-size: 0.85rem; }
.footer-bottom-links { display: flex; gap: 1.5rem; }
.footer-bottom-links a { color: rgba(255,255,255,0.55); }
.footer-bottom-links a:hover { color: white; }

/* ===== FLOATING CTA ===== */
.floating-cta {
  position: fixed; bottom: 1.5rem; right: 1.5rem; z-index: 50;
  background: var(--cta); color: white;
  width: 58px; height: 58px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 20px rgba(230,126,34,0.5);
  transition: transform 0.2s, box-shadow 0.2s;
  text-decoration: none;
}
.floating-cta:hover { transform: scale(1.12); box-shadow: 0 6px 28px rgba(230,126,34,0.65); color: white; }
@media (min-width: 768px) { .floating-cta { bottom: 2rem; right: 2rem; width: 64px; height: 64px; } }

/* ===== REVEAL ANIMATIONS ===== */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.65s ease, transform 0.65s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal:nth-child(2) { transition-delay: 0.1s; }
.reveal:nth-child(3) { transition-delay: 0.2s; }
.reveal:nth-child(4) { transition-delay: 0.3s; }
.reveal:nth-child(5) { transition-delay: 0.4s; }
.reveal:nth-child(6) { transition-delay: 0.5s; }

/* ===== KEYFRAMES ===== */
@keyframes fadeUp { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fadeDown { from { opacity: 0; transform: translateY(-16px); } to { opacity: 1; transform: translateY(0); } }

/* ===== MOBILE NAV ===== */
@media (max-width: 768px) {
  .navbar__toggle { display: block; }
  .navbar__nav {
    position: absolute; top: 70px; left: 0; right: 0;
    background: var(--primary); padding: 1rem 1.5rem 1.5rem;
    flex-direction: column; align-items: flex-start; gap: 0.25rem;
    display: none;
  }
  .navbar__nav.open { display: flex; }
  .navbar__nav a { width: 100%; }

  .about-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .about-image-wrap img { height: 280px; }
  .about-badge { bottom: 1rem; right: 1rem; }

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

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

  .hero__trust { gap: 1rem; }
  .stats-band__grid { gap: 2rem; }
}

@media (max-width: 480px) {
  .section { padding: 3.5rem 0; }
  .hero { min-height: 70vh; }
  .btn { padding: 0.75rem 1.5rem; font-size: 0.9rem; }
}

/* ===== FOCUS STYLES ===== */
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 3px solid var(--aqua); outline-offset: 2px;
}
details summary:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; border-radius: 4px; }
