/* Adbee AI — Shared styles for all static pages */

@import url("https://fonts.googleapis.com/css2?family=Playfair+Display:wght@500;700;900&family=DM+Serif+Display&family=Outfit:wght@300;400;500;600;700&family=DM+Sans:wght@300;400;500;600;700&family=DM+Mono:wght@400;500&display=swap");

:root {
  --background: #f5f0ea;
  --foreground: #1a1a1a;
  --card: #ffffff;
  --card-foreground: #1a1a1a;
  --popover: #ffffff;
  --primary: #1a1a1a;
  --primary-foreground: #ffffff;
  --secondary: #ede8e0;
  --muted: #ede8e0;
  --muted-foreground: #7a7570;
  --accent: #ede8e0;
  --border: #e3dcd2;
  --shadow-xs: 0 1px 2px rgba(26, 26, 26, 0.04);
  --shadow-sm: 0 1px 2px rgba(26, 26, 26, 0.05), 0 4px 12px rgba(26, 26, 26, 0.06);
  --shadow-md: 0 2px 4px rgba(26, 26, 26, 0.04), 0 12px 32px rgba(26, 26, 26, 0.08);
  --shadow-header: 0 1px 0 rgba(26, 26, 26, 0.06), 0 8px 24px rgba(26, 26, 26, 0.04);
  --radius-2xl: 32px;
}

* {
  border-color: var(--border);
}

html {
  -webkit-text-size-adjust: 100%;
  overflow-x: hidden;
  background-color: var(--background);
  background-image:
    radial-gradient(ellipse 100% 70% at 50% -25%, rgba(176, 125, 74, 0.14), transparent 55%),
    radial-gradient(ellipse 60% 45% at 100% 0%, rgba(252, 225, 198, 0.45), transparent 45%),
    radial-gradient(ellipse 50% 40% at 0% 15%, rgba(232, 220, 210, 0.35), transparent 40%);
  background-attachment: fixed;
}

body {
  background-color: transparent;
  color: var(--foreground);
  font-family: "DM Sans", "Outfit", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.6;
  overflow-x: hidden;
}

@supports (overflow: clip) {
  html,
  body {
    overflow-x: clip;
  }
}

/* Shared header shell — sticky must live on the container, not inside overflow:hidden ancestors */
#header-container {
  position: sticky;
  top: 0;
  z-index: 30;
}

#header-container > header {
  border-bottom: 1px solid var(--border);
  background-color: rgba(245, 240, 234, 0.9);
  box-shadow: var(--shadow-header);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

@supports (backdrop-filter: blur(1px)) {
  #header-container > header {
    background-color: rgba(245, 240, 234, 0.75);
  }
}

img,
video {
  max-width: 100%;
  height: auto;
}

h1,
h2,
h3,
h4 {
  font-family: "Playfair Display", serif;
  letter-spacing: -0.02em;
  text-wrap: balance;
  text-rendering: optimizeLegibility;
}

.font-display {
  font-family: "Playfair Display", serif;
}

.font-serif {
  font-family: "DM Serif Display", serif;
}

.font-mono {
  font-family: "DM Mono", monospace;
}

.shadow-surface-xs {
  box-shadow: var(--shadow-xs);
}
.shadow-surface-sm {
  box-shadow: var(--shadow-sm);
}
.shadow-surface-md {
  box-shadow: var(--shadow-md);
}
.shadow-header {
  box-shadow: var(--shadow-header);
}

.transition-lift {
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.transition-lift:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

@keyframes marquee {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}
.animate-marquee {
  animation: marquee 40s linear infinite;
}
.animate-marquee-reverse {
  animation: marquee 40s linear infinite reverse;
}
.marquee-pause:hover .animate-marquee {
  animation-play-state: paused;
}
.marquee-pause:hover .animate-marquee-reverse {
  animation-play-state: paused;
}

@keyframes fade-up {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.animate-fade-up {
  animation: fade-up 0.6s ease-out both;
}

@keyframes fade-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
.animate-fade-in {
  animation: fade-in 0.3s ease-out both;
}
.animate-duration-200 {
  animation-duration: 200ms;
}

[data-scroll-reveal="true"] {
  opacity: 0;
  transform: translateY(20px) scale(0.995);
  transition:
    opacity 0.68s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.68s cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: var(--reveal-delay, 0ms);
  will-change: opacity, transform;
}

[data-scroll-reveal="true"][data-reveal-visible="true"] {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.btn-press:active {
  transform: scale(0.97);
}

.mobile-menu-overlay {
  position: fixed;
  inset: 0;
  z-index: 50;
  background: rgba(0, 0, 0, 0.8);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.mobile-menu-overlay.is-open {
  opacity: 1;
  pointer-events: auto;
}

.mobile-menu-panel {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 51;
  height: 100%;
  width: min(100%, 320px);
  max-width: 24rem;
  transform: translateX(100%);
  transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
  overflow-y: auto;
}
.mobile-menu-panel.is-open {
  transform: translateX(0);
}

.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;
}

/* Full-page loader (shown until shared components are injected) */
html.adbee-loading #page-root {
  visibility: hidden;
}

html.adbee-loading body {
  overflow: hidden;
}

.page-loader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--background);
  background-image:
    radial-gradient(ellipse 100% 70% at 50% -25%, rgba(176, 125, 74, 0.14), transparent 55%),
    radial-gradient(ellipse 60% 45% at 100% 0%, rgba(252, 225, 198, 0.45), transparent 45%),
    radial-gradient(ellipse 50% 40% at 0% 15%, rgba(232, 220, 210, 0.35), transparent 40%);
  opacity: 1;
  transition: opacity 0.28s ease, visibility 0.28s ease;
}

.page-loader.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.page-loader__panel {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.875rem;
  padding: 1.5rem 2rem;
  border-radius: 1rem;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.82);
  box-shadow: var(--shadow-sm);
  backdrop-filter: blur(8px);
}

.page-loader__spinner {
  width: 2.5rem;
  height: 2.5rem;
  border: 3px solid #e3dcd2;
  border-top-color: #b07d4a;
  border-radius: 9999px;
  animation: adbee-loader-spin 0.8s linear infinite;
}

.page-loader__label {
  margin: 0;
  font-family: "DM Mono", monospace;
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #7a7570;
}

@keyframes adbee-loader-spin {
  to {
    transform: rotate(360deg);
  }
}

@media (prefers-reduced-motion: reduce) {
  .animate-marquee,
  .animate-marquee-reverse {
    animation: none;
  }
  [data-scroll-reveal="true"] {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .mobile-menu-overlay,
  .mobile-menu-panel {
    transition: none;
  }
  .page-loader {
    transition: none;
  }
  .page-loader__spinner {
    animation: none;
    border-top-color: #b07d4a;
    opacity: 0.85;
  }
}
