@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800&display=swap');

/* CSS Variables for Theme */
:root {
  --color-primary-navy: #1E1F4B;
  --color-primary-navy-hover: #2B2C66;
  --color-secondary-cream: #FAEFE9;
  --color-text-main: #333333;
  --color-text-light: #666666;
  --color-white: #FFFFFF;
  --color-border: #E0D9CE;
  --color-red-accent: #A03E36;
  --color-teal-accent: #6EB5A2;
  
  --font-family-base: 'Poppins', sans-serif;
  
  --transition-speed: 0.3s;
  --border-radius: 8px;
  --box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

/* ========================================= */
/*               MOBILE STYLES               */
/* ========================================= */

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-family-base);
  background-color: var(--color-white);
  color: var(--color-text-main);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

ul {
  list-style: none;
}

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

/* Header */
.site-header {
  background-color: #FFE3CF;
  border-bottom: 1px solid rgba(0,0,0,0.05);
  position: sticky;
  top: 0;
  z-index: 100;
  padding: 15px 0;
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 70px;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 30px;
}

.logo {
  display: flex;
  align-items: center;
}

.site-logo {
  height: 45px;
  width: auto;
  display: block;
}

.main-nav {
  display: none;
}

.header-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.header-actions .btn-action {
  flex: 0 0 calc(50% - 4px);
  max-width: calc(50% - 4px);
}

.btn-action {
  font-weight: 700;
  font-size: 0.75rem;
  padding: 8px 12px;
  border-radius: 10px;
  color: #fff;
  text-transform: uppercase;
  text-decoration: none;
  transition: opacity 0.2s;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
}

.btn-action:hover {
  opacity: 0.8;
}

.btn-book { background-color: #C0796E; }
.btn-locations { background-color: #6EB5A2; }
.btn-services { background-color: var(--color-primary-navy); }
.btn-phone { background-color: #A03E36; }

.header-socials {
  display: none;
}

/* Typography Overrides */
h1, h2, .section-heading, .form-title {
  font-family: Helvetica, Arial, sans-serif;
}

/* Hero Section */
.hero {
  padding: 20px 10px 10px;
  background-color: #fff;
}

/* Mobile Banner Visible by Default */
.hero-banner-mobile {
  display: block;
  max-width: 1000px;
  margin: 0 auto;
}

.hero-banner-mobile img {
  width: 100%;
  height: auto;
  display: block;
}

/* Desktop Banner Hidden on Mobile */
.hero-banner.desk {
  display: none;
}

.hero-banner img {
  width: 100%;
  height: auto;
  display: block;
}

/* Section Headings */
.section-heading {
  text-align: center;
  font-size: 1.5rem;
  color: var(--color-primary-navy);
  margin-bottom: 20px;
  position: relative;
  font-weight: 800;
  text-transform: uppercase;
}
.section-heading.meet-our-sp {
  padding-top: 40px;
}

.heading-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  width: 70%;
  margin: 0 auto 20px auto;
  bottom: 7px;
}

.heading-divider::before {
  content: '';
  position: absolute;
  width: 100%;
  max-width: 900px;
  height: 2px;
  background-color: #F6D6C0;
  z-index: 0;
}

.divider-icon {
  position: relative;
  z-index: 1;
  background-color: #FDF3EC;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.divider-icon svg {
  fill: var(--color-primary-navy);
  width: 20px;
  height: 20px;
}

.heading-divider--dark::before {
  background-color: var(--color-primary-navy);
}

.divider-icon--dark {
  background-color: var(--color-primary-navy);
}

.divider-icon--dark svg {
  fill: var(--color-white);
}

/* Refer a Patient Section */
section.why-choose-us.info-section {
    margin-top: 60px;
}

.referral-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  max-width: 1000px;
  margin: 0 auto;
}

.referral-grid .referral-btn {
  flex: 0 0 calc(50% - 5px);
  max-width: calc(50% - 5px);
}

.referral-btn {
  font-family: Helvetica, Arial, sans-serif;
  background-color: #FEFAF8;
  border: 2px solid #F6D6C0;
  color: var(--color-primary-navy);
  padding: 10px;
  border-radius: 40px;
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 5px;
  transition: all var(--transition-speed);
  box-shadow: 0 2px 5px rgba(0,0,0,0.02);
}

.referral-btn .btn-icon {
  width: 24px;
  height: 24px;
  fill: var(--color-primary-navy);
  transition: fill var(--transition-speed);
  display: none;
}

.referral-btn:hover, .referral-btn.active {
  background-color: var(--color-red-accent);
  color: var(--color-white);
  box-shadow: 0 4px 10px rgba(160, 62, 54, 0.2);
}

.referral-btn:hover .btn-icon, .referral-btn.active .btn-icon {
  fill: var(--color-white);
}

/* Form Container */
#referral-form-container {
  display: none;
  padding: 0px 0 60px;
  animation: fadeIn 0.5s ease;
}

#referral-form-container.active {
  display: block;
}

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

.form-header {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  margin-bottom: 20px;
  flex-wrap: wrap;
  gap: 15px;
}

.form-title {
  color: var(--color-primary-navy);
  font-size: 1.5rem;
}

.back-btn {
  background-color: transparent;
  border: none;
  color: var(--color-primary-navy);
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 8px 15px;
  border-radius: 20px;
  transition: background-color var(--transition-speed);
}

.back-btn:hover {
  background-color: rgba(30, 31, 75, 0.1);
}

.iframe-wrapper {
  width: 100%;
  background: transparent;
  border-radius: 0;
  box-shadow: none;
  overflow: hidden;
  position: relative;
  min-height: 500px;
}

#jotform-iframe {
  width: 100%;
  height: 800px;
  border: none;
  display: block;
}

.loader {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 40px;
  height: 40px;
  border: 4px solid var(--color-border);
  border-top-color: var(--color-primary-navy);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  z-index: 0;
}

@keyframes spin {
  to { transform: translate(-50%, -50%) rotate(360deg); }
}

#jotform-iframe, iframe[id^="JotFormIFrame-"] {
  position: relative;
  z-index: 1;
  background: transparent;
}

/* Why Choose Us Section */
.why-choose-us {
  padding: 60px 0;
  background-color: var(--color-secondary-cream);
}

.features-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
}

.feature-card {
  background-color: var(--color-primary-navy);
  color: var(--color-white);
  padding: 20px 15px;
  border-radius: 12px;
  text-align: left;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: flex-start;
  min-height: 140px;
  transition: transform var(--transition-speed);
  width: calc(50% - 10px);
}

.feature-card:hover {
  transform: translateY(-5px);
}

.feature-icon {
  margin-bottom: 20px;
  width: 40px;
  height: 40px;
}

.feature-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.feature-card h3 {
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.3;
}

/* Meet Our Specialists */
.specialists {
  padding: 0 0;
  background-color: var(--color-white);
}

.specialists-slider-container {
  position: relative;
  display: flex;
  align-items: center;
  bottom: 50px
}

.slider-btn {
  background: transparent;
  border: 2px solid #F6D6C0;
  color: #F6D6C0;
  border-radius: 50%;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  z-index: 10;
  padding: 0;
}

.slider-btn svg {
  fill: #F6D6C0;
  width: 20px;
  height: 20px;
}

.specialists-grid {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  gap: 15px;
  scrollbar-width: none;
  flex-grow: 1;
  padding: 20px 5px;
}

.specialists-grid::-webkit-scrollbar {
  display: none;
}

.specialist-card {
  scroll-snap-align: center;
  flex: 0 0 calc(100% - 10px);
  max-width: calc(100% - 10px);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin: 0;
}

.specialist-image {
  width: 280px;
  max-width: 100%;
  height: 310px;
  background-color: transparent;
  border-radius: 0;
  display: flex;
  justify-content: center;
  align-items: flex-end;
}

.specialist-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: bottom;
}

.specialist-info {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  width: 100%;
  align-items: center;
}

.specialist-header {
  min-height: 83px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;
  width: 100%;
}

.specialist-name {
  font-size: 1rem;
  color: var(--color-primary-navy);
  font-weight: 600;
  margin-bottom: 5px;
  min-height: 30px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  width: 100%;
}

.specialist-title {
  font-size: 0.85rem;
  color: #202055;
  font-weight: 400;
  margin-bottom: 15px;
  line-height: 1.3;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  width: 100%;
}

.specialist-services {
  background-color: #FCEBE1; /* Light peach box */
  border-radius: 0 0 10px 10px;
  padding: 15px 20px;
  width: 100%;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.specialist-services ul {
  text-align: left;
}

.specialist-services li {
  font-size: 0.85rem;
  color: var(--color-primary-navy);
  font-weight: 600;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.specialist-services li:last-child {
  margin-bottom: 0;
}

.service-icon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.btn-primary {
  display: inline-block;
  background-color: var(--color-primary-navy);
  color: var(--color-white);
  padding: 12px 30px;
  border-radius: 30px;
  font-weight: 600;
  transition: background-color var(--transition-speed), transform var(--transition-speed);
}

.btn-primary:hover {
  background-color: var(--color-primary-navy-hover);
  transform: translateY(-2px);
}

/* Footer */
.site-footer {
  background-color: rgb(32, 32, 85);
  color: #F6D6C0;
  padding: 60px 0 30px;
}

.footer-top {
  display: flex;
  flex-direction: column;
  gap: 40px;
  margin-bottom: 50px;
}

.footer-brand {
margin : auto;
}

.site-logo-footer {
  height: stretch;
  width: auto;
}

.footer-links-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  width: 100%;
  max-width: 800px;
}

.footer-col {
  flex: 0 0 calc(50% - 15px);
  max-width: calc(50% - 15px);
}

.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.footer-col a {
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  color: rgb(255, 193, 154);
  transition: opacity var(--transition-speed);
}

.footer-col a:hover {
  opacity: 0.8;
}

.footer-bottom {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.footer-bottom-flex {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  width: 100%;
}

.footer-bottom-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
}

.footer-bottom-links a {
  font-size: 0.85rem;
  font-weight: 700;
  color: rgb(255, 193, 154);
  text-transform: uppercase;
  transition: opacity var(--transition-speed);
}

.footer-bottom-links a:hover {
  opacity: 0.8;
}

.social-col {
  display: flex;
  align-items: flex-start;
}

.social-links {
  display: flex;
  gap: 15px;
  margin-bottom: 0;
}

.social-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  transition: opacity var(--transition-speed);
  background: transparent;
  border-radius: 0;
}

.social-links a:hover {
  opacity: 0.8;
  background: transparent;
}

.social-links svg {
  width: 20px;
  height: 20px;
  fill: rgb(255, 193, 154);
}

.copyright {
  font-size: 0.85rem;
  font-weight: 700;
  color: rgb(255, 193, 154);
  text-align: center;
}

/* Utilities */
.hidden {
  display: none !important;
}


/* ========================================= */
/*       SMALL TABLET & UP STYLES (> 576px)  */
/* ========================================= */
@media (min-width: 576px) {
  /* Footer */
  .footer-col {
flex: 0 0 calc(20% - 30px);
  }
}

/* ========================================= */
/*               TABLET STYLES               */
/* ========================================= */
@media (min-width: 768px) {
  /* Header */
  .header-actions {
    flex-wrap: nowrap;
    gap: 15px;
    align-items: center;
  }
  .header-actions .btn-action {
    flex: initial;
    max-width: none;
  }

  /* Hero Section */
  .hero-banner.desk {
    display: block;
    max-width: 1000px;
    margin: 0 auto;
  }
  .hero-banner-mobile {
    display: none;
  }

  /* Refer a Patient */
  .referral-grid {
    justify-content: center;
    gap: 15px;
  }
  .referral-grid .referral-btn {
    flex: initial;
    max-width: none;
  }
  .referral-btn {
    padding: 7px 13px;
    font-size: 0.85rem;
    justify-content: center;
    text-align: center;
  }
  .referral-btn .btn-icon {
    display: block;
  }

  /* Why Choose Us */
  .feature-card {
    width: calc(25% - 15px);
  }

  /* Meet Our Specialists */
  .slider-btn {
    display: none;
  }
  .specialists-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    overflow-x: visible;
    gap: 30px;
    padding: 20px;
  }

.specialist-image {
  height: 264px;
}

  .specialist-card {
    flex: 0 0 calc(33.333% - 20px);
    max-width: calc(33.333% - 20px);
  }

  /* Footer */
  .footer-bottom-flex {
    flex-direction: row;
    justify-content: center;
    gap: 30px;
  }
}

/* ========================================= */
/*               DESKTOP STYLES              */
/* ========================================= */
@media (min-width: 992px) {

.referral-grid {
  padding: 0px 100px;
}

  /* Why Choose Us */
  .feature-card {
    width: 18%;
    padding: 30px 20px;
    min-height: 160px;
  }


.specialist-image {
  height: 310px;
}

 .referral-btn {
    padding: 7px 20px;
 }
  /* Footer */
  .footer-top {
    flex-direction: row;
    justify-content: space-between;
  }
  .footer-col {
    flex: 0 0 calc(20% - 24px);
    max-width: calc(20% - 24px);
  }
  .social-col {
    align-items: flex-end;
  }
}

@media (min-width: 1024px) {
  /* Header */




  .main-nav {
    display: block;
  }

a.btn-action.btn-services {
    display: none;
}

  .main-nav ul {
    display: flex;
    gap: 20px;
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 0;
  }
  .main-nav a {
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--color-primary-navy);
    text-transform: uppercase;
    text-decoration: none;
    transition: color var(--transition-speed);
  }
  .main-nav a:hover {
    color: var(--color-red-accent);
  }
}

/* ========================================= */
/*             LARGE DESKTOP STYLES          */
/* ========================================= */
@media (min-width: 1200px) {


  /* Header */
  .header-socials {
    display: flex;
    gap: 10px;
    align-items: center;
  }
  .header-socials a {
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .header-socials svg {
    width: 18px;
    height: 18px;
    fill: var(--color-primary-navy);
  }

  /* Meet Our Specialists */
  .specialists-grid {
    padding: 20px 130px;
  }

.footer-brand {
    margin: unset;
}

}