﻿/* ============================================================
   Sohel Square Hospital — Layout (Header, Footer, Navbar)
   ============================================================ */

/* ─────────────────────────────────────────────
   TOP BAR
───────────────────────────────────────────── */
.top-bar {
  background: var(--color-primary-dark);
  color: rgba(255,255,255,0.9);
  font-size: var(--text-xs);
  padding: 0.5rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.top-bar a {
  color: rgba(255,255,255,0.9);
  transition: var(--transition-fast);
}
.top-bar a:hover { color: var(--color-accent); }
.top-bar-left, .top-bar-right {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex-wrap: wrap;
}
.top-bar-item {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
.top-bar-item i { color: var(--color-accent); }

/* â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€
   NAVBAR â€” Base (Desktop)
â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.navbar-ssh {
  background: var(--color-dark);
  padding: 0.75rem 0;
  transition: var(--transition-base);
  position: sticky;
  top: 0;
  z-index: var(--z-sticky);
  box-shadow: 0 2px 16px rgba(0,0,0,0.35);
}
.navbar-ssh.scrolled {
  background: var(--color-dark);
  padding: 0.6rem 0;
  box-shadow: 0 4px 20px rgba(0,0,0,0.45);
}

.navbar-brand-logo {
  height: 44px;
  width: auto;
  border-radius: var(--radius-sm);
}
.navbar-brand-text { display: flex; flex-direction: column; }
.navbar-brand-name {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--color-white);
  line-height: 1.1;
}
.navbar-brand-tagline {
  font-size: 0.62rem;
  color: var(--color-accent);
  font-weight: 500;
  letter-spacing: 0.5px;
}

/* â”€â”€â”€ Nav Links (Desktop) â”€â”€â”€ */
.navbar-ssh .nav-link {
  color: rgba(255,255,255,0.88) !important;
  font-size: var(--text-sm);
  font-weight: 500;
  padding: 0.5rem 0.85rem !important;
  position: relative;
  transition: var(--transition-fast);
}
.navbar-ssh .nav-link::after {
  content: '';
  position: absolute;
  bottom: 0; left: 50%;
  transform: translateX(-50%) scaleX(0);
  width: 80%; height: 2px;
  background: var(--color-accent);
  border-radius: var(--radius-pill);
  transition: transform 0.2s ease;
}
.navbar-ssh .nav-link:hover::after,
.navbar-ssh .nav-link.active::after { transform: translateX(-50%) scaleX(1); }
.navbar-ssh .nav-link:hover,
.navbar-ssh .nav-link.active { color: var(--color-white) !important; }

/* â”€â”€â”€ Dropdown (Desktop) â”€â”€â”€ */
.navbar-ssh .dropdown-menu {
  background: var(--color-dark);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  min-width: 220px;
  padding: 0.5rem;
  animation: dropFadeIn 0.18s ease;
}
@keyframes dropFadeIn {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: translateY(0); }
}
.navbar-ssh .dropdown-item {
  color: rgba(255,255,255,0.8);
  font-size: var(--text-sm);
  border-radius: var(--radius-sm);
  padding: 0.55rem 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: var(--transition-fast);
  min-height: 40px;
}
.navbar-ssh .dropdown-item:hover {
  background: rgba(27,138,46,0.15);
  color: var(--color-primary-light);
}
.navbar-ssh .dropdown-item i { width: 18px; color: var(--color-primary-light); flex-shrink: 0; }

/* â”€â”€â”€ Mega Dropdown (Desktop) â”€â”€â”€ */
.mega-dropdown .dropdown-menu { min-width: 520px; padding: 1.25rem; }
.mega-col-title {
  font-size: var(--text-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--color-accent);
  padding: 0 0.75rem 0.5rem;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

/* â”€â”€â”€ Hamburger â€” Animated 3-line to X â”€â”€â”€ */
.navbar-toggler {
  border: 2px solid rgba(255,255,255,0.3);
  border-radius: var(--radius-sm);
  padding: 0.45rem 0.65rem;
  background: transparent;
  transition: var(--transition-fast);
  display: flex;
  align-items: center;
  justify-content: center;
}
.navbar-toggler:hover { border-color: rgba(255,255,255,0.6); background: rgba(255,255,255,0.06); }
.navbar-toggler:focus { box-shadow: none; outline: none; }
.toggler-icon {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 22px;
  height: 18px;
}
.toggler-icon span {
  display: block;
  width: 100%;
  height: 2px;
  background: rgba(255,255,255,0.85);
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.25s ease, width 0.3s ease;
  transform-origin: center;
}
.navbar-toggler[aria-expanded="true"] .toggler-icon span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.navbar-toggler[aria-expanded="true"] .toggler-icon span:nth-child(2) {
  opacity: 0; width: 0;
}
.navbar-toggler[aria-expanded="true"] .toggler-icon span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•
   MOBILE NAV  (max-width: 991px)
â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â• */
@media (max-width: 991.98px) {

  /* Slide-down scrollable panel */
  .navbar-ssh #navbarMain {
    background: #0d1117;
    margin-top: 0.6rem;
    border-radius: var(--radius-md);
    border: 1px solid rgba(255,255,255,0.07);
    padding: 0.5rem 0.5rem 1rem;
    max-height: 80vh;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: rgba(255,255,255,0.15) transparent;
  }
  .navbar-ssh #navbarMain::-webkit-scrollbar { width: 4px; }
  .navbar-ssh #navbarMain::-webkit-scrollbar-thumb {
    background: rgba(255,255,255,0.15);
    border-radius: 4px;
  }

  /* Full-width items */
  .navbar-ssh .navbar-nav { width: 100%; gap: 0 !important; }
  .navbar-ssh .nav-item { width: 100%; }

  /* Touch-friendly nav links */
  .navbar-ssh .nav-link {
    padding: 0.8rem 1rem !important;
    font-size: 0.92rem !important;
    border-radius: var(--radius-sm);
    border-bottom: 1px solid rgba(255,255,255,0.05);
    display: flex !important;
    align-items: center;
    justify-content: space-between;
  }
  .navbar-ssh .nav-link::after { display: none; }
  .navbar-ssh .nav-link.active,
  .navbar-ssh .nav-link:hover {
    background: rgba(27,138,46,0.12);
    color: var(--color-white) !important;
  }

  /* Accordion-style dropdowns */
  .navbar-ssh .dropdown-menu {
    position: static !important;
    transform: none !important;
    border: none;
    border-radius: 0;
    box-shadow: none;
    background: rgba(255,255,255,0.03);
    margin: 0 0 0 0.75rem;
    padding: 0.25rem 0;
    border-left: 2px solid var(--color-primary);
    animation: none;
    min-width: unset;
    width: calc(100% - 0.75rem);
  }
  .navbar-ssh .dropdown-menu.show { display: block; }
  .navbar-ssh .dropdown-item {
    padding: 0.65rem 1rem;
    font-size: 0.86rem;
    min-height: 44px;
    border-radius: 0;
    border-bottom: 1px solid rgba(255,255,255,0.04);
  }
  .navbar-ssh .dropdown-item:last-child { border-bottom: none; }

  /* Mega Menu â€” stack vertically */
  .mega-dropdown .dropdown-menu {
    min-width: unset !important;
    width: calc(100% - 0.75rem);
    padding: 0.25rem 0;
  }
  .mega-dropdown .dropdown-menu .row { display: block !important; }
  .mega-dropdown .dropdown-menu [class*="col-"] {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    padding: 0 !important;
    border: none !important;
    flex: none !important;
  }
  .mega-col-title {
    padding: 0.55rem 1rem 0.4rem;
    margin-top: 0.35rem;
    background: rgba(27,138,46,0.08);
    border-bottom: 1px solid rgba(27,138,46,0.2);
    border-radius: 0;
    margin-bottom: 0;
  }
  .mega-dropdown .dropdown-menu > div:last-child {
    border-top: 1px solid rgba(255,255,255,0.06) !important;
  }

  /* Emergency button inside mobile menu */
  .navbar-ssh .btn-ssh-emergency {
    display: flex !important;
    width: calc(100% - 1rem);
    margin: 0.75rem 0.5rem 0;
    justify-content: center;
    padding: 0.75rem 1rem;
    font-size: 0.9rem;
    border-radius: var(--radius-md);
  }
}

/* â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•
   TABLET ONLY  (768px â€“ 991px) â€” extra adjustments
â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â• */
@media (min-width: 768px) and (max-width: 991.98px) {
  .navbar-brand-name { font-size: 0.95rem; }
  .navbar-brand-logo { height: 40px; }
}

/* â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•
   SMALL MOBILE  (< 400px)
â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â• */
@media (max-width: 399.98px) {
  .navbar-brand-name    { font-size: 0.82rem; }
  .navbar-brand-tagline { display: none; }
  .navbar-brand-logo    { height: 34px; }
  .navbar-ssh           { padding: 0.55rem 0; }
}


/* ─────────────────────────────────────────────
   FOOTER
───────────────────────────────────────────── */
.footer {
  background: var(--color-dark);
  color: rgba(255,255,255,0.75);
  padding: 4rem 0 0;
}
.footer-brand-logo {
  height: 60px;
  border-radius: var(--radius-sm);
  margin-bottom: 1rem;
}
.footer-brand-name {
  font-size: var(--text-xl);
  font-weight: 800;
  color: var(--color-white);
  margin-bottom: 0.3rem;
}
.footer-tagline {
  font-size: var(--text-sm);
  color: var(--color-accent);
  font-style: italic;
  margin-bottom: 1rem;
}
.footer-desc {
  font-size: var(--text-sm);
  line-height: 1.7;
  margin-bottom: 1.5rem;
}
.footer-heading {
  font-size: var(--text-base);
  font-weight: 700;
  color: var(--color-white);
  margin-bottom: 1.25rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--color-primary);
  display: inline-block;
}
.footer-links { list-style: none; padding: 0; }
.footer-links li { margin-bottom: 0.5rem; }
.footer-links a {
  font-size: var(--text-sm);
  color: rgba(255,255,255,0.7);
  display: flex;
  align-items: center;
  gap: 0.4rem;
  transition: var(--transition-fast);
}
.footer-links a i { color: var(--color-primary-light); font-size: 0.65rem; }
.footer-links a:hover { color: var(--color-accent); padding-left: 4px; }

.footer-contact-item {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 1rem;
}
.footer-contact-icon {
  min-width: 36px;
  height: 36px;
  background: rgba(27,138,46,0.15);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-primary-light);
  font-size: 0.85rem;
}
.footer-contact-text { font-size: var(--text-sm); line-height: 1.5; }
.footer-contact-label { font-size: var(--text-xs); color: var(--color-gray-500); }

.social-links {
  display: flex;
  gap: 0.75rem;
  margin-top: 1rem;
}
.social-link {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.75);
  font-size: 0.9rem;
  transition: var(--transition-fast);
  border: 1px solid rgba(255,255,255,0.1);
}
.social-link:hover {
  background: var(--color-primary);
  color: white;
  border-color: var(--color-primary);
  transform: translateY(-3px);
}

.footer-bottom {
  background: rgba(0,0,0,0.3);
  padding: 1.25rem 0;
  margin-top: 3rem;
  border-top: 1px solid rgba(255,255,255,0.07);
  text-align: center;
  font-size: var(--text-xs);
  color: rgba(255,255,255,0.45);
}
.footer-bottom a { color: var(--color-accent); }

/* ─────────────────────────────────────────────
   FLOATING EMERGENCY BUTTON (FAB)
───────────────────────────────────────────── */
.fab-emergency {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: var(--z-fixed);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3rem;
}
.fab-btn {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: linear-gradient(135deg, #b71c1c, var(--color-emergency));
  color: white;
  font-size: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-red);
  transition: var(--transition-base);
  position: relative;
  text-decoration: none;
}
.fab-btn::before,
.fab-btn::after {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: 50%;
  border: 2px solid rgba(198,40,40,0.5);
  animation: pulseRing 2s ease-out infinite;
}
.fab-btn::after { animation-delay: 1s; }
.fab-btn:hover {
  transform: scale(1.1);
  color: white;
}
.fab-label {
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--color-danger);
  text-transform: uppercase;
  letter-spacing: 1px;
  background: white;
  padding: 0.1rem 0.5rem;
  border-radius: var(--radius-pill);
  box-shadow: var(--shadow-sm);
}

/* ─────────────────────────────────────────────
   BACK TO TOP
───────────────────────────────────────────── */
.back-to-top {
  position: fixed;
  bottom: 7rem;
  right: 2.25rem;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--gradient-primary);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  box-shadow: var(--shadow-green);
  cursor: pointer;
  z-index: var(--z-fixed);
  transition: var(--transition-base);
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  border: none;
}
.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.back-to-top:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(27,138,46,0.45);
}

/* ─────────────────────────────────────────────
   HERO SECTION
───────────────────────────────────────────── */
.hero-section {
  position: relative;
  height: 100vh;
  min-height: 600px;
  overflow: hidden;
  display: flex;
  align-items: center;
}
.hero-bg {
  position: absolute;
  inset: 0;
}
.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(10,60,20,0.90) 0%, rgba(20,100,40,0.80) 50%, rgba(10,60,20,0.75) 100%);
}
.hero-content {
  position: relative;
  z-index: 2;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(245,166,35,0.15);
  border: 1px solid rgba(245,166,35,0.4);
  color: var(--color-accent);
  padding: 0.4rem 1rem;
  border-radius: var(--radius-pill);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
}
.hero-title {
  font-size: var(--text-5xl);
  font-weight: 800;
  color: var(--color-white);
  line-height: 1.1;
  margin-bottom: 1rem;
}
.hero-title .highlight {
  color: var(--color-accent);
  display: block;
}
.hero-subtitle {
  font-size: var(--text-md);
  color: rgba(255,255,255,0.85);
  max-width: 540px;
  line-height: 1.75;
  margin-bottom: 2rem;
  font-family: var(--font-bengali);
}
.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.hero-scroll-hint {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255,255,255,0.6);
  font-size: var(--text-xs);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  animation: floatUp 2s ease-in-out infinite;
}

/* ─────────────────────────────────────────────
   SECTIONS COMMON
───────────────────────────────────────────── */
section { padding: 5rem 0; }
.section-bg-light { background: var(--color-gray-100); }
.section-bg-dark  { background: var(--color-dark); }
.section-bg-green { background: var(--gradient-primary); }
.section-bg-pattern {
  background: var(--color-gray-100);
  background-image: url("data:image/svg+xml,%3Csvg width='40' height='40' viewBox='0 0 40 40' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%231B8A2E' fill-opacity='0.04'%3E%3Ccircle cx='20' cy='20' r='3'/%3E%3C/g%3E%3C/svg%3E");
}

/* Appointment CTA Section */
.appt-cta-section {
  background: var(--gradient-primary);
  position: relative;
  overflow: hidden;
}
.appt-cta-section::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -10%;
  width: 500px;
  height: 500px;
  background: rgba(255,255,255,0.04);
  border-radius: 50%;
}
.appt-form-card {
  background: var(--color-white);
  border-radius: var(--radius-xl);
  padding: 2.5rem;
  box-shadow: var(--shadow-lg);
}

/* Map Section */
.map-iframe {
  width: 100%;
  height: 380px;
  border: 0;
  border-radius: var(--radius-lg);
  filter: grayscale(20%);
}

/* ─────────────────────────────────────────────
   RESPONSIVE ADJUSTMENTS
───────────────────────────────────────────── */
@media (max-width: 991.98px) {
  .top-bar-left { gap: 0.75rem; font-size: 0.7rem; }
  .hero-title { font-size: var(--text-4xl); }
  .mega-dropdown .dropdown-menu { min-width: 300px; }
  .navbar-ssh .navbar-collapse {
    background: var(--color-dark);
    padding: 1rem;
    border-radius: var(--radius-md);
    margin-top: 0.5rem;
    box-shadow: var(--shadow-lg);
  }
}
@media (max-width: 767.98px) {
  .hero-title   { font-size: var(--text-3xl); }
  .section-title { font-size: var(--text-2xl); }
  .stat-number  { font-size: var(--text-4xl); }
  section { padding: 3.5rem 0; }
  .top-bar .top-bar-left { display: none; }
  .page-hero-title { font-size: var(--text-3xl); }
  .fab-emergency { bottom: 1.5rem; right: 1.5rem; }
}
@media (max-width: 575.98px) {
  .hero-title  { font-size: var(--text-2xl); }
  .hero-subtitle { font-size: var(--text-base); }
  .hero-cta    { flex-direction: column; }
}
