/**
 * Cross Farm Digital — Main Stylesheet
 * Scroll-driven single-page experience.
 *
 * @package CrossFarm
 */

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

:root {
  --font-display: 'Bebas Neue', sans-serif;
  --font-body: 'Libre Baskerville', Georgia, serif;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --c-dark: #0a0a0c;
  --c-cream: #F5F3EE;
  --c-accent: #E84820;
  --c-blue: #1a1a3e;
}

html { overflow-x: hidden; font-size: 16px; }

body {
  background: var(--c-dark);
  color: var(--c-cream);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Custom cursor only on front-end (not in WP admin) */
body:not(.wp-admin) {
  cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 20 20'%3E%3Ccircle cx='10' cy='10' r='4' fill='%23E84820'/%3E%3Ccircle cx='10' cy='10' r='7' fill='none' stroke='%23E84820' stroke-width='1' opacity='0.35'/%3E%3C/svg%3E") 10 10, auto;
}

/* Pointer cursor for clickable elements */
body:not(.wp-admin) a,
body:not(.wp-admin) button,
body:not(.wp-admin) .scroll-dot,
body:not(.wp-admin) .exp-tag,
body:not(.wp-admin) .contact-btn,
body:not(.wp-admin) .mode-toggle {
  cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24'%3E%3Ccircle cx='12' cy='12' r='5' fill='%23E84820'/%3E%3Ccircle cx='12' cy='12' r='9' fill='none' stroke='%23E84820' stroke-width='1' opacity='0.5'/%3E%3C/svg%3E") 12 12, pointer;
}

::selection { background: var(--c-accent); color: #fff; }

/* ── Canvas ── */
#particleCanvas {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

/* ── Old cursor elements — hidden ── */
.cursor-ring,
.cursor-dot {
  display: none !important;
}

/* ── Scroll container ── */
.scroll-space {
  height: 800vh;
  position: relative;
}

/* ── Fixed stage ── */
.stage {
  position: fixed;
  inset: 0;
  z-index: 1;
  overflow: hidden;
}

/* ── Intro layer ── */
.intro-layer {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  will-change: transform, opacity;
}

.brand-mega {
  font-family: var(--font-display);
  font-size: clamp(4rem, 14vw, 14rem);
  letter-spacing: 0.15em;
  line-height: 0.9;
  text-align: center;
  will-change: transform;
}

.brand-mega .bchar {
  display: inline-block;
  will-change: transform, opacity;
}

.brand-line-2 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 6vw, 6rem);
  letter-spacing: 0.4em;
  color: var(--c-accent);
  margin-top: 0.5rem;
}

.brand-line-2 .bchar {
  display: inline-block;
  will-change: transform;
}

/* ── Tagline ── */

.hero-credit {
  font-size: 0.85rem;
  color: #635f59;
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 3rem;
}

.hero-credit::before {
  content: '';
  width: 30px;
  height: 1px;
  background: #635f59;
}

.tagline-layer {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  will-change: opacity;
}

.tagline {
  font-family: var(--font-body);
  font-size: clamp(1.6rem, 4vw, 3.5rem);
  font-style: italic;
  font-weight: 400;
  text-align: center;
  max-width: 700px;
  padding: 0 2rem;
  line-height: 1.4;
}

.tagline strong {
  font-style: normal;
  font-weight: 700;
  color: var(--c-accent);
}

.tagline .tword {
  display: inline-block;
  opacity: 0;
  transform: translateY(50px) scale(0.8);
  filter: blur(8px);
  will-change: transform, opacity, filter;
}

/* ── Services ── */
.services-layer {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  opacity: 0;
  will-change: opacity;
}

.service-mega {
  font-family: var(--font-display);
  font-size: clamp(2rem, 7vw, 7rem);
  letter-spacing: 0.08em;
  text-align: center;
  line-height: 1;
  margin: 0.5rem 0;
  opacity: 0;
  transform: translateX(-100vw) rotate(-5deg);
  will-change: transform, opacity;
}

.service-mega:nth-child(2) { color: var(--c-accent); }

.service-mega .service-sub {
  font-family: var(--font-body);
  font-size: clamp(0.7rem, 1.2vw, 1rem);
  font-style: italic;
  letter-spacing: 0;
  color: rgba(245,243,238,0.55);
  display: block;
  margin-top: 0.3rem;
}

/* ── Experience ── */
.exp-layer {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  will-change: opacity;
  background: #c0401a;
}

.exp-content {
  text-align: center;
  max-width: 800px;
  padding: 0 2rem;
}

.exp-huge {
  font-family: var(--font-display);
  font-size: clamp(10rem, 30vw, 28rem);
  line-height: 0.75;
  letter-spacing: 0.02em;
  color: rgba(255,255,255,0.1);
  position: relative;
  will-change: transform;
}

.exp-huge-fill {
  position: absolute;
  inset: 0;
  color: rgba(255,255,255,0.95);
  clip-path: inset(100% 0 0 0);
  will-change: clip-path;
  transition: clip-path 0.05s linear;
}

.exp-description {
  font-size: clamp(0.9rem, 1.5vw, 1.15rem);
  line-height: 1.8;
  color: #fff;
  margin-top: 2rem;
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
}

.exp-tags {
  margin-top: 2rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.4rem;
}

.exp-tag {
  font-family: var(--font-display);
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  padding: 0.4rem 0.9rem;
  border: 1px solid rgba(255,255,255,0.35);
  color: #fff;
  opacity: 0;
  transform: scale(0);
  will-change: transform, opacity;
  transition: background 0.3s, color 0.3s, border-color 0.3s;
}

.exp-tag.pop {
  opacity: 1;
  transform: scale(1);
}

.exp-tag:hover {
  background: rgba(255,255,255,0.15);
  color: #fff;
  border-color: rgba(255,255,255,0.5);
}

/* ── Contact ── */
.contact-layer {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  opacity: 0;
  will-change: opacity;
  background: var(--c-dark);
}

.contact-giant {
  font-family: var(--font-display);
  font-size: clamp(3rem, 10vw, 10rem);
  letter-spacing: 0.1em;
  text-align: center;
  line-height: 1;
  margin-bottom: 2rem;
  will-change: transform;
}

.contact-giant .gchar {
  display: inline-block;
  opacity: 0;
  will-change: transform, opacity;
}

.contact-invite {
  font-family: var(--font-body);
  font-size: clamp(0.9rem, 1.5vw, 1.15rem);
  font-style: italic;
  color: rgba(245,243,238,0.65);
  margin-bottom: 3rem;
  text-align: center;
  max-width: 400px;
  padding: 0 2rem;
}

.contact-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.contact-btn {
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 2.5vw, 1.8rem);
  letter-spacing: 0.12em;
  color: var(--c-cream);
  text-decoration: none;
  padding: 0.6rem 0;
  position: relative;
  overflow: hidden;
  display: inline-block;
}

.contact-btn::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 100%; height: 2px;
  background: var(--c-accent);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.6s var(--ease);
}

.contact-btn:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

.contact-status {
  margin-top: 3rem;
  font-size: 0.8rem;
  color: rgba(245,243,238,0.6);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.contact-status::before {
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
  background: #4ADE80;
  box-shadow: 0 0 12px rgba(74,222,128,0.4);
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

/* ── Fixed nav ── */
.fixed-nav {
  position: fixed;
  bottom: 2.5rem;
  left: 3rem;
  z-index: 200;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  mix-blend-mode: difference;
  will-change: transform;
}

/* Bobble keyframes — plays once on first contact and on release */
@keyframes navBobble {
  0%   { transform: translateY(var(--nav-nudge, 0px)); }
  25%  { transform: translateY(calc(var(--nav-nudge, 0px) - 10px)); }
  50%  { transform: translateY(calc(var(--nav-nudge, 0px) + 4px)); }
  75%  { transform: translateY(calc(var(--nav-nudge, 0px) - 2px)); }
  100% { transform: translateY(var(--nav-nudge, 0px)); }
}

.fixed-nav.bobble {
  animation: navBobble 0.45s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.fixed-nav a {
  font-family: var(--font-body);
  font-size: 0.8rem;
  color: #fff;
  text-decoration: none;
  opacity: 0.3;
  transition: opacity 0.3s, transform 0.4s var(--ease);
}

.fixed-nav a:hover { opacity: 0.7; transform: translateX(5px); }
.fixed-nav a.active { opacity: 1; }

/* ── Scroll dots ── */
.scroll-dots {
  position: fixed;
  right: 2rem;
  top: 0;
  z-index: 200;
  height: 100vh;
  height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  mix-blend-mode: difference;
  pointer-events: none;
  width: 20px;
}

.scroll-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.3);
  background: transparent;
  transition: background 0.4s var(--ease), border-color 0.4s var(--ease), box-shadow 0.4s var(--ease);
  cursor: pointer;
  pointer-events: auto;
  flex-shrink: 0;
}

.scroll-dot.active {
  background: var(--c-accent);
  border-color: var(--c-accent);
  box-shadow: 0 0 6px rgba(232,72,32,0.4);
}

/* ── Noise ── */
.noise {
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ── Footer ── */
.footer {
  background: var(--c-dark);
  padding: 2rem 3rem;
  border-top: 1px solid rgba(255,255,255,0.06);
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 2rem;
  position: relative;
  z-index: 2;
}

.footer p {
  font-size: 0.78rem;
  color: rgba(245,243,238,0.6);
}

.footer-privacy {
  font-family: var(--font-display);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(245,243,238,0.4);
  text-decoration: none;
  transition: color 0.3s;
}

.footer-privacy:hover {
  color: rgba(245,243,238,0.8);
}

/* ── Responsive ── */
@media (max-width: 768px) {
  .cursor-ring, .cursor-dot { display: none; }
  body { cursor: auto; }
  .scroll-dots { right: 1rem; }
  .fixed-nav { left: 1.5rem; bottom: 1.5rem; }
  .exp-huge { font-size: 8rem; }
}

/* ── WP admin bar offset ── */
.admin-bar .fixed-nav,
.admin-bar .scroll-dots,
.admin-bar .cursor-ring,
.admin-bar .cursor-dot {
  top: auto; /* prevent admin bar overlap */
}

.admin-bar .stage {
  top: 32px;
}

@media screen and (max-width: 782px) {
  .admin-bar .stage {
    top: 46px;
  }
}

/* ══════════════════════════════════════
   DARK / LIGHT MODE
   ══════════════════════════════════════ */

/* Light mode overrides */
body[data-mode="light"] {
  --c-dark: #F5F3EE;
  --c-cream: #1a1a2e;
  --c-accent: #D04420;
  background: #F5F3EE;
  color: #1a1a2e;
}

body[data-mode="light"] .s-home {
  background: #F5F3EE;
  color: #1a1a2e;
}

body[data-mode="light"] .s-services {
  background: #E8E5DE;
  color: #1a1a2e;
}

body[data-mode="light"] .s-services .service-content p {
  color: rgba(26,26,46,0.65);
}

body[data-mode="light"] .s-services .service-num {
  color: rgba(26,26,46,0.55);
}

body[data-mode="light"] .s-services .service-item {
  border-color: rgba(26,26,46,0.08);
}

body[data-mode="light"] .service-mega .service-sub {
  color: rgba(26,26,46,0.7);
}

body[data-mode="light"] .s-contact {
  background: #1a1a2e;
  color: #E8E6E1;
}

body[data-mode="light"] .contact-layer {
  background: #1a1a2e;
}

body[data-mode="light"] .contact-giant,
body[data-mode="light"] .contact-giant .gchar {
  color: #E8E6E1;
}

body[data-mode="light"] .contact-invite {
  color: rgba(232,230,225,0.65);
}

body[data-mode="light"] .contact-btn {
  color: #E8E6E1;
}

body[data-mode="light"] .contact-status {
  color: rgba(232,230,225,0.6);
}

body[data-mode="light"] .noise { opacity: 0.02; }

body[data-mode="light"] .fixed-nav a,
body[data-mode="light"] .letter-banner span {
  /* mix-blend-mode: difference handles this automatically */
}

body[data-mode="light"] .footer {
  background: #1a1a2e;
}

body[data-mode="light"] .footer p {
  color: rgba(232,230,225,0.6);
}

body[data-mode="light"] .hero-credit { color: #635f59; }

/* Transition for smooth mode switch */

/* ══════════════════════════════════════
   TOP-LEFT BRAND NAME
   ══════════════════════════════════════ */

.top-brand {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 200;
  padding: 1.5rem 2.5rem;
  text-decoration: none;
  font-family: var(--font-display);
  font-size: 0.85rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #fff;
  mix-blend-mode: difference;
  display: flex;
  align-items: center;
  height: auto;
  line-height: 1;
}
body,
body .s-home,
body .s-services,
body .s-contact,
body .contact-layer,
body .footer {
  transition: background-color 0.8s ease, color 0.8s ease;
}

/* ══════════════════════════════════════
   TOP BAR (client login + mode toggle)
   Colour adapts via JS data-theme attribute
   based on which scroll section is active
   ══════════════════════════════════════ */

.top-bar {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 200;
  padding: 1.5rem 2.5rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  height: auto;
}

/* ── Colour states set by JS ── */

/* Default / dark bg (intro, services, contact) — light elements */
.top-bar-login {
  font-family: var(--font-display);
  font-size: 0.82rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  color: #fff;
  padding: 0;
  background: var(--c-accent, #E84820);
  border: none;
  transition: background 0.5s ease, color 0.5s ease, transform 0.2s;
  /* Fixed height to match mode button */
  height: 34px;
  line-height: 34px;
  padding: 0 1.1rem;
  display: inline-flex;
  align-items: center;
}

.top-bar-login:hover {
  background: #D04420;
  transform: translateY(-1px);
}

/* Divider */
.top-bar-divider {
  width: 1px;
  height: 18px;
  background: rgba(255,255,255,0.15);
  transition: background 0.5s ease;
  flex-shrink: 0;
  align-self: center;
}

.top-bar-mode {
  background: transparent;
  border: 1px solid rgba(255,255,255,0.3);
  border-radius: 50%;
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
  flex-shrink: 0;
  padding: 0;
  transition: border-color 0.5s ease, transform 0.4s var(--ease);
}

.top-bar-mode:hover {
  border-color: rgba(255,255,255,0.7);
  transform: rotate(15deg);
}

.top-bar-mode .mode-icon {
  stroke: rgba(255,255,255,0.8);
  position: absolute;
  transition: opacity 0.4s, transform 0.5s var(--ease), stroke 0.5s ease;
}

/* ── Light background state (cream home section) ── */
.top-bar[data-section="light"] .top-bar-login {
  background: #1a1a2e;
  color: #F5F3EE;
}

.top-bar[data-section="light"] .top-bar-login:hover {
  background: #2a2a4e;
}

.top-bar[data-section="light"] .top-bar-mode {
  border-color: rgba(26,26,46,0.2);
}

.top-bar[data-section="light"] .top-bar-mode:hover {
  border-color: rgba(26,26,46,0.5);
}

.top-bar[data-section="light"] .top-bar-mode .mode-icon {
  stroke: rgba(26,26,46,0.75);
}

.top-bar[data-section="light"] .top-bar-divider {
  background: rgba(26,26,46,0.15);
}

/* ── Terracotta background state (experience section) ── */
.top-bar[data-section="terracotta"] .top-bar-login {
  background: rgba(255,255,255,0.95);
  color: #C45D3E;
}

.top-bar[data-section="terracotta"] .top-bar-login:hover {
  background: #fff;
}

.top-bar[data-section="terracotta"] .top-bar-mode {
  border-color: rgba(255,255,255,0.5);
}

.top-bar[data-section="terracotta"] .top-bar-mode:hover {
  border-color: #fff;
}

.top-bar[data-section="terracotta"] .top-bar-mode .mode-icon {
  stroke: #fff;
}

.top-bar[data-section="terracotta"] .top-bar-divider {
  background: rgba(255,255,255,0.2);
}

.mode-icon--sun { opacity: 0; transform: rotate(-90deg) scale(0.5); }
.mode-icon--moon { opacity: 1; transform: rotate(0deg) scale(1); }

body[data-mode="light"] .mode-icon--sun { opacity: 1; transform: rotate(0deg) scale(1); }
body[data-mode="light"] .mode-icon--moon { opacity: 0; transform: rotate(90deg) scale(0.5); }

/* ══════════════════════════════════════
   404 PAGE
   ══════════════════════════════════════ */

.error-page {
  position: fixed;
  inset: 0;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--c-dark);
}

.error-content {
  text-align: center;
  position: relative;
  z-index: 2;
}

.error-number {
  font-family: var(--font-display);
  font-size: clamp(8rem, 25vw, 22rem);
  letter-spacing: 0.05em;
  line-height: 0.85;
  color: var(--c-cream);
  margin-bottom: 1.5rem;
  will-change: transform;
}

@keyframes errorCharIn {
  to {
    opacity: 1;
    transform: translate(0, 0) rotate(0deg);
  }
}

.error-message {
  font-family: var(--font-body);
  font-size: clamp(0.95rem, 1.8vw, 1.2rem);
  font-style: italic;
  color: rgba(245,243,238,0.65);
  max-width: 380px;
  margin: 0 auto 2.5rem;
  line-height: 1.7;
  opacity: 0;
  animation: errorFadeUp 0.8s 0.8s var(--ease) forwards;
}

.error-link {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-display);
  font-size: 1.1rem;
  letter-spacing: 0.12em;
  color: var(--c-cream);
  text-decoration: none;
  padding: 0.8rem 1.6rem;
  border: 1px solid rgba(255,255,255,0.15);
  position: relative;
  overflow: hidden;
  opacity: 0;
  animation: errorFadeUp 0.8s 1.2s var(--ease) forwards;
  transition: border-color 0.3s;
}

.error-link::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--c-accent);
  transform: translateX(-101%);
  transition: transform 0.5s var(--ease);
  z-index: -1;
}

.error-link:hover { border-color: var(--c-accent); }
.error-link:hover::before { transform: translateX(0); }

.error-link svg {
  transition: transform 0.3s var(--ease);
}

.error-link:hover svg { transform: translateX(4px); }

@keyframes errorFadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ── Responsive additions ── */
@media (max-width: 768px) {
  .top-brand { padding: 1rem 1.5rem; font-size: 0.7rem; }
  .top-bar { padding: 1rem 1.5rem; gap: 0.4rem; }
  .top-bar-login { font-size: 0.72rem; height: 28px; line-height: 28px; padding: 0 0.7rem; }
  .top-bar-divider { height: 14px; }
  .top-bar-mode { width: 28px; height: 28px; }
  .top-bar-mode .mode-icon { width: 12px; height: 12px; }
}

/* ══════════════════════════════════════
   COOKIE CONSENT BANNER
   ══════════════════════════════════════ */

.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9998;
  padding: 0 2rem;
  pointer-events: none;
  opacity: 0;
  transform: translateY(100%);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}

.cookie-banner--visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.cookie-banner--hiding {
  opacity: 0;
  transform: translateY(20px);
  pointer-events: none;
}

.cookie-banner-inner {
  max-width: 560px;
  margin: 0 0 2rem 2rem;
  padding: 1.25rem 1.5rem;
  background: #1a1a2e;
  border: 1px solid rgba(255,255,255,0.08);
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.cookie-banner-text {
  font-family: var(--font-body);
  font-size: 0.82rem;
  line-height: 1.6;
  color: rgba(245,243,238,0.7);
  flex: 1;
  min-width: 200px;
}

.cookie-banner-text a {
  color: rgba(245,243,238,0.9);
  text-decoration: none;
  border-bottom: 1px solid rgba(245,243,238,0.3);
  transition: border-color 0.3s;
}

.cookie-banner-text a:hover {
  border-color: rgba(245,243,238,0.8);
}

.cookie-banner-actions {
  display: flex;
  gap: 0.5rem;
  flex-shrink: 0;
}

.cookie-btn {
  font-family: var(--font-display);
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border: none;
  padding: 0.55rem 1.1rem;
  cursor: pointer;
  transition: background 0.3s, color 0.3s, transform 0.2s;
}

.cookie-btn-accept {
  background: #c0401a;
  color: #fff;
}

.cookie-btn-accept:hover {
  background: #a33515;
  transform: translateY(-1px);
}

.cookie-btn-dismiss {
  background: transparent;
  color: rgba(245,243,238,0.5);
  border: 1px solid rgba(255,255,255,0.1);
}

.cookie-btn-dismiss:hover {
  color: rgba(245,243,238,0.8);
  border-color: rgba(255,255,255,0.25);
}

/* Light mode */
body[data-mode="light"] .cookie-banner-inner {
  background: #fff;
  border-color: rgba(26,26,46,0.1);
  box-shadow: 0 4px 24px rgba(26,26,46,0.08);
}

body[data-mode="light"] .cookie-banner-text {
  color: #4a4a58;
}

body[data-mode="light"] .cookie-banner-text a {
  color: #1a1a2e;
  border-color: rgba(26,26,46,0.2);
}

body[data-mode="light"] .cookie-btn-dismiss {
  color: #5c5a54;
  border-color: rgba(26,26,46,0.12);
}

body[data-mode="light"] .cookie-btn-dismiss:hover {
  color: #1a1a2e;
  border-color: rgba(26,26,46,0.3);
}

@media (max-width: 600px) {
  .cookie-banner { padding: 0 1rem; }
  .cookie-banner-inner {
    margin: 0 0 1rem 0;
    padding: 1rem;
    flex-direction: column;
    align-items: stretch;
    gap: 1rem;
  }
  .cookie-banner-actions { justify-content: stretch; }
  .cookie-btn { flex: 1; text-align: center; }
}

