/* ===== Soulstice Miami — Shared Styles ===== */

html { scroll-behavior: smooth; }
body { font-family: 'DM Sans', sans-serif; color: #0F172A; }
@media (min-width: 768px) { body { zoom: 0.85; } }
p { text-align: left; }

/* Grain overlay */
body::before {
  content: '';
  position: fixed;
  top: 0; left: 0; width: 100%; height: 100%;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.03'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 100;
  mix-blend-mode: overlay;
}

/* Nav link hover */
.nav-link { position: relative; }
.nav-link::after {
  content: '';
  position: absolute;
  bottom: -2px; left: 0;
  width: 0; height: 1px;
  background: #0F172A;
  transition: width 0.3s;
}
.nav-link:hover::after { width: 100%; }

/* Services dropdown */
.nav-dropdown { position: relative; }
.nav-dropdown-menu {
  position: absolute; top: 100%; left: 50%; transform: translateX(-50%);
  min-width: 240px; padding: 12px 0; margin-top: 8px;
  background: rgba(250,249,246,0.97); backdrop-filter: blur(12px);
  border: 1px solid rgba(0,0,0,0.06); border-radius: 12px;
  box-shadow: 0 8px 30px rgba(0,0,0,0.08);
  opacity: 0; visibility: hidden; transition: opacity 0.25s, visibility 0.25s;
}
.nav-dropdown > a::before { content: '\25BE'; margin-left: 4px; font-size: 10px; }
.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown:focus-within .nav-dropdown-menu { opacity: 1; visibility: visible; }
.nav-dropdown-menu a {
  display: block; padding: 8px 20px; font-size: 13px; letter-spacing: 0.06em;
  text-transform: uppercase; color: #0F172A; transition: background 0.2s;
}
.nav-dropdown-menu a:hover { background: rgba(0,0,0,0.04); }

/* Scroll fade reveal */
.fade-section {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 1s ease, transform 1s ease;
}
.fade-section.visible { opacity: 1; transform: translateY(0); }

/* Animated coral line */
.coral-line { width: 0; height: 1px; background: #A3C1D4; transition: width 1.2s ease; }
.coral-line.visible { width: 80px; }

/* Glow button */
.btn-glow { transition: all 0.5s ease; background-color: #A3C1D4 !important; color: white !important; border: 1px solid #8BB0C4 !important; box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -2px rgba(0,0,0,0.1); }
.btn-glow:hover { background-color: #8BB0C4 !important; box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -4px rgba(0,0,0,0.1); transform: translateY(-2px); }

/* Glass card */
.glass {
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 8px 32px rgba(15, 23, 42, 0.05);
}
.glass-hover { transition: transform 0.4s ease, box-shadow 0.4s ease, border-color 0.4s ease; }
.glass-hover:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(163, 193, 212, 0.25);
  border-color: rgba(163, 193, 212, 0.3);
}

/* Closing section separator */
main > section:last-of-type { border-bottom: 1px solid rgba(0,0,0,0.04); }

/* Gradient mesh orbs */
.mesh-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.15;
  animation: float 12s ease-in-out infinite;
  pointer-events: none;
}
@keyframes float {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-30px) scale(1.05); }
}

/* Parallax */
.parallax-bg {
  background-attachment: fixed;
  background-size: cover;
  background-position: center;
}
@media (max-width: 768px) {
  .parallax-bg { background-attachment: scroll; }

  /* ===== GLOBAL MOBILE TYPOGRAPHY ===== */

  /* Hero headings centered, all other headings left-aligned */
  h1 { text-align: center !important; }
  h2, h3 { text-align: left !important; }

  /* Centered section headers (the ones inside .text-center parents) */
  .text-center h2, .text-center h3 { text-align: center !important; }

  /* All body/paragraph text left-aligned (no justify) */
  .text-justify { text-align: left !important; }
  p { text-align: left !important; }

  /* Center-aligned paragraphs in hero and closing sections stay centered */
  section.text-center p,
  .text-center p { text-align: center !important; }

  /* Blockquotes left-aligned to match body text */
  blockquote p { text-align: left !important; }

  /* Scale down body text */
  .text-xl { font-size: 1.05rem !important; line-height: 1.6 !important; }

  /* Scale down sub-headings */
  .text-2xl { font-size: 1.35rem !important; }

  /* ===== GLOBAL MOBILE SPACING ===== */

  /* Consistent section padding */
  main > section { padding-left: 1.25rem !important; padding-right: 1.25rem !important; }

  /* Reduce section vertical padding */
  .py-16 { padding-top: 2.5rem !important; padding-bottom: 2.5rem !important; }

  /* Reduce top padding on hero sections */
  .pt-32 { padding-top: 6rem !important; }

  /* ===== HIDE DECORATIVE ELEMENTS ===== */
  .mesh-orb { display: none; }

  /* ===== MOBILE BUTTONS ===== */
  .btn-glow {
    padding: 0.6rem 1.5rem !important;
    font-size: 12px !important;
    letter-spacing: 0.06em !important;
  }

  /* ===== MOBILE IMAGES ===== */
  /* Prevent overflow */
  img { max-width: 100% !important; height: auto; }

  /* ===== MOBILE GLASS CARDS ===== */
  .glass-hover:hover { transform: none; }

  /* ===== PREVENT HORIZONTAL SCROLL ===== */
  body, html { overflow-x: hidden !important; }
}

/* Gentle float for portrait */
@keyframes gentle-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}
.float-gentle { animation: gentle-float 8s ease-in-out infinite; }

/* Hero text entrance */
.hero-fade { opacity: 0; transform: translateY(30px); animation: heroFadeIn 1.2s ease forwards; }
.hero-fade-delay-1 { animation-delay: 0.3s; }
.hero-fade-delay-2 { animation-delay: 0.6s; }
.hero-fade-delay-3 { animation-delay: 0.9s; }
.hero-fade-delay-4 { animation-delay: 1.2s; }
@keyframes heroFadeIn {
  to { opacity: 1; transform: translateY(0); }
}

/* Staggered card reveals */
.stagger-card {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.stagger-card.visible { opacity: 1; transform: translateY(0); }


/* Text highlight on scroll */
.scroll-highlight {
  color: rgba(71, 85, 105, 0.55);
  transition: color 0.8s ease;
}
.scroll-highlight.highlighted {
  color: rgba(71, 85, 105, 1);
}

/* Scroll progress bar */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  background: linear-gradient(90deg, #A3C1D4, #8BB0C4);
  z-index: 9999;
  width: 0%;
  transition: width 0.05s linear;
}

