/* ===================================================
   Lighthouse BHC - 1822 N Pulaski St Stylesheet
   Design Philosophy: Modern, Warm, Hopeful, Professional
   =================================================== */

:root {
  /* Refined Color Palette */
  --c-deep-navy: #012D63;
  --c-serene-blue: #5B87B0;
  --c-warm-coral: #E85C5C;
  --c-golden-sand: #F6C177;
  --c-off-white: #FDFDFD;
  --c-charcoal-navy: #001E3C;
  --c-light-gray: #f8f9fa;
  --c-text-muted: #6c757d;

  /* Typography */
  --f-heading: 'Outfit', sans-serif;
  --f-body: 'Inter', sans-serif;

  /* UI Elements */
  --radius: 0.75rem; /* 12px */
  --shadow: 0 10px 30px -15px rgba(0, 30, 60, 0.15);
  --transition: all 0.3s ease-in-out;
}

/* --- Base & Typography --- */
body {
  font-family: var(--f-body);
  background-color: var(--c-off-white);
  color: var(--c-charcoal-navy);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.7;
  font-size: 18px;
}

h1, h2, h3, h4, h5, h6, .navbar-brand span, .btn {
  font-family: var(--f-heading);
  font-weight: 700;
  letter-spacing: -0.02em;
}

h1.display-3 { font-size: clamp(2.5rem, 5vw, 3.25rem); }
h2.section-title { font-size: clamp(2rem, 4vw, 2.5rem); margin-bottom: 1rem; }
.lead { font-size: 1.25rem; color: #555; }
.lead-light { font-size: 1.25rem; color: rgba(253, 253, 253, 0.85); }

/* --- Buttons --- */
.btn {
  padding: 0.75rem 1.75rem;
  border-radius: var(--radius);
  font-weight: 500;
  border: 2px solid transparent;
  transition: var(--transition);
  box-shadow: var(--shadow);
}
.btn-lg { padding: 1rem 2.5rem; }

.btn-primary {
  background-color: var(--c-warm-coral);
  color: white;
  border-color: var(--c-warm-coral);
}
.btn-primary:hover {
  background-color: var(--c-golden-sand);
  border-color: var(--c-golden-sand);
  transform: translateY(-3px);
  box-shadow: 0 15px 30px -15px var(--c-golden-sand);
}

.btn-secondary {
  background-color: transparent;
  color: var(--c-deep-navy);
  border-color: var(--c-deep-navy);
}
.btn-secondary:hover {
  background-color: var(--c-deep-navy);
  color: white;
  transform: translateY(-3px);
}

.btn-light {
    background-color: white;
    color: var(--c-deep-navy);
}
.btn-light:hover {
    background-color: var(--c-off-white);
    transform: translateY(-3px);
}


/* --- Animations --- */
.anim-reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s cubic-bezier(0.165, 0.84, 0.44, 1), transform 0.8s cubic-bezier(0.165, 0.84, 0.44, 1);
}

/* --- Navigation --- */
.navbar {
  padding: 1rem 0;
  transition: var(--transition);
}
.navbar.scrolled {
  background-color: rgba(253, 253, 253, 0.9);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 5px 20px rgba(0, 30, 60, 0.05);
  padding: 0.75rem 0;
}
.navbar-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 1.25rem;
  color: white !important;
  transition: var(--transition);
}
.navbar.scrolled .navbar-brand {
  color: var(--c-charcoal-navy) !important;
}
.nav-link {
  font-family: var(--f-heading);
  font-weight: 500;
  color: white;
  position: relative;
  transition: var(--transition);
  padding-bottom: 0.5rem;
}
.navbar.scrolled .nav-link {
  color: var(--c-charcoal-navy);
}
.nav-link:hover {
  color: var(--c-warm-coral) !important;
}
.nav-link.active {
  color: var(--c-warm-coral) !important;
}
.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: var(--c-warm-coral);
  transform: scaleX(1);
  transition: transform 0.3s ease;
}
.nav-link:hover::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: var(--c-warm-coral);
  transform: scaleX(1);
  transition: transform 0.3s ease;
}
.navbar-toggler {
  border: none;
  font-size: 1.75rem;
  color: white;
  transition: var(--transition);
}
.navbar.scrolled .navbar-toggler {
  color: var(--c-charcoal-navy);
}
.navbar-toggler:focus { box-shadow: none; }

/* --- Hero Section --- */
.hero-section {
  padding: 180px 0 120px;
  position: relative;
  overflow: hidden;
  background-color: var(--c-off-white);
  min-height: 85vh;
}

/* Video Background */
.hero-video-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  overflow: hidden;
}

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

/* Gradient Overlay */
.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    135deg,
    rgba(13, 49, 71, 0.4) 0%,
    rgba(88, 129, 154, 0.3) 50%,
    rgba(232, 174, 124, 0.2) 100%
  );
  z-index: 2;
}

/* Ensure text is visible */
.hero-section .container {
  position: relative;
  z-index: 3;
}

.hero-section h1,
.hero-section p {
  color: white;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}
.hero-image-wrapper {
  padding: 1rem;
  background: white;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.hero-image-wrapper img { border-radius: calc(var(--radius) - 0.5rem); }

/* --- Shape Divider --- */
.shape-divider { position: absolute; bottom: -1px; left: 0; width: 100%; overflow: hidden; line-height: 0; }
.shape-divider svg { position: relative; display: block; width: calc(100% + 1.3px); height: 80px; }
.shape-divider .shape-fill { fill: var(--c-off-white); }
.hero-section .shape-divider .shape-fill { fill: var(--c-light-gray); }

/* --- Sections & Cards --- */
.section { padding: 80px 0; }
.bg-secondary { background-color: var(--c-serene-blue); }
.bg-dark { background-color: var(--c-charcoal-navy); }
.final-cta { background: linear-gradient(45deg, var(--c-deep-navy), var(--c-serene-blue)); color: white; }

.feature-card {
  background: white;
  padding: 2rem;
  border-radius: var(--radius);
  text-align: center;
  box-shadow: var(--shadow);
  border: 1px solid #eee;
}
.feature-card .feature-icon { 
  font-size: 2.5rem; 
  margin-bottom: 1rem; 
  color: var(--c-warm-coral);
}

.feature-card .feature-icon i {
  font-size: 2.5rem;
  color: var(--c-warm-coral);
  transition: var(--transition);
}

.feature-card:hover .feature-icon i {
  color: var(--c-golden-sand);
  transform: scale(1.1);
}

/* Icon styling for various sections */
.hero-section .bi-lighthouse {
  font-size: 3rem;
  text-shadow: 0 2px 10px rgba(232, 92, 92, 0.3);
}

.why-choose-icon {
  font-size: 2.5rem;
  color: var(--c-warm-coral);
  margin-bottom: 1rem;
  display: block;
}

.why-choose-item {
  padding: 2rem;
  text-align: center;
  background: white;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid #eee;
  transition: var(--transition);
}

.why-choose-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px -15px rgba(0, 30, 60, 0.2);
}

.why-choose-item:hover .why-choose-icon {
  color: var(--c-golden-sand);
  transform: scale(1.1);
}

/* Contact and admission cards */
.contact-card {
  background: white;
  padding: 2rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid #eee;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.contact-item i {
  font-size: 1.25rem;
}

.admission-step {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 2rem;
}

.step-number {
  background: var(--c-warm-coral);
  color: white;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-family: var(--f-heading);
  flex-shrink: 0;
}

.location-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.location-item i {
  font-size: 1.5rem;
  margin-top: 0.25rem;
}

.map-placeholder {
  background: var(--c-light-gray);
  border-radius: var(--radius);
  padding: 4rem 2rem;
  text-align: center;
  border: 2px dashed var(--c-text-muted);
}

.map-content i {
  font-size: 3rem;
  color: var(--c-warm-coral);
  margin-bottom: 1rem;
}

.cta-card {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius);
  padding: 2rem;
  text-align: center;
  transition: var(--transition);
}

.cta-card:hover {
  background: rgba(255, 255, 255, 0.15);
  transform: translateY(-3px);
}

.cta-card i {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  display: block;
}

.emergency-notice {
  background: rgba(255, 255, 255, 0.1);
  border-radius: var(--radius);
  padding: 1.5rem;
  margin-top: 2rem;
}

.service-card {
  background: rgba(255,255,255,0.1);
  padding: 1.5rem;
  border-radius: var(--radius);
  border: 1px solid rgba(255,255,255,0.2);
  text-align: center;
}

.service-card .service-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  color: var(--c-golden-sand);
}

.service-card .service-icon i {
  font-size: 2.5rem;
  color: var(--c-golden-sand);
  transition: var(--transition);
}

.service-card:hover .service-icon i {
  color: var(--c-warm-coral);
  transform: scale(1.1);
}

.icon-list {
  list-style: none;
  padding-left: 0;
}
.icon-list li {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.5rem;
}
.icon-list i {
  font-size: 1.5rem;
  color: var(--c-warm-coral);
  margin-top: 0.25rem;
}
.icon-list h5 { margin-bottom: 0.25rem; }
.icon-list p { margin-bottom: 0; color: var(--c-text-muted); font-size: 0.95rem; }

/* --- Testimonials & Founder --- */
.testimonial-card { text-align: center; }
.testimonial-quote {
  font-size: 1.5rem;
  font-style: italic;
  margin-bottom: 1rem;
}
.testimonial-card cite {
  font-family: var(--f-heading);
  font-style: normal;
  color: var(--c-golden-sand);
}
.founder-img {
  width: 150px;
  height: 150px;
  object-fit: cover;
  border-radius: 50%;
  border: 4px solid var(--c-warm-coral);
  box-shadow: var(--shadow);
}

/* --- FAQ & Accreditation --- */
.accordion-item {
  border: 1px solid #dee2e6;
  border-radius: var(--radius) !important;
  margin-bottom: 1rem;
  overflow: hidden;
}
.accordion-button {
  font-family: var(--f-heading);
  font-weight: 500;
  background-color: white !important;
  color: var(--c-charcoal-navy) !important;
}
.accordion-button:not(.collapsed) { color: var(--c-warm-coral) !important; box-shadow: none !important; }
.accordion-button:focus { box-shadow: none !important; }
.accreditation-card {
  background-color: var(--c-light-gray);
  padding: 2rem;
  border-radius: var(--radius);
}
.accreditation-card i { font-size: 1.5rem; color: var(--c-serene-blue); }

/* --- Footer --- */
.footer {
  background-color: var(--c-charcoal-navy);
  color: white;
  padding: 60px 0 30px;
  font-size: 0.9rem;
}
.footer h5, .footer h6 { color: white; font-weight: 500; }
.footer p, .footer li { color: rgba(253, 253, 253, 0.7); }
.footer a { color: rgba(253, 253, 253, 0.7); text-decoration: none; transition: var(--transition); }
.footer a:hover { color: var(--c-golden-sand); }
.footer hr { border-color: rgba(255,255,255,0.1); margin: 2rem 0; }

/* --- Utility & Accessibility --- */
.skip-link:focus { position: fixed; top: 1rem; left: 1rem; background: white; color: var(--c-deep-navy); padding: 0.5rem 1rem; z-index: 1051; border-radius: var(--radius); }

/* --- Services Section --- */
#services {
  background: linear-gradient(
      rgba(0, 0, 0, 0.6),
      rgba(0, 0, 0, 0.6)
    ),
    url('../videos/corrubedo-lighthouse-surrounded-by-rocks-grass-sunlight-spain.jpg') no-repeat center center/cover;
  color: white;
  padding: 80px 0;
}

/* Hero Section Styles */
.privacy-policy-hero {
  background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('../videos/corrubedo-lighthouse-surrounded-by-rocks-grass-sunlight-spain.jpg') no-repeat center center;
  background-size: cover;
  height: 50vh !important;
  min-height: 50vh !important;
  padding: 0 !important;
  display: flex;
  align-items: center;
  justify-content: center;
}

.terms-conditions-hero {
  background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('../videos/corrubedo-lighthouse-surrounded-by-rocks-grass-sunlight-spain.jpg') no-repeat center center;
  background-size: cover;
  height: 50vh !important;
  min-height: 50vh !important;
  padding: 0 !important;
  display: flex;
  align-items: center;
  justify-content: center;
}
