/* ── SiteScanr Shared Styles ── */
/* Google Fonts loaded via components/seo.php for faster LCP */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg: #FAFAF8;
  --bg2: #F3F2EF;
  --ink: #0C0C10;
  --ink2: #4B4B55;
  --ink3: #9898A3;
  --border: #E4E3DF;
  --accent: #2B5CE6;
  --accent-light: #EEF3FD;
  --accent-mid: #C7D8FA;
  --green: #16A34A;
  --red: #DC2626;
  --white: #FFFFFF;
  --radius: 12px;
  --radius-sm: 8px;
  --font-head: 'DM Sans', sans-serif;
  --font-body: 'Plus Jakarta Sans', sans-serif;
  --shadow: 0 1px 3px rgba(0,0,0,0.06), 0 4px 16px rgba(0,0,0,0.05);
  --shadow-hover: 0 4px 12px rgba(0,0,0,0.08), 0 12px 32px rgba(0,0,0,0.08);
}

html { scroll-behavior: smooth; }
body { background: var(--bg); font-family: var(--font-body); color: var(--ink); font-size: 16px; line-height: 1.6; -webkit-font-smoothing: antialiased; }

/* ── NAV ── */
nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(250,250,248,0.9);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  padding: 0 40px;
  height: 64px;
  display: flex; align-items: center; gap: 32px;
  transition: box-shadow 0.3s;
}
nav.scrolled { box-shadow: 0 2px 16px rgba(0,0,0,0.06); }
.nav-logo { display: flex; align-items: center; gap: 8px; text-decoration: none; flex-shrink: 0; }
.logo-icon { width: 32px; height: 32px; background: linear-gradient(to bottom right, #3b82f6, #2563eb); border-radius: 8px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.logo-text { font-size: 1.25rem; font-weight: 700; background: linear-gradient(135deg, #3b82f6, #2563eb); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.nav-links { display: flex; gap: 28px; flex: 1; }
.nav-links a { font-size: 14.5px; font-weight: 500; color: var(--ink2); text-decoration: none; transition: color 0.2s; font-family: var(--font-body); }
.nav-links a:hover { color: var(--ink); }
.nav-links a.nav-active { color: var(--ink); }
.nav-cta { display: flex; gap: 10px; align-items: center; }

/* ── BUTTONS ── */
.btn-ghost { font-family: var(--font-body); font-size: 14px; font-weight: 600; color: var(--ink); background: transparent; border: 1.5px solid var(--border); border-radius: var(--radius-sm); padding: 9px 20px; cursor: pointer; transition: border-color 0.2s, background 0.2s; text-decoration: none; display: inline-block; }
.btn-ghost:hover { border-color: var(--ink3); background: var(--bg2); }
.btn-primary { font-family: var(--font-body); font-size: 14px; font-weight: 600; color: var(--white); background: var(--accent); border: none; border-radius: var(--radius-sm); padding: 9px 20px; cursor: pointer; transition: opacity 0.2s, transform 0.15s; text-decoration: none; display: inline-flex; align-items: center; gap: 6px; }
.btn-primary:hover { opacity: 0.88; transform: translateY(-1px); }
.btn-primary-lg { font-size: 16px; padding: 14px 32px; border-radius: var(--radius); }

/* ── LAYOUT ── */
.container { max-width: 1120px; margin: 0 auto; padding: 0 40px; }
.section-pad { padding: 96px 0; }
.eyebrow { font-size: 12px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent); margin-bottom: 12px; font-family: var(--font-body); }
.section-title { font-family: var(--font-head); font-size: clamp(26px,3vw,40px); font-weight: 800; line-height: 1.15; letter-spacing: -0.025em; color: var(--ink); }
.section-sub { font-size: 17px; color: var(--ink2); line-height: 1.65; margin-top: 12px; }

/* ── FOOTER (light) ── */
footer { background: var(--bg2); border-top: 1px solid var(--border); padding: 60px 40px 36px; }
.footer-grid { max-width: 1120px; margin: 0 auto; display: grid; grid-template-columns: 2fr 1fr 1fr 1fr 1fr; gap: 48px; margin-bottom: 48px; }
.footer-brand .f-logo { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
.footer-brand p { font-size: 13px; color: var(--ink2); line-height: 1.6; max-width: 220px; }
.footer-col-heading { font-size: 11px; font-weight: 700; letter-spacing: 0.09em; text-transform: uppercase; color: var(--ink2); margin-bottom: 16px; font-family: var(--font-body); }
.footer-col a { display: block; font-size: 14px; color: var(--ink2); text-decoration: none; margin-bottom: 10px; transition: color 0.2s; }
.footer-col a:hover { color: var(--ink); }
.footer-bottom { max-width: 1120px; margin: 0 auto; border-top: 1px solid var(--border); padding-top: 24px; display: flex; justify-content: space-between; align-items: center; }
.footer-bottom p { font-size: 13px; color: var(--ink2); }

/* ── BLOG CARD ── */
.blog-card { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; transition: box-shadow 0.25s, transform 0.2s; text-decoration: none; color: inherit; display: block; }
.blog-card:hover { box-shadow: var(--shadow-hover); transform: translateY(-2px); }
.blog-img { height: 156px; background: repeating-linear-gradient(135deg, #F3F2EE 0,#F3F2EE 10px,#ECEAE5 10px,#ECEAE5 20px); display: flex; align-items: center; justify-content: center; font-size: 11px; font-family: monospace; color: var(--ink3); }
.blog-body { padding: 18px 20px; }
.blog-tag { display: inline-block; font-size: 11px; font-weight: 700; letter-spacing: 0.07em; text-transform: uppercase; color: var(--accent); background: var(--accent-light); padding: 3px 10px; border-radius: 20px; margin-bottom: 10px; }
.blog-title { font-family: var(--font-head); font-size: 15.5px; font-weight: 700; margin-bottom: 8px; line-height: 1.35; letter-spacing: -0.01em; }
.blog-meta { font-size: 12px; color: var(--ink3); }

/* ── REVEAL ── */
.reveal { transition: opacity 0.5s ease, transform 0.5s ease; }
.reveal.js-hidden { opacity: 0; transform: translateY(20px); }
.reveal.visible { opacity: 1; transform: none; }

/* ── PAGE HEADER (inner pages) ── */
.page-hero { padding: 72px 0 60px; border-bottom: 1px solid var(--border); }
.page-hero .eyebrow { margin-bottom: 10px; }
.page-hero .section-title { margin-bottom: 12px; }

/* ── NAV HAMBURGER ── */
.nav-toggle { display: none; flex-direction: column; justify-content: center; gap: 5px; background: none; border: none; cursor: pointer; padding: 6px 4px; margin-left: auto; flex-shrink: 0; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--ink); border-radius: 2px; transition: all 0.25s; }

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
  nav { padding: 0 20px; }
  .nav-links {
    display: none; flex-direction: column; gap: 0;
    position: absolute; top: 100%; left: 0; right: 0; z-index: 99;
    background: rgba(250,250,248,0.98); backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border); padding: 6px 20px 14px;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 11px 0; border-bottom: 1px solid var(--border); font-size: 15px; }
  .nav-links a:last-child { border-bottom: none; }
  .nav-toggle { display: flex; }
  .nav-cta { display: none; }

  .container { padding: 0 20px; }
  .section-pad { padding: 64px 0; }

  footer { padding: 48px 20px 28px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; margin-bottom: 32px; }
  .footer-brand { grid-column: 1 / -1; }
  .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }

  .page-hero { padding: 48px 0 36px; }
}

@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
}
