/*
Theme Name: Naffi
Theme URI: https://naffi.nl
Author: John von Wells
Author URI: https://naffi.nl
Description: Dark, HUD-inspired, mobile-first theme for Naffi - the gamified offline-first driving HUD. Matches the app's look: deep dark background, amber accent, Rajdhani type, and a road/chevron motif.
Version: 1.1.4
Requires at least: 6.0
Tested up to: 6.6
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: naffi
*/

/* ===== Palette + tokens (from the Naffi app) ===== */
:root{
  --bg:        #06080f;   /* deep near-black navy */
  --bg-2:      #0c1019;   /* panels / cards */
  --line:      #1c2433;   /* hairline borders */
  --text:      #e8eaed;
  --muted:     #8a929a;   /* "DISCOVER THE ROADS" grey */
  --accent:    #f5a623;   /* amber chevron / GET STARTED */
  --accent-2:  #ffb703;
  --radius:    12px;
  --maxw:      820px;
}

*{ box-sizing:border-box; }
html{ -webkit-text-size-adjust:100%; }
body{
  margin:0; background:var(--bg); color:var(--text);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height:1.65; font-size:17px;
  -webkit-font-smoothing:antialiased;
}
img{ max-width:100%; height:auto; }
a{ color:var(--accent); text-decoration:none; }
a:hover{ text-decoration:underline; }

/* ===== Type: Rajdhani for brand/headings ===== */
h1,h2,h3,h4,.brand,.nav a,.btn{
  font-family:"Rajdhani", system-ui, sans-serif;
  letter-spacing:.5px;
}
h1{ font-size:2rem; font-weight:700; line-height:1.15; margin:.2em 0 .4em; }
h2{ font-size:1.5rem; font-weight:600; margin:1.6em 0 .4em; }
h3{ font-size:1.2rem; font-weight:600; margin:1.4em 0 .3em; }
.muted{ color:var(--muted); }

/* ===== Layout wrap ===== */
.wrap{ width:100%; max-width:var(--maxw); margin:0 auto; padding:0 18px; }

/* ===== Header ===== */
.site-header{
  position:sticky; top:0; z-index:20;
  background:rgba(6,8,15,.88); backdrop-filter:blur(8px);
  border-bottom:1px solid var(--line);
}
.site-header .wrap{ display:flex; align-items:center; justify-content:space-between; gap:12px;
  min-height:58px; flex-wrap:wrap; }
.brand{ display:inline-flex; align-items:center; gap:10px; font-size:1.5rem; font-weight:700;
  color:var(--text); text-decoration:none; letter-spacing:3px; }
.brand:hover{ text-decoration:none; }
.brand .tick{ width:4px; height:22px; background:var(--accent); display:inline-block; border-radius:2px; }
.brand-logo{ width:34px; height:34px; display:block; border-radius:8px; }  /* app icon, rounded */
.brand-wordmark{ height:20px; width:auto; display:block; }
.nav{ list-style:none; display:flex; flex-wrap:wrap; gap:6px 16px; margin:0; padding:0; }
.nav a{ color:var(--muted); text-transform:uppercase; font-size:.92rem; font-weight:600;
  letter-spacing:1.5px; padding:6px 2px; }
.nav a:hover,.nav .current-menu-item a{ color:var(--accent); text-decoration:none; }

/* ===== Buttons ===== */
.btn{
  display:inline-block; font-weight:700; text-transform:uppercase; letter-spacing:1.5px;
  color:var(--accent); background:transparent; border:1px solid var(--accent);
  padding:12px 26px; border-radius:10px; font-size:1rem; cursor:pointer;
}
.btn:hover{ background:var(--accent); color:#0a0a0a; text-decoration:none; }

/* ===== Hero (front page) ===== */
.hero{ position:relative; overflow:hidden; text-align:center; padding:48px 18px 64px; }
.hero-inner{ position:relative; z-index:2; }

/* Circular HUD minimap: dark disc, white road lines, white pulsing discovery rings, amber chevron */
.hud{ position:relative; z-index:1; width:min(82vw, 330px); margin:6px auto 26px; }
.hud-svg{ width:100%; height:auto; display:block; }
.hud-disc{ fill:#0a0e16; }
.hud-rim{ fill:none; stroke:#26303f; stroke-width:2; }
.hud-n{ fill:#fff; font-family:"Rajdhani",sans-serif; font-weight:700; font-size:18px; text-anchor:middle; opacity:.9; }
.roads path{ fill:none; stroke:#eef1f5; stroke-width:7; stroke-linecap:round; stroke-linejoin:round; opacity:.92; }
.roads .minor{ stroke:#5a6478; stroke-width:5; opacity:.85; }
.roads .flow{ stroke-dasharray:16 26; animation:hud-flow 2.6s linear infinite; }
@keyframes hud-flow{ to{ stroke-dashoffset:-84; } }
.ring{ fill:none; stroke:#fff; stroke-width:2; transform-origin:170px 170px; opacity:0;
  animation:hud-ping 3.2s cubic-bezier(.2,.6,.25,1) infinite; }
.ring.r2{ animation-delay:1.05s; } .ring.r3{ animation-delay:2.1s; }
@keyframes hud-ping{ 0%{ transform:scale(1); opacity:.8; } 80%{ opacity:.12; } 100%{ transform:scale(13); opacity:0; } }
.chevron{ fill:var(--accent); filter:drop-shadow(0 0 5px rgba(245,166,35,.55)); }
@media (prefers-reduced-motion: reduce){ .roads .flow{ animation:none; } .ring{ animation:none; opacity:.1; } }

/* Feature grid */
.features{ display:grid; gap:14px; grid-template-columns:1fr; }
@media(min-width:620px){ .features{ grid-template-columns:1fr 1fr; } }
.feature{ background:var(--bg-2); border:1px solid var(--line); border-radius:var(--radius); padding:18px 20px; }
.feature h3{ margin:0 0 .3em; color:var(--text); }
.feature p{ margin:0; color:#cfd3d8; }

/* Join / CTA band */
.band{ background:var(--bg-2); border-top:1px solid var(--line); border-bottom:1px solid var(--line);
  text-align:center; padding:40px 18px; }
.band h2{ margin-top:0; }
.band p{ max-width:560px; margin:0 auto 1.2em; color:#cfd3d8; }
.pill{ display:inline-block; font-family:"Rajdhani",sans-serif; font-weight:600; letter-spacing:2px;
  text-transform:uppercase; font-size:.78rem; color:var(--accent); border:1px solid var(--accent);
  border-radius:999px; padding:4px 14px; margin-bottom:14px; }
.btn.ghost{ border-color:var(--line); color:var(--muted); }
.btn.ghost:hover{ border-color:var(--muted); background:transparent; color:var(--text); }
.hero h1{ font-size:3rem; letter-spacing:8px; margin:0; }
.hero .tagline{ color:var(--muted); letter-spacing:5px; text-transform:uppercase;
  font-size:.85rem; font-family:"Rajdhani",sans-serif; font-weight:600; margin:.4em 0 1.6em; }
.hero .lead{ max-width:560px; margin:0 auto 1.8em; color:#cfd3d8; }

/* ===== Content ===== */
.section{ padding:34px 0; }
.entry-title{ margin-top:0; }
.entry-meta{ color:var(--muted); font-size:.9rem; margin-bottom:1.2em; }
.entry-content > *{ margin:0 0 1.1em; }
.entry-content a{ text-decoration:underline; }
.entry-content blockquote{ border-left:3px solid var(--accent); margin:1.4em 0; padding:4px 16px;
  color:#cfd3d8; background:var(--bg-2); border-radius:0 8px 8px 0; }
.entry-content code,.entry-content pre{ background:#0f1626; border:1px solid var(--line); border-radius:8px; }
.entry-content code{ padding:2px 6px; font-size:.92em; }
.entry-content pre{ padding:14px 16px; overflow:auto; }
.entry-content img{ border-radius:10px; }
.entry-content hr{ border:0; border-top:1px solid var(--line); margin:2em 0; }

/* Cards for the post list */
.card{ background:var(--bg-2); border:1px solid var(--line); border-radius:var(--radius);
  padding:20px 22px; margin:0 0 18px; }
.card .entry-title{ font-size:1.3rem; }
.card .entry-title a{ color:var(--text); text-decoration:none; }
.card .entry-title a:hover{ color:var(--accent); }

/* Pagination + buttons */
.pagination{ display:flex; gap:10px; flex-wrap:wrap; margin:24px 0; }
.pagination .page-numbers{ border:1px solid var(--line); padding:6px 12px; border-radius:8px;
  color:var(--muted); }
.pagination .current{ border-color:var(--accent); color:var(--accent); }

/* ===== Footer ===== */
.site-footer{ border-top:1px solid var(--line); margin-top:40px; padding:28px 0 48px;
  color:var(--muted); font-size:.9rem; }
.site-footer .wrap{ display:flex; flex-wrap:wrap; gap:8px 20px; align-items:center;
  justify-content:space-between; }
.site-footer a{ color:var(--muted); }
.site-footer a:hover{ color:var(--accent); }
.site-footer .foot-nav{ list-style:none; display:flex; gap:16px; margin:0; padding:0; flex-wrap:wrap; }

/* ===== Larger screens ===== */
@media (min-width:768px){
  body{ font-size:18px; }
  h1{ font-size:2.4rem; }
  .hero{ padding:72px 18px 88px; }
  .hero h1{ font-size:4rem; letter-spacing:12px; }
  .hud{ width:360px; }
  .nav{ gap:0 22px; }
}

/* ===== Coming soon (front page) ===== */
.coming-soon{ min-height:62vh; display:flex; flex-direction:column; align-items:center;
  justify-content:center; text-align:center; padding:56px 18px; }
.cs-banner{ width:100%; max-width:720px; height:auto; border-radius:12px; }
/* Brand lockup: round logo + custom NAFFI wordmark (no tagline) */
.cs-brand{ display:flex; align-items:center; justify-content:center; gap:20px; flex-wrap:nowrap; }
.cs-logo{ width:92px; height:92px; border-radius:50%; flex:0 0 auto; }   /* clip the square logo tile to a circle */
.cs-wordmark{ width:auto; height:54px; flex:0 1 auto; }
@media (max-width:480px){ .cs-logo{ width:64px; height:64px; } .cs-wordmark{ height:38px; } .cs-brand{ gap:14px; } }
.cs-text{ font-family:"Rajdhani",sans-serif; font-weight:600; text-transform:uppercase;
  letter-spacing:8px; color:var(--muted); font-size:1.05rem; margin:22px 0 0; }
.cs-lead{ color:#cfd3d8; margin:14px 0 18px; max-width:440px; }

/* Early-access email signup */
.cs-form{ display:flex; gap:10px; width:100%; max-width:440px; flex-wrap:wrap; justify-content:center; }
.cs-input{ flex:1 1 220px; min-width:0; background:var(--bg-2); color:var(--text);
  border:1px solid var(--line); border-radius:10px; padding:12px 14px; font-size:1rem;
  font-family:inherit; }
.cs-input:focus{ outline:none; border-color:var(--accent); }
.cs-input::placeholder{ color:var(--muted); }
.cs-form .btn{ flex:0 0 auto; cursor:pointer; }
.cs-hp{ position:absolute; left:-9999px; width:1px; height:1px; opacity:0; }  /* honeypot */
.cs-msg{ font-family:"Rajdhani",sans-serif; font-weight:600; letter-spacing:1px; margin:0 0 14px; }
/* Platform note: Android / Google Play only */
.cs-platform{ display:inline-flex; align-items:center; gap:8px; margin:26px 0 0;
  font-family:"Rajdhani",sans-serif; font-weight:600; text-transform:uppercase;
  letter-spacing:2px; font-size:.8rem; color:var(--muted); }
.cs-android{ width:18px; height:18px; color:#3ddc84; flex:0 0 auto; }  /* Android green */
.cs-ok{ color:var(--accent); }
.cs-err{ color:#ff6b6b; }
