/* shared.css — Team Morado Photography (teammorado.com)
 * Global styles: reset, typography, navbar, footer, FAB, reveals, CTAs, responsive
 * Import tokens.css BEFORE this file.
 */

/* ── Reset ─────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; overflow-x: hidden; }
body {
  font-family: var(--font-body);
  font-weight: 300;
  color: #fff;
  background: #0a0010;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, #000000 0%, #140018 25%, #23002D 50%, #140018 75%, #000000 100%);
  pointer-events: none;
}
img, video { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
ul, ol { list-style: none; }
a:focus-visible, button:focus-visible { outline: 2px solid #D6B45A; outline-offset: 2px; }

/* ── Selection ─────────────────────────────────────────── */
::selection { background: rgba(214,180,90,0.3); color: #fff; }

/* ── Scrollbar ─────────────────────────────────────────── */
::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: #000; }
::-webkit-scrollbar-thumb { background: #5C1A75; border-radius: 2px; }

/* ── Typography ────────────────────────────────────────── */
h1, h2, h3 {
  font-family: var(--font-heading);
  font-weight: 300;
  line-height: 1.1;
  letter-spacing: -0.5px;
}
h1 { font-size: clamp(28px, 7.5vw, 88px); font-weight: 400; line-height: 1.15; }
h2 { font-size: clamp(32px, 4.5vw, 56px); }
h3 { font-size: clamp(22px, 3vw, 32px); font-weight: 400; }
p { font-size: clamp(15px, 1.6vw, 18px); color: rgba(255,255,255,0.78); line-height: 1.75; font-weight: 300; }

/* ── Section Tag ───────────────────────────────────────── */
.section-tag {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: #D6B45A;
  margin-bottom: 16px;
}

/* ── Gold Shimmer Text ─────────────────────────────────── */
.gold-text {
  background: linear-gradient(90deg, #D6B45A, #f5d98b, #D6B45A, #b8952e);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: shimmer 4s linear infinite;
}

/* ── CTA Primary (gold button) ─────────────────────────── */
.cta-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 16px 36px;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: #0a0010;
  background: linear-gradient(135deg, #D6B45A 0%, #f5d98b 50%, #D6B45A 100%);
  background-size: 200% auto;
  border: none;
  border-radius: 0;
  cursor: pointer;
  transition: transform 0.3s var(--ease-out-quart), box-shadow 0.3s var(--ease-out-quart), background-position 0.4s;
  text-decoration: none;
}
.cta-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(214,180,90,0.3);
  background-position: right center;
}
.cta-primary:active { transform: translateY(0); }

/* ── CTA Secondary ─────────────────────────────────────── */
.cta-secondary {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 14px 28px;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.85);
  border: 1px solid rgba(255,255,255,0.2);
  background: transparent;
  cursor: pointer;
  transition: color 0.3s, border-color 0.3s, transform 0.3s;
  text-decoration: none;
}
.cta-secondary:hover {
  color: #D6B45A;
  border-color: rgba(214,180,90,0.4);
  transform: translateY(-2px);
}

/* ── CTA Tertiary (text link) ──────────────────────────── */
.cta-tertiary {
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 1px;
  color: rgba(255,255,255,0.6);
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-color: rgba(214,180,90,0.3);
  transition: color 0.3s, text-decoration-color 0.3s;
}
.cta-tertiary:hover {
  color: #D6B45A;
  text-decoration-color: #D6B45A;
}

/* GTM click tracking: force click on parent button, not children */
.gtm-whatsapp-cta * { pointer-events: none; }

/* ── Navbar ────────────────────────────────────────────── */
#navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 60px;
  background: rgba(8,0,16,0.40);
  backdrop-filter: blur(24px) saturate(160%);
  -webkit-backdrop-filter: blur(24px) saturate(160%);
  border-bottom: 1px solid rgba(255,255,255,0.07);
  transition: padding 0.4s var(--ease-out-quart), background 0.4s, border-color 0.4s;
}
#navbar.scrolled {
  padding: 14px 60px;
  background: rgba(0,0,0,0.72);
  backdrop-filter: blur(32px) saturate(200%);
  -webkit-backdrop-filter: blur(32px) saturate(200%);
  border-bottom-color: rgba(214,180,90,0.20);
}
.nav-logo { display: flex; align-items: center; text-decoration: none; }
.nav-logo img { height: 32px; width: auto; }
.nav-links { display: flex; gap: 32px; align-items: center; }
.nav-links a {
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.65);
  transition: color 0.3s;
  text-decoration: none;
}
.nav-links a:hover, .nav-links a.active { color: #D6B45A; }
.nav-cta {
  font-size: 11px !important;
  padding: 12px 24px !important;
}

/* Hamburger */
.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 28px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
}
.nav-hamburger span {
  display: block;
  height: 2px;
  background: rgba(255,255,255,0.7);
  border-radius: 1px;
  transition: transform 0.3s, opacity 0.3s;
}
.nav-hamburger.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; }
.nav-hamburger.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* Mobile menu overlay */
.mobile-menu {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 999;
  background: rgba(0,0,0,0.95);
  backdrop-filter: blur(20px);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 32px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s;
}
.mobile-menu.open { opacity: 1; pointer-events: all; }
.mobile-menu a {
  font-size: 18px;
  font-weight: 400;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.7);
  transition: color 0.3s;
}
.mobile-menu a:hover { color: #D6B45A; }

/* ── Footer ────────────────────────────────────────────── */
.site-footer {
  padding: 60px;
  border-top: 1px solid rgba(255,255,255,0.08);
  background: rgba(0,0,0,0.4);
}
.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 40px;
}
.footer-brand p { font-size: 13px; color: rgba(255,255,255,0.35); line-height: 1.7; max-width: 260px; }
.footer-brand .footer-address { font-size: 13px; color: rgba(255,255,255,0.50); margin-top: 8px; }
.footer-columns { display: flex; gap: 60px; flex-wrap: wrap; }
.footer-col-title {
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: rgba(214,180,90,0.75);
  margin-bottom: 16px;
}
.footer-col a {
  display: block;
  font-size: 13px;
  color: rgba(255,255,255,0.4);
  text-decoration: none;
  margin-bottom: 8px;
  transition: color 0.3s;
}
.footer-col a:hover { color: #D6B45A; }
.footer-bottom {
  max-width: 1200px;
  margin: 40px auto 0;
  border-top: 1px solid rgba(255,255,255,0.06);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}
.footer-bottom span { font-size: 12px; color: rgba(255,255,255,0.50); }

/* ── WhatsApp FAB ──────────────────────────────────────── */
.fab-wa-wrap {
  position: fixed;
  bottom: 32px;
  right: 32px;
  z-index: 900;
}
.fab-wa-pulse {
  position: absolute;
  inset: -8px;
  border-radius: 50%;
  background: rgba(37,211,102,0.2);
  animation: breathe 2s ease-in-out infinite;
  pointer-events: none;
}
.fab-wa {
  position: relative;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: #25D366;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 24px rgba(37,211,102,0.35);
  transition: transform 0.3s, box-shadow 0.3s;
}
.fab-wa:hover {
  transform: scale(1.08);
  box-shadow: 0 6px 32px rgba(37,211,102,0.5);
}
.fab-wa svg { width: 28px; height: 28px; fill: #fff; }

/* ── Reveal Animations ─────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(48px) scale(0.97);
  transition: opacity 1.05s cubic-bezier(.22,1,.36,1),
              transform 1.05s cubic-bezier(.22,1,.36,1);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}
.reveal-left {
  opacity: 0;
  transform: translateX(-50px);
  transition: opacity 1.05s cubic-bezier(.22,1,.36,1),
              transform 1.05s cubic-bezier(.22,1,.36,1);
}
.reveal-left.visible { opacity: 1; transform: translateX(0); }
.reveal-right {
  opacity: 0;
  transform: translateX(50px);
  transition: opacity 1.05s cubic-bezier(.22,1,.36,1),
              transform 1.05s cubic-bezier(.22,1,.36,1);
}
.reveal-right.visible { opacity: 1; transform: translateX(0); }

.reveal-delay-1 { transition-delay: 0.12s; }
.reveal-delay-2 { transition-delay: 0.26s; }
.reveal-delay-3 { transition-delay: 0.40s; }
.reveal-delay-4 { transition-delay: 0.54s; }

/* ── Scroll Orb ────────────────────────────────────────── */
#scroll-orb {
  position: fixed;
  width: 70vw;
  height: 70vw;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(92,26,117,0.35), transparent 70%);
  pointer-events: none;
  z-index: -1;
  mix-blend-mode: screen;
  will-change: transform;
  transition: transform 0.1s linear;
}

/* ── Grain Overlay ─────────────────────────────────────── */
#grain-overlay {
  position: fixed;
  inset: 0;
  z-index: 9997;
  pointer-events: none;
  opacity: 0.038;
  mix-blend-mode: overlay;
}

/* ── Section Layout ────────────────────────────────────── */
.section {
  padding: 80px 60px;
  position: relative;
}
.section-inner {
  max-width: 1200px;
  margin: 0 auto;
}
.section-narrow {
  max-width: 680px;
  margin: 0 auto;
}

/* ── FAQ ───────────────────────────────────────────────── */
.faq-list { max-width: 800px; margin: 0 auto; }
.faq-item {
  border-bottom: 1px solid rgba(214,180,90,0.15);
}
.faq-question, .faq-q {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 0;
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 400;
  color: #fff;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  gap: 16px;
}
.faq-q::after {
  content: '+';
  color: #D6B45A;
  font-size: 22px;
  flex-shrink: 0;
  transition: transform 0.3s;
}
.faq-q[aria-expanded="true"]::after {
  transform: rotate(45deg);
}
.faq-icon {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  position: relative;
}
.faq-icon::before, .faq-icon::after {
  content: '';
  position: absolute;
  background: rgba(214,180,90,0.6);
  transition: transform 0.3s;
}
.faq-icon::before { width: 20px; height: 2px; top: 9px; left: 0; }
.faq-icon::after { width: 2px; height: 20px; top: 0; left: 9px; }
.faq-icon.open::after { transform: rotate(90deg); }
.faq-answer, .faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s var(--ease-out-quart), padding 0.4s;
  padding: 0;
}
.faq-answer.open, .faq-a.open {
  max-height: 500px;
  padding-bottom: 24px;
}
.faq-answer p, .faq-a p {
  font-size: 15px;
  line-height: 1.7;
  color: rgba(255,255,255,0.65);
}
.faq-a a { color: #D6B45A; }

/* ── Keyframes ─────────────────────────────────────────── */
@keyframes shimmer {
  0% { background-position: -200% center; }
  100% { background-position: 200% center; }
}
@keyframes breathe {
  0%, 100% { transform: scale(1); opacity: 0.5; }
  50% { transform: scale(1.15); opacity: 0.8; }
}
@keyframes halo-pulse {
  0%, 100% { transform: scale(1); opacity: 0.15; }
  50% { transform: scale(1.1); opacity: 0.28; }
}

/* ── Accessibility ─────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  .reveal, .reveal-left, .reveal-right {
    opacity: 1; transform: none; transition: none;
  }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

/* ── Responsive ────────────────────────────────────────── */
@media (max-width: 1024px) {
  #navbar { padding: 18px 32px; }
  #navbar.scrolled { padding: 12px 32px; }
  .section { padding: 80px 32px; }
}

@media (max-width: 768px) {
  /* Navbar */
  .nav-links { display: none; }
  .nav-hamburger { display: flex; }
  .mobile-menu { display: flex; }
  #navbar { padding: 14px 20px; }
  #navbar.scrolled { padding: 10px 20px; }
  .nav-cta { display: none !important; }

  /* Layout */
  .section { padding: 48px 20px; }
  #grain-overlay { display: none; }
  .site-footer { padding: 40px 20px; }
  .footer-inner { flex-direction: column; }
  .footer-columns { gap: 32px; }
  .footer-bottom { flex-direction: column; text-align: center; }

  /* FAB */
  .fab-wa-wrap { bottom: 20px; right: 20px; }

  /* CTA */
  .cta-primary { width: 100%; max-width: 380px; }
}
