/* ============================================================
   ClearGuard Commercial Pool Service
   Modern Corporate Design System
   ============================================================ */

/* --- Custom Properties ------------------------------------ */
:root {
  --navy: #003366;
  --navy-light: #004080;
  --navy-dark: #002244;
  --blue: #00A6CE;
  --blue-light: #33B8D8;
  --blue-dark: #008BAD;
  --green: #4CAF50;
  --white: #FFFFFF;
  --slate-50: #F8FAFC;
  --slate-100: #F1F5F9;
  --slate-200: #E2E8F0;
  --slate-300: #CBD5E1;
  --slate-400: #94A3B8;
  --slate-500: #64748B;
  --slate-600: #475569;
  --slate-700: #334155;
  --slate-800: #1E293B;
  --slate-900: #0F172A;

  --font-body: 'Inter', system-ui, -apple-system, sans-serif;
  --font-display: 'DM Sans', 'Inter', system-ui, sans-serif;

  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.07), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -4px rgba(0, 0, 0, 0.04);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.08), 0 8px 10px -6px rgba(0, 0, 0, 0.04);

  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;

  --transition: 200ms ease;
  --container: 1200px;
  --container-narrow: 800px;

  /* Pico overrides */
  --pico-font-family: var(--font-body);
  --pico-primary: var(--navy);
  --pico-primary-hover: var(--navy-light);
  --pico-primary-focus: rgba(0, 51, 102, 0.2);
  --pico-border-radius: var(--radius-sm);
}

/* --- Reset & Base ----------------------------------------- */
*, *::before, *::after {
  box-sizing: border-box;
}

body {
  font-family: var(--font-body);
  color: var(--slate-800);
  line-height: 1.7;
  margin: 0;
  padding: 0;
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }

a {
  color: var(--navy);
  text-decoration: none;
  transition: color var(--transition);
}
a:hover { color: var(--blue); }

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--slate-900);
  line-height: 1.2;
  margin: 0 0 0.5em;
}

/* --- Container -------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.container-narrow {
  max-width: var(--container-narrow);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* --- Header ----------------------------------------------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--slate-200);
  transition: box-shadow var(--transition);
}

.site-header.scrolled {
  box-shadow: var(--shadow-md);
}

.header-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.site-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--slate-900);
  flex-shrink: 0;
}

.site-logo:hover { color: var(--slate-900); }

.logo-icon svg {
  display: block;
}

.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.logo-name {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.15rem;
  color: var(--navy);
  letter-spacing: -0.02em;
}

.logo-sub {
  font-size: 0.7rem;
  font-weight: 500;
  color: var(--slate-500);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* Nav */
.primary-nav ul {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 0.25rem;
  margin: 0;
  padding: 0;
}

.primary-nav a {
  display: inline-block;
  padding: 0.5rem 1rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--slate-600);
  border-radius: var(--radius-sm);
  transition: all var(--transition);
}

.primary-nav a:hover {
  color: var(--navy);
  background: var(--slate-50);
}

.primary-nav a.active {
  color: var(--navy);
  font-weight: 600;
}

.primary-nav a.active::after {
  content: '';
  display: block;
  height: 2px;
  background: var(--blue);
  border-radius: 1px;
  margin-top: 2px;
}

/* Main CTA Button */
.main-cta {
  display: inline-block;
  padding: 0.6rem 1.5rem !important;
  background: var(--navy) !important;
  color: var(--white) !important;
  font-weight: 600 !important;
  font-size: 0.875rem !important;
  border-radius: var(--radius-sm) !important;
  border: none;
  cursor: pointer;
  transition: all var(--transition) !important;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.main-cta:hover {
  background: var(--navy-light) !important;
  color: var(--white) !important;
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

/* Hamburger */
.mobile-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  z-index: 1001;
}

.hamburger-line {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--slate-700);
  border-radius: 2px;
  transition: all 0.3s ease;
}

.mobile-toggle[aria-expanded="true"] .hamburger-line:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}
.mobile-toggle[aria-expanded="true"] .hamburger-line:nth-child(2) {
  opacity: 0;
}
.mobile-toggle[aria-expanded="true"] .hamburger-line:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* --- Main Content ----------------------------------------- */
#main-content {
  padding-top: 72px;
}

/* --- Sections --------------------------------------------- */
.section {
  padding: 5rem 0;
}

.section-sm {
  padding: 3rem 0;
}

.section-lg {
  padding: 7rem 0;
}

.section-gray {
  background: var(--slate-50);
}

.section-navy {
  background: var(--navy);
  color: var(--white);
}

.section-navy h2,
.section-navy h3,
.section-navy h4 {
  color: var(--white);
}

.section-navy p {
  color: rgba(255, 255, 255, 0.85);
}

.section-gradient {
  background: linear-gradient(135deg, var(--navy-dark) 0%, var(--navy) 50%, var(--navy-light) 100%);
  color: var(--white);
}

.section-gradient h1,
.section-gradient h2,
.section-gradient h3 {
  color: var(--white);
}

.section-header {
  text-align: center;
  max-width: 650px;
  margin: 0 auto 3.5rem;
}

.section-header h2 {
  font-size: 2.25rem;
  margin-bottom: 0.75rem;
}

.section-header p {
  font-size: 1.1rem;
  color: var(--slate-500);
  line-height: 1.7;
}

.section-label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--blue);
  margin-bottom: 0.75rem;
}

.section-navy .section-label {
  color: var(--blue-light);
}

/* --- Hero ------------------------------------------------- */
.hero {
  position: relative;
  padding: 7rem 0 6rem;
  background: linear-gradient(135deg, var(--navy-dark) 0%, var(--navy) 60%, #00476b 100%);
  color: var(--white);
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 60%;
  height: 200%;
  background: radial-gradient(ellipse, rgba(0, 166, 206, 0.12) 0%, transparent 70%);
  pointer-events: none;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 120px;
  background: linear-gradient(to top, rgba(0, 34, 68, 0.3), transparent);
  pointer-events: none;
}

.hero .container {
  position: relative;
  z-index: 1;
}

.hero h1 {
  font-size: 3.25rem;
  font-weight: 800;
  color: var(--white);
  line-height: 1.1;
  margin-bottom: 1.25rem;
  letter-spacing: -0.025em;
  max-width: 700px;
}

.hero .tagline {
  font-size: 1.25rem;
  color: rgba(255, 255, 255, 0.8);
  max-width: 550px;
  line-height: 1.6;
  margin-bottom: 2rem;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.hero-actions .main-cta {
  background: var(--blue) !important;
  padding: 0.85rem 2rem !important;
  font-size: 0.95rem !important;
}

.hero-actions .main-cta:hover {
  background: var(--blue-dark) !important;
}

.btn-outline {
  display: inline-block;
  padding: 0.85rem 2rem;
  border: 2px solid rgba(255, 255, 255, 0.3);
  color: var(--white);
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: var(--radius-sm);
  transition: all var(--transition);
}

.btn-outline:hover {
  border-color: var(--white);
  color: var(--white);
  background: rgba(255, 255, 255, 0.08);
}

/* Page hero (sub-pages) */
.page-hero {
  padding: 4rem 0 3rem;
  background: linear-gradient(135deg, var(--navy-dark), var(--navy));
  color: var(--white);
}

.page-hero h1 {
  font-size: 2.75rem;
  color: var(--white);
  margin-bottom: 0.5rem;
}

.page-hero p {
  font-size: 1.15rem;
  color: rgba(255, 255, 255, 0.75);
  max-width: 600px;
}

.breadcrumb {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 1rem;
}

.breadcrumb a {
  color: rgba(255, 255, 255, 0.5);
}

.breadcrumb a:hover {
  color: var(--white);
}

/* --- Trust Bar -------------------------------------------- */
.trust-bar {
  background: var(--white);
  border-bottom: 1px solid var(--slate-200);
  padding: 2rem 0;
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  text-align: center;
}

.trust-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
}

.trust-number {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--navy);
  line-height: 1;
}

.trust-label {
  font-size: 0.85rem;
  color: var(--slate-500);
  font-weight: 500;
}

/* --- Service Cards ---------------------------------------- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}

.service-card {
  background: var(--white);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-md);
  padding: 2rem;
  transition: all 0.3s ease;
  position: relative;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--blue);
  border-radius: var(--radius-md) var(--radius-md) 0 0;
  opacity: 0;
  transition: opacity var(--transition);
}

.service-card:hover {
  border-color: var(--slate-300);
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}

.service-card:hover::before {
  opacity: 1;
}

.service-card-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  background: var(--slate-50);
  border-radius: var(--radius-md);
  margin-bottom: 1.25rem;
  color: var(--navy);
}

.service-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.service-card p {
  font-size: 0.9rem;
  color: var(--slate-600);
  line-height: 1.65;
  margin: 0;
}

/* --- Testimonials ----------------------------------------- */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.5rem;
}

.testimonial-card {
  background: var(--white);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-md);
  padding: 2rem;
  position: relative;
}

.testimonial-card::before {
  content: '\201C';
  position: absolute;
  top: 1rem;
  left: 1.5rem;
  font-size: 3rem;
  font-family: Georgia, serif;
  color: var(--blue);
  opacity: 0.3;
  line-height: 1;
}

.testimonial-quote {
  font-size: 0.95rem;
  color: var(--slate-700);
  line-height: 1.7;
  margin-bottom: 1.25rem;
  padding-top: 1rem;
  font-style: italic;
}

.testimonial-author {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--navy);
}

/* --- Credentials ------------------------------------------ */
.credentials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 1.5rem;
}

.credential-card {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.5rem;
  background: var(--white);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-md);
}

.credential-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  min-width: 40px;
  background: var(--slate-50);
  border-radius: var(--radius-sm);
  color: var(--green);
}

.credential-card h4 {
  font-size: 0.95rem;
  margin-bottom: 0.25rem;
}

.credential-card p {
  font-size: 0.85rem;
  color: var(--slate-500);
  margin: 0;
  line-height: 1.5;
}

/* --- Contact Form ----------------------------------------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 3rem;
  align-items: start;
}

.contact-form {
  background: var(--white);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-md);
  padding: 2.5rem;
}

.contact-form h2 {
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--slate-700);
  margin-bottom: 0.4rem;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 0.7rem 0.9rem;
  font-size: 0.9rem;
  font-family: var(--font-body);
  border: 1px solid var(--slate-300);
  border-radius: var(--radius-sm);
  background: var(--white);
  color: var(--slate-800);
  transition: border-color var(--transition), box-shadow var(--transition);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(0, 166, 206, 0.15);
}

.form-group textarea {
  min-height: 120px;
  resize: vertical;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.contact-sidebar {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.sidebar-card {
  background: var(--slate-50);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-md);
  padding: 1.75rem;
}

.sidebar-card h3 {
  font-size: 1rem;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.sidebar-card ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.sidebar-card li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.5rem 0;
  font-size: 0.9rem;
  color: var(--slate-600);
  border-bottom: 1px solid var(--slate-200);
}

.sidebar-card li:last-child {
  border-bottom: none;
}

.sidebar-card .icon-sm {
  color: var(--navy);
  flex-shrink: 0;
}

/* --- CTA Banner ------------------------------------------- */
.cta-banner {
  text-align: center;
  padding: 5rem 2rem;
}

.cta-banner h2 {
  font-size: 2rem;
  margin-bottom: 0.75rem;
}

.cta-banner p {
  margin-bottom: 2rem;
  font-size: 1.1rem;
}

/* --- Service Area ----------------------------------------- */
.area-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.area-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.45rem 1rem;
  background: var(--slate-50);
  border: 1px solid var(--slate-200);
  border-radius: 100px;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--slate-700);
}

.area-tag .icon-sm {
  width: 14px;
  height: 14px;
}

/* --- About Layout ----------------------------------------- */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.about-grid h2 {
  font-size: 2rem;
}

.about-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  margin-top: 2rem;
}

.about-stat {
  padding: 1rem;
  background: var(--slate-50);
  border-radius: var(--radius-md);
}

.about-stat .stat-value {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--navy);
  line-height: 1;
}

.about-stat .stat-label {
  font-size: 0.8rem;
  color: var(--slate-500);
  margin-top: 0.25rem;
}

/* --- Certification List ----------------------------------- */
.cert-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.cert-list li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--slate-100);
  font-size: 0.9rem;
  color: var(--slate-700);
}

.cert-list li:last-child {
  border-bottom: none;
}

.cert-list .icon-sm {
  color: var(--green);
  flex-shrink: 0;
}

/* --- 404 Page --------------------------------------------- */
.page-404 {
  text-align: center;
  padding: 6rem 2rem;
  min-height: 60vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.error-code {
  font-family: var(--font-display);
  font-size: 8rem;
  font-weight: 800;
  color: var(--slate-200);
  line-height: 1;
  margin-bottom: 1rem;
  position: relative;
}

.pool-wave {
  display: block;
  margin: 0 auto 2rem;
}

.pool-wave svg {
  width: 200px;
  height: 40px;
}

.page-404 h1 {
  font-size: 1.75rem;
  margin-bottom: 0.75rem;
}

.page-404 p {
  color: var(--slate-500);
  max-width: 450px;
  margin: 0 auto 2rem;
}

.page-404 .main-cta {
  margin-top: 0.5rem;
}

@keyframes wave-drift {
  0%, 100% { transform: translateX(0); }
  50% { transform: translateX(15px); }
}

.wave-animated {
  animation: wave-drift 3s ease-in-out infinite;
}

/* --- Icon Utility ----------------------------------------- */
.icon-sm {
  width: 18px;
  height: 18px;
}

.icon-md {
  width: 24px;
  height: 24px;
}

/* --- Footer ----------------------------------------------- */
.site-footer {
  background: var(--slate-900);
  color: var(--slate-400);
}

.footer-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.5fr;
  gap: 2.5rem;
  padding: 4rem 0 3rem;
}

.footer-logo {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  margin-bottom: 1rem;
}

.footer-logo .logo-name {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.25rem;
  color: var(--white);
}

.footer-logo .logo-sub {
  font-size: 0.7rem;
  color: var(--slate-500);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.footer-tagline {
  font-size: 0.9rem;
  color: var(--slate-400);
  margin-bottom: 1rem;
  line-height: 1.6;
}

.rating-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.8rem;
  color: var(--slate-400);
}

.rating-badge .icon-sm {
  color: #F59E0B;
  width: 14px;
  height: 14px;
}

.site-footer h4 {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--slate-300);
  margin-bottom: 1.25rem;
}

.footer-links ul,
.footer-services ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li,
.footer-services li {
  margin-bottom: 0.6rem;
}

.footer-links a,
.footer-services a {
  font-size: 0.875rem;
  color: var(--slate-400);
  transition: color var(--transition);
}

.footer-links a:hover,
.footer-services a:hover {
  color: var(--white);
}

.contact-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.contact-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  margin-bottom: 0.75rem;
  font-size: 0.875rem;
  color: var(--slate-400);
}

.contact-list .icon-sm {
  color: var(--slate-500);
  margin-top: 2px;
  flex-shrink: 0;
}

.contact-list a {
  color: var(--slate-400);
}

.contact-list a:hover {
  color: var(--white);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 1.5rem 0;
}

.footer-bottom-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.footer-bottom p {
  font-size: 0.8rem;
  color: var(--slate-500);
  margin: 0;
}

.footer-credentials {
  font-size: 0.75rem !important;
  color: var(--slate-600) !important;
}

/* --- Scroll Animations ------------------------------------ */
.fade-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* --- Responsive ------------------------------------------- */
@media (max-width: 1024px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .mobile-toggle {
    display: flex;
  }

  .primary-nav {
    position: fixed;
    top: 0;
    right: 0;
    width: 280px;
    height: 100vh;
    background: var(--white);
    box-shadow: var(--shadow-xl);
    transform: translateX(100%);
    transition: transform 0.3s ease;
    padding: 5rem 1.5rem 2rem;
    z-index: 999;
  }

  .primary-nav.open {
    transform: translateX(0);
  }

  .primary-nav ul {
    flex-direction: column;
    gap: 0.25rem;
    align-items: stretch;
  }

  .primary-nav a {
    padding: 0.75rem 1rem;
    font-size: 1rem;
  }

  .nav-cta {
    margin-top: 1rem;
  }

  .nav-cta .main-cta {
    display: block;
    text-align: center;
    width: 100%;
  }

  .hero {
    padding: 4rem 0 3.5rem;
  }

  .hero h1 {
    font-size: 2.25rem;
  }

  .page-hero h1 {
    font-size: 2rem;
  }

  .section {
    padding: 3.5rem 0;
  }

  .section-header h2 {
    font-size: 1.75rem;
  }

  .trust-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .footer-bottom-inner {
    flex-direction: column;
    text-align: center;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .error-code {
    font-size: 5rem;
  }
}

@media (max-width: 480px) {
  .hero h1 {
    font-size: 1.85rem;
  }

  .hero .tagline {
    font-size: 1.05rem;
  }

  .hero-actions {
    flex-direction: column;
  }

  .hero-actions .main-cta,
  .hero-actions .btn-outline {
    text-align: center;
    width: 100%;
  }

  .trust-number {
    font-size: 2rem;
  }
}

/* --- Mobile Nav Overlay ----------------------------------- */
.nav-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.4);
  z-index: 998;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.nav-overlay.active {
  opacity: 1;
  pointer-events: all;
}
