/* =============================================
   ATMOS HEALTHCARE — SHARED STYLESHEET
   atmoshospitals.com
   ============================================= */

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

/* ---- RESET & BASE ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body { font-family: 'DM Sans', sans-serif; font-weight: 400; color: #1a1a1a; background: #f7f5f0; line-height: 1.6; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

/* ---- CSS VARIABLES ---- */
:root {
  /* Eye Care — Deep Teal */
  --eye-dark:   #04342C;
  --eye-mid:    #0F6E56;
  --eye-light:  #1D9E75;
  --eye-pale:   #E1F5EE;
  --eye-accent: #5DCAA5;

  /* Child Care — Deep Amber */
  --child-dark:  #412402;
  --child-mid:   #854F0B;
  --child-light: #BA7517;
  --child-pale:  #FAEEDA;
  --child-accent:#EF9F27;

  /* Neutrals */
  --bg:        #f7f5f0;
  --bg-white:  #ffffff;
  --text:      #1a1a1a;
  --text-mid:  #555550;
  --text-muted:#888880;
  --border:    rgba(0,0,0,0.08);
  --border-md: rgba(0,0,0,0.12);

  /* Spacing */
  --r-sm:  8px;
  --r-md:  12px;
  --r-lg:  16px;
  --r-xl:  24px;
}

/* ---- TYPOGRAPHY ---- */
h1, h2, h3, h4 { font-family: 'DM Serif Display', serif; font-weight: 400; line-height: 1.2; letter-spacing: -0.3px; }
h1 { font-size: clamp(2rem, 5vw, 3rem); }
h2 { font-size: clamp(1.6rem, 4vw, 2.2rem); }
h3 { font-size: 1.25rem; }
h4 { font-size: 1rem; }
p { line-height: 1.7; color: var(--text-mid); }
em { font-style: italic; }

/* ---- NAVIGATION ---- */
.nav {
  position: sticky; top: 0; z-index: 1000;
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(8px);
  border-bottom: 0.5px solid var(--border);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 2rem; height: 64px;
}
.nav-logo { font-family: 'DM Serif Display', serif; font-size: 1.2rem; letter-spacing: -0.3px; }
.nav-logo .logo-eye { color: var(--eye-mid); }
.nav-logo .logo-child { color: var(--child-mid); }
.nav-links { display: flex; gap: 2rem; font-size: 0.875rem; color: var(--text-mid); }
.nav-links a:hover { color: var(--text); }
.nav-links .has-dropdown { position: relative; cursor: pointer; }
.nav-links .has-dropdown:hover .dropdown { display: block; }
.dropdown {
  display: none; position: absolute; top: 100%; left: 0;
  background: white; border: 0.5px solid var(--border-md);
  border-radius: var(--r-md); min-width: 180px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.1); padding: 0.5rem 0;
}
.dropdown a { display: block; padding: 0.6rem 1rem; font-size: 0.875rem; color: var(--text-mid); }
.dropdown a:hover { background: var(--bg); color: var(--text); }
.nav-ctas { display: flex; gap: 0.5rem; align-items: center; }
.btn-eye-sm {
  font-size: 0.8rem; font-weight: 500; padding: 8px 14px;
  background: var(--eye-pale); color: var(--eye-mid);
  border-radius: 20px; border: none; cursor: pointer; transition: background 0.2s;
}
.btn-eye-sm:hover { background: var(--eye-accent); color: white; }
.btn-child-sm {
  font-size: 0.8rem; font-weight: 500; padding: 8px 14px;
  background: var(--child-pale); color: var(--child-mid);
  border-radius: 20px; border: none; cursor: pointer; transition: background 0.2s;
}
.btn-child-sm:hover { background: var(--child-accent); color: white; }
.hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; padding: 4px; }
.hamburger span { display: block; width: 22px; height: 1.5px; background: var(--text); transition: all 0.3s; }

/* ---- BUTTONS ---- */
.btn {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: 'DM Sans', sans-serif; font-size: 0.9rem; font-weight: 500;
  padding: 12px 24px; border-radius: 40px; border: none; cursor: pointer;
  transition: all 0.2s; text-decoration: none;
}
.btn-eye { background: var(--eye-mid); color: white; }
.btn-eye:hover { background: var(--eye-dark); transform: translateY(-1px); }
.btn-child { background: var(--child-mid); color: white; }
.btn-child:hover { background: var(--child-dark); transform: translateY(-1px); }
.btn-outline-eye { background: transparent; color: var(--eye-mid); border: 1.5px solid var(--eye-mid); }
.btn-outline-eye:hover { background: var(--eye-pale); }
.btn-outline-child { background: transparent; color: var(--child-mid); border: 1.5px solid var(--child-mid); }
.btn-outline-child:hover { background: var(--child-pale); }
.btn-whatsapp { background: #25D366; color: white; }
.btn-whatsapp:hover { background: #128C7E; transform: translateY(-1px); }

/* ---- PILLS / BADGES ---- */
.pill {
  display: inline-block; font-size: 0.7rem; font-weight: 500;
  letter-spacing: 1.5px; text-transform: uppercase;
  padding: 4px 12px; border-radius: 20px; margin-bottom: 0.75rem;
}
.pill-eye { background: var(--eye-pale); color: var(--eye-mid); }
.pill-child { background: var(--child-pale); color: var(--child-mid); }
.pill-neutral { background: #eeece8; color: var(--text-mid); }

/* ---- SECTION WRAPPERS ---- */
.section { padding: 4rem 2rem; }
.section-sm { padding: 2rem; }
.container { max-width: 1100px; margin: 0 auto; }
.section-label { font-size: 0.75rem; letter-spacing: 2px; text-transform: uppercase; color: var(--text-muted); margin-bottom: 0.5rem; }
.section-title { margin-bottom: 1rem; }
.section-sub { font-size: 1rem; color: var(--text-mid); max-width: 540px; line-height: 1.7; }

/* ---- CARDS ---- */
.card {
  background: white; border-radius: var(--r-xl);
  border: 0.5px solid var(--border);
  overflow: hidden; transition: box-shadow 0.2s;
}
.card:hover { box-shadow: 0 8px 32px rgba(0,0,0,0.08); }
.card-body { padding: 1.5rem; }

/* ---- SERVICE GRID ---- */
.services-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1px; background: var(--border);
  border-radius: var(--r-xl); overflow: hidden;
  border: 0.5px solid var(--border);
}
.svc-card { background: white; padding: 1.5rem; transition: background 0.2s; cursor: default; }
.svc-card:hover { background: var(--bg); }
.svc-icon { font-size: 1.5rem; margin-bottom: 0.75rem; }
.svc-name { font-family: 'DM Serif Display', serif; font-size: 1rem; margin-bottom: 0.35rem; }
.svc-desc { font-size: 0.8rem; color: var(--text-muted); line-height: 1.6; }

/* ---- DOCTOR PROFILE ---- */
.doctor-card {
  display: grid; grid-template-columns: 120px 1fr; gap: 1.5rem;
  background: white; border-radius: var(--r-xl); border: 0.5px solid var(--border);
  padding: 1.75rem; align-items: start;
}
.doc-avatar-lg {
  width: 96px; height: 96px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: 'DM Serif Display', serif; font-size: 2rem; font-weight: 400;
  flex-shrink: 0;
}
.doc-avatar-eye { background: var(--eye-pale); color: var(--eye-mid); }
.doc-avatar-child { background: var(--child-pale); color: var(--child-mid); }
.doc-name { font-family: 'DM Serif Display', serif; font-size: 1.4rem; margin-bottom: 0.25rem; }
.doc-quals { font-size: 0.8rem; color: var(--text-mid); line-height: 1.8; margin-bottom: 0.75rem; }
.doc-highlight {
  font-size: 0.8rem; padding: 0.6rem 0.9rem; border-radius: var(--r-md);
  line-height: 1.6; margin-bottom: 0.75rem;
}
.doc-highlight-eye { background: var(--eye-pale); color: var(--eye-dark); }
.doc-highlight-child { background: var(--child-pale); color: var(--child-dark); }

/* ---- REVIEWS ---- */
.review-card {
  background: white; border-radius: var(--r-xl); border: 0.5px solid var(--border);
  padding: 1.5rem;
}
.stars { color: #EF9F27; font-size: 0.85rem; margin-bottom: 0.6rem; letter-spacing: 2px; }
.review-text { font-size: 0.9rem; font-style: italic; color: var(--text-mid); line-height: 1.7; margin-bottom: 0.6rem; }
.review-author { font-size: 0.8rem; color: var(--text-muted); font-weight: 500; }
.reviews-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1rem; }

/* ---- TRUST BAR ---- */
.trust-bar {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 1px; background: var(--border);
  border-radius: var(--r-xl); overflow: hidden;
  border: 0.5px solid var(--border);
}
.trust-item { background: white; padding: 1.5rem; text-align: center; }
.trust-num { font-family: 'DM Serif Display', serif; font-size: 2rem; }
.trust-label { font-size: 0.75rem; color: var(--text-muted); margin-top: 4px; }

/* ---- HERO GATEWAY (homepage) ---- */
.gateway-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 1px; background: var(--border);
  border-radius: var(--r-xl); overflow: hidden;
  border: 0.5px solid var(--border);
}
.gate-card {
  padding: 2.5rem 2rem; cursor: pointer;
  transition: filter 0.2s; position: relative;
  text-decoration: none; display: block;
}
.gate-eye { background: var(--eye-dark); }
.gate-eye:hover { filter: brightness(1.1); }
.gate-child { background: var(--child-dark); }
.gate-child:hover { filter: brightness(1.1); }
.gate-badge {
  font-size: 0.65rem; letter-spacing: 2px; text-transform: uppercase;
  font-weight: 500; padding: 4px 10px; border-radius: 20px;
  display: inline-block; margin-bottom: 1rem;
}
.gate-eye .gate-badge { background: rgba(29,158,117,0.3); color: var(--eye-accent); }
.gate-child .gate-badge { background: rgba(186,117,23,0.3); color: var(--child-accent); }
.gate-title { font-family: 'DM Serif Display', serif; font-size: 1.6rem; color: white; margin-bottom: 0.5rem; }
.gate-desc { font-size: 0.85rem; line-height: 1.6; margin-bottom: 1.25rem; }
.gate-eye .gate-desc { color: var(--eye-accent); }
.gate-child .gate-desc { color: var(--child-accent); }
.gate-doctor { display: flex; align-items: center; gap: 10px; margin-bottom: 1.25rem; }
.gate-avatar {
  width: 36px; height: 36px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.75rem; font-weight: 500; flex-shrink: 0;
}
.gate-eye .gate-avatar { background: var(--eye-light); color: var(--eye-pale); }
.gate-child .gate-avatar { background: var(--child-light); color: var(--child-pale); }
.gate-doc-info { font-size: 0.8rem; }
.gate-eye .gate-doc-info { color: var(--eye-accent); }
.gate-child .gate-doc-info { color: var(--child-accent); }
.gate-doc-name { color: white; font-weight: 500; }
.gate-cta {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 0.8rem; font-weight: 500; padding: 10px 18px;
  border-radius: 40px; transition: transform 0.15s;
}
.gate-eye .gate-cta { background: var(--eye-light); color: white; }
.gate-child .gate-cta { background: var(--child-light); color: white; }
.gate-cta:hover { transform: translateX(3px); }

/* ---- FAQ ---- */
.faq-item { border-bottom: 0.5px solid var(--border); }
.faq-q {
  width: 100%; text-align: left; padding: 1.1rem 0;
  font-family: 'DM Sans', sans-serif; font-size: 0.95rem; font-weight: 500;
  color: var(--text); background: none; border: none; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
}
.faq-q .faq-icon { font-size: 1.2rem; color: var(--text-muted); transition: transform 0.2s; flex-shrink: 0; }
.faq-q.open .faq-icon { transform: rotate(45deg); }
.faq-a { display: none; font-size: 0.875rem; color: var(--text-mid); padding: 0 0 1rem; line-height: 1.7; }
.faq-a.open { display: block; }

/* ---- APPOINTMENT FORM ---- */
.appt-form { background: white; border-radius: var(--r-xl); border: 0.5px solid var(--border); padding: 2rem; }
.form-group { margin-bottom: 1.25rem; }
.form-group label { display: block; font-size: 0.8rem; font-weight: 500; color: var(--text-mid); margin-bottom: 0.4rem; }
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%; padding: 12px 14px; border-radius: var(--r-md);
  border: 1px solid var(--border-md); font-family: 'DM Sans', sans-serif;
  font-size: 0.9rem; color: var(--text); background: var(--bg);
  transition: border-color 0.2s; outline: none;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus { border-color: var(--eye-light); background: white; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-note { font-size: 0.75rem; color: var(--text-muted); margin-top: 0.5rem; text-align: center; }

/* ---- TABS (department pages) ---- */
.tabs-nav { display: flex; border-bottom: 1px solid var(--border-md); margin-bottom: 2rem; gap: 0; }
.tab-btn {
  padding: 0.85rem 1.5rem; font-size: 0.875rem; font-weight: 500;
  background: none; border: none; cursor: pointer; color: var(--text-muted);
  border-bottom: 2px solid transparent; margin-bottom: -1px; transition: all 0.2s;
}
.tab-btn.active-eye { color: var(--eye-mid); border-bottom-color: var(--eye-mid); }
.tab-btn.active-child { color: var(--child-mid); border-bottom-color: var(--child-mid); }
.tab-pane { display: none; }
.tab-pane.active { display: block; }

/* ---- PAGE HERO ---- */
.page-hero {
  padding: 4rem 2rem 3rem; position: relative; overflow: hidden;
}
.page-hero-eye { background: var(--eye-dark); }
.page-hero-child { background: var(--child-dark); }
.page-hero-neutral { background: var(--bg-white); border-bottom: 0.5px solid var(--border); }
.page-hero h1 { color: white; }
.page-hero .section-label { color: rgba(255,255,255,0.5); }
.page-hero p { color: rgba(255,255,255,0.7); max-width: 600px; }
.page-hero-neutral h1 { color: var(--text); }
.page-hero-neutral p { color: var(--text-mid); }

/* ---- BREADCRUMB ---- */
.breadcrumb { font-size: 0.8rem; color: rgba(255,255,255,0.5); margin-bottom: 1rem; }
.breadcrumb a { color: rgba(255,255,255,0.6); }
.breadcrumb a:hover { color: white; }
.breadcrumb span { margin: 0 0.4rem; }

/* ---- FOOTER ---- */
footer {
  background: #111; color: white; padding: 3rem 2rem 1.5rem;
}
.footer-inner { max-width: 1100px; margin: 0 auto; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.5fr; gap: 3rem; margin-bottom: 3rem; }
.footer-brand .logo { font-family: 'DM Serif Display', serif; font-size: 1.3rem; margin-bottom: 0.75rem; }
.footer-brand p { font-size: 0.85rem; color: rgba(255,255,255,0.5); line-height: 1.7; margin-bottom: 1rem; }
.footer-col h5 { font-size: 0.75rem; letter-spacing: 1.5px; text-transform: uppercase; color: rgba(255,255,255,0.4); margin-bottom: 1rem; font-weight: 500; font-family: 'DM Sans', sans-serif; }
.footer-col a { display: block; font-size: 0.875rem; color: rgba(255,255,255,0.6); margin-bottom: 0.5rem; }
.footer-col a:hover { color: white; }
.footer-contact { font-size: 0.875rem; color: rgba(255,255,255,0.6); line-height: 1.9; }
.footer-contact strong { color: rgba(255,255,255,0.9); }
.footer-bottom { padding-top: 1.5rem; border-top: 0.5px solid rgba(255,255,255,0.1); display: flex; justify-content: space-between; align-items: center; }
.footer-bottom p { font-size: 0.75rem; color: rgba(255,255,255,0.3); }
.footer-badges { display: flex; gap: 8px; }
.footer-badge { font-size: 0.7rem; padding: 4px 10px; border-radius: 20px; }
.badge-eye { background: rgba(29,158,117,0.2); color: var(--eye-accent); }
.badge-child { background: rgba(186,117,23,0.2); color: var(--child-accent); }

/* ---- WHATSAPP FLOAT ---- */
.wa-float {
  position: fixed; bottom: 1.5rem; right: 1.5rem; z-index: 999;
  background: #25D366; color: white; width: 52px; height: 52px;
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem; box-shadow: 0 4px 16px rgba(37,211,102,0.4);
  transition: transform 0.2s, box-shadow 0.2s; text-decoration: none;
}
.wa-float:hover { transform: scale(1.1); box-shadow: 0 6px 24px rgba(37,211,102,0.5); }

/* ---- ANIMATIONS ---- */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
.fade-up { animation: fadeUp 0.6s ease forwards; }
.fade-up-1 { animation-delay: 0.1s; opacity: 0; }
.fade-up-2 { animation-delay: 0.2s; opacity: 0; }
.fade-up-3 { animation-delay: 0.3s; opacity: 0; }
.fade-up-4 { animation-delay: 0.4s; opacity: 0; }

/* ---- RESPONSIVE ---- */
@media (max-width: 768px) {
  .nav-links, .nav-ctas { display: none; }
  .hamburger { display: flex; }
  .nav-links.open { 
    display: flex; flex-direction: column; position: fixed;
    top: 64px; left: 0; right: 0; bottom: 0;
    background: white; padding: 2rem; gap: 1.5rem;
    font-size: 1.1rem; z-index: 999;
  }
  .nav-ctas.open { display: flex; flex-direction: column; padding: 0 2rem 2rem; }
  .gateway-grid { grid-template-columns: 1fr; }
  .trust-bar { grid-template-columns: 1fr 1fr; }
  .doctor-card { grid-template-columns: 1fr; }
  .doc-avatar-lg { width: 64px; height: 64px; font-size: 1.4rem; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .form-row { grid-template-columns: 1fr; }
  .section { padding: 2.5rem 1.25rem; }
  .page-hero { padding: 2.5rem 1.25rem 2rem; }
  h1 { font-size: 2rem; }
  h2 { font-size: 1.6rem; }
}
@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
  .trust-bar { grid-template-columns: 1fr 1fr; }
  .reviews-grid { grid-template-columns: 1fr; }
}

/* ---- UTILITY ---- */
.text-eye   { color: var(--eye-mid); }
.text-child { color: var(--child-mid); }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }
.flex { display: flex; }
.flex-center { display: flex; align-items: center; }
.gap-1 { gap: 0.5rem; }
.gap-2 { gap: 1rem; }
.gap-3 { gap: 1.5rem; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3,1fr); gap: 1.5rem; }
@media (max-width: 768px) { .grid-2, .grid-3 { grid-template-columns: 1fr; } }
.divider { height: 0.5px; background: var(--border); margin: 2rem 0; }
.text-center { text-align: center; }
.inline-list { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.tag {
  font-size: 0.75rem; padding: 4px 10px; border-radius: 20px;
  background: var(--bg); border: 0.5px solid var(--border-md);
  color: var(--text-mid);
}
