/* =========================================================
   TOP INFO BAR
   ========================================================= */

.top-bar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: var(--green-dark);
  color: var(--white);
  font-size: 13px;
  z-index: 1001;
}

.top-bar-left,
.top-bar-right {
  display: flex;
  align-items: center;
  gap: 18px;
}

.top-bar {
  display: flex;
  justify-content: space-between;
  padding: 8px 40px;
}

.top-bar a {
  color: var(--white);
  transition: all 0.25s ease;
}

.top-bar-right a[aria-label*="Facebook"]:hover { color: #1877F2 !important; }
.top-bar-right a[aria-label*="Instagram"]:hover { color: #E4405F !important; }
.top-bar-right a[aria-label*="YouTube"]:hover { color: #FF0000 !important; }
.top-bar-right a[aria-label*="Google"]:hover { color: #FFB800 !important; }

.top-cta {
  background: linear-gradient(135deg, #b91c1c, #dc2626);
  padding: 8px 18px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.5px;
  transition: all 0.25s ease;
}
.top-cta:active {
  background: linear-gradient(135deg, #0F6B45, #177245) !important;
}
.info-icon{

    display:inline-flex;
    align-items:center;
    justify-content:center;

    font-size:15px;

    color:#ffffff;

    margin-right:8px;

    transition:.25s ease;
}

.info-item:hover .info-icon{

    color:#d4f3e5;

    transform:translateY(-1px);
}
.info-item{

    display:flex;
    align-items:center;

    gap:6px;

    color:#fff;

    text-decoration:none;

    transition:.25s ease;
}

.info-item:hover{

    color:#d4f3e5;
}

/* =========================================================
   HEADER & NAVIGATION
   ========================================================= */
.header{
    position: fixed;
    top: 44px;
    left: 0;

    width: 100%;
    height: 84px;

    display:flex;
    align-items:flex-end;
    justify-content:space-between;

    padding:0 50px;

    background:#f6f5f2;

    border-bottom:1px solid rgba(0,0,0,.08);

    box-shadow:0 2px 10px rgba(0,0,0,.05);

    z-index:1000;
}
header.header{
    margin-top:0 !important;
}
.hero-slider{
    margin-top:0 !important;
    padding-top:0 !important;
}
/* =========================================================
   LOGO
   ========================================================= */

.logo-link{
  display:flex;
  align-items:center;
  text-decoration:none;
  transform: translateY(8px);
}

.logo{
  height:72px;
  cursor:pointer;
  transition:transform .25s ease;
}

.logo-link:hover .logo{
  transform:scale(1.03);
}

/* =========================================================
   NAVIGATION
   ========================================================= */

.nav{
    display:flex;
    align-items:center;
    justify-content:center;
    gap:42px;
    height:100%; transform: translateY(8px);
}

.nav a{
    display:flex;
    align-items:center;

    height:100%;

    color:var(--green-dark);

    font-size:16px;

    font-weight:600;

    position:relative;

    transition:
        color .25s ease,
        transform .25s ease;
}

/* Hover */

.nav a:hover{
    color:#0b5e3c;
    transform:translateY(-1px);
}

/* Underline */

.nav a::after{
    content:"";

    position:absolute;

    left:0;
    bottom:18px;

    width:0;
    height:3px;

    background:var(--green-dark);

    border-radius:999px;

    transition:width .25s ease;
}

.nav a:hover::after{
    width:100%;
}

/* Active page */

.nav a.active::after{
    width:100%;
}
/* =========================================================
   GOOGLE TRANSLATE
   ========================================================= */

.translate-btn{
    display:flex;
    align-items:center;
    justify-content:center;
    gap:8px;
    min-width:95px;
    height:38px;
    padding:0 16px;
    border:none;
    border-radius:999px;
    background:linear-gradient(90deg, #0f6b45, #168354);
    color:#fff;
    font-size:13px;
    font-weight:600;
    cursor:pointer;
    box-shadow: 0 4px 10px rgba(15, 107, 69, 0.2);
    transition:all .25s ease;
}

.translate-btn:hover{
    transform:translateY(-2px);
    box-shadow: 0 6px 15px rgba(15, 107, 69, 0.3);
    background:linear-gradient(90deg, #168354, #0f6b45);
    color:#fff;
}

.translate-btn.active{
    background:linear-gradient(90deg, #0f6b45, #168354);
    color:#fff;
}

/* Hide Google widget */
#google_translate_element{
    display:none !important;
}

body{
    top:0 !important;
}

iframe.skiptranslate{
    visibility:hidden !important;
    height:0 !important;
}

.goog-te-banner-frame{
    visibility:hidden !important;
    height:0 !important;
}
/* Hide Google branding */
.goog-logo-link{
    display:none !important;
}

.goog-te-gadget{
    font-size:0 !important;
}

/* Remove Google-added spacing */
body{
    top:0 !important;
}

/* Hide translate tooltip */
.goog-tooltip{
    display:none !important;
}

.goog-tooltip:hover{
    display:none !important;
}

.goog-text-highlight{
    background:none !important;
    box-shadow:none !important;
}

/* Hide popup frame */
iframe.goog-te-banner-frame{
    display:none !important;
}
/* =========================================================
   APPOINTMENT BUTTON (Red/Maroon — SPARSH Hospital Style)
   ========================================================= */

.top-cta{
  background: linear-gradient(135deg, #b91c1c, #dc2626);
  color:#fff !important;
  padding:10px 32px; /* Bigger padding for a fuller look */
  border-radius:0px;
  font-weight:700;
  font-size:13px;
  letter-spacing:0.8px;
  transition:all .3s ease;
  box-shadow: 0 2px 10px rgba(185, 28, 28, 0.35);
  border: 1px solid rgba(255,255,255,0.1);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: -8px -40px -8px 0; /* Extends to top, right, and bottom edges of .top-bar */
  align-self: stretch; /* Fills vertical space if flex */
}

.top-cta:hover{
  background: linear-gradient(135deg, #991b1b, #b91c1c);
  transform:translateY(-2px);
  box-shadow: 0 4px 15px rgba(185, 28, 28, 0.45);
}

/* Active/clicked state — matches green website theme */
.top-cta:active,
.top-cta.clicked {
  background: linear-gradient(135deg, #0F6B45, #177245);
  box-shadow: 0 2px 10px rgba(15, 107, 69, 0.4);
  border-color: rgba(255,255,255,0.15);
}

/* Remove underline from CTA button */
.top-cta::after{
  display:none;
}

/* =========================================================
   MOBILE APPOINTMENT BAR (Full-width below header)
   ========================================================= */

.mobile-appointment-bar {
  display: none;
}

@media (max-width: 1023px) {
  .mobile-appointment-bar {
    display: block;
    position: static;
    width: 100%;
    background: linear-gradient(135deg, #b91c1c, #dc2626);
    padding: 0;
    margin-bottom: 20px;
  }

  .mobile-appointment-bar a {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 12px 20px;
    color: #ffffff;
    font-weight: 700;
    font-size: 14px;
    letter-spacing: 1px;
    text-decoration: none;
    text-transform: uppercase;
  }

  .mobile-appointment-bar a:active {
    background: linear-gradient(135deg, #0F6B45, #177245);
  }

  .mobile-appointment-bar a i {
    font-size: 16px;
  }

  /* Push body content down to account for appointment bar */
  body {
    padding-top: 118px !important;
  }

  /* Adjust hero slider margin */
  .hero-slider {
    margin-top: 0 !important;
  }
}
/* =========================================
   TABLET HEADER FIX
========================================= */

@media (min-width:768px) and (max-width:1024px) and (orientation:portrait) {

  :root{
    --top-bar-height:52px;
    --main-header-height:80px;
    --fixed-header-total:
      calc(var(--top-bar-height) + var(--main-header-height));
  }

}

@media (min-width:768px) and (max-width:1024px) and (orientation:landscape) {

  :root{
    --top-bar-height:56px;
    --main-header-height:92px;
    --fixed-header-total:
      calc(var(--top-bar-height) + var(--main-header-height));
  }

}

/* =========================================================
   MOBILE HEADER ACTIONS & PHONE BOX
   ========================================================= */
.mobile-header-actions {
  display: none;
  align-items: center;
  gap: 10px;
}

.mobile-phone-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background: #E8F5E9;
  border: 1.5px solid #0F6B45;
  color: #0F6B45 !important;
  border-radius: 50px;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.25s ease;
  box-shadow: 0 2px 6px rgba(15, 107, 69, 0.12);
}

.mobile-phone-btn i {
  font-size: 12px;
}

.mobile-phone-btn:hover {
  background: #0F6B45;
  color: #ffffff !important;
}

.hamburger-btn {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: #ffffff;
  border: 1.5px solid rgba(15, 107, 69, 0.25);
  color: #0F6B45;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  cursor: pointer;
  transition: all 0.25s ease;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.hamburger-btn:hover {
  background: #F4F8F5;
}

.hamburger-btn .icon-close {
  display: none;
}

.hamburger-btn.active .icon-open {
  display: none;
}

.hamburger-btn.active .icon-close {
  display: block;
}

/* =========================================================
   RIGHT-SIDE SLIDING MOBILE DRAWER & BACKDROP
   ========================================================= */
.menu-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(3px);
  z-index: 9998;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.menu-backdrop.active {
  opacity: 1;
  visibility: visible;
}

.mobile-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 85%;
  max-width: 360px;
  background: #ffffff;
  z-index: 9999;
  box-shadow: -10px 0 30px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
}

.mobile-drawer.active {
  transform: translateX(0);
}

/* Drawer Header */
.drawer-header {
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #E5E7EB;
  background: #F8FAF9;
}

.drawer-logo img {
  height: 44px;
}

.drawer-close-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #ffffff;
  border: 1px solid #D1D5DB;
  color: #374151;
  font-size: 18px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.drawer-close-btn:hover {
  background: #EF4444;
  color: #ffffff;
  border-color: #EF4444;
}

/* Drawer Content & Navigation */
.drawer-content {
  flex: 1;
  overflow-y: auto;
  padding: 16px 18px;
}

.drawer-nav {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.drawer-link {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 16px;
  color: #1F2937;
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  border-radius: 12px;
  transition: all 0.2s ease;
}

.drawer-link i {
  color: #0F6B45;
  width: 20px;
  font-size: 16px;
}

.drawer-link:hover,
.drawer-link.active {
  background: #E8F5E9;
  color: #0F6B45;
}

/* Drawer Accordions */
.drawer-accordion {
  border-radius: 12px;
  overflow: hidden;
}

.drawer-accordion-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  background: transparent;
  border: none;
  color: #1F2937;
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  text-align: left;
  border-radius: 12px;
  transition: background 0.2s ease;
}

.drawer-accordion-btn span {
  display: flex;
  align-items: center;
  gap: 14px;
}

.drawer-accordion-btn i.fa-notes-medical,
.drawer-accordion-btn i.fa-user-doctor {
  color: #0F6B45;
  width: 20px;
  font-size: 16px;
}

.drawer-accordion-btn .arrow-icon {
  font-size: 13px;
  color: #6B7280;
  transition: transform 0.3s ease;
}

.drawer-accordion.active .drawer-accordion-btn {
  background: #F3F4F6;
}

.drawer-accordion.active .arrow-icon {
  transform: rotate(180deg);
}

.drawer-accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
  background: #F9FAFB;
  border-radius: 0 0 12px 12px;
  padding: 0 16px;
}

.drawer-accordion.active .drawer-accordion-content {
  max-height: 450px;
  padding: 6px 16px 10px;
}

.drawer-sublink {
  display: block;
  padding: 10px 12px 10px 34px;
  color: #4B5563;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  border-radius: 8px;
  transition: all 0.2s ease;
}

.drawer-sublink:hover {
  color: #0F6B45;
  background: #E8F5E9;
}

/* Drawer Footer */
.drawer-footer {
  padding: 16px 20px;
  border-top: 1px solid #E5E7EB;
  background: #F9FAFB;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.drawer-cta-call {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: #0F6B45;
  color: #ffffff !important;
  padding: 12px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
}

.drawer-cta-wa {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: #25D366;
  color: #ffffff !important;
  padding: 12px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
}

/* =========================================
   MOBILE HEADER MEDIA QUERIES
   ========================================= */
@media (max-width: 1023px) {
  .mobile-header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
  }

  .mobile-phone-btn {
    padding: 6px 12px;
    font-size: 13px;
    font-weight: 700;
    gap: 6px;
  }

  .hamburger-btn {
    width: 40px;
    height: 40px;
  }

  .nav {
    display: none !important;
  }

  .header {
    height: 76px;
    padding: 0 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: #ffffff;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
  }

  .logo-link {
    display: flex;
    align-items: center;
    transform: translateY(2px);
  }

  .logo {
    height: 62px !important;
    max-height: 62px !important;
    width: auto !important;
    object-fit: contain;
  }

  body {
    padding-top: 76px !important;
  }

  .top-bar {
    display: none !important;
  }
}
/* =========================================
   GOOGLE TRANSLATE BUTTONS (Desktop & Mobile)
   ========================================= */
.translate-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #ffffff;
  border: 1px solid rgba(15, 107, 69, 0.25);
  color: #0F6B45;
  padding: 6px 14px;
  border-radius: 20px;
  font-weight: 700;
  font-size: 12px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
}

.translate-btn:hover {
  background: #E8F3ED;
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.translate-btn.active {
  background: #0F6B45;
  color: #ffffff;
  border-color: #0F6B45;
}

.mobile-translate-btn { display: none; }

@media (max-width: 1024px) {
  .mobile-translate-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #ffffff;
    border: 1px solid rgba(15, 107, 69, 0.25);
    color: #0F6B45;
    padding: 6px 12px;
    border-radius: 20px;
    font-weight: 700;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.3s;
    margin-left: auto;
    margin-right: 10px;
    height: 34px;
    white-space: nowrap;
    flex-shrink: 0;
    box-shadow: 0 2px 6px rgba(0,0,0,0.06);
  }
  .mobile-translate-btn:active { background: #d1e8dc; transform: scale(0.95); }
  .mobile-translate-btn.active { background: #0F6B45; color: #fff; border-color: #0F6B45; }
  .mobile-translate-btn + .mobile-translate-btn { display: none !important; }
}

