/* ═══════════════════════════════════════
   MEDITERRÁNEA ELITE — Shared Design System
   ═══════════════════════════════════════ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --gold:       oklch(0.6902 0.1079 77.82);
  --gold-light: oklch(0.6902 0.1079 77.82);
  --gold-dim:   oklch(0.6902 0.1079 77.82 / 0.35);
  --black:      oklch(0.07 0.005 60);
  --dark:       oklch(0.10 0.006 60);
  --mid:        oklch(0.14 0.007 60);
  --text:       oklch(0.93 0.01 70);
  --muted:      oklch(0.72 0.02 70);
  --white:      oklch(0.97 0.008 70);
  --white-mid:  oklch(0.93 0.008 70);
  --dark-text:  oklch(0.12 0.006 60);
  --dark-muted: oklch(0.42 0.015 60);
  --serif: 'Cormorant Garamond', Georgia, serif;
  --sans:  'Montserrat', Helvetica, sans-serif;
}

html { scroll-behavior: smooth; }
body {
  background: var(--black);
  color: var(--text);
  font-family: var(--sans);
  font-weight: 400;
  overflow-x: hidden;
}

/* ─── NAV ─── */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 200;
  padding: 24px 52px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  transition: background 0.5s, padding 0.4s, backdrop-filter 0.5s;
}
nav.scrolled {
  background: rgba(10,8,6,0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 16px 52px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.nav-logo-wrap { flex-shrink: 0; }
.nav-logo-wrap img {
  height: 72px;
  width: auto;
  display: block;
  transition: height 0.4s;
}
nav.scrolled .nav-logo-wrap img { height: 48px; }
.nav-left { display: none; }
.nav-right {
  display: flex;
  align-items: center;
  gap: 36px;
  list-style: none;
}
.nav-right a {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text);
  text-decoration: none;
  opacity: 0.85;
  transition: opacity 0.3s, color 0.3s;
  white-space: nowrap;
}
.nav-right a:hover, .nav-right a.active {
  opacity: 1;
  color: var(--gold-light);
}

/* hamburger */
.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
  background: none;
  border: none;
  position: absolute;
  right: 24px;
  top: 50%;
  transform: translateY(-50%);
}
.nav-hamburger span {
  display: block;
  width: 24px;
  height: 1px;
  background: var(--text);
  transition: transform 0.3s, opacity 0.3s;
}
.nav-mobile-menu {
  display: none;
  position: fixed;
  inset: 0;
  background: var(--black);
  z-index: 300;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 32px;
}
.nav-mobile-menu.open { display: flex; }
.nav-mobile-menu a {
  font-family: var(--serif);
  font-size: 32px;
  font-weight: 300;
  color: var(--text);
  text-decoration: none;
  letter-spacing: 0.05em;
  transition: color 0.3s;
}
.nav-mobile-menu a:hover { color: var(--gold-light); }
.nav-mobile-close {
  position: absolute;
  top: 32px; right: 32px;
  font-size: 28px;
  color: var(--muted);
  background: none;
  border: none;
  cursor: pointer;
  line-height: 1;
}

/* ─── SHARED UTILITIES ─── */
.container { max-width: 1320px; margin: 0 auto; padding: 0 60px; }

.reveal {
  opacity: 0;
  transform: translateY(36px);
  transition: opacity 0.9s ease, transform 0.9s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }
.reveal-delay-5 { transition-delay: 0.5s; }
.reveal-delay-6 { transition-delay: 0.6s; }
.reveal-delay-7 { transition-delay: 0.7s; }
.reveal-delay-8 { transition-delay: 0.8s; }

.section-label {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  gap: 14px;
}
.section-label::before {
  content: '';
  display: block;
  width: 28px;
  height: 1px;
  background: var(--gold);
  flex-shrink: 0;
}
.section-title {
  font-family: var(--serif);
  font-size: clamp(36px, 3.5vw, 58px);
  font-weight: 300;
  line-height: 1.1;
  letter-spacing: 0.01em;
}
.section-title em { font-style: italic; color: var(--gold-light); }
.section-rule {
  width: 48px;
  height: 1px;
  background: var(--gold);
  margin-top: 28px;
  opacity: 0.55;
}
.section-header { margin-bottom: 72px; }
.section-header-center { text-align: center; margin-bottom: 72px; }
.section-header-center .section-label {
    justify-content: center;
    font-size: 16px;
}
.section-header-center .section-label::before { display: none; }
.section-header-center .section-rule { margin: 28px auto 0; }

/* ─── BUTTONS ─── */
.btn-primary {
  font-family: var(--sans);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--black);
  background: var(--gold);
  text-decoration: none;
  padding: 17px 52px;
  display: inline-block;
  transition: background 0.3s, transform 0.3s;
  border: none;
  cursor: pointer;
}
.btn-primary:hover { background: var(--gold-light); transform: translateY(-2px); }
.btn-secondary {
  font-family: var(--sans);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gold);
  background: none;
  border: 1px solid var(--gold-dim);
  text-decoration: none;
  padding: 17px 52px;
  display: inline-block;
  transition: border-color 0.3s, color 0.3s, transform 0.3s;
  cursor: pointer;
}
.btn-secondary:hover { border-color: var(--gold); transform: translateY(-2px); }

/* ─── MARQUEE ─── */
.marquee-section {
  padding: 28px 0;
  background: var(--mid);
  overflow: hidden;
  border-top: 1px solid rgba(255,255,255,0.05);
  border-bottom: 1px solid rgba(255,255,255,0.05);
}
.marquee-track {
  display: flex;
  gap: 72px;
  animation: marquee 32s linear infinite;
  width: max-content;
}
.marquee-item {
  font-size: 9.5px;
  font-weight: 500;
  letter-spacing: 0.38em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 18px;
}
.marquee-dot {
  width: 3px; height: 3px;
  background: var(--gold);
  border-radius: 50%;
  flex-shrink: 0;
}
@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ─── PAGE HERO (for inner pages) ─── */
.page-hero {
  height: 360px;
  display: flex;
  align-items: flex-end;
  padding-bottom: 64px;
  background: var(--dark);
  position: relative;
  overflow: hidden;
}
.page-hero-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, oklch(0.75 0.09 68 / 0.04) 0%, transparent 60%);
}
.page-hero-line {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--gold-dim), transparent);
  top: auto; bottom: 0;
}
.page-hero-eyebrow {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.38em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 18px;
}
.page-hero-title {
  font-family: var(--serif);
  font-size: clamp(48px, 5vw, 80px);
  font-weight: 300;
  line-height: 1.05;
  letter-spacing: 0.01em;
}
.page-hero-title em { font-style: italic; color: var(--gold-light); }

/* ─── FOOTER ─── */
footer {
  background: var(--dark);
  border-top: 1px solid rgba(255,255,255,0.06);
  padding: 80px 0 40px;
}
.footer-inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 64px;
  margin-bottom: 56px;
}
.footer-logo {
  height: 44px;
  width: auto;
  margin-bottom: 22px;
  opacity: 0.85;
}
.footer-tagline {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.8;
  font-style: italic;
  font-family: var(--serif);
}
.footer-col-title {
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 24px;
}
.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 13px;
}
.footer-links a {
  font-size: 13px;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.3s;
  font-weight: 300;
}
.footer-links a:hover { color: var(--gold-light); }
.footer-bottom {
  padding-top: 32px;
  border-top: 1px solid rgba(255,255,255,0.06);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.footer-copy { font-size: 11px; color: var(--muted); }
.footer-locations {
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 0.1em;
  font-style: italic;
  font-family: var(--serif);
}

/* ─── RESPONSIVE ─── */
@media (max-width: 1100px) {
  .footer-inner { grid-template-columns: 1fr 1fr; gap: 48px; }
  nav { padding: 24px 32px; grid-template-columns: auto 1fr auto; }
  nav.scrolled { padding: 16px 32px; }
  .nav-left, .nav-right { display: none; }
  .nav-hamburger { display: flex; }
  .nav-logo-wrap { grid-column: 1; }
}
@media (max-width: 640px) {
  .container { padding: 0 24px; }
  .footer-inner { grid-template-columns: 1fr; gap: 36px; }
  .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }
  .hero-logo { height: 180px; }
  .hero-tagline { font-size: 24px; }
  .service-card img { object-position: center 35%; }
  .service-card:first-child img { object-position: center 20%; }
}
