/* Hearing True - Institute Bento Grid Stylesheet */
:root {
  --ht-primary: #0f172a;
  --ht-slate: #1e293b;
  --ht-teal: #0d9488;
  --ht-teal-hover: #0f766e;
  --ht-teal-light: #ccfbf1;
  --ht-bg: #f8fafc;
  --ht-card: #ffffff;
  --ht-text: #334155;
  --ht-text-dark: #0f172a;
  --ht-text-muted: #64748b;
  --ht-border: #e2e8f0;
  --ht-radius: 12px;
  --ht-shadow: 0 4px 20px -2px rgba(15, 23, 42, 0.06);
  --ht-shadow-hover: 0 12px 30px -4px rgba(15, 23, 42, 0.12);
  --ht-font: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
body {
  font-family: var(--ht-font);
  background-color: var(--ht-bg);
  color: var(--ht-text);
  line-height: 1.7;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--ht-teal-hover); text-decoration: none; transition: all 0.2s; }
a:hover { color: var(--ht-teal); }
.ht-container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* Top Bar */
.ht-top-bar { background: var(--ht-primary); color: #94a3b8; font-size: 13px; padding: 8px 0; border-bottom: 1px solid rgba(255,255,255,0.08); }
.ht-top-inner { display: flex; justify-content: space-between; align-items: center; }

/* Nav */
.ht-header { background: #fff; border-bottom: 1px solid var(--ht-border); position: sticky; top: 0; z-index: 100; box-shadow: var(--ht-shadow); }
.ht-nav-wrap { display: flex; justify-content: space-between; align-items: center; height: 74px; }
.ht-logo { display: flex; align-items: center; gap: 10px; font-size: 21px; font-weight: 800; color: var(--ht-primary); }
.ht-logo-badge { background: var(--ht-teal); color: #fff; font-size: 14px; font-weight: 800; padding: 4px 8px; border-radius: 6px; }
.ht-nav-links { display: flex; gap: 22px; align-items: center; list-style: none; }
.ht-nav-links a { color: var(--ht-text-dark); font-weight: 600; font-size: 15px; }
.ht-nav-links a:hover { color: var(--ht-teal); }
.ht-nav-cta { background: var(--ht-teal); color: #fff !important; padding: 10px 20px; border-radius: 8px; font-weight: 700; }
.ht-nav-cta:hover { background: var(--ht-teal-hover); }
.ht-mobile-toggle { display: none; background: none; border: none; font-size: 26px; cursor: pointer; color: var(--ht-primary); }

/* Bento Hero */
.ht-hero-bento { padding: 60px 0; }
.ht-bento-grid { display: grid; grid-template-columns: 2fr 1.2fr; gap: 24px; }
.ht-bento-card { background: #fff; border: 1px solid var(--ht-border); border-radius: var(--ht-radius); padding: 36px; box-shadow: var(--ht-shadow); }
.ht-bento-main { background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%); color: #fff; border: none; display: flex; flex-direction: column; justify-content: space-between; }
.ht-badge { display: inline-block; padding: 5px 12px; background: rgba(13, 148, 136, 0.25); color: #2dd4bf; border-radius: 30px; font-size: 13px; font-weight: 700; margin-bottom: 16px; border: 1px solid rgba(13, 148, 136, 0.4); }
.ht-bento-main h1 { font-size: 40px; font-weight: 800; line-height: 1.2; margin-bottom: 18px; letter-spacing: -0.5px; }
.ht-bento-main p { font-size: 17px; color: #cbd5e1; line-height: 1.6; margin-bottom: 24px; }
.ht-btn-teal { background: var(--ht-teal); color: #fff; padding: 12px 24px; border-radius: 8px; font-weight: 700; display: inline-block; }
.ht-btn-teal:hover { background: var(--ht-teal-hover); color: #fff; }

/* Section */
.ht-section { padding: 75px 0; }
.ht-section-alt { background: #fff; padding: 75px 0; border-top: 1px solid var(--ht-border); border-bottom: 1px solid var(--ht-border); }
.ht-section-header { text-align: center; max-width: 740px; margin: 0 auto 50px; }
.ht-section-header h2 { font-size: 32px; font-weight: 800; color: var(--ht-primary); margin-bottom: 12px; }
.ht-section-header p { font-size: 16px; color: var(--ht-text-muted); }

/* Grid 3 */
.ht-grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 26px; }
.ht-card { background: #fff; border: 1px solid var(--ht-border); border-radius: var(--ht-radius); padding: 30px; box-shadow: var(--ht-shadow); transition: all 0.25s ease; }
.ht-card:hover { transform: translateY(-4px); box-shadow: var(--ht-shadow-hover); border-color: var(--ht-teal); }
.ht-card-tag { font-size: 12px; font-weight: 800; color: var(--ht-teal-hover); text-transform: uppercase; letter-spacing: 1px; margin-bottom: 10px; }
.ht-card h3 { font-size: 20px; font-weight: 700; color: var(--ht-primary); margin-bottom: 10px; }
.ht-card p { font-size: 15px; color: var(--ht-text); line-height: 1.6; margin-bottom: 16px; }

/* Interactive Matrix */
.ht-matrix-wrap { background: #fff; border: 1px solid var(--ht-border); border-radius: var(--ht-radius); padding: 36px; box-shadow: var(--ht-shadow); }
.ht-matrix-controls { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; margin-bottom: 28px; }
.ht-matrix-btn { padding: 14px 18px; border: 1px solid var(--ht-border); border-radius: 8px; background: var(--ht-bg); font-weight: 600; cursor: pointer; text-align: left; transition: all 0.2s; }
.ht-matrix-btn:hover, .ht-matrix-btn.active { border-color: var(--ht-teal); background: var(--ht-teal-light); color: #0f766e; }
.ht-matrix-display { background: var(--ht-bg); border-radius: 8px; padding: 26px; border-left: 4px solid var(--ht-teal); }
.ht-matrix-display h4 { font-size: 20px; color: var(--ht-primary); margin-bottom: 10px; }
.ht-matrix-display p { font-size: 15px; line-height: 1.6; color: var(--ht-text); margin-bottom: 12px; }

/* Article */
.ht-article { max-width: 840px; margin: 0 auto; background: #fff; padding: 46px; border-radius: var(--ht-radius); border: 1px solid var(--ht-border); box-shadow: var(--ht-shadow); }
.ht-meta { display: flex; gap: 18px; font-size: 14px; color: var(--ht-text-muted); margin-bottom: 22px; padding-bottom: 14px; border-bottom: 1px solid var(--ht-border); }
.ht-article h1 { font-size: 34px; font-weight: 800; color: var(--ht-primary); margin-bottom: 16px; line-height: 1.3; }
.ht-article h2 { font-size: 23px; font-weight: 700; color: var(--ht-primary); margin: 34px 0 14px; }
.ht-article h3 { font-size: 19px; font-weight: 600; color: var(--ht-slate); margin: 22px 0 10px; }
.ht-article p { margin-bottom: 18px; line-height: 1.8; color: var(--ht-text); }
.ht-article ul, .ht-article ol { margin: 0 0 22px 24px; }
.ht-article li { margin-bottom: 8px; line-height: 1.7; }
.ht-callout { background: var(--ht-teal-light); border-left: 4px solid var(--ht-teal); padding: 18px 22px; border-radius: 8px; margin: 28px 0; }
.ht-callout h4 { color: #0f766e; font-size: 16px; margin-bottom: 4px; }
.ht-callout p { color: #115e59; margin: 0; font-size: 15px; }

/* Table */
.ht-table-wrap { overflow-x: auto; margin: 26px 0; }
.ht-table { width: 100%; border-collapse: collapse; text-align: left; }
.ht-table th, .ht-table td { padding: 13px 16px; border-bottom: 1px solid var(--ht-border); font-size: 14px; }
.ht-table th { background: var(--ht-bg); font-weight: 700; color: var(--ht-primary); }

/* Form */
.ht-form { display: grid; gap: 18px; }
.ht-form-group { display: flex; flex-direction: column; gap: 6px; }
.ht-form-group label { font-weight: 600; font-size: 14px; color: var(--ht-primary); }
.ht-form-control { padding: 12px 15px; border: 1px solid var(--ht-border); border-radius: 8px; font-size: 15px; font-family: inherit; }
.ht-form-control:focus { outline: none; border-color: var(--ht-teal); box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.2); }
textarea.ht-form-control { min-height: 120px; resize: vertical; }

/* Footer */
.ht-footer { background: var(--ht-primary); color: #94a3b8; padding: 65px 0 25px; font-size: 14px; }
.ht-footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.5fr; gap: 36px; margin-bottom: 45px; }
.ht-footer h4 { color: #fff; font-size: 15px; font-weight: 700; margin-bottom: 18px; }
.ht-footer-links { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.ht-footer-links a { color: #94a3b8; }
.ht-footer-links a:hover { color: #fff; }
.ht-footer-bottom { border-top: 1px solid rgba(255,255,255,0.08); padding-top: 25px; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px; font-size: 13px; color: #64748b; }

/* Cookie Banner */
.ht-cookie-banner { position: fixed; bottom: 20px; right: 20px; max-width: 400px; background: var(--ht-primary); color: #fff; padding: 22px; border-radius: var(--ht-radius); 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; }
.ht-cookie-banner.active { display: block; animation: htFade 0.3s ease; }
.ht-cookie-btns { display: flex; gap: 10px; margin-top: 14px; }

@keyframes htFade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: translateY(0); } }

@media (max-width: 868px) {
  .ht-bento-grid, .ht-footer-grid { grid-template-columns: 1fr; }
  .ht-nav-links { display: none; position: absolute; top: 74px; left: 0; right: 0; background: #fff; flex-direction: column; padding: 20px; border-bottom: 1px solid var(--ht-border); box-shadow: var(--ht-shadow); }
  .ht-nav-links.open { display: flex; }
  .ht-mobile-toggle { display: block; }
  .ht-bento-main h1 { font-size: 30px; }
  .ht-article { padding: 20px; }
}
