/* ===================================================
   THE MINARET HOSPITAL — SHARED STYLESHEET
   =================================================== */

@import url('https://fonts.googleapis.com/css2?family=DM+Serif+Display:ital@0;1&family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;0,9..40,600;0,9..40,700;1,9..40,400&display=swap');

/* ===== VARIABLES ===== */
:root {
  --primary:       #880004;
  --primary-dark:  #6b0003;
  --primary-light: #f5ede4;
  --accent:        #880004;
  --accent-warm:   #e6d7c4;
  --text-heading:  #1a0a0b;
  --text-body:     #5a4040;
  --text-light:    #9e8080;
  --bg-white:      #ffffff;
  --bg-light:      #faf6f1;
  --bg-gray:       #f7f3ee;
  --bg-dark:       #1a0a0b;
  --border:        #e6d7c4;

  --radius-xs:   6px;
  --radius-sm:   12px;
  --radius-md:   20px;
  --radius-lg:   32px;
  --radius-full: 9999px;

  --shadow-sm:  0 1px 3px rgba(136,0,4,.08);
  --shadow-md:  0 4px 16px rgba(136,0,4,.12);
  --shadow-lg:  0 12px 40px rgba(136,0,4,.16);
  --shadow-xl:  0 24px 60px rgba(136,0,4,.18);

  --font-display: 'DM Serif Display', serif;
  --font-body:    'DM Sans', sans-serif;
  --transition:   all 0.3s cubic-bezier(0.4, 0, 0.2, 1);

  --header-h: 80px;
}

/* ===== TEXT SELECTION ===== */
::selection {
  background: var(--primary);
  color: #fff;
}
::-moz-selection {
  background: var(--primary);
  color: #fff;
}

/* ===== RESET ===== */
*, *::before, *::after {
  margin: 0; padding: 0;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font-body);
  color: var(--text-body);
  background: var(--bg-white);
  line-height: 1.75;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--text-heading);
  line-height: 1.18;
  margin-bottom: .75rem;
}
h1 { font-size: clamp(2.4rem, 5vw, 3.8rem); letter-spacing: -.01em; }
h2 { font-size: clamp(1.9rem, 4vw, 2.8rem); letter-spacing: -.01em; }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.55rem); }
h4 { font-size: 1.1rem; }
p  { margin-bottom: 1.4rem; }
a  { text-decoration: none; color: inherit; transition: var(--transition); }
ul { list-style: none; }
img { max-width: 100%; height: auto; display: block; }

/* ===== UTILITIES ===== */
.container {
  width: 100%; max-width: 1240px;
  margin: 0 auto; padding: 0 1.5rem;
}
@media (max-width: 480px) {
  .container { padding: 0 1rem; }
}
.section      { padding: clamp(4rem, 9vw, 7rem) 0; }
.bg-light     { background: var(--bg-light); }
.bg-gray      { background: var(--bg-gray); }
.bg-dark      { background: var(--bg-dark); }
.text-center  { text-align: center; }

.section-label {
  display: inline-flex; align-items: center; gap: .5rem;
  font-family: var(--font-body);
  font-size: .8rem; font-weight: 700;
  letter-spacing: .12em; text-transform: uppercase;
  color: var(--primary);
  background: var(--primary-light);
  padding: .4rem 1rem; border-radius: var(--radius-full);
  margin-bottom: 1.2rem;
}
.section-label i { font-size: .75rem; }

.section-intro {
  max-width: 640px; margin: 0 auto 3.5rem;
  text-align: center;
}
.section-intro p { color: var(--text-body); font-size: 1.05rem; margin: 0; }

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: .55rem; padding: .85rem 1.8rem;
  font-family: var(--font-body); font-weight: 600; font-size: .95rem;
  border-radius: var(--radius-sm); cursor: pointer;
  transition: var(--transition); border: none;
  white-space: nowrap;
}
.btn-primary {
  background: var(--primary); color: #fff;
  box-shadow: 0 4px 20px rgba(136,0,4,.35);
}
.btn-outline {
  background: transparent; border: 2px solid var(--primary); color: var(--primary);
}
.btn-ghost {
  background: rgba(255,255,255,.12); color: #fff; border: 1.5px solid rgba(255,255,255,.3);
}
.btn-sm  { padding: .6rem 1.25rem; font-size: .875rem; border-radius: var(--radius-xs); }
.btn-lg  { padding: 1.05rem 2.4rem; font-size: 1.05rem; }

/* Hover effects — desktop only */
@media (hover: hover) {
  .btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(136,0,4,.45);
  }
  .btn-outline:hover { background: var(--primary); color: #fff !important; }
  .btn-outline:hover i { color: #fff !important; }
  .btn-ghost:hover   { background: rgba(255,255,255,.22); }
}

/* ===== HEADER / NAV ===== */
.header {
  position: fixed; top: 0; left: 0; width: 100%;
  z-index: 1000;
  height: var(--header-h);
  background: #fff;
  border-bottom: 1px solid var(--border);
  transition: var(--transition);
  display: flex; align-items: center;
}
.header.scrolled {
  box-shadow: 0 2px 12px rgba(0,0,0,.07);
}
.nav-wrapper {
  display: flex; justify-content: space-between; align-items: center;
  width: 100%; gap: 2rem;
  height: 100%;
}

/* Logo */
.logo {
  font-family: var(--font-display);
  font-size: 1.35rem; font-weight: 400;
  color: var(--primary);
  display: flex; align-items: center; gap: .5rem;
  flex-shrink: 0;
}
.logo i { font-size: 1.15rem; }

/* Nav links */
.nav-menu {
  display: flex; gap: 0; align-items: stretch;
  flex: 1; justify-content: center;
  height: 100%;
}
.nav-menu li {
  display: flex; align-items: stretch;
}
.nav-link {
  display: flex; align-items: center;
  font-family: var(--font-body);
  font-weight: 500; font-size: .875rem;
  color: var(--text-body);
  padding: 0 1rem;
  border-bottom: none;
  border-radius: 0;
  transition: color .25s ease;
  white-space: nowrap;
}
.nav-link:hover  { background: none; color: var(--primary); }
.nav-link.active { color: var(--primary); font-weight: 600; }

/* Nav right side */
.nav-actions {
  display: flex; align-items: center; gap: .6rem; flex-shrink: 0;
}
.emergency-pill { display: none; }

/* Mobile toggle */
.mobile-toggle {
  display: none; font-size: 1.4rem; color: var(--primary);
  cursor: pointer; padding: .5rem;
}

/* ===== PAGE HERO (inner pages) ===== */
.page-hero {
  padding-top: calc(var(--header-h) + 4rem);
  padding-bottom: 4rem;
  background: var(--bg-dark);
  position: relative; overflow: hidden;
}
.page-hero::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse 80% 60% at 60% 50%, rgba(20,184,166,.18) 0%, transparent 70%);
}
.page-hero-content { position: relative; z-index: 2; }
.page-hero h1 { color: #fff; margin-bottom: .75rem; }
.page-hero p  { color: rgba(255,255,255,.65); font-size: 1.1rem; max-width: 560px; margin: 0; }
.breadcrumb {
  display: flex; align-items: center; gap: .5rem;
  font-size: .85rem; color: rgba(255,255,255,.45); margin-bottom: 1.25rem;
}
.breadcrumb a { color: var(--accent); }
.breadcrumb i { font-size: .65rem; }

/* ===== CARDS ===== */
.card {
  background: var(--bg-white);
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  transition: var(--transition);
  overflow: hidden;
}
.card-body { padding: 1.75rem; }

/* Card hover — desktop only */
@media (hover: hover) {
  .card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(15,118,110,.2);
  }
  .card:hover .icon-box { background: var(--primary); color: #fff; }
}

/* ===== ICON BOX ===== */
.icon-box {
  width: 3.25rem; height: 3.25rem;
  background: var(--bg-light); border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.25rem; color: var(--primary);
  margin-bottom: 1.25rem;
  transition: var(--transition);
  flex-shrink: 0;
}

/* ===== STATS BAR ===== */
.stats-bar {
  background: var(--primary);
  padding: 2.5rem 0;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 2rem; text-align: center;
}
.stat-num {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 2.8rem);
  color: #fff; line-height: 1; margin-bottom: .25rem;
}
.stat-label { color: rgba(255,255,255,.7); font-size: .875rem; font-weight: 500; }

/* ===== TESTIMONIALS ===== */
.testimonial-card {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 2rem;
  position: relative;
  transition: var(--transition);
}
.quote-mark {
  font-family: var(--font-display);
  font-size: 5rem; line-height: 1;
  color: var(--primary-light);
  position: absolute; top: .75rem; right: 1.25rem;
  pointer-events: none; user-select: none;
}
.stars { color: #f59e0b; font-size: .9rem; margin-bottom: 1rem; letter-spacing: .1em; }
.testimonial-card p {
  font-size: .95rem; font-style: italic;
  color: var(--text-body); margin-bottom: 1.5rem;
  position: relative; z-index: 1;
}
.reviewer-info strong { display: block; font-size: .9rem; color: var(--text-heading); font-weight: 600; }
.reviewer-info span   { font-size: .8rem; color: var(--text-light); }

@media (hover: hover) {
  .testimonial-card:hover { box-shadow: var(--shadow-md); }
}

/* ===== CTA BAND ===== */
.cta-band {
  background: var(--primary); padding: 5rem 0;
  position: relative; overflow: hidden;
}
.cta-band::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(circle at 80% 50%, rgba(255,255,255,.07) 0%, transparent 60%);
}
.cta-band-inner { position: relative; z-index: 2; }

/* ===== FOOTER ===== */
.footer {
  background: var(--bg-dark); color: var(--text-light);
  padding: 4.5rem 0 2rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem; padding-bottom: 3rem;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.footer-logo {
  font-family: var(--font-display); font-size: 1.4rem; color: #fff;
  display: flex; align-items: center; gap: .6rem; margin-bottom: 1rem;
}
.footer-logo i { color: var(--accent); font-size: 1.1rem; }
.footer p { font-size: .9rem; line-height: 1.8; }
.footer-heading {
  color: #fff; font-family: var(--font-body);
  font-size: .8rem; font-weight: 700; letter-spacing: .1em;
  text-transform: uppercase; margin-bottom: 1.25rem;
}
.footer-links { display: flex; flex-direction: column; gap: .7rem; }
.footer-links a { font-size: .9rem; color: var(--text-light); }
.footer-links a:hover { color: var(--accent); }
.footer-contact-item {
  display: flex; gap: .75rem; align-items: flex-start;
  margin-bottom: .9rem; font-size: .875rem;
}
.footer-contact-item i { color: var(--accent); margin-top: .2rem; flex-shrink: 0; }
.footer-bottom {
  padding-top: 2rem; display: flex; justify-content: space-between;
  align-items: center; flex-wrap: wrap; gap: 1rem; font-size: .85rem;
}
.footer-bottom a { color: var(--accent); font-weight: 600; }
.footer-bottom a:hover { color: #fff; }
.social-links { display: flex; gap: .75rem; }
.social-link {
  width: 36px; height: 36px; border-radius: 50%;
  background: rgba(255,255,255,.08);
  display: flex; align-items: center; justify-content: center;
  font-size: .9rem; color: var(--text-light); transition: var(--transition);
}
.social-link:hover { background: var(--primary); color: #fff; }

/* ===== REVEAL ANIMATIONS ===== */
.reveal { opacity: 0; transform: translateY(36px); transition: opacity .7s ease, transform .7s ease; }
.reveal.visible { opacity: 1; transform: none; }

/* ===== GRID HELPERS ===== */
.grid   { display: grid; gap: 1.75rem; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); }

/* ===== FORM ELEMENTS ===== */
.form-group { margin-bottom: 1.4rem; }
.form-label { display: block; font-weight: 600; font-size: .875rem; color: var(--text-heading); margin-bottom: .5rem; }
.form-control {
  width: 100%; padding: .8rem 1.1rem;
  border: 1.5px solid var(--border); border-radius: var(--radius-sm);
  font-family: var(--font-body); font-size: .95rem; color: var(--text-heading);
  background: var(--bg-white); transition: var(--transition);
  outline: none;
}
.form-control:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(20,184,166,.15); }
.form-control::placeholder { color: var(--text-light); }
select.form-control   { cursor: pointer; }
textarea.form-control { resize: vertical; min-height: 130px; }

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  /* Hide desktop nav items */
  .nav-menu          { display: none; }
  .nav-actions .btn  { display: none; }
  .emergency-pill    { display: none; }
  .mobile-toggle     { display: block; }

  /* Hide the WhatsApp expandable sub-links on mobile — the floating
     button links straight to WhatsApp on tap; no hover state exists. */
  .wa-widget .wa-sub-links { display: none !important; }

  /* Mobile dropdown menu */
  .nav-menu.open {
    display: flex; flex-direction: column;
    position: absolute; top: var(--header-h); left: 0; width: 100%;
    background: #fff;
    border-top: 1px solid var(--border);
    box-shadow: 0 8px 24px rgba(0,0,0,.08);
    padding: .5rem 1rem;
    gap: 0; align-items: stretch;
    height: auto;
  }
  .nav-menu.open li { display: block; }
  .nav-menu.open .nav-link {
    display: block;
    padding: .8rem .5rem;
    border-bottom: 1px solid var(--border);
    border-right: none;
    font-size: .9rem;
  }
  .nav-menu.open li:last-child .nav-link {
    border-bottom: none;
  }

  .footer-grid   { grid-template-columns: 1fr 1fr; gap: 1.5rem; }
  .footer-grid > div:first-child { grid-column: 1 / -1; }
  .footer-grid > div:last-child  { grid-column: 1 / -1; }
  .footer { padding: 3rem 0 1.5rem; }
  .footer-bottom { flex-direction: column; text-align: center; gap: .5rem; }
  .footer-logo { font-size: 1.2rem; }
  .footer p { font-size: .85rem; }
  .footer-heading { margin-bottom: .75rem; }
  .footer-links { gap: .5rem; }
  .footer-links a { font-size: .85rem; }
}
/* Facility gallery */
.facility-gallery{display:grid;grid-template-columns:repeat(3,1fr);gap:1.1rem;}
.facility-item{margin:0;border-radius:var(--radius-md,14px);overflow:hidden;background:#fff;box-shadow:0 6px 20px rgba(0,0,0,.07);}
.facility-item img{width:100%;height:250px;object-fit:cover;display:block;transition:transform .5s ease;}
.facility-item:hover img{transform:scale(1.05);}
.facility-item figcaption{padding:.7rem .9rem;font-size:.85rem;font-weight:600;color:var(--text-heading,#122);}
@media (max-width:900px){.facility-gallery{grid-template-columns:repeat(2,1fr);}.facility-item img{height:200px;}}
@media (max-width:560px){.facility-gallery{grid-template-columns:1fr;}}
