/* ==========================================================================
   AquaPria - 30 | Aquatic Pelvic Buoyancy & Low-Impact Hydro-Mobility Hub
   CSS Architecture with strict .ap-* namespace
   Color Palette: Deep Ocean Navy (#051329), Oceanic Blue (#0284c7), Aqua Turquoise (#38bdf8),
   Foam Surface (#0c2340), Shimmer Border (#19416e), Clean Text (#f0f9ff / #93c5fd)
   Typography: System / Inter / Modern Sans
   ========================================================================== */

:root {
  --ap-bg: #030b18;
  --ap-bg-surface: #07172e;
  --ap-bg-card: #0c2342;
  --ap-bg-card-hover: #113058;
  --ap-border: #174271;
  --ap-border-subtle: #0f2d52;
  --ap-primary: #38bdf8;
  --ap-primary-glow: rgba(56, 189, 248, 0.28);
  --ap-secondary: #0284c7;
  --ap-accent: #2dd4bf;
  --ap-accent-glow: rgba(45, 212, 191, 0.22);
  --ap-text: #f0f9ff;
  --ap-text-muted: #93c5fd;
  --ap-text-dim: #60a5fa;
  --ap-radius-sm: 8px;
  --ap-radius-md: 14px;
  --ap-radius-lg: 22px;
  --ap-radius-xl: 30px;
  --ap-font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --ap-transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}

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

body {
  font-family: var(--ap-font);
  background-color: var(--ap-bg);
  color: var(--ap-text);
  line-height: 1.65;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

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

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

/* Container */
.ap-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.ap-container-narrow {
  max-width: 860px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Header & Nav */
.ap-header {
  background: rgba(5, 19, 41, 0.94);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--ap-border-subtle);
  position: sticky;
  top: 0;
  z-index: 100;
}

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

.ap-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  font-size: 1.35rem;
  letter-spacing: -0.02em;
  color: #ffffff;
}

.ap-brand-icon {
  width: 38px;
  height: 38px;
  background: linear-gradient(135deg, var(--ap-primary), var(--ap-accent));
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #030b18;
  font-weight: 900;
  font-size: 1.15rem;
}

.ap-nav {
  display: flex;
  align-items: center;
  gap: 24px;
}

.ap-nav-link {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--ap-text-muted);
  padding: 6px 12px;
  border-radius: var(--ap-radius-sm);
}

.ap-nav-link:hover,
.ap-nav-link.active {
  color: var(--ap-primary);
  background: rgba(56, 189, 248, 0.1);
}

.ap-header-cta {
  display: inline-flex;
  align-items: center;
  padding: 9px 18px;
  background: var(--ap-primary);
  color: #030b18;
  font-weight: 750;
  font-size: 0.88rem;
  border-radius: var(--ap-radius-sm);
  transition: var(--ap-transition);
}

.ap-header-cta:hover {
  background: #7dd3fc;
  transform: translateY(-1px);
}

.ap-menu-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--ap-text);
  font-size: 1.5rem;
  cursor: pointer;
}

/* Hero Section */
.ap-hero {
  padding: 68px 0 60px;
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--ap-border-subtle);
}

.ap-hero::before {
  content: "";
  position: absolute;
  top: -100px;
  right: -100px;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, var(--ap-primary-glow) 0%, transparent 70%);
  pointer-events: none;
}

.ap-hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 48px;
  align-items: center;
  position: relative;
  z-index: 1;
}

.ap-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: rgba(56, 189, 248, 0.12);
  border: 1px solid rgba(56, 189, 248, 0.3);
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--ap-primary);
  margin-bottom: 20px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.ap-hero-title {
  font-size: 2.85rem;
  line-height: 1.16;
  font-weight: 850;
  letter-spacing: -0.03em;
  margin-bottom: 20px;
}

.ap-hero-title span {
  color: var(--ap-primary);
}

.ap-hero-lead {
  font-size: 1.12rem;
  line-height: 1.6;
  color: var(--ap-text-muted);
  margin-bottom: 28px;
}

.ap-hero-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.ap-btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 26px;
  background: linear-gradient(135deg, var(--ap-primary), var(--ap-secondary));
  color: #030b18;
  font-weight: 800;
  font-size: 0.95rem;
  border-radius: var(--ap-radius-md);
  box-shadow: 0 4px 18px var(--ap-primary-glow);
  border: none;
  cursor: pointer;
  transition: var(--ap-transition);
}

.ap-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px var(--ap-primary-glow);
}

.ap-btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 24px;
  background: var(--ap-bg-card);
  border: 1px solid var(--ap-border);
  color: var(--ap-text);
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: var(--ap-radius-md);
  cursor: pointer;
  transition: var(--ap-transition);
}

.ap-btn-secondary:hover {
  background: var(--ap-bg-card-hover);
  border-color: var(--ap-primary);
}

.ap-hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 36px;
  padding-top: 28px;
  border-top: 1px solid var(--ap-border-subtle);
}

.ap-stat-num {
  font-size: 1.7rem;
  font-weight: 850;
  color: var(--ap-accent);
}

.ap-stat-lbl {
  font-size: 0.78rem;
  color: #7dd3fc;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.ap-hero-media {
  position: relative;
}

.ap-hero-image-wrap {
  border-radius: var(--ap-radius-xl);
  overflow: hidden;
  border: 1px solid var(--ap-border);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.45);
}

.ap-hero-image-wrap img {
  width: 100%;
  height: 420px;
  object-fit: cover;
}

.ap-hero-floating-card {
  position: absolute;
  bottom: -20px;
  left: -20px;
  background: rgba(7, 23, 46, 0.95);
  backdrop-filter: blur(10px);
  border: 1px solid var(--ap-border);
  border-radius: var(--ap-radius-md);
  padding: 16px 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  max-width: 250px;
}

.ap-floating-title {
  font-size: 0.85rem;
  font-weight: 750;
  color: var(--ap-primary);
  margin-bottom: 4px;
}

.ap-floating-desc {
  font-size: 0.78rem;
  color: var(--ap-text-muted);
}

/* Sections */
.ap-section {
  padding: 72px 0;
}

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

.ap-section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 48px;
}

.ap-section-chip {
  display: inline-block;
  padding: 4px 12px;
  background: rgba(45, 212, 191, 0.15);
  color: var(--ap-accent);
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 750;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 12px;
}

.ap-section-title {
  font-size: 2.2rem;
  line-height: 1.25;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 14px;
}

.ap-section-sub {
  font-size: 1rem;
  color: var(--ap-text-muted);
}

/* Interactive Buoyancy & Session Calculator */
.ap-calculator-card {
  background: var(--ap-bg-card);
  border: 1px solid var(--ap-border);
  border-radius: var(--ap-radius-xl);
  padding: 36px;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.35);
}

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

.ap-calc-control-group {
  margin-bottom: 22px;
}

.ap-calc-label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.92rem;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--ap-text);
}

.ap-calc-val-badge {
  background: rgba(56, 189, 248, 0.15);
  color: var(--ap-primary);
  font-weight: 750;
  padding: 2px 10px;
  border-radius: var(--ap-radius-sm);
  font-size: 0.85rem;
}

.ap-range-input {
  width: 100%;
  height: 6px;
  border-radius: 4px;
  background: #174271;
  outline: none;
  accent-color: var(--ap-primary);
  cursor: pointer;
}

.ap-select-input {
  width: 100%;
  padding: 12px 16px;
  background: #051429;
  border: 1px solid var(--ap-border);
  border-radius: var(--ap-radius-sm);
  color: var(--ap-text);
  font-size: 0.92rem;
  outline: none;
}

.ap-select-input:focus {
  border-color: var(--ap-primary);
}

/* Live Output Panel */
.ap-calc-result-panel {
  background: #051429;
  border: 1px solid var(--ap-border);
  border-radius: var(--ap-radius-lg);
  padding: 28px;
  position: relative;
}

.ap-result-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--ap-border-subtle);
}

.ap-result-title {
  font-size: 1.1rem;
  font-weight: 750;
}

.ap-result-score-badge {
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 800;
}

.ap-score-optimal {
  background: rgba(45, 212, 191, 0.2);
  color: var(--ap-accent);
}

.ap-score-adjust {
  background: rgba(56, 189, 248, 0.2);
  color: var(--ap-primary);
}

.ap-metric-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.ap-metric-name {
  font-size: 0.88rem;
  color: var(--ap-text-muted);
}

.ap-metric-val {
  font-size: 0.95rem;
  font-weight: 750;
  color: var(--ap-text);
}

.ap-result-tip-box {
  margin-top: 20px;
  padding: 16px;
  background: rgba(56, 189, 248, 0.08);
  border-left: 3px solid var(--ap-primary);
  border-radius: 4px;
  font-size: 0.86rem;
  line-height: 1.55;
  color: var(--ap-text-muted);
}

/* 3 Pillars of Hydrostatic Buoyancy */
.ap-features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.ap-feature-card {
  background: var(--ap-bg-card);
  border: 1px solid var(--ap-border);
  border-radius: var(--ap-radius-lg);
  padding: 28px;
  transition: var(--ap-transition);
}

.ap-feature-card:hover {
  transform: translateY(-4px);
  border-color: var(--ap-primary);
  background: var(--ap-bg-card-hover);
}

.ap-feature-icon-box {
  width: 50px;
  height: 50px;
  background: rgba(56, 189, 248, 0.12);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ap-primary);
  font-size: 1.4rem;
  margin-bottom: 20px;
}

.ap-feature-title {
  font-size: 1.15rem;
  font-weight: 750;
  margin-bottom: 10px;
}

.ap-feature-desc {
  font-size: 0.9rem;
  color: var(--ap-text-muted);
  line-height: 1.6;
}

/* 4 Aquatic Movement Drills */
.ap-protocol-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.ap-step-card {
  background: var(--ap-bg-card);
  border: 1px solid var(--ap-border);
  border-radius: var(--ap-radius-lg);
  padding: 24px;
  position: relative;
}

.ap-step-number {
  font-size: 2.2rem;
  font-weight: 900;
  color: rgba(255, 255, 255, 0.08);
  position: absolute;
  top: 14px;
  right: 18px;
  line-height: 1;
}

.ap-step-duration {
  display: inline-block;
  padding: 3px 8px;
  background: rgba(45, 212, 191, 0.15);
  color: var(--ap-accent);
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 750;
  margin-bottom: 14px;
}

.ap-step-title {
  font-size: 1.05rem;
  font-weight: 750;
  margin-bottom: 8px;
}

.ap-step-desc {
  font-size: 0.85rem;
  color: var(--ap-text-muted);
  line-height: 1.55;
}

/* Water vs Land Comparison */
.ap-table-wrap {
  overflow-x: auto;
  border-radius: var(--ap-radius-lg);
  border: 1px solid var(--ap-border);
  background: var(--ap-bg-card);
}

.ap-compare-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.92rem;
}

.ap-compare-table th {
  background: #051429;
  padding: 16px 20px;
  font-weight: 750;
  color: var(--ap-primary);
  border-bottom: 1px solid var(--ap-border);
}

.ap-compare-table td {
  padding: 14px 20px;
  border-bottom: 1px solid var(--ap-border-subtle);
  color: var(--ap-text-muted);
}

.ap-compare-table tr:last-child td {
  border-bottom: none;
}

.ap-highlight-cell {
  color: var(--ap-text);
  font-weight: 700;
}

/* Author Box */
.ap-author-box {
  background: var(--ap-bg-card);
  border: 1px solid var(--ap-border);
  border-radius: var(--ap-radius-xl);
  padding: 36px;
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 32px;
  align-items: center;
}

.ap-author-avatar {
  width: 180px;
  height: 180px;
  border-radius: var(--ap-radius-lg);
  object-fit: cover;
  border: 2px solid var(--ap-primary);
}

.ap-author-role {
  font-size: 0.85rem;
  font-weight: 750;
  color: var(--ap-primary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 6px;
}

.ap-author-name {
  font-size: 1.6rem;
  font-weight: 800;
  margin-bottom: 12px;
}

.ap-author-bio {
  font-size: 0.95rem;
  color: var(--ap-text-muted);
  line-height: 1.65;
  margin-bottom: 16px;
}

.ap-author-creds {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.ap-cred-chip {
  padding: 4px 12px;
  background: #051429;
  border: 1px solid var(--ap-border);
  border-radius: 6px;
  font-size: 0.8rem;
  color: var(--ap-text-dim);
}

/* FAQ Accordion */
.ap-faq-list {
  max-width: 860px;
  margin: 0 auto;
}

.ap-faq-item {
  background: var(--ap-bg-card);
  border: 1px solid var(--ap-border);
  border-radius: var(--ap-radius-md);
  margin-bottom: 14px;
  overflow: hidden;
}

.ap-faq-question {
  width: 100%;
  padding: 20px 24px;
  background: none;
  border: none;
  text-align: left;
  color: var(--ap-text);
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.ap-faq-question:hover {
  color: var(--ap-primary);
}

.ap-faq-answer {
  padding: 0 24px 20px;
  color: var(--ap-text-muted);
  font-size: 0.92rem;
  line-height: 1.65;
  display: none;
}

.ap-faq-item.active .ap-faq-answer {
  display: block;
}

.ap-faq-item.active .ap-faq-toggle-icon {
  transform: rotate(45deg);
  color: var(--ap-primary);
}

.ap-faq-toggle-icon {
  font-size: 1.3rem;
  font-weight: 400;
  transition: transform 0.2s ease;
}

/* CTA Footer Block */
.ap-cta-banner {
  background: linear-gradient(135deg, #092a54 0%, #05152b 100%);
  border: 1px solid var(--ap-border);
  border-radius: var(--ap-radius-xl);
  padding: 48px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.ap-cta-banner::before {
  content: "";
  position: absolute;
  top: -50%;
  left: 50%;
  transform: translateX(-50%);
  width: 320px;
  height: 320px;
  background: radial-gradient(circle, var(--ap-primary-glow) 0%, transparent 70%);
  pointer-events: none;
}

.ap-cta-title {
  font-size: 2rem;
  font-weight: 850;
  margin-bottom: 14px;
}

.ap-cta-desc {
  max-width: 620px;
  margin: 0 auto 28px;
  color: var(--ap-text-muted);
  font-size: 1rem;
}

/* Footer */
.ap-footer {
  background: #020710;
  border-top: 1px solid var(--ap-border-subtle);
  padding: 60px 0 32px;
  font-size: 0.88rem;
  color: #4b6a94;
}

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

.ap-footer-about-text {
  margin-top: 12px;
  line-height: 1.6;
  max-width: 340px;
  color: var(--ap-text-muted);
}

.ap-footer-col-title {
  font-size: 0.92rem;
  font-weight: 750;
  color: var(--ap-text);
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.ap-footer-links {
  list-style: none;
}

.ap-footer-links li {
  margin-bottom: 10px;
}

.ap-footer-links a:hover {
  color: var(--ap-primary);
}

.ap-footer-disclaimer-box {
  padding: 20px;
  background: #040e1d;
  border: 1px solid var(--ap-border-subtle);
  border-radius: var(--ap-radius-sm);
  margin-bottom: 24px;
  line-height: 1.55;
  font-size: 0.8rem;
  color: #5d7c9f;
}

.ap-footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 24px;
  border-top: 1px solid var(--ap-border-subtle);
  font-size: 0.82rem;
}

/* Inner Page */
.ap-inner-hero {
  padding: 56px 0 40px;
  border-bottom: 1px solid var(--ap-border-subtle);
  background: #051429;
}

.ap-inner-title {
  font-size: 2.4rem;
  font-weight: 850;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}

.ap-inner-sub {
  color: var(--ap-text-muted);
  font-size: 1.05rem;
}

.ap-content-card {
  background: var(--ap-bg-card);
  border: 1px solid var(--ap-border);
  border-radius: var(--ap-radius-xl);
  padding: 40px;
  margin: 48px auto;
  line-height: 1.75;
  color: #cbd5e1;
}

.ap-content-card h2 {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--ap-text);
  margin: 32px 0 14px;
}

.ap-content-card h2:first-child {
  margin-top: 0;
}

.ap-content-card p {
  margin-bottom: 18px;
}

.ap-content-card ul {
  margin: 0 0 20px 24px;
}

.ap-content-card li {
  margin-bottom: 8px;
}

/* Form Styles */
.ap-form-group {
  margin-bottom: 20px;
}

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

.ap-form-input,
.ap-form-textarea {
  width: 100%;
  padding: 12px 16px;
  background: #051429;
  border: 1px solid var(--ap-border);
  border-radius: var(--ap-radius-sm);
  color: var(--ap-text);
  font-size: 0.95rem;
  outline: none;
  font-family: inherit;
}

.ap-form-input:focus,
.ap-form-textarea:focus {
  border-color: var(--ap-primary);
}

/* Responsive */
@media (max-width: 992px) {
  .ap-hero-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }
  .ap-calc-grid {
    grid-template-columns: 1fr;
  }
  .ap-features-grid {
    grid-template-columns: 1fr;
  }
  .ap-protocol-steps {
    grid-template-columns: repeat(2, 1fr);
  }
  .ap-footer-grid {
    grid-template-columns: 1fr 1fr;
  }
  .ap-author-box {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .ap-author-avatar {
    margin: 0 auto;
  }
  .ap-author-creds {
    justify-content: center;
  }
}

@media (max-width: 768px) {
  .ap-nav {
    display: none;
    position: absolute;
    top: 74px;
    left: 0;
    right: 0;
    background: #051329;
    flex-direction: column;
    padding: 20px;
    border-bottom: 1px solid var(--ap-border);
  }
  .ap-nav.is-open {
    display: flex;
  }
  .ap-menu-toggle {
    display: block;
  }
  .ap-hero-title {
    font-size: 2.1rem;
  }
  .ap-protocol-steps {
    grid-template-columns: 1fr;
  }
  .ap-footer-grid {
    grid-template-columns: 1fr;
  }
  .ap-footer-bottom {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }
}
