/* =========================================
   MEDICONDREA — Clinical Editorial Design
   ========================================= */

:root {
  --navy:          #0b2440;
  --navy-deep:     #060f1e;
  --teal:          #0d9488;
  --teal-dark:     #0a7a6f;
  --teal-light:    #e6f4f3;
  --cream:         #f7f4ef;
  --cream-dark:    #ede9e2;
  --white:         #ffffff;
  --text:          #141d2b;
  --text-muted:    #617080;
  --border:        #ddd8d0;
  --border-light:  #e8e4de;
  --heading:       'Playfair Display', Georgia, 'Times New Roman', serif;
  --body:          'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  --nav-height:    72px;
  --t:             0.28s cubic-bezier(0.4, 0, 0.2, 1);
  --shadow-sm:     0 1px 4px rgba(11,36,64,0.07);
  --shadow-md:     0 4px 24px rgba(11,36,64,0.10), 0 1px 6px rgba(11,36,64,0.06);
  --shadow-lg:     0 12px 48px rgba(11,36,64,0.13), 0 4px 16px rgba(11,36,64,0.07);
  --shadow-xl:     0 24px 72px rgba(11,36,64,0.18);
  --r:             10px;
  --r-sm:          6px;
}

/* ---- Reset ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--body);
  color: var(--text);
  background: var(--cream);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img { display: block; max-width: 100%; }
a  { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* ---- Container ---- */
.container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 32px;
}

/* ---- Typography ---- */
.section-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--body);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 16px;
}
.section-label::before {
  content: '';
  display: inline-block;
  width: 20px;
  height: 2px;
  background: var(--teal);
  flex-shrink: 0;
}

.section-title {
  font-family: var(--heading);
  font-size: clamp(1.9rem, 3.2vw, 2.7rem);
  font-weight: 700;
  color: var(--text);
  line-height: 1.18;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
}
.section-title em {
  font-style: italic;
  color: var(--teal);
}

.section-sub {
  font-size: 1.02rem;
  color: var(--text-muted);
  max-width: 520px;
  line-height: 1.80;
}

.section-header { margin-bottom: 40px; }

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 13px 28px;
  font-family: var(--body);
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  cursor: pointer;
  border: none;
  outline: none;
  border-radius: var(--r);
  transition: transform var(--t), box-shadow var(--t), background var(--t), color var(--t);
}
.btn svg { width: 15px; height: 15px; flex-shrink: 0; }

.btn-primary {
  background: var(--navy);
  color: #fff;
  box-shadow: 0 2px 12px rgba(11,36,64,0.28);
}
.btn-primary:hover { background: var(--navy-deep); transform: translateY(-2px); box-shadow: 0 6px 24px rgba(11,36,64,0.36); }

.btn-teal {
  background: var(--teal);
  color: #fff;
  box-shadow: 0 2px 12px rgba(13,148,136,0.28);
}
.btn-teal:hover { background: var(--teal-dark); transform: translateY(-2px); box-shadow: 0 6px 24px rgba(13,148,136,0.36); }

.btn-ghost {
  background: transparent;
  color: rgba(255,255,255,0.80);
  border: 1px solid rgba(255,255,255,0.25);
}
.btn-ghost:hover { background: rgba(255,255,255,0.08); color: #fff; border-color: rgba(255,255,255,0.50); transform: translateY(-1px); }

/* ---- Topbar ---- */
.topbar {
  background: var(--navy);
  color: rgba(255,255,255,0.72);
  font-size: 0.78rem;
  font-family: var(--body);
  padding: 8px 0;
  letter-spacing: 0.01em;
}
.topbar .container { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px; }
.topbar-left { display: flex; align-items: center; gap: 8px; font-weight: 500; }
.topbar-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--teal); flex-shrink: 0; }
.topbar-right { display: flex; gap: 20px; flex-wrap: wrap; }
.topbar-item { display: flex; align-items: center; gap: 6px; }
.topbar-item a { color: rgba(255,255,255,0.72); transition: color var(--t); }
.topbar-item a:hover { color: rgba(255,255,255,1); }
.topbar-item svg { width: 12px; height: 12px; flex-shrink: 0; }

/* ---- Sticky site header wrapper ---- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--t);
}
.site-header.scrolled { box-shadow: var(--shadow-md); }

/* ---- Navbar ---- */
.navbar {
  background: rgba(247,244,239,0.96);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  height: var(--nav-height);
  transition: background var(--t);
}
.site-header.scrolled .navbar { background: rgba(247,244,239,0.99); }
.navbar .container { height: 100%; display: flex; align-items: center; justify-content: space-between; }

.navbar-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}
.brand-icon {
  width: 38px; height: 38px;
  background: var(--navy);
  border-radius: var(--r);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.brand-icon svg { width: 20px; height: 20px; color: rgba(255,255,255,0.9); }
.brand-name {
  display: block;
  font-family: var(--heading);
  font-size: 1.30rem;
  font-weight: 700;
  color: var(--navy);
  letter-spacing: -0.02em;
  line-height: 1.2;
}
.brand-sub {
  display: block;
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
  line-height: 1;
  margin-top: 2px;
}

.nav-links { display: flex; align-items: center; gap: 2px; }
.nav-links a {
  padding: 7px 14px;
  border-radius: var(--r-sm);
  font-size: 0.86rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: color var(--t), background var(--t);
  position: relative;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 4px; left: 14px; right: 14px;
  height: 2px;
  background: var(--teal);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform var(--t);
  border-radius: 2px;
}
.nav-links a:hover { color: var(--navy); }
.nav-links a:hover::after,
.nav-links a.active::after { transform: scaleX(1); }
.nav-links a.active { color: var(--navy); }

.nav-cta {
  margin-left: 10px;
  padding: 10px 22px !important;
  background: var(--navy);
  color: #fff !important;
  border-radius: var(--r) !important;
  font-weight: 700 !important;
  box-shadow: 0 2px 10px rgba(11,36,64,0.22);
  transition: background var(--t), transform var(--t), box-shadow var(--t) !important;
}
.nav-cta::after { display: none !important; }
.nav-cta:hover { background: var(--navy-deep) !important; transform: translateY(-1px) !important; box-shadow: 0 4px 18px rgba(11,36,64,0.30) !important; }

.menu-toggle {
  display: none;
  background: none; border: none; cursor: pointer;
  padding: 6px; color: var(--text);
  border-radius: var(--r-sm);
  transition: background var(--t);
}
.menu-toggle:hover { background: var(--cream-dark); }
.menu-toggle svg { width: 22px; height: 22px; }

/* ---- Sections ---- */
.section { padding: 112px 0; position: relative; overflow: hidden; }
.section-white { background: var(--white); }
.section-cream { background: var(--cream); }

/* Section watermark numbers */
.section-watermark {
  position: absolute;
  top: -20px;
  right: -20px;
  font-family: var(--heading);
  font-size: clamp(160px, 20vw, 260px);
  font-weight: 800;
  color: var(--navy);
  opacity: 0.028;
  line-height: 1;
  user-select: none;
  pointer-events: none;
  letter-spacing: -0.05em;
}

/* ---- Hero ---- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--navy-deep);
}
.hero-bg {
  position: absolute; inset: 0;
  background-image: url('../images/slider1.jpg');
  background-size: cover; background-position: center;
  opacity: 0.12;
}
.hero-bg::after {
  content: '';
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.035) 1px, transparent 1px);
  background-size: 44px 44px;
}
.hero-overlay {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 70% 80% at 10% 50%, rgba(13,148,136,0.18) 0%, transparent 65%),
    linear-gradient(135deg, rgba(6,15,30,0.98) 0%, rgba(11,36,64,0.88) 60%, rgba(11,36,64,0.70) 100%);
}
/* Large decorative monogram */
.hero-monogram {
  position: absolute;
  right: -60px;
  bottom: -80px;
  font-family: var(--heading);
  font-size: clamp(280px, 38vw, 560px);
  font-weight: 800;
  font-style: italic;
  color: rgba(255,255,255,0.028);
  line-height: 1;
  user-select: none;
  pointer-events: none;
  z-index: 0;
}
.hero .container { position: relative; z-index: 1; padding-top: 80px; padding-bottom: 80px; }
.hero-content { max-width: 680px; }

.hero-badge {
  display: inline-flex;
  align-items: center; gap: 8px;
  background: rgba(13,148,136,0.15);
  border: 1px solid rgba(13,148,136,0.35);
  color: #5eead4;
  font-size: 0.75rem; font-weight: 700;
  letter-spacing: 0.12em; text-transform: uppercase;
  padding: 7px 16px; border-radius: 4px;
  margin-bottom: 32px;
  backdrop-filter: blur(8px);
}
.hero-badge svg { width: 12px; height: 12px; }

.hero h1 {
  font-family: var(--heading);
  font-size: clamp(2.6rem, 6vw, 4.4rem);
  font-weight: 700;
  color: #fff;
  line-height: 1.06;
  margin-bottom: 24px;
  letter-spacing: -0.03em;
}
.hero h1 em {
  font-style: italic;
  color: #5eead4;
}
.hero > .container > .hero-content > p {
  font-size: 1.08rem;
  color: rgba(255,255,255,0.65);
  margin-bottom: 40px;
  line-height: 1.78;
  max-width: 500px;
}
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-stats {
  display: flex; gap: 48px;
  margin-top: 56px; padding-top: 40px;
  border-top: 1px solid rgba(255,255,255,0.08);
}
.hero-stat strong {
  display: block;
  font-family: var(--heading);
  font-size: 2rem; font-weight: 700;
  color: #fff; letter-spacing: -0.03em;
}
.hero-stat span {
  font-size: 0.76rem; font-weight: 500;
  color: rgba(255,255,255,0.45);
  letter-spacing: 0.06em; text-transform: uppercase;
  margin-top: 2px; display: block;
}

/* ---- About ---- */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: start;
}
.about-text p {
  font-size: 0.97rem;
  color: var(--text-muted);
  margin-bottom: 16px;
  line-height: 1.82;
}
.about-text p strong { color: var(--text); font-weight: 600; }

.equipment-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}
.equipment-card-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 22px 28px;
  border-bottom: 1px solid var(--border-light);
  background: var(--navy);
}
.equipment-card-header svg { width: 18px; height: 18px; color: rgba(255,255,255,0.7); flex-shrink: 0; }
.equipment-card-header h3 {
  font-family: var(--body);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.85);
}
.equipment-list { padding: 8px 0; }
.equipment-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 13px 28px;
  font-size: 0.875rem;
  color: var(--text-muted);
  font-weight: 500;
  border-bottom: 1px solid var(--border-light);
  transition: background var(--t), color var(--t), padding-left var(--t);
  cursor: default;
}
.equipment-item:last-child { border-bottom: none; }
.equipment-item:hover { background: var(--teal-light); color: var(--teal-dark); padding-left: 36px; }
.eq-num {
  font-family: var(--heading);
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--teal);
  min-width: 20px;
  opacity: 0.7;
}
.equipment-item:hover .eq-num { opacity: 1; }

/* ---- Certifications ---- */
.cert-intro {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: start;
  margin-bottom: 64px;
}
.cert-text p {
  font-size: 0.97rem;
  color: var(--text-muted);
  margin-bottom: 14px;
  line-height: 1.82;
}
.cert-text p strong { color: var(--text); font-weight: 600; }
.cert-highlight {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  background: var(--cream);
  border: 1px solid var(--border);
  border-left: 3px solid var(--teal);
  border-radius: 0 var(--r) var(--r) 0;
  padding: 18px 20px;
  margin-top: 24px;
}
.cert-highlight-icon {
  width: 32px; height: 32px;
  background: var(--teal-light);
  border-radius: var(--r-sm);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.cert-highlight-icon svg { width: 16px; height: 16px; color: var(--teal); }
.cert-highlight p { margin: 0; font-size: 0.875rem; color: var(--text-muted); line-height: 1.7; }
.cert-highlight p strong { color: var(--teal-dark); }

.cert-visual { display: flex; flex-direction: column; gap: 10px; }
.cert-badge-item {
  display: flex; align-items: center; gap: 16px;
  padding: 16px 20px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r);
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--t), transform var(--t), border-color var(--t);
}
.cert-badge-item:hover { box-shadow: var(--shadow-md); transform: translateX(5px); border-color: var(--teal); }
.cert-badge-icon {
  width: 40px; height: 40px;
  border-radius: var(--r-sm);
  background: var(--teal-light);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.cert-badge-icon svg { width: 18px; height: 18px; color: var(--teal); }
.cert-badge-item h4 { font-size: 0.875rem; font-weight: 700; color: var(--text); margin-bottom: 2px; }
.cert-badge-item p { font-size: 0.775rem; color: var(--text-muted); margin: 0; }

.cert-images {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-bottom: 40px;
}
.cert-images img {
  width: 100%;
  border-radius: var(--r);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--t), transform var(--t);
}
.cert-images img:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }

.cert-note {
  background: var(--navy);
  border-radius: var(--r);
  padding: 36px 40px;
  display: flex;
  align-items: flex-start;
  gap: 24px;
  position: relative;
  overflow: hidden;
}
.cert-note::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--teal), transparent);
}
.cert-note-icon {
  width: 48px; height: 48px;
  background: rgba(255,255,255,0.08);
  border-radius: var(--r-sm);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  border: 1px solid rgba(255,255,255,0.10);
}
.cert-note-icon svg { width: 24px; height: 24px; color: #5eead4; }
.cert-note p { margin: 0; font-size: 0.93rem; color: rgba(255,255,255,0.75); line-height: 1.80; }
.cert-note p strong { color: rgba(255,255,255,0.95); }

/* ---- Analyses ---- */
.analyses-header {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: end;
  margin-bottom: 48px;
}
.analyses-header .section-header { margin-bottom: 0; }
.analyses-header .section-sub { margin: 0; }

.analyses-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: 0;
}
.analysis-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 40px;
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--t), transform var(--t);
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}
.analysis-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 3px;
  background: var(--navy);
  transform-origin: left;
  transform: scaleX(0);
  transition: transform 0.4s cubic-bezier(0.4,0,0.2,1);
}
.analysis-card-alt::before { background: var(--teal); }
.analysis-card:hover { box-shadow: var(--shadow-xl); transform: translateY(-5px); }
.analysis-card:hover::before { transform: scaleX(1); }

.analysis-card-num {
  font-family: var(--heading);
  font-size: 3.5rem;
  font-weight: 700;
  font-style: italic;
  color: var(--navy);
  opacity: 0.06;
  line-height: 1;
  position: absolute;
  top: 20px; right: 24px;
  user-select: none;
}
.analysis-card-alt .analysis-card-num { color: var(--teal); }

.analysis-card-icon {
  width: 48px; height: 48px;
  border-radius: var(--r);
  background: var(--cream);
  border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 22px;
}
.analysis-card-icon svg { width: 22px; height: 22px; color: var(--navy); }
.analysis-card-alt .analysis-card-icon svg { color: var(--teal); }

.analysis-card h3 {
  font-family: var(--heading);
  font-size: 1.30rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 12px;
  letter-spacing: -0.02em;
}
.analysis-card p {
  font-size: 0.91rem;
  color: var(--text-muted);
  line-height: 1.78;
  margin-bottom: 28px;
  flex: 1;
}
.analysis-card .btn { align-self: flex-start; }

.analyses-categories { margin-top: 52px; text-align: center; }
.categories-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}
.categories-label::before,
.categories-label::after {
  content: '';
  flex: 1;
  max-width: 80px;
  height: 1px;
  background: var(--border);
}
.categories-tags { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; }
.tag {
  padding: 7px 16px;
  border-radius: var(--r-sm);
  background: var(--white);
  border: 1px solid var(--border);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-muted);
  transition: background var(--t), color var(--t), border-color var(--t), transform var(--t);
  letter-spacing: 0.01em;
}
.tag:hover { background: var(--teal-light); color: var(--teal-dark); border-color: var(--teal); transform: translateY(-2px); }

/* ---- Testimonials ---- */
.testimonials-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: center;
}
.testimonials-left .section-header { margin-bottom: 20px; }
.testimonials-left .section-sub { margin-bottom: 36px; }

.feedback-prompt {
  background: var(--cream);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 28px;
  box-shadow: var(--shadow-sm);
}
.feedback-prompt-inner {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  margin-bottom: 22px;
}
.feedback-icon {
  width: 40px; height: 40px;
  background: var(--navy);
  border-radius: var(--r-sm);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.feedback-icon svg { width: 18px; height: 18px; color: rgba(255,255,255,0.85); }
.feedback-prompt h3 {
  font-family: var(--heading);
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 6px;
  letter-spacing: -0.01em;
}
.feedback-prompt p { font-size: 0.875rem; color: var(--text-muted); line-height: 1.75; }

.testimonials-image-wrapper {
  position: relative;
  border-radius: var(--r);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
  min-height: 480px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--white);
  border: 1px solid var(--border);
}
.testimonials-image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* ---- Contact / Footer ---- */
.contact-section { background: var(--navy-deep); color: #fff; }
.contact-inner {
  padding: 80px 0 60px;
  position: relative;
  overflow: hidden;
}
.contact-inner::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.018) 1px, transparent 1px);
  background-size: 56px 56px;
  pointer-events: none;
}
.contact-inner .container { position: relative; z-index: 1; }
.contact-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 56px;
}
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}
.footer-brand .brand-icon { background: rgba(255,255,255,0.10); border: 1px solid rgba(255,255,255,0.12); }
.footer-brand .brand-name { color: #fff; }
.footer-brand .brand-sub { color: rgba(255,255,255,0.40); }
.contact-brand-col p { font-size: 0.875rem; color: rgba(255,255,255,0.55); line-height: 1.85; max-width: 280px; }

.contact-col h4 {
  font-size: 0.70rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.35);
  margin-bottom: 22px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255,255,255,0.07);
}
.contact-items { display: flex; flex-direction: column; gap: 14px; }
.contact-item { display: flex; align-items: flex-start; gap: 12px; font-size: 0.875rem; color: rgba(255,255,255,0.75); }
.contact-item svg { width: 14px; height: 14px; color: var(--teal); flex-shrink: 0; margin-top: 3px; }
.contact-item a { color: rgba(255,255,255,0.75); transition: color var(--t); }
.contact-item a:hover { color: #fff; }

.hours-table { display: flex; flex-direction: column; gap: 6px; }
.hours-row {
  display: flex; justify-content: space-between; gap: 16px;
  font-size: 0.875rem; color: rgba(255,255,255,0.65);
  padding: 9px 0;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.hours-row:last-child { border-bottom: none; }
.hours-row span:last-child { font-weight: 700; color: rgba(255,255,255,0.90); }
.hours-closed { color: #f87171 !important; }

.map-section { }
.map-section iframe { display: block; width: 100%; height: 360px; border: none; filter: grayscale(25%) brightness(0.88) contrast(1.05); }

.footer-bottom {
  background: rgba(0,0,0,0.35);
  padding: 18px 0;
  border-top: 1px solid rgba(255,255,255,0.06);
}
.footer-bottom .container { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px; }
.footer-bottom p { font-size: 0.78rem; color: rgba(255,255,255,0.35); }
.back-top {
  width: 34px; height: 34px;
  border-radius: var(--r-sm);
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.08);
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,0.45);
  transition: background var(--t), color var(--t), transform var(--t);
}
.back-top:hover { background: var(--teal); color: #fff; border-color: transparent; transform: translateY(-2px); }
.back-top svg { width: 14px; height: 14px; }

/* ---- Tablet ---- */
@media (max-width: 1024px) {
  .about-grid,
  .cert-intro,
  .testimonials-layout { grid-template-columns: 1fr; gap: 48px; }
  .analyses-header { grid-template-columns: 1fr; gap: 16px; }
  .analyses-grid { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 1fr 1fr; gap: 40px; }
  .contact-brand-col { grid-column: 1 / -1; }
  .hero h1 { font-size: 3rem; }
}

/* ---- Mobile ---- */
@media (max-width: 768px) {
  .menu-toggle { display: flex; }
  .nav-links {
    position: fixed;
    inset: 0; top: var(--nav-height);
    background: rgba(247,244,239,0.98);
    backdrop-filter: blur(24px);
    flex-direction: column; align-items: flex-start;
    padding: 28px 24px; gap: 4px;
    transform: translateX(100%);
    transition: transform 0.32s cubic-bezier(0.4,0,0.2,1);
    box-shadow: var(--shadow-lg);
    z-index: 99;
    border-top: 1px solid var(--border);
  }
  .nav-links.open { transform: translateX(0); }
  .nav-links a { width: 100%; padding: 13px 16px !important; font-size: 1rem; border-radius: var(--r) !important; }
  .nav-links a::after { display: none; }
  .nav-cta { width: 100%; justify-content: center; margin-top: 8px; margin-left: 0; }

  .hero { min-height: 92vh; }
  .hero-stats { gap: 28px; flex-wrap: wrap; }
  .hero-actions { flex-direction: column; }

  .section { padding: 80px 0; }
  .section-watermark { font-size: 140px; }

  .about-grid, .cert-intro, .analyses-grid,
  .cert-images, .testimonials-layout,
  .contact-grid { grid-template-columns: 1fr; gap: 28px; }

  .analyses-header { grid-template-columns: 1fr; }
  .topbar-left { display: none; }
  .cert-note { flex-direction: column; }
  .map-section iframe { height: 260px; }
  .container { padding: 0 20px; }
}

@media (max-width: 480px) {
  .hero-stat strong { font-size: 1.7rem; }
  .hero h1 { font-size: 2.2rem; }
  .section-title { font-size: 1.8rem; }
  .contact-grid { gap: 28px; }
  .analysis-card { padding: 28px; }
}

/* ---- Animations ---- */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(32px); }
  to   { opacity: 1; transform: translateY(0); }
}

.fade-up { animation: fadeUp 0.72s cubic-bezier(0.22,1,0.36,1) forwards; }
.fade-up-d1 { animation-delay: 0.08s; opacity: 0; }
.fade-up-d2 { animation-delay: 0.22s; opacity: 0; }
.fade-up-d3 { animation-delay: 0.38s; opacity: 0; }
.fade-up-d4 { animation-delay: 0.54s; opacity: 0; }

.scroll-hidden {
  opacity: 0;
  transform: translateY(36px);
  transition: opacity 0.72s cubic-bezier(0.22,1,0.36,1),
              transform 0.72s cubic-bezier(0.22,1,0.36,1);
}
.scroll-hidden.in-view { opacity: 1; transform: translateY(0); }

.cert-text.scroll-hidden,
.testimonials-left.scroll-hidden,
.about-text.scroll-hidden { transform: translateX(-36px); }
.cert-text.scroll-hidden.in-view,
.testimonials-left.scroll-hidden.in-view,
.about-text.scroll-hidden.in-view { transform: translateX(0); }

.cert-visual.scroll-hidden,
.testimonials-image-wrapper.scroll-hidden,
.equipment-card.scroll-hidden { transform: translateX(36px); }
.cert-visual.scroll-hidden.in-view,
.testimonials-image-wrapper.scroll-hidden.in-view,
.equipment-card.scroll-hidden.in-view { transform: translateX(0); }

.analysis-card.scroll-hidden { transform: scale(0.96) translateY(20px); }
.analysis-card.scroll-hidden.in-view { transform: scale(1) translateY(0); }

/* Focus-in reveal for founding year */
@keyframes focusIn {
  from { opacity: 0; filter: blur(10px); letter-spacing: 0.15em; }
  to   { opacity: 1; filter: blur(0);    letter-spacing: -0.03em; }
}
.stat-focus {
  animation: focusIn 1s cubic-bezier(0.22,1,0.36,1) both;
  animation-delay: 0.7s;
  opacity: 0;
}

/* Page load */
body { opacity: 0; transition: opacity 0.38s ease; }
body.loaded { opacity: 1; }
