:root {
  --c-navy: #07131e;
  --c-navy-light: #122434;
  --c-teal: #0d736b;
  --c-teal-hover: #0a5852;
  --c-teal-subtle: #f0f8f7;
  --c-text-main: #141c24;
  --c-text-muted: #536270;
  --c-bg: #f8fafb;
  --c-surface: #ffffff;
  --c-border: #e6ebf0;
  --c-border-focus: #0d736b;
  --c-danger-bg: #fff5f5;
  --c-danger-text: #9b1c1c;

  --font-stack: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Inter", "Helvetica Neue", Arial, sans-serif;
  --container: 1200px;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 24px;
  --shadow-subtle: 0 4px 20px -2px rgba(7, 19, 30, 0.05);
  --shadow-hover: 0 12px 30px -4px rgba(7, 19, 30, 0.09);
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-family: var(--font-stack);
  background-color: var(--c-bg);
  color: var(--c-text-main);
  line-height: 1.6;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  padding-bottom: calc(74px + env(safe-area-inset-bottom));
}

@media (min-width: 992px) {
  body { padding-bottom: 0; }
}

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

/* Typography */
h1, h2, h3, h4 {
  color: var(--c-navy);
  letter-spacing: -0.03em;
  font-weight: 700;
  line-height: 1.15;
}

h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.65rem, 3.5vw, 2.5rem); margin-bottom: 1rem; }
h3 { font-size: clamp(1.2rem, 2vw, 1.45rem); margin-bottom: 0.5rem; }

p {
  color: var(--c-text-muted);
  font-size: clamp(0.98rem, 1.4vw, 1.08rem);
  font-weight: 400;
  line-height: 1.65;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--c-border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.brand {
  display: flex;
  flex-direction: column;
  text-decoration: none;
}

.brand-name {
  font-size: 1.4rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: var(--c-navy);
}

.brand-sub {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--c-teal);
}

.nav-desktop {
  display: none;
  align-items: center;
  gap: 32px;
}

.nav-item {
  color: var(--c-navy-light);
  font-size: 0.94rem;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.2s var(--ease);
}

.nav-item:hover {
  color: var(--c-teal);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 50px;
  padding: 12px 26px;
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.22s var(--ease);
  border: 1px solid transparent;
}

.btn-primary {
  background-color: var(--c-teal);
  color: #ffffff;
}

.btn-primary:hover {
  background-color: var(--c-teal-hover);
  transform: translateY(-1px);
}

.btn-secondary {
  background-color: transparent;
  color: var(--c-navy);
  border-color: var(--c-border);
}

.btn-secondary:hover {
  background-color: #f0f4f8;
}

/* Hero Section */
.hero {
  padding: 44px 0 60px;
  background: radial-gradient(circle at top right, rgba(13, 115, 107, 0.04) 0%, transparent 60%);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  align-items: center;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--c-teal);
  background: var(--c-teal-subtle);
  padding: 6px 14px;
  border-radius: 40px;
  width: fit-content;
  margin-bottom: 16px;
}

.hero-doc {
  border-left: 3px solid var(--c-teal);
  padding-left: 14px;
  margin: 18px 0 24px;
}

.hero-doc-name {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--c-navy);
  display: block;
}

.hero-doc-title {
  font-size: 0.92rem;
  color: var(--c-text-muted);
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-portrait-wrap {
  width: 100%;
  max-width: 440px;
  margin: 0 auto;
}

.portrait-frame {
  width: 100%;
  aspect-ratio: 4 / 5;
  background: #eaeff4;
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: relative;
  box-shadow: var(--shadow-subtle);
}

.portrait-frame img, .portrait-frame svg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Trust Metric Bar */
.trust-strip {
  background: var(--c-surface);
  border-top: 1px solid var(--c-border);
  border-bottom: 1px solid var(--c-border);
  padding: 30px 0;
}

.trust-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.trust-cell {
  display: flex;
  flex-direction: column;
}

.trust-cell-head {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--c-teal);
  margin-bottom: 4px;
}

.trust-cell-val {
  font-size: 1.12rem;
  font-weight: 700;
  color: var(--c-navy);
}

/* Generic Section Styles */
.section {
  padding: 80px 0;
}

.section-white {
  background: #ffffff;
}

.section-kicker {
  display: block;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--c-teal);
  margin-bottom: 8px;
}

.section-header {
  max-width: 760px;
  margin-bottom: 48px;
}

/* Cards & Grid */
.grid-2 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

.grid-3 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

.card {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-md);
  padding: 32px;
  box-shadow: var(--shadow-subtle);
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
}

.card-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 20px;
  font-size: 0.94rem;
  font-weight: 600;
  color: var(--c-teal);
  text-decoration: none;
}

.card-link:hover {
  text-decoration: underline;
}

/* Inguinal Focal Block */
.inguinal-highlight {
  background: linear-gradient(135deg, #ffffff 0%, var(--c-teal-subtle) 100%);
  border: 1px solid rgba(13, 115, 107, 0.15);
  border-radius: var(--radius-lg);
  padding: clamp(32px, 5vw, 56px);
  box-shadow: var(--shadow-subtle);
}

/* Video Facade (Zero-weight on initial load) */
.video-box {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-lg);
  background-color: var(--c-navy);
  overflow: hidden;
  cursor: pointer;
  box-shadow: var(--shadow-hover);
}

.video-thumb-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.85;
  transition: opacity 0.3s;
}

.video-box:hover .video-thumb-img {
  opacity: 1;
}

.video-play-disc {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 76px;
  height: 76px;
  background: var(--c-teal);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  border: none;
  cursor: pointer;
  box-shadow: 0 10px 25px rgba(0,0,0,0.3);
  transition: transform 0.2s var(--ease), background-color 0.2s var(--ease);
}

.video-box:hover .video-play-disc {
  transform: translate(-50%, -50%) scale(1.08);
  background: var(--c-teal-hover);
}

/* Timeline */
.timeline-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.timeline-card {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-sm);
  padding: 24px;
  display: flex;
  gap: 20px;
}

.timeline-index {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--c-teal);
  line-height: 1;
}

/* Medical Alert */
.alert-urgent {
  background: var(--c-danger-bg);
  border-left: 4px solid var(--c-danger-text);
  padding: 24px;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin-top: 32px;
}

.alert-urgent p {
  color: var(--c-danger-text);
  font-weight: 500;
}

/* FAQ Accordion */
.faq-wrap {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-node {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.faq-trigger {
  width: 100%;
  padding: 22px 24px;
  text-align: left;
  background: none;
  border: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 1.08rem;
  font-weight: 600;
  color: var(--c-navy);
  cursor: pointer;
  gap: 16px;
}

.faq-trigger svg {
  transition: transform 0.25s var(--ease);
  flex-shrink: 0;
}

.faq-panel {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s var(--ease);
  padding: 0 24px;
}

.faq-content {
  padding-bottom: 24px;
}

.faq-node.is-open .faq-panel {
  max-height: 500px;
}

.faq-node.is-open .faq-trigger svg {
  transform: rotate(180deg);
}

/* Forms */
.form-input {
  width: 100%;
  height: 50px;
  padding: 0 16px;
  border: 1px solid var(--c-border);
  border-radius: var(--radius-sm);
  font-size: 1rem;
  font-family: inherit;
  margin-bottom: 16px;
  background: #fff;
  transition: border-color 0.2s;
}

.form-input:focus {
  outline: none;
  border-color: var(--c-border-focus);
}

/* Mobile Fixed Action Bar */
.mobile-action-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 999;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid var(--c-border);
  display: grid;
  grid-template-columns: 1fr 1fr;
  padding: 8px 12px calc(8px + env(safe-area-inset-bottom));
  gap: 8px;
}

.mobile-action-bar .btn {
  min-height: 46px;
  font-size: 0.9rem;
  padding: 8px;
}

/* Footer */
.site-footer {
  background: var(--c-navy);
  color: #94a3b8;
  padding: 64px 0 32px;
  font-size: 0.92rem;
}

.footer-cols {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  margin-bottom: 48px;
}

.footer-col-title {
  color: #fff;
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 16px;
}

.footer-nav {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-nav a {
  color: #94a3b8;
  text-decoration: none;
  transition: color 0.2s;
}

.footer-nav a:hover {
  color: #fff;
}

.footer-bottom-row {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 32px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.lang-switch {
  display: inline-flex;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-sm);
  padding: 4px;
}

.lang-switch-item {
  padding: 6px 14px;
  font-size: 0.85rem;
  font-weight: 600;
  color: #cbd5e1;
  text-decoration: none;
  border-radius: 4px;
}

.lang-switch-item.active {
  background: var(--c-teal);
  color: #fff;
}

/* Media Queries (Mobile-first breakpoints) */
@media (min-width: 768px) {
  .trust-row {
    grid-template-columns: repeat(4, 1fr);
  }
  .grid-2 {
    grid-template-columns: repeat(2, 1fr);
  }
  .timeline-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 992px) {
  .nav-desktop {
    display: flex;
  }
  .mobile-action-bar {
    display: none;
  }
  .hero-grid {
    grid-template-columns: 1.15fr 0.85fr;
  }
  .grid-3 {
    grid-template-columns: repeat(3, 1fr);
  }
  .footer-cols {
    grid-template-columns: 2fr 1fr 1fr 1fr;
  }
  .footer-bottom-row {
    flex-direction: row;
    justify-content: space-between;
  }
}