/*!
 * Theme Name:  Baripartner
 * Theme URI:   https://baripartner.de
 * Author:      Baripartner Team
 * Author URI:  https://baripartner.de
 * Description: Ein einfühlsames Dating-Theme für Menschen im bariatrischen Kontext. Modern, vertrauenswürdig und hochwertig gestaltet.
 * Version:     1.0.0
 * Requires at least: 6.0
 * Tested up to: 6.7
 * Requires PHP: 8.0
 * License:     GNU General Public License v2 or later
 * License URI: https://www.gnu.org/licenses/gpl-2.0.html
 * Text Domain: baripartner
 * Tags:        dating, health, lifestyle, modern, responsive, accessibility-ready
 */

/* =========================================
   CSS Custom Properties
   ========================================= */
:root {
  /* Rose-Coral — matches Datezo plugin action color */
  --clr-primary:       #E8405A;
  --clr-primary-dark:  #C42E47;
  --clr-primary-light: #FEEBED;

  /* Dark Navy — matches Datezo plugin header bar */
  --clr-accent:        #E8405A;
  --clr-accent-dark:   #C42E47;
  --clr-accent-light:  #FEEBED;

  --clr-nav:       #1C1B2E;
  --clr-nav-dark:  #0F0E1C;
  --clr-nav-light: #2D2C45;

  --clr-bg:      #FFFFFF;
  --clr-bg-alt:  #FDF5F6;
  --clr-white:   #FFFFFF;
  --clr-border:  #EDE8E9;

  --clr-text:       #1C1B2E;
  --clr-text-muted: #6B6880;
  --clr-text-light: #9CA3AF;

  --font-heading: 'Plus Jakarta Sans', sans-serif;
  --font-body:    'Nunito', sans-serif;

  --text-xs:   0.75rem;
  --text-sm:   0.875rem;
  --text-base: 1rem;
  --text-lg:   1.125rem;
  --text-xl:   1.25rem;
  --text-2xl:  1.5rem;
  --text-3xl:  1.875rem;
  --text-4xl:  2.25rem;
  --text-5xl:  3rem;
  --text-6xl:  3.75rem;

  --weight-regular:   400;
  --weight-medium:    500;
  --weight-semibold:  600;
  --weight-bold:      700;
  --weight-extrabold: 800;

  --leading-tight:   1.2;
  --leading-snug:    1.35;
  --leading-normal:  1.6;
  --leading-relaxed: 1.75;

  --space-1:  0.25rem;
  --space-2:  0.5rem;
  --space-3:  0.75rem;
  --space-4:  1rem;
  --space-5:  1.25rem;
  --space-6:  1.5rem;
  --space-8:  2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;
  --space-32: 8rem;

  --radius-sm:   8px;
  --radius-md:   14px;
  --radius-lg:   20px;
  --radius-xl:   28px;
  --radius-full: 9999px;

  --shadow-xs: 0 1px 3px rgba(42,45,58,.06);
  --shadow-sm: 0 2px 10px rgba(42,45,58,.07);
  --shadow-md: 0 8px 30px rgba(42,45,58,.09);
  --shadow-lg: 0 20px 60px rgba(42,45,58,.12);

  --transition-fast: 150ms ease;
  --transition-base: 250ms ease;
  --transition-slow: 400ms ease;

  --container-max:    1200px;
  --container-narrow: 780px;
  --header-height:    72px;
}

/* =========================================
   Reset & Base
   ========================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  font-size: 16px;
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: var(--weight-regular);
  line-height: var(--leading-normal);
  color: var(--clr-text);
  background-color: var(--clr-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img, picture, video, canvas, svg { display: block; max-width: 100%; }
input, button, textarea, select { font: inherit; }
p, h1, h2, h3, h4, h5, h6 { overflow-wrap: break-word; }
ul, ol { list-style: none; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; border: none; background: none; }

:focus-visible {
  outline: 2px solid var(--clr-primary);
  outline-offset: 3px;
  border-radius: 4px;
}

/* =========================================
   Skip Link
   ========================================= */
.skip-link {
  position: absolute;
  top: -100%;
  left: var(--space-4);
  padding: var(--space-3) var(--space-6);
  background: var(--clr-primary);
  color: var(--clr-white);
  font-weight: var(--weight-semibold);
  border-radius: var(--radius-sm);
  z-index: 9999;
  transition: top var(--transition-base);
}
.skip-link:focus { top: var(--space-4); }

/* =========================================
   Typography
   ========================================= */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: var(--weight-bold);
  line-height: var(--leading-tight);
  color: var(--clr-text);
}
h1 { font-size: var(--text-5xl); font-weight: var(--weight-extrabold); }
h2 { font-size: var(--text-4xl); }
h3 { font-size: var(--text-2xl); }
h4 { font-size: var(--text-xl); }
h5 { font-size: var(--text-lg); }
h6 { font-size: var(--text-base); }
p  { line-height: var(--leading-relaxed); }
strong { font-weight: var(--weight-semibold); }

/* =========================================
   Layout
   ========================================= */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--space-6);
}
.container--narrow { max-width: var(--container-narrow); }

.section    { padding-block: var(--space-20); }
.section--lg { padding-block: var(--space-32); }

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border-width: 0;
}

/* =========================================
   Buttons
   ========================================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-6);
  font-family: var(--font-heading);
  font-size: var(--text-base);
  font-weight: var(--weight-semibold);
  line-height: 1;
  border-radius: var(--radius-full);
  transition: all var(--transition-base);
  white-space: nowrap;
  cursor: pointer;
  border: 2px solid transparent;
}
.btn--primary {
  background: var(--clr-accent);
  color: var(--clr-white);
  border-color: var(--clr-accent);
  box-shadow: 0 4px 16px rgba(232,64,90,.3);
}
.btn--primary:hover, .btn--primary:focus-visible {
  background: var(--clr-accent-dark);
  border-color: var(--clr-accent-dark);
  box-shadow: 0 6px 24px rgba(232,64,90,.4);
  transform: translateY(-1px);
  color: var(--clr-white);
}
.btn--secondary {
  background: transparent;
  color: var(--clr-text);
  border-color: var(--clr-border);
}
.btn--secondary:hover, .btn--secondary:focus-visible {
  background: var(--clr-bg-alt);
  border-color: var(--clr-text-muted);
  color: var(--clr-text);
  transform: translateY(-1px);
}
/* Secondary on light background */
.features .btn--secondary,
.community .btn--secondary {
  color: var(--clr-primary);
  border-color: var(--clr-primary);
}
.features .btn--secondary:hover,
.community .btn--secondary:hover {
  background: var(--clr-primary);
  color: white;
  border-color: var(--clr-primary);
}
.btn--lg { padding: var(--space-4) var(--space-8); font-size: var(--text-lg); }
.btn--sm { padding: var(--space-2) var(--space-4); font-size: var(--text-sm); }

/* =========================================
   Site Header
   ========================================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-height);
  background: var(--clr-white);
  border-bottom: 1px solid var(--clr-border);
  box-shadow: 0 2px 12px rgba(28,27,46,.06);
  transition: box-shadow var(--transition-base);
}
.site-header.is-scrolled { box-shadow: 0 4px 24px rgba(28,27,46,.1); }

.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-8);
}

.site-logo {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  flex-shrink: 0;
  text-decoration: none;
}
.site-logo__mark {
  width: 38px; height: 38px;
  background: var(--clr-primary);
  border-radius: var(--radius-md);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(232,64,90,.4);
}
.site-logo__mark svg { width: 20px; height: 20px; fill: white; }
.site-logo__text { display: flex; flex-direction: column; line-height: 1.1; }
.site-logo__name {
  font-family: var(--font-heading);
  font-size: var(--text-xl);
  font-weight: var(--weight-extrabold);
  color: var(--clr-text);
  letter-spacing: -0.02em;
}
.site-logo__name span { color: var(--clr-primary); }
.site-logo__tagline {
  font-size: var(--text-xs);
  color: var(--clr-text-muted);
  font-weight: var(--weight-medium);
  letter-spacing: .05em;
  text-transform: uppercase;
}

.main-nav { flex: 1; display: flex; justify-content: center; }

.main-nav .menu,
.main-nav ul {
  display: flex;
  align-items: center;
  gap: var(--space-1);
}
.main-nav .menu a,
.main-nav ul a {
  display: block;
  padding: var(--space-2) var(--space-3);
  font-family: var(--font-heading);
  font-size: var(--text-sm);
  font-weight: var(--weight-semibold);
  color: var(--clr-text-muted);
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
  letter-spacing: .01em;
}
.main-nav .menu a:hover,
.main-nav ul a:hover,
.main-nav .current-menu-item > a {
  color: var(--clr-text);
  background: var(--clr-bg-alt);
}

/* Nav dropdown */
.main-nav .menu-item-has-children { position: relative; }
.main-nav .sub-menu {
  display: none;
  position: absolute;
  top: calc(100% + 6px);
  left: 50%;
  transform: translateX(-50%);
  min-width: 200px;
  background: #fff;
  border: 1px solid #f1f5f9;
  border-radius: 14px;
  box-shadow: 0 8px 32px rgba(0,0,0,.10);
  padding: 6px;
  flex-direction: column;
  gap: 2px;
  z-index: 999;
}
.main-nav .menu-item-has-children:hover .sub-menu,
.main-nav .menu-item-has-children:focus-within .sub-menu { display: flex; }
.main-nav .sub-menu li { width: 100%; }
.main-nav .sub-menu a {
  display: block;
  padding: 9px 14px;
  font-size: .85rem;
  border-radius: 9px;
  white-space: nowrap;
  color: #374151;
}
.main-nav .sub-menu a:hover { background: #fdf2f4; color: #f43f5e; }

.header-actions {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  flex-shrink: 0;
}
.header-login {
  font-family: var(--font-heading);
  font-size: var(--text-sm);
  font-weight: var(--weight-semibold);
  color: var(--clr-text-muted);
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-sm);
  transition: color var(--transition-fast);
}
.header-login:hover { color: var(--clr-text); }

.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px; height: 40px;
  padding: var(--space-2);
  border-radius: var(--radius-sm);
  background: none; border: none;
  cursor: pointer;
  transition: background var(--transition-fast);
}
.menu-toggle:hover { background: var(--clr-bg-alt); }
.menu-toggle__line {
  display: block;
  height: 2px;
  background: var(--clr-text);
  border-radius: 2px;
  transition: all var(--transition-base);
  transform-origin: center;
}
.menu-toggle[aria-expanded="true"] .menu-toggle__line:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-toggle__line:nth-child(2) { opacity: 0; transform: scaleX(0); }
.menu-toggle[aria-expanded="true"] .menu-toggle__line:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* =========================================
   Section Header
   ========================================= */
.section-header {
  text-align: center;
  max-width: 640px;
  margin-inline: auto;
  margin-bottom: var(--space-16);
}
.section-header__label {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: var(--text-xs);
  font-weight: var(--weight-bold);
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--clr-primary);
  margin-bottom: var(--space-3);
}
.section-header__title {
  font-size: var(--text-4xl);
  letter-spacing: -.02em;
  margin-bottom: var(--space-4);
}
.section-header__subtitle {
  font-size: var(--text-lg);
  color: var(--clr-text-muted);
  line-height: var(--leading-relaxed);
}

/* =========================================
   Hero
   ========================================= */
.hero {
  position: relative;
  overflow: hidden;
  padding-block: var(--space-32);
  background: var(--clr-white);
  color: var(--clr-text);
}
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 60% 70% at 90% 0%, rgba(232,64,90,.07) 0%, transparent 60%),
    radial-gradient(ellipse 40% 50% at 0% 100%, rgba(232,64,90,.05) 0%, transparent 60%);
  pointer-events: none;
}
.hero::after {
  content: '';
  position: absolute;
  top: -100px; right: -100px;
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(232,64,90,.06) 0%, transparent 65%);
  pointer-events: none;
}
.hero__inner {
  position: relative; z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-16);
  align-items: center;
}
.hero__content {
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
}
.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-4);
  background: var(--clr-primary-light);
  border: 1px solid rgba(232,64,90,.25);
  color: var(--clr-primary-dark);
  font-family: var(--font-heading);
  font-size: var(--text-sm);
  font-weight: var(--weight-semibold);
  border-radius: var(--radius-full);
  letter-spacing: .02em;
  width: fit-content;
}
.hero__badge-dot {
  width: 6px; height: 6px;
  background: var(--clr-primary);
  border-radius: 50%;
  flex-shrink: 0;
  box-shadow: 0 0 0 0 rgba(232,64,90,.6);
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: .6; transform: scale(1.3); }
}
.hero__headline {
  font-size: clamp(2.2rem, 5vw, var(--text-6xl));
  font-weight: var(--weight-extrabold);
  line-height: 1.1;
  letter-spacing: -.03em;
  color: var(--clr-text);
}
.hero__headline em {
  font-style: normal;
  color: var(--clr-primary);
}
.hero__subline {
  font-size: var(--text-lg);
  color: var(--clr-text-muted);
  line-height: var(--leading-relaxed);
  max-width: 480px;
}
.hero__cta {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  flex-wrap: wrap;
}
.hero__trust {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding-top: var(--space-4);
  border-top: 1px solid var(--clr-border);
}
.hero__trust-avatars {
  display: flex;
}
.hero__trust-avatar {
  width: 30px; height: 30px;
  border-radius: 50%;
  border: 2px solid var(--clr-white);
  background: linear-gradient(135deg, var(--clr-primary-light), rgba(92,142,142,.4));
  margin-left: -8px;
  display: flex; align-items: center; justify-content: center;
  font-size: 12px;
}
.hero__trust-avatar:first-child { margin-left: 0; }
.hero__trust-text {
  font-size: var(--text-sm);
  color: var(--clr-text-muted);
  font-weight: var(--weight-medium);
}
.hero__trust-text strong { color: var(--clr-text); }

.hero__visual { position: relative; display: flex; justify-content: center; }

.hero__card-stack {
  position: relative;
  width: 320px; height: 380px;
}
.profile-card {
  position: absolute;
  background: var(--clr-white);
  border-radius: var(--radius-xl);
  padding: var(--space-6);
  box-shadow: 0 8px 40px rgba(28,27,46,.1);
  border: 1px solid var(--clr-border);
}
.profile-card--main  { top: 0; left: 0; right: 0; z-index: 3; }
.profile-card--back1 {
  top: 14px; left: -14px; right: 14px; bottom: -14px;
  z-index: 2;
  background: var(--clr-bg-alt);
  box-shadow: none;
  border: 1px solid var(--clr-border);
}
.profile-card--back2 {
  top: 28px; left: -28px; right: 28px; bottom: -28px;
  z-index: 1;
  background: var(--clr-primary-light);
  box-shadow: none;
  border: 1px solid rgba(232,64,90,.15);
}
.profile-card__avatar {
  width: 60px; height: 60px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--clr-primary-light), rgba(92,142,142,.35));
  margin-bottom: var(--space-4);
  display: flex; align-items: center; justify-content: center;
  font-size: 26px;
}
.profile-card__name {
  font-family: var(--font-heading);
  font-size: var(--text-xl);
  font-weight: var(--weight-bold);
  margin-bottom: var(--space-1);
}
.profile-card__meta {
  font-size: var(--text-sm);
  color: var(--clr-text-muted);
  margin-bottom: var(--space-4);
}
.profile-card__tags {
  display: flex; flex-wrap: wrap; gap: var(--space-2);
  margin-bottom: var(--space-5);
}
.profile-tag {
  padding: var(--space-1) var(--space-3);
  background: var(--clr-primary-light);
  color: var(--clr-primary-dark);
  font-size: var(--text-xs);
  font-weight: var(--weight-semibold);
  border-radius: var(--radius-full);
  font-family: var(--font-heading);
}
.profile-card__match {
  display: flex; align-items: center; justify-content: space-between;
  padding: var(--space-3) var(--space-4);
  background: var(--clr-accent-light);
  border-radius: var(--radius-md);
}
.profile-card__match-label { font-size: var(--text-sm); color: var(--clr-text-muted); font-weight: var(--weight-medium); }
.profile-card__match-score {
  font-family: var(--font-heading);
  font-size: var(--text-xl);
  font-weight: var(--weight-extrabold);
  color: var(--clr-accent);
}

/* =========================================
   Features
   ========================================= */
.features { background: var(--clr-white); }

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6);
}
.feature-card {
  padding: var(--space-8);
  background: var(--clr-bg);
  border-radius: var(--radius-xl);
  border: 1px solid var(--clr-border);
  transition: all var(--transition-slow);
  position: relative;
  overflow: hidden;
}
.feature-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--clr-primary), transparent);
  opacity: 0;
  transition: opacity var(--transition-base);
}
.feature-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
  border-color: transparent;
  background: var(--clr-white);
}
.feature-card:hover::before { opacity: 1; }

.feature-icon {
  width: 56px; height: 56px;
  border-radius: var(--radius-lg);
  background: var(--clr-primary-light);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: var(--space-5);
  transition: all var(--transition-base);
}
.feature-icon svg { width: 26px; height: 26px; fill: var(--clr-primary); transition: fill var(--transition-base); }
.feature-card:hover .feature-icon { background: var(--clr-primary); }
.feature-card:hover .feature-icon svg { fill: white; }

.feature-card__number {
  position: absolute; top: var(--space-6); right: var(--space-6);
  font-family: var(--font-heading);
  font-size: var(--text-4xl);
  font-weight: var(--weight-extrabold);
  color: var(--clr-border);
  line-height: 1;
  transition: color var(--transition-base);
  user-select: none;
}
.feature-card:hover .feature-card__number { color: var(--clr-primary-light); }

.feature-card__title {
  font-size: var(--text-xl);
  font-weight: var(--weight-bold);
  margin-bottom: var(--space-3);
}
.feature-card__text {
  font-size: var(--text-base);
  color: var(--clr-text-muted);
  line-height: var(--leading-relaxed);
}

/* =========================================
   Community
   ========================================= */
.community {
  background: var(--clr-bg);
  position: relative;
  overflow: hidden;
}
.community::before {
  content: '';
  position: absolute;
  bottom: -100px; right: -100px;
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(232,64,90,.06) 0%, transparent 70%);
  pointer-events: none;
}
.community__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-16);
  align-items: center;
}
.community__content {
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
}
.community__title {
  font-size: var(--text-4xl);
  letter-spacing: -.02em;
  line-height: 1.15;
}
.community__text {
  font-size: var(--text-lg);
  color: var(--clr-text-muted);
  line-height: var(--leading-relaxed);
}

.benefit-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}
.benefit-item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-4);
}
.benefit-item__check {
  width: 24px; height: 24px;
  border-radius: 50%;
  background: var(--clr-primary-light);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; margin-top: 2px;
}
.benefit-item__check svg { width: 12px; height: 12px; fill: var(--clr-primary); }
.benefit-item__text {
  font-size: var(--text-base);
  color: var(--clr-text-muted);
  line-height: var(--leading-relaxed);
}
.benefit-item__text strong {
  color: var(--clr-text);
  display: block;
  font-weight: var(--weight-semibold);
  margin-bottom: 2px;
}

.stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4);
}
.stat-card {
  background: var(--clr-white);
  border-radius: var(--radius-xl);
  padding: var(--space-6);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--clr-border);
  text-align: center;
  transition: all var(--transition-base);
}
.stat-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.stat-card__value {
  font-family: var(--font-heading);
  font-size: var(--text-4xl);
  font-weight: var(--weight-extrabold);
  color: var(--clr-primary);
  line-height: 1;
  margin-bottom: var(--space-2);
}
.stat-card--accent .stat-card__value { color: var(--clr-accent); }
.stat-card__label {
  font-size: var(--text-sm);
  color: var(--clr-text-muted);
  font-weight: var(--weight-medium);
}

/* =========================================
   CTA Banner
   ========================================= */
.cta-banner {
  background: linear-gradient(135deg, var(--clr-primary-dark) 0%, var(--clr-primary) 100%);
  color: var(--clr-white);
  padding-block: var(--space-20);
  position: relative;
  overflow: hidden;
}
.cta-banner::before {
  content: '';
  position: absolute;
  top: -50%; left: -10%;
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(255,255,255,.06) 0%, transparent 60%);
  pointer-events: none;
}
.cta-banner::after {
  content: '';
  position: absolute;
  bottom: -30%; right: -5%;
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(232,64,90,.1) 0%, transparent 60%);
  pointer-events: none;
}
.cta-banner__inner {
  position: relative; z-index: 1;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-6);
}
.cta-banner__label {
  font-family: var(--font-heading);
  font-size: var(--text-xs);
  font-weight: var(--weight-bold);
  letter-spacing: .1em;
  text-transform: uppercase;
  opacity: .7;
}
.cta-banner__title {
  font-size: var(--text-5xl);
  font-weight: var(--weight-extrabold);
  letter-spacing: -.02em;
  line-height: 1.1;
  color: var(--clr-white);
  max-width: 600px;
}
.cta-banner__subtitle {
  font-size: var(--text-lg);
  opacity: .85;
  max-width: 480px;
  line-height: var(--leading-relaxed);
}
.cta-banner .btn--primary {
  background: var(--clr-white);
  color: var(--clr-primary-dark);
  border-color: var(--clr-white);
  box-shadow: 0 4px 20px rgba(0,0,0,.2);
}
.cta-banner .btn--primary:hover {
  background: var(--clr-bg);
  border-color: var(--clr-bg);
  color: var(--clr-primary-dark);
}
.cta-banner__note { font-size: var(--text-sm); opacity: .6; }

/* =========================================
   Footer
   ========================================= */
.site-footer {
  background: var(--clr-text);
  color: rgba(255,255,255,.75);
  padding-block: var(--space-16) var(--space-8);
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--space-12);
  padding-bottom: var(--space-12);
  border-bottom: 1px solid rgba(255,255,255,.1);
  margin-bottom: var(--space-8);
}
.footer-brand { display: flex; flex-direction: column; gap: var(--space-4); }
.footer-logo {
  display: flex; align-items: center; gap: var(--space-3);
  text-decoration: none;
}
.footer-logo__mark {
  width: 36px; height: 36px;
  background: linear-gradient(135deg, var(--clr-primary), rgba(92,142,142,.7));
  border-radius: var(--radius-md);
  display: flex; align-items: center; justify-content: center;
}
.footer-logo__mark svg { width: 18px; height: 18px; fill: white; }
.footer-logo__name {
  font-family: var(--font-heading);
  font-size: var(--text-xl);
  font-weight: var(--weight-extrabold);
  color: var(--clr-white);
  letter-spacing: -.02em;
}
.footer-logo__name span { color: var(--clr-accent); }
.footer-brand__text {
  font-size: var(--text-sm);
  line-height: var(--leading-relaxed);
  max-width: 280px;
}
.footer-social { display: flex; gap: var(--space-3); margin-top: var(--space-2); }
.footer-social__link {
  width: 38px; height: 38px;
  border-radius: var(--radius-sm);
  background: rgba(255,255,255,.08);
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,.7);
  transition: all var(--transition-fast);
  font-size: var(--text-base);
}
.footer-social__link:hover { background: var(--clr-accent); color: white; }
.footer-social__link svg { width: 16px; height: 16px; fill: currentColor; }

.footer-col__title {
  font-family: var(--font-heading);
  font-size: var(--text-sm);
  font-weight: var(--weight-bold);
  color: var(--clr-white);
  letter-spacing: .05em;
  text-transform: uppercase;
  margin-bottom: var(--space-4);
}
.footer-nav { display: flex; flex-direction: column; gap: var(--space-3); }
.footer-nav a {
  font-size: var(--text-sm);
  color: rgba(255,255,255,.65);
  transition: color var(--transition-fast);
  line-height: 1;
}
.footer-nav a:hover { color: var(--clr-white); }

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  flex-wrap: wrap;
}
.footer-bottom__copy { font-size: var(--text-sm); color: rgba(255,255,255,.4); }
.footer-legal-nav { display: flex; gap: var(--space-6); }
.footer-legal-nav a {
  font-size: var(--text-sm);
  color: rgba(255,255,255,.4);
  transition: color var(--transition-fast);
}
.footer-legal-nav a:hover { color: rgba(255,255,255,.8); }

/* =========================================
   Blog / Archive
   ========================================= */
.page-header {
  padding-block: var(--space-16);
  background: var(--clr-white);
  border-bottom: 1px solid var(--clr-border);
}
.page-header__title {
  font-size: var(--text-4xl);
  letter-spacing: -.02em;
  margin-bottom: var(--space-3);
}
.page-header__subtitle { font-size: var(--text-lg); color: var(--clr-text-muted); }

.content-area { padding-block: var(--space-16); }

.page-content {
  font-size: var(--text-base);
  line-height: 1.8;
  color: var(--clr-text);
}
.page-content h2 { font-size: var(--text-2xl); margin-block: var(--space-8) var(--space-4); }
.page-content h3 { font-size: var(--text-xl);  margin-block: var(--space-6) var(--space-3); }
.page-content p  { margin-bottom: var(--space-4); }
.page-content ul, .page-content ol { margin-bottom: var(--space-4); padding-left: var(--space-6); }
.page-content li { margin-bottom: var(--space-2); }
.content-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: var(--space-12);
  align-items: start;
}
.content-layout--full { grid-template-columns: 1fr; }

.post-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: var(--space-6);
}
.post-card {
  background: var(--clr-white);
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 1px solid var(--clr-border);
  transition: all var(--transition-slow);
}
.post-card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }
.post-card__thumbnail {
  aspect-ratio: 16/9;
  overflow: hidden;
  background: var(--clr-primary-light);
}
.post-card__thumbnail img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}
.post-card:hover .post-card__thumbnail img { transform: scale(1.04); }
.post-card__body { padding: var(--space-6); display: flex; flex-direction: column; gap: var(--space-3); }
.post-card__meta {
  display: flex; align-items: center; gap: var(--space-3);
  font-size: var(--text-xs); color: var(--clr-text-light); font-weight: var(--weight-medium);
}
.post-card__category {
  padding: var(--space-1) var(--space-3);
  background: var(--clr-primary-light);
  color: var(--clr-primary);
  border-radius: var(--radius-full);
  font-weight: var(--weight-semibold);
  font-family: var(--font-heading);
}
.post-card__title {
  font-size: var(--text-xl);
  font-weight: var(--weight-bold);
  line-height: var(--leading-snug);
  color: var(--clr-text);
  transition: color var(--transition-fast);
}
.post-card:hover .post-card__title { color: var(--clr-primary); }
.post-card__excerpt {
  font-size: var(--text-sm);
  color: var(--clr-text-muted);
  line-height: var(--leading-relaxed);
}
.post-card__footer {
  padding: var(--space-4) var(--space-6);
  border-top: 1px solid var(--clr-border);
  display: flex; align-items: center; justify-content: space-between;
}
.post-card__read-more {
  font-family: var(--font-heading);
  font-size: var(--text-sm);
  font-weight: var(--weight-semibold);
  color: var(--clr-primary);
  display: flex; align-items: center; gap: var(--space-1);
}

/* Sidebar */
.sidebar { display: flex; flex-direction: column; gap: var(--space-8); }
.widget {
  background: var(--clr-white);
  border-radius: var(--radius-xl);
  padding: var(--space-6);
  border: 1px solid var(--clr-border);
}
.widget__title {
  font-size: var(--text-base);
  font-weight: var(--weight-bold);
  color: var(--clr-text);
  margin-bottom: var(--space-4);
  padding-bottom: var(--space-3);
  border-bottom: 1px solid var(--clr-border);
}

/* Pagination */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  margin-top: var(--space-12);
}
.page-numbers {
  display: inline-flex;
  align-items: center; justify-content: center;
  width: 40px; height: 40px;
  border-radius: var(--radius-sm);
  font-family: var(--font-heading);
  font-weight: var(--weight-semibold);
  font-size: var(--text-sm);
  color: var(--clr-text-muted);
  border: 1px solid var(--clr-border);
  transition: all var(--transition-fast);
  background: var(--clr-white);
}
.page-numbers:hover, .page-numbers.current {
  background: var(--clr-primary);
  color: white;
  border-color: var(--clr-primary);
}

/* =========================================
   WordPress Core
   ========================================= */
.entry-content p  { margin-bottom: var(--space-4); color: var(--clr-text-muted); }
.entry-content h2, .entry-content h3, .entry-content h4 { margin-block: var(--space-8) var(--space-4); }
.entry-content a  { color: var(--clr-primary); text-decoration: underline; text-underline-offset: 3px; transition: color var(--transition-fast); }
.entry-content a:hover { color: var(--clr-primary-dark); }
.entry-content img { border-radius: var(--radius-md); max-width: 100%; height: auto; }
.entry-content ul li { list-style: disc; margin-left: var(--space-5); margin-bottom: var(--space-2); color: var(--clr-text-muted); }
.entry-content ol li { list-style: decimal; margin-left: var(--space-5); margin-bottom: var(--space-2); color: var(--clr-text-muted); }

.alignnone  { margin: var(--space-4) 0; }
.aligncenter { margin: var(--space-4) auto; display: block; }
.alignright { float: right; margin: var(--space-2) 0 var(--space-4) var(--space-4); }
.alignleft  { float: left;  margin: var(--space-2) var(--space-4) var(--space-4) 0; }
.wp-caption-text { font-size: var(--text-sm); color: var(--clr-text-muted); text-align: center; margin-top: var(--space-2); }

.screen-reader-text {
  position: absolute !important;
  height: 1px; width: 1px;
  overflow: hidden;
  clip: rect(1px,1px,1px,1px);
  white-space: nowrap;
}

/* =========================================
   Responsive
   ========================================= */
@media (max-width: 1024px) {
  :root { --space-32: 6rem; --space-20: 4rem; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: var(--space-8); }
  .hero__card-stack { width: 280px; }
}

@media (max-width: 768px) {
  :root { --space-32: 4rem; --space-20: 3rem; --space-16: 2.5rem; }

  .main-nav, .header-login { display: none; }
  .menu-toggle { display: flex; }

  .main-nav.is-open {
    display: flex;
    position: fixed;
    inset: var(--header-height) 0 0 0;
    background: var(--clr-white);
    flex-direction: column;
    padding: var(--space-6);
    z-index: 99;
    border-top: 1px solid var(--clr-border);
    animation: fadeSlide .25s ease;
    overflow-y: auto;
  }
  @keyframes fadeSlide {
    from { opacity: 0; transform: translateY(-8px); }
    to   { opacity: 1; transform: translateY(0); }
  }
  .main-nav.is-open .menu,
  .main-nav.is-open ul {
    flex-direction: column;
    align-items: stretch;
    gap: var(--space-1);
  }
  .main-nav.is-open .menu a,
  .main-nav.is-open ul a {
    font-size: var(--text-base);
    padding: var(--space-4);
  }

  .hero__inner { grid-template-columns: 1fr; text-align: center; }
  .hero__visual { display: none; }
  .hero__subline, .hero__badge { margin-inline: auto; }
  .hero__cta { justify-content: center; }
  .hero__trust { justify-content: center; }

  .features-grid { grid-template-columns: 1fr; gap: var(--space-4); }
  .community__inner { grid-template-columns: 1fr; }

  .content-layout { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: var(--space-8); }
  .footer-bottom { flex-direction: column; text-align: center; }
}

@media (max-width: 480px) {
  .container { padding-inline: var(--space-4); }
  h1 { font-size: var(--text-4xl); }
  h2 { font-size: var(--text-3xl); }
  .cta-banner__title { font-size: var(--text-4xl); }
  .hero__cta { flex-direction: column; align-items: stretch; }
  .stats-grid { grid-template-columns: 1fr; }
}
/* =========================================
   Header User Bar (Logged In)
   ========================================= */
.header-user-nav {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.header-icon-btn {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  background: var(--clr-bg-alt);
  color: var(--clr-text-muted);
  border: 1px solid var(--clr-border);
  transition: all var(--transition-fast);
}

.header-icon-btn:hover {
  background: var(--clr-primary-light);
  color: var(--clr-primary);
  border-color: var(--clr-primary-light);
  transform: translateY(-1px);
}

.header-icon-btn svg {
  width: 20px;
  height: 20px;
}

.header-profile-dropdown {
  margin-left: var(--space-2);
  position: relative;
}

.header-profile-toggle {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-1) var(--space-4) var(--space-1) var(--space-1);
  background: var(--clr-bg-alt);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-full);
  transition: all var(--transition-fast);
  text-decoration: none;
}

.header-profile-toggle:hover {
  background: var(--clr-primary-light);
  border-color: var(--clr-primary-light);
}

.header-profile-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--clr-primary);
  box-shadow: 0 0 10px rgba(232, 64, 90, 0.3);
}

.header-profile-name {
  font-family: var(--font-heading);
  font-size: var(--text-sm);
  font-weight: var(--weight-bold);
  color: var(--clr-text);
}

.header-profile-caret {
  width: 14px;
  height: 14px;
  color: var(--clr-text-muted);
  transition: transform var(--transition-fast);
}
.header-profile-dropdown.is-open .header-profile-caret {
  transform: rotate(180deg);
}

.header-profile-menu {
  display: none;
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  min-width: 200px;
  background: var(--clr-white);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: var(--space-2);
  z-index: 200;
  animation: dropdownFade .15s ease;
}
.header-profile-dropdown.is-open .header-profile-menu {
  display: block;
}
@keyframes dropdownFade {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: translateY(0); }
}

.header-profile-menu__item {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-sm);
  font-family: var(--font-heading);
  font-size: var(--text-sm);
  font-weight: var(--weight-semibold);
  color: var(--clr-text);
  transition: background var(--transition-fast);
  text-decoration: none;
}
.header-profile-menu__item svg {
  width: 16px; height: 16px;
  flex-shrink: 0;
  color: var(--clr-text-muted);
}
.header-profile-menu__item:hover {
  background: var(--clr-bg-alt);
  color: var(--clr-text);
}
.header-profile-menu__item--logout { color: var(--clr-primary); }
.header-profile-menu__item--logout svg { color: var(--clr-primary); }
.header-profile-menu__item--logout:hover { background: var(--clr-primary-light); }

.header-profile-menu__divider {
  height: 1px;
  background: var(--clr-border);
  margin: var(--space-2) var(--space-2);
}


@media (max-width: 768px) {
  .header-profile-name,
  .header-profile-caret {
    display: none;
  }
  .header-profile-toggle {
    padding: 0;
    border: none;
    background: none;
  }
  .header-icon-btn {
    width: 36px;
    height: 36px;
  }
}

/* =========================================
   Datezo Checkbox Fix
   ========================================= */
#datezo-app input[type="checkbox"],
.datezo-frontend-app input[type="checkbox"] {
  -webkit-appearance: checkbox !important;
  appearance: checkbox !important;
  display: inline-block !important;
  opacity: 1 !important;
  width: 18px !important;
  height: 18px !important;
  margin-right: 12px !important;
  cursor: pointer !important;
  vertical-align: middle !important;
  accent-color: var(--clr-primary) !important;
}

/* Ensure labels don't hide the checkbox */
#datezo-app label,
.datezo-frontend-app label {
  display: flex !important;
  align-items: center !important;
  cursor: pointer !important;
  text-align: left !important;
}

/* --- Datezo Global Fixes & Refinements --- */

/* Force checkbox visibility regardless of Tailwind/design resets */
input[type="checkbox"], 
.datezo-checkbox,
.datezo-frontend-app input[type="checkbox"] {
    -webkit-appearance: checkbox !important;
    -moz-appearance: checkbox !important;
    appearance: checkbox !important;
    display: inline-block !important;
    width: 20px !important;
    height: 20px !important;
    min-width: 20px !important;
    min-height: 20px !important;
    opacity: 1 !important;
    visibility: visible !important;
    border: 2px solid #6b7280 !important;
    background-color: #ffffff !important;
    margin-right: 8px !important;
    cursor: pointer !important;
    position: relative !important;
    z-index: 10 !important;
}

.datezo-frontend-app .flex.items-center.gap-2 label {
    display: flex !important;
    align-items: center !important;
    cursor: pointer !important;
}

/* --- Datezo Sidebar: Clean & Compact Restoration --- */

/* Restore Flex Layout for all items */
.datezo-frontend-app .flex.items-center.gap-3,
.datezo-frontend-app .flex.items-start.gap-3,
.datezo-frontend-app .group.flex.gap-3 {
    display: flex !important;
    align-items: flex-start !important;
    gap: 12px !important;
    margin-bottom: 12px !important;
    background: transparent !important;
    padding: 0 !important;
    border: none !important;
    width: 100% !important;
    text-align: left !important;
}

/* Fix Icon Sizes */
.datezo-frontend-app .w-8.h-8.rounded-full,
.datezo-frontend-app .rounded-full.bg-slate-50,
.datezo-frontend-app .text-slate-400 {
    width: 32px !important;
    height: 32px !important;
    min-width: 32px !important;
    min-height: 32px !important;
    flex-shrink: 0 !important;
    border-radius: 10px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    background-color: #f1f5f9 !important;
    color: var(--clr-primary) !important;
}

.datezo-frontend-app .w-8.h-8 svg {
    width: 16px !important;
    height: 16px !important;
}

/* Text Container */
.datezo-frontend-app .flex-1 {
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
}

/* Label styling */
.datezo-frontend-app .uppercase.font-bold,
.datezo-frontend-app .text-\[10px\] {
    font-size: 10px !important;
    color: #94a3b8 !important; /* slate-400 */
    margin-bottom: 2px !important;
    letter-spacing: 0.05em !important;
}

/* Value styling */
.datezo-frontend-app .text-gray-800,
.datezo-frontend-app .text-slate-700,
.datezo-frontend-app .font-medium {
    font-size: 14px !important;
    color: #1e293b !important; /* slate-900 */
    font-weight: 600 !important;
    line-height: 1.4 !important;
    max-height: none !important;
    overflow: visible !important;
    white-space: normal !important;
}

/* Compact Interests */
.datezo-frontend-app .flex.wrap.gap-2 span {
    background: #f1f5f9 !important;
    padding: 3px 10px !important;
    font-size: 0.75rem !important;
    border-radius: 100px !important;
    color: #475569 !important;
    font-weight: 600 !important;
}

/* Clean up any leftover indicators */
.datezo-frontend-app .flex.gap-3::after {
    display: none !important;
}

/* Interests / Chips - even more compact */
.datezo-frontend-app .flex.wrap.gap-2 span,
.datezo-frontend-app .flex.flex-wrap.gap-2 span {
    background: #f1f5f9 !important;
    padding: 3px 10px !important;
    font-size: 0.75rem !important;
    border-radius: 8px !important;
}

/* ── Datezo Full-Width Breakout ── */
.datezo-frontend-app {
    width: 100vw !important;
    position: relative !important;
    left: 50% !important;
    margin-left: -50vw !important;
    box-sizing: border-box;
}
.entry-content .datezo-frontend-app,
.content-area .datezo-frontend-app,
.container .datezo-frontend-app,
.container--narrow .datezo-frontend-app {
    width: 100vw !important;
    left: 50% !important;
    margin-left: -50vw !important;
    max-width: none !important;
}

/* Remove page padding for Datezo SPA pages */
body.datezo-fullpage .content-area,
body.datezo-fullpage .datezo-wrapper {
    padding-block: 0;
    padding-top: 0 !important;
}
body.datezo-fullpage .site-main {
    padding-block: 0;
}
