/* ================================
   HH EYE CARE — CUSTOM THEME
   Modern medical color palette
   ================================ */

/* COLOR SYSTEM */
:root {
  --primary: #064A52;       
  --primary-light: #4EC5C1;
  --accent: #F2C94C;
  --bg: #ffffff;
  --bg-light: #D6EFEF;
  --text-dark: #1A1A1A;
  --text-muted: #6F7A85;
}

.bg-light {
  background-color: var(--bg-light) !important;
}

.bg-white {
  background-color: var(--bg) !important;
}

.text-dark {
  color: var(--text-dark) !important;
}

.text-muted {
  color: var(--text-muted) !important;
}

/* GLOBAL RESETS */
body {
  font-family: "Inter", "Segoe UI", sans-serif;
  color: var(--text-dark);
  background-color: var(--bg);
  line-height: 1.6;
}

h1, h2, h3, h4, h5 {
  font-weight: 700;
  color: var(--primary);
}

p, li {
  color: var(--text-muted);
}

/* NAVBAR */

/* Smart Header — Shrink on Scroll */
.navbar {
  transition: padding 0.3s ease, box-shadow 0.3s ease;
}

.navbar.navbar-shrink {
  padding-top: 0.35rem;
  padding-bottom: 0.35rem;
  box-shadow: 0 2px 10px rgba(0,0,0,0.08);
}

.navbar.navbar-shrink .navbar-brand img {
  max-height: 60px;
  transition: max-height 0.3s ease;
}
/* NAVBAR — Premium Styling */
.navbar {
  background: #ffffff;
  border-bottom: 1px solid rgba(0,0,0,0.06);
  box-shadow: 0 4px 14px rgba(0,0,0,0.05);
  padding-top: 0.75rem;
  padding-bottom: 0.75rem;
}

/* Match phone pill + Book Now button heights */
.nav-phone-pill,
.navbar .btn-primary {
  padding: 10px 22px;        /* identical vertical + horizontal padding */
  border-radius: 50px;       /* same pill shape */
  font-weight: 600;
  display: flex;
  align-items: center;
  height: 44px;              /* forces perfect matching height */
}

/* Icon alignment inside phone pill */
.nav-phone-pill span {
  display: flex;
  align-items: center;
}

/* Mobile: larger tap target */
@media (max-width: 600px) {
  .nav-phone-pill,
  .navbar .btn-primary {
    padding: 12px 26px;
    height: 48px;            /* slightly taller for thumbs */
    font-size: 1.05rem;
  }
}

/* Navbar brand */
.navbar-brand img {
  max-height: 72px;
}

/* Nav links */
.navbar .nav-link {
  color: var(--text-dark);
  font-weight: 500;
  padding: 0.5rem 1rem;
  transition: color 0.25s ease;
}

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

/* Active link (optional) */
.navbar .nav-link.active {
  color: var(--primary);
  font-weight: 600;
}

/* Mobile collapse background */
@media (max-width: 992px) {
  .navbar-collapse {
    background: #ffffff;
    padding: 1rem 0;
    border-radius: 8px;
    box-shadow: 0 6px 18px rgba(0,0,0,0.08);
  }
}
/* Book Now button — match phone pill styling */
.navbar .btn-primary {
  padding: 10px 22px;
  border-radius: 50px; /* pill shape */
  font-weight: 600;
  font-size: 1rem;
  background: var(--primary);
  border-color: var(--primary);
  transition: background 0.25s ease, transform 0.25s ease;
}

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

/* Mobile: slightly larger tap target */
@media (max-width: 600px) {
  .navbar .btn-primary {
    padding: 12px 26px;
    font-size: 1.05rem;
    border-radius: 50px;
    margin-top: 8px;
  }
}

.navbar {
  border-bottom: 1px solid #e5e5e5;
}

.navbar-brand {
  color: var(--primary) !important;
}

.nav-link {
  color: var(--text-dark) !important;
  font-weight: 500;
}

.nav-link:hover {
  color: var(--primary) !important;
}
/* Desktop pill style */
.nav-phone-pill {
  padding: 8px 16px;
  background: var(--primary-light);
  color: #fff !important;
  border-radius: 50px;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.25s ease, transform 0.25s ease;
}

.nav-phone-pill:hover {
  background: var(--primary);
  transform: translateY(-2px);
}

/* Mobile: make it a stronger tap target */
@media (max-width: 600px) {
  .nav-phone-pill {
    padding: 10px 18px;
    font-size: 1.05rem;
    background: var(--primary);
    display: inline-block;
    margin-top: 8px;
  }
}

/* BUTTONS */
.btn-primary {
  background-color: var(--primary);
  border-color: var(--primary);
}

.btn-primary:hover {
  background-color: var(--primary-light);
  border-color: var(--primary-light);
}

.btn-accent {
  background-color: var(--accent);
  border-color: var(--accent);
  color: #000;
}

.btn-accent:hover {
  opacity: 0.85;
}



/* HERO SECTION */
.hero {
  background-color: var(--bg-light);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  text-align: center;
  min-height: auto;
}

/* Desktop */
.hero {
  padding: 70px 0;   /* previously 70px — now slightly taller */
}

/* Tablet */
@media (max-width: 992px) {
  .hero {
    padding: 60px 0;  /* previously 60px */
  }
}

/* Mobile */
@media (max-width: 600px) {
  .hero {
    padding: 48px 0;  /* previously 48px */
  }
}
.hero-content {
  max-width: 840px; /* ideal readable width */
  margin: 0 auto;
  text-align: center;
}
@media (max-width: 600px) {

  .hero {
    padding: 40px 0;
  }

  .hero-content {
    max-width: 90%;
  }

  .hero h1 {
    font-size: 1.9rem;
    line-height: 1.25;
    white-space: normal; /* allow wrapping */
    margin-bottom: 0.5rem;
  }

  .hero-sub {
    font-size: 1.05rem;
    margin-bottom: 0.55rem;
  }

  .hero-tagline {
    font-size: 1.05rem;
    margin-bottom: 1.2rem;
  }

  .hero-cta {
    font-size: 1rem;
    padding: 12px 26px;
  }
}
@media (max-width: 992px) {

  .hero {
    padding: 50px 0;
  }

  .hero-content {
    max-width: 85%;
  }

  .hero h1 {
    font-size: 2.4rem;
    line-height: 1.25;
    margin-bottom: 0.55rem;
  }

  .hero-sub {
    font-size: 1.18rem;
    margin-bottom: 0.65rem;
  }

  .hero-tagline {
    font-size: 1.15rem;
    margin-bottom: 1.4rem;
  }

  .hero-cta {
    font-size: 1.05rem;
    padding: 13px 30px;
  }
}
@media (min-width: 1200px) {
  .hero h1 {
    white-space: nowrap;
  }
}
/* Headline */
.hero h1 {
  font-size: 2.8rem;
  margin-bottom: 0.6rem;   /* tighter, more premium */
}

/* Legacy line */
.hero-sub {
  font-size: 1.28rem;
  margin-bottom: 0.65rem;  /* reduced for cleaner flow */
}

/* Tagline */
.hero-tagline {
  font-size: 1.22rem;
  margin-bottom: 1.4rem;   /* slightly tighter before CTA */
}

/* CTA group */
.hero-cta-group {
  margin-top: 0.2rem;      /* subtle lift for perfect balance */
}

/* Primary CTA */
.hero-cta {
  display: inline-block;
  background: var(--primary);
  color: #fff;
  padding: 14px 32px;
  font-size: 1.1rem;
  font-weight: 600;
  border-radius: 8px;
  text-decoration: none;
  box-shadow: 0 6px 18px rgba(0,0,0,0.15);
  transition: background 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}

.hero-cta:hover {
  background: #0d8a8a;
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(0,0,0,0.2);
}

.hero-cta:active {
  transform: translateY(0);
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}
/* Headline */
.hero h1 {
  font-size: 2.8rem;
  white-space: nowrap;
}
@media (max-width: 992px) {
  .hero h1 {
    font-size: 2.4rem;
  }
}@media (max-width: 600px) {
  .hero h1 {
    font-size: 1.9rem;
    white-space: normal;
  }
}
/* Legacy line */

/* CTA group */
.hero-cta-group {
  display: flex;
  justify-content: center;
  gap: 0;          /* no spacing needed with one button */
  flex-wrap: wrap;
}


.hero-cta {
  display: inline-block;
  background: var(--primary);
  color: #fff;
  padding: 14px 32px;
  font-size: 1.1rem;
  font-weight: 600;
  border-radius: 8px;
  text-decoration: none;
  box-shadow: 0 6px 18px rgba(0,0,0,0.15);
  transition: background 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}

.hero-cta:hover {
  background: #0d8a8a; /* slightly deeper teal */
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(0,0,0,0.2);
}

.hero-cta:active {
  transform: translateY(0);
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}
.hero-cta-secondary {
  display: inline-block;
  background: transparent;
  color: var(--primary);
  padding: 14px 28px;
  font-size: 1.05rem;
  font-weight: 600;
  border-radius: 8px;
  border: 2px solid var(--primary);
  text-decoration: none;
  margin-left: 12px;
  transition: background 0.25s ease, color 0.25s ease, transform 0.25s ease;
}

.hero-cta-secondary:hover {
  background: var(--primary);
  color: #fff;
  transform: translateY(-2px);
}  /* <-- THIS was missing */

/* Widget open state */
#evaa-widget.open {
  display: block;
  opacity: 1;
  transform: translateY(0);
}



/* Widget base state (hidden but animatable) */
#evaa-widget {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 400px;
  height: 600px;
  background: white;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.25);
  overflow: hidden;
  z-index: 9999;

  /* Animation-ready hidden state */
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(20px);
  transition: opacity 0.35s ease, transform 0.35s ease, visibility 0.35s ease;
}

/* Widget open state (smooth slide + fade) */
#evaa-widget.open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}
#evaa-close-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 32px;
  height: 32px;
  border: none;
  border-radius: 50%;
  background: rgba(0,0,0,0.15);
  color: #fff;
  font-size: 20px;
  font-weight: 600;
  cursor: pointer;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.25s ease, transform 0.25s ease;
}

#evaa-close-btn:hover {
  background: rgba(0,0,0,0.25);
  transform: scale(1.05);
}

/* Provider Section */
.provider-card {
  background: #ffffff;
  border-radius: 16px;
  padding: 2rem;
  text-align: center;
  box-shadow: 0 6px 18px rgba(0,0,0,0.06);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.provider-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 28px rgba(0,0,0,0.12);
}

.provider-photo {
  width: 180px;
  height: 180px;
  object-fit: cover;
  border-radius: 50%;
  margin-bottom: 1rem;
  border: 4px solid var(--primary-light);
}

.provider-name {
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 0.25rem;
}

.provider-specialty {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
}

.provider-underline {
  width: 60px;
  height: 4px;
  background: var(--primary-light);
  margin: 0.5rem auto 1rem auto;
  border-radius: 4px;
}

/* Spotlight Layout */
.provider-spotlight {
  display: flex;
  align-items: center;
  gap: 2rem;
  background: #ffffff;
  padding: 2.5rem;
  border-radius: 16px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.08);
}

.provider-spotlight img {
  width: 260px;
  height: 260px;
  object-fit: cover;
  border-radius: 16px;
  border: 5px solid var(--primary-light);
}

@media (max-width: 768px) {
  .provider-spotlight {
    flex-direction: column;
    text-align: center;
  }
}

/* Scroll Reveal */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Modal */
.provider-modal .modal-content {
  border-radius: 16px;
  padding: 2rem;
}
html {
  scroll-behavior: smooth;
}
/* Enable hover dropdowns */
.navbar .dropdown:hover .dropdown-menu {
  display: block;
  margin-top: 0;
  opacity: 1;
  visibility: visible;
}

.navbar .dropdown-menu {
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease;
}
.brand-card {
  background: #ffffff;
  border-radius: 16px;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.brand-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 28px rgba(0,0,0,0.12);
}

.brand-logo {
  max-height: 80px;
  object-fit: contain;
  filter: grayscale(20%);
  transition: filter 0.25s ease;
}

.brand-card:hover .brand-logo {
  filter: grayscale(0%);
}
footer {
  position: relative;
}

footer .footer-copyright {
  position: absolute;
  bottom: 0px;
  left: 20px;
  font-size: 14px;
  color: #6c757d;
}
footer p,
footer div,
footer .footer-text {
  text-align: left !important;
}

/* Mobile adjustments */
@media (max-width: 576px) {
  h1, h2, h3 {
    font-size: 1.75rem;
  }

  .hero-section {
    padding: 60px 20px;
  }

  .nav-phone-pill {
    padding: 8px 14px;
    font-size: 14px;
  }

  footer {
    padding-bottom: 100px; /* ensures copyright fits */
  }
}
@media (max-width: 768px) {
  .navbar .nav-item {
    margin-bottom: 10px;
  }

  .nav-phone-pill {
    width: 100%;
    justify-content: center;
  }

  .open-widget {
    width: 100%;
  }
}
img {
  max-width: 100%;
  height: auto;
}
@media (max-width: 576px) {
  .shadow-sm {
    padding: 24px !important;
  }
}
@media (max-width: 768px) {
  .nav-phone-pill {
    width: 100%;
    justify-content: center;
    text-align: center;
    padding: 12px 0;
    font-size: 18px;
    border-radius: 50px;
  }
}
@media (max-width: 768px) {
  .open-widget {
    width: 100%;
    text-align: center;
    display: block;
    margin: 10px 0 0 0 !important;
  }
}
@media (max-width: 768px) {
  .navbar .nav-item {
    margin-bottom: 10px;
  }
}
@media (max-width: 768px) {

  /* Reset order for all providers */
  .providers-row .col-md-4 {
    order: 2 !important;
  }

  /* Move Provider 2 to the top */
  .providers-row .provider-2 {
    order: 1 !important;
  }
}
/* SAFARI-PROOF MOBILE NAV FIXES */
 
 
@media (max-width: 820px) {
  .navbar-collapse.show .nav-phone-pill,
  .navbar-collapse.show .open-widget {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    gap: 8px !important; /* replaces me-2 */
    text-align: center !important;
  }
}
{

  /* Force the inner content to center on Safari */
  .navbar-collapse.show .nav-phone-pill,
  .navbar-collapse.show .open-widget {
    text-align: center !important;
    justify-content: center !important;
    align-items: center !important;
    display: flex !important;
  }
}

{
  /* Make CTA items full-width and centered */
  .navbar-collapse.show .cta-item {
    width: 100%;
    display: block;
    text-align: center;
    margin: 12px 0;
  }

  /* Phone pill */
  .navbar-collapse.show .nav-phone-pill {
    display: block;
    width: 100%;
    padding: 14px 0;
    border-radius: 999px;
    font-size: 18px;
  }

  /* Book Now pill */
  .navbar-collapse.show .open-widget {
    display: block;
    width: 100%;
    padding: 14px 0;
    border-radius: 999px;
    font-size: 18px;
  }
}

.nav-phone-pill {
  padding: 10px 16px;
  border-radius: 999px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}

@media (min-width: 992px) {
  .w-lg-auto {
    width: auto !important;
  }
}

@media (max-width: 991px) {
  .nav-phone-pill {
    width: 100%;
  }
}

.providers-row {
  display: flex;
  flex-wrap: wrap;
}

