/* ═══════════════════════════════════════════
   ROMA SOLUTIONS — Shared Stylesheet
   ═══════════════════════════════════════════ */

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  background: var(--bg);
  color: var(--white);
  font-family: var(--ff-body);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button { cursor: pointer; font-family: inherit; }

/* ── Design Tokens ── */
:root {
  --bg:        #151515;
  --bg-2:      #1c1c1c;
  --bg-3:      #222222;
  --bg-4:      #282828;
  --gold:      #BC975A;
  --gold-lt:   #d4aa6a;
  --gold-dim:  rgba(188,151,90,0.10);
  --gold-mid:  rgba(188,151,90,0.30);
  --white:     #ffffff;
  --off:       #999999;
  --off-lt:    #cccccc;
  --border:    rgba(255,255,255,0.07);
  --border-2:  rgba(255,255,255,0.12);
  --radius:    4px;
  --radius-lg: 8px;
  --max:       1200px;
  --ff-head:   'Bebas Neue', sans-serif;
  --ff-body:   'Inter', 'Aptos', system-ui, sans-serif;
  --shadow:    0 24px 60px rgba(0,0,0,0.45);
  --glow:      0 0 40px rgba(188,151,90,0.15);
}

/* ── Layout ── */
.container {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 36px;
}
.section { padding: 120px 0; }
.section-sm { padding: 80px 0; }
.bg-2 { background: var(--bg-2); }
.bg-3 { background: var(--bg-3); }

/* ── Typography ── */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--ff-head);
  font-size: 11px;
  letter-spacing: 0.22em;
  color: var(--gold);
  border: 1px solid var(--gold-mid);
  padding: 6px 16px;
  border-radius: 40px;
  margin-bottom: 20px;
  text-transform: uppercase;
}
.tag::before {
  content: '';
  display: block;
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--gold);
}
h1, .h1 {
  font-family: var(--ff-head);
  font-size: clamp(60px, 9vw, 120px);
  line-height: 0.95;
  letter-spacing: 0.01em;
}
h2, .h2 {
  font-family: var(--ff-head);
  font-size: clamp(40px, 5.5vw, 72px);
  line-height: 1;
  letter-spacing: 0.02em;
}
h3, .h3 {
  font-family: var(--ff-head);
  font-size: 28px;
  letter-spacing: 0.03em;
}
.lead {
  font-size: 18px;
  color: var(--off-lt);
  line-height: 1.75;
  max-width: 580px;
}
.gold { color: var(--gold); }
.off  { color: var(--off); }

.divider {
  width: 48px; height: 2px;
  background: var(--gold);
  margin: 20px 0;
}
.divider.center { margin: 20px auto; }
.glow-line {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold-mid), transparent);
  margin: 0;
}

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--ff-head);
  font-size: 15px;
  letter-spacing: 0.10em;
  padding: 14px 32px;
  border-radius: var(--radius);
  border: none;
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  white-space: nowrap;
}
.btn svg { flex-shrink: 0; }
.btn-gold {
  background: var(--gold);
  color: #0c0c0c;
}
.btn-gold:hover {
  background: var(--gold-lt);
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(188,151,90,0.3);
}
.btn-outline {
  background: transparent;
  color: var(--white);
  border: 1px solid var(--border-2);
}
.btn-outline:hover {
  border-color: var(--gold);
  color: var(--gold);
}
.btn-ghost {
  background: transparent;
  color: var(--gold);
  padding: 0;
  gap: 6px;
  font-size: 13px;
  letter-spacing: 0.08em;
}
.btn-ghost:hover { gap: 10px; }
.btn-lg { font-size: 17px; padding: 18px 44px; }

/* ── Nav ── */
#navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  transition: background 0.3s, border-color 0.3s;
  border-bottom: 1px solid transparent;
}
#navbar.scrolled {
  background: rgba(21,21,21,0.96);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-color: var(--border);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}
.nav-logo {
  font-family: var(--ff-head);
  font-size: 20px;
  letter-spacing: 0.14em;
  color: var(--white);
  flex-shrink: 0;
}
.nav-logo span { color: var(--gold); }
.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}
.nav-links a {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: var(--off);
  text-transform: uppercase;
  transition: color 0.2s;
  position: relative;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0; right: 0;
  height: 1px;
  background: var(--gold);
  transform: scaleX(0);
  transition: transform 0.2s;
}
.nav-links a:hover,
.nav-links a.active { color: var(--white); }
.nav-links a:hover::after,
.nav-links a.active::after { transform: scaleX(1); }
.nav-links a.active { color: var(--gold); }
.nav-actions { display: flex; align-items: center; gap: 12px; }

.nav-portal {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--off);
  text-decoration: none;
  border: 1px solid var(--border);
  border-radius: 40px;
  padding: 8px 16px 8px 14px;
  transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
  white-space: nowrap;
  margin-left: 4px;
}
.nav-portal svg {
  opacity: 0.6;
  transition: opacity 0.2s ease;
  flex-shrink: 0;
}
.nav-portal:hover {
  color: var(--gold);
  border-color: var(--gold-mid);
  background: var(--gold-dim);
}
.nav-portal:hover svg { opacity: 1; }
.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 6px;
}
.nav-hamburger span {
  display: block;
  width: 22px; height: 1.5px;
  background: var(--white);
  transition: all 0.25s;
  border-radius: 2px;
}

/* ── Footer ── */
footer {
  border-top: 1px solid var(--border);
  padding: 56px 0 40px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.8fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}
.footer-brand-logo {
  font-family: var(--ff-head);
  font-size: 22px;
  letter-spacing: 0.14em;
  margin-bottom: 16px;
}
.footer-brand-logo span { color: var(--gold); }
.footer-brand-desc {
  font-size: 14px;
  color: var(--off);
  line-height: 1.7;
  max-width: 280px;
}
.footer-col-title {
  font-family: var(--ff-head);
  font-size: 13px;
  letter-spacing: 0.15em;
  color: var(--off);
  margin-bottom: 18px;
}
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul li a {
  font-size: 14px;
  color: var(--off);
  transition: color 0.2s;
}
.footer-col ul li a:hover { color: var(--white); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 28px;
  border-top: 1px solid var(--border);
  flex-wrap: wrap;
  gap: 12px;
}
.footer-bottom p { font-size: 13px; color: var(--off); }
.footer-bottom a { color: var(--gold); }

/* ── Reveal animations ── */
.reveal {
  opacity: 0;
  transform: translateY(36px);
  transition: opacity 0.8s cubic-bezier(0.16,1,0.3,1),
              transform 0.8s cubic-bezier(0.16,1,0.3,1);
}
.reveal.from-left  { transform: translateX(-48px); }
.reveal.from-right { transform: translateX(48px); }
.reveal.scale-in   { transform: scale(0.9); transform-origin: center bottom; }
.reveal.visible    { opacity: 1; transform: translateY(0) translateX(0) scale(1); }

.stagger-1 { transition-delay: 0.05s; }
.stagger-2 { transition-delay: 0.13s; }
.stagger-3 { transition-delay: 0.21s; }
.stagger-4 { transition-delay: 0.30s; }
.stagger-5 { transition-delay: 0.38s; }
.stagger-6 { transition-delay: 0.46s; }

/* ── 3D Tilt ── */
.tilt { transform-style: preserve-3d; }

/* ── Card base ── */
.card {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
}
.card:hover {
  border-color: var(--gold-mid);
  box-shadow: var(--glow);
}

/* ── Stars ── */
.stars { color: var(--gold); font-size: 14px; letter-spacing: 1px; }

/* ── Page hero (interior pages) ── */
.page-hero {
  padding: 96px 0 28px;
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
}
.page-hero h1, .page-hero .h1 {
  font-size: clamp(34px, 4.2vw, 56px);
  line-height: 1.08;
}
.page-hero .lead { font-size: 16px; }

/* ── Page-load entrance (CSS-only, respects reduced motion) ── */
@keyframes fadeUpIn {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}
.page-hero-content > *,
.quiz-header > * {
  animation: fadeUpIn 0.7s cubic-bezier(0.16,1,0.3,1) backwards;
}
.page-hero-content > *:nth-child(1), .quiz-header > *:nth-child(1) { animation-delay: 0.02s; }
.page-hero-content > *:nth-child(2), .quiz-header > *:nth-child(2) { animation-delay: 0.09s; }
.page-hero-content > *:nth-child(3), .quiz-header > *:nth-child(3) { animation-delay: 0.16s; }
.page-hero-content > *:nth-child(4) { animation-delay: 0.23s; }
.page-hero-content > *:nth-child(5) { animation-delay: 0.30s; }

/* Booking page left column: surface immediately, no scroll-wait */
.booking-left.reveal {
  opacity: 1;
  transform: none;
  transition: none;
}
.booking-left > h1,
.booking-left > p:first-of-type,
.booking-left .social-proof,
.booking-left .promo-pill {
  animation: fadeUpIn 0.7s cubic-bezier(0.16,1,0.3,1) backwards;
}
.booking-left .social-proof  { animation-delay: 0.02s; }
.booking-left .promo-pill    { animation-delay: 0.08s; }
.booking-left > h1            { animation-delay: 0.14s; }
.booking-left > p:first-of-type { animation-delay: 0.20s; }

@media (prefers-reduced-motion: reduce) {
  .page-hero-content > * { animation: none; opacity: 1; transform: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
  * { scroll-behavior: auto !important; }
}
.page-hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(ellipse 80% 100% at 50% 0%, black 30%, transparent 100%);
}
.page-hero-content { position: relative; z-index: 2; }

/* ── Responsive ── */
@media (max-width: 1024px) {
  .container { padding: 0 28px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 36px; }
}
@media (max-width: 768px) {
  .container { padding: 0 20px; }
  .section { padding: 80px 0; }
  .nav-links, .nav-actions { display: none; }
  .nav-hamburger { display: flex; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .footer-brand-desc { max-width: 100%; }
}
@media (max-width: 480px) {
  .section { padding: 60px 0; }
}
