/* =========================================================
   SAFFRON ORTHOPAEDIC HOSPITAL — Design System
   ========================================================= */

:root {
  /* Brand colors — extracted from logo */
  --teal-900: #06373A;
  --teal-800: #094D50;
  --teal-700: #0C6669;
  --teal-600: #0F7B7F;   /* Primary Teal */
  --teal-500: #14989D;
  --teal-400: #3FB4B8;
  --teal-100: #E3F4F4;
  --teal-50:  #F1FAFA;

  --orange-700: #C06A0C;
  --orange-600: #DD8412;
  --orange-500: #F2A93B;  /* Accent Saffron Orange */
  --orange-400: #F6BE63;
  --orange-100: #FDEED4;
  --orange-50:  #FFF7EB;

  --white: #FFFFFF;
  --gray-900: #1B2427;   /* Dark Gray */
  --gray-800: #2B363A;
  --gray-700: #46545A;
  --gray-500: #74868C;
  --gray-300: #B9C6C9;
  --gray-200: #DDE6E7;
  --gray-100: #EFF4F4;   /* Light Gray */
  --gray-50:  #F8FBFB;

  --font-heading: 'Poppins', sans-serif;
  --font-body: 'Inter', sans-serif;

  --shadow-sm: 0 2px 8px rgba(6, 55, 58, 0.06);
  --shadow-md: 0 8px 24px rgba(6, 55, 58, 0.10);
  --shadow-lg: 0 20px 48px rgba(6, 55, 58, 0.14);
  --shadow-glow: 0 8px 30px rgba(242, 169, 59, 0.25);

  --radius-sm: 10px;
  --radius-md: 18px;
  --radius-lg: 28px;
  --radius-pill: 999px;

  --container: 1240px;
  --transition: 0.35s cubic-bezier(.4,0,.2,1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  color: var(--gray-800);
  background: var(--white);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
input, select, textarea { font-family: inherit; font-size: 1rem; }
h1, h2, h3, h4 { font-family: var(--font-heading); font-weight: 700; line-height: 1.2; color: var(--teal-900); }
h1 { font-size: clamp(2.1rem, 4.2vw, 3.4rem); font-weight: 800; letter-spacing: -0.02em; }
h2 { font-size: clamp(1.7rem, 3vw, 2.5rem); letter-spacing: -0.01em; }
h3 { font-size: 1.3rem; }
p { color: var(--gray-700); }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }
:focus-visible { outline: 3px solid var(--orange-500); outline-offset: 2px; }

/* Skip link for accessibility */
.skip-link {
  position: absolute; top: -50px; left: 12px; background: var(--teal-700); color: #fff;
  padding: 10px 18px; border-radius: var(--radius-sm); z-index: 9999; transition: top .2s;
}
.skip-link:focus { top: 12px; }

/* ---------- Layout helpers ---------- */
.container { max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.section { padding: 88px 0; }
.section-sm { padding: 56px 0; }
.section-tight { padding: 64px 0; }
.bg-teal { background: linear-gradient(160deg, var(--teal-800), var(--teal-600)); color: #fff; }
.bg-teal h2, .bg-teal h3 { color: #fff; }
.bg-teal p { color: rgba(255,255,255,0.82); }
.bg-light { background: var(--gray-50); }
.bg-soft-teal { background: var(--teal-50); }
.grid { display: grid; gap: 28px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.flex { display: flex; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }

/* ---------- Eyebrow / kicker ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-heading); font-weight: 600; font-size: 0.8rem;
  letter-spacing: 0.08em; text-transform: uppercase; color: var(--orange-600);
  background: var(--orange-100); padding: 7px 16px; border-radius: var(--radius-pill);
  margin-bottom: 16px;
}
.eyebrow::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--orange-500); }
.section-head { max-width: 680px; margin-bottom: 48px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head p { font-size: 1.08rem; margin-top: 14px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: var(--font-heading); font-weight: 600; font-size: 0.98rem;
  padding: 15px 30px; border-radius: var(--radius-pill);
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition), color var(--transition);
  white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; flex-shrink: 0; }
.btn-primary { background: var(--orange-500); color: var(--teal-900); box-shadow: var(--shadow-glow); }
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 14px 34px rgba(242,169,59,0.35); background: var(--orange-600); }
.btn-outline { background: transparent; color: var(--teal-700); border: 1.5px solid var(--teal-600); }
.btn-outline:hover { background: var(--teal-600); color: #fff; transform: translateY(-3px); }
.btn-white { background: #fff; color: var(--teal-800); }
.btn-white:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.btn-ghost-white { background: rgba(255,255,255,0.12); color: #fff; border: 1.5px solid rgba(255,255,255,0.5); backdrop-filter: blur(6px); }
.btn-ghost-white:hover { background: rgba(255,255,255,0.22); transform: translateY(-3px); }
.btn-sm { padding: 10px 20px; font-size: 0.88rem; }
.btn-block { width: 100%; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 1000; background: rgba(255,255,255,0.88);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--gray-200); transition: box-shadow var(--transition);
}
.site-header.scrolled { box-shadow: var(--shadow-md); }
.topbar {
  background: var(--teal-900); color: rgba(255,255,255,0.9); font-size: 0.82rem;
}
.topbar .container { display: flex; align-items: center; justify-content: space-between; padding-top: 8px; padding-bottom: 8px; }
.topbar-item { display: flex; align-items: center; gap: 6px; }
.topbar-item svg { width: 14px; height: 14px; color: var(--orange-400); }
.topbar-links { display: flex; gap: 20px; }
.topbar a:hover { color: var(--orange-400); }
.navbar { display: flex; align-items: center; justify-content: space-between; padding: 14px 0; }
.brand { display: flex; align-items: center; gap: 10px; flex-shrink: 0; margin-right: 40px; }
.brand img, .brand svg { height: 44px; width: auto; transition: height var(--transition); }
.nav-links { display: flex; align-items: center; gap: 30px; }
.nav-links a {
  font-family: var(--font-heading); font-weight: 500; font-size: 0.95rem; color: var(--gray-800);
  position: relative; padding: 6px 0;
}
.nav-links a::after {
  content: ''; position: absolute; left: 0; bottom: 0; width: 0; height: 2px; background: var(--orange-500);
  transition: width var(--transition);
}
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }
.nav-links a.active { color: var(--teal-700); }

/* ---------- Dropdown Menu ---------- */
.dropdown {
  position: relative;
}
.dropdown-toggle {
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
}
.dropdown-caret {
  flex-shrink: 0;
  transition: transform var(--transition);
}
.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-md);
  padding: 8px 0;
  min-width: 170px;
  z-index: 1010;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity var(--transition), transform var(--transition), visibility var(--transition);
}
.dropdown:hover .dropdown-menu,
.dropdown:focus-within .dropdown-menu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}
.dropdown:hover .dropdown-caret {
  transform: rotate(180deg);
}
.dropdown-menu li {
  width: 100%;
}
.dropdown-menu a {
  display: block;
  padding: 10px 20px;
  font-family: var(--font-body);
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--gray-800);
  position: relative;
  transition: background var(--transition), color var(--transition);
}
.dropdown-menu a::after {
  display: none;
}
.dropdown-menu a:hover {
  background: var(--teal-50);
  color: var(--teal-700);
}
.dropdown-menu a.active {
  background: var(--teal-50);
  color: var(--teal-700);
  font-weight: 600;
}
.dropdown:has(.active) > .dropdown-toggle {
  color: var(--teal-700);
}
.dropdown:has(.active) > .dropdown-toggle::after {
  width: 100%;
}
.nav-actions { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.icon-btn {
  width: 44px; height: 44px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  background: var(--teal-50); color: var(--teal-700); transition: var(--transition);
}
.icon-btn:hover { background: var(--teal-600); color: #fff; transform: translateY(-2px); }
.icon-btn svg { width: 20px; height: 20px; }
.nav-toggle { display: none; width: 44px; height: 44px; align-items: center; justify-content: center; }
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  content: ''; display: block; width: 24px; height: 2.4px; background: var(--teal-800); border-radius: 2px; position: relative; transition: var(--transition);
}
.nav-toggle span::before { position: absolute; top: -8px; width: 24px; }
.nav-toggle span::after { position: absolute; top: 8px; width: 24px; }
.nav-toggle.open span { background: transparent; }
.nav-toggle.open span::before { transform: rotate(45deg); top: 0; }
.nav-toggle.open span::after { transform: rotate(-45deg); top: 0; }

/* Medium screens navigation adjustment */
@media (max-width: 1200px) {
  .brand { margin-right: 24px; }
  .brand img, .brand svg { height: 38px; }
  .nav-links { gap: 16px; }
  .nav-links a { font-size: 0.88rem; }
  .nav-actions { gap: 8px; }
  .nav-actions .btn-outline { display: none; }
}

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding: 64px 0 90px; background: linear-gradient(180deg, var(--teal-50) 0%, #fff 70%); }
.hero-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 48px; align-items: center; }
.hero-badges { display: flex; gap: 12px; margin-top: 28px; flex-wrap: wrap; }
.hero-badge {
  display: flex; align-items: center; gap: 8px; background: #fff; border: 1px solid var(--gray-200);
  padding: 9px 16px; border-radius: var(--radius-pill); font-size: 0.85rem; font-weight: 600; color: var(--teal-800);
  box-shadow: var(--shadow-sm);
}
.hero-badge svg { width: 16px; height: 16px; color: var(--orange-500); }
.hero-actions { display: flex; gap: 16px; margin-top: 34px; flex-wrap: wrap; }
.hero p.lead { font-size: 1.15rem; margin-top: 18px; max-width: 540px; }
.hero-visual { position: relative; }
.hero-visual .float-card {
  position: absolute; background: rgba(255,255,255,0.92); backdrop-filter: blur(10px);
  border-radius: var(--radius-md); box-shadow: var(--shadow-lg); padding: 16px 20px;
  display: flex; align-items: center; gap: 12px; z-index: 3;
}
.hero-visual .float-card .num { font-family: var(--font-heading); font-weight: 800; font-size: 1.3rem; color: var(--teal-800); }
.hero-visual .float-card .lbl { font-size: 0.78rem; color: var(--gray-500); }
.hero-visual .card-1 { top: 12%; left: -6%; }
.hero-visual .card-2 { bottom: 8%; right: -4%; }

/* ---------- Stats ---------- */
.stats-bar { background: var(--teal-800); border-radius: var(--radius-lg); padding: 44px 30px; margin-top: -70px; position: relative; z-index: 5; box-shadow: var(--shadow-lg); }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; text-align: center; }
.stat .num { font-family: var(--font-heading); font-weight: 800; font-size: clamp(1.8rem, 3vw, 2.6rem); color: #fff; }
.stat .num span.accent { color: var(--orange-400); }
.stat .lbl { color: rgba(255,255,255,0.75); font-size: 0.92rem; margin-top: 4px; }
.stats-divider { width: 1px; background: rgba(255,255,255,0.15); }

/* ---------- Cards ---------- */
.card {
  background: #fff; border-radius: var(--radius-md); border: 1px solid var(--gray-200);
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
  overflow: hidden;
}
.card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); border-color: transparent; }
.service-card { padding: 30px 26px; }
.service-card .icon-wrap {
  width: 60px; height: 60px; border-radius: 16px; background: var(--teal-50);
  display: flex; align-items: center; justify-content: center; margin-bottom: 20px; transition: var(--transition);
}
.service-card .icon-wrap svg { width: 30px; height: 30px; color: var(--teal-600); }
.service-card:hover .icon-wrap { background: var(--teal-600); }
.service-card:hover .icon-wrap svg { color: #fff; }
.service-card h3 { margin-bottom: 10px; font-size: 1.15rem; }
.service-card p { font-size: 0.95rem; margin-bottom: 16px; }
.service-card .learn { display: inline-flex; align-items: center; gap: 6px; color: var(--teal-700); font-weight: 600; font-size: 0.9rem; }
.service-card .learn svg { width: 15px; height: 15px; transition: transform var(--transition); }
.service-card:hover .learn svg { transform: translateX(4px); }

.illo-frame {
  border-radius: var(--radius-md); overflow: hidden; background: var(--teal-50); position: relative;
}
.illo-frame img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Why choose us ---------- */
.feature-row { display: flex; gap: 20px; align-items: flex-start; padding: 22px 0; border-bottom: 1px solid var(--gray-200); }
.feature-row:last-child { border-bottom: none; }
.feature-row .icon-wrap { width: 52px; height: 52px; border-radius: 14px; background: var(--orange-100); flex-shrink: 0; display: flex; align-items: center; justify-content: center; }
.feature-row .icon-wrap svg { width: 26px; height: 26px; color: var(--orange-600); }
.feature-row h4 { font-family: var(--font-heading); font-weight: 600; margin-bottom: 6px; color: var(--teal-900); }
.feature-row p { font-size: 0.94rem; }

/* ---------- Doctor cards ---------- */
.doctor-card { text-align: left; }
.doctor-card .photo { aspect-ratio: 4/4.6; background: var(--teal-100); position: relative; overflow: hidden; }
.doctor-card .photo img { width: 100%; height: 100%; object-fit: cover; }
.doctor-card .body { padding: 22px; }
.doctor-card .spec { color: var(--orange-600); font-weight: 600; font-size: 0.85rem; margin-bottom: 4px; text-transform: uppercase; letter-spacing: 0.03em; }
.doctor-card h3 { margin-bottom: 4px; }
.doctor-card .qual { color: var(--gray-500); font-size: 0.88rem; margin-bottom: 12px; }
.doctor-card .meta { display: flex; gap: 14px; font-size: 0.82rem; color: var(--gray-700); margin-bottom: 16px; flex-wrap: wrap; }
.doctor-card .meta span { display: flex; align-items: center; gap: 5px; }
.doctor-card .meta svg { width: 14px; height: 14px; color: var(--teal-600); }
.tag-row { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; }
.tag { background: var(--teal-50); color: var(--teal-700); font-size: 0.76rem; font-weight: 600; padding: 5px 12px; border-radius: var(--radius-pill); }

/* ---------- Testimonials ---------- */
.testimonial-card { padding: 30px; background: #fff; }
.stars { display: flex; gap: 3px; color: var(--orange-500); margin-bottom: 16px; }
.stars svg { width: 18px; height: 18px; }
.testimonial-card p.quote { font-size: 1.02rem; color: var(--gray-800); font-style: italic; margin-bottom: 20px; }
.testimonial-author { display: flex; align-items: center; gap: 12px; }
.avatar-badge {
  width: 48px; height: 48px; border-radius: 50%; background: var(--teal-600); color: #fff;
  display: flex; align-items: center; justify-content: center; font-family: var(--font-heading); font-weight: 700;
}
.testimonial-author .name { font-weight: 700; color: var(--teal-900); font-size: 0.95rem; }
.testimonial-author .role { font-size: 0.8rem; color: var(--gray-500); }

.carousel { position: relative; }
.carousel-track { display: flex; gap: 24px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 8px; scrollbar-width: none; }
.carousel-track::-webkit-scrollbar { display: none; }
.carousel-track > * { scroll-snap-align: start; flex: 0 0 auto; }
.carousel-nav { display: flex; gap: 10px; justify-content: center; margin-top: 26px; }
.carousel-nav button {
  width: 42px; height: 42px; border-radius: 50%; border: 1.5px solid var(--gray-200); display: flex; align-items: center; justify-content: center;
  transition: var(--transition); color: var(--teal-700);
}
.carousel-nav button:hover { background: var(--teal-600); color: #fff; border-color: var(--teal-600); }
.carousel-nav svg { width: 18px; height: 18px; }

/* ---------- CTA band ---------- */
.cta-band {
  background: linear-gradient(120deg, var(--teal-700), var(--teal-900));
  border-radius: var(--radius-lg); padding: 60px; display: flex; align-items: center; justify-content: space-between; gap: 30px; color: #fff;
  position: relative; overflow: hidden;
}
.cta-band::before {
  content: ''; position: absolute; width: 340px; height: 340px; border-radius: 50%;
  background: radial-gradient(circle, rgba(242,169,59,0.35), transparent 70%); top: -120px; right: -80px;
}
.cta-band h2 { color: #fff; margin-bottom: 10px; }
.cta-band p { color: rgba(255,255,255,0.82); }
.cta-actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* ---------- Footer ---------- */
.site-footer { background: var(--teal-900); color: rgba(255,255,255,0.75); padding-top: 76px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; padding-bottom: 50px; border-bottom: 1px solid rgba(255,255,255,0.1); }
.footer-brand img, .footer-brand svg { height: 42px; margin-bottom: 18px; }
.footer-brand p { color: rgba(255,255,255,0.65); font-size: 0.92rem; margin-bottom: 18px; }
.footer-col h4 { color: #fff; font-family: var(--font-heading); font-weight: 600; margin-bottom: 18px; font-size: 1rem; }
.footer-col ul li { margin-bottom: 12px; }
.footer-col a { font-size: 0.92rem; color: rgba(255,255,255,0.68); transition: var(--transition); }
.footer-col a:hover { color: var(--orange-400); }
.footer-contact li { display: flex; gap: 10px; align-items: flex-start; font-size: 0.9rem; color: rgba(255,255,255,0.75); }
.footer-contact svg { width: 17px; height: 17px; color: var(--orange-400); flex-shrink: 0; margin-top: 2px; }
.social-row { display: flex; gap: 10px; margin-top: 20px; }
.social-row a { width: 38px; height: 38px; border-radius: 50%; background: rgba(255,255,255,0.08); display: flex; align-items: center; justify-content: center; transition: var(--transition); }
.social-row a:hover { background: var(--orange-500); transform: translateY(-3px); }
.social-row svg { width: 17px; height: 17px; }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; padding: 26px 0; font-size: 0.85rem; flex-wrap: wrap; gap: 10px; }
.footer-bottom a:hover { color: var(--orange-400); }
.rating-chip { display: flex; align-items: center; gap: 8px; background: rgba(255,255,255,0.08); padding: 8px 14px; border-radius: var(--radius-pill); font-size: 0.85rem; }
.rating-chip svg { width: 15px; height: 15px; color: var(--orange-400); }

/* ---------- Floating buttons ---------- */
.floating-actions { position: fixed; right: 22px; bottom: 26px; display: flex; flex-direction: column; gap: 14px; z-index: 900; }
.fab {
  width: 56px; height: 56px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-lg); transition: transform var(--transition);
}
.fab:hover { transform: scale(1.1); }
.fab svg { width: 26px; height: 26px; }
.fab-whatsapp { background: #25D366; color: #fff; }
.fab-call { background: var(--orange-500); color: var(--teal-900); }
.fab-top {
  width: 46px; height: 46px; border-radius: 50%; background: #fff; border: 1px solid var(--gray-200); color: var(--teal-700);
  box-shadow: var(--shadow-md); opacity: 0; pointer-events: none; transition: var(--transition);
}
.fab-top.show { opacity: 1; pointer-events: auto; }
.fab-top svg { width: 20px; height: 20px; }
.pulse { animation: pulse 2.2s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(37,211,102,0.5); } 70% { box-shadow: 0 0 0 14px rgba(37,211,102,0); } 100% { box-shadow: 0 0 0 0 rgba(37,211,102,0); } }

/* ---------- Emergency strip ---------- */
.emergency-strip { background: var(--orange-500); color: var(--teal-900); }
.emergency-strip .container { display: flex; align-items: center; justify-content: center; gap: 10px; padding: 10px 24px; font-weight: 600; font-size: 0.9rem; text-align: center; flex-wrap: wrap; }
.emergency-strip a { text-decoration: underline; }

/* ---------- Breadcrumb ---------- */
.breadcrumb { display: flex; align-items: center; gap: 8px; font-size: 0.85rem; color: var(--gray-500); margin-bottom: 18px; flex-wrap: wrap; }
.breadcrumb a { color: var(--teal-700); font-weight: 600; }
.breadcrumb svg { width: 13px; height: 13px; }

/* ---------- Page hero (interior pages) ---------- */
.page-hero { background: linear-gradient(160deg, var(--teal-800), var(--teal-600)); color: #fff; padding: 56px 0 68px; position: relative; overflow: hidden; }
.page-hero::after { content:''; position:absolute; width:400px; height:400px; border-radius:50%; background: radial-gradient(circle, rgba(242,169,59,0.28), transparent 70%); bottom:-180px; left:-100px; }
.page-hero h1 { color: #fff; }
.page-hero p { color: rgba(255,255,255,0.85); max-width: 640px; margin-top: 14px; font-size: 1.05rem; }
.page-hero .breadcrumb, .page-hero .breadcrumb a { color: rgba(255,255,255,0.75); }
.page-hero .breadcrumb a:hover { color: var(--orange-400); }

/* ---------- FAQ Accordion ---------- */
.accordion-item { border-bottom: 1px solid var(--gray-200); }
.accordion-item:first-child { border-top: 1px solid var(--gray-200); }
.accordion-trigger {
  width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 22px 4px; text-align: left; font-family: var(--font-heading); font-weight: 600; font-size: 1.02rem; color: var(--teal-900);
}
.accordion-trigger .plus { width: 30px; height: 30px; border-radius: 50%; background: var(--teal-50); color: var(--teal-700); display: flex; align-items: center; justify-content: center; flex-shrink: 0; transition: var(--transition); }
.accordion-trigger .plus svg { width: 15px; height: 15px; transition: transform var(--transition); }
.accordion-item.open .accordion-trigger .plus { background: var(--teal-600); color: #fff; }
.accordion-item.open .accordion-trigger .plus svg { transform: rotate(45deg); }
.accordion-panel { max-height: 0; overflow: hidden; transition: max-height var(--transition); }
.accordion-panel-inner { padding: 0 4px 24px; }
.accordion-panel-inner p { font-size: 0.96rem; }

/* ---------- Forms ---------- */
.form-card { background: #fff; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); padding: 40px; border: 1px solid var(--gray-200); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-bottom: 18px; }
.form-group { display: flex; flex-direction: column; gap: 7px; margin-bottom: 18px; }
.form-group label { font-size: 0.87rem; font-weight: 600; color: var(--teal-900); }
.form-group input, .form-group select, .form-group textarea {
  padding: 13px 16px; border: 1.5px solid var(--gray-200); border-radius: var(--radius-sm); background: var(--gray-50);
  transition: var(--transition); color: var(--gray-800);
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { border-color: var(--teal-500); background: #fff; outline: none; box-shadow: 0 0 0 4px var(--teal-100); }
.form-group .error-msg { color: #C0392B; font-size: 0.78rem; display: none; }
.form-group.invalid input, .form-group.invalid select, .form-group.invalid textarea { border-color: #C0392B; }
.form-group.invalid .error-msg { display: block; }
.form-note { font-size: 0.82rem; color: var(--gray-500); margin-top: 10px; }
.form-success { display: none; text-align: center; padding: 40px 20px; }
.form-success.show { display: block; }
.form-success svg { width: 56px; height: 56px; color: var(--teal-600); margin: 0 auto 16px; }

/* ---------- Gallery ---------- */
.filter-bar { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 34px; }
.filter-btn { padding: 10px 20px; border-radius: var(--radius-pill); background: var(--gray-100); font-weight: 600; font-size: 0.88rem; color: var(--gray-700); transition: var(--transition); }
.filter-btn.active, .filter-btn:hover { background: var(--teal-600); color: #fff; }
.masonry { columns: 4 220px; column-gap: 20px; }
.masonry-item { break-inside: avoid; margin-bottom: 20px; border-radius: var(--radius-md); overflow: hidden; cursor: pointer; position: relative; box-shadow: var(--shadow-sm); }
.masonry-item img { width: 100%; transition: transform 0.5s ease; }
.masonry-item:hover img { transform: scale(1.06); }
.masonry-item .cap { position: absolute; inset: auto 0 0 0; background: linear-gradient(0deg, rgba(6,55,58,0.85), transparent); color: #fff; padding: 30px 16px 14px; font-size: 0.85rem; font-weight: 600; opacity: 0; transition: var(--transition); }
.masonry-item:hover .cap { opacity: 1; }

.lightbox { position: fixed; inset: 0; background: rgba(6,20,22,0.92); z-index: 2000; display: none; align-items: center; justify-content: center; padding: 40px; }
.lightbox.open { display: flex; }
.lightbox img { max-width: 90vw; max-height: 85vh; border-radius: var(--radius-md); }
.lightbox-close { position: absolute; top: 26px; right: 30px; width: 46px; height: 46px; border-radius: 50%; background: rgba(255,255,255,0.12); color: #fff; display: flex; align-items: center; justify-content: center; }
.lightbox-close svg { width: 22px; height: 22px; }

/* ---------- Before/After slider ---------- */
.ba-slider { position: relative; border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 16/9; max-width: 720px; margin: 0 auto; box-shadow: var(--shadow-lg); }
.ba-slider .ba-after { position: absolute; inset: 0; }
.ba-slider .ba-before { position: absolute; inset: 0; overflow: hidden; width: 50%; }
.ba-slider .ba-before > div { width: 200%; height: 100%; position: relative; }
.ba-slider img, .ba-slider .ba-before > div { width: 100%; height: 100%; object-fit: cover; }
.ba-handle { position: absolute; top: 0; bottom: 0; left: 50%; width: 4px; background: #fff; cursor: ew-resize; transform: translateX(-50%); }
.ba-handle::after {
  content: '⇔'; position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%); width: 44px; height: 44px; border-radius: 50%;
  background: #fff; color: var(--teal-700); display: flex; align-items: center; justify-content: center; font-size: 1.1rem; box-shadow: var(--shadow-md);
}
.ba-label { position: absolute; top: 16px; padding: 6px 14px; background: rgba(6,55,58,0.75); color: #fff; border-radius: var(--radius-pill); font-size: 0.78rem; font-weight: 600; }
.ba-label.left { left: 16px; } .ba-label.right { right: 16px; }

/* ---------- Timeline (recovery) ---------- */
.timeline { position: relative; padding-left: 40px; }
.timeline::before { content: ''; position: absolute; left: 12px; top: 6px; bottom: 6px; width: 2px; background: var(--gray-200); }
.timeline-item { position: relative; padding-bottom: 34px; }
.timeline-item::before { content: ''; position: absolute; left: -34px; top: 4px; width: 14px; height: 14px; border-radius: 50%; background: var(--orange-500); border: 3px solid #fff; box-shadow: 0 0 0 2px var(--orange-500); }
.timeline-item h4 { color: var(--teal-800); margin-bottom: 6px; }
.timeline-item p { font-size: 0.94rem; }

/* ---------- Comparison table ---------- */
.compare-table { width: 100%; border-collapse: separate; border-spacing: 0; border-radius: var(--radius-md); overflow: hidden; box-shadow: var(--shadow-sm); }
.compare-table th, .compare-table td { padding: 16px 20px; text-align: left; font-size: 0.94rem; border-bottom: 1px solid var(--gray-200); }
.compare-table th { background: var(--teal-800); color: #fff; font-family: var(--font-heading); }
.compare-table td:first-child { font-weight: 600; color: var(--teal-900); }
.compare-table tr:nth-child(even) td { background: var(--gray-50); }
.compare-table td.robotic { color: var(--teal-700); font-weight: 600; }

/* ---------- Blog ---------- */
.blog-card .meta-row { display: flex; gap: 14px; font-size: 0.8rem; color: var(--gray-500); margin: 14px 0 8px; }
.blog-card .meta-row span { display: flex; gap: 5px; align-items: center; }
.blog-card .meta-row svg { width: 13px; height: 13px; }
.blog-card .cat { color: var(--orange-600); font-weight: 700; font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.04em; }
.prose { max-width: 760px; margin: 0 auto; font-size: 1.05rem; }
.prose h2 { margin-top: 40px; margin-bottom: 16px; }
.prose h3 { margin-top: 28px; margin-bottom: 12px; color: var(--teal-800); }
.prose p { margin-bottom: 18px; }
.prose ul { margin: 0 0 18px 20px; list-style: disc; }
.prose li { margin-bottom: 8px; color: var(--gray-700); }
.prose blockquote { border-left: 4px solid var(--orange-500); padding: 6px 24px; font-style: italic; color: var(--teal-800); margin: 24px 0; }

/* ---------- Map ---------- */
.map-frame { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-md); border: 1px solid var(--gray-200); }
.map-frame iframe { width: 100%; height: 420px; border: 0; display: block; }

/* ---------- Loader ---------- */
#page-loader { position: fixed; inset: 0; background: var(--teal-900); z-index: 5000; display: flex; align-items: center; justify-content: center; transition: opacity .5s ease, visibility .5s ease; }
#page-loader.hide { opacity: 0; visibility: hidden; }
.loader-logo { display: flex; flex-direction: column; align-items: center; gap: 16px; }
.loader-ring { width: 56px; height: 56px; border: 3px solid rgba(255,255,255,0.2); border-top-color: var(--orange-500); border-radius: 50%; animation: spin 0.9s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Scroll reveal ---------- */
[data-reveal] { opacity: 0; transform: translateY(28px); transition: opacity .7s ease, transform .7s ease; }
[data-reveal="left"] { transform: translateX(-38px); }
[data-reveal="right"] { transform: translateX(38px); }
[data-reveal].in-view { opacity: 1; transform: translate(0,0); }

/* ---------- Utilities ---------- */
.text-center { text-align: center; }
.mt-40 { margin-top: 40px; }
.mb-30 { margin-bottom: 30px; }
.badge-dot { display:inline-block; width:8px; height:8px; border-radius:50%; background:#2ECC71; margin-right:6px; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { order: -1; }
  .masonry { columns: 3 200px; }
}
@media (max-width: 860px) {
  .brand { margin-right: 0; }
  .topbar-links { display: none; }
  .nav-links { position: fixed; top: 0; right: -100%; width: min(340px, 86%); height: 100vh; background: #fff;
    flex-direction: column; align-items: flex-start; padding: 100px 30px 30px; gap: 22px; box-shadow: -10px 0 40px rgba(0,0,0,0.12);
    transition: right var(--transition); z-index: 998; }
  .nav-links.open { right: 0; }
  .nav-links a { font-size: 1.05rem; }
  .nav-toggle { display: flex; }
  .nav-actions .btn-outline { display: none; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .grid-2 { grid-template-columns: 1fr; }
  .masonry { columns: 2 180px; }
  .dropdown {
    width: 100%;
  }
  .dropdown-menu {
    position: static;
    transform: none;
    box-shadow: none;
    border: none;
    border-left: 2px solid var(--teal-100);
    padding: 6px 0 6px 14px;
    margin-top: 6px;
    min-width: 100%;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    background: transparent;
    display: block;
  }
  .dropdown-menu a {
    padding: 6px 0;
    font-size: 0.98rem;
  }
  .dropdown-caret {
    display: none;
  }
}
@media (max-width: 640px) {
  .nav-actions .btn-primary { display: none; }
  .section { padding: 60px 0; }
  .grid-4, .grid-3 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr 1fr; gap: 26px 14px; }
  .stats-bar { margin-top: -50px; padding: 30px 18px; }
  .fab { width: 50px; height: 50px; }
  .fab svg { width: 22px; height: 22px; }
  .masonry { columns: 1; }
  .form-card { padding: 24px; }
}

/* ---------- Print ---------- */
@media print { .site-header, .site-footer, .floating-actions, .emergency-strip { display: none; } }
