/* ==========================================================================
   FLORIDA IMPLANTS — GLOBAL.CSS
   Core design system variables, modern reset, and base utilities.
   ========================================================================== */

/* ==========================================================================
   1. DESIGN SYSTEM VARIABLES (Section 2)
   ========================================================================== */
:root {
  /* 2.1 Color Palette */
  /* Base — clean light */
  --color-bg: #F8FAFC;
  /* near-white soft background */
  --color-surface: #FFFFFF;
  /* card/section white */
  --color-surface-2: #F1F5F9;
  /* slightly tinted surface */
  --color-border: rgba(0, 0, 0, 0.08);
  --color-border-hover: rgba(21, 21, 143, 0.25);

  /* Brand colors */
  --color-primary: #15158F;
  /* deep navy — trust, headings, body anchors */
  --color-secondary: #2E54D4;
  /* warm orange — CTAs, active states, highlights */
  --color-accent: #00A3C4;
  /* teal-green — checkmarks, success states */
  --color-highlight: #FF6B35;
  /* deeper orange — hover states, pressed CTAs */

  /* Text */
  --color-text: #0D1117;
  /* near-black */
  --color-text-muted: #5A6A7A;
  /* muted gray */
  --color-text-light: #94A3B8;
  /* placeholder, disabled */

  /* Trust/premium */
  --color-gold: #C9962A;
  /* ratings, awards */

  /* Gradients */
  --grad-title: linear-gradient(135deg, #15158F 0%, #2E54D4 55%, #00A3C4 100%);
  --grad-cta: linear-gradient(135deg, #15158F, #2E54D4);
  --grad-warm: linear-gradient(135deg, #FF6B35, #E8226B);
  --grad-section: linear-gradient(180deg, #F8FAFC 0%, #EEF1FF 100%);

  /* 2.2 Typography */
  --font-display: 'Outfit', sans-serif;
  /* headings — clean, modern, confident */
  --font-body: 'Inter', sans-serif;
  /* body — readable, medical-grade trust */
  --font-mono: 'DM Mono', monospace;
  /* prices, stats, numbers */

  /* 2.3 Spacing & Radius */
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 32px;
  --radius-pill: 999px;

  --section-gap: clamp(80px, 10vw, 140px);
  --container: min(1280px, 92vw);

  /* 2.4 Shadows */
  --shadow-sm: 0 1px 4px rgba(0, 0, 0, 0.06), 0 2px 12px rgba(0, 0, 0, 0.04);
  --shadow-card: 0 4px 24px rgba(0, 0, 0, 0.08), 0 1px 4px rgba(0, 0, 0, 0.04);
  --shadow-hover: 0 12px 40px rgba(21, 21, 143, 0.15), 0 2px 8px rgba(0, 0, 0, 0.06);
  --shadow-cta: 0 6px 24px rgba(46, 84, 212, 0.35);

  /* 2.5 Mouse-tracking default coords */
  --mx: 50%;
  --my: 50%;

  /* Header dimensions */
  --header-height: 120px;
  --header-height-scrolled: 90px;
}

/* ==========================================================================
   2. MODERN CSS RESET
   ========================================================================== */
*,
*::before,
*::after {
  box-sizing: border-box;
}

body,
h1,
h2,
h3,
h4,
h5,
h6,
p,
ol,
ul,
li,
figure,
figcaption,
blockquote,
dl,
dd {
  margin: 0;
  padding: 0;
}

ul,
ol {
  list-style: none;
}

/* Responsive media defaults */
img,
picture,
video,
canvas,
svg {
  max-width: 100%;
  height: auto;
  display: block;
}

input,
button,
textarea,
select {
  font: inherit;
  background: none;
  border: none;
  outline: none;
}

a {
  text-decoration: none;
  color: inherit;
}

/* Remove default focus ring outline if elements have custom focus styles */
:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 4px;
}

/* ==========================================================================
   3. BASE BODY STYLES
   ========================================================================== */
html,
body {
  scroll-behavior: auto !important;
}

body {
  min-height: 100vh;
  background-color: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-body);
  line-height: 1.6;
  font-size: 1rem;
  overflow-x: hidden;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ==========================================================================
   4. INTERACTION & ANIMATION GLOW-TRACKS (Section 2.5)
   ========================================================================== */
.glow-track {
  position: relative;
}

/* Base mouse gradient glow */
.glow-track::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 55% 45% at var(--mx, 50%) var(--my, 50%),
      rgba(30, 43, 94, 0.06) 0%,
      transparent 70%);
  pointer-events: none;
  z-index: 0;
  transition: opacity 0.3s ease;
}

/* Warm version glow override */
.glow-track.glow-warm::before {
  background: radial-gradient(ellipse 55% 45% at var(--mx, 50%) var(--my, 50%),
      rgba(245, 166, 35, 0.07) 0%,
      transparent 70%);
}

/* ==========================================================================
   5. REVEAL ANIMATION CLASSES (Section 3.2)
   ========================================================================== */
/* Prepare elements for GSAP / CSS reveals. We include a transition fallback
   so there is graceful degradation if JS/GSAP doesn't initialize. */
.reveal {
  opacity: 0;
  transform: translateY(36px);
  will-change: transform, opacity;
  transition: opacity 0.8s cubic-bezier(0.25, 1, 0.5, 1), transform 0.8s cubic-bezier(0.25, 1, 0.5, 1);
}

.reveal-group>* {
  opacity: 0;
  transform: translateY(28px);
  will-change: transform, opacity;
  transition: opacity 0.7s cubic-bezier(0.25, 1, 0.5, 1), transform 0.7s cubic-bezier(0.25, 1, 0.5, 1);
}

/* Active states for CSS fallbacks or GSAP activation classes */
.reveal.active,
.reveal-group.active>* {
  opacity: 1;
  transform: translateY(0);
}

/* ==========================================================================
   6. DYNAMIC UTILITIES & DECORATORS
   ========================================================================== */

/* Premium Gradient Title Utility */
.grad-heading {
  background: var(--grad-title);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: inline-block;
}

/* Section label pattern with animated pulse dot (Section 3) */
.section-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-primary);
  margin-bottom: 16px;
}

.section-label::after {
  content: '';
  display: inline-block;
  width: 6px;
  height: 6px;
  background-color: var(--color-accent);
  border-radius: 50%;
  animation: dot-pulse 1.8s infinite ease-in-out;
  transform-origin: center;
}

@keyframes dot-pulse {

  0%,
  100% {
    transform: scale(0.85);
    opacity: 0.6;
    box-shadow: 0 0 0 0 rgba(0, 184, 150, 0);
  }

  50% {
    transform: scale(1.3);
    opacity: 1;
    box-shadow: 0 0 0 4px rgba(0, 184, 150, 0.3);
  }
}

/* Section header layout utility */
.section-header {
  margin-bottom: 48px;
  position: relative;
  z-index: 5;
}

.section-header h2 {
  font-size: clamp(2.25rem, 5vw, 3.25rem);
  font-weight: 800;
  color: var(--color-text);
  margin-bottom: 16px;
  line-height: 1.2;
}

.section-header.text-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.section-header.text-center .section-label {
  justify-content: center;
}

.text-center {
  text-align: center !important;
}

/* Container Utility using CSS variable definition */
.container {
  width: var(--container);
  margin-left: auto;
  margin-right: auto;
  position: relative;
}

/* ==========================================================================
   7. SITE HEADER & NAVIGATION STYLING (Section 1)
   ========================================================================== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(248, 250, 252, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.35s ease, box-shadow 0.35s ease, background-color 0.35s ease;
}

.site-header.scrolled {
  background-color: rgba(248, 250, 252, 0.95);
  border-bottom-color: rgba(0, 0, 0, 0.06);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.05);
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-height);
  position: relative;
  /* Needed for absolute centering of nav */
  transition: height 0.35s ease;
}

.site-header.scrolled .header-container {
  height: var(--header-height-scrolled);
}

.site-branding {
  display: flex;
  align-items: center;
}

.site-logo {
  max-width: 280px;
  overflow: hidden;
  display: flex;
  align-items: center;
  width: 100%;
}

.site-logo img {
  max-width: 100%;
  width: auto;
  height: auto;
  display: block;
  max-height: 48px;
  transition: max-height 0.35s ease;
}

.site-header.scrolled .site-logo img {
  max-height: 40px;
}

/* Logo */
.site-logo img {
  height: auto;
  width: auto;
  display: block;
}

@media (max-width: 768px) {
  .site-logo img {
    height: auto;
  }
}

.logo-footer {
  max-height: 58px;
  width: auto;
  filter: brightness(0) invert(1);
}


.custom-logo-link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.custom-logo-link img,
.custom-logo-link .custom-logo {
  height: 48px;
  width: auto;
  display: block;
}

.custom-logo-link .site-title-text {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-text);
  white-space: nowrap;
  transition: color 0.25s ease;
}

.custom-logo-link:hover .site-title-text {
  color: var(--color-primary);
}

@media (max-width: 480px) {
  .custom-logo-link {
    gap: 8px;
  }

  .custom-logo-link img,
  .custom-logo-link .custom-logo {
    height: 38px;
  }

  .custom-logo-link .site-title-text {
    font-size: 1.1rem;
  }
}

/* Desktop navigation menu — absolutely centered within header */
.main-navigation {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  display: block;
  z-index: 1;
}

.main-navigation ul {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}

.main-navigation ul li {
  position: relative;
}

.main-navigation ul li a {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--color-text-muted);
  transition: color 0.25s ease;
  padding: 8px 0;
  display: block;
}

.main-navigation ul li a:hover,
.main-navigation ul li.current-menu-item>a {
  color: var(--color-primary);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 24px;
}

.phone-link {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--color-text-muted);
  transition: color 0.25s ease;
}

.phone-link:hover {
  color: var(--color-primary);
}

/* Hamburger toggle button */
.menu-toggle {
  display: none;
  cursor: pointer;
  z-index: 101;
  padding: 10px;
  margin-right: -10px;
}

.hamburger-box {
  width: 24px;
  height: 18px;
  display: block;
  position: relative;
}

.hamburger-inner {
  display: block;
  top: 50%;
  margin-top: -1px;
}

.hamburger-inner,
.hamburger-inner::before,
.hamburger-inner::after {
  width: 24px;
  height: 2px;
  background-color: var(--color-text);
  border-radius: 4px;
  position: absolute;
  transition: transform 0.2s ease, background-color 0.2s ease;
}

.hamburger-inner::before,
.hamburger-inner::after {
  content: "";
  display: block;
}

.hamburger-inner::before {
  top: -8px;
}

.hamburger-inner::after {
  bottom: -8px;
}

/* Active hamburger animation */
.nav-open .hamburger-inner {
  background-color: transparent;
}

.nav-open .hamburger-inner::before {
  transform: translate3d(0, 8px, 0) rotate(45deg);
}

.nav-open .hamburger-inner::after {
  transform: translate3d(0, -8px, 0) rotate(-45deg);
}

/* Mobile full-screen menu overlay */
.mobile-menu-overlay {
  position: fixed;
  inset: 0;
  background-color: rgba(248, 250, 252, 0.98);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  z-index: 99;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  padding-top: var(--header-height);
}

body.nav-open .mobile-menu-overlay {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

body.nav-open {
  overflow: hidden;
}

.mobile-menu-container {
  width: 100%;
  max-width: 480px;
  padding: 40px var(--container-padding, 24px);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 40px;
  text-align: center;
}

.mobile-navigation ul {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.mobile-navigation ul li a {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--color-text);
  transition: color 0.25s ease;
}

.mobile-navigation ul li a:hover {
  color: var(--color-primary);
}

.mobile-menu-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  width: 100%;
}

.mobile-phone-link {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--color-text-muted);
}

/* ==========================================================================
   8. RESPONSIVE BREAKPOINTS (Header & Nav)
   ========================================================================= */
@media (max-width: 768px) {
  :root {
    --header-height: 80px;
    --header-height-scrolled: 70px;
  }

  .main-navigation {
    display: none;
    /* Hide desktop nav */
  }

  .menu-toggle {
    display: block;
    /* Show hamburger */
  }

  .header-actions .phone-link,
  .header-actions .btn-nav-cta {
    display: none;
    /* Hide CTA in header on tablet/mobile */
  }

    .site-logo img {
      width: auto;
      height: auto;
      max-height: 38px;
    }

    .site-header.scrolled .site-logo img {
      max-height: 30px;
    }
}

@media (max-width: 768px) {
  .site-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    overflow: hidden;
  }

    .site-logo {
      max-width: 220px;
      overflow: hidden;
      flex-shrink: 1;
    }

  .site-logo img,
  .site-logo svg {
    max-width: 100%;
    width: auto;
    height: auto;
    display: block;
  }

  .site-header .nav-right,
  .site-header .header-actions {
    flex-shrink: 0;
  }
}