/* ============================================
   COSNIMA — Home / Nav Styles
   ============================================ */

/* ── Navbar ── */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-h);
  background: rgba(253,246,238,0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1.5px solid transparent;
  display: flex;
  align-items: center;
  z-index: 500;
  transition: border-color var(--t-slow), background var(--t-slow), box-shadow var(--t-slow);
}
[data-theme="dark"] .navbar {
  background: rgba(26,14,8,0.88);
}
.navbar.scrolled {
  border-color: var(--border);
  box-shadow: 0 2px 20px rgba(42,26,14,0.08);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 var(--space-lg);
  gap: var(--space-lg);
}

/* Logo */
.nav-logo {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  text-decoration: none;
  z-index: 101;
  flex-shrink: 0;
}
.nav-logo-beaver {
  width: 36px; height: 36px;
}
.nav-logo-name {
  font-family: var(--font-display);
  font-size: 1.5rem;
  letter-spacing: 0.08em;
  color: var(--ink);
  line-height: 1;
}
.nav-logo-name span { color: var(--accent); }

/* Desktop nav links */
.nav-links {
  display: none;
  align-items: center;
  gap: var(--space-xl);
  flex: 1;
  justify-content: center;
}
.nav-links a {
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  color: var(--ink-muted);
  transition: color var(--t-base);
  position: relative;
  padding-bottom: 2px;
}
.nav-links a::after {
  content: '';
  position: absolute;
  left: 0; bottom: -2px;
  width: 0; height: 2.5px;
  background: var(--accent);
  border-radius: 2px;
  transition: width var(--t-base);
}
.nav-links a:hover, .nav-links a.active { color: var(--ink); }
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }

@media (min-width: 769px) { .nav-links { display: flex; } }

/* Right cluster */
.nav-right { display: flex; align-items: center; gap: var(--space-sm); flex-shrink: 0; }

/* Theme toggle */
.theme-btn {
  width: 38px; height: 38px;
  border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  color: var(--ink-muted);
  border: 1.5px solid var(--border);
  transition: all var(--t-base);
  background: var(--card);
}
.theme-btn:hover { color: var(--ink); border-color: var(--accent); transform: rotate(20deg); }
.theme-btn svg { width: 18px; height: 18px; }
.icon-sun  { display: none; }
.icon-moon { display: block; }
[data-theme="dark"] .icon-sun  { display: block; }
[data-theme="dark"] .icon-moon { display: none; }

/* Desktop auth */
#nav-auth { display: none; align-items: center; gap: var(--space-sm); }
@media (min-width: 769px) { #nav-auth { display: flex; } }
.btn-nav { padding: 0.5rem 1.1rem; font-size: 0.84rem; }

/* Auth greeting */
.auth-greeting { display: flex; align-items: center; gap: var(--space-sm); }
.greeting-text { font-size: 0.84rem; font-weight: 600; color: var(--ink); }
.greeting-text strong { color: var(--accent); }

/* Hamburger */
.nav-hamburger {
  display: flex;
  flex-direction: column;
  gap: 5px;
  width: 28px; height: 24px;
  cursor: pointer;
  z-index: 101;
  padding: 2px;
}
.nav-hamburger span {
  width: 100%; height: 2.5px;
  background: var(--ink);
  border-radius: 2px;
  transition: all var(--t-base);
  transform-origin: center;
}
.nav-hamburger[aria-expanded="true"] span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.nav-hamburger[aria-expanded="true"] span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-hamburger[aria-expanded="true"] span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }
@media (min-width: 769px) { .nav-hamburger { display: none; } }

/* Mobile drawer */
.mobile-nav {
  position: fixed;
  top: 0; right: 0;
  width: min(300px, 85vw);
  height: 100vh;
  background: var(--bg);
  border-left: 1.5px solid var(--border);
  box-shadow: var(--shadow-lg);
  padding: calc(var(--nav-h) + var(--space-lg)) var(--space-xl) var(--space-xl);
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 499;
  display: flex;
  flex-direction: column;
  gap: var(--space-xl);
  overflow-y: auto;
}
.mobile-nav.open { transform: translateX(0); }
.mobile-nav-links { display: flex; flex-direction: column; gap: var(--space-sm); }
.mobile-nav-links a {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--ink);
  padding: var(--space-md) 0;
  border-bottom: 1.5px solid var(--border);
  transition: color var(--t-base), padding-left var(--t-base);
}
.mobile-nav-links a:hover { color: var(--accent); padding-left: var(--space-sm); }
.mobile-nav-actions { display: flex; flex-direction: column; gap: var(--space-sm); margin-top: auto; }
@media (min-width: 769px) { .mobile-nav { display: none !important; } }

/* Mobile overlay */
.mobile-overlay {
  position: fixed; inset: 0;
  background: rgba(42,26,14,0.5);
  opacity: 0; pointer-events: none;
  transition: opacity var(--t-slow);
  z-index: 498;
  backdrop-filter: blur(2px);
}
.mobile-overlay.active { opacity: 1; pointer-events: all; }

/* ── Hero ── */
.hero {
  padding-top: calc(var(--nav-h) + var(--space-3xl));
  padding-bottom: var(--space-3xl);
  position: relative;
  overflow: hidden;
}

/* Decorative blobs */
.hero::before {
  content: '';
  position: absolute;
  top: -100px; right: -150px;
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(240,98,146,0.12) 0%, transparent 70%);
  pointer-events: none;
}
.hero::after {
  content: '';
  position: absolute;
  bottom: 0; left: -100px;
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(200,122,80,0.1) 0%, transparent 70%);
  pointer-events: none;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-2xl);
  align-items: center;
  position: relative;
  z-index: 1;
}
@media (min-width: 1024px) {
  .hero-inner { grid-template-columns: 1fr 400px; gap: var(--space-3xl); }
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  background: rgba(240,98,146,0.1);
  border: 1.5px solid rgba(240,98,146,0.25);
  border-radius: var(--radius-pill);
  padding: 0.3rem 0.85rem;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: var(--space-md);
  animation: slideUp 0.6s ease 0.1s both;
}

.hero-title {
  font-size: clamp(2.8rem, 8vw, 5.5rem);
  line-height: 1.0;
  color: var(--ink);
  margin-bottom: var(--space-lg);
  animation: slideUp 0.6s ease 0.2s both;
}
.hero-title em { font-style: italic; color: var(--accent); }
.hero-title .wiggle-line {
  display: inline-block;
  position: relative;
}
.hero-title .wiggle-line::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0; right: 0;
  height: 4px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='4'%3E%3Cpath d='M0 2 Q5 0 10 2 Q15 4 20 2' stroke='%23f06292' stroke-width='2' fill='none'/%3E%3C/svg%3E") repeat-x;
}

.hero-desc {
  font-size: 1.05rem;
  color: var(--ink-muted);
  max-width: 480px;
  line-height: 1.75;
  margin-bottom: var(--space-xl);
  font-weight: 500;
  animation: slideUp 0.6s ease 0.3s both;
}

/* Hero search */
.hero-search {
  display: flex;
  border: 2.5px solid var(--border-dark);
  border-radius: var(--radius-pill);
  overflow: hidden;
  background: var(--card);
  transition: border-color var(--t-base), box-shadow var(--t-base);
  max-width: 500px;
  animation: slideUp 0.6s ease 0.4s both;
  margin-bottom: var(--space-lg);
  box-shadow: var(--shadow-sm);
}
.hero-search:focus-within {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(240,98,146,0.15);
}
.hero-search input {
  flex: 1;
  padding: 1rem 1.25rem;
  border: none; outline: none;
  font-size: 0.95rem; font-weight: 500;
  color: var(--ink);
  background: transparent;
  min-width: 0;
}
.hero-search input::placeholder { color: var(--ink-faint); }
.hero-search button {
  padding: 0 1.5rem;
  background: var(--accent);
  color: white;
  font-size: 0.88rem;
  font-weight: 700;
  transition: background var(--t-base);
  white-space: nowrap;
  flex-shrink: 0;
  display: flex; align-items: center; gap: var(--space-sm);
}
.hero-search button:hover { background: var(--accent-dark); }

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  animation: slideUp 0.6s ease 0.5s both;
}

@keyframes slideUp {
  from { opacity: 0; transform: translateY(22px); }
  to   { opacity: 1; transform: none; }
}

/* Hero visual — floating cards */
.hero-visual {
  display: none;
  position: relative;
  animation: slideUp 0.7s ease 0.3s both;
}
@media (min-width: 1024px) { .hero-visual { display: block; } }

.card-stack { position: relative; height: 400px; }
.hero-card {
  position: absolute;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.hero-card:nth-child(1) {
  width: 210px; height: 265px;
  top: 15px; left: 100px;
  transform: rotate(-5deg);
  z-index: 3;
  animation: cardFloat1 6s ease-in-out infinite;
}
.hero-card:nth-child(2) {
  width: 195px; height: 248px;
  top: 65px; left: 190px;
  transform: rotate(4deg);
  z-index: 2;
  animation: cardFloat2 7.5s ease-in-out infinite;
}
.hero-card:nth-child(3) {
  width: 175px; height: 220px;
  top: 110px; left: 20px;
  transform: rotate(-2deg);
  z-index: 1;
  animation: cardFloat3 5.5s ease-in-out infinite;
}
.hero-card img, .hero-card .hero-card-placeholder {
  width: 100%; height: 100%;
  object-fit: cover;
}
.hero-card-placeholder {
  background: linear-gradient(135deg, var(--bg-alt), var(--beaver-cream));
  display: flex; align-items: center; justify-content: center;
  font-size: 4rem;
}
@keyframes cardFloat1 { 0%,100%{transform:rotate(-5deg) translateY(0)} 50%{transform:rotate(-5deg) translateY(-12px)} }
@keyframes cardFloat2 { 0%,100%{transform:rotate(4deg) translateY(0)} 50%{transform:rotate(4deg) translateY(-8px)} }
@keyframes cardFloat3 { 0%,100%{transform:rotate(-2deg) translateY(0)} 50%{transform:rotate(-2deg) translateY(-15px)} }

/* ── Stats strip ── */
.stats-strip {
  background: linear-gradient(135deg, var(--beaver), var(--accent));
  color: white;
  padding: var(--space-lg) 0;
  position: relative;
  overflow: hidden;
}
.stats-strip::before {
  content: '';
  position: absolute; inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='40' height='40' viewBox='0 0 40 40' xmlns='http://www.w3.org/2000/svg'%3E%3Ccircle cx='20' cy='20' r='1.5' fill='rgba(255,255,255,0.1)'/%3E%3C/svg%3E") repeat;
}
.stats-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2xl);
  flex-wrap: wrap;
  position: relative;
}
.stat { text-align: center; }
.stat-num {
  font-family: var(--font-display);
  font-size: 2rem;
  color: white;
  display: block;
  line-height: 1;
}
.stat-lbl {
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.75);
  margin-top: 0.3rem;
}
.stat-sep { width: 1px; height: 40px; background: rgba(255,255,255,0.25); display: none; }
@media (min-width: 640px) { .stat-sep { display: block; } }

/* ── Series rail ── */
.series-rail {
  display: flex;
  gap: var(--space-sm);
  overflow-x: auto;
  padding-bottom: var(--space-sm);
  scrollbar-width: none;
}
.series-rail::-webkit-scrollbar { display: none; }

/* ── Section header ── */
.section-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: var(--space-xl);
  flex-wrap: wrap;
  gap: var(--space-md);
}
.section-header a {
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ── Listings grid ── */
.listings-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-lg);
}
@media (min-width: 540px) { .listings-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) { .listings-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1200px) { .listings-grid { grid-template-columns: repeat(4, 1fr); } }

/* ── How section ── */
.how-section {
  background: var(--bg-alt);
  padding: var(--space-3xl) 0;
  position: relative;
  overflow: hidden;
}
.how-section::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--beaver), var(--accent), var(--loopy-coral));
}
.steps-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-lg);
  margin-top: var(--space-2xl);
}
@media (min-width: 768px) { .steps-grid { grid-template-columns: repeat(3, 1fr); } }

.step-card {
  padding: var(--space-xl);
  background: var(--card);
  border-radius: var(--radius-lg);
  border: 2px solid var(--border);
  transition: transform var(--t-base), box-shadow var(--t-base), border-color var(--t-base);
  position: relative;
  overflow: hidden;
}
.step-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--beaver));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--t-slow);
}
.step-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: var(--accent); }
.step-card:hover::before { transform: scaleX(1); }
.step-num {
  font-family: var(--font-display);
  font-size: 3.5rem;
  color: var(--accent);
  line-height: 1;
  margin-bottom: var(--space-md);
  opacity: 0.8;
}
.step-title { font-family: var(--font-display); font-size: 1.4rem; color: var(--ink); margin-bottom: var(--space-sm); }
.step-card p { font-size: 0.9rem; }

/* ── Convention banner ── */
.convention-banner {
  background: linear-gradient(135deg, var(--ink) 0%, #3a2010 100%);
  border-radius: var(--radius-xl);
  padding: var(--space-2xl) var(--space-2xl);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-xl);
  overflow: hidden;
  position: relative;
  flex-direction: column;
  text-align: center;
}
.convention-banner::before {
  content: '';
  position: absolute;
  top: -60px; right: -60px;
  width: 250px; height: 250px;
  background: rgba(240,98,146,0.15);
  border-radius: 50%;
}
@media (min-width: 768px) { .convention-banner { flex-direction: row; text-align: left; } }
.conv-text h2 { color: white; }
.conv-text p  { color: rgba(255,255,255,0.7); font-size: 0.92rem; margin-top: var(--space-sm); }
.btn-conv {
  background: var(--accent);
  color: white;
  white-space: nowrap;
  flex-shrink: 0;
  box-shadow: var(--shadow-pink);
}
.btn-conv:hover { background: var(--accent-light); transform: translateY(-2px); box-shadow: 0 12px 32px rgba(240,98,146,0.5); }

/* ── Footer ── */
.footer {
  border-top: 1.5px solid var(--border);
  padding: var(--space-2xl) 0 var(--space-xl);
  background: var(--bg-alt);
}
.footer-top {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-xl);
  margin-bottom: var(--space-2xl);
}
@media (min-width: 640px)  { .footer-top { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .footer-top { grid-template-columns: 1.8fr repeat(3, 1fr); gap: var(--space-2xl); } }

.footer-brand .footer-logo-name {
  font-family: var(--font-display);
  font-size: 1.6rem;
  letter-spacing: 0.08em;
  color: var(--ink);
  margin-bottom: var(--space-sm);
}
.footer-brand .footer-logo-name span { color: var(--accent); }
.footer-brand p { font-size: 0.85rem; max-width: 260px; }
.footer-col h4 {
  font-family: var(--font-body);
  font-size: 0.7rem; font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-bottom: var(--space-md);
}
.footer-col ul { display: flex; flex-direction: column; gap: var(--space-sm); }
.footer-col a { font-size: 0.87rem; color: var(--ink-muted); font-weight: 500; transition: color var(--t-base); }
.footer-col a:hover { color: var(--accent); }
.footer-bottom {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: var(--space-xl);
  border-top: 1.5px solid var(--border);
  font-size: 0.78rem; color: var(--ink-faint); font-weight: 600;
  flex-wrap: wrap; gap: var(--space-md);
}
.footer-bottom-links { display: flex; gap: var(--space-lg); }
.footer-bottom-links a { color: var(--ink-faint); transition: color var(--t-base); }
.footer-bottom-links a:hover { color: var(--accent); }