/* =========================================================
   Dom-or-Sub.com, UK premium BDSM / power-exchange dating
   Premium editorial: ivory + deep wine-red + gold, Playfair Display + Inter.
   ========================================================= */

:root {
  --bg: #faf6f0;          /* warm ivory page */
  --bg-deep: #f2ebe1;     /* deeper ivory (footer) */
  --ink: #181012;         /* warm near-black, headings */
  --body: #4d4348;        /* warm grey, body text */
  --muted: #8a7f82;
  --line: rgba(24, 16, 18, 0.12);

  --wine: #9e1b32;        /* deep wine-red (the DOM red), primary accent */
  --wine-deep: #781325;
  --wine-soft: #b8324a;
  --gold: #b8923f;        /* muted gold (the throne) */
  --gold-soft: #cdab63;

  --hero-bg: #0c0a0b;     /* near-black hero / cta backdrop */
  --chrome: #ffffff;      /* white header chrome */

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

  --display: 'Playfair Display', Georgia, 'Times New Roman', 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.75;
  font-size: 17px;
  -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, 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(--wine); 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.18; color: var(--ink); letter-spacing: 0; }
h1 { font-size: clamp(2.3rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.4rem); }
h3 { font-size: clamp(1.3rem, 2.2vw, 1.6rem); }
p { color: var(--body); }
.lede { font-size: clamp(1.08rem, 1.7vw, 1.3rem); }
.accent { color: var(--wine); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px; white-space: nowrap;
  font-family: var(--body-font); font-weight: 600; font-size: .96rem; letter-spacing: 0.02em;
  padding: 14px 30px; border: 1.5px solid transparent; border-radius: 2px;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease, color .2s ease, border-color .2s ease;
}
.btn-primary { background: var(--wine); color: #fff; }
.btn-primary:hover { background: var(--wine-deep); color: #fff; transform: translateY(-2px); box-shadow: 0 12px 28px -10px rgba(158, 27, 50, 0.6); }
.btn-secondary { background: var(--ink); color: #fff; }
.btn-secondary:hover { background: #000; color: #fff; transform: translateY(-2px); box-shadow: 0 12px 28px -12px rgba(0,0,0,0.6); }
.btn-outline { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-outline:hover { border-color: var(--wine); color: var(--wine); }
.btn-lg { padding: 17px 40px; font-size: 1.04rem; }

/* Header (white chrome so the wine/charcoal logo shows) */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--chrome); border-bottom: 1px solid var(--line); box-shadow: 0 2px 18px -12px rgba(0,0,0,0.4); }
.site-header .inner { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 12px 0; }
.brand { display: flex; align-items: center; }
.brand-logo { display: block; height: 46px; width: auto; max-width: 100%; object-fit: contain; }
.header-cta { display: flex; align-items: center; gap: 12px; margin-left: auto; }
.site-header .btn-outline { color: var(--ink); border-color: var(--line); }
.site-header .btn-outline:hover { background: rgba(158, 27, 50, 0.05); border-color: var(--wine); color: var(--wine); }
.header-cta .btn { padding: 11px 24px; font-size: .9rem; }
.menu-toggle { display: none; width: 44px; height: 44px; border-radius: 4px; background: rgba(24,16,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: 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: 6px; }
.mobile-nav.active { display: flex; }
.mobile-nav .btn { width: 100%; }

/* Hero (dark throne image; white serif text) */
.hero { position: relative; overflow: hidden; background: var(--hero-bg); }
.hero-image {
  display: flex; align-items: center;
  min-height: min(80vh, 660px);
  background:
    linear-gradient(90deg, rgba(12,10,11,0.96) 0%, rgba(12,10,11,0.78) 36%, rgba(12,10,11,0.2) 64%, rgba(12,10,11,0) 100%),
    url('/images/hero-desktop.jpg?v=2') right center / cover no-repeat,
    var(--hero-bg);
}
.hero-content { max-width: 600px; padding: clamp(48px, 8vw, 96px) 0; }
.hero-heading {
  font-family: var(--display); font-weight: 700; line-height: 1.12;
  font-size: clamp(2.5rem, 5.6vw, 4.2rem); color: #fff; margin-bottom: 20px;
  text-shadow: 0 2px 24px rgba(0,0,0,0.5);
}
.hero-heading .accent { color: var(--gold-soft); }
.hero-content .lede { color: rgba(255,255,255,0.92); margin-bottom: 30px; max-width: 48ch; text-shadow: 0 1px 14px rgba(0,0,0,0.5); }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 14px; }
.hero-ctas .btn-secondary { background: rgba(255,255,255,0.1); border: 1.5px solid rgba(255,255,255,0.55); }
.hero-ctas .btn-secondary:hover { background: #fff; color: var(--ink); border-color: #fff; }

/* Content sections */
.section { padding: clamp(56px, 8vw, 104px) 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.9rem); line-height: 1.15; }
.prose h2 { margin: 48px 0 16px; font-size: clamp(1.6rem, 3vw, 2.2rem); padding-bottom: 14px; position: relative; }
.prose h2::after { content: ''; position: absolute; left: 0; bottom: 0; width: 60px; height: 2px; background: var(--gold); }
.prose h3 { margin: 34px 0 12px; font-size: clamp(1.25rem, 2.2vw, 1.55rem); color: var(--wine); }
.prose p { margin-bottom: 18px; color: var(--body); font-size: 1.08rem; line-height: 1.85; }
.prose strong { color: var(--wine); font-weight: 700; }
.prose a { color: var(--wine); text-decoration: underline; text-underline-offset: 2px; }
.prose a:hover { color: var(--wine-deep); }
.prose a.btn { color: #fff; text-decoration: none; }
.prose-cta { margin-top: 38px; text-align: center; }

/* Final CTA banner (dark, premium) */
.cta-section { padding: 0 0 clamp(56px, 8vw, 100px); background: var(--bg); }
.cta-banner {
  margin: 0 auto; padding: clamp(52px, 7vw, 88px) clamp(28px, 6vw, 72px);
  background: var(--hero-bg); border: 1px solid rgba(184, 146, 63, 0.4);
  text-align: center; position: relative;
}
.cta-banner::before { content: ''; position: absolute; inset: 8px; border: 1px solid rgba(184, 146, 63, 0.25); pointer-events: none; }
.cta-banner > * { position: relative; }
.cta-banner h2 { color: #fff; margin-bottom: 14px; }
.cta-banner p { color: rgba(255,255,255,0.82); margin: 0 auto 30px; max-width: 52ch; font-size: 1.1rem; }
.cta-banner .btn { background: var(--gold); color: var(--hero-bg); border-color: var(--gold); font-weight: 700; }
.cta-banner .btn:hover { background: var(--gold-soft); color: var(--hero-bg); transform: translateY(-2px); }

/* Footer (light so the dark-text logo shows) */
.site-footer { background: var(--bg-deep); border-top: 1px solid var(--line); padding: 56px 0 30px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr; gap: 40px; margin-bottom: 36px; }
.footer-brand .brand-logo-footer { height: 52px; width: auto; margin-bottom: 12px; }
.footer-brand p { font-size: .92rem; color: var(--muted); max-width: 36ch; }
.footer-col h4 { font-family: var(--display); font-size: 1.05rem; 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(--wine); }
.footer-disclaimer { margin: 8px auto 0; max-width: 800px; 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(--wine); }

/* 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) {
  .header-cta .btn-outline { display: none; }
  .menu-toggle { display: flex; }
  .brand-logo { height: 38px; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }

  /* Mobile hero: full portrait banner (760x997) + text below on the dark backdrop */
  .hero-image { display: block; min-height: 0; background: var(--hero-bg); }
  .hero-image::before {
    content: ''; display: block; width: 100%;
    aspect-ratio: 760 / 997;
    background: url('/images/hero-mobile.jpg?v=2') center top / cover no-repeat;
    -webkit-mask-image: linear-gradient(180deg, #000 78%, transparent 100%);
            mask-image: linear-gradient(180deg, #000 78%, transparent 100%);
  }
  .hero-content { max-width: 100%; text-align: center; padding: 8px var(--gutter) 40px; }
  .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(12, 10, 11, 0.96);
  backdrop-filter: blur(18px) saturate(140%); -webkit-backdrop-filter: blur(18px) saturate(140%);
  border-top: 1px solid rgba(184, 146, 63, 0.5);
  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(--gold-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: 2px;
  font-family: var(--body-font); font-weight: 600; font-size: .9rem;
  background: var(--gold); color: var(--hero-bg); border: none; flex-shrink: 0;
  transition: transform .2s ease, background .2s ease;
}
.ad-btn-cookie:hover { transform: translateY(-1px); background: var(--gold-soft); }
@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; }
}
