/* =========================================================
   RootBuddies.com, AU adult hookup / root dating
   Bold warm: off-white + vibrant orange + charcoal, Poppins + Inter.
   ========================================================= */

:root {
  --bg: #ffffff;
  --bg-warm: #fdf5ef;      /* warm cream (sections / footer) */
  --ink: #211a15;          /* warm charcoal, headings */
  --body: #574d46;         /* warm grey, body text */
  --muted: #8a7d73;
  --line: rgba(33, 26, 21, 0.12);

  --orange: #ee5a2e;       /* vibrant orange (logo), primary accent */
  --orange-deep: #cf4522;
  --orange-soft: #ff7a4d;
  --dark: #1a1512;         /* near-black (cookie bar) */

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

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

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

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
.skip-link { position: absolute; left: -9999px; top: 0; z-index: 999; background: var(--orange); color: #fff; padding: 12px 18px; border-radius: 0 0 8px 0; }
.skip-link:focus { left: 0; }

h1, h2, h3, h4 { font-family: var(--display); font-weight: 700; line-height: 1.15; color: var(--ink); letter-spacing: -0.01em; }
h1 { font-size: clamp(2.2rem, 5vw, 3.3rem); font-weight: 800; }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.4rem); }
h3 { font-size: clamp(1.3rem, 2.2vw, 1.65rem); }
p { color: var(--body); }
.lede { font-size: clamp(1.08rem, 1.7vw, 1.3rem); }
.accent { color: var(--orange); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px; white-space: nowrap;
  font-family: var(--display); font-weight: 600; font-size: .96rem;
  padding: 14px 30px; border: 2px solid transparent; border-radius: 999px;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease, color .2s ease, border-color .2s ease;
}
.btn-primary { background: var(--orange); color: #fff; box-shadow: 0 8px 22px -8px rgba(238, 90, 46, 0.6); }
.btn-primary:hover { background: var(--orange-deep); color: #fff; transform: translateY(-2px); box-shadow: 0 12px 30px -8px rgba(238, 90, 46, 0.7); }
.btn-secondary { background: var(--ink); color: #fff; }
.btn-secondary:hover { background: #000; color: #fff; transform: translateY(-2px); }
.btn-outline { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-outline:hover { border-color: var(--orange); color: var(--orange-deep); }
.btn-lg { padding: 17px 40px; font-size: 1.05rem; }

/* Header (white; the charcoal/orange logo shows) */
.site-header { position: sticky; top: 0; z-index: 50; background: #fff; border-bottom: 1px solid var(--line); box-shadow: 0 4px 22px -12px rgba(0,0,0,0.35); }
.site-header .inner { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 11px 0; }
.brand { display: flex; align-items: center; }
.brand-logo { display: block; height: 42px; width: auto; max-width: 100%; object-fit: contain; }
.nav-desktop { display: flex; align-items: center; gap: 28px; margin-left: auto; margin-right: 10px; }
.nav-desktop a { font-family: var(--display); font-weight: 600; font-size: .95rem; color: var(--ink); }
.nav-desktop a:hover { color: var(--orange); }
.header-cta { display: flex; align-items: center; gap: 12px; }
.site-header .btn-outline { color: var(--ink); border-color: var(--line); }
.site-header .btn-outline:hover { background: rgba(238, 90, 46, 0.06); border-color: var(--orange); color: var(--orange-deep); }
.header-cta .btn { padding: 11px 24px; font-size: .9rem; }
.menu-toggle { display: none; width: 44px; height: 44px; border-radius: 10px; background: rgba(33,26,21,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: 14px var(--gutter) 22px; background: #fff; border-bottom: 1px solid var(--line); box-shadow: 0 12px 24px -14px rgba(0,0,0,0.4); gap: 4px; }
.mobile-nav.active { display: flex; }
.mobile-nav a { padding: 13px 12px; border-radius: 10px; font-weight: 600; color: var(--ink); font-family: var(--display); }
.mobile-nav a:hover { background: rgba(238,90,46,0.06); color: var(--orange-deep); }
.mobile-nav .btn { margin-top: 10px; }

/* Hero (bright bedroom image; charcoal text with a light left scrim) */
.hero { position: relative; overflow: hidden; background: var(--bg-warm); }
.hero-image {
  display: flex; align-items: center;
  min-height: min(72vh, 600px);
  background:
    linear-gradient(90deg, rgba(255,255,255,0.9) 0%, rgba(255,255,255,0.66) 34%, rgba(255,255,255,0.12) 62%, rgba(255,255,255,0) 100%),
    url('/images/hero-desktop.jpg?v=3') center right / cover no-repeat,
    var(--bg-warm);
}
.hero-content { max-width: 600px; padding: clamp(44px, 7vw, 84px) 0; }
.hero-heading {
  font-family: var(--display); font-weight: 800; line-height: 1.1;
  font-size: clamp(2.4rem, 5.6vw, 4rem); color: var(--ink); margin-bottom: 18px;
  text-shadow: 0 1px 16px rgba(255,255,255,0.85);
}
.hero-heading .accent { color: var(--orange); }
.hero-content .lede { color: #2c2622; margin-bottom: 28px; max-width: 42ch; font-weight: 500; text-shadow: 0 1px 12px rgba(255,255,255,0.9); }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 14px; }

/* Content sections */
.section { padding: clamp(52px, 8vw, 96px) 0; }
.section.light { background: var(--bg); }

.prose { max-width: 760px; margin: 0 auto; }
.prose h1 { margin: 0 0 22px; font-size: clamp(2rem, 4vw, 2.8rem); line-height: 1.15; }
.prose h2 { margin: 44px 0 16px; font-size: clamp(1.6rem, 3vw, 2.1rem); }
.prose h3 { margin: 34px 0 12px; font-size: clamp(1.3rem, 2.2vw, 1.6rem); }
.prose p { margin-bottom: 18px; color: var(--body); font-size: 1.08rem; line-height: 1.85; }
.prose strong { color: var(--ink); font-weight: 700; }
.prose a { color: var(--orange-deep); text-decoration: underline; text-underline-offset: 2px; }
.prose a:hover { color: var(--orange); }
.prose a.btn { color: #fff; text-decoration: none; }
.prose u { text-decoration-color: var(--orange); text-underline-offset: 3px; }
.prose-cta { margin-top: 38px; text-align: center; }

/* Final CTA banner (bold orange) */
.cta-section { padding: 0 0 clamp(52px, 8vw, 96px); background: var(--bg); }
.cta-banner {
  margin: 0 auto; padding: clamp(50px, 7vw, 84px) clamp(28px, 6vw, 72px);
  background: linear-gradient(135deg, var(--orange) 0%, var(--orange-deep) 100%);
  border-radius: 20px; text-align: center; position: relative; overflow: hidden;
  box-shadow: 0 26px 60px -22px rgba(238, 90, 46, 0.55);
}
.cta-banner > * { position: relative; }
.cta-banner h2 { color: #fff; margin-bottom: 14px; }
.cta-banner p { color: rgba(255,255,255,0.94); margin: 0 auto 28px; max-width: 52ch; font-size: 1.1rem; }
.cta-banner .btn { background: #fff; color: var(--orange-deep); border-color: #fff; }
.cta-banner .btn:hover { background: #fff; color: var(--orange-deep); transform: translateY(-2px); box-shadow: 0 14px 40px rgba(0,0,0,0.25); }

/* Footer (warm cream; logo shows) */
.site-footer { background: var(--bg-warm); border-top: 3px solid var(--orange); padding: 56px 0 30px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 40px; margin-bottom: 36px; }
.footer-brand .brand-logo-footer { height: 46px; width: auto; margin-bottom: 12px; }
.footer-brand p { font-size: .92rem; color: var(--muted); max-width: 34ch; }
.footer-col h4 { font-family: var(--display); font-size: .82rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--ink); margin-bottom: 14px; font-weight: 700; }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-col a { color: var(--body); font-size: .92rem; }
.footer-col a:hover { color: var(--orange-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: 24px; margin-top: 24px; border-top: 1px solid var(--line); font-size: .82rem; color: var(--muted); }
.footer-bottom a { color: var(--muted); }
.footer-bottom a:hover { color: var(--orange-deep); }

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

/* Responsive */
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 768px) {
  .nav-desktop, .header-cta .btn-outline { display: none; }
  .menu-toggle { display: flex; }
  .brand-logo { height: 36px; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }

  /* Mobile hero: full portrait 750x1200 image fills the screen below the header
     (whole image + button above the fold); heading + CTAs overlaid at the bottom. */
  .hero { background: var(--dark); }
  .hero-image {
    display: flex; align-items: flex-end;
    min-height: 0;
    height: calc(100vh - 74px);
    height: calc(100svh - 74px);
    background:
      linear-gradient(180deg, rgba(20,17,14,0) 44%, rgba(20,17,14,0.5) 70%, rgba(20,17,14,0.9) 100%),
      url('/images/hero-mobile.jpg?v=3') center center / cover no-repeat,
      var(--dark);
  }
  .hero-content { max-width: 100%; text-align: center; padding: 0 var(--gutter) 20px; }
  .hero-heading { color: #fff; text-shadow: 0 2px 14px rgba(0,0,0,0.75); font-size: clamp(1.9rem, 7.6vw, 2.5rem); margin-bottom: 10px; }
  .hero-heading .accent { color: var(--orange-soft); }
  .hero-content .lede { color: rgba(255,255,255,0.94); text-shadow: 0 1px 12px rgba(0,0,0,0.85); margin: 0 auto 16px; font-size: 1rem; max-width: 32ch; }
  .hero-ctas { justify-content: center; }
}
@media (max-width: 480px) {
  .hero-ctas { flex-direction: column; }
  .hero-ctas .btn { width: 100%; }
}

/* =========================================================
   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(--orange); 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: rgba(255,255,255,0.9); flex: 1; }
.ad-cookie-text a { color: var(--orange-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: 999px;
  font-family: var(--display); font-weight: 600; font-size: .9rem;
  background: var(--orange); color: #fff; border: none; flex-shrink: 0;
  transition: transform .2s ease, background .2s ease;
}
.ad-btn-cookie:hover { transform: translateY(-1px); background: var(--orange-deep); }
@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; }
}
