/* ========================================
   Sentry Integrative Mental Health
   Landing Page Styles
   ======================================== */

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

:root {
  --charcoal: #1F1F1F;
  --deep-steel: #1E2A38;
  --warm-bone: #F4F1EC;
  --muted-bronze: #8C7A4F;
  --white: #FFFFFF;
  --text-light: #E8E5DF;
  --text-muted: #9A978F;
  --font-heading: 'Cormorant Garamond', Georgia, serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--charcoal);
  background-color: var(--white);
  -webkit-font-smoothing: antialiased;
}

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

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

ul {
  list-style: none;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* --- Section Labels & Titles --- */
.section-label {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--muted-bronze);
  margin-bottom: 0.75rem;
}

.section-label--light {
  color: var(--muted-bronze);
}

.section-title {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 600;
  line-height: 1.2;
  color: var(--charcoal);
  margin-bottom: 1.25rem;
}

.section-title--light {
  color: var(--white);
}

/* --- Buttons --- */
button.btn {
  -webkit-appearance: none;
  appearance: none;
  line-height: inherit;
}

.btn {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  padding: 0.8rem 1.75rem;
  border-radius: 4px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all 0.3s ease;
  text-align: center;
}

.btn--primary {
  background-color: var(--deep-steel);
  color: var(--white);
  border-color: var(--deep-steel);
}

.btn--primary:hover {
  background-color: #263546;
  border-color: #263546;
}

.btn--accent {
  background-color: var(--muted-bronze);
  color: var(--white);
  border-color: var(--muted-bronze);
}

.btn--accent:hover {
  background-color: #7a6a42;
  border-color: #7a6a42;
}

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

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

.btn--dark {
  background-color: var(--deep-steel);
  color: var(--white);
  border-color: var(--deep-steel);
}

.btn--dark:hover {
  background-color: #263546;
  border-color: #263546;
}

/* ========================================
   TOP BAR
   ======================================== */
.top-bar {
  background-color: var(--charcoal);
  color: var(--text-muted);
  font-size: 0.8rem;
  padding: 0.5rem 0;
}

.top-bar__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.top-bar__left {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.top-bar__link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--text-muted);
  transition: color 0.2s;
}

.top-bar__link:hover {
  color: var(--white);
}

.top-bar__hours {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

/* ========================================
   HEADER / NAVIGATION
   ======================================== */
.header {
  background-color: var(--warm-bone);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.06);
  transition: box-shadow 0.3s ease;
}

.header--scrolled {
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 0.75rem;
  padding-bottom: 0.75rem;
  position: relative;
}

.header__logo {
  flex-shrink: 0;
}

.header__logo-img {
  height: 125px;
  width: auto;
}

.nav {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav__list {
  display: flex;
  align-items: center;
  gap: 1.75rem;
}

.nav__link {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--charcoal);
  position: relative;
  padding: 0.25rem 0;
  transition: color 0.2s;
}

.nav__link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--muted-bronze);
  transition: width 0.3s ease;
}

.nav__link:hover {
  color: var(--muted-bronze);
}

.nav__link:hover::after {
  width: 100%;
}

.nav__cta {
  padding: 0.6rem 1.25rem;
  font-size: 0.85rem;
}

/* Mobile Nav Toggle */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  z-index: 1001;
}

.nav-toggle__bar {
  display: block;
  width: 24px;
  height: 2px;
  background-color: var(--charcoal);
  margin: 5px 0;
  transition: all 0.3s ease;
  border-radius: 2px;
}

/* Nav toggle active state */
.nav-toggle--active .nav-toggle__bar:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.nav-toggle--active .nav-toggle__bar:nth-child(2) {
  opacity: 0;
}

.nav-toggle--active .nav-toggle__bar:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* ========================================
   MEGA MENU
   ======================================== */
.nav__item--has-mega {
  position: static;
}

.nav__item--has-mega > .nav__link {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}

.nav__chevron {
  transition: transform 0.3s ease;
  flex-shrink: 0;
}

.nav__item--has-mega:hover .nav__chevron,
.nav__item--has-mega.mega-open .nav__chevron {
  transform: rotate(180deg);
}

.mega-menu {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background-color: var(--white);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.1);
  border-top: 3px solid var(--muted-bronze);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s;
  z-index: 999;
}

.nav__item--has-mega:hover .mega-menu,
.nav__item--has-mega.mega-open .mega-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.mega-menu__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 40px;
  display: grid;
  grid-template-columns: 1fr 1fr 280px;
  gap: 2.5rem;
}

.mega-menu__heading {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 600;
  color: var(--charcoal);
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.mega-menu__list {
  display: grid;
  gap: 0.25rem;
}

.mega-menu__link {
  display: block;
  padding: 0.6rem 0.75rem;
  border-radius: 6px;
  transition: background-color 0.2s;
}

.mega-menu__link:hover {
  background-color: var(--warm-bone);
}

.mega-menu__title {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--charcoal);
  margin-bottom: 0.15rem;
}

.mega-menu__link:hover .mega-menu__title {
  color: var(--muted-bronze);
}

.mega-menu__desc {
  display: block;
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.4;
}

.mega-menu__col--cta {
  background: var(--warm-bone);
  border-radius: 8px;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
}

.mega-menu__col--cta .mega-menu__heading {
  border-bottom: none;
  padding-bottom: 0;
  margin-bottom: 0.75rem;
}

.mega-menu__cta-text {
  font-size: 0.85rem;
  line-height: 1.55;
  color: #6B6B6B;
  margin-bottom: 1.25rem;
  flex: 1;
}

.btn--sm {
  padding: 0.6rem 1.25rem;
  font-size: 0.85rem;
}

/* ========================================
   HERO SECTION
   ======================================== */
.hero {
  position: relative;
  background-color: var(--deep-steel);
  overflow: hidden;
  min-height: 500px;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--deep-steel) 0%, rgba(30, 42, 56, 0.9) 100%);
  z-index: 1;
}

.hero__inner {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 3rem;
  padding: 2.5rem 20px 0;
}

.hero__content {
  flex: 1;
}

.hero__title {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  font-weight: 700;
  line-height: 1.15;
  color: var(--white);
  margin-bottom: 1.25rem;
}

.hero__subtitle {
  font-size: 1.05rem;
  font-weight: 300;
  line-height: 1.7;
  color: var(--text-light);
  margin-bottom: 2rem;
  max-width: 520px;
}

.hero__actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.hero__image {
  flex: 0 0 440px;
  align-self: flex-end;
  margin-bottom: 0;
}

.hero__photo {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
  margin-bottom: -4px;
}

/* ========================================
   ABOUT / MISSION SECTION
   ======================================== */
.about {
  background-color: var(--warm-bone);
  padding: 5rem 0;
}

.about__inner {
  display: flex;
  align-items: flex-start;
  gap: 4rem;
}

.about__content {
  flex: 1;
}

.about__text {
  font-size: 1rem;
  line-height: 1.75;
  color: #4A4A4A;
  margin-bottom: 1.25rem;
}

.about__who {
  margin-top: 2rem;
}

.about__who-title {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--charcoal);
  margin-bottom: 1rem;
}

.about__who-list {
  display: grid;
  gap: 0.75rem;
}

.about__who-list li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--charcoal);
}

.about__who-list li svg {
  flex-shrink: 0;
}

.about__image {
  flex: 0 0 380px;
}

.about__photo {
  width: 100%;
  height: auto;
  border-radius: 8px;
  display: block;
  object-fit: cover;
}

.about__image-placeholder {
  width: 100%;
  aspect-ratio: 4 / 5;
  background: rgba(31, 31, 31, 0.04);
  border: 2px dashed rgba(31, 31, 31, 0.12);
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  color: rgba(31, 31, 31, 0.25);
  font-size: 0.85rem;
}

/* ========================================
   SERVICES SECTION
   ======================================== */
.services {
  padding: 5rem 0;
  background-color: var(--warm-bone);
}

.services__header {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 3rem;
}

.services__intro {
  font-size: 1.05rem;
  color: #6B6B6B;
  line-height: 1.6;
}

.services__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

.service-card {
  background: var(--white);
  border-radius: 8px;
  padding: 2rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.08);
}

.service-card__icon {
  width: 56px;
  height: 56px;
  background: rgba(140, 122, 79, 0.08);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
}

.service-card__title {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--charcoal);
  margin-bottom: 0.75rem;
}

.service-card__desc {
  font-size: 0.9rem;
  line-height: 1.65;
  color: #6B6B6B;
  margin-bottom: 1.25rem;
}

.service-card__link {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--muted-bronze);
  transition: color 0.2s;
}

.service-card__link:hover {
  color: #7a6a42;
}

/* ========================================
   WHY CHOOSE US / DIFFERENTIATORS
   ======================================== */
.why {
  background-color: var(--deep-steel);
  padding: 5rem 0;
}

.why__header {
  text-align: center;
  margin-bottom: 3rem;
}

.why__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

.why__item {
  text-align: center;
  padding: 1.5rem;
}

.why__icon {
  width: 64px;
  height: 64px;
  background: rgba(140, 122, 79, 0.12);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.25rem;
}

.why__title {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 0.75rem;
}

.why__desc {
  font-size: 0.9rem;
  line-height: 1.65;
  color: var(--text-light);
  max-width: 280px;
  margin: 0 auto;
}

/* ========================================
   CTA BANNER
   ======================================== */
.cta-banner {
  background-color: var(--muted-bronze);
  padding: 4rem 0;
}

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

.cta-banner__title {
  font-family: var(--font-heading);
  font-size: 2.25rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 1rem;
}

.cta-banner__text {
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.9);
  max-width: 560px;
  margin: 0 auto 2rem;
  line-height: 1.6;
}

/* ========================================
   FOOTER
   ======================================== */
.footer {
  background-color: var(--charcoal);
  color: var(--text-muted);
  padding-top: 3.5rem;
}

.footer__inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  padding-bottom: 2.5rem;
}

.footer__logo {
  height: 100px;
  width: auto;
  margin-bottom: 0.75rem;
}

.footer__tagline {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.footer__heading {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 1rem;
}

.footer__list {
  display: grid;
  gap: 0.5rem;
  font-size: 0.875rem;
}

.footer__list li {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.footer__link {
  color: var(--text-muted);
  transition: color 0.2s;
}

.footer__link:hover {
  color: var(--white);
}

.footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 1.25rem 0;
  font-size: 0.8rem;
  text-align: center;
}

/* ========================================
   RESPONSIVE - Tablet (768px)
   ======================================== */
@media (min-width: 768px) {
  .section-title {
    font-size: 2.5rem;
  }

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

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

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

/* ========================================
   RESPONSIVE - Desktop (1024px)
   ======================================== */
@media (min-width: 1024px) {
  .container {
    padding: 0 40px;
  }

  .section-title {
    font-size: 2.75rem;
  }

  /* Header */
  .header__logo-img {
    height: 137.5px;
  }

  /* Hero */
  .hero {
    min-height: 600px;
  }

  .hero__inner {
    padding: 3rem 40px 0;
  }

  .hero__title {
    font-size: 3.25rem;
  }

  .hero__subtitle {
    font-size: 1.1rem;
  }

  /* About */
  .about__inner {
    align-items: center;
  }

  /* Services */
  .services__grid {
    grid-template-columns: repeat(4, 1fr);
  }

  /* Why */
  .why__grid {
    grid-template-columns: repeat(4, 1fr);
  }

  /* CTA */
  .cta-banner__title {
    font-size: 2.75rem;
  }

  /* Footer */
  .footer__inner {
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
  }
}

/* ========================================
   RESPONSIVE - Mobile (max-width: 767px)
   ======================================== */
@media (max-width: 767px) {
  /* Top Bar */
  .top-bar__inner {
    justify-content: center;
    text-align: center;
  }

  .top-bar__right {
    display: none;
  }

  /* Navigation */
  .nav-toggle {
    display: block;
  }

  .nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background-color: var(--warm-bone);
    flex-direction: column;
    align-items: flex-start;
    padding: 5rem 2rem 2rem;
    gap: 1.5rem;
    transition: right 0.3s ease;
    box-shadow: -4px 0 20px rgba(0, 0, 0, 0.15);
    z-index: 1000;
  }

  .nav--open {
    right: 0;
  }

  .nav__list {
    flex-direction: column;
    align-items: flex-start;
    gap: 1.25rem;
    width: 100%;
  }

  .nav__link {
    font-size: 1.05rem;
  }

  /* Mega Menu - Mobile */
  .nav__item--has-mega {
    width: 100%;
  }

  .mega-menu {
    position: static;
    box-shadow: none;
    border-top: none;
    background-color: transparent;
    opacity: 1;
    visibility: visible;
    transform: none;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
  }

  .nav__item--has-mega.mega-open .mega-menu {
    max-height: 800px;
  }

  .mega-menu__inner {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    padding: 0.75rem 0 0;
  }

  .mega-menu__heading {
    font-size: 0.8rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--muted-bronze);
    margin-bottom: 0.5rem;
    padding-bottom: 0;
    border-bottom: none;
  }

  .mega-menu__link {
    padding: 0.4rem 0;
  }

  .mega-menu__desc {
    display: none;
  }

  .mega-menu__col--cta {
    display: none;
  }

  .nav__cta {
    width: 100%;
    text-align: center;
  }

  /* Hero */
  .hero__inner {
    flex-direction: column;
    padding: 1.75rem 20px 0;
  }

  .hero__content {
    padding-bottom: 0;
  }

  .hero__image {
    display: none;
  }

  .hero__title {
    font-size: 2rem;
  }

  .hero__actions {
    flex-direction: column;
  }

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

  /* About */
  .about {
    padding: 3.5rem 0;
  }

  .about__inner {
    flex-direction: column;
  }

  .about__image {
    display: none;
  }

  /* Services */
  .services {
    padding: 3.5rem 0;
  }

  /* Why */
  .why {
    padding: 3.5rem 0;
  }

  /* CTA */
  .cta-banner {
    padding: 3rem 0;
  }

  .cta-banner__title {
    font-size: 1.75rem;
  }
}

/* --- Mobile Nav Overlay --- */
.nav-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  z-index: 999;
}

.nav-overlay--visible {
  display: block;
}

/* --- Free Consult Modal --- */
.consult-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1100;
  background: rgba(0, 0, 0, 0.55);
  align-items: center;
  justify-content: center;
}

.consult-modal.is-active {
  display: flex;
  animation: consultFadeIn 0.3s ease;
}

.consult-modal__card {
  background: var(--white);
  border-radius: 12px;
  padding: 2.5rem 2rem;
  max-width: 440px;
  width: 90%;
  text-align: center;
  position: relative;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  animation: consultSlideUp 0.3s ease;
}

.consult-modal__close {
  position: absolute;
  top: 0.75rem;
  right: 1rem;
  background: none;
  border: none;
  font-size: 1.75rem;
  color: var(--text-muted);
  cursor: pointer;
  line-height: 1;
  transition: color 0.2s;
}

.consult-modal__close:hover {
  color: var(--charcoal);
}

.consult-modal__title {
  font-family: var(--font-heading);
  font-size: 1.75rem;
  font-weight: 600;
  color: var(--deep-steel);
  margin-bottom: 0.75rem;
}

.consult-modal__text {
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--charcoal);
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.consult-modal__cta {
  display: inline-block;
  width: 100%;
  text-align: center;
  font-size: 1.05rem;
  padding: 0.85rem 1.5rem;
}

.consult-modal__dismiss {
  display: block;
  margin: 1rem auto 0;
  background: none;
  border: none;
  font-family: var(--font-body);
  font-size: 0.875rem;
  color: var(--text-muted);
  cursor: pointer;
  transition: color 0.2s;
}

.consult-modal__dismiss:hover {
  color: var(--charcoal);
}

@keyframes consultFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes consultSlideUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
