/* Lighthouse Behavioral Health — style.css
   Three-file build: colors, typography, layout, components
*/

/* ---------- Design Tokens ---------- */
:root {
  --navy: #1A2E45;        /* primary heading color, deep navy */
  --white-warm: #F9FAF9;  /* off-white page bg */
  --beacon-red: #E63946;  /* primary CTA & accent */
  --soft-coral: #F88379;  /* secondary accent */
  --seafoam: #84A59D;     /* calming accent for icons */
  --gold: #F6BD60;        /* highlight */
  --muted: #6C757D;
  --text: #213142;
  --radius: 12px;
  --container-max: 1180px;
}

/* ---------- Base ---------- */
* { 
  box-sizing: border-box; 
}

html,
body { 
  height: 100%; 
}

body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
  color: var(--text);
  /* background: linear-gradient(180deg, var(--white-warm), #ffffff); */
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.6;
  font-size: 16px;
}

.container-narrow { 
  max-width: var(--container-max); 
  margin: 0 auto; 
  padding-left: 1rem; 
  padding-right: 1rem; 
}

/* Typography */
h1,
h2,
h3,
h4 { 
  font-family: "Playfair Display", serif; 
  color: var(--navy); 
  margin-top: 0; 
}

h1 { 
  font-size: 2.75rem !important; /* Increased size for hero section heading */
  line-height: 1.1;
}

h2 { 
  font-size: 2rem; /* Increased size for all h2 elements */
}

.lead { 
  font-size: 1.0625rem; 
  color: var(--muted); 
}

.small { 
  font-size: 0.875rem; 
}

/* Accessibility skip link */
.sr-skip { 
  position: absolute; 
  left: -9999px; 
  top: auto; 
  width: 1px; 
  height: 1px; 
  overflow: hidden; 
}

.sr-skip:focus { 
  left: 10px; 
  top: 10px; 
  width: auto; 
  height: auto; 
  background: #fff; 
  padding: 8px 12px; 
  border-radius: 4px; 
  box-shadow: 0 6px 18px rgba(0,0,0,0.12); 
}

/* ---------- Nav ---------- */
.navbar { 
  padding: 0.8rem 0; 
  background: #ffffff !important; 
  box-shadow: 0 2px 12px rgba(0,0,0,0.04); 
  border-bottom: 1px solid #f0f0f0;
}

.navbar-logo {
  transition: transform 0.2s ease;
}

.navbar-logo:hover {
  transform: scale(1.05);
}

.logo-box {
  width: 46px; 
  height: 46px; 
  border-radius: 10px; 
  background: var(--navy); 
  color: #fff; 
  display: inline-flex; 
  align-items: center; 
  justify-content: center; 
  font-weight: 700;
}

.brand-text .h6 { 
  font-size: 1rem; 
  color: var(--navy); 
}

.navbar .nav-link { 
  color: var(--text); 
  margin-left: .4rem; 
  transition: color 0.3s ease;
  position: relative;
}

/* Clean active state without background */
.navbar .nav-link.active,
.nav-link.active,
.navbar-nav .nav-link.active {
  color: #E63946 !important; /* Direct color instead of var */
  text-decoration: underline !important;
  text-decoration-color: #E63946 !important;
  text-underline-offset: 4px !important;
  font-weight: 600 !important;
}

.navbar .nav-link:hover {
  color: var(--beacon-red);
}

.navbar .btn { 
  font-weight: 600; 
}

/* ---------- Hero ---------- */
.hero-section {
  height: 95vh;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  color: #fff;
}

.hero-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -1;
}

.overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, rgba(66, 66, 66, 0.6), rgba(0, 0, 0, 0.6));
  z-index: 0;
}

.hero-copy { 
  max-width: 680px; 
}

.hero-title { 
  font-size: 2rem; 
  color: #fff; 
  margin-bottom: .6rem; 
}

.hero-sub { 
  color: rgba(255,255,255,0.95); 
  font-size: 1.05rem; 
  margin-bottom: 1rem; 
}

.badges .pill { 
  display: inline-flex; 
  gap: .5rem; 
  align-items: center; 
  padding: 8px 12px; 
  border-radius: 999px; 
  background: rgba(255,255,255,0.08); 
  color: #fff; 
  font-weight: 600; 
  margin-right: 8px; 
  margin-bottom: 6px; 
}

.pill svg.icon { 
  width: 18px; 
  height: 18px; 
  opacity: .95; 
}

/* Trust row */
.trust-row { 
  display: flex; 
  gap: .5rem; 
  flex-wrap: wrap; 
  margin-top: 1rem; 
}

.trust-badge { 
  display: flex; 
  gap: .5rem; 
  align-items: center; 
  padding: 8px 10px; 
  background: rgba(255,255,255,0.06); 
  border-radius: 12px; 
  color: #fff; 
  font-size: .9rem; 
}

.trust-icon {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

/* Buttons */
.btn-primary-main {
  background: var(--beacon-red); 
  color: #fff; 
  border: none; 
  padding: .75rem 1.25rem; 
  border-radius: 999px; 
  box-shadow: 0 10px 30px rgba(230,57,70,0.12);
  transition: all 0.3s ease;
}

.btn-primary-main:hover { 
  background: var(--soft-coral); 
  transform: translateY(-2px); 
  box-shadow: 0 12px 35px rgba(230,57,70,0.18);
}

.btn-secondary-main { 
  background: var(--soft-coral); 
  border: none; 
  color: #fff; 
  padding: .7rem 1.1rem; 
  border-radius: 999px; 
  transition: all 0.3s ease;
}

.btn-secondary-main:hover {
  background: #F66B5B; /* Darker shade of soft-coral */
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 12px 35px rgba(248, 131, 121, 0.18);
}

.btn-seafoam { 
  background: var(--seafoam); 
  border: none; 
  color: #fff; 
  padding: .7rem 1.1rem; 
  border-radius: 999px; 
  transition: all 0.3s ease;
}

.btn-seafoam:hover {
  background: #6B8E87; /* Darker shade of seafoam */
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(132, 165, 157, 0.3);
}

.btn-outline-main { 
  color: #fff; 
  background: transparent; 
  border: 1.5px solid rgba(255,255,255,0.18); 
  padding: .6rem 1rem; 
  border-radius: 999px; 
}

/* ---------- Sections ---------- */
.section { 
  padding: 4rem 0; 
  background: transparent; 
}

.bg-soft { 
  background: #F0F5F3; 
  border-top: 1px solid rgba(26,46,69,0.03); 
}

.image-stacked img { 
  width: 100%; 
  display: block; 
}

.zigzag img:first-child { 
  transform: translateX(-8px); 
}

.zigzag img:last-child { 
  transform: translateX(8px); 
}

/* Cards & features */
.card { 
  border-radius: var(--radius); 
  box-shadow: 0 8px 26px rgba(26,46,69,0.04); 
  border: none; 
}

.icon-box { 
  width: 60px; 
  height: 60px; 
  display: flex; 
  align-items: center; 
  justify-content: center; 
  border-radius: 14px; 
  color: #fff; 
}

.icon-box.seafoam { 
  background: var(--seafoam); 
  color: #fff; 
}

.icon-box.coral { 
  background: var(--soft-coral); 
  color: #fff; 
}

/* Feature cards */
.feature-card { 
  background: #fff; 
  border-radius: 12px; 
  box-shadow: 0 8px 24px rgba(26,46,69,0.04); 
  min-height: 145px; 
}

.icon-qs { 
  width: 64px; 
  height: 64px; 
  display: inline-flex; 
  align-items: center; 
  justify-content: center; 
  border-radius: 12px; 
  color: #fff; 
}

.icon-qs.seafoam { 
  background: var(--seafoam); 
}

.icon-qs.coral { 
  background: var(--soft-coral); 
}

/* Accordion */
.accordion-button { 
  font-weight: 600; 
  color: var(--navy); 
}

.accordion-body { 
  color: var(--muted); 
}

/* Timeline */
.timeline { 
  display: grid; 
  grid-template-columns: repeat(4,1fr); 
  gap: 1rem; 
  margin-top: 1rem; 
}

.time-card { 
  background: #fff; 
  padding: 1.25rem; 
  border-radius: 12px; 
  box-shadow: 0 8px 20px rgba(26,46,69,0.04); 
  text-align: left; 
}

.time-icon { 
  width: 48px; 
  height: 48px; 
  display: inline-flex; 
  align-items: center; 
  justify-content: center; 
  border-radius: 12px; 
  font-size: 1.1rem; 
  margin-bottom: .5rem; 
  color: #fff; 
}

.time-icon.gold { 
  background: var(--gold); 
}

.time-icon.seafoam { 
  background: var(--seafoam); 
}

.time-icon.coral { 
  background: var(--soft-coral); 
}

.time-icon.navy { 
  background: var(--navy); 
}

/* Testimonials */
#testimonials {
  background-image: 
    linear-gradient(to top right, rgb(93, 93, 93) 0%, rgba(182, 182, 182, 0.8) 30%, transparent 70%),
    url('/assets/breathtaking-view-lighthouse-grass-covered-hill-by-ocean-cloudy-day.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

#testimonials h2 {
  color: var(--white-warm);
  font-weight: 700;
}

.testimonial { 
  background: #fff; 
  border-radius: 12px; 
  box-shadow: 0 10px 28px rgba(26,46,69,0.06); 
}

.testimonial-quote { 
  font-family: "Playfair Display", serif; 
  font-style: italic; 
  color: var(--navy); 
}

.testimonial .muted {
  color: var(--beacon-red) ;
}

/* Gallery */
.gallery-item img { 
  width: 100%; 
  height: auto; 
  display: block; 
  cursor: pointer; 
}

/* Founder */
.founder-photo { 
  width: 160px; 
  height: 160px; 
  object-fit: cover; 
  border: 6px solid #fff; 
}

.founder-quote { 
  font-family: "Playfair Display", serif; 
  font-size: 1.125rem; 
  color: var(--navy); 
}

/* CTA section */
.cta-section { 
  padding: 3rem 0; 
  background-image: linear-gradient(to top right, rgba(255,255,255,0.95) 0%, rgba(255,255,255,0.7) 60%, transparent 100%), url('/assets/chicago-light-house.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  color: #213142;
  text-align: center;
}

.cta-section .btn { 
  margin-top: .75rem; 
}


/* Footer links */
.footer-link {
  color: var(--text) !important;
  text-decoration: none !important;
  transition: color 0.2s;
}

.footer-link:hover, .footer-link:focus {
  color: var(--beacon-red) !important;
  text-decoration: underline;
}

/* Footer section titles */
.footer-section-title {
  color: var(--beacon-red) !important;
}

/* Footer icons */
.footer-icon {
  color: var(--beacon-red) !important;
}

/* Footer */
.site-footer { 
  background: var(--navy); 
  /* color: #fff;  */
  padding: 1.5rem 0; 
}

/* Rounded-square icons usage */
.icon { 
  width: 20px; 
  height: 20px; 
  display: inline-block; 
  fill: currentColor; 
}

/* Animations (IntersectionObserver sets .visible) */
.anim { 
  opacity: 0; 
  transform: translateY(18px); 
  transition: opacity .7s ease, transform .7s ease; 
}

.anim.visible { 
  opacity: 1; 
  transform: none; 
}

/* Utilities */
.muted { 
  color: var(--muted); 
}

.lead-italic { 
  font-family: "Playfair Display", serif; 
  font-style: italic; 
  color: var(--muted); 
}

/* Responsive tweaks */
@media (max-width: 991px) {
  .timeline { 
    grid-template-columns: 1fr; 
  }
  
  .hero-title { 
    font-size: 1.6rem; 
  }
  
  .hero-section { 
    padding: 2.5rem 0; 
    background-position: center 20%; 
  }
  
  .zigzag img:first-child, 
  .zigzag img:last-child { 
    transform: none; 
  }
}