/* =======================================
   GLOBAL STYLES
======================================= */
/* Universal font for all elements */
body,
p,
a,
li,
h1,
h2,
h3,
h4,
h5,
h6,
span {
  font-family: 'Sorts Mill Goudy', serif !important;
}

/* =======================================
   PAGE BACKGROUNDS
======================================= */
body {
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center top;
  /* start at top */
  background-attachment: fixed;
  /* smooth parallax on desktop */
}

/* HOME PAGE BACKGROUND */
.page-home {
  background-image: url("/assets/images/home/background.jpg");
}

/* EXAMPLE: ABOUT PAGE */
.page-meet_us {
  background-image: url("/assets/images/team/background.jpg");
}

/* EXAMPLE: SERVICES PAGE */
.page-services-family-counseling-parent-support {
  background-image: url("/assets/images/services/services-family-counseling-parent-support-background.jpg");
}

.page-services-group-therapy {
  background-image: url("/assets/images/services/services-group-therapy-background.jpg");
}

.page-services-individual-psychotherapy {
  background-image: url("/assets/images/services/services-individual-psychotherapy-background.jpg");
}

.page-services-relationship-marriage-therapy {
  background-image: url("/assets/images/services/services-relationship-marriage-therapy-background.jpg");
}

.page-services-special-education-diagnostic-assessments {
  background-image: url("/assets/images/services/services-special-education-diagnostic-assessments-background.jpg");
}

.page-services-speciality-areas {
  background-image: url("/assets/images/services/services-speciality-areas-background.jpg");
}

/* EXAMPLE: CONTACT PAGE */
.page-contact {
  background-image: url("/assets/images/contact-us/background.jpg");
}

/* Tablet */
@media (max-width: 992px) {
  body {
    background-attachment: scroll;
    /* fixed causes issues on iOS */
  }
}

/* Mobile adjustments */
@media (max-width: 768px) {
  body {
    background-position: center top;
  }
}


.page-wrapper {

  max-width: 1200px;
  /* but never exceeds 1200px on large screens */
  margin: 40px auto;
  border-radius: 0px;
  overflow: hidden;
}

/* =======================================
   HEADER
======================================= */
.header-top {
  text-align: right;
}

.logo {
  max-width: 420px;
  margin-top: 0px;
  /* lift logo */
  margin-bottom: 0;
}



/* =======================================
   NAVBAR
======================================= */
.main-nav {
  /* light gray */
  border-bottom: 0px;
}

.main-nav .navbar-nav .nav-link {
  color: #233A61 !important;
  font-size: 18px;
  /* slightly larger */
  letter-spacing: 0.4px;
  padding: 12px 32px;
  margin: 0 15px;
  transition: all 0.3s ease;
  font-weight: bold;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
  color: #233A61 !important;
  background-color: #e3ebea;
  /* new tone */
  font-weight: bold;

}


/* Modern Dropdown Menu */
.dropdown-menu {
  border: 1px solid #ddd;
  border-radius: 0px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  padding: 8px 0;
  min-width: 240px;
  animation: fadeIn 0.2s ease;
}

.dropdown-item {
  color: #233A61;
  padding: 10px 20px;
  font-size: 16px;
  transition: all 0.2s ease;
  border-bottom: 1px solid #ddd;
}

.dropdown-item:last-child {
  border-bottom: none;
}

.dropdown-item:hover {
  background-color: #f2f4f7;
  padding-left: 24px;
}

/* Fade-in dropdown animation */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-5px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (min-width: 992px) {
  .navbar-expand-lg .navbar-nav .dropdown-menu {
    position: absolute;
    margin-left: 14px;
  }
}

/* =======================================
   HEADER IMAGE (Standardized across pages)
======================================= */
.header-image {
  position: relative;
  margin: 0 auto;
  max-width: 1100px;
  padding: 0;
  /* remove padding here */
}

.header-inner {
  position: relative;
  width: 100%;
  overflow: hidden;
  border-radius: 0;
}

.header-inner img {
  width: 100%;
  height: auto;
  max-height: 480px;
  object-fit: contain;
  display: block;
}

/* The overlay now positions relative to the inner wrapper */
.header-quote {
  position: absolute;
  color: #fff;
  font-family: Georgia, 'Times New Roman', serif;
  font-style: italic;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
  line-height: 1.4;
  transition: all 0.3s ease;
  max-width: 90%;
}

/* Home Page quote position (bottom right corner) */
.quote-home {
  bottom: 30px;
  left: 55%;
  transform: translateX(-5%);
  font-size: 20px;
  text-align: center;
  max-width: 35%;
}

/* Position the contact page quote at top-left */
.quote-contact {
  top: 24px;
  left: 130px;
  right: auto;
  bottom: auto;
  transform: none;
  max-width: 33%;
  text-align: left;
  /* main quote lines left-aligned */
  font-size: 20px;
  line-height: 1.4;
  word-break: break-word;
  /* safe wrapping */
}

/* Attribution on its own line, right-aligned */
.header-quote .quote-cite {
  display: block;
  font-size: 14px;
  font-style: normal;
  /* flush right within the same box */
  opacity: 0.95;
  font-family: Georgia, 'Times New Roman', serif;
  font-style: italic;
}

/* Meet Us Page quote: centered horizontally on image */



.quote-services-family-counseling-parent-support {
  top: 50px;
  left: 25%;
  transform: translateX(-50%);
  max-width: 28%;
  text-align: center;
  font-size: 20px;
  line-height: 1.4;
  word-break: break-word;
  color: #000;
}

.quote-services-group-therapy {
  top: 24px;
  left: 50%;
  transform: translateX(-50%);
  max-width: 40%;
  text-align: center;
  font-size: 20px;
  line-height: 1.4;
  word-break: break-word;
  color: #000;
}

.quote-services-individual-psychotherapy {
  /* bottom-left on the header image */
  bottom: 20px;
  left: 35%;
  top: auto;
  transform: none;
  text-align: center;
  max-width: 35%;
  /* typography */
  font-size: 20px;
  line-height: 1.4;
  color: #fff;
  /* white text */
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.35);
  /* readability on photos */
  word-break: break-word;
}

.quote-services-relationship-marriage-therapy {
  top: 100px;
  left: 60%;
  transform: translateX(-50%);
  max-width: 32%;
  text-align: center;
  font-size: 20px;
  line-height: 1.4;
  word-break: break-word;
  color: #000;
}

.quote-services-special-education-diagnostic-assessments {
  top: 50%;
  left: 25%;
  transform: translateX(-50%);
  max-width: 24%;
  text-align: center;
  font-size: 20px;
  line-height: 1.4;
  word-break: break-word;
  color: #000;
}

.quote-services-speciality-areas {
  top: 24px;
  right: 0;
  transform: translateX(-50%);
  max-width: 35%;
  text-align: center;
  font-size: 20px;
  line-height: 1.4;
  word-break: break-word;
  color: #fff;
  /* white text */
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.35);
  /* readability on photos */
}


/* Example: centered quote for other pages */
.quote-centered {
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 26px;
  text-align: center;
  max-width: 70%;
}

/* =======================================
   RESPONSIVE HEADER IMAGE (Consolidated)
======================================= */

/* Tablets / small laptops */
@media (max-width: 992px) {
  .header-image {
    max-width: 100%;
    padding: 0;
  }

  .header-image img {
    max-height: 380px;
    /* step down from desktop 480px */
  }

  .header-quote {
    font-size: 18px !important;
    max-width: 35%;
  }

  /* Home quote nudged a bit left on narrower screens */
  .quote-home {
    left: 50%;
    bottom: 22px;
  }

  .quote-contact {
    top: 18px;
    left: 130px;
    max-width: 33%;
    font-size: 18px;
  }
}

/* Large phones / small tablets */
@media (max-width: 768px) {
  .header-image img {
    max-height: 320px;
    /* your existing value retained */
  }

  .header-quote {
    font-size: 16px !important;
    max-width: 35%;
  }

  .header-quote1 .quote-cite {
    text-align: center;
  }


}

/* Phones */
@media (max-width: 600px) {

  /* Center the quote on very small screens for readability */
  .header-quote {
    font-size: 14px !important;
    text-align: center;
    left: 50% !important;
    transform: translateX(-50%) !important;
    bottom: 18px;
    /* keep it above the bottom edge */
    max-width: 92%;
  }

  .header-quote1 .quote-cite {
    text-align: center;
  }
}



/* =======================================
   MAIN CONTENT
======================================= */
.content h1 {
  color: #233A61;
  font-size: 28px;
  margin-bottom: 20px;
}

.content p {
  font-size: 18px;
  margin-bottom: 15px;
}

.intro {
  font-style: italic;
  font-weight: bold;
  font-size: 20px;
  color: #444;
}

/* =======================================
   FOOTER (Updated Styling)
======================================= */
.site-footer {
  border-top: 1px solid #ddd;
  background-color: #fff;
  color: #233A61;
  /* navy blue text */
  font-family: 'Sorts Mill Goudy', serif !important;
}

/* Footer links */
.site-footer a {
  color: #233A61;
  text-decoration: none;
  margin: 0 10px;
  font-weight: bold;
}

.site-footer a:hover {
  color: #000080;
  /* deeper navy on hover */
}

/* Copyright text */
.site-footer p {
  color: #233A61;
  /* navy blue */
  font-size: 15px;
  margin-top: 10px;
}

/* Social Icons: rounded, outlined navy buttons */
.social-icons a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  margin: 0 8px;
  border: 1px solid #233A61;
  /* navy outline */
  border-radius: 50%;
  /* makes them circular */
  color: #233A61;
  /* navy icon */
  font-size: 18px;
  transition: all 0.3s ease;
}

.social-icons a:hover {
  background-color: #233A61;
  color: #fff;
  /* white icon on hover */
  transform: scale(1.05);
}


/* =======================================
   MOBILE / TABLET (≤ 992px)
   Clean drop-panel menu + boxed dropdown
======================================= */
@media (max-width: 992px) {

  /* 0 top margin on the whole template */
  .page-wrapper {
    margin: 0;
    border-radius: 0;
    max-width: 100%;
    /* flush with viewport edges */
  }

  /* Hide the top info band */
  .header-top {
    display: none !important;
  }

  /* Light gray navbar */
  .main-nav {
    background: #f8f8f8 !important;
    border-bottom: 1px solid #ddd;
    padding: 0 !important;
    margin: 0 !important;
  }

  /* Keep Bootstrap's flex so we can push the toggler to the right */
  .navbar>.container {
    display: flex;
    align-items: center;
  }

  /* Hamburger (right) */
  .navbar-toggler {
    margin-left: auto;
    /* ensures right alignment */
    border: none;
    background: none;
    padding: 10px 12px;
    line-height: 1;
  }

  .navbar-toggler:focus {
    box-shadow: none;
  }

  .navbar-toggler .fa-bars {
    color: #233A61;
    font-size: 26px;
  }

  /* Drop-panel below navbar (not a side canvas) */
  .navbar-collapse {
    position: static;
    /* sits right under navbar */
    width: 100%;
    background: #fff;
    border-top: 1px solid #ddd;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.06);
    text-align: left;
    /* left-aligned text on mobile */
    padding: 6px 0;
  }

  /* Make nav list stretch and align left */
  .navbar-nav {
    width: 100%;
  }

  .navbar-nav .nav-link {
    color: #233A61 !important;
    font-size: 18px;
    padding: 12px 16px;
    border-bottom: 1px solid #eee;
    font-weight: 600;
    text-align: left;
    /* ensure left alignment */
    background: transparent;
  }

  .navbar-nav .nav-link:last-child {
    border-bottom: 0;
  }

  .navbar-nav .nav-link:hover,
  .navbar-nav .nav-link.active {
    background-color: #e5e7eb;
    /* light gray hover/active only */
    color: #233A61 !important;
  }

  /* ===== Professional boxed dropdown on mobile ===== */
  /* Turn off Popper positioning and render inline under the toggle */
  .nav-item.dropdown {
    width: 94%;
  }

  .nav-item.dropdown>.dropdown-toggle {
    width: 100%;
    display: flex;
    /* space for label + caret */
    align-items: center;
    justify-content: space-between;
  }

  .nav-item.dropdown .dropdown-toggle::after {
    transition: transform .2s ease;
    margin-left: .5rem;
  }

  .nav-item.dropdown.show .dropdown-toggle::after {
    transform: rotate(180deg);
  }

  .dropdown-menu {
    position: static !important;
    /* inline under toggle */
    float: none;
    transform: none !important;
    display: none;
    margin: 8px 12px 12px;
    /* inset to make a “box” */
    padding: 8px;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.06);
    text-align: left;
    /* left aligned text */
  }

  /* Show the menu when Bootstrap adds .show */
  .dropdown-menu.show {
    display: block;
  }

  .dropdown-item {
    padding: 10px 12px;
    border-radius: 6px;
    border: 0;
    /* no hard separators */
    color: #233A61;
    font-size: 16px;
  }

  .dropdown-item:hover {
    background: #f6f7f9;
  }

  /* Optional: compact header logo row on mobile */
  .logo {
    max-width: 260px;
    height: auto;
  }
}

/* Doctor header image sizing & responsiveness */
.doctor-photo {
  display: block;
  width: 168px;
  /* your actual image width */
  max-width: 100%;
  /* allows shrink on small screens */
  height: auto;
}

/* Keep your existing .doctor-contact, but on mobile center it */
@media (max-width: 767.98px) {
  .doctor-photo {
    margin: 0 auto 12px;
    /* center image above text on mobile */
  }

  .doctor-contact {
    text-align: center;
  }
}


/* =====================================================
   FOOTER CONTACT INFO (only shows below 992px)
===================================================== */
.footer-contact-info {
  text-align: center;
  font-size: 16px;
  color: #233A61;
  line-height: 1.5;
}

@media (min-width: 992px) {
  .footer-contact-info {
    display: none !important;
    /* hide on desktop */
  }
}

/* =======================================
   NAVBAR FIXES (Mobile)
======================================= */
/* =======================================
   CLEAN MOBILE DROPDOWN STYLE
======================================= */
@media (max-width: 992px) {

  /* Mobile Home link same as nav-link */
  .navbar-brand.d-lg-none.nav-link {
    color: #233A61 !important;
    font-size: 18px;
    padding: 12px 16px;
    font-weight: bold;
    background: transparent;
    text-decoration: none;
  }

  .navbar-brand.d-lg-none.nav-link.active,
  .navbar-brand.d-lg-none.nav-link:hover {
    background-color: #e3ebea;
    color: #233A61 !important;
  }

  /* Flatten the dropdown menu */
  .dropdown-menu {
    position: static !important;
    display: none;
    border: 1px solid #ddd !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    background: #fff !important;
    margin: 0 0 12px;
    padding: 0;
  }

  /* Show dropdown when active */
  .dropdown-menu.show {
    display: block;
    margin-left: 30px;
  }

  /* Dropdown items with clean dividers */
  .dropdown-item {
    border-bottom: 1px solid #eee;
    color: #233A61 !important;
    font-size: 17px;
    font-weight: normal;
    padding: 10px 18px;
    background: transparent !important;
    border-radius: 0 !important;
  }

  .dropdown-item:last-child {
    border-bottom: none;
  }

  .dropdown-item:hover {
    background: #f5f5f5 !important;
  }

  /* Remove outer “box” look, keep flat inside nav */
  .navbar-collapse {
    border-top: 1px solid #ddd;
    box-shadow: none !important;
    background: #fff;
  }

  /* Prevent horizontal scroll */
  .navbar-collapse {
    overflow-x: hidden;
  }

  /* Hamburger icon */
  .navbar-toggler .fa-bars {
    color: #233A61;
    font-size: 26px;
  }
}

/* =====================================================
   Floating WhatsApp FAB
===================================================== */
.tpc-whatsapp-fab {
  position: fixed;
  right: 18px;
  bottom: 22px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #25D366;
  /* WhatsApp green */
  color: #fff !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  text-decoration: none;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.18);
  z-index: 1035;
  /* above header/nav */
  transition: transform .15s ease, box-shadow .15s ease, opacity .2s ease;
}

.tpc-whatsapp-fab:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.22);
  color: #fff !important;
}

.tpc-whatsapp-fab:active {
  transform: translateY(0);
}

/* Respect iOS safe area + give a little more room on mobile */
@media (max-width: 768px) {
  .tpc-whatsapp-fab {
    right: max(14px, env(safe-area-inset-right));
    bottom: calc(16px + env(safe-area-inset-bottom));
    width: 54px;
    height: 54px;
    font-size: 26px;
  }
}

/* Optional: hide on very small heights (e.g., keyboard open) */
@media (max-height: 420px) {
  .tpc-whatsapp-fab {
    opacity: 0.9;
  }
}

/* Lift header logo on desktop only (header-top visible) */
@media (min-width: 992px) {

  /* reduce vertical padding on the logo row */
  .header-top+.text-center.border-bottom {
    padding-top: 8px;
    /* was py-3 from Bootstrap */
    padding-bottom: 8px;
  }

  /* pull the logo upward a bit */
  .logo {
    margin-top: -75px;
    /* tweak between -10px and -24px to taste */
  }
}


.meet-us-link>a {
  color: #000080;
  text-decoration: none;
  cursor: pointer;
}

/* Meet Us: 3-line centered quote (responsive) */
.quote-meet-us {
  position: absolute;
  top: 24px;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  color: #000;
  font-family: Georgia, 'Times New Roman', serif;
  font-style: italic;
  line-height: 1.4;
  max-width: 90%;
  font-size: 20px;
}

.quote-meet-us .quote-line {
  display: block;
  /* force each line to its own line */
  width: 100%;
  white-space: normal;
  /* allow wrapping within each line */
}

.quote-meet-us .quote-cite {
  display: block;
  font-size: 16px;
  font-style: normal;
  margin-top: 4px;
  font-weight: 500;
}

/* Responsive adjustments */
@media (max-width: 992px) {
  .quote-meet-us {
    font-size: 18px;
    /* reduce slightly for tablets */
    max-width: 92%;
  }

  .quote-meet-us .quote-cite {
    font-size: 15px;
  }
}

@media (max-width: 768px) {
  .quote-meet-us {
    font-size: 16px;
    /* smaller for small tablets and large phones */
  }

  .quote-meet-us .quote-cite {
    font-size: 14px;
  }
}

@media (max-width: 480px) {
  .quote-meet-us {
    font-size: 14px;
    /* compact font for small phones */
    max-width: 95%;
  }

  .quote-meet-us .quote-cite {
    font-size: 13px;
  }
}

/* =======================================
   Adjust WhatsApp FAB position inside white area
======================================= */

/* Default (Desktop) — keep inside white footer area */
@media (min-width: 992px) {
  .tpc-whatsapp-fab {
    right: calc(50% - 580px + 24px);
    bottom: 40px;
    /* centers relative to page-wrapper (max 1200px wide)
       50% centers, minus half width (1200/2 = 600px) plus padding (24px)
       Adjust +24px to visually fine-tune inward offset */
  }
}

/* On smaller screens — float normally on edge */
@media (max-width: 991px) {
  .tpc-whatsapp-fab {
    right: 18px;
  }
}

.btn-primary {
  --bs-btn-color: #1d1c1c;
  --bs-btn-bg: #e3ebea;
  --bs-btn-border-color: #e3ebea;
  --bs-btn-hover-color: #e3ebea;
  --bs-btn-hover-bg: #1d1c1c;
  --bs-btn-hover-border-color: #1d1c1c;
  --bs-btn-focus-shadow-rgb: 49, 132, 253;
  --bs-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125);

}