/* ============================================================
   AMERICA AFFORDABLE HOME IMPROVEMENT — styles.css
   Navy #1A2B5C | Red #C8102E | Dark #0a0d14
   ============================================================ */

:root {
  --navy:      #1A2B5C;
  --red:       #C8102E;
  --red-dark:  #a00e24;
  --dark:      #0a0d14;
  --dark-2:    #0f1520;
  --dark-3:    #111827;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { background: var(--dark); color: #fff; font-family: 'Barlow', sans-serif; -webkit-font-smoothing: antialiased; }

/* ── FONT HELPERS ── */
.font-oswald          { font-family: 'Oswald', sans-serif; }
.font-barlow          { font-family: 'Barlow', sans-serif; }
.font-barlow-condensed{ font-family: 'Barlow Condensed', sans-serif; }
.font-700 { font-weight: 700; }
.font-600 { font-weight: 600; }

/* ── SCROLLBAR ── */
::-webkit-scrollbar       { width: 4px; }
::-webkit-scrollbar-track { background: var(--dark); }
::-webkit-scrollbar-thumb { background: var(--red); border-radius: 2px; }


/* ════════════════════════════════════════════
   NAVIGATION
   ════════════════════════════════════════════ */
#navbar { background: transparent; }
#navbar.scrolled {
  background: rgba(10,13,20,0.96);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(200,16,46,0.2);
}
.nav-inner { transition: padding 0.4s ease; }
#navbar.scrolled .nav-inner { padding-top: 0.6rem; padding-bottom: 0.6rem; }

/* Nav logo image */
.nav-logo-img {
  height: 44px;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 0 6px rgba(200,16,46,0.25));
}

/* Nav links */
.nav-link {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #d1d5db;
  text-decoration: none;
  position: relative;
  transition: color 0.2s;
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: -3px; left: 0;
  width: 0; height: 1px;
  background: var(--red);
  transition: width 0.3s ease;
}
.nav-link:hover { color: #fff; }
.nav-link:hover::after { width: 100%; }

.nav-cta {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #fff;
  text-decoration: none;
  border: 1px solid var(--red);
  padding: 0.5rem 1.25rem;
  transition: all 0.3s ease;
}
.nav-cta:hover { background: var(--red); box-shadow: 0 0 18px rgba(200,16,46,0.4); }

/* Mobile menu */
.mobile-menu-bg { background: rgba(10,13,20,0.98); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); }
#mobile-menu.open { opacity: 1; pointer-events: all; }
.ham-line { transition: all 0.3s ease; }
#menu-btn.open .ham-line:nth-child(1) { transform: rotate(45deg) translate(4px, 5px); }
#menu-btn.open .ham-line:nth-child(2) { opacity: 0; }
#menu-btn.open .ham-line:nth-child(3) { transform: rotate(-45deg) translate(4px, -5px); }


/* ════════════════════════════════════════════
   HERO
   ════════════════════════════════════════════ */
.hero-section { min-height: 100svh; }

.hero-bg-base {
  background: linear-gradient(155deg, #060810 0%, #0a0d14 35%, #0d1428 65%, #090c15 100%);
}
.hero-grid {
  background-image:
    linear-gradient(rgba(26,43,92,0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(26,43,92,0.07) 1px, transparent 1px);
  background-size: 56px 56px;
}
.hero-vignette {
  background: radial-gradient(ellipse at 60% 50%, transparent 35%, rgba(10,13,20,0.65) 100%);
}
.hero-stripe-1 {
  top: 20%; left: -5%; width: 55%; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(200,16,46,0.18), transparent);
  transform: rotate(-12deg);
}
.hero-stripe-2 {
  bottom: 28%; right: -5%; width: 45%; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(26,43,92,0.25), transparent);
  transform: rotate(-12deg);
}

/* Hero text */
.hero-outline-red {
  -webkit-text-stroke: 3px var(--red);
  color: transparent;
}

/* Glass badge */
.glass-badge {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.09);
  backdrop-filter: blur(6px);
}

/* Buttons */
.btn-red {
  background: var(--red);
  border: 1px solid var(--red);
  color: #fff;
  text-decoration: none;
  transition: all 0.3s ease;
  clip-path: polygon(6px 0%, 100% 0%, calc(100% - 6px) 100%, 0% 100%);
}
.btn-red:hover { background: var(--red-dark); box-shadow: 0 6px 24px rgba(200,16,46,0.4); transform: translateY(-1px); }

.btn-outline {
  background: transparent;
  border: 1px solid rgba(255,255,255,0.22);
  color: #fff;
  text-decoration: none;
  transition: all 0.3s ease;
  clip-path: polygon(6px 0%, 100% 0%, calc(100% - 6px) 100%, 0% 100%);
}
.btn-outline:hover { border-color: rgba(255,255,255,0.55); background: rgba(255,255,255,0.05); }

/* Trust chips */
.trust-chip {
  padding: 5px 12px;
  border: 1px solid rgba(255,255,255,0.07);
  background: rgba(255,255,255,0.02);
}

/* Hero logo */
.hero-logo-frame {
  position: relative;
  width: 360px;
  height: 280px;
  display: flex;
  align-items: center;
  justify-content: center;
}
@media (max-width: 1024px) { .hero-logo-frame { width: 300px; height: 230px; } }
@media (max-width: 640px)  { .hero-logo-frame { width: 260px; height: 200px; } }

.hero-logo-glow {
  position: absolute;
  inset: -30px;
  background: radial-gradient(ellipse at center,
    rgba(200,16,46,0.12) 0%,
    rgba(26,43,92,0.1)   40%,
    transparent          70%
  );
  border-radius: 50%;
  animation: logoGlowPulse 4s ease-in-out infinite alternate;
}
@keyframes logoGlowPulse {
  from { opacity: 0.6; transform: scale(0.97); }
  to   { opacity: 1;   transform: scale(1.03); }
}

.hero-logo-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  position: relative;
  z-index: 1;
  filter:
    drop-shadow(0 0 20px rgba(200,16,46,0.3))
    drop-shadow(0 0 50px rgba(26,43,92,0.4))
    drop-shadow(0 4px 20px rgba(0,0,0,0.5));
  transition: filter 0.5s ease;
}
.hero-logo-img:hover {
  filter:
    drop-shadow(0 0 30px rgba(200,16,46,0.5))
    drop-shadow(0 0 70px rgba(26,43,92,0.5))
    drop-shadow(0 4px 20px rgba(0,0,0,0.6));
}

/* Scroll line */
.scroll-line { animation: scrollPulse 2s ease-in-out infinite; }
@keyframes scrollPulse {
  0%, 100% { opacity: 0.3; }
  50%       { opacity: 1; }
}


/* ════════════════════════════════════════════
   SHARED SECTION UTILITIES
   ════════════════════════════════════════════ */
.section-bg-2  { background: linear-gradient(180deg, var(--dark-2, #0f1520) 0%, var(--dark-3, #111827) 100%); }
.section-bg-3  { background: linear-gradient(180deg, var(--dark-3, #111827) 0%, var(--dark-2, #0f1520) 100%); }
.section-rule  { background: linear-gradient(90deg, transparent, rgba(200,16,46,0.25), transparent); }

.section-label {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--red);
  display: block;
  margin-bottom: 0.5rem;
  padding-left: 1.25rem;
  position: relative;
}
.section-label::before {
  content: '';
  position: absolute;
  left: 0; top: 50%;
  transform: translateY(-50%);
  width: 0.85rem; height: 1px;
  background: var(--red);
}


/* ════════════════════════════════════════════
   SERVICES
   ════════════════════════════════════════════ */
.service-card {
  padding: 1.75rem;
  background: rgba(255,255,255,0.025);
  border: 1px solid rgba(255,255,255,0.07);
  border-top: 2px solid transparent;
  position: relative;
  transition: all 0.35s ease;
  overflow: hidden;
}
.service-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(200,16,46,0.04) 0%, transparent 55%);
  opacity: 0;
  transition: opacity 0.35s;
}
.service-card:hover {
  border-top-color: var(--red);
  background: rgba(255,255,255,0.04);
  transform: translateY(-3px);
  box-shadow: 0 16px 36px rgba(0,0,0,0.35);
}
.service-card:hover::before { opacity: 1; }

.svc-icon {
  width: 52px; height: 52px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(200,16,46,0.07);
  border: 1px solid rgba(200,16,46,0.14);
  margin-bottom: 1rem;
  transition: all 0.3s;
}
.service-card:hover .svc-icon { background: rgba(200,16,46,0.14); border-color: rgba(200,16,46,0.3); }

.svc-title {
  font-family: 'Oswald', sans-serif;
  font-weight: 600;
  font-size: 1.1rem;
  letter-spacing: 0.05em;
  color: #fff;
  margin-bottom: 0.5rem;
}
.svc-body {
  font-family: 'Barlow', sans-serif;
  font-size: 0.85rem;
  color: #9ca3af;
  line-height: 1.6;
}


/* ════════════════════════════════════════════
   WHY US
   ════════════════════════════════════════════ */
.why-logo-frame {
  position: relative;
  width: 340px;
  height: 260px;
  display: flex;
  align-items: center;
  justify-content: center;
}
@media (max-width: 640px) { .why-logo-frame { width: 260px; height: 200px; } }

.why-logo-glow {
  position: absolute;
  inset: -20px;
  background: radial-gradient(ellipse at center,
    rgba(26,43,92,0.35) 0%,
    transparent 70%
  );
  border-radius: 50%;
}
.why-logo-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  position: relative;
  z-index: 1;
  filter:
    drop-shadow(0 0 16px rgba(200,16,46,0.25))
    drop-shadow(0 0 40px rgba(26,43,92,0.35));
}

.why-point {
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}
.why-point:last-child { border-bottom: none; padding-bottom: 0; }

.why-num {
  font-family: 'Oswald', sans-serif;
  font-weight: 700;
  font-size: 1.6rem;
  color: var(--red);
  line-height: 1;
  flex-shrink: 0;
  width: 2rem;
}


/* ════════════════════════════════════════════
   SERVICE AREAS
   ════════════════════════════════════════════ */
.area-card {
  padding: 2rem 1.25rem;
  background: rgba(255,255,255,0.025);
  border: 1px solid rgba(255,255,255,0.06);
  text-align: center;
  transition: all 0.35s ease;
  position: relative;
  overflow: hidden;
}
.area-card::after {
  content: '';
  position: absolute;
  bottom: 0; left: 50%;
  transform: translateX(-50%);
  width: 0; height: 2px;
  background: var(--red);
  transition: width 0.35s ease;
}
.area-card:hover { background: rgba(26,43,92,0.12); border-color: rgba(26,43,92,0.35); transform: translateY(-3px); }
.area-card:hover::after { width: 50%; }

.area-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--red);
  box-shadow: 0 0 10px rgba(200,16,46,0.6);
  transition: box-shadow 0.3s;
}
.area-card:hover .area-dot { box-shadow: 0 0 18px rgba(200,16,46,0.9); }


/* ════════════════════════════════════════════
   CTA BANNER
   ════════════════════════════════════════════ */
.cta-bg {
  background: linear-gradient(135deg, #080c18 0%, #0d1428 50%, #070b14 100%);
}
.cta-stripes {
  background-image: repeating-linear-gradient(
    -45deg,
    rgba(200,16,46,0.04) 0px, rgba(200,16,46,0.04) 1px,
    transparent 1px, transparent 18px
  );
}
.cta-glass {
  background: rgba(26,43,92,0.12);
  border: 1px solid rgba(26,43,92,0.35);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}


/* ════════════════════════════════════════════
   CONTACT
   ════════════════════════════════════════════ */
.contact-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  text-decoration: none;
}
.contact-icon {
  width: 44px; height: 44px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(200,16,46,0.08);
  border: 1px solid rgba(200,16,46,0.15);
  color: var(--red);
  flex-shrink: 0;
  transition: all 0.3s;
}
.contact-row:hover .contact-icon { background: rgba(200,16,46,0.15); border-color: rgba(200,16,46,0.3); }

/* Form */
.form-wrap {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.07);
  border-top: 2px solid var(--red);
  padding: 2.25rem;
}
@media (min-width: 768px) { .form-wrap { padding: 2.5rem; } }

.form-label {
  display: block;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #6b7280;
  margin-bottom: 0.4rem;
}
.form-field {
  width: 100%;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.1);
  color: #fff;
  padding: 0.8rem 1rem;
  font-family: 'Barlow', sans-serif;
  font-size: 0.9rem;
  outline: none;
  transition: border-color 0.3s, background 0.3s;
  -webkit-appearance: none;
  appearance: none;
}
.form-field::placeholder { color: rgba(255,255,255,0.22); }
.form-field:focus { border-color: rgba(200,16,46,0.5); background: rgba(255,255,255,0.06); }

.form-select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='none' stroke='rgba(255,255,255,0.4)' stroke-width='2' viewBox='0 0 24 24'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
  cursor: pointer;
}
.form-select option { background: #0a0d14; color: #fff; }

.form-submit {
  width: 100%;
  background: var(--red);
  border: 1px solid var(--red);
  cursor: pointer;
  clip-path: polygon(6px 0%, 100% 0%, calc(100% - 6px) 100%, 0% 100%);
  transition: all 0.3s ease;
  letter-spacing: 0.15em;
}
.form-submit:hover { background: var(--red-dark); box-shadow: 0 6px 24px rgba(200,16,46,0.4); transform: translateY(-1px); }


/* ════════════════════════════════════════════
   FOOTER
   ════════════════════════════════════════════ */
.footer-bg   { background: linear-gradient(180deg, var(--dark) 0%, #060810 100%); }
.footer-rule { background: linear-gradient(90deg, transparent, rgba(200,16,46,0.3), transparent); }

.footer-logo {
  height: 70px;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 0 8px rgba(200,16,46,0.2));
}


/* ════════════════════════════════════════════
   GSAP PRE-ANIMATION STATES
   ════════════════════════════════════════════ */
[data-service],
[data-why],
[data-area],
[data-reveal] {
  opacity: 0;
  transform: translateY(24px);
}


/* ════════════════════════════════════════════
   RESPONSIVE
   ════════════════════════════════════════════ */
@media (max-width: 640px) {
  .form-wrap { padding: 1.5rem; }
  .service-card { padding: 1.35rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}


/* ════════════════════════════════════════════
   PROCESS SECTION
   ════════════════════════════════════════════ */
.process-card {
  padding: 2rem 1.75rem;
  background: rgba(255,255,255,0.025);
  border: 1px solid rgba(255,255,255,0.07);
  position: relative;
  transition: all 0.35s ease;
}
.process-card:hover {
  background: rgba(255,255,255,0.04);
  border-color: rgba(200,16,46,0.2);
  transform: translateY(-3px);
  box-shadow: 0 16px 36px rgba(0,0,0,0.35);
}
.process-step-num {
  font-family: 'Oswald', sans-serif;
  font-weight: 700;
  font-size: 3.5rem;
  line-height: 1;
  color: rgba(200,16,46,0.12);
  position: absolute;
  top: 1rem;
  right: 1.25rem;
  letter-spacing: -0.02em;
}
.process-icon-wrap {
  width: 52px; height: 52px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(200,16,46,0.07);
  border: 1px solid rgba(200,16,46,0.14);
  margin-bottom: 1rem;
  transition: all 0.3s;
}
.process-card:hover .process-icon-wrap {
  background: rgba(200,16,46,0.14);
  border-color: rgba(200,16,46,0.3);
}

/* ════════════════════════════════════════════
   SERVICE TAGS
   ════════════════════════════════════════════ */
.svc-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 1rem;
}
.svc-tag {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(200,16,46,0.8);
  border: 1px solid rgba(200,16,46,0.2);
  padding: 2px 8px;
}

/* ════════════════════════════════════════════
   AREA TRAVEL NOTE
   ════════════════════════════════════════════ */
.area-note {
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.06);
  border-left: 2px solid var(--red);
}

/* ════════════════════════════════════════════
   EXPECT BOX (contact section)
   ════════════════════════════════════════════ */
.expect-box {
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.06);
  padding: 1.25rem 1.5rem;
  border-left: 2px solid rgba(200,16,46,0.4);
}

/* ════════════════════════════════════════════
   FOOTER BADGES
   ════════════════════════════════════════════ */
.footer-badge {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #6b7280;
  border: 1px solid rgba(255,255,255,0.07);
  padding: 3px 10px;
}

/* ════════════════════════════════════════════
   GSAP INITIAL STATES — fix section-hdr
   section-hdr uses JS to animate, starts visible
   Only data-* attrs start invisible
   ════════════════════════════════════════════ */
[data-process] {
  opacity: 0;
  transform: translateY(24px);
}

/* Override: section-hdr should NOT start hidden
   (previous rule had data-reveal on section headers
   which made entire sections appear blank) */
.section-hdr {
  opacity: 1 !important;
  transform: none !important;
}
