/* ── Reset & Base ─────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; }
img, svg { display: block; max-width: 100%; }

/* ── Hero Background ──────────────────────────────── */
.hero-bg { position: relative; }
.hero-bg img {
  will-change: transform;
  transition: transform 8s ease-out;
}
.hero-bg.loaded img {
  transform: scale(1.05);
}
.hero-overlay {
  background: linear-gradient(
    135deg,
    rgba(15, 35, 45, 0.72) 0%,
    rgba(13, 50, 55, 0.62) 50%,
    rgba(10, 30, 40, 0.78) 100%
  );
}

/* ── Typography ───────────────────────────────────── */
.section-label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #0d9488;
  background: linear-gradient(135deg, #ccfbf1, #99f6e4);
  padding: 0.4em 1em;
  border-radius: 100px;
}
.section-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  color: #0f172a;
  line-height: 1.15;
}

/* ── Hero Headline ────────────────────────────────── */
.hero-headline {
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.02em;
  text-shadow: 0 2px 20px rgba(0,0,0,0.3);
}
.hero-sub {
  text-shadow: 0 1px 8px rgba(0,0,0,0.2);
}

/* ── Buttons ──────────────────────────────────────── */
.btn-primary, .btn-secondary,
.btn-cta-primary, .btn-cta-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: 'Inter', system-ui, sans-serif;
  font-weight: 600;
  font-size: 1rem;
  padding: 0.875rem 1.75rem;
  border-radius: 100px;
  text-decoration: none;
  transition: all 0.25s ease;
  border: none;
  cursor: pointer;
}
.btn-primary {
  background: #0d9488;
  color: #fff;
  box-shadow: 0 4px 15px rgba(13, 148, 136, 0.4);
}
.btn-primary:hover {
  background: #0f766e;
  box-shadow: 0 8px 25px rgba(13, 148, 136, 0.5);
  transform: translateY(-2px);
}
.btn-secondary {
  background: rgba(255,255,255,0.15);
  color: #fff;
  border: 1.5px solid rgba(255,255,255,0.35);
  backdrop-filter: blur(8px);
}
.btn-secondary:hover {
  background: rgba(255,255,255,0.25);
  transform: translateY(-2px);
}
.btn-cta-primary {
  background: #fff;
  color: #0d9488;
  box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}
.btn-cta-primary:hover {
  background: #f0fdfa;
  box-shadow: 0 8px 25px rgba(0,0,0,0.3);
  transform: translateY(-2px);
}
.btn-cta-secondary {
  background: transparent;
  color: #fff;
  border: 1.5px solid rgba(255,255,255,0.4);
}
.btn-cta-secondary:hover {
  background: rgba(255,255,255,0.1);
  transform: translateY(-2px);
}

/* ── Scroll Reveal (below-fold only) ──────────────── */
.reveal-up, .reveal-left, .reveal-right {
  opacity: 1;
  transform: none;
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal-left  { transform: translateX(0); }
.reveal-right { transform: translateX(0); }

@media (prefers-reduced-motion: no-preference) {
  .reveal-up, .reveal-left, .reveal-right {
    opacity: 0;
    transition: opacity 0.7s ease, transform 0.7s ease;
  }
  .reveal-left  { transform: translateX(-40px); }
  .reveal-right { transform: translateX(40px); }
  .reveal-up    { transform: translateY(30px); }
}
.reveal-up.visible,
.reveal-left.visible,
.reveal-right.visible {
  opacity: 1;
  transform: none;
}

/* Stagger children */
.reveal-card {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
@media (prefers-reduced-motion: no-preference) {
  .reveal-card {
    opacity: 0;
    transform: translateY(20px);
  }
}
.reveal-card.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── Navbar Transition ────────────────────────────── */
#nav.scrolled {
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 20px rgba(0,0,0,0.08);
}
#nav.scrolled .font-display { color: #0f172a; }
#nav.scrolled a:not(.btn-primary):not([class*="bg-"]) { color: #475569; }

/* ── Mobile Menu ──────────────────────────────────── */
#mobile-menu.open {
  opacity: 1;
  pointer-events: auto;
}
#mobile-menu.closed {
  opacity: 0;
  pointer-events: none;
}
.menu-line { transition: all 0.3s ease; }
#menu-btn.active .menu-line:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}
#menu-btn.active .menu-line:nth-child(2) {
  opacity: 0;
}
#menu-btn.active .menu-line:nth-child(3) {
  width: 1.5rem;
  transform: rotate(-45deg) translate(5px, -5px);
}

/* ── Custom Scrollbar ─────────────────────────────── */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: #f1f5f9; }
::-webkit-scrollbar-thumb { background: #94a3b8; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #64748b; }

/* ── Selection ────────────────────────────────────── */
::selection { background: #99f6e4; color: #134e4a; }
