/* ============================================================
   DatingBits — modern static rebuild
   Mobile-first, responsive, accessible. Plain CSS (Grid/Flexbox).
   ============================================================ */

:root {
  /* Color system */
  --brand:        #e11d48;   /* rose 600 */
  --brand-dark:   #9f1239;   /* rose 800 */
  --brand-soft:   #fff1f2;   /* rose 50  */
  --accent:       #7c3aed;   /* violet 600 */
  --ink:          #1f2937;   /* slate 800 */
  --muted:        #6b7280;   /* gray 500 */
  --bg:           #ffffff;
  --bg-soft:      #f9fafb;   /* gray 50 */
  --bg-alt:       #f3f4f6;   /* gray 100 */
  --border:       #e5e7eb;   /* gray 200 */
  --ink-invert:   #f9fafb;

  /* Spacing / radius / shadow */
  --radius:   14px;
  --radius-sm: 9px;
  --shadow:   0 1px 2px rgba(16,24,40,.06), 0 8px 24px rgba(16,24,40,.06);
  --shadow-lg: 0 12px 40px rgba(16,24,40,.14);
  --maxw:     1120px;
  --content-maxw: 780px;

  --font: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial,
          "Apple Color Emoji", "Segoe UI Emoji", sans-serif;
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: clamp(15px, 1rem + .1vw, 17px);
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--brand-dark); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { line-height: 1.2; color: var(--ink); margin: 0 0 .5em; font-weight: 700; letter-spacing: -.01em; }
h1 { font-size: clamp(1.7rem, 1.3rem + 2vw, 2.5rem); }
h2 { font-size: clamp(1.35rem, 1.1rem + 1vw, 1.75rem); margin-top: 1.6em; }
h3 { font-size: 1.15rem; margin-top: 1.4em; }
p  { margin: 0 0 1em; }
ul, ol { margin: 0 0 1em; padding-left: 1.4em; }
li { margin: .35em 0; }
blockquote {
  margin: 1.2em 0; padding: .8em 1.2em;
  border-left: 4px solid var(--brand);
  background: var(--brand-soft);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-style: italic; color: #4b5563;
}
hr { border: 0; border-top: 1px solid var(--border); margin: 2rem 0; }

/* Accessibility: visible focus + skip link */
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 200;
  background: var(--ink); color: #fff; padding: .7em 1.1em; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 clamp(16px, 4vw, 32px); }

/* ---------- Header / nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.92);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--border);
}
.nav {
  display: flex; align-items: center; gap: 1rem;
  min-height: 64px; position: relative;
}
.brand {
  display: inline-flex; align-items: baseline; gap: .12em;
  font-weight: 800; font-size: 1.3rem; letter-spacing: -.02em;
  color: var(--ink); text-decoration: none; white-space: nowrap;
}
.brand:hover { text-decoration: none; }
.brand b { color: var(--brand); }
.brand .dot { color: var(--brand); }

.nav-toggle {
  margin-left: auto;
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  background: var(--bg-alt); border: 1px solid var(--border);
  color: var(--ink); font: inherit; font-weight: 600; font-size: .95rem;
  padding: .5em .8em; border-radius: 10px; cursor: pointer;
}
.nav-toggle .bars { width: 18px; height: 2px; background: currentColor; position: relative; display: inline-block; }
.nav-toggle .bars::before, .nav-toggle .bars::after { content: ""; position: absolute; left: 0; width: 18px; height: 2px; background: currentColor; }
.nav-toggle .bars::before { top: -6px; } .nav-toggle .bars::after { top: 6px; }

.nav-menu { list-style: none; margin: 0; padding: 0; }
.nav-menu a, .nav-menu summary {
  display: block; padding: .6em .2em; color: var(--ink); font-weight: 600; font-size: .98rem;
}
.nav-menu a:hover, .nav-menu summary:hover { color: var(--brand); text-decoration: none; cursor: pointer; }
.nav-menu a[aria-current="page"] { color: var(--brand); }

/* Dropdown via <details> */
.nav-menu details > summary { list-style: none; }
.nav-menu details > summary::-webkit-details-marker { display: none; }
.nav-menu details > summary::after { content: " ▾"; color: var(--muted); font-size: .85em; }
.nav-menu details[open] > summary::after { content: " ▴"; }
.submenu { list-style: none; margin: 0; padding: 0; }
.submenu a { font-weight: 500; color: #374151; padding-left: 1em; }

/* Mobile: menu collapses */
.nav-menu {
  position: absolute; top: 100%; left: 0; right: 0;
  background: #fff; border: 1px solid var(--border); border-radius: 0 0 var(--radius) var(--radius);
  box-shadow: var(--shadow-lg); padding: .5rem clamp(16px,4vw,32px) 1rem;
  display: none;
}
.nav-menu.open { display: block; }
.nav-menu > li { border-bottom: 1px solid var(--bg-alt); }
.nav-menu > li:last-child { border-bottom: 0; }
.submenu { padding: .2em 0 .6em; }

/* Desktop nav */
@media (min-width: 900px) {
  .nav-toggle { display: none; }
  .nav-menu {
    position: static; display: flex !important; align-items: center; gap: .3rem;
    background: none; border: 0; box-shadow: none; padding: 0; margin-left: auto;
  }
  .nav-menu > li { border: 0; position: relative; }
  .nav-menu > li > a, .nav-menu details > summary { padding: .5em .75em; border-radius: 8px; }
  .nav-menu > li > a:hover, .nav-menu details > summary:hover { background: var(--bg-alt); }
  .nav-menu details { position: relative; }
  .nav-menu details > .submenu {
    position: absolute; top: calc(100% + 6px); left: 0; min-width: 230px;
    background: #fff; border: 1px solid var(--border); border-radius: 12px;
    box-shadow: var(--shadow-lg); padding: .4rem; z-index: 50;
  }
  .submenu a { padding: .55em .7em; border-radius: 8px; }
  .submenu a:hover { background: var(--brand-soft); color: var(--brand-dark); }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  background: var(--brand); color: #fff; font-weight: 700; font-size: 1rem;
  padding: .75em 1.4em; border-radius: 999px; border: 1px solid transparent;
  text-decoration: none; cursor: pointer; transition: transform .06s ease, background .15s ease;
}
.btn:hover { background: var(--brand-dark); text-decoration: none; color: #fff; }
.btn:active { transform: translateY(1px); }
.btn-lg { font-size: 1.08rem; padding: .9em 1.8em; }
.btn-ghost { background: #fff; color: var(--brand-dark); border-color: var(--border); }
.btn-ghost:hover { background: var(--brand-soft); color: var(--brand-dark); }
.btn-block { width: 100%; }

/* ---------- Hero (home) ---------- */
.hero {
  background:
    radial-gradient(1200px 400px at 80% -10%, rgba(225,29,72,.12), transparent 60%),
    radial-gradient(900px 400px at 0% 0%, rgba(124,58,237,.10), transparent 55%),
    var(--bg-soft);
  border-bottom: 1px solid var(--border);
}
.hero-inner { padding: clamp(2.2rem, 5vw, 4.5rem) 0; max-width: 820px; }
.hero h1 { margin-bottom: .3em; }
.hero .lead { font-size: clamp(1.05rem, 1rem + .5vw, 1.3rem); color: #374151; margin-bottom: 1.4em; }
.hero .cta-row { display: flex; flex-wrap: wrap; gap: .8rem; }
.eyebrow {
  display: inline-block; font-size: .8rem; font-weight: 700; letter-spacing: .08em;
  text-transform: uppercase; color: var(--brand); background: var(--brand-soft);
  padding: .35em .8em; border-radius: 999px; margin-bottom: 1rem;
}

/* ---------- Layout: content + sidebar ---------- */
.layout { display: grid; gap: clamp(1.5rem, 4vw, 3rem); padding: clamp(1.8rem, 4vw, 3rem) 0; }
@media (min-width: 960px) {
  .layout.has-aside { grid-template-columns: minmax(0,1fr) 300px; align-items: start; }
}
.prose { max-width: var(--content-maxw); }
.prose img { border-radius: var(--radius-sm); margin: 1.2em 0; box-shadow: var(--shadow); }
.prose h2 { padding-bottom: .2em; border-bottom: 2px solid var(--bg-alt); }

/* Breadcrumb */
.breadcrumb { font-size: .9rem; color: var(--muted); margin: 0 0 1.2rem; }
.breadcrumb ol { list-style: none; display: flex; flex-wrap: wrap; gap: .4em; margin: 0; padding: 0; }
.breadcrumb li + li::before { content: "›"; margin-right: .4em; color: var(--border); }
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--brand); }
.breadcrumb [aria-current="page"] { color: var(--ink); font-weight: 600; }

/* ---------- Cards / grids ---------- */
.grid { display: grid; gap: 1.2rem; }
.grid.cols-2 { grid-template-columns: 1fr; }
.grid.cols-3 { grid-template-columns: 1fr; }
@media (min-width: 620px) { .grid.cols-2 { grid-template-columns: repeat(2,1fr); } .grid.cols-3 { grid-template-columns: repeat(2,1fr); } }
@media (min-width: 960px) { .grid.cols-3 { grid-template-columns: repeat(3,1fr); } }

.card {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  padding: 1.3rem; box-shadow: var(--shadow);
  display: flex; flex-direction: column; gap: .4rem; height: 100%;
}
.card h3 { margin: 0; font-size: 1.1rem; }
.card p { color: #4b5563; margin: 0; font-size: .96rem; }
a.card { color: inherit; transition: transform .1s ease, box-shadow .15s ease; }
a.card:hover { text-decoration: none; transform: translateY(-3px); box-shadow: var(--shadow-lg); border-color: #fecdd3; }
.card .more { margin-top: auto; color: var(--brand); font-weight: 600; font-size: .9rem; }
.card .flag { width: 26px; height: auto; border-radius: 3px; box-shadow: 0 0 0 1px var(--border); }
.card-head { display: flex; align-items: center; gap: .6rem; }

/* Section heading */
.section-head { margin: 0 0 1.2rem; }
.section-head p { color: var(--muted); margin: 0; }

/* ---------- Category banner row (localized promo tiles) ---------- */
.cats { display: grid; grid-template-columns: repeat(2,1fr); gap: .8rem; margin: 1.5rem 0; }
@media (min-width: 560px) { .cats { grid-template-columns: repeat(3,1fr); } }
@media (min-width: 820px) { .cats { grid-template-columns: repeat(5,1fr); } }
.cats a { display: block; border-radius: var(--radius-sm); overflow: hidden; box-shadow: var(--shadow); border: 1px solid var(--border); }
.cats img { width: 100%; height: auto; }
.cats a:hover { box-shadow: var(--shadow-lg); }

/* CTA panel */
.cta-panel {
  background: linear-gradient(135deg, var(--brand), var(--brand-dark));
  color: #fff; border-radius: var(--radius); padding: clamp(1.5rem,4vw,2.4rem);
  text-align: center; margin: 2rem 0; box-shadow: var(--shadow);
}
.cta-panel h2 { color: #fff; margin-top: 0; }
.cta-panel p { color: rgba(255,255,255,.9); max-width: 55ch; margin: 0 auto 1.3em; }
.cta-panel .btn { background: #fff; color: var(--brand-dark); }
.cta-panel .btn:hover { background: #ffe4e6; }

/* Info callout */
.callout {
  background: var(--bg-soft); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 1.2rem 1.3rem; margin: 1.5rem 0;
}

/* ---------- Aside / sidebar ---------- */
.aside { display: grid; gap: 1.3rem; }
.aside .widget { background: var(--bg-soft); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.1rem 1.2rem; }
.aside .widget h2 { font-size: 1rem; margin: 0 0 .7rem; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }
.aside ul.linklist { list-style: none; padding: 0; margin: 0; }
.aside ul.linklist li { margin: 0; border-bottom: 1px solid var(--border); }
.aside ul.linklist li:last-child { border-bottom: 0; }
.aside ul.linklist a { display: flex; align-items: center; gap: .5em; padding: .55em 0; color: var(--ink); font-weight: 500; font-size: .95rem; }
.aside ul.linklist a:hover { color: var(--brand); text-decoration: none; }
.aside .flag { width: 22px; border-radius: 3px; box-shadow: 0 0 0 1px var(--border); }

/* Tag pills */
.tags { display: flex; flex-wrap: wrap; gap: .5em; margin: 1.5rem 0 0; padding-top: 1.2rem; border-top: 1px solid var(--border); }
.tags .tag { background: var(--bg-alt); color: #4b5563; font-size: .82rem; padding: .3em .8em; border-radius: 999px; }

/* Forms */
.form-field { margin-bottom: 1.1rem; }
.form-field label { display: block; font-weight: 600; margin-bottom: .35em; }
.form-field .req { color: var(--brand); }
.form-field input, .form-field textarea {
  width: 100%; font: inherit; padding: .7em .9em; border: 1px solid var(--border);
  border-radius: 10px; background: #fff; color: var(--ink);
}
.form-field textarea { min-height: 120px; resize: vertical; }
.form-field input:focus, .form-field textarea:focus { border-color: var(--brand); }

/* Sitemap columns */
.sitemap-cols { display: grid; gap: 1.5rem; grid-template-columns: 1fr; }
@media (min-width: 640px) { .sitemap-cols { grid-template-columns: repeat(2,1fr); } }
@media (min-width: 960px) { .sitemap-cols { grid-template-columns: repeat(3,1fr); } }
.sitemap-cols ul { list-style: none; padding: 0; }
.sitemap-cols h2 { font-size: 1rem; text-transform: uppercase; letter-spacing: .04em; color: var(--brand); border-bottom: 2px solid var(--bg-alt); padding-bottom: .4em; }

/* ---------- Footer ---------- */
.site-footer { background: #111827; color: #cbd5e1; margin-top: 3rem; }
.site-footer a { color: #e5e7eb; }
.site-footer a:hover { color: #fff; }
.footer-grid { display: grid; gap: 2rem; padding: 2.6rem 0 1.6rem; grid-template-columns: 1fr; }
@media (min-width: 720px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; } }
.footer-grid h3 { color: #fff; font-size: .95rem; text-transform: uppercase; letter-spacing: .05em; margin-bottom: .9rem; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid li { margin: .45em 0; }
.footer-grid .brand { color: #fff; }
.footer-grid .brand b { color: var(--brand); }
.footer-note { border-top: 1px solid #1f2937; padding: 1.2rem 0 2rem; font-size: .85rem; color: #94a3b8; }
.age-badge {
  display: inline-block; border: 1px solid #334155; border-radius: 8px;
  padding: .3em .7em; font-weight: 700; color: #fca5a5; margin-bottom: .6rem;
}

/* Utilities */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.lead { font-size: 1.1rem; color: #374151; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
