/* ============================================
   FRANKIE FOTI - COMMON STYLES
   Shared across all pages
   ============================================ */

/* --- CSS CUSTOM PROPERTIES --- */
:root {
  --bg-color: #050505;
  --text-color: #f0f0f0;
  --accent-color: #d4af37;
  --accent-light: #e8c959;
  --accent-dark: #b8962e;
  --secondary-text: #888888;
  --font-heading: 'Cormorant Garamond', serif;
  --font-body: 'Inter', sans-serif;

  /* Typography Scale */
  --text-xs: clamp(0.7rem, 0.65rem + 0.25vw, 0.8rem);
  --text-sm: clamp(0.85rem, 0.8rem + 0.25vw, 0.95rem);
  --text-base: clamp(1rem, 0.95rem + 0.25vw, 1.125rem);
  --text-lg: clamp(1.125rem, 1rem + 0.5vw, 1.35rem);
  --text-xl: clamp(1.35rem, 1.2rem + 0.75vw, 1.75rem);
  --text-2xl: clamp(1.75rem, 1.5rem + 1.25vw, 2.5rem);
  --text-3xl: clamp(2.25rem, 1.75rem + 2.5vw, 3.5rem);
  --text-4xl: clamp(3rem, 2.25rem + 3.75vw, 5rem);

  /* Spacing Scale */
  --space-xs: clamp(0.5rem, 0.4rem + 0.5vw, 0.75rem);
  --space-sm: clamp(0.75rem, 0.6rem + 0.75vw, 1.25rem);
  --space-md: clamp(1.5rem, 1.25rem + 1.25vw, 2.5rem);
  --space-lg: clamp(2.5rem, 2rem + 2.5vw, 4rem);
  --space-xl: clamp(4rem, 3rem + 5vw, 7rem);
  --space-2xl: clamp(6rem, 4.5rem + 7.5vw, 10rem);

  /* Section Padding */
  --section-padding-y: clamp(60px, 8vw, 120px);
  --section-padding-x: clamp(20px, 5vw, 80px);
}

/* --- ENCHANTED SCROLLBAR --- */
html {
  scrollbar-width: thin;
  scrollbar-color: rgba(212, 175, 55, 0.9) rgba(255, 255, 255, 0.06);
}

::-webkit-scrollbar {
  width: 13px;
  height: 13px;
}

::-webkit-scrollbar-track {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.02) 100%);
  border-left: 1px solid rgba(212, 175, 55, 0.15);
}

::-webkit-scrollbar-thumb {
  border-radius: 999px;
  border: 2px solid rgba(8, 8, 8, 0.95);
  background:
    radial-gradient(circle at 78% 16%, rgba(255, 245, 182, 0.95) 0 2px, rgba(255, 245, 182, 0) 3px),
    linear-gradient(180deg, #f2dc8b 0%, #d4af37 46%, #b28d24 100%);
  box-shadow:
    inset 0 0 0 1px rgba(255, 240, 170, 0.35),
    0 0 10px rgba(212, 175, 55, 0.28);
}

::-webkit-scrollbar-thumb:hover {
  background:
    radial-gradient(circle at 78% 16%, rgba(255, 250, 204, 1) 0 2px, rgba(255, 245, 182, 0) 3px),
    linear-gradient(180deg, #f7e7a6 0%, #deb84a 46%, #c49929 100%);
  box-shadow:
    inset 0 0 0 1px rgba(255, 240, 170, 0.45),
    0 0 14px rgba(212, 175, 55, 0.4);
}

::-webkit-scrollbar-corner {
  background: rgba(255, 255, 255, 0.03);
}

/* --- MAGICAL CURSOR ELEMENTS --- */
.magic-cursor-spark {
  pointer-events: none;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 2000;
}

.magic-cursor-spark {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 246, 198, 0.95) 0%, rgba(240, 201, 87, 0.65) 70%, rgba(240, 201, 87, 0) 100%);
  transform: translate(-50%, -50%);
  animation: magicSparkFade 480ms ease-out forwards;
}

@keyframes magicSparkFade {
  0% {
    opacity: 0.95;
    transform: translate(-50%, -50%) scale(1);
  }
  100% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.2);
  }
}

/* --- THEATRICAL HEADER --- */
.site-header {
  box-sizing: border-box;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 25px 50px;
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.8) 0%, transparent 100%);
}

.site-header.scrolled {
  padding: 12px 50px;
  background: linear-gradient(180deg, rgba(5, 5, 5, 0.98) 0%, rgba(5, 5, 5, 0.95) 100%);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 2px 40px rgba(0, 0, 0, 0.6), 0 1px 0 rgba(212, 175, 55, 0.1);
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1400px;
  margin: 0 auto;
}

/* Header responsive */
@media (max-width: 1200px) {
  .site-header {
    padding: 20px 30px;
  }
  .site-header.scrolled {
    padding: 12px 30px;
  }
  .nav-list {
    gap: 30px;
  }
  .btn-cta {
    padding: 14px 28px;
    font-size: 0.85rem;
  }
}

/* Logo */
.logo-container {
  width: 180px;
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  transform-origin: left center;
}

.site-header.scrolled .logo-container {
  width: 110px;
}

.logo-img {
  width: 100%;
  height: auto;
  max-height: 120px;
  display: block;
  filter: brightness(1.1) drop-shadow(0 0 20px rgba(212, 175, 55, 0.15));
  transition: filter 0.4s ease;
}

.logo-container:hover .logo-img {
  filter: brightness(1.2) drop-shadow(0 0 25px rgba(212, 175, 55, 0.3));
}

/* Desktop Navigation */
.desktop-nav {
  display: block;
  position: relative;
}

.nav-list {
  display: flex;
  list-style: none;
  gap: 45px;
  padding: 0;
  margin: 0;
  align-items: center;
}

.nav-link {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.1rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: rgba(255, 255, 255, 0.9);
  position: relative;
  padding: 8px 0;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  text-decoration: none;
}

.nav-link::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, #d4af37, transparent);
  transform: translateX(-50%);
  transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 0 10px rgba(212, 175, 55, 0.5);
}

.nav-link::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100%;
  height: 200%;
  background: radial-gradient(ellipse at center, rgba(212, 175, 55, 0.1) 0%, transparent 70%);
  transform: translate(-50%, -50%) scale(0);
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: none;
  z-index: -1;
}

.nav-link:hover {
  color: #fff;
  text-shadow: 0 0 20px rgba(212, 175, 55, 0.5);
}

.nav-link:hover::before {
  width: 120%;
}

.nav-link:hover::after {
  transform: translate(-50%, -50%) scale(1);
}

.nav-link.active {
  color: #d4af37;
  text-shadow: 0 0 15px rgba(212, 175, 55, 0.4);
}

.nav-link.active::before {
  width: 80%;
}

/* CTA Button */
.btn-cta {
  display: inline-block;
  font-family: 'Cormorant Garamond', serif;
  font-size: 0.95rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: #000;
  background: linear-gradient(135deg, #d4af37 0%, #f5e6a3 40%, #d4af37 80%, #b8962e 100%);
  background-size: 300% 100%;
  border: none;
  padding: 16px 36px;
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  text-decoration: none;
  position: relative;
  overflow: hidden;
  clip-path: polygon(8px 0, 100% 0, calc(100% - 8px) 100%, 0 100%);
}

.btn-cta::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 60%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
  transform: skewX(-20deg);
  transition: left 0.6s ease;
}

.btn-cta:hover {
  background-position: 100% 0;
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(212, 175, 55, 0.4), 0 0 40px rgba(212, 175, 55, 0.2);
}

.btn-cta:hover::after {
  left: 130%;
}

/* Mobile Toggle */
.mobile-toggle {
  display: none;
  position: relative;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 1001;
  padding: 12px;
}

.mobile-toggle .bar {
  display: block;
  width: 28px;
  height: 2px;
  background: linear-gradient(90deg, #d4af37, #fff, #d4af37);
  margin: 7px 0;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  transform-origin: center;
  box-shadow: 0 0 8px rgba(212, 175, 55, 0.3);
}

/* Mobile Navigation Overlay */
.mobile-nav-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: radial-gradient(ellipse at top, rgba(212, 175, 55, 0.05) 0%, transparent 50%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.99) 0%, rgba(10, 10, 10, 0.98) 100%);
  z-index: 999;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.mobile-nav-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.mobile-nav-list {
  list-style: none;
  text-align: center;
  padding: 0;
}

.mobile-nav-list li {
  margin: 35px 0;
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.mobile-nav-overlay.active .mobile-nav-list li {
  opacity: 1;
  transform: translateY(0);
}

.mobile-nav-list a {
  font-family: 'Cormorant Garamond', serif;
  font-size: 2.2rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.85);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  text-decoration: none;
  transition: all 0.3s ease;
}

.mobile-nav-list a:hover {
  color: #fff;
  text-shadow: 0 0 30px rgba(212, 175, 55, 0.6);
}

.mobile-nav-list a.active {
  color: #d4af37;
}

.mobile-btn {
  font-family: 'Cormorant Garamond', serif !important;
  font-size: 1.2rem !important;
  color: #d4af37 !important;
  border: 1px solid rgba(212, 175, 55, 0.5);
  padding: 18px 40px;
  display: inline-block;
  margin-top: 30px;
  transition: all 0.4s ease;
  background: transparent;
}

.mobile-btn:hover {
  background: rgba(212, 175, 55, 0.1);
  border-color: #d4af37;
}

.mobile-close {
  position: absolute;
  top: 25px;
  right: 25px;
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.7);
  font-size: 2.5rem;
  cursor: pointer;
  z-index: 1002;
  transition: all 0.3s ease;
  opacity: 0;
}

.mobile-nav-overlay.active .mobile-close {
  opacity: 1;
}

.mobile-close:hover {
  color: #d4af37;
}

/* Mobile breakpoint */
@media (max-width: 1024px) {
  .desktop-nav,
  .header-cta {
    display: none;
  }

  .mobile-toggle {
    display: block;
  }

  .site-header {
    padding: 18px 25px;
  }

  .site-header.scrolled {
    padding: 12px 25px;
  }

  .logo-container {
    width: 150px;
  }

  .site-header.scrolled .logo-container {
    width: 120px;
  }

  .mobile-toggle.active .bar:nth-child(1) {
    transform: rotate(45deg) translate(6px, 7px);
  }

  .mobile-toggle.active .bar:nth-child(2) {
    opacity: 0;
  }

  .mobile-toggle.active .bar:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -7px);
  }
}

/* --- THEATRICAL FOOTER --- */
.site-footer {
  background: linear-gradient(180deg, #050505 0%, #000 100%);
  text-align: center;
  padding: var(--section-padding-y) var(--section-padding-x) var(--space-lg);
  position: relative;
  overflow: hidden;
}

.site-footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 200px;
  height: 1px;
  background: linear-gradient(90deg, transparent, #d4af37, transparent);
  box-shadow: 0 0 20px rgba(212, 175, 55, 0.3);
}

.site-footer::after {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 400px;
  height: 300px;
  background: radial-gradient(ellipse at top, rgba(212, 175, 55, 0.04) 0%, transparent 70%);
  pointer-events: none;
}

.footer-brand {
  position: relative;
  z-index: 1;
  margin-bottom: 40px;
}

.footer-brand h2 {
  font-family: var(--font-heading);
  font-size: var(--text-3xl);
  font-weight: 500;
  margin-bottom: 0.5rem;
  color: #fff;
  letter-spacing: 0.08em;
  text-shadow: 0 0 40px rgba(212, 175, 55, 0.2);
}

.footer-tagline {
  font-family: var(--font-heading);
  font-size: var(--text-base);
  font-style: italic;
  color: #d4af37;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.footer-socials {
  display: flex;
  justify-content: center;
  gap: 35px;
  margin: 50px 0;
  position: relative;
  z-index: 1;
}

.footer-social-icon {
  width: 90px;
  height: 90px;
  border: 2px solid rgba(212, 175, 55, 0.5);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  background: rgba(212, 175, 55, 0.05);
}

.footer-social-icon:hover {
  border-color: #d4af37;
  transform: translateY(-8px) scale(1.05);
  box-shadow: 0 15px 40px rgba(212, 175, 55, 0.4);
}

.footer-social-icon img {
  width: 42px;
  height: 42px;
  object-fit: contain;
  filter: brightness(0) invert(1);
  transition: all 0.4s ease;
}

.footer-social-icon:hover img {
  transform: scale(1.1);
}

.copyright {
  font-family: var(--font-heading);
  font-size: var(--text-sm);
  font-style: italic;
  color: rgba(255, 255, 255, 0.4);
  letter-spacing: 0.15em;
  position: relative;
  z-index: 1;
  margin-top: var(--space-lg);
}

.copyright::before,
.copyright::after {
  content: '\2014';
  margin: 0 15px;
  color: rgba(212, 175, 55, 0.3);
}

/* Footer responsive */
@media (max-width: 480px) {
  .site-footer {
    padding: 60px 16px 40px;
  }
  .footer-brand h2 {
    font-size: var(--text-2xl);
  }
  .footer-socials {
    gap: 20px;
  }
  .footer-social-icon {
    width: 70px;
    height: 70px;
  }
  .footer-social-icon img {
    width: 32px;
    height: 32px;
  }
}

/* --- GLOBAL TYPOGRAPHY REFINEMENTS --- */
.sqs-html-content h1 {
  font-family: var(--font-heading);
  font-size: var(--text-4xl);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: 0.02em;
}

.sqs-html-content h2 {
  font-family: var(--font-heading);
  font-size: var(--text-3xl);
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: 0.02em;
}

.sqs-html-content h3 {
  font-family: var(--font-heading);
  font-size: var(--text-2xl);
  font-weight: 400;
  line-height: 1.2;
}

.sqs-html-content h4 {
  font-family: var(--font-heading);
  font-size: var(--text-xl);
  font-weight: 400;
  line-height: 1.4;
}

.sqs-html-content p {
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.85;
  color: rgba(255, 255, 255, 0.85);
}

/* Section Spacing */
.page-section .content-wrapper {
  padding-left: var(--section-padding-x);
  padding-right: var(--section-padding-x);
}

/* Tablet Breakpoint */
@media (max-width: 1024px) {
  .fe-62fbbb83e779a7181ab495eb {
    gap: var(--space-md);
  }
  .sqs-col-6 {
    padding: 0 15px;
  }
  .page-section .content-wrapper {
    padding-left: 30px;
    padding-right: 30px;
  }
}

/* Mobile Breakpoint */
@media (max-width: 768px) {
  .sqs-row {
    display: flex;
    flex-direction: column;
  }
  .sqs-col-6.span-6,
  .sqs-col-4.span-4 {
    width: 100% !important;
    float: none !important;
    margin-bottom: var(--space-md);
  }
  .page-section .content-wrapper {
    padding-left: 20px;
    padding-right: 20px;
  }
}

/* Small Mobile Breakpoint */
@media (max-width: 480px) {
  :root {
    --section-padding-x: 16px;
  }
  .page-section .content-wrapper {
    padding-left: 16px;
    padding-right: 16px;
  }
}

/* Touch device optimizations */
@media (hover: none) and (pointer: coarse) {
  .btn-watch-reel:hover,
  .nav-link:hover,
  .footer-social-icon:hover {
    transform: none;
  }
  .btn-watch-reel:active {
    transform: scale(0.98);
  }
  .logo-carousel-track {
    animation-play-state: running !important;
  }
  .magic-cursor-spark {
    display: none !important;
  }
}

/* Reduced motion preference */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .logo-carousel-track {
    animation: none;
  }
  .testimonials-track {
    transition: none;
  }
  .magic-cursor-spark {
    display: none !important;
  }
}
