/* Stable stylesheet for the PHP-rendered blog - mirrors the Next.js theme. */
:root{
  --bg:#0b0b0b;--surface:#141416;--surface2:#1c1c1f;--red:#e01e37;--reddeep:#b3001b;
  --text:#fff;--muted:rgba(255,255,255,.7);--border:rgba(255,255,255,.12);
}
*{box-sizing:border-box}
html,body{margin:0;padding:0;max-width:100vw;overflow-x:hidden}
body{background:var(--bg);color:var(--text);font-family:Inter,system-ui,-apple-system,Segoe UI,Roboto,sans-serif;line-height:1.6;-webkit-font-smoothing:antialiased}
a{color:inherit}
img{max-width:100%;height:auto}
h1,h2,h3,h4{font-family:Poppins,Inter,sans-serif;font-weight:700;line-height:1.1}
.wrap{width:100%;max-width:1280px;margin-inline:auto;padding-inline:1.25rem}
@media(min-width:768px){.wrap{padding-inline:2rem}}

/* header */
.site-header{position:sticky;top:0;z-index:50;background:rgba(11,11,11,.9);backdrop-filter:blur(8px);border-bottom:1px solid var(--border)}
.site-header .bar{display:flex;align-items:center;justify-content:space-between;height:72px}
.site-header img{height:42px;width:auto}
.site-header nav{display:none;gap:1.5rem}
.site-header nav a{font-size:.85rem;font-weight:600;text-transform:uppercase;letter-spacing:.04em;color:var(--muted);text-decoration:none}
.site-header nav a:hover{color:#fff}
.site-header .cta{background:var(--reddeep);color:#fff;padding:.6rem 1.1rem;border-radius:.55rem;font-weight:700;font-size:.85rem;text-transform:uppercase;text-decoration:none}
.site-header .cta:hover{background:var(--red)}
@media(min-width:1024px){.site-header nav{display:flex}}

/* blog list */
.page-head{padding:7rem 0 2rem;text-align:center}
.page-head .eyebrow{color:var(--red);font-weight:700;text-transform:uppercase;letter-spacing:.2em;font-size:.8rem}
.page-head h1{font-size:clamp(2rem,5vw,3.5rem);text-transform:uppercase;margin:.5rem 0 0}
.grid{display:grid;grid-template-columns:1fr;gap:1.5rem;padding-bottom:4rem}
@media(min-width:640px){.grid{grid-template-columns:1fr 1fr}}
@media(min-width:1024px){.grid{grid-template-columns:1fr 1fr 1fr}}
.post-card{display:flex;flex-direction:column;background:var(--surface);border:1px solid var(--border);border-radius:1rem;overflow:hidden;text-decoration:none;transition:border-color .2s}
.post-card:hover{border-color:rgba(224,30,55,.6)}
.post-card .thumb{aspect-ratio:16/10;width:100%;object-fit:cover;background:var(--surface2)}
.post-card .body{padding:1.25rem;display:flex;flex-direction:column;flex:1}
.post-card h2{font-size:1.15rem;margin:0 0 .5rem}
.post-card .meta{color:var(--muted);font-size:.8rem;margin-bottom:.6rem}
.post-card p{color:var(--muted);font-size:.9rem;margin:0;flex:1}
.post-card .more{color:var(--red);font-weight:600;font-size:.85rem;margin-top:1rem}

/* single post */
.article{padding:7rem 0 4rem;max-width:760px}
.article .eyebrow{color:var(--red);font-weight:700;text-transform:uppercase;letter-spacing:.15em;font-size:.78rem}
.article h1{font-size:clamp(1.9rem,4.5vw,3rem);margin:.6rem 0 1rem}
.article .meta{color:var(--muted);font-size:.85rem;margin-bottom:1.5rem}
.article .hero-img{width:100%;border-radius:1rem;border:1px solid var(--border);margin-bottom:2rem}
.article .content{font-size:1.05rem;color:rgba(255,255,255,.85)}
.article .content h2{font-size:1.6rem;margin:2rem 0 .8rem}
.article .content h3{font-size:1.3rem;margin:1.6rem 0 .6rem}
.article .content p{margin:0 0 1.1rem}
.article .content a{color:var(--red);text-decoration:underline;text-underline-offset:3px}
.article .content img{border-radius:.6rem;margin:1rem 0}
.article .content ul,.article .content ol{padding-left:1.4rem;margin:0 0 1.1rem}
.article .content blockquote{border-left:3px solid var(--red);margin:1.2rem 0;padding:.4rem 0 .4rem 1.2rem;color:var(--muted);font-style:italic}
.back-link{display:inline-block;margin-bottom:1.5rem;color:var(--muted);text-decoration:none;font-size:.9rem}
.back-link:hover{color:#fff}

/* footer - mirrors the Next.js footer */
.site-footer{border-top:1px solid var(--border);background:var(--bg);margin-top:2rem}
.foot-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:2rem;padding:3rem 1.25rem}
@media(min-width:768px){.foot-grid{grid-template-columns:repeat(4,1fr);gap:2.5rem;padding:3.5rem 2rem}}
.foot-brand{grid-column:span 2}
@media(min-width:768px){.foot-brand{grid-column:span 1}}
.foot-brand img{height:48px;width:auto}
.foot-brand p{color:var(--muted);font-size:.875rem;line-height:1.6;margin:1rem 0 0;max-width:20rem}
.foot-col h2{font-family:Poppins,sans-serif;font-size:.75rem;font-weight:700;text-transform:uppercase;letter-spacing:.2em;color:rgba(255,255,255,.5);margin:0}
.foot-col ul{list-style:none;margin:1.25rem 0 0;padding:0;display:flex;flex-direction:column;gap:.75rem}
.foot-col a{display:inline-flex;align-items:center;gap:.625rem;color:rgba(255,255,255,.8);text-decoration:none;font-size:.875rem}
.foot-col a:hover{color:#fff}
.ic-red{display:inline-flex;align-items:center;color:var(--red);flex:0 0 auto}
.ic-red svg{width:16px;height:16px;display:block}
.foot-contact{grid-column:span 2}
@media(min-width:768px){.foot-contact{grid-column:span 1}}
.foot-contact li{display:flex;align-items:center;gap:.75rem;color:rgba(255,255,255,.8);font-size:.875rem}
.foot-contact li a{color:inherit;text-decoration:none}
.foot-contact li a:hover{text-decoration:underline;text-underline-offset:4px}
.foot-areas{color:rgba(255,255,255,.4);font-size:.75rem;margin:1.5rem 0 0}
.foot-wa{display:inline-flex;align-items:center;gap:.5rem;margin-top:1.25rem;background:var(--reddeep);color:#fff;padding:.625rem 1.25rem;border-radius:.5rem;font-weight:700;text-transform:uppercase;font-size:.875rem;letter-spacing:.03em;text-decoration:none}
.foot-wa svg{width:16px;height:16px}
.foot-wa:hover{background:var(--red)}
.foot-legal{display:flex;flex-direction:column;gap:.75rem;justify-content:space-between;align-items:center;border-top:1px solid var(--border);padding:1.5rem 1.25rem;color:rgba(255,255,255,.5);font-size:.75rem}
@media(min-width:640px){.foot-legal{flex-direction:row;padding-inline:2rem}}
.foot-legal-links{display:flex;gap:1.5rem;align-items:center}
.foot-legal a{color:rgba(255,255,255,.5);text-decoration:none}
.foot-legal a:hover{color:#fff}
.foot-credit{display:inline-flex;align-items:center;gap:.4rem;font-size:.5625rem!important;font-weight:700;text-transform:uppercase;letter-spacing:.3em;color:rgba(255,255,255,.3)!important}
.foot-credit:hover{color:var(--red)!important}

/* floating action button */
.fab{position:fixed;right:1.25rem;bottom:1.25rem;z-index:70;display:flex;flex-direction:column;align-items:flex-end;gap:.75rem}
.fab-actions{display:flex;flex-direction:column;align-items:flex-end;gap:.6rem}
.fab-act{display:inline-flex;align-items:center;justify-content:center;padding:.6rem 1.1rem;border-radius:999px;font-weight:700;font-size:.85rem;color:#fff;text-decoration:none;box-shadow:0 6px 20px rgba(0,0,0,.4)}
.fab-wa{background:#25D366}
.fab-call{background:var(--reddeep)}
.fab-toggle{width:56px;height:56px;border-radius:50%;border:0;background:var(--red);color:#fff;font-size:1.5rem;line-height:1;cursor:pointer;box-shadow:0 8px 24px rgba(0,0,0,.45);display:flex;align-items:center;justify-content:center}

/* branded 404 (matches the Next not-found page) */
.nf{min-height:60vh;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;padding:6rem 1.25rem}
.nf img{height:48px;width:auto;margin-bottom:2rem}
.nf .code{font-family:Poppins,sans-serif;font-size:clamp(4rem,14vw,8rem);font-weight:800;line-height:1;color:var(--red);margin:0}
.nf h1{font-size:1.6rem;text-transform:uppercase;margin:.6rem 0 0}
.nf p{color:var(--muted);max-width:30rem;margin:.8rem auto 0}
.nf .nf-actions{display:flex;flex-wrap:wrap;gap:.8rem;justify-content:center;margin-top:2rem}
.nf .btn{padding:.75rem 1.4rem;border-radius:.6rem;font-weight:700;text-transform:uppercase;font-size:.85rem;letter-spacing:.03em;text-decoration:none}
.nf .btn-primary{background:var(--reddeep);color:#fff}
.nf .btn-primary:hover{background:var(--red)}
.nf .btn-ghost{border:1px solid rgba(255,255,255,.3);color:#fff}
.nf .nf-links{display:flex;flex-wrap:wrap;gap:1.4rem;justify-content:center;margin-top:2.5rem}
.nf .nf-links a{color:var(--muted);text-decoration:none;font-size:.9rem}
.nf .nf-links a:hover{color:#fff}

.pagination{display:flex;gap:1rem;justify-content:center;align-items:center;padding-bottom:4rem}
.pagination a{background:var(--surface);border:1px solid var(--border);padding:.6rem 1.1rem;border-radius:.55rem;text-decoration:none;font-weight:600}
.pagination a:hover{border-color:var(--red)}
.empty{text-align:center;color:var(--muted);padding:3rem 0 5rem}

/* GDPR cookie consent modal (mirrors the Next component) */
.cookie-modal{position:fixed;inset:0;z-index:100;display:flex;align-items:center;justify-content:center;background:rgba(0,0,0,.7);backdrop-filter:blur(4px);padding:1rem}
.cookie-modal[hidden]{display:none}
.cookie-card{width:100%;max-width:28rem;background:var(--surface);border:1px solid var(--border);border-radius:1rem;padding:1.5rem;text-align:center;box-shadow:0 20px 60px rgba(0,0,0,.5)}
@media(min-width:640px){.cookie-card{padding:2rem}}
.cookie-card img{height:44px;width:auto;margin:0 auto;display:block}
.cookie-card h2{font-family:Poppins,sans-serif;font-size:1.25rem;font-weight:800;text-transform:uppercase;margin:1.25rem 0 0}
.cookie-card p{color:var(--muted);font-size:.875rem;line-height:1.6;margin:.75rem 0 0}
.cookie-card a{color:var(--red);text-decoration:underline;text-underline-offset:2px}
.cookie-card a:hover{color:#fff}
.cookie-actions{display:flex;flex-direction:column;gap:.75rem;margin-top:1.5rem}
@media(min-width:640px){.cookie-actions{flex-direction:row}}
.cookie-btn{flex:1;border-radius:.5rem;padding:.75rem 1.25rem;font-weight:700;font-size:.875rem;text-transform:uppercase;letter-spacing:.03em;cursor:pointer;border:0}
.cookie-btn.primary{background:var(--reddeep);color:#fff;order:1}
.cookie-btn.primary:hover{background:var(--red)}
.cookie-btn.ghost{background:transparent;border:1px solid rgba(255,255,255,.3);color:#fff;order:2}
.cookie-btn.ghost:hover{background:rgba(255,255,255,.1)}
@media(min-width:640px){.cookie-btn.ghost{order:1}.cookie-btn.primary{order:2}}
