/* Hearing Potential - Bespoke Acoustic Ergonomics Stylesheet */
:root {
  --hp-primary: #0f172a;
  --hp-slate: #1e293b;
  --hp-accent: #10b981;
  --hp-accent-hover: #059669;
  --hp-accent-light: #ecfdf5;
  --hp-bg: #f8fafc;
  --hp-card: #ffffff;
  --hp-text: #334155;
  --hp-text-dark: #0f172a;
  --hp-text-muted: #64748b;
  --hp-border: #e2e8f0;
  --hp-radius-sm: 8px;
  --hp-radius-md: 14px;
  --hp-radius-lg: 22px;
  --hp-shadow: 0 4px 20px -2px rgba(15, 23, 42, 0.06);
  --hp-shadow-hover: 0 12px 30px -4px rgba(15, 23, 42, 0.12);
  --hp-font: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
body {
  font-family: var(--hp-font);
  background-color: var(--hp-bg);
  color: var(--hp-text);
  line-height: 1.7;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--hp-accent-hover); text-decoration: none; transition: all 0.2s; }
a:hover { color: var(--hp-accent); }
.hp-container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* Top Bar */
.hp-top-bar {
  background: var(--hp-primary);
  color: #94a3b8;
  font-size: 13px;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.hp-top-inner { display: flex; justify-content: space-between; align-items: center; }

/* Navigation */
.hp-header {
  background: var(--hp-card);
  border-bottom: 1px solid var(--hp-border);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--hp-shadow);
}
.hp-nav-wrap { display: flex; justify-content: space-between; align-items: center; height: 74px; }
.hp-logo { display: flex; align-items: center; gap: 12px; font-size: 20px; font-weight: 800; color: var(--hp-primary); }
.hp-logo-icon { width: 36px; height: 36px; background: var(--hp-accent); border-radius: 8px; display: flex; align-items: center; justify-content: center; color: #fff; font-weight: 900; }
.hp-nav-links { display: flex; gap: 24px; align-items: center; list-style: none; }
.hp-nav-links a { color: var(--hp-text-dark); font-weight: 600; font-size: 15px; }
.hp-nav-links a:hover { color: var(--hp-accent); }
.hp-nav-cta { background: var(--hp-accent); color: #fff !important; padding: 10px 20px; border-radius: var(--hp-radius-sm); font-weight: 700; }
.hp-nav-cta:hover { background: var(--hp-accent-hover); transform: translateY(-1px); }
.hp-mobile-toggle { display: none; background: none; border: none; font-size: 26px; cursor: pointer; color: var(--hp-primary); }

/* Hero */
.hp-hero { padding: 64px 0; background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%); color: #fff; }
.hp-hero-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.hp-badge { display: inline-block; padding: 6px 14px; background: rgba(16, 185, 129, 0.2); color: #34d399; border-radius: 30px; font-size: 13px; font-weight: 700; margin-bottom: 16px; border: 1px solid rgba(16, 185, 129, 0.4); }
.hp-hero h1 { font-size: 44px; line-height: 1.2; font-weight: 800; margin-bottom: 20px; letter-spacing: -0.5px; }
.hp-hero p { font-size: 18px; color: #cbd5e1; line-height: 1.6; margin-bottom: 30px; }
.hp-hero-btns { display: flex; gap: 16px; }
.hp-btn-primary { background: var(--hp-accent); color: #fff; padding: 14px 28px; border-radius: var(--hp-radius-sm); font-weight: 700; display: inline-flex; align-items: center; justify-content: center; }
.hp-btn-secondary { background: rgba(255,255,255,0.1); color: #fff; padding: 14px 28px; border-radius: var(--hp-radius-sm); font-weight: 700; border: 1px solid rgba(255,255,255,0.2); }
.hp-hero-media img { width: 100%; border-radius: var(--hp-radius-md); box-shadow: 0 20px 40px rgba(0,0,0,0.3); }

/* Sections */
.hp-section { padding: 80px 0; }
.hp-section-alt { background: #fff; padding: 80px 0; border-top: 1px solid var(--hp-border); border-bottom: 1px solid var(--hp-border); }
.hp-section-header { text-align: center; max-width: 760px; margin: 0 auto 50px; }
.hp-section-header h2 { font-size: 34px; font-weight: 800; color: var(--hp-primary); margin-bottom: 14px; }
.hp-section-header p { font-size: 17px; color: var(--hp-text-muted); }

/* Cards Grid */
.hp-cards-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 30px; }
.hp-card { background: var(--hp-card); border: 1px solid var(--hp-border); border-radius: var(--hp-radius-md); padding: 32px; box-shadow: var(--hp-shadow); transition: all 0.3s ease; }
.hp-card:hover { transform: translateY(-4px); box-shadow: var(--hp-shadow-hover); border-color: var(--hp-accent); }
.hp-card-icon { width: 52px; height: 52px; border-radius: 12px; background: var(--hp-accent-light); color: var(--hp-accent-hover); display: flex; align-items: center; justify-content: center; font-size: 24px; margin-bottom: 20px; font-weight: 800; }
.hp-card h3 { font-size: 21px; font-weight: 700; color: var(--hp-primary); margin-bottom: 12px; }
.hp-card p { color: var(--hp-text); line-height: 1.6; margin-bottom: 20px; font-size: 15px; }
.hp-card-meta { font-size: 13px; color: var(--hp-text-muted); font-weight: 500; }

/* Interactive Calculator */
.hp-calc-wrap { background: #fff; border: 1px solid var(--hp-border); border-radius: var(--hp-radius-lg); padding: 40px; box-shadow: var(--hp-shadow); margin: 40px 0; }
.hp-calc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.hp-calc-control { margin-bottom: 24px; }
.hp-calc-control label { display: block; font-weight: 700; margin-bottom: 8px; color: var(--hp-primary); }
.hp-calc-control input[type="range"] { width: 100%; accent-color: var(--hp-accent); height: 8px; }
.hp-calc-val { display: inline-block; font-size: 18px; font-weight: 800; color: var(--hp-accent-hover); margin-top: 6px; }
.hp-calc-output { background: var(--hp-bg); padding: 30px; border-radius: var(--hp-radius-md); border-left: 5px solid var(--hp-accent); }
.hp-calc-result-num { font-size: 42px; font-weight: 800; color: var(--hp-primary); line-height: 1; margin: 10px 0; }
.hp-calc-result-label { font-size: 14px; text-transform: uppercase; letter-spacing: 1px; color: var(--hp-text-muted); font-weight: 700; }
.hp-calc-advice { font-size: 15px; color: var(--hp-text); margin-top: 14px; }

/* Article & Content */
.hp-article { max-width: 860px; margin: 0 auto; background: #fff; padding: 48px; border-radius: var(--hp-radius-md); border: 1px solid var(--hp-border); box-shadow: var(--hp-shadow); }
.hp-article-meta { display: flex; gap: 20px; font-size: 14px; color: var(--hp-text-muted); margin-bottom: 24px; padding-bottom: 16px; border-bottom: 1px solid var(--hp-border); }
.hp-article h1 { font-size: 36px; font-weight: 800; color: var(--hp-primary); margin-bottom: 16px; line-height: 1.3; }
.hp-article h2 { font-size: 24px; font-weight: 700; color: var(--hp-primary); margin: 36px 0 16px; }
.hp-article h3 { font-size: 20px; font-weight: 600; color: var(--hp-slate); margin: 24px 0 12px; }
.hp-article p { margin-bottom: 20px; line-height: 1.8; color: var(--hp-text); }
.hp-article ul, .hp-article ol { margin: 0 0 24px 24px; }
.hp-article li { margin-bottom: 10px; line-height: 1.7; }
.hp-callout { background: var(--hp-accent-light); border-left: 4px solid var(--hp-accent); padding: 20px 24px; border-radius: var(--hp-radius-sm); margin: 30px 0; }
.hp-callout h4 { color: #065f46; font-size: 16px; font-weight: 700; margin-bottom: 6px; }
.hp-callout p { margin: 0; color: #047857; font-size: 15px; }

/* Table */
.hp-table-wrap { overflow-x: auto; margin: 30px 0; }
.hp-table { width: 100%; border-collapse: collapse; text-align: left; }
.hp-table th, .hp-table td { padding: 14px 18px; border-bottom: 1px solid var(--hp-border); }
.hp-table th { background: var(--hp-bg); font-weight: 700; color: var(--hp-primary); }
.hp-table tr:hover { background: #fdfdfd; }

/* Form */
.hp-form { display: grid; gap: 20px; }
.hp-form-group { display: flex; flex-direction: column; gap: 6px; }
.hp-form-group label { font-weight: 600; font-size: 14px; color: var(--hp-primary); }
.hp-form-control { padding: 12px 16px; border: 1px solid var(--hp-border); border-radius: var(--hp-radius-sm); font-size: 15px; font-family: inherit; }
.hp-form-control:focus { outline: none; border-color: var(--hp-accent); box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.15); }
textarea.hp-form-control { resize: vertical; min-height: 130px; }

/* Footer */
.hp-footer { background: var(--hp-primary); color: #cbd5e1; padding: 70px 0 30px; font-size: 14px; }
.hp-footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.5fr; gap: 40px; margin-bottom: 50px; }
.hp-footer h4 { color: #fff; font-size: 16px; font-weight: 700; margin-bottom: 20px; }
.hp-footer-links { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.hp-footer-links a { color: #94a3b8; }
.hp-footer-links a:hover { color: #fff; }
.hp-footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding-top: 30px; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 20px; font-size: 13px; color: #64748b; }

/* Cookie Banner */
.hp-cookie-banner { position: fixed; bottom: 20px; right: 20px; max-width: 420px; background: var(--hp-primary); color: #fff; padding: 24px; border-radius: var(--hp-radius-md); box-shadow: 0 10px 30px rgba(0,0,0,0.3); z-index: 1000; border: 1px solid rgba(255,255,255,0.1); display: none; }
.hp-cookie-banner.active { display: block; animation: hpFadeIn 0.3s ease; }
.hp-cookie-btns { display: flex; gap: 10px; margin-top: 16px; }

@keyframes hpFadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

/* Mobile */
@media (max-width: 868px) {
  .hp-hero-grid, .hp-calc-grid, .hp-footer-grid { grid-template-columns: 1fr; }
  .hp-nav-links { display: none; position: absolute; top: 74px; left: 0; right: 0; background: #fff; flex-direction: column; padding: 24px; border-bottom: 1px solid var(--hp-border); box-shadow: var(--hp-shadow); }
  .hp-nav-links.open { display: flex; }
  .hp-mobile-toggle { display: block; }
  .hp-hero h1 { font-size: 32px; }
  .hp-article { padding: 24px; }
}
