@import url('https://fonts.googleapis.com/css2?family=Barlow+Condensed:ital,wght@0,600;0,700;0,800;1,700&family=Plus+Jakarta+Sans:wght@400;500;600;700;800&family=JetBrains+Mono:wght@500;600;700&display=swap');

:root {
  --blue-primary: #0052FF;
  --blue-bright: #0066FF;
  --blue-deep: #0035B3;
  --blue-soft: #EBF2FF;
  --blue-tint: #F4F8FF;
  --lime-accent: #B4F000;
  --lime-bright: #CCFF00;
  --lime-dark: #8AB800;
  --bg-white: #FFFFFF;
  --bg-surface: #F5F8FC;
  --bg-card: #FFFFFF;
  --text-main: #121417;
  --text-secondary: #3E4652;
  --text-muted: #646E7D;
  --border-light: #E2E8F0;
  --border-blue: rgba(0, 82, 255, 0.22);
  --shadow-sm: 0 4px 16px rgba(18, 20, 23, 0.05);
  --shadow-md: 0 12px 32px rgba(0, 82, 255, 0.09);
  --shadow-lg: 0 20px 48px rgba(18, 20, 23, 0.12);
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --font-display: 'Barlow Condensed', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  --transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-white);
  color: var(--text-main);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  opacity: 1;
  transition: opacity 0.28s ease;
}

body.page-transitioning {
  opacity: 0;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition);
}

ul {
  list-style: none;
}

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

/* Typography */
h1, h2, h3, h4, .display-heading {
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.03em;
  line-height: 1.08;
  color: var(--text-main);
  font-weight: 800;
}

.pace-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background-color: var(--lime-accent);
  color: var(--text-main);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 6px 14px;
  border-radius: 4px;
}

.pace-badge--blue {
  background-color: var(--blue-primary);
  color: var(--bg-white);
}

.pace-badge--outline {
  background-color: var(--blue-soft);
  color: var(--blue-primary);
  border: 1px solid rgba(0, 82, 255, 0.25);
}

.pace-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--blue-primary);
  display: inline-block;
}

.pace-badge--blue .pace-dot {
  background-color: var(--lime-bright);
}

/* Header & Navigation — Geometric Block Style inspired by Reference */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg-white);
  border-bottom: 3px solid var(--blue-primary);
  box-shadow: 0 4px 20px rgba(18, 20, 23, 0.06);
}

.header-inner {
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  min-height: 78px;
  gap: 20px;
}

.brand-logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-display);
  font-size: 2.1rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-main);
  padding: 8px 0;
}

.brand-logo-mark {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--lime-accent);
  border: 2px solid var(--blue-primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
  box-shadow: 0 4px 12px rgba(0, 82, 255, 0.18);
}

.brand-logo-mark svg {
  width: 22px;
  height: 22px;
  color: var(--blue-primary);
}

.main-nav {
  display: flex;
  align-items: stretch;
  gap: 4px;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.08rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-secondary);
  padding: 0 20px;
  position: relative;
  transition: var(--transition);
}

.nav-link:hover {
  color: var(--blue-primary);
  background-color: var(--blue-tint);
}

/* Full-height accent block for active nav item like the reference top bar */
.nav-link.active {
  background-color: var(--lime-accent);
  color: var(--text-main);
  font-weight: 800;
}

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 4px;
  background-color: var(--blue-primary);
}

.header-cta {
  align-self: center;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background-color: var(--blue-primary);
  color: var(--bg-white);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.02rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 11px 22px;
  border-radius: var(--radius-sm);
  border: 2px solid var(--blue-primary);
  transition: var(--transition);
}

.header-cta:hover {
  background-color: var(--lime-accent);
  border-color: var(--lime-accent);
  color: var(--text-main);
}

.mobile-menu-toggle {
  display: none;
  align-self: center;
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  padding: 10px;
  cursor: pointer;
  color: var(--text-main);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 15px 30px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  border: 2px solid transparent;
  transition: var(--transition);
}

.btn-lime {
  background-color: var(--lime-accent);
  color: var(--text-main);
  box-shadow: 0 8px 24px rgba(180, 240, 0, 0.3);
}

.btn-lime:hover {
  background-color: var(--lime-bright);
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(180, 240, 0, 0.45);
}

.btn-blue {
  background-color: var(--blue-primary);
  color: var(--bg-white);
  box-shadow: 0 8px 24px rgba(0, 82, 255, 0.25);
}

.btn-blue:hover {
  background-color: var(--blue-deep);
  transform: translateY(-2px);
}

.btn-outline {
  background-color: transparent;
  color: var(--bg-white);
  border-color: var(--lime-accent);
}

.btn-outline:hover {
  background-color: var(--lime-accent);
  color: var(--text-main);
}

.btn-outline-blue {
  background-color: transparent;
  color: var(--blue-primary);
  border-color: var(--blue-primary);
}

.btn-outline-blue:hover {
  background-color: var(--blue-primary);
  color: var(--bg-white);
}

/* Reference-Inspired Geometric Banner Structure */
.showcase-banner {
  background: linear-gradient(135deg, #0D1B3E 0%, var(--blue-primary) 100%);
  color: var(--bg-white);
  padding: 56px 0 0;
  border-bottom: 4px solid var(--lime-accent);
  position: relative;
}

.showcase-banner-inner {
  text-align: center;
  max-width: 920px;
  margin: 0 auto 36px;
}

.showcase-headline {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 5.2vw, 4.5rem);
  font-weight: 800;
  color: var(--lime-bright);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  line-height: 1.02;
  margin-bottom: 10px;
}

.showcase-subheadline {
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 2.4vw, 2rem);
  font-weight: 600;
  color: var(--bg-white);
  text-transform: uppercase;
  letter-spacing: 0.22em;
  margin-bottom: 26px;
}

.showcase-callout-bar {
  background-color: var(--blue-bright);
  border: 2px solid var(--lime-accent);
  border-radius: var(--radius-sm);
  padding: 22px 32px;
  max-width: 860px;
  margin: 0 auto 36px;
  color: var(--bg-white);
  font-size: 1.04rem;
  line-height: 1.6;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.2);
}

.showcase-white-strip {
  background: var(--bg-white);
  color: var(--text-main);
  padding: 28px 24px;
  border-top: 3px solid var(--lime-accent);
  border-bottom: 1px solid var(--border-light);
  text-align: center;
}

.showcase-white-strip h2 {
  font-size: 1.75rem;
  letter-spacing: 0.08em;
  color: var(--text-main);
  margin-bottom: 6px;
}

.showcase-white-strip p {
  max-width: 760px;
  margin: 0 auto;
  font-size: 0.94rem;
  color: var(--text-secondary);
}

/* Hero Section */
.hero-section {
  position: relative;
  padding: 56px 0 72px;
  background: var(--bg-white);
  border-bottom: 1px solid var(--border-light);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: 48px;
  align-items: center;
}

.hero-title {
  font-size: clamp(2.4rem, 4.3vw, 3.9rem);
  margin: 18px 0 22px;
  color: var(--text-main);
}

.hero-title span {
  color: var(--blue-primary);
  display: inline-block;
}

.hero-title .highlight-lime {
  background: var(--lime-accent);
  color: var(--text-main);
  padding: 0 10px;
  border-radius: 4px;
}

.hero-lead {
  font-size: 1.1rem;
  color: var(--text-secondary);
  margin-bottom: 30px;
  max-width: 620px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 36px;
}

.telemetry-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  padding-top: 26px;
  border-top: 2px solid var(--border-light);
}

.telemetry-item {
  background: var(--bg-surface);
  border-top: 4px solid var(--blue-primary);
  padding: 16px;
  border-radius: var(--radius-sm);
  text-align: center;
}

.telemetry-item--lime {
  border-top-color: var(--lime-accent);
  background: rgba(180, 240, 0, 0.1);
}

.telemetry-val {
  font-family: var(--font-mono);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--blue-primary);
  display: block;
  margin-bottom: 4px;
}

.telemetry-label {
  font-size: 0.82rem;
  color: var(--text-secondary);
  font-weight: 600;
}

.hero-visual {
  position: relative;
}

.hero-image-frame {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 3px solid var(--blue-primary);
  background: var(--text-main);
}

.hero-image-frame img {
  width: 100%;
  height: 440px;
  object-fit: cover;
}

.hero-floating-card {
  position: absolute;
  bottom: -20px;
  left: -20px;
  background: var(--bg-white);
  border: 2px solid var(--blue-primary);
  border-top: 5px solid var(--lime-accent);
  border-radius: var(--radius-sm);
  padding: 18px 22px;
  box-shadow: var(--shadow-lg);
  max-width: 290px;
}

.hero-floating-tag {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--blue-primary);
  display: block;
  margin-bottom: 4px;
}

.hero-floating-title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  margin-bottom: 4px;
}

.hero-floating-desc {
  font-size: 0.83rem;
  color: var(--text-secondary);
}

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

.section--surface {
  background-color: var(--bg-surface);
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
}

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

.section-header--center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.section-title {
  font-size: clamp(2rem, 3.4vw, 2.9rem);
  margin: 14px 0 16px;
}

.section-subtitle {
  font-size: 1.06rem;
  color: var(--text-secondary);
}

/* Split Discipline Showcase */
.discipline-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}

.discipline-card {
  background: var(--bg-white);
  border: 2px solid var(--border-light);
  border-top: 5px solid var(--blue-primary);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: var(--transition);
}

.discipline-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--blue-primary);
}

.discipline-img-wrap {
  position: relative;
  height: 270px;
  overflow: hidden;
}

.discipline-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.discipline-card:hover .discipline-img-wrap img {
  transform: scale(1.04);
}

.discipline-overlay-badge {
  position: absolute;
  top: 16px;
  left: 16px;
  background: var(--blue-primary);
  color: var(--lime-bright);
  font-family: var(--font-mono);
  font-size: 0.76rem;
  font-weight: 700;
  padding: 6px 12px;
  border-radius: 4px;
  text-transform: uppercase;
}

.discipline-body {
  padding: 28px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.discipline-body h3 {
  font-size: 1.75rem;
  margin-bottom: 12px;
}

.discipline-body p {
  color: var(--text-secondary);
  margin-bottom: 20px;
}

.metric-list {
  margin-top: auto;
  display: grid;
  gap: 10px;
  padding-top: 18px;
  border-top: 1px solid var(--border-light);
}

.metric-list li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.9rem;
}

.metric-list li span:first-child {
  color: var(--text-secondary);
  font-weight: 500;
}

.metric-list li span:last-child {
  font-family: var(--font-mono);
  font-weight: 700;
  color: var(--blue-primary);
  background: var(--blue-soft);
  padding: 3px 10px;
  border-radius: 4px;
}

/* Electrolyte Cards */
.electrolyte-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.electrolyte-card {
  background: var(--bg-white);
  border: 2px solid var(--border-light);
  border-top: 5px solid var(--blue-primary);
  border-radius: var(--radius-md);
  padding: 28px 24px;
  position: relative;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

.electrolyte-card--accent {
  border-top-color: var(--lime-accent);
}

.electrolyte-card:hover {
  border-color: var(--blue-primary);
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}

.electrolyte-symbol-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.electrolyte-symbol {
  width: 56px;
  height: 56px;
  border-radius: 10px;
  background: var(--blue-primary);
  color: var(--bg-white);
  font-family: var(--font-mono);
  font-size: 1.45rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.electrolyte-card--accent .electrolyte-symbol {
  background: var(--lime-accent);
  color: var(--text-main);
}

.electrolyte-loss-tag {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  background: var(--bg-surface);
  color: var(--text-secondary);
  padding: 5px 10px;
  border-radius: 4px;
  border: 1px solid var(--border-light);
}

.electrolyte-card h3 {
  font-size: 1.6rem;
  margin-bottom: 6px;
}

.electrolyte-role {
  font-size: 0.84rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--blue-primary);
  letter-spacing: 0.04em;
  margin-bottom: 14px;
}

.electrolyte-card p {
  font-size: 0.94rem;
  color: var(--text-secondary);
  margin-bottom: 18px;
  flex: 1;
}

.electrolyte-nerve-box {
  background: var(--blue-tint);
  border-left: 4px solid var(--blue-primary);
  padding: 12px;
  border-radius: 0 6px 6px 0;
  font-size: 0.83rem;
  color: var(--text-main);
}

.electrolyte-nerve-box strong {
  display: block;
  color: var(--blue-primary);
  margin-bottom: 2px;
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* Hyponatremia Warning Block */
.hyponatremia-banner {
  background: var(--bg-white);
  border: 2px solid var(--blue-primary);
  border-top: 6px solid var(--lime-accent);
  border-radius: var(--radius-md);
  padding: 40px;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 36px;
  align-items: center;
  box-shadow: var(--shadow-md);
}

.hyponatremia-steps {
  display: grid;
  gap: 16px;
}

.hypo-step {
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  padding: 16px 20px;
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.hypo-step-num {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 0.9rem;
  background: var(--blue-primary);
  color: var(--lime-bright);
  width: 34px;
  height: 34px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.hypo-step h4 {
  font-size: 1.15rem;
  margin-bottom: 4px;
}

.hypo-step p {
  font-size: 0.9rem;
  color: var(--text-secondary);
}

/* Timing Protocol Grid */
.timing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.timing-card {
  background: var(--bg-white);
  border: 2px solid var(--border-light);
  border-top: 5px solid var(--blue-primary);
  border-radius: var(--radius-md);
  padding: 32px 28px;
  position: relative;
  display: flex;
  flex-direction: column;
}

.timing-card--active {
  border-color: var(--blue-primary);
  border-top-color: var(--lime-accent);
  box-shadow: var(--shadow-md);
}

.timing-phase-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.timing-window {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 0.8rem;
  background: var(--lime-accent);
  color: var(--text-main);
  padding: 6px 12px;
  border-radius: 4px;
}

.timing-step-idx {
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 800;
  color: rgba(0, 82, 255, 0.25);
}

.timing-card h3 {
  font-size: 1.85rem;
  margin-bottom: 12px;
}

.timing-card p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin-bottom: 22px;
}

.timing-specs {
  margin-top: auto;
  background: var(--bg-surface);
  border-radius: var(--radius-sm);
  padding: 18px;
  display: grid;
  gap: 12px;
}

.timing-spec-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.88rem;
  border-bottom: 1px dashed var(--border-light);
  padding-bottom: 8px;
}

.timing-spec-row:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.timing-spec-row strong {
  color: var(--blue-primary);
  font-family: var(--font-mono);
}

/* Comparison Table */
.table-wrapper {
  background: var(--bg-white);
  border-radius: var(--radius-md);
  border: 2px solid var(--blue-primary);
  overflow-x: auto;
  box-shadow: var(--shadow-sm);
}

.comparison-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 720px;
}

.comparison-table th,
.comparison-table td {
  padding: 18px 22px;
  text-align: left;
  border-bottom: 1px solid var(--border-light);
}

.comparison-table thead th {
  background: var(--text-main);
  color: var(--bg-white);
  font-family: var(--font-display);
  font-size: 1.2rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.comparison-table thead th.highlight-col {
  background: var(--blue-primary);
  color: var(--lime-bright);
}

.comparison-table tbody tr:hover {
  background-color: var(--blue-tint);
}

.comparison-table td.feature-name {
  font-weight: 700;
  color: var(--text-main);
  background: var(--bg-surface);
  width: 24%;
}

.comparison-table td.highlight-col {
  background: rgba(0, 82, 255, 0.04);
  font-weight: 600;
  border-left: 2px solid var(--blue-primary);
  border-right: 2px solid var(--blue-primary);
}

.table-pill {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 4px;
}

.table-pill--good {
  background: var(--lime-accent);
  color: var(--text-main);
}

.table-pill--warn {
  background: #FFE8E5;
  color: #B42318;
}

.table-pill--neutral {
  background: var(--blue-soft);
  color: var(--blue-primary);
}

/* Interactive Sweat Rate Calculator */
.calc-box {
  background: var(--bg-white);
  border: 2px solid var(--blue-primary);
  border-top: 6px solid var(--lime-accent);
  border-radius: var(--radius-md);
  padding: 40px;
  box-shadow: var(--shadow-md);
}

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

.calc-controls {
  display: grid;
  gap: 20px;
}

.calc-field label {
  display: flex;
  justify-content: space-between;
  font-weight: 700;
  font-size: 0.92rem;
  margin-bottom: 8px;
}

.calc-field label span {
  font-family: var(--font-mono);
  color: var(--blue-primary);
}

.calc-input, .calc-select {
  width: 100%;
  padding: 13px 16px;
  border: 1.5px solid var(--border-light);
  border-radius: var(--radius-sm);
  font-family: var(--font-sans);
  font-size: 1rem;
  color: var(--text-main);
  background: var(--bg-surface);
  transition: var(--transition);
}

.calc-input:focus, .calc-select:focus {
  outline: none;
  border-color: var(--blue-primary);
  background: var(--bg-white);
}

.calc-result-panel {
  background: linear-gradient(145deg, #0D1B3E 0%, var(--blue-primary) 100%);
  color: var(--bg-white);
  border-radius: var(--radius-md);
  padding: 32px;
  position: relative;
  border: 2px solid var(--lime-accent);
}

.calc-result-panel h3 {
  color: var(--lime-bright);
  font-size: 1.55rem;
  margin-bottom: 20px;
}

.calc-metrics-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.calc-metric-card {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  padding: 16px;
  border-radius: var(--radius-sm);
}

.calc-metric-val {
  font-family: var(--font-mono);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--lime-bright);
  display: block;
}

.calc-metric-lbl {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.85);
}

/* Oferta Showcase */
.product-showcase {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 48px;
  align-items: start;
}

.product-gallery-card {
  background: var(--bg-surface);
  border: 2px solid var(--blue-primary);
  border-top: 6px solid var(--lime-accent);
  border-radius: var(--radius-md);
  padding: 28px;
  box-shadow: var(--shadow-lg);
  position: sticky;
  top: 108px;
}

.product-gallery-card img {
  width: 100%;
  border-radius: var(--radius-sm);
  margin-bottom: 20px;
}

.product-Quick-badges {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.product-mini-badge {
  background: var(--bg-white);
  border: 1px solid var(--border-light);
  border-top: 3px solid var(--blue-primary);
  border-radius: var(--radius-sm);
  padding: 12px;
  text-align: center;
}

.product-mini-badge strong {
  display: block;
  font-family: var(--font-mono);
  color: var(--blue-primary);
  font-size: 1rem;
}

.product-mini-badge span {
  font-size: 0.76rem;
  color: var(--text-secondary);
}

.mineral-profile-table {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0 32px;
  background: var(--bg-white);
  border: 2px solid var(--border-light);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.mineral-profile-table th,
.mineral-profile-table td {
  padding: 14px 18px;
  border-bottom: 1px solid var(--border-light);
  font-size: 0.94rem;
}

.mineral-profile-table th {
  background: var(--blue-primary);
  color: var(--lime-bright);
  font-family: var(--font-mono);
  text-transform: uppercase;
  font-size: 0.8rem;
  text-align: left;
}

.mineral-profile-table td:nth-child(2) {
  font-family: var(--font-mono);
  font-weight: 700;
  color: var(--blue-primary);
}

/* Certificates Grid */
.cert-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.cert-card {
  background: var(--bg-white);
  border: 2px solid var(--border-light);
  border-top: 5px solid var(--blue-primary);
  border-radius: var(--radius-md);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.cert-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 2px solid var(--blue-primary);
  padding-bottom: 14px;
}

.cert-code {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--blue-primary);
  background: var(--blue-soft);
  padding: 4px 10px;
  border-radius: 4px;
}

.cert-status {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  background: var(--lime-accent);
  color: var(--text-main);
  padding: 4px 10px;
  border-radius: 4px;
}

.cert-meta-table {
  margin-top: auto;
  background: var(--bg-surface);
  padding: 14px;
  border-radius: var(--radius-sm);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  display: grid;
  gap: 6px;
}

.cert-meta-row {
  display: flex;
  justify-content: space-between;
}

/* Contact Page, Form & Embedded Google Map */
.contact-layout {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 40px;
  align-items: start;
}

.contact-info-card {
  background: var(--bg-surface);
  border: 2px solid var(--border-light);
  border-top: 5px solid var(--blue-primary);
  border-radius: var(--radius-md);
  padding: 36px;
}

.contact-detail-list {
  display: grid;
  gap: 18px;
  margin-top: 24px;
}

.contact-detail-item {
  background: var(--bg-white);
  border: 1px solid var(--border-light);
  border-left: 4px solid var(--blue-primary);
  border-radius: var(--radius-sm);
  padding: 18px 20px;
}

.contact-detail-item strong {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  text-transform: uppercase;
  color: var(--blue-primary);
  margin-bottom: 4px;
}

.contact-form-card {
  background: var(--bg-white);
  border: 2px solid var(--blue-primary);
  border-top: 6px solid var(--lime-accent);
  border-radius: var(--radius-md);
  padding: 40px;
  box-shadow: var(--shadow-lg);
}

.form-group {
  margin-bottom: 22px;
}

.form-label {
  display: block;
  font-weight: 700;
  font-size: 0.92rem;
  margin-bottom: 8px;
  color: var(--text-main);
}

.form-control {
  width: 100%;
  padding: 15px 18px;
  border: 1.5px solid var(--border-light);
  border-radius: var(--radius-sm);
  font-family: var(--font-sans);
  font-size: 1rem;
  color: var(--text-main);
  background: var(--bg-surface);
  transition: var(--transition);
}

.form-control:focus {
  outline: none;
  border-color: var(--blue-primary);
  background: var(--bg-white);
  box-shadow: 0 0 0 4px rgba(0, 82, 255, 0.12);
}

.checkbox-group {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: var(--bg-surface);
  padding: 16px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-light);
  margin-bottom: 24px;
}

.checkbox-group input[type="checkbox"] {
  width: 20px;
  height: 20px;
  margin-top: 3px;
  accent-color: var(--blue-primary);
  flex-shrink: 0;
  cursor: pointer;
}

.checkbox-group label {
  font-size: 0.85rem;
  color: var(--text-secondary);
  cursor: pointer;
  line-height: 1.5;
}

.form-error {
  color: #D92D20;
  font-size: 0.84rem;
  font-weight: 600;
  margin-top: 6px;
  display: none;
}

/* Google Map Card in Contacts */
.map-section-wrap {
  margin-top: 48px;
}

.map-card {
  background: var(--bg-white);
  border: 2px solid var(--blue-primary);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.map-card-header {
  background: linear-gradient(135deg, #0D1B3E 0%, var(--blue-primary) 100%);
  color: var(--bg-white);
  padding: 22px 28px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 4px solid var(--lime-accent);
}

.map-card-header-left h2 {
  color: var(--lime-bright);
  font-size: 1.65rem;
  margin-bottom: 4px;
}

.map-card-header-left p {
  font-size: 0.92rem;
  color: rgba(255, 255, 255, 0.9);
}

.map-address-pill {
  background: var(--lime-accent);
  color: var(--text-main);
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 0.85rem;
  padding: 10px 18px;
  border-radius: var(--radius-sm);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.map-iframe-container {
  position: relative;
  width: 100%;
  height: 420px;
  background: var(--bg-surface);
}

.map-iframe-container iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

.map-card-footer {
  background: var(--bg-white);
  padding: 18px 28px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-top: 1px solid var(--border-light);
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.map-card-footer strong {
  color: var(--blue-primary);
}

/* Thank You Section / View */
.thank-you-box {
  max-width: 680px;
  margin: 40px auto;
  background: var(--bg-white);
  border: 3px solid var(--blue-primary);
  border-top: 6px solid var(--lime-accent);
  border-radius: var(--radius-md);
  padding: 56px 42px;
  text-align: center;
  box-shadow: var(--shadow-lg);
}

.thank-you-icon {
  width: 76px;
  height: 76px;
  border-radius: 50%;
  background: var(--lime-accent);
  color: var(--text-main);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
}

/* Footer */
.site-footer {
  background: var(--text-main);
  color: var(--bg-white);
  padding: 72px 0 36px;
  border-top: 4px solid var(--blue-primary);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.footer-brand p {
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.92rem;
  margin-top: 16px;
  max-width: 400px;
}

.footer-heading {
  font-family: var(--font-display);
  font-size: 1.25rem;
  color: var(--lime-bright);
  margin-bottom: 18px;
  letter-spacing: 0.05em;
}

.footer-links {
  display: grid;
  gap: 10px;
}

.footer-links a,
.footer-links button {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.92rem;
  background: none;
  border: none;
  text-align: left;
  font-family: var(--font-sans);
  cursor: pointer;
  padding: 0;
  transition: var(--transition);
}

.footer-links a:hover,
.footer-links button:hover {
  color: var(--lime-bright);
}

.footer-bottom {
  padding-top: 28px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 16px;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.6);
}

.footer-disclaimer {
  margin-top: 20px;
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.52);
  line-height: 1.55;
}

/* Legal Modal */
.legal-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(18, 20, 23, 0.72);
  backdrop-filter: blur(4px);
  z-index: 900;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.legal-modal-backdrop.is-open {
  display: flex;
}

.legal-modal {
  background: var(--bg-white);
  color: var(--text-main);
  max-width: 760px;
  width: 100%;
  max-height: 85vh;
  border-radius: var(--radius-md);
  border: 2px solid var(--blue-primary);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.legal-modal-header {
  padding: 22px 28px;
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.legal-modal-header h3 {
  font-size: 1.5rem;
}

.legal-modal-close {
  background: var(--bg-white);
  border: 1px solid var(--border-light);
  border-radius: 6px;
  width: 36px;
  height: 36px;
  font-weight: 700;
  cursor: pointer;
}

.legal-modal-body {
  padding: 28px;
  overflow-y: auto;
  font-size: 0.94rem;
  color: var(--text-secondary);
  display: grid;
  gap: 14px;
}

.legal-modal-body h4 {
  font-size: 1.15rem;
  margin-top: 8px;
  color: var(--text-main);
}

/* Responsive */
@media (max-width: 1024px) {
  .hero-grid,
  .hyponatremia-banner,
  .calc-grid,
  .product-showcase,
  .contact-layout {
    grid-template-columns: 1fr;
  }

  .electrolyte-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .timing-grid,
  .cert-grid {
    grid-template-columns: 1fr;
  }

  .product-gallery-card {
    position: static;
  }

  .hero-floating-card {
    position: static;
    margin-top: 16px;
    max-width: 100%;
  }
}

@media (max-width: 768px) {
  .mobile-menu-toggle {
    display: inline-flex;
  }

  .main-nav {
    position: absolute;
    top: 78px;
    left: 0;
    right: 0;
    background: var(--bg-white);
    flex-direction: column;
    align-items: stretch;
    padding: 12px 24px 20px;
    border-bottom: 3px solid var(--blue-primary);
    box-shadow: var(--shadow-lg);
    display: none;
  }

  .main-nav.is-open {
    display: flex;
  }

  .nav-link {
    padding: 12px 16px;
  }

  .header-cta {
    display: none;
  }

  .discipline-grid,
  .electrolyte-grid,
  .telemetry-strip,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .section {
    padding: 56px 0;
  }

  .map-iframe-container {
    height: 320px;
  }
}
