/*
Theme Name: Haptic
Theme URI: https://haptic.io
Author: Haptic
Description: Marketing-site theme for Haptic (enterprise accessibility platform). Ships the full design system, header/footer with a real WordPress menu, and a one-click setup that creates all seven pages as Elementor-editable content.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: haptic
*/

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
:root {
  --ink:      #0F1F10;
  --forest:   #1A3D1F;
  --green:    #2D5A27;
  --greenmd:  #3D7A35;
  --greenlt:  #EBF2EA;
  --greenxl:  #F4F8F3;
  --amber:    #F5B800;
  --amberdk:  #C89600;
  --amberlt:  #FDF6D0;
  --ambermd:  #FFC425;
  --paper:    #FFFFFF;
  --bone:     #F8F7F3;
  --mute:     #4A5C4B;
  --faint:    #8A9E8B;
  --border:   rgba(15,31,16,0.09);
  --border-med: rgba(15,31,16,0.14);
}
html { scroll-behavior: smooth; }
body { font-family: 'Inter', -apple-system, system-ui, sans-serif; color: var(--ink); background: var(--bone); -webkit-font-smoothing: antialiased; }
a { text-decoration: none; color: inherit; }
button { cursor: pointer; font-family: inherit; }

/* NAV */
.nav { position: sticky; top: 0; z-index: 100; background: rgba(248,247,243,0.94); backdrop-filter: blur(14px); border-bottom: 0.5px solid var(--border); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; max-width: 1200px; margin: 0 auto; padding: 0 40px; }
.brand { display: flex; align-items: center; gap: 10px; cursor: pointer; }
.brand-logo { display: flex; align-items: center; gap: 0; }
/* Inline SVG brand mark */
.brand-text { font-size: 22px; font-weight: 700; letter-spacing: -0.01em; color: var(--forest); font-family: 'Inter', sans-serif; }
.brand-text .hap { color: var(--forest); }
.brand-text .i-wrap { position: relative; display: inline-block; }
.brand-text .i-circle { display: inline-block; width: 22px; height: 22px; background: var(--ambermd); border-radius: 50%; vertical-align: middle; position: relative; top: -1px; margin: 0 0px; }
.brand-text .i-fig { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -52%); }
.brand-text .tic { color: var(--forest); }
.brand-sub { font-size: 10px; color: var(--faint); letter-spacing: 0.08em; text-transform: uppercase; border-left: 1px solid var(--border-med); padding-left: 10px; margin-left: 4px; }
.navlinks { display: flex; gap: 4px; align-items: center; }
.navlinks button { font-size: 13.5px; color: #3A4A3B; background: none; border: none; padding: 7px 13px; border-radius: 6px; transition: background 0.15s; }
.navlinks button:hover { background: rgba(15,31,16,0.05); }
.navlinks button.active { color: var(--forest); font-weight: 500; background: rgba(15,31,16,0.06); }
.navlinks .parent-link { font-size: 12px; color: var(--faint); display: flex; align-items: center; gap: 5px; padding: 7px 10px; margin-right: 8px; }
.nav-cta { font-size: 13px; color: var(--ink) !important; background: var(--amber); border: none !important; padding: 9px 18px; border-radius: 7px; margin-left: 8px; font-weight: 600; transition: background 0.15s; }
.nav-cta:hover { background: var(--amberdk) !important; }
.nav-toggle { display: none; background: none; border: none; font-size: 22px; color: var(--ink); }

/* PAGE SYSTEM */
.art { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 0; }
.layer { position: relative; z-index: 1; }
.section-inner { max-width: 1200px; margin: 0 auto; }

/* BUTTONS */
.btn-green { background: var(--forest); color: #fff; font-size: 14px; padding: 12px 22px; border-radius: 8px; border: none; display: inline-flex; align-items: center; gap: 8px; cursor: pointer; transition: background 0.15s, transform 0.12s; }
.btn-green:hover { background: var(--ink); transform: translateY(-1px); }
.btn-amber { background: var(--amber); color: var(--ink); font-size: 14px; font-weight: 600; padding: 12px 22px; border-radius: 8px; border: none; display: inline-flex; align-items: center; gap: 8px; cursor: pointer; transition: background 0.15s, transform 0.12s; }
.btn-amber:hover { background: var(--amberdk); transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--ink); font-size: 14px; padding: 12px 22px; border-radius: 8px; border: 0.5px solid rgba(15,31,16,0.26); display: inline-flex; align-items: center; gap: 8px; cursor: pointer; transition: background 0.15s; }
.btn-ghost:hover { background: rgba(15,31,16,0.04); }
.btn-ghost-light { background: transparent; color: #fff; font-size: 14px; padding: 12px 22px; border-radius: 8px; border: 0.5px solid rgba(255,255,255,0.3); display: inline-flex; align-items: center; gap: 8px; cursor: pointer; transition: background 0.15s; }
.btn-ghost-light:hover { background: rgba(255,255,255,0.08); }

/* SHARED */
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font-size: 11.5px; letter-spacing: 0.15em; text-transform: uppercase; color: var(--greenmd); margin-bottom: 24px; }
.eyebrow .rule { width: 26px; height: 1.5px; background: var(--amber); }
.eyebrow.light { color: rgba(255,255,255,0.6); }
.section { padding: 80px 40px; position: relative; overflow: hidden; }
.section.bone { background: var(--bone); }
.section.white { background: var(--paper); }
.section.dark { background: var(--forest); }
.section.ink { background: var(--ink); }
.section.amber { background: var(--amberlt); }
.section.greenxl { background: var(--greenxl); }
.sec-head { display: flex; align-items: flex-start; gap: 28px; }
.sec-num { font-family: 'Fraunces', Georgia, serif; font-size: 15px; color: var(--faint); padding-top: 8px; min-width: 38px; }
.sec-eyebrow { font-size: 11.5px; letter-spacing: 0.15em; text-transform: uppercase; color: var(--greenmd); margin-bottom: 14px; }
.section h2 { font-family: 'Fraunces', Georgia, serif; font-size: 36px; font-weight: 400; letter-spacing: -0.02em; line-height: 1.12; }
.section h2 em { font-style: italic; }
.section .lead { font-size: 16px; color: var(--mute); max-width: 560px; margin-top: 18px; line-height: 1.72; }

/* HERO */
.hero { position: relative; overflow: hidden; padding: 96px 40px 72px; background: var(--bone); }
.hero-inner { max-width: 1200px; margin: 0 auto; }
.hero-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 56px; align-items: center; }
.hero h1 { font-family: 'Fraunces', Georgia, serif; font-size: 52px; line-height: 1.04; font-weight: 400; letter-spacing: -0.025em; }
.hero h1 em { font-style: italic; color: var(--greenmd); }
.hero-desc { font-size: 16px; line-height: 1.74; color: var(--mute); margin-top: 24px; max-width: 500px; }
.hero-actions { display: flex; gap: 12px; margin-top: 30px; flex-wrap: wrap; }

/* SCENARIO CARD */
.scenario-card { background: var(--ink); border-radius: 18px; padding: 0; overflow: hidden; }
.sc-header { padding: 16px 22px; border-bottom: 0.5px solid rgba(255,255,255,0.08); display: flex; align-items: center; gap: 12px; }
.sc-icon-wrap { width: 32px; height: 32px; border-radius: 8px; background: rgba(245,184,0,0.18); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.sc-icon-wrap i { font-size: 17px; color: var(--amber); }
.sc-title { font-size: 13px; font-weight: 500; color: var(--bone); }
.sc-body { padding: 22px; display: flex; flex-direction: column; gap: 14px; }
.sc-scenario { background: rgba(255,255,255,0.05); border-radius: 10px; padding: 16px; border-left: 2px solid var(--amber); }
.sc-scenario p { font-size: 12.5px; color: rgba(255,255,255,0.7); line-height: 1.65; font-style: italic; }
.sc-scenario .sc-label { font-size: 10px; text-transform: uppercase; letter-spacing: 0.1em; color: var(--amber); margin-bottom: 8px; font-style: normal; font-weight: 600; }
.sc-stat { display: flex; align-items: center; gap: 14px; background: rgba(255,255,255,0.04); border-radius: 10px; padding: 14px; }
.sc-stat-n { font-family: 'Fraunces', Georgia, serif; font-size: 28px; color: var(--amber); line-height: 1; flex-shrink: 0; }
.sc-stat-l { font-size: 12px; color: rgba(255,255,255,0.55); line-height: 1.4; }

/* STAT STRIPE */
.stripe { display: grid; grid-template-columns: repeat(4,1fr); border-top: 0.5px solid var(--border); border-bottom: 0.5px solid var(--border); background: var(--paper); }
.stat { padding: 24px 30px; border-right: 0.5px solid var(--border); }
.stat:last-child { border-right: none; }
.stat .n { font-family: 'Fraunces', Georgia, serif; font-size: 26px; font-weight: 400; color: var(--forest); }
.stat .l { font-size: 12px; color: var(--mute); margin-top: 5px; line-height: 1.4; }

/* LIFECYCLE STEPS */
.lifecycle { display: grid; grid-template-columns: repeat(6,1fr); gap: 0; margin-top: 44px; border: 0.5px solid var(--border-med); border-radius: 14px; overflow: hidden; }
.lc-step { padding: 24px 20px; border-right: 0.5px solid var(--border); background: var(--paper); display: flex; flex-direction: column; gap: 10px; position: relative; }
.lc-step:last-child { border-right: none; }
.lc-step.active-step { background: var(--forest); }
.lc-num { font-family: 'Fraunces', Georgia, serif; font-size: 28px; font-weight: 400; color: var(--greenlt); -webkit-text-stroke: 1px var(--green); line-height: 1; }
.lc-step.active-step .lc-num { color: rgba(245,184,0,0.25); -webkit-text-stroke: 1px var(--amber); }
.lc-step .lc-name { font-size: 14px; font-weight: 600; color: var(--ink); }
.lc-step.active-step .lc-name { color: var(--bone); }
.lc-step .lc-desc { font-size: 12px; color: var(--mute); line-height: 1.55; }
.lc-step.active-step .lc-desc { color: rgba(255,255,255,0.6); }
.lc-badge { display: inline-block; font-size: 9px; text-transform: uppercase; letter-spacing: 0.08em; background: var(--amber); color: var(--ink); padding: 2px 7px; border-radius: 10px; font-weight: 600; width: fit-content; }

/* CAPABILITY CARDS */
.cap-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 20px; margin-top: 44px; }
.cap { background: var(--paper); border: 0.5px solid var(--border-med); border-radius: 14px; padding: 30px; transition: box-shadow 0.2s; }
.cap:hover { box-shadow: 0 4px 20px rgba(15,31,16,0.08); }
.cap-ico { width: 48px; height: 48px; border-radius: 12px; background: var(--greenlt); display: flex; align-items: center; justify-content: center; margin-bottom: 18px; }
.cap-ico i { font-size: 24px; color: var(--forest); }
.cap-ico.amber-bg { background: var(--amberlt); }
.cap-ico.amber-bg i { color: var(--amberdk); }
.cap h3 { font-family: 'Fraunces', Georgia, serif; font-size: 21px; font-weight: 400; margin-bottom: 12px; }
.cap p { font-size: 14px; color: var(--mute); line-height: 1.68; }
.cap-list { list-style: none; margin-top: 14px; }
.cap-list li { font-size: 13px; color: #44444A; display: flex; align-items: flex-start; gap: 10px; padding: 9px 0; border-top: 0.5px solid rgba(15,31,16,0.07); line-height: 1.48; }
.cap-list li i { font-size: 15px; color: var(--forest); flex-shrink: 0; margin-top: 1px; }

/* AUDIENCE GRID */
.aud-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; margin-top: 44px; }
.aud-card { background: var(--paper); border: 0.5px solid var(--border-med); border-radius: 14px; padding: 28px; transition: box-shadow 0.2s; }
.aud-card:hover { box-shadow: 0 4px 20px rgba(15,31,16,0.07); }
.aud-ico { width: 44px; height: 44px; border-radius: 11px; background: var(--greenlt); display: flex; align-items: center; justify-content: center; margin-bottom: 16px; }
.aud-ico i { font-size: 22px; color: var(--forest); }
.aud-card h3 { font-family: 'Fraunces', Georgia, serif; font-size: 19px; font-weight: 400; margin-bottom: 10px; }
.aud-card p { font-size: 13.5px; color: var(--mute); line-height: 1.65; }
.aud-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
.aud-tag { font-size: 11px; padding: 3px 9px; border-radius: 20px; background: var(--greenlt); color: var(--greenmd); }

/* REGULATORY */
.reg-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 16px; margin-top: 44px; position: relative; z-index: 1; }
.reg { border: 0.5px solid rgba(255,255,255,0.13); border-radius: 13px; padding: 24px; transition: border-color 0.2s; }
.reg:hover { border-color: rgba(245,184,0,0.35); }
.reg .rflag { font-size: 20px; margin-bottom: 12px; }
.reg h4 { font-family: 'Fraunces', Georgia, serif; font-size: 17px; font-weight: 400; color: var(--bone); margin-bottom: 6px; }
.reg .rstd { font-size: 11.5px; color: var(--amber); margin-bottom: 10px; font-weight: 500; }
.reg p { font-size: 12.5px; color: rgba(255,255,255,0.55); line-height: 1.58; }
.reg .rtag { display: inline-block; font-size: 10px; text-transform: uppercase; letter-spacing: 0.07em; padding: 3px 9px; border-radius: 20px; background: rgba(245,184,0,0.14); color: var(--amber); margin-top: 10px; border: 0.5px solid rgba(245,184,0,0.25); }

/* ARABIC SECTION */
.arabic-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 44px; }
.ar-challenge { background: var(--paper); border: 0.5px solid var(--border-med); border-radius: 14px; padding: 26px; }
.ar-challenge .arc-title { font-size: 14px; font-weight: 600; margin-bottom: 6px; }
.ar-challenge .arc-impact { font-size: 12px; color: var(--amberdk); font-weight: 500; margin-bottom: 10px; display: flex; align-items: center; gap: 6px; }
.ar-challenge p { font-size: 13px; color: var(--mute); line-height: 1.62; }

/* HOW IT WORKS STEPS */
.hw-steps { display: flex; flex-direction: column; gap: 0; margin-top: 44px; }
.hw-step { display: grid; grid-template-columns: 80px 1fr; gap: 36px; padding: 36px 0; border-top: 0.5px solid var(--border); align-items: start; }
.hw-step:last-child { border-bottom: 0.5px solid var(--border); }
.hw-n { font-family: 'Fraunces', Georgia, serif; font-size: 46px; font-weight: 400; color: var(--greenlt); -webkit-text-stroke: 1.5px var(--green); line-height: 1; }
.hw-step h3 { font-family: 'Fraunces', Georgia, serif; font-size: 23px; font-weight: 400; margin-bottom: 10px; }
.hw-step p { font-size: 15px; color: var(--mute); line-height: 1.72; max-width: 620px; }
.hw-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.hw-tag { font-size: 11.5px; padding: 4px 12px; border-radius: 20px; background: var(--amberlt); color: var(--amberdk); font-weight: 500; }

/* CONTENT TYPES */
.ct-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 14px; margin-top: 44px; }
.ct { background: var(--paper); border: 0.5px solid var(--border-med); border-radius: 12px; padding: 20px 22px; display: flex; align-items: center; gap: 14px; }
.ct i { font-size: 22px; color: var(--forest); flex-shrink: 0; }
.ct div .ct-name { font-size: 14px; font-weight: 500; }
.ct div .ct-desc { font-size: 12px; color: var(--mute); margin-top: 2px; }

/* QUOTE PULL */
.pull-quote { background: var(--ink); border-radius: 16px; padding: 44px 48px; margin-top: 44px; position: relative; overflow: hidden; }
.pq-mark { font-family: 'Fraunces', Georgia, serif; font-size: 80px; color: var(--amber); opacity: 0.25; position: absolute; top: 16px; left: 36px; line-height: 1; }
.pq-text { font-family: 'Fraunces', Georgia, serif; font-size: 22px; font-weight: 400; color: var(--bone); line-height: 1.52; font-style: italic; position: relative; z-index: 1; max-width: 680px; }
.pq-text em { color: var(--amber); font-style: italic; }
.pq-source { font-size: 12px; color: rgba(255,255,255,0.4); margin-top: 18px; letter-spacing: 0.06em; text-transform: uppercase; position: relative; z-index: 1; }

/* ACCORDION */
.accordion { margin-top: 44px; border-top: 0.5px solid var(--border); }
.acc-item { border-bottom: 0.5px solid var(--border); }
.acc-header { display: flex; align-items: center; justify-content: space-between; padding: 20px 0; cursor: pointer; background: none; border: none; width: 100%; text-align: left; font-family: inherit; }
.acc-title { font-size: 16px; font-weight: 500; color: var(--ink); }
.acc-icon { font-size: 20px; color: var(--faint); transition: transform 0.2s; }
.acc-body { display: none; padding-bottom: 20px; }
.acc-body p { font-size: 14.5px; color: var(--mute); line-height: 1.72; }
.acc-item.open .acc-icon { transform: rotate(45deg); }
.acc-item.open .acc-body { display: block; }

/* CTA BAND */
.cta-band { padding: 88px 40px; text-align: center; position: relative; overflow: hidden; }
.cta-band h2 { font-family: 'Fraunces', Georgia, serif; font-size: 42px; font-weight: 400; letter-spacing: -0.02em; line-height: 1.1; position: relative; z-index: 1; max-width: 640px; margin: 0 auto; }
.cta-band h2 em { font-style: italic; color: var(--greenmd); }
.cta-band p { font-size: 16px; color: var(--mute); margin: 20px auto 32px; max-width: 480px; line-height: 1.66; position: relative; z-index: 1; }
.cta-actions { position: relative; z-index: 1; display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* CONTACT */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; margin-top: 52px; }
.contact-info h3 { font-family: 'Fraunces', Georgia, serif; font-size: 26px; font-weight: 400; margin-bottom: 16px; }
.contact-info p { font-size: 15px; color: var(--mute); line-height: 1.72; margin-bottom: 24px; }
.contact-detail { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 18px; }
.cd-icon { width: 40px; height: 40px; border-radius: 10px; background: var(--greenlt); display: flex; align-items: center; justify-content: center; flex-shrink: 0; font-size: 19px; color: var(--forest); }
.cd-label { font-size: 11px; color: var(--faint); text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 2px; }
.cd-val { font-size: 14px; color: var(--ink); }
.contact-form { display: flex; flex-direction: column; gap: 16px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-group { display: flex; flex-direction: column; gap: 7px; }
.form-group label { font-size: 12.5px; font-weight: 500; }
.form-group input, .form-group select, .form-group textarea { padding: 11px 14px; border: 0.5px solid var(--border-med); border-radius: 8px; font-size: 14px; font-family: inherit; color: var(--ink); background: var(--paper); outline: none; transition: border 0.15s; }
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { border-color: var(--forest); }
.form-group textarea { resize: vertical; min-height: 120px; }
.form-group select { appearance: none; cursor: pointer; }
.form-note { font-size: 12px; color: var(--faint); margin-top: 10px; }

/* TOAST */
.toast { position: fixed; bottom: 28px; right: 28px; z-index: 999; background: var(--forest); color: var(--bone); padding: 14px 22px; border-radius: 10px; font-size: 14px; display: flex; align-items: center; gap: 10px; transform: translateY(80px); opacity: 0; transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1); pointer-events: none; }
.toast.show { transform: translateY(0); opacity: 1; }

/* FOOTER */
footer { background: var(--ink); padding: 56px 40px 32px; }
.foot-inner { max-width: 1200px; margin: 0 auto; }
.foot-top { display: grid; grid-template-columns: 1.8fr 1fr 1fr 1fr; gap: 32px; }
.foot-brand .fb { font-size: 20px; font-weight: 700; color: var(--bone); letter-spacing: -0.01em; }
.foot-brand .fb .fa { color: var(--amber); }
.foot-brand p { font-size: 13px; color: #6A8A6B; line-height: 1.66; margin-top: 14px; max-width: 240px; }
.foot-col h4 { font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: #4A6A4B; margin-bottom: 16px; }
.foot-col a { display: block; font-size: 13px; color: #8AAA8B; margin-bottom: 10px; cursor: pointer; transition: color 0.12s; }
.foot-col a:hover { color: var(--bone); }
.foot-bottom { display: flex; justify-content: space-between; align-items: center; margin-top: 44px; padding-top: 22px; border-top: 0.5px solid rgba(255,255,255,0.08); }
.foot-bottom span { font-size: 12px; color: #4A6A4B; }

/* MOBILE */
@media (max-width: 768px) {
  .nav-toggle { display: block; }
  .navlinks { display: none; flex-direction: column; position: absolute; top: 64px; left: 0; right: 0; background: var(--bone); border-bottom: 0.5px solid var(--border); padding: 16px 24px; z-index: 99; }
  .navlinks.open { display: flex; }
  .navlinks button, .navlinks a, .navlinks .parent-link { width: 100%; text-align: left; }
  .hero { padding: 60px 24px 48px; }
  .hero-grid { grid-template-columns: 1fr; gap: 36px; }
  .hero h1 { font-size: 38px; }
  .section { padding: 56px 24px; }
  .lifecycle { grid-template-columns: repeat(3,1fr); }
  .cap-grid { grid-template-columns: 1fr; }
  .aud-grid { grid-template-columns: 1fr; }
  .reg-grid { grid-template-columns: 1fr 1fr; }
  .arabic-grid { grid-template-columns: 1fr; }
  .ct-grid { grid-template-columns: 1fr 1fr; }
  .stripe { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .foot-top { grid-template-columns: 1fr 1fr; }
  .hw-step { grid-template-columns: 52px 1fr; gap: 20px; }
  .hw-n { font-size: 32px; }
  .cta-band h2 { font-size: 32px; }
  .pull-quote { padding: 32px 28px; }
  .pq-text { font-size: 18px; }
}

/* ===== WordPress / accessibility additions ===== */
/* Nav links are real <a> elements now (they were <button>s in the static prototype). */
.navlinks a { font-size: 13.5px; color: #3A4A3B; background: none; border: none; padding: 7px 13px; border-radius: 6px; transition: background 0.15s; }
.navlinks a:hover { background: rgba(15,31,16,0.05); }
.navlinks a.active { color: var(--forest); font-weight: 500; background: rgba(15,31,16,0.06); }
.navlinks a.parent-link { font-size: 12px; color: var(--faint); display: flex; align-items: center; gap: 5px; padding: 7px 10px; margin-right: 8px; }
.navlinks a.nav-cta:hover { background: var(--amberdk) !important; }
a.btn-amber, a.btn-ghost, a.btn-ghost-light { text-decoration: none; }
.nav-toggle { color: inherit; }
/* Clickable cards: the heading link stretches over the whole card */
.haptic-card { transition: border-color 0.2s; }
.haptic-card:hover, .haptic-card:focus-within { border-color: rgba(245,184,0,0.35) !important; }
a.stretched-link { color: inherit; text-decoration: none; }
a.stretched-link::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
a.stretched-link:focus-visible { outline: none; }
.haptic-card:focus-within { outline: 2px solid var(--amber); outline-offset: 2px; }

/* Keyboard focus + skip link (this is an accessibility product, so lead by example) */
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 2px solid var(--green); outline-offset: 2px; }
.screen-reader-text { border: 0; clip: rect(1px,1px,1px,1px); clip-path: inset(50%); height: 1px; margin: -1px; overflow: hidden; padding: 0; position: absolute; width: 1px; word-wrap: normal !important; }
.skip-link:focus { clip: auto; clip-path: none; height: auto; width: auto; margin: 0; padding: 12px 18px; background: var(--forest); color: #fff; z-index: 100000; left: 12px; top: 12px; border-radius: 6px; }

/* Logged-in admin bar pushes the sticky nav down */
.admin-bar .nav { top: 32px; }
@media (max-width: 782px) { .admin-bar .nav { top: 46px; } }

/* Contact form (real <form> now) */
.hp-field { position: absolute !important; left: -9999px; height: 0; overflow: hidden; }
.form-status { font-size: 13px; margin: 0; color: var(--mute); }
.form-status:empty { position: absolute; width: 1px; height: 1px; overflow: hidden; } /* stays in the a11y tree, no layout gap */
.form-status:not(:empty) { margin-top: 10px; }
.form-status.is-error { color: #9B2C2C; }
.contact-form button[disabled] { opacity: 0.65; cursor: wait; }

/* Default WordPress content (blog posts, legal pages, 404...) */
.haptic-prose { max-width: 760px; margin: 0 auto; padding: 64px 24px 88px; line-height: 1.7; color: var(--ink); }
.haptic-prose h1, .haptic-prose h2, .haptic-prose h3 { font-family: 'Fraunces', Georgia, serif; font-weight: 400; letter-spacing: -0.02em; line-height: 1.15; margin: 1.6em 0 0.5em; }
.haptic-prose h1 { font-size: 40px; margin-top: 0; }
.haptic-prose h2 { font-size: 28px; }
.haptic-prose p, .haptic-prose ul, .haptic-prose ol { margin-bottom: 1.1em; }
.haptic-prose ul, .haptic-prose ol { padding-left: 1.4em; }
.haptic-prose a { color: var(--greenmd); text-decoration: underline; }
.haptic-prose img { max-width: 100%; height: auto; }
.haptic-post { margin-bottom: 40px; }
