/* =========================================
   1 Clean Hood - styles.css
   Brand: Sand Tan #e1b382 | Night Blue #2d545e
   ========================================= */

/* --- Reset & Tokens --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --orange:       #F59E0B;
  --orange-dark:  #D97706;
  --blue:         #1E293B;
  --blue-dark:    #0F172A;
  --white:        #FFFFFF;
  --off-white:    #F1F5F9;
  --text:         #0F172A;
  --muted:     #555;
  --radius:    10px;
  --transition: 0.3s ease;
  --max-w:     1180px;
  --section-pad: 5rem 1.5rem;
  font-size: 16px;
}

html { scroll-behavior: smooth; overflow-x: clip; }

body {
  font-family: 'Inter', sans-serif;
  color: var(--text);
  background: var(--white);
  overflow-x: clip;
}

h1, h2, h3, .logo {
  font-family: 'Bebas Neue', sans-serif;
  letter-spacing: 0.04em;
}

h2 { font-size: clamp(2rem, 4vw, 3rem); color: var(--blue-dark); margin-bottom: .5rem; }
h3 { font-size: 1.2rem; margin-bottom: .4rem; color: var(--blue); }
p  { line-height: 1.7; color: var(--muted); }
a  { color: inherit; text-decoration: none; }
ul { list-style: none; }

.container   { max-width: var(--max-w); margin: 0 auto; padding: 0 1.5rem; }
.section-sub { color: var(--muted); margin-bottom: 2.5rem; max-width: 600px; }
.grid-3      { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.5rem; }
.grid-2      { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.5rem; }

.btn-primary {
  display: inline-block;
  background: var(--orange);
  color: var(--blue-dark);
  font-weight: 700;
  padding: .75rem 2rem;
  border-radius: 50px;
  border: none;
  cursor: pointer;
  transition: background var(--transition), transform var(--transition);
  font-size: 1rem;
  font-family: 'Inter', sans-serif;
}
.btn-primary:hover { background: var(--orange-dark); transform: translateY(-2px); }

.btn-secondary {
  display: inline-block;
  border: 2px solid var(--white);
  color: var(--white);
  padding: .75rem 2rem;
  border-radius: 50px;
  font-weight: 600;
  transition: background var(--transition);
}
.btn-secondary:hover { background: rgba(255,255,255,.15); }

/* --- NAV --- */
#site-header {
  position: fixed; top: 0; width: 100%; z-index: 100;
  background: var(--blue-dark);
  box-shadow: 0 2px 16px rgba(0,0,0,.3);
}

#site-header nav {
  max-width: var(--max-w); margin: 0 auto; padding: .9rem 1.5rem;
  display: flex; align-items: center; justify-content: space-between;
}

.logo { font-size: 1.7rem; color: var(--orange); letter-spacing: .06em; }

#nav-links { display: flex; gap: 1.5rem; align-items: center; }
#nav-links a { color: var(--off-white); font-size: .9rem; font-weight: 500; transition: color var(--transition); }
#nav-links a:hover { color: var(--orange); }

.nav-cta { background: var(--orange); color: var(--blue-dark) !important; padding: .45rem 1.2rem; border-radius: 50px; font-weight: 700 !important; }
.nav-cta:hover { background: var(--orange-dark); }

.nav-toggle { display: none; background: none; border: none; color: var(--orange); font-size: 1.6rem; cursor: pointer; }

/* --- HERO --- */
#hero { height: calc(100vh + 1100px); position: relative; }

#hero-sticky {
  position: sticky; top: 0; height: 100vh; overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  background: var(--blue-dark);
}

#hero-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  transform: scale(1.2);
  z-index: 0;
}

.hero-gradient {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  background: linear-gradient(to top, rgba(15,23,42,0.95) 0%, rgba(15,23,42,0.7) 40%, transparent 100%);
  padding: 8rem 0 3rem 0;
  display: flex; align-items: flex-end; justify-content: center;
  pointer-events: none;
  z-index: 2;
}

.hero-content {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  pointer-events: auto;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 2rem;
  padding: 0 1.5rem;
}

.hero-content-left {
  max-width: 650px;
}

.hero-content h1 {
  font-size: clamp(2.5rem, 4vw, 4rem);
  white-space: normal;
  color: var(--white);
  line-height: 1.1;
  margin-bottom: 0.8rem;
  text-shadow: 0 4px 20px rgba(0,0,0,0.6);
}

.hero-subtext {
  color: rgba(255,255,255,0.75);
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 600;
  margin-bottom: 2.5rem;
}

.btn-hero-cta {
  display: inline-block;
  background: var(--orange);
  color: var(--text);
  padding: 1rem 2.5rem;
  border-radius: 50px;
  font-weight: 800;
  font-size: 1.1rem;
  text-decoration: none;
  transition: transform var(--transition), background var(--transition);
  box-shadow: 0 4px 15px rgba(245, 158, 11, 0.4);
}
.btn-hero-cta:hover {
  background: var(--orange-dark);
  transform: translateY(-3px);
  color: var(--text);
}

#scroll-progress {
  position: absolute; bottom: 0; left: 0; height: 3px;
  background: var(--orange); width: 0; transition: width .1s linear;
}

/* --- SERVICES --- */
#services { padding: var(--section-pad); background: var(--off-white); }

.card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: 0 4px 20px rgba(0,0,0,.06);
  transition: transform var(--transition), box-shadow var(--transition);
  border-top: 3px solid var(--orange);
}
.card:hover { transform: translateY(-5px); box-shadow: 0 10px 30px rgba(0,0,0,.12); }
.card h3 { margin-bottom: 1rem; }
.card p { font-size: .95rem; margin-bottom: 1.5rem; }
.card a { font-weight: 700; color: var(--orange); font-size: .9rem; }
.card a:hover { color: var(--orange-dark); }

/* --- ABOUT STATS --- */
#about { padding: var(--section-pad); background: var(--blue-dark); color: var(--white); }
#about h2 { color: var(--white); }
#about p { color: rgba(255,255,255,.8); }

.about-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; }
.about-stats {
  display: grid; grid-template-columns: 1fr 1fr; gap: 2rem;
}
.stat { background: rgba(255,255,255,.05); border-radius: var(--radius); padding: 1.5rem; text-align: center; }
.stat h3 { color: var(--orange); font-size: 2.5rem; margin: 0; line-height: 1; }
.stat p    { color: rgba(255,255,255,.65); font-size: .85rem; margin-top: .25rem; }

/* --- WHY US --- */
#why-us { padding: var(--section-pad); background: var(--white); }

.why-item {
  display: flex; gap: 1rem; align-items: flex-start;
  background: var(--off-white);
  padding: 1.5rem;
  border-radius: var(--radius);
  transition: transform var(--transition);
}
.why-item:hover { transform: translateX(4px); }
.why-item > span {
  background: var(--orange); color: var(--blue-dark);
  font-weight: 900; font-size: 1.1rem;
  width: 2rem; height: 2rem; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}

/* --- BEFORE / AFTER --- */
#before-after { padding: var(--section-pad); background: var(--blue); text-align: center; }
#before-after h2, #before-after .section-sub { color: var(--white); }
#before-after .section-sub { color: rgba(255,255,255,.7); }

.ba-slider-wrap {
  position: relative; max-width: 780px; margin: 0 auto;
  border-radius: var(--radius); overflow: hidden;
  box-shadow: 0 12px 40px rgba(0,0,0,.4);
  cursor: col-resize; user-select: none;
  aspect-ratio: 16/9;
}
.ba-before, .ba-after { position: absolute; inset: 0; }
.ba-before img, .ba-after img { width: 100%; height: 100%; object-fit: cover; }
.ba-after { clip-path: inset(0 50% 0 0); }

.ba-handle {
  position: absolute; top: 0; left: 50%;
  width: 4px; height: 100%;
  background: var(--orange); transform: translateX(-50%);
  display: flex; align-items: center; justify-content: center;
}
.ba-handle span {
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--orange); border: 3px solid var(--white);
  display: flex; align-items: center; justify-content: center;
}
.ba-handle span::before,
.ba-handle span::after {
  content: ''; border: 6px solid transparent;
  border-right-color: var(--blue-dark); display: inline-block;
}
.ba-handle span::after { border-right-color: transparent; border-left-color: var(--blue-dark); margin-left: 2px; }

/* --- SERVICE AREAS --- */
#service-areas { padding: var(--section-pad); background: var(--off-white); }
.areas-inner { display: grid; grid-template-columns: 1.2fr 1fr; gap: 4rem; align-items: center; }

.areas-content h2 { margin-bottom: 0.5rem; color: var(--blue-dark); }
.areas-content .section-sub { 
  text-align: left; margin-bottom: 2.5rem; color: rgba(15,23,42,0.8); 
  font-size: 1.05rem; max-width: 95%; 
}

.areas-groups { display: flex; flex-direction: column; gap: 2rem; margin-bottom: 2rem; }
.area-group-label { 
  font-size: 1.2rem; color: var(--blue-dark); margin-bottom: 0.75rem; 
  border-bottom: 1px solid rgba(15,23,42,0.15); padding-bottom: 0.4rem; 
}

.chip-container { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.chip {
  background: var(--blue); color: var(--white);
  padding: 0.4rem 1.1rem; border-radius: 50px; 
  font-size: 0.9rem; font-weight: 500;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.areas-disclaimer { font-size: 0.9rem; color: rgba(15,23,42,0.7); }

.areas-map { border-radius: var(--radius); overflow: hidden; box-shadow: 0 12px 35px rgba(0,0,0,0.1); }
.areas-map img { width: 100%; height: auto; display: block; object-fit: cover; }

/* --- TESTIMONIALS --- */
#testimonials { padding: var(--section-pad); background: var(--white); text-align: center; }

.testimonial-track { overflow: hidden; position: relative; }
.testimonial {
  display: none; max-width: 680px; margin: 0 auto;
  background: var(--off-white); border-radius: var(--radius);
  padding: 2.5rem; border-left: 4px solid var(--orange);
  text-align: left;
}
.testimonial.active { display: block; animation: fadein .5s ease; }
@keyframes fadein { from{opacity:0; transform:translateY(10px);} to{opacity:1; transform:translateY(0);} }

.testimonial p { font-size: 1.1rem; color: var(--blue-dark); font-style: italic; margin-bottom: 1.5rem; line-height: 1.6; }
.test-author { font-weight: 700; color: var(--orange); font-size: .95rem; }

/* --- CONTACT --- */
#contact { padding: var(--section-pad); background: var(--blue-dark); }

.contact-inner { display: grid; grid-template-columns: 1fr 1.4fr; gap: 4rem; align-items: start; }
.contact-info h2 { color: var(--orange); }
.contact-info p, .contact-info address a { color: rgba(255,255,255,.8); }
.contact-info address { font-style: normal; margin-top: 1rem; line-height: 2; }
.contact-info address a { display: block; font-size: 1.1rem; transition: color var(--transition); }
.contact-info address a:hover { color: var(--orange); }

#contact-form { display: flex; flex-direction: column; gap: .9rem; }
#contact-form label { color: rgba(255,255,255,.75); font-size: .85rem; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; }
#contact-form input,
#contact-form select,
#contact-form textarea {
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.15);
  border-radius: var(--radius);
  color: var(--white);
  padding: .75rem 1rem;
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  transition: border-color var(--transition);
}
#contact-form input:focus,
#contact-form select:focus,
#contact-form textarea:focus { outline: none; border-color: var(--orange); }
#contact-form input::placeholder,
#contact-form textarea::placeholder { color: rgba(255,255,255,.35); }
#contact-form select option { background: var(--blue-dark); color: var(--white); }
#form-status { color: var(--orange); font-size: .9rem; min-height: 1.2em; }

/* --- FOOTER --- */
#site-footer { background: var(--blue-dark); padding: 3rem 1.5rem 1.5rem; }
.footer-inner {
  display: flex; justify-content: space-between; align-items: flex-start;
  flex-wrap: wrap; gap: 2rem; margin-bottom: 2rem;
}
.footer-brand .logo { font-size: 1.5rem; color: var(--orange); display: block; margin-bottom: .5rem; }
.footer-brand p { color: rgba(255,255,255,.5); font-size: .9rem; }
#site-footer nav ul { display: flex; flex-direction: column; gap: .5rem; }
#site-footer nav a { color: rgba(255,255,255,.6); font-size: .9rem; transition: color var(--transition); }
#site-footer nav a:hover { color: var(--orange); }
.footer-contact { display: flex; flex-direction: column; gap: .5rem; }
.footer-contact a { color: rgba(255,255,255,.6); font-size: .9rem; transition: color var(--transition); }
.footer-contact a:hover { color: var(--orange); }
.footer-copy { text-align: center; color: rgba(255,255,255,.3); font-size: .8rem; border-top: 1px solid rgba(255,255,255,.08); padding-top: 1.5rem; }

/* --- RESPONSIVE --- */
@media (max-width: 768px) {
  .nav-toggle { display: block; }
  #nav-links {
    display: none; flex-direction: column; position: absolute;
    top: 100%; left: 0; right: 0;
    background: var(--blue-dark); padding: 1rem 1.5rem 1.5rem;
    gap: 1rem;
  }
  #nav-links.open { display: flex; }
  .about-inner, .contact-inner, .areas-inner { grid-template-columns: 1fr; gap: 2rem; }
  .about-stats { grid-template-columns: 1fr 1fr; }
  .footer-inner { flex-direction: column; }
  #hero { height: calc(100vh + 250px); }
  #hero-sticky { position: sticky; top: 0; height: 100vh; overflow: hidden; background: var(--blue-dark); }
  #hero-canvas { transform: scale(1); height: 70vh; }
  #scroll-progress { display: none; }
}

@media (max-width: 480px) {
  :root { --section-pad: 3.5rem 1rem; }
  .hero-content { position: relative; top: 0; left: 0; flex-direction: column; align-items: flex-start; gap: 1.5rem; width: 100%; min-width: 0; padding: 0 1.5rem 3rem 1.5rem; }
  .hero-content h1 { font-size: 2.5rem; white-space: normal; }
  .hero-subtext { font-size: 0.85rem; }
  .hero-content-right { width: 100%; display: flex; justify-content: flex-start; }
  .areas-inner { gap: 2rem; }
  .ba-slider-wrap { aspect-ratio: 1; }
  #contact-form { padding: 1.5rem; }
  .about-stats { grid-template-columns: 1fr; }
}
