/* =========================================================
   GrannyNaai, ZA granny / mature dating
   grannynaai.com
   Light theme: warm white + near-black ink + bold red accent.
   ========================================================= */

:root {
  --bg: #ffffff;
  --bg-warm: #faf6f1;
  --bg-warm-2: #f3ece3;
  --ink: #1a1512;
  --ink-soft: #463d36;
  --muted: #7c7068;
  --line: rgba(26, 21, 18, 0.12);
  --line-strong: rgba(26, 21, 18, 0.22);

  --red: #e11d2e;
  --red-deep: #b3061a;
  --red-soft: #ff5a68;
  --ink-btn: #211c18;

  --grad-button: linear-gradient(135deg, #ef2638 0%, #c0121f 100%);

  --shadow-card: 0 16px 44px -20px rgba(26, 21, 18, 0.35);
  --shadow-red: 0 12px 34px -12px rgba(225, 29, 46, 0.5);

  --radius-pill: 999px;

  --container: 1180px;
  --gutter: clamp(20px, 4vw, 48px);

  --font-display: 'Oswald', system-ui, -apple-system, sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}

/* Reset */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; transition: color .2s ease, opacity .2s ease; }
a:hover { color: var(--red-deep); }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }

/* Skip link */
.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 999;
  background: var(--red); color: #fff; padding: 12px 18px; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

/* Container */
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }

/* Typography */
h1, h2, h3, h4 {
  font-family: var(--font-display); font-weight: 600;
  line-height: 1.12; letter-spacing: 0.01em; color: var(--ink); text-transform: uppercase;
}
h1 { font-size: clamp(2.3rem, 5.4vw, 3.9rem); font-weight: 700; }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); }
h3 { font-size: clamp(1.3rem, 2.2vw, 1.7rem); }
h4 { font-size: 1.05rem; letter-spacing: 0.04em; }
p { color: var(--ink-soft); }
.lede { font-size: clamp(1.05rem, 1.7vw, 1.28rem); color: var(--ink-soft); max-width: 56ch; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 30px;
  border-radius: var(--radius-pill);
  font-family: var(--font-display); font-weight: 600; font-size: 1rem;
  letter-spacing: 0.05em; text-transform: uppercase;
  border: 2px solid transparent;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease, color .2s ease, border-color .2s ease;
  white-space: nowrap;
}
.btn-primary { background: var(--grad-button); color: #fff; box-shadow: var(--shadow-red); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 40px -10px rgba(225, 29, 46, 0.7); color: #fff; }
.btn-secondary { background: var(--ink-btn); color: #fff; }
.btn-secondary:hover { transform: translateY(-2px); background: #000; color: #fff; box-shadow: var(--shadow-card); }
.btn-outline { background: transparent; color: var(--ink); border: 2px solid var(--line-strong); }
.btn-outline:hover { border-color: var(--red); color: var(--red-deep); }
.btn-lg { padding: 17px 40px; font-size: 1.08rem; }

/* =========================================================
   Header
   ========================================================= */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: #ffffff;
  border-bottom: 1px solid var(--line);
  box-shadow: 0 4px 18px -12px rgba(26, 21, 18, 0.45);
}
.site-header .inner {
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 12px 0;
}
.brand { display: flex; align-items: center; }
.brand-logo { display: block; height: 42px; width: auto; max-width: 100%; object-fit: contain; }

.header-cta { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.site-header .btn-outline { color: var(--ink); border-color: var(--line-strong); }
.site-header .btn-outline:hover { background: rgba(225, 29, 46, 0.06); border-color: var(--red); color: var(--red-deep); }
.menu-toggle {
  display: none; width: 44px; height: 44px; border-radius: 10px;
  background: rgba(26, 21, 18, 0.04); border: 1px solid var(--line);
  font-size: 1.4rem; align-items: center; justify-content: center; color: var(--ink);
}
.mobile-nav {
  display: none; flex-direction: column;
  padding: 12px var(--gutter) 22px;
  background: #fff; border-bottom: 1px solid var(--line);
  box-shadow: 0 12px 24px -14px rgba(26, 21, 18, 0.4); gap: 4px;
}
.mobile-nav.active { display: flex; }
.mobile-nav a { padding: 13px 12px; border-radius: 10px; font-weight: 500; color: var(--ink); }
.mobile-nav a:hover { background: rgba(225, 29, 46, 0.06); color: var(--red-deep); }
.mobile-nav .btn { margin-top: 10px; }

/* =========================================================
   Hero, image-led
   ========================================================= */
.hero { position: relative; overflow: hidden; background: var(--bg-warm); }
.hero-image {
  padding: clamp(72px, 11vw, 150px) 0 clamp(72px, 12vw, 160px);
  background:
    linear-gradient(90deg, rgba(255, 250, 245, 0.86) 0%, rgba(255, 250, 245, 0.55) 34%, rgba(255, 250, 245, 0) 62%),
    url('/images/hero-desktop.jpg?v=1') center center / cover no-repeat,
    var(--bg-warm);
}
.hero .container { position: relative; z-index: 2; }
.hero-content { max-width: 620px; }
.hero-heading {
  font-family: var(--font-display); font-weight: 700; text-transform: uppercase;
  font-size: clamp(2.3rem, 5.6vw, 4rem); line-height: 1.08; letter-spacing: 0.01em;
  color: #15100d; margin-bottom: 20px;
  text-shadow: 0 1px 16px rgba(255, 252, 248, 0.85), 0 0 4px rgba(255, 252, 248, 0.9);
}
.hero-h1-red { color: var(--red); }
.hero-content .lede {
  color: #221b16; margin-bottom: 30px;
  text-shadow: 0 1px 12px rgba(255, 252, 248, 0.9);
}
.hero-ctas { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 26px; }
.hero-trust {
  display: flex; flex-wrap: wrap; gap: 14px 24px;
  font-size: .9rem; color: #2a221c; font-weight: 600;
}
.hero-trust span { display: inline-flex; align-items: center; gap: 7px; text-shadow: 0 1px 10px rgba(255, 252, 248, 0.9); }
.hero-trust .tick {
  width: 20px; height: 20px; background: var(--red); border-radius: 50%;
  display: inline-grid; place-items: center; color: #fff; font-size: .72rem;
}

/* =========================================================
   Sections + prose
   ========================================================= */
.section { padding: clamp(56px, 8vw, 96px) 0; }
.section.light { background: #ffffff; }

.prose { max-width: 760px; margin: 0 auto; }
.prose h1 { margin: 0 0 20px; font-size: clamp(2rem, 4vw, 2.9rem); line-height: 1.12; }
.prose h2 { margin: 40px 0 16px; font-size: clamp(1.6rem, 3vw, 2.1rem); }
.prose p { margin-bottom: 16px; color: var(--ink-soft); font-size: 1.04rem; }
.prose-cta { margin-top: 36px; text-align: center; }

/* Inner-page hero (compact variant of the image hero) */
.hero-compact .hero-image,
.hero-image.hero-compact { padding: clamp(60px, 9vw, 110px) 0 clamp(60px, 9vw, 110px); }

/* =========================================================
   Footer, light so the black/red logo stays visible
   ========================================================= */
.site-footer {
  background: var(--bg-warm-2);
  border-top: 3px solid var(--red);
  padding: 60px 0 28px;
}
.footer-grid {
  display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 40px; margin-bottom: 40px;
}
.brand-logo-footer { width: 240px; height: auto; margin-bottom: 6px; }
.footer-brand p { font-size: .92rem; color: var(--muted); margin-top: 12px; max-width: 34ch; }
.footer-col h4 {
  font-size: .82rem; text-transform: uppercase; letter-spacing: 0.1em;
  color: var(--ink); margin-bottom: 16px; font-weight: 600;
}
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-col a { color: var(--ink-soft); font-size: .94rem; }
.footer-col a:hover { color: var(--red-deep); }
.footer-disclaimer {
  margin: 8px auto 0; max-width: 820px; font-size: 0.78rem; line-height: 1.6;
  color: var(--muted); text-align: center;
}
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px;
  padding-top: 26px; margin-top: 26px; border-top: 1px solid var(--line);
  font-size: .82rem; color: var(--muted);
}

/* Reveal animation */
.fade-up { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.fade-up.visible { opacity: 1; transform: translateY(0); }

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  .header-cta .btn-outline { display: none; }
  .menu-toggle { display: flex; }
  .header-cta .btn { padding: 10px 18px; font-size: .9rem; }
  .brand-logo { height: 34px; }
  .footer-grid { grid-template-columns: 1fr; gap: 30px; }

  /* Mobile hero: portrait banner (anchored to the face) + text below, kept compact
     so the primary CTA stays above the fold */
  .hero-image { padding: 0; background: var(--bg); }
  .hero-image::before {
    content: ''; display: block; width: 100%;
    height: clamp(330px, 92vw, 400px);
    background: url('/images/hero-mobile.jpg?v=1') center top / cover no-repeat;
  }
  .hero-content {
    max-width: 100%; text-align: center;
    padding: 18px var(--gutter) 8px;
  }
  .hero-heading {
    font-size: clamp(1.85rem, 8vw, 2.5rem); margin-bottom: 10px;
  }
  .hero-heading, .hero-content .lede, .hero-trust span { text-shadow: none; }
  .hero-content .lede {
    font-size: 1rem; margin: 0 auto 16px;
  }
  .hero-ctas { justify-content: center; margin-bottom: 16px; }
  .hero-trust { justify-content: center; }
}
@media (max-width: 480px) {
  .hero-ctas { flex-direction: column; }
  .hero-ctas .btn { width: 100%; }
  .footer-bottom { justify-content: center; text-align: center; }
}

/* =========================================================
   Cookie consent banner (TZ-triggered)
   ========================================================= */
.ad-cookie-consent {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 100;
  background: rgba(26, 21, 18, 0.96);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  border-top: 2px solid var(--red);
  padding: 16px 0;
  transform: translateY(120%);
  transition: transform .5s cubic-bezier(0.2, 0.8, 0.2, 1);
  cursor: pointer;
}
.ad-cookie-consent.ad-visible { transform: translateY(0); }
.ad-cookie-wrapper { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.ad-cookie-text { font-size: .92rem; color: #f1ebe5; flex: 1; }
.ad-cookie-text a { color: var(--red-soft); text-decoration: underline; text-underline-offset: 2px; }
.ad-cookie-text a:hover { color: #fff; }
.ad-cookie-emoji { display: inline-block; margin-right: 6px; font-size: 1.1rem; }
.ad-btn-cookie {
  display: inline-flex; align-items: center; padding: 12px 28px;
  border-radius: var(--radius-pill);
  font-family: var(--font-display); font-weight: 600; font-size: .92rem;
  letter-spacing: 0.04em; text-transform: uppercase;
  background: var(--grad-button); color: #fff; border: none; flex-shrink: 0;
  transition: transform .2s ease, box-shadow .2s ease; box-shadow: var(--shadow-red);
}
.ad-btn-cookie:hover { transform: translateY(-1px); box-shadow: 0 14px 40px -8px rgba(225, 29, 46, 0.7); }
@media (max-width: 600px) {
  .ad-cookie-wrapper { flex-direction: column; align-items: stretch; gap: 12px; }
  .ad-btn-cookie { width: 100%; justify-content: center; }
  .ad-cookie-text { font-size: .85rem; text-align: center; }
}
