/* ===== SKIP LINK (ADA) ===== */
.skip-link {
  position: absolute;
  top: -100%;
  left: 16px;
  padding: 10px 20px;
  background: var(--navy);
  color: var(--white);
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 0.9rem;
  border-radius: 0 0 8px 8px;
  z-index: 9999;
  transition: top 0.2s;
}

.skip-link:focus {
  top: 0;
  outline: 3px solid var(--orange);
  outline-offset: 2px;
}

/* ===== FOCUS VISIBLE (ADA) ===== */
:focus-visible {
  outline: 3px solid var(--orange);
  outline-offset: 3px;
  border-radius: 4px;
}

/* Orange buttons need a contrasting focus ring */
.btn-orange:focus-visible {
  outline: 3px solid var(--navy-dk);
  outline-offset: 3px;
}

/* Dark sections: use cream focus ring so it's visible */
.section-navy :focus-visible,
.section-dark-navy :focus-visible {
  outline-color: var(--cream);
}

/* FAQ summary gets its own focus style */
.faq-item summary:focus-visible {
  outline: 3px solid var(--navy);
  outline-offset: -3px;
}

/* ===== FADE-IN ANIMATION ===== */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== RESET & BASE ===== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Open Sans', sans-serif;
  font-size: 16px;
  color: #1a1a1a;
  line-height: 1.6;
}

img {
  display: block;
  max-width: 100%;
}

a {
  text-decoration: none;
  color: inherit;
}

/* ===== VARIABLES ===== */
:root {
  --navy:      #003C78;
  --orange:    #F08C00;
  --orange-dk: #DC6400;
  --navy-dk:   #002864;
  --cream:     #F0DCB4;
  --white:     #FFFFFF;
}

/* ===== LAYOUT ===== */
.container {
  width: 90%;
  max-width: 1100px;
  margin: 0 auto;
}

section {
  padding: 72px 0;
}

h2 {
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  margin-bottom: 12px;
  letter-spacing: -0.02em;
}

.section-sub {
  color: #555;
  margin-bottom: 40px;
  font-size: 1.05rem;
}

.text-center {
  text-align: center;
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-block;
  padding: 14px 32px;
  border-radius: 50px;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease, transform 0.15s ease, box-shadow 0.25s ease;
  white-space: nowrap;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.18);
}

.btn-orange {
  background: var(--orange);
  color: var(--navy-dk); /* #002864 on #F08C00 = 5.6:1 — passes WCAG AA */
  border: 2px solid var(--orange);
}

.btn-orange:hover {
  background: var(--orange-dk);
  border-color: var(--orange-dk);
  color: var(--navy-dk); /* #002864 on #DC6400 = 4.7:1 — passes WCAG AA */
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border: 2px solid var(--white);
}

.btn-outline:hover {
  background: var(--white);
  color: var(--navy);
}

/* ===== SECTION BACKGROUNDS ===== */
.section-cream  { background: var(--cream); }
.section-white  { background: #f8f9fc; }
.section-navy   { background: linear-gradient(135deg, var(--navy) 0%, #004d99 100%); color: var(--white); }
.section-dark-navy { background: linear-gradient(135deg, var(--navy-dk) 0%, var(--navy) 100%); color: var(--white); }

.section-navy h2,
.section-dark-navy h2 {
  color: var(--white);
}

.section-navy p,
.section-dark-navy p {
  color: rgba(255,255,255,0.85);
  margin-bottom: 32px;
}

/* ===== HEADER ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--white);
  box-shadow: 0 2px 8px rgba(0,0,0,0.25);
  border-bottom: 3px solid var(--orange);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
}

.logo {
  height: 75px;
  width: auto;
}

.nav {
  display: flex;
  align-items: center;
  gap: 24px;
}

.nav a {
  color: var(--navy);
  font-size: 0.9rem;
  font-weight: 600;
  transition: color 0.2s;
}

.nav a:not(.btn):hover {
  color: var(--cream); /* #F0DCB4 on #003C78 = 7.8:1 — passes WCAG AA */
}

.nav-phone {
  font-weight: 700;
  color: var(--white) !important;
}

/* ===== HEADER CTAS (mobile only) ===== */
.header-ctas {
  display: none;
}

/* ===== HAMBURGER ===== */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.hamburger span {
  display: block;
  width: 26px;
  height: 3px;
  background: var(--white);
  border-radius: 2px;
  transition: all 0.25s ease;
}

.hamburger.open span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}
.hamburger.open span:nth-child(2) {
  opacity: 0;
}
.hamburger.open span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* ===== HERO ===== */
.hero {
  position: relative;
  width: 100%;
  padding: 0;
  overflow: hidden;
}

.hero-img {
  display: block;
  width: 100%;
  height: auto;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0, 28, 60, 0.65) 0%,
    rgba(0, 28, 60, 0.20) 40%,
    transparent 100%
  );
  pointer-events: none;
}

.hero-content {
  position: absolute;
  top: 10%;
  right: 5%;
  text-align: right;
  max-width: 30%;
  z-index: 1;
  color: var(--white);
}

.hero-content h1 {
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(2rem, 5vw, 3.2rem);
  line-height: 1.2;
  margin-bottom: 16px;
}

.hero-content p {
  font-size: clamp(1rem, 2vw, 1.25rem);
  margin-bottom: 36px;
  color: rgba(255,255,255,0.9);
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

/* ===== SERVICES ===== */
.services h2 {
  color: var(--navy);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.service-card {
  background: var(--white);
  border-radius: 16px;
  padding: 36px 24px;
  text-align: center;
  box-shadow: 0 2px 12px rgba(0,0,0,0.07);
  border-top: 4px solid transparent;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 28px rgba(0,0,0,0.12);
  border-top-color: var(--orange);
}

.service-card i {
  font-size: 2.2rem;
  color: var(--orange);
  margin-bottom: 14px;
  display: block;
}

.service-card span {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--navy);
}

/* ===== WHY ERIC ===== */
.why-eric h2 {
  text-align: center;
  color: var(--navy);
  margin-bottom: 40px;
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  text-align: center;
}

.trust-badge {
  background: var(--white);
  border-radius: 16px;
  padding: 36px 24px;
  box-shadow: 0 4px 16px rgba(0, 60, 120, 0.08);
  border-bottom: 4px solid var(--orange);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.trust-badge:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 28px rgba(0, 60, 120, 0.13);
}

.trust-badge i {
  font-size: 2.6rem;
  color: var(--orange);
  margin-bottom: 16px;
  display: block;
}

.trust-badge h3 {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.1rem;
  color: var(--navy);
  margin-bottom: 8px;
}

.trust-badge p {
  color: #666;
  font-size: 0.95rem;
  line-height: 1.5;
}

/* ===== REVIEWS ===== */
.reviews h2 {
  margin-bottom: 12px;
}

/* ===== FAQ ===== */
.faq h2 {
  color: var(--navy);
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 780px;
  margin: 0 auto;
}

.faq-item {
  background: var(--white);
  border-radius: 12px;
  border-left: 4px solid var(--orange);
  box-shadow: 0 2px 10px rgba(0,0,0,0.06);
  overflow: hidden;
  transition: box-shadow 0.2s ease;
}

.faq-item[open] {
  box-shadow: 0 4px 18px rgba(0,0,0,0.10);
}

.faq-item summary {
  padding: 18px 20px;
  font-family: 'Montserrat', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  color: var(--navy);
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  user-select: none;
}

.faq-item summary::-webkit-details-marker { display: none; }

.faq-item summary::after {
  content: '+';
  font-size: 1.4rem;
  font-weight: 400;
  color: var(--orange);
  transition: transform 0.25s ease;
  flex-shrink: 0;
  margin-left: 12px;
}

.faq-item[open] summary::after {
  transform: rotate(45deg);
}

.faq-item p {
  padding: 0 20px 18px;
  color: #555;
  font-size: 0.97rem;
  line-height: 1.7;
}

.faq-item a {
  color: var(--navy); /* #003C78 on white = 10.5:1 — passes WCAG AA */
  font-weight: 600;
  text-decoration: underline; /* distinguishable without relying on color alone */
}

.faq-item a:hover {
  color: var(--navy-dk);
}

/* ===== FOOTER ADDRESS ===== */
.footer-address {
  font-style: normal;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.7);
  text-align: center;
  line-height: 1.7;
}

.footer-address a {
  color: rgba(255,255,255,0.85);
  transition: color 0.2s;
}

.footer-address a:hover {
  color: var(--orange);
}

/* ===== CONTACT ===== */
.contact .hero-ctas {
  justify-content: center;
}

/* ===== FOOTER ===== */
.site-footer {
  background: var(--white);
  color: var(--navy-dk);
  padding: 36px 0;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  text-align: center;
}

.footer-logo {
  height: 75px;
  width: auto;
}

.footer-copy {
  font-size: 0.85rem;
  color: var(--navy-dk);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
}

.footer-links a {
  font-size: 0.85rem;
  color: var(--navy-dk);
  transition: color 0.2s;
}

.footer-links a:hover {
  color: var(--orange);
}
.footer-address a{
color: var(--navy-dk);
}

.footer-address {
color: var(--navy-dk);
}

/* ===== REDUCED MOTION (ADA) ===== */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .fade-in {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .fade-in.visible {
    opacity: 1;
    transform: none;
  }

  .btn,
  .service-card,
  .trust-badge,
  .faq-item,
  .faq-item summary::after,
  .hamburger span {
    transition: none;
  }

  .btn:hover,
  .service-card:hover,
  .trust-badge:hover {
    transform: none;
    box-shadow: none;
  }
}

/* ===== RESPONSIVE: TABLET (≤768px) ===== */
@media (max-width: 768px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .trust-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .trust-badge:last-child {
    grid-column: span 2;
    max-width: 320px;
    margin: 0 auto;
  }

  .header-inner {
    flex-wrap: wrap;
  }

  .header-ctas {
    display: flex;
    width: 100%;
    gap: 8px;
    padding: 6px 0 8px;
  }

  .header-ctas .btn {
    flex: 1;
    text-align: center;
    font-size: 0.82rem;
    padding: 10px 12px;
  }

  /* hero: stack text below image instead of overlaying it */
  .hero {
    display: flex;
    flex-direction: column;
  }

  .hero-overlay {
    display: none;
  }

  .hero-content {
    position: static;
    max-width: 100%;
    text-align: center;
    color: var(--navy-dk);
    background: var(--cream);
    padding: 28px 20px;
  }

  .hero-content h1 {
    color: var(--navy);
    margin-bottom: 12px;
  }

  .hero-content p {
    color: #555;
    margin-bottom: 24px;
  }

  .hero-ctas {
    justify-content: center;
  }

  .hero-content .btn-outline {
    color: var(--navy);
    border-color: var(--navy);
  }

  .hamburger {
    display: flex;
  }

  .nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--navy);
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 8px 0 16px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
  }

  .nav.open {
    display: flex;
  }

  .nav a {
    padding: 12px 24px;
    width: 100%;
  }

  .nav .btn {
    margin: 8px 24px 0;
    width: calc(100% - 48px);
    text-align: center;
  }
}

/* ===== RESPONSIVE: MOBILE (≤480px) ===== */
@media (max-width: 480px) {
  section {
    padding: 52px 0;
  }

  .services-grid {
    grid-template-columns: 1fr;
  }

  .trust-grid {
    grid-template-columns: 1fr;
  }

  .trust-badge:last-child {
    grid-column: auto;
    max-width: none;
    margin: 0;
  }

  .hero-ctas {
    flex-direction: column;
  }

  .hero-ctas .btn {
    text-align: center;
  }
}
