﻿/* ============================================
   Alexandra Sowden
   Custom Styles — Ethereal White + Rich Black
   ============================================ */

/* Base */
html {
  scroll-behavior: smooth;
}

[x-cloak] {
  display: none !important;
}

body {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ============================================
   BRAND NAME SHIMMER
   ============================================ */
.brand-shimmer {
  background: linear-gradient(
    90deg,
    #ffffff 0%,
    #ffffff 40%,
    #d4a0a0 48%,
    #c2a67d 52%,
    #ffffff 60%,
    #ffffff 100%
  );
  background-size: 250% 100%;
  background-position: 100% 0;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: brandShimmer 10s ease-in-out infinite;
}

@keyframes brandShimmer {
  0%, 85% { background-position: 100% 0; }
  95% { background-position: -50% 0; }
  100% { background-position: -50% 0; }
}

/* ============================================
   STARFIELD HERO BACKGROUNDS
   ============================================ */
.starfield {
  position: relative;
  overflow: hidden;
}

.starfield::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: 
    radial-gradient(1px 1px at 10% 20%, rgba(255,255,255,0.8) 0%, transparent 50%),
    radial-gradient(1.5px 1.5px at 20% 60%, rgba(255,255,255,0.6) 0%, transparent 50%),
    radial-gradient(1px 1px at 30% 15%, rgba(255,255,255,0.7) 0%, transparent 50%),
    radial-gradient(2px 2px at 40% 80%, rgba(212,160,160,0.5) 0%, transparent 50%),
    radial-gradient(1px 1px at 50% 35%, rgba(255,255,255,0.6) 0%, transparent 50%),
    radial-gradient(1.5px 1.5px at 60% 70%, rgba(255,255,255,0.5) 0%, transparent 50%),
    radial-gradient(1px 1px at 70% 25%, rgba(212,104,114,0.35) 0%, transparent 50%),
    radial-gradient(1.5px 1.5px at 80% 55%, rgba(255,255,255,0.7) 0%, transparent 50%),
    radial-gradient(1px 1px at 90% 40%, rgba(255,255,255,0.6) 0%, transparent 50%),
    radial-gradient(1px 1px at 15% 85%, rgba(255,255,255,0.4) 0%, transparent 50%),
    radial-gradient(2px 2px at 45% 50%, rgba(212,104,114,0.25) 0%, transparent 50%),
    radial-gradient(1px 1px at 75% 10%, rgba(255,255,255,0.8) 0%, transparent 50%),
    radial-gradient(1px 1px at 95% 75%, rgba(255,255,255,0.5) 0%, transparent 50%),
    radial-gradient(1.5px 1.5px at 5% 45%, rgba(255,255,255,0.6) 0%, transparent 50%),
    radial-gradient(1px 1px at 85% 90%, rgba(255,255,255,0.4) 0%, transparent 50%);
  animation: twinkle 4s ease-in-out infinite alternate;
  pointer-events: none;
  z-index: 1;
}

.starfield::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: 
    radial-gradient(1.5px 1.5px at 25% 30%, rgba(255,255,255,0.5) 0%, transparent 50%),
    radial-gradient(1px 1px at 35% 75%, rgba(255,255,255,0.4) 0%, transparent 50%),
    radial-gradient(1px 1px at 55% 20%, rgba(212,160,160,0.35) 0%, transparent 50%),
    radial-gradient(1.5px 1.5px at 65% 45%, rgba(255,255,255,0.6) 0%, transparent 50%),
    radial-gradient(1px 1px at 75% 65%, rgba(255,255,255,0.5) 0%, transparent 50%),
    radial-gradient(2px 2px at 85% 35%, rgba(212,104,114,0.25) 0%, transparent 50%),
    radial-gradient(1px 1px at 15% 55%, rgba(255,255,255,0.7) 0%, transparent 50%),
    radial-gradient(1px 1px at 45% 95%, rgba(255,255,255,0.4) 0%, transparent 50%),
    radial-gradient(1.5px 1.5px at 5% 5%, rgba(255,255,255,0.6) 0%, transparent 50%),
    radial-gradient(1px 1px at 95% 15%, rgba(255,255,255,0.5) 0%, transparent 50%);
  animation: twinkle 5s ease-in-out 1s infinite alternate-reverse;
  pointer-events: none;
  z-index: 1;
}

.starfield > * {
  position: relative;
  z-index: 2;
}

@keyframes twinkle {
  0% { opacity: 0.3; }
  50% { opacity: 0.7; }
  100% { opacity: 1; }
}

/* ============================================
   GRADIENT TEXT
   ============================================ */
.text-gradient-gold {
  background: linear-gradient(135deg, #d4a0a0 0%, #e0b8b8 40%, #D46872 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ============================================
   DECORATIVE ELEMENTS
   ============================================ */
.decorative-line {
  width: 60px;
  height: 2px;
  background: linear-gradient(90deg, #660000, transparent);
}

.decorative-line-center {
  width: 60px;
  height: 2px;
  background: linear-gradient(90deg, transparent, #660000, transparent);
  margin-left: auto;
  margin-right: auto;
}

.section-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(212,160,160,0.3), transparent);
}

/* ============================================
   CARD EFFECTS
   ============================================ */
.card-hover {
  transition: transform 0.4s cubic-bezier(0.23, 1, 0.32, 1), box-shadow 0.4s ease;
  position: relative;
  overflow: hidden;
}

.card-hover::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 40%, rgba(255,255,255,0.4) 45%, rgba(255,255,255,0.1) 50%, transparent 55%);
  transform: translateX(-100%);
  transition: transform 0.6s ease;
  pointer-events: none;
  z-index: 10;
}

.card-hover:hover::after {
  transform: translateX(100%);
}

.card-hover:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 48px rgba(15, 13, 14, 0.08), 0 0 0 1px rgba(201, 145, 138, 0.10);
}

/* ============================================
   BREATHING GLOW — CTA BUTTONS
   ============================================ */
.btn-glow {
  animation: breathe 3s ease-in-out infinite;
}

@keyframes breathe {
  0%, 100% { box-shadow: 0 0 0 0 rgba(201, 145, 138, 0); }
  50% { box-shadow: 0 0 24px 4px rgba(201, 145, 138, 0.25); }
}

/* ============================================
   FLOATING ORBS — HERO BACKGROUND
   ============================================ */
.floating-orbs {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 1;
}

.floating-orb {
  position: absolute;
  border-radius: 50%;
  opacity: 0;
  animation: floatUp linear infinite;
  will-change: transform, opacity;
}

@keyframes floatUp {
  0% {
    transform: translateY(0) translateX(0) scale(0.5);
    opacity: 0;
  }
  10% { opacity: 0.6; }
  90% { opacity: 0.4; }
  100% {
    transform: translateY(-100vh) translateX(40px) scale(1);
    opacity: 0;
  }
}

/* ============================================
   PARALLAX HERO
   ============================================ */
.parallax-content {
  transition: transform 0.1s linear;
  will-change: transform;
}

/* ============================================
   LIVING GRADIENT — HERO BG COLOR SHIFT
   ============================================ */
.gradient-alive {
  background: linear-gradient(135deg, #0f0d0e 0%, #151314 25%, #0d0b0c 50%, #141213 75%, #0f0d0e 100%) !important;
  background-size: 300% 300%;
  animation: gradientShift 14s ease-in-out infinite;
}

@keyframes gradientShift {
  0% { background-position: 0% 50%; }
  25% { background-position: 50% 0%; }
  50% { background-position: 100% 50%; }
  75% { background-position: 50% 100%; }
  100% { background-position: 0% 50%; }
}

/* ============================================
   SCROLL PROGRESS BAR
   ============================================ */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 2px;
  background: linear-gradient(90deg, #d4a0a0, #D46872, #660000);
  z-index: 9999;
  transition: width 0.05s linear;
  pointer-events: none;
}

/* ============================================
   MOON GLOW
   ============================================ */
.moon-glow {
  box-shadow: 
    0 0 40px rgba(201, 145, 138, 0.15),
    0 0 80px rgba(201, 145, 138, 0.08),
    0 0 120px rgba(201, 145, 138, 0.04);
}

/* ============================================
   SCROLL REVEAL ANIMATIONS
   ============================================ */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s cubic-bezier(0.23, 1, 0.32, 1), transform 0.8s cubic-bezier(0.23, 1, 0.32, 1);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.15s; }
.reveal-delay-2 { transition-delay: 0.3s; }
.reveal-delay-3 { transition-delay: 0.45s; }
.reveal-delay-4 { transition-delay: 0.6s; }

/* ============================================
   BLOCKQUOTE ACCENT
   ============================================ */
.article-content blockquote {
  position: relative;
  overflow: hidden;
}

.article-content blockquote::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 3px;
  height: 100%;
  background: linear-gradient(180deg, #d4a0a0, #660000);
  animation: shimmerLine 3s ease-in-out infinite alternate;
}

@keyframes shimmerLine {
  0% { opacity: 0.5; }
  100% { opacity: 1; }
}

/* Reduced motion preference — turn off animations for accessibility */
@media (prefers-reduced-motion: reduce) {
  .floating-orb,
  .btn-glow,
  .gradient-alive,
  .brand-shimmer,
  .starfield::before,
  .starfield::after,
  .card-hover::after,
  .article-content blockquote::after {
    animation: none !important;
  }
  .brand-shimmer { -webkit-text-fill-color: white; }
  .reveal { transition-duration: 0.01s !important; }
  .parallax-content { transition: none !important; }
}

/* ============================================
   BLOG ARTICLE STYLES
   ============================================ */
.article-content p {
  margin-bottom: 1.5em;
  line-height: 1.8;
}

.article-content h2 {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 2rem;
  font-weight: 500;
  margin-top: 2.5em;
  margin-bottom: 1em;
  color: #0f0d0e;
  letter-spacing: 0.01em;
}

.article-content h3 {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.5rem;
  font-weight: 500;
  margin-top: 2em;
  margin-bottom: 0.75em;
  color: #0f0d0e;
}

.article-content ul {
  list-style: none;
  padding-left: 0;
  margin-bottom: 1.5em;
}

.article-content ul li {
  position: relative;
  padding-left: 1.5em;
  margin-bottom: 0.5em;
}

.article-content ul li::before {
  content: '✦';
  position: absolute;
  left: 0;
  color: #660000;
  font-size: 0.75em;
  top: 0.2em;
}

/* ============================================
   FORM STYLES
   ============================================ */
.form-input {
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-input:focus {
  border-color: #d4a0a0;
  box-shadow: 0 0 0 3px rgba(201, 145, 138, 0.1);
  outline: 2px solid transparent;
}

/* Global focus-visible styles for keyboard navigation */
a:focus-visible,
button:focus-visible {
  outline: 2px solid #d4a0a0;
  outline-offset: 2px;
  border-radius: 4px;
}

/* ============================================
   COOKIE CONSENT BANNER
   ============================================ */

.cookie-consent {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  background: #0f0d0e;
  border-top: 1px solid rgba(212, 160, 160, 0.15);
  padding: 1rem 1.5rem;
  transition: transform 0.4s ease, opacity 0.4s ease;
}

.cookie-consent.hidden {
  transform: translateY(100%);
  opacity: 0;
  pointer-events: none;
}

.cookie-consent.visible {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.cookie-consent-inner {
  max-width: 72rem;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.cookie-consent-buttons {
  display: flex;
  gap: 0.75rem;
  flex-shrink: 0;
}

.cookie-consent-text {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.8125rem;
  line-height: 1.5;
  flex: 1;
  min-width: 200px;
}

.cookie-consent-link {
  color: #d4a0a0;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.cookie-consent-link:hover {
  color: #e0b8b8;
}

.cookie-accept-btn {
  background: #d4a0a0;
  color: #0f0d0e;
  font-weight: 600;
  font-size: 0.8125rem;
  padding: 0.5rem 1.5rem;
  border-radius: 9999px;
  border: none;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.2s ease;
}

.cookie-accept-btn:hover {
  background: #e0b8b8;
}

.cookie-decline-btn {
  background: transparent;
  color: rgba(255, 255, 255, 0.6);
  font-weight: 500;
  font-size: 0.8125rem;
  padding: 0.5rem 1.25rem;
  border-radius: 9999px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  cursor: pointer;
  white-space: nowrap;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.cookie-decline-btn:hover {
  color: rgba(255, 255, 255, 0.85);
  border-color: rgba(255, 255, 255, 0.4);
}

/* ============================================
   PRICING FEATURED BADGE
   ============================================ */
.popular-badge {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  z-index: 20;
  background: linear-gradient(90deg, #660000 0%, #660000 40%, #D46872 50%, #660000 60%, #660000 100%);
  background-size: 200% 100%;
  color: white;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 2px 16px;
  border-radius: 9999px;
  white-space: nowrap;
  animation: badgeShimmer 4s ease-in-out infinite;
}

@keyframes badgeShimmer {
  0%, 80% { background-position: 100% 0; }
  90% { background-position: -50% 0; }
  100% { background-position: -50% 0; }
}

/* ============================================
   CUSTOM SCROLLBAR
   ============================================ */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: #faf8f6;
}

::-webkit-scrollbar-thumb {
  background: #d4a0a040;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #d4a0a080;
}

/* ============================================
   LENIS SMOOTH SCROLL
   ============================================ */
html.lenis, html.lenis body {
  height: auto;
}

.lenis.lenis-smooth {
  scroll-behavior: auto !important;
}

.lenis.lenis-smooth [data-lenis-prevent] {
  overscroll-behavior: contain;
}

/* ============================================
   LOADING SCREEN
   ============================================ */
.loading-screen {
  position: fixed;
  inset: 0;
  background: #0f0d0e;
  z-index: 100000;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.8s;
}

.loading-screen.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.loading-logo {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 2rem;
  font-weight: 300;
  color: white;
  letter-spacing: 0.15em;
  opacity: 0;
  animation: logoReveal 1.2s cubic-bezier(0.16, 1, 0.3, 1) 0.2s forwards;
}

@keyframes logoReveal {
  0% { opacity: 0; transform: translateY(10px); letter-spacing: 0.3em; }
  100% { opacity: 1; transform: translateY(0); letter-spacing: 0.15em; }
}

.loading-dot {
  display: block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #d4a0a0;
  margin: 16px auto 0;
  animation: dotPulse 1.4s ease-in-out infinite;
}

@keyframes dotPulse {
  0%, 100% { opacity: 0.3; transform: scale(0.8); }
  50% { opacity: 1; transform: scale(1.4); }
}

/* ============================================
   FILM GRAIN OVERLAY
   ============================================ */
.grain-overlay {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9998;
}

.grain-overlay::after {
  content: '';
  position: fixed;
  inset: -100%;
  width: 300%;
  height: 300%;
  opacity: 0.028;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 512 512' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.7' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 256px 256px;
  animation: grainShift 0.8s steps(1) infinite;
}

@keyframes grainShift {
  0% { transform: translate(0, 0); }
  25% { transform: translate(-5%, 5%); }
  50% { transform: translate(5%, -5%); }
  75% { transform: translate(-2%, -3%); }
  100% { transform: translate(0, 0); }
}

/* ============================================
   CUSTOM CURSOR (desktop only)
   ============================================ */
.custom-cursor {
  position: fixed;
  width: 20px;
  height: 20px;
  border: 1.5px solid rgba(212, 160, 160, 0.6);
  border-radius: 50%;
  pointer-events: none;
  z-index: 99999;
  transform: translate(-50%, -50%);
  transition: width 0.35s cubic-bezier(0.23, 1, 0.32, 1), height 0.35s cubic-bezier(0.23, 1, 0.32, 1), border-color 0.3s ease, background-color 0.3s ease, opacity 0.3s ease;
  opacity: 0;
  display: none;
}

.custom-cursor.visible {
  opacity: 1;
}

.custom-cursor.active {
  width: 48px;
  height: 48px;
  border-color: rgba(212, 160, 160, 0.4);
  background-color: rgba(212, 160, 160, 0.06);
}

@media (hover: hover) and (pointer: fine) {
  body { cursor: none !important; }
  a, button, [role="button"], input, select, textarea, label { cursor: none !important; }
  .custom-cursor { display: block; }
}

@media (hover: none), (pointer: coarse) {
  .custom-cursor { display: none !important; }
}

/* ============================================
   ORGANIC BLOB SHAPES
   ============================================ */
.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.12;
  pointer-events: none;
  z-index: 0;
  will-change: transform;
}

.blob-pink {
  background: radial-gradient(circle, #d4a0a0, transparent 70%);
}

.blob-terracotta {
  background: radial-gradient(circle, #D46872, transparent 70%);
}

.blob-red {
  background: radial-gradient(circle, #660000, transparent 70%);
}

.blob-champagne {
  background: radial-gradient(circle, #c2a67d, transparent 70%);
}

@media (max-width: 768px) {
  .blob { display: none !important; }
}

/* ============================================
   WAVE SECTION DIVIDERS
   ============================================ */
.wave-divider {
  position: relative;
  height: 40px;
  overflow: hidden;
  margin-top: -1px;
  margin-bottom: -1px;
  line-height: 0;
}

@media (min-width: 768px) {
  .wave-divider {
    height: 60px;
  }
}

/* ============================================
   FOOTER TOP ACCENT LINE
   ============================================ */
footer::before {
  content: '';
  display: block;
  height: 2px;
  background: linear-gradient(90deg, transparent, #660000 30%, #D46872 50%, #660000 70%, transparent);
}

.wave-divider svg {
  display: block;
  width: 100%;
  height: 100%;
}

@media (max-width: 767px) {
  .wave-divider svg {
    width: 200%;
    margin-left: -50%;
  }
}

.wave-divider-flip {
  transform: scaleY(-1);
  margin-bottom: -1px;
  margin-top: 0;
}

/* ============================================
   TEXT SPLIT REVEAL
   ============================================ */
.text-reveal .word {
  display: inline-block;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.text-reveal.visible .word {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================
   MAGNETIC HOVER BUTTONS
   ============================================ */
.btn-magnetic {
  transition: transform 0.15s ease-out;
  will-change: transform;
}

.btn-magnetic:not(:hover) {
  transition: transform 0.4s cubic-bezier(0.23, 1, 0.32, 1);
}

/* ============================================
   IMPROVED CARD ENTRANCES
   ============================================ */
.card-entrance {
  opacity: 0;
  transform: translateY(40px) scale(0.96) rotate(-0.5deg);
  transition: opacity 0.9s cubic-bezier(0.16, 1, 0.3, 1), transform 0.9s cubic-bezier(0.16, 1, 0.3, 1);
}

.card-entrance.visible {
  opacity: 1;
  transform: translateY(0) scale(1) rotate(0);
}

.card-entrance-delay-1 { transition-delay: 0.12s; }
.card-entrance-delay-2 { transition-delay: 0.24s; }
.card-entrance-delay-3 { transition-delay: 0.36s; }

/* Reduced motion — disable ALL new animations too */
@media (prefers-reduced-motion: reduce) {
  .loading-screen { transition-duration: 0.01s !important; }
  .loading-logo { animation: none !important; opacity: 1 !important; }
  .loading-dot { animation: none !important; }
  .grain-overlay::after { animation: none !important; }
  .custom-cursor { display: none !important; }
  body { cursor: auto !important; }
  a, button, [role="button"], input, select, textarea { cursor: auto !important; }
  .text-reveal .word { transition-duration: 0.01s !important; opacity: 1 !important; transform: none !important; }
  .card-entrance { transition-duration: 0.01s !important; }
  .blob { display: none !important; }
  .cursor-glow { display: none !important; }
  ::view-transition-old(*),
  ::view-transition-new(*) { animation: none !important; }
}

/* ============================================
   CURSOR GLOW — dark sections only (desktop)
   ============================================ */
.cursor-glow {
  position: fixed;
  width: 350px;
  height: 350px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(212,160,160,0.07) 0%, rgba(102,0,0,0.03) 40%, transparent 70%);
  pointer-events: none;
  z-index: 1;
  transform: translate(-50%, -50%);
  opacity: 0;
  transition: opacity 0.5s ease;
  will-change: transform, opacity;
  mix-blend-mode: screen;
}

@media (max-width: 768px) {
  .cursor-glow { display: none !important; }
}

.cursor-glow.active {
  opacity: 1;
}

/* ============================================
   VIEW TRANSITIONS — cross-page fades
   ============================================ */
@view-transition {
  navigation: auto;
}

::view-transition-old(root) {
  animation: vt-fade-out 0.25s ease-in forwards;
}

::view-transition-new(root) {
  animation: vt-fade-in 0.35s ease-out 0.1s both;
}

@keyframes vt-fade-out {
  from { opacity: 1; filter: blur(0); }
  to   { opacity: 0; filter: blur(2px); }
}

@keyframes vt-fade-in {
  from { opacity: 0; filter: blur(2px); }
  to   { opacity: 1; filter: blur(0); }
}
