/* ==========================================================================
   F1 Digital Media theme — additions on top of design.css
   (design.css is the original site's stylesheet, kept intact so the look
   matches exactly. Everything here is WordPress integration, accessibility
   and inner-page styling.)
   ========================================================================== */

/* Self-hosted fonts (no Google Fonts request) */
@font-face{font-family:'Space Grotesk';font-style:normal;font-weight:400;font-display:swap;src:url(../fonts/space-grotesk-latin-400-normal.woff2) format('woff2')}
@font-face{font-family:'Space Grotesk';font-style:normal;font-weight:500;font-display:swap;src:url(../fonts/space-grotesk-latin-500-normal.woff2) format('woff2')}
@font-face{font-family:'Space Grotesk';font-style:normal;font-weight:600;font-display:swap;src:url(../fonts/space-grotesk-latin-600-normal.woff2) format('woff2')}
@font-face{font-family:'Space Grotesk';font-style:normal;font-weight:700;font-display:swap;src:url(../fonts/space-grotesk-latin-700-normal.woff2) format('woff2')}
@font-face{font-family:'Syne';font-style:normal;font-weight:400;font-display:swap;src:url(../fonts/syne-latin-400-normal.woff2) format('woff2')}
@font-face{font-family:'Syne';font-style:normal;font-weight:500;font-display:swap;src:url(../fonts/syne-latin-500-normal.woff2) format('woff2')}
@font-face{font-family:'Syne';font-style:normal;font-weight:600;font-display:swap;src:url(../fonts/syne-latin-600-normal.woff2) format('woff2')}
@font-face{font-family:'Syne';font-style:normal;font-weight:700;font-display:swap;src:url(../fonts/syne-latin-700-normal.woff2) format('woff2')}

/* Contrast: small grey labels nudged darker to meet WCAG AA (was #8b8a99) */
:root{--muted2:#706f80}
.trust-label,.metric-col-label,.metric-card-brand,.author-role,.case-metric-label,.outcome-label{color:var(--muted2)}

/* Accessibility --------------------------------------------------------- */
.skip-link{position:absolute;left:12px;top:-60px;z-index:10000;background:#141414;color:#fff;padding:10px 16px;border-radius:8px;text-decoration:none;font-weight:600}
.skip-link:focus{top:12px}
.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!important;width:1px;word-wrap:normal!important}
:focus-visible{outline:3px solid #c0399a;outline-offset:3px;border-radius:4px}

/* Hamburger is a real <button> now */
button.nav-hamburger{background:none;border:0;padding:8px;margin:-8px}
.nav-links,.nav-mobile-links{margin:0;padding:0}
.nav-links li,.nav-mobile-links li{list-style:none}

/* Reveal only hides content when JS is running (no blank sections without JS) */
html:not(.js) .reveal{opacity:1;transform:none}

@media (prefers-reduced-motion:reduce){
  html{scroll-behavior:auto}
  .reveal{opacity:1!important;transform:none!important;transition:none!important}
  .hero-badge-dot,.hero-illustration g{animation:none!important}
}

/* WP admin bar offset for the fixed navbar */
.admin-bar #navbar{top:32px}
@media (max-width:782px){.admin-bar #navbar{top:46px}}

/* Logo sizing for custom-logo output */
.nav-logo img,.custom-logo{width:290px;max-width:100%;height:auto;display:block}
@media(max-width:768px){.nav-logo img,.custom-logo{width:240px}}

/* FAQ: answers are toggled via [hidden] + aria-expanded */
.faq-item .faq-answer{display:block}
.faq-answer[hidden]{display:none}
.faq-question[aria-expanded="true"] .faq-icon{transform:rotate(45deg)}
.faq-question[aria-expanded="true"]{color:#c0399a}

/* Form feedback + honeypot */
.form-msg{display:none;border-radius:10px;padding:14px 18px;margin-bottom:20px;font-size:.9rem;line-height:1.5;font-weight:500}
.form-msg.is-success{display:block;background:#f0fdf4;border:1px solid #86efac;color:#15803d}
.form-msg.is-error{display:block;background:#fef2f2;border:1px solid #fca5a5;color:#b91c1c}
.f1-hp{position:absolute!important;left:-9999px;width:1px;height:1px;overflow:hidden}
.form-submit[disabled]{opacity:.7;cursor:progress}
.form-note{font-size:.8rem;color:var(--muted);margin-top:12px;line-height:1.5}
.form-note a{color:#c0399a}
.contact-next{margin-top:32px;padding:24px;background:var(--glass2);border:1px solid var(--border);border-radius:16px}
.contact-next-title{font-size:.75rem;color:#c0399a;letter-spacing:.1em;text-transform:uppercase;margin-bottom:10px}
.contact-next ol{list-style:none;display:flex;flex-direction:column;gap:10px;font-size:.85rem;color:#555566;line-height:1.6;margin:0;padding:0}
.contact-detail a{color:inherit;text-decoration:none}
.contact-detail a:hover{color:#c0399a}

/* CTA banner pill + outcome label (inline styles moved here) */
.cta-pill{margin-top:24px;display:inline-flex;align-items:center;gap:8px;background:rgba(255,255,255,.18);border:1px solid rgba(255,255,255,.3);border-radius:100px;padding:7px 18px;font-size:.82rem;color:#fff;font-weight:500;backdrop-filter:blur(6px)}
.cta-pill-dot{width:8px;height:8px;border-radius:50%;background:#fbbf24;display:inline-block;flex-shrink:0}
#cta-banner .section-eyebrow{color:rgba(255,255,255,.9)}
.outcome-label{font-size:.8rem}
.section-head{text-align:center}
.footer-links a[href=""],.footer-links span{color:rgba(255,255,255,.55);font-size:1rem}
.footer-brand-desc{color:rgba(255,255,255,.6)}
.footer-copy{color:rgba(255,255,255,.6)}
.footer-bottom-links{display:flex;gap:20px;list-style:none;margin:0;padding:0}
.footer-bottom-links a{color:rgba(255,255,255,.6);font-size:.9rem;text-decoration:none}
.footer-bottom-links a:hover{color:#fff}
#cta-banner + #contact,.cta-wrap + #contact{margin-top:0}
.cta-wrap{padding:0 0 100px;background:var(--navy)}

/* ==========================================================================
   Inner pages (blog, privacy policy, any WordPress page)
   ========================================================================== */
.page-hero{padding:150px 5% 60px;background:var(--navy2);border-bottom:1px solid var(--border);position:relative;overflow:hidden}
.page-hero .hero-grid-lines{opacity:.8}
.page-hero-inner{max-width:760px;margin:0 auto;position:relative}
.page-hero h1{font-family:var(--ff-display);font-size:clamp(2.2rem,4.5vw,3.4rem);font-weight:600;line-height:1.12;color:#141414;letter-spacing:-.02em}
.page-hero .entry-meta{margin-top:14px;color:var(--muted);font-size:.95rem}
.entry-wrap{padding:64px 5% 100px}
.entry-content{max-width:760px;margin:0 auto;font-size:1.075rem;line-height:1.8;color:#2c2c3a}
.entry-content>*+*{margin-top:1.1em}
.entry-content h2,.entry-content h3,.entry-content h4{font-family:var(--ff-display);color:#141414;line-height:1.25;margin-top:1.8em}
.entry-content h2{font-size:1.75rem}.entry-content h3{font-size:1.35rem}
.entry-content a{color:#c0399a}
.entry-content ul,.entry-content ol{padding-left:1.4em}
.entry-content img{max-width:100%;height:auto;border-radius:12px}
.entry-content blockquote{border-left:3px solid #c0399a;padding-left:1.2em;color:var(--muted);font-style:italic}
.entry-content .wp-block-button__link{background:var(--accent-gradient);color:#fff;border-radius:8px;text-decoration:none}
.alignwide{max-width:1100px;margin-left:auto;margin-right:auto}
.alignfull{max-width:none}
.aligncenter{margin-left:auto;margin-right:auto}

.post-list{max-width:1100px;margin:0 auto;display:grid;grid-template-columns:repeat(auto-fill,minmax(300px,1fr));gap:24px}
.post-card{background:#fff;border:1px solid var(--border);border-radius:20px;overflow:hidden;box-shadow:0 2px 16px rgba(0,0,0,.05);transition:border-color .3s,transform .3s}
.post-card:hover{border-color:#c0399a;transform:translateY(-3px)}
.post-card a{text-decoration:none;color:inherit;display:block}
.post-card img{width:100%;height:200px;object-fit:cover;display:block}
.post-card-body{padding:24px 26px 28px}
.post-card-date{font-size:.8rem;color:var(--muted2)}
.post-card h2{font-family:var(--ff-display);font-size:1.25rem;color:#141414;margin:6px 0 10px;line-height:1.3}
.post-card p{color:var(--muted);font-size:.98rem;line-height:1.65}
.pagination{max-width:1100px;margin:48px auto 0;display:flex;gap:8px;justify-content:center}
.pagination .page-numbers{padding:8px 14px;border:1px solid var(--border);border-radius:8px;text-decoration:none;color:#141414}
.pagination .current{background:var(--accent-gradient);color:#fff;border-color:transparent}
.empty-state{text-align:center;max-width:560px;margin:0 auto}
.empty-state .btn-primary{margin-top:24px}
.footer-col-title{font-weight:400}
