:root {
  --bg: #0c1824;
  --bg-card: #132536;
  --bg-elevated: #1a3048;
  --gold: #c9a227;
  --gold-light: #e8d48a;
  --gold-dark: #9a7b1a;
  --terracotta: #b85c38;
  --azulejo: #2a6b8a;
  --text: #f0ebe3;
  --text-muted: #94a3b0;
  --white: #ffffff;
  --radius: 16px;
  --shadow: 0 32px 80px rgba(0, 0, 0, 0.5);
  --transition: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'DM Sans', system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

.container {
  width: min(1160px, 92vw);
  margin: 0 auto;
}

.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  z-index: 200;
  padding: 0.5rem 1rem;
  background: var(--gold);
  color: var(--bg);
  border-radius: 6px;
  font-weight: 600;
}

.skip-link:focus {
  top: 1rem;
}

/* Header */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(12, 24, 36, 0.94);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(201, 162, 39, 0.15);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 0.85rem 0;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.logo-mark {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-dark) 100%);
  color: var(--bg);
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.35rem;
  font-weight: 700;
  border-radius: 10px;
}

.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.logo-text strong {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.logo-text span {
  font-size: 0.72rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  list-style: none;
}

.nav-links a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: color var(--transition);
}

.nav-links a:hover {
  color: var(--gold-light);
}

.header-cta {
  padding: 0.6rem 1.25rem;
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-dark) 100%);
  color: var(--bg);
  font-weight: 600;
  font-size: 0.88rem;
  border-radius: 999px;
  white-space: nowrap;
  transition: transform var(--transition), box-shadow var(--transition);
}

.header-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(201, 162, 39, 0.35);
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text);
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0.25rem;
}

/* Hero */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 7rem 0 5rem;
  background:
    radial-gradient(ellipse 80% 60% at 70% 40%, rgba(42, 107, 138, 0.18) 0%, transparent 60%),
    radial-gradient(ellipse 50% 40% at 20% 80%, rgba(184, 92, 56, 0.12) 0%, transparent 50%),
    linear-gradient(180deg, var(--bg) 0%, #0e1e2e 100%);
  overflow: hidden;
}

.hero-pattern {
  position: absolute;
  inset: 0;
  opacity: 0.04;
  background-image:
    repeating-linear-gradient(45deg, var(--gold) 0, var(--gold) 1px, transparent 1px, transparent 24px),
    repeating-linear-gradient(-45deg, var(--gold) 0, var(--gold) 1px, transparent 1px, transparent 24px);
  pointer-events: none;
}

.hero-deco {
  position: absolute;
  right: 4%;
  top: 50%;
  transform: translateY(-50%);
  font-size: clamp(8rem, 20vw, 14rem);
  opacity: 0.12;
  pointer-events: none;
  line-height: 1;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 720px;
}

.hero-badge {
  display: inline-block;
  padding: 0.4rem 1rem;
  background: rgba(201, 162, 39, 0.12);
  border: 1px solid rgba(201, 162, 39, 0.3);
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--gold-light);
  letter-spacing: 0.04em;
  margin-bottom: 1.5rem;
}

.hero h1 {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 700;
  line-height: 1.12;
  margin-bottom: 1.25rem;
}

.hero h1 em {
  font-style: italic;
  color: var(--gold-light);
}

.hero-lead {
  font-size: 1.12rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
  max-width: 580px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 3rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.75rem;
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: 999px;
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition);
}

.btn-primary {
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-dark) 100%);
  color: var(--bg);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(201, 162, 39, 0.4);
}

.btn-outline {
  border: 1px solid rgba(201, 162, 39, 0.45);
  color: var(--gold-light);
}

.btn-outline:hover {
  background: rgba(201, 162, 39, 0.1);
  transform: translateY(-2px);
}

.hero-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 2.5rem;
}

.trust-item strong {
  display: block;
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--gold-light);
  line-height: 1.2;
}

.trust-item span {
  font-size: 0.82rem;
  color: var(--text-muted);
}

/* Sections */
section {
  padding: 5.5rem 0;
}

.section-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 3.5rem;
}

.section-label {
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--gold);
  margin-bottom: 0.75rem;
}

.section-title {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 700;
  margin-bottom: 1rem;
}

.section-desc {
  color: var(--text-muted);
  font-size: 1.05rem;
}

/* Intro */
.intro-section {
  background: var(--bg-card);
  border-top: 1px solid rgba(201, 162, 39, 0.08);
  border-bottom: 1px solid rgba(201, 162, 39, 0.08);
}

.intro-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.intro-visual {
  aspect-ratio: 4/3;
  border-radius: var(--radius);
  background: linear-gradient(145deg, var(--bg-elevated) 0%, var(--bg) 100%);
  border: 1px solid rgba(201, 162, 39, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 6rem;
  box-shadow: var(--shadow);
}

.intro-text h2 {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  margin-bottom: 1.25rem;
}

.intro-text p {
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.intro-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 2rem;
}

.stat-box {
  text-align: center;
  padding: 1.25rem;
  background: rgba(201, 162, 39, 0.06);
  border-radius: 12px;
  border: 1px solid rgba(201, 162, 39, 0.12);
}

.stat-box strong {
  display: block;
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.75rem;
  color: var(--gold-light);
}

.stat-box span {
  font-size: 0.78rem;
  color: var(--text-muted);
}

/* History timeline */
.history-section {
  background: var(--bg);
}

.timeline {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.timeline-card {
  padding: 2rem 1.5rem;
  background: var(--bg-card);
  border-radius: var(--radius);
  border: 1px solid rgba(201, 162, 39, 0.1);
  transition: transform var(--transition), border-color var(--transition);
}

.timeline-card:hover {
  transform: translateY(-6px);
  border-color: rgba(201, 162, 39, 0.3);
}

.timeline-era {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--terracotta);
  margin-bottom: 0.5rem;
}

.timeline-card h3 {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.35rem;
  margin-bottom: 0.75rem;
}

.timeline-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.timeline-icon {
  font-size: 2rem;
  margin-bottom: 1rem;
  display: block;
}

/* Architecture styles */
.styles-section {
  background: linear-gradient(180deg, var(--bg-card) 0%, var(--bg) 100%);
}

.styles-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
}

.style-card {
  position: relative;
  padding: 2.25rem 1.75rem;
  background: var(--bg-elevated);
  border-radius: var(--radius);
  border: 1px solid rgba(42, 107, 138, 0.2);
  overflow: hidden;
}

.style-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--gold), var(--terracotta));
}

.style-card h3 {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.4rem;
  margin-bottom: 0.75rem;
}

.style-card p {
  font-size: 0.92rem;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
}

.style-tag {
  display: inline-block;
  padding: 0.3rem 0.75rem;
  background: rgba(42, 107, 138, 0.2);
  border-radius: 999px;
  font-size: 0.75rem;
  color: var(--gold-light);
}

/* Landmarks */
.landmarks-section {
  background: var(--bg);
}

.landmarks-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.75rem;
}

.landmark-card {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 1.5rem;
  padding: 1.75rem;
  background: var(--bg-card);
  border-radius: var(--radius);
  border: 1px solid rgba(201, 162, 39, 0.1);
  align-items: center;
  transition: border-color var(--transition);
}

.landmark-card:hover {
  border-color: rgba(201, 162, 39, 0.35);
}

.landmark-thumb {
  aspect-ratio: 1;
  border-radius: 12px;
  background: linear-gradient(145deg, var(--bg-elevated), var(--bg));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
}

.landmark-card h3 {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.3rem;
  margin-bottom: 0.4rem;
}

.landmark-location {
  font-size: 0.78rem;
  color: var(--gold);
  margin-bottom: 0.5rem;
}

.landmark-card p {
  font-size: 0.88rem;
  color: var(--text-muted);
}

/* Regions */
.regions-section {
  background: var(--bg-card);
}

.regions-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.region-card {
  position: relative;
  padding: 2rem;
  border-radius: var(--radius);
  background: var(--bg);
  border: 1px solid rgba(201, 162, 39, 0.12);
  text-align: center;
  transition: transform var(--transition);
}

.region-card:hover {
  transform: translateY(-4px);
}

.region-emoji {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.region-card h3 {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.35rem;
  margin-bottom: 0.5rem;
}

.region-card p {
  font-size: 0.88rem;
  color: var(--text-muted);
}

/* CTA */
.cta-section {
  padding: 5rem 0;
  background:
    radial-gradient(ellipse 60% 80% at 50% 100%, rgba(201, 162, 39, 0.15) 0%, transparent 60%),
    var(--bg);
}

.cta-box {
  text-align: center;
  padding: 4rem 2rem;
  background: linear-gradient(145deg, var(--bg-card) 0%, var(--bg-elevated) 100%);
  border-radius: calc(var(--radius) + 4px);
  border: 1px solid rgba(201, 162, 39, 0.2);
  box-shadow: var(--shadow);
}

.cta-box h2 {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: clamp(2rem, 4vw, 2.75rem);
  margin-bottom: 1rem;
}

.cta-box p {
  color: var(--text-muted);
  max-width: 520px;
  margin: 0 auto 2rem;
  font-size: 1.05rem;
}

.cta-form {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
  max-width: 480px;
  margin: 0 auto 1.5rem;
}

.cta-form input {
  flex: 1;
  min-width: 220px;
  padding: 0.85rem 1.25rem;
  background: var(--bg);
  border: 1px solid rgba(201, 162, 39, 0.25);
  border-radius: 999px;
  color: var(--text);
  font-family: inherit;
  font-size: 0.95rem;
}

.cta-form input::placeholder {
  color: var(--text-muted);
}

.cta-form input:focus {
  outline: none;
  border-color: var(--gold);
}

.cta-note {
  font-size: 0.78rem;
  color: var(--text-muted);
}

/* Footer */
.site-footer {
  padding: 3.5rem 0 2rem;
  background: #080f18;
  border-top: 1px solid rgba(201, 162, 39, 0.1);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 2.5rem;
}

.footer-brand p {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-top: 1rem;
  max-width: 320px;
}

.footer-col h4 {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.1rem;
  margin-bottom: 1rem;
  color: var(--gold-light);
}

.footer-col ul {
  list-style: none;
}

.footer-col li {
  margin-bottom: 0.5rem;
}

.footer-col a {
  font-size: 0.88rem;
  color: var(--text-muted);
  transition: color var(--transition);
}

.footer-col a:hover {
  color: var(--gold-light);
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 0.82rem;
  color: var(--text-muted);
}

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.footer-legal a:hover {
  color: var(--gold-light);
}

/* Legal pages */
.page-hero {
  padding: 8rem 0 3rem;
  background: var(--bg-card);
  border-bottom: 1px solid rgba(201, 162, 39, 0.1);
}

.page-hero h1 {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: clamp(2rem, 4vw, 2.75rem);
  margin-bottom: 0.5rem;
}

.page-hero p {
  color: var(--text-muted);
}

.legal-content {
  padding: 3rem 0 5rem;
  max-width: 760px;
}

.legal-content h2 {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.4rem;
  margin: 2rem 0 0.75rem;
  color: var(--gold-light);
}

.legal-content p,
.legal-content li {
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.legal-content ul {
  padding-left: 1.5rem;
  margin-bottom: 1rem;
}

/* Animations */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive */
@media (max-width: 960px) {
  .timeline {
    grid-template-columns: repeat(2, 1fr);
  }

  .styles-grid,
  .regions-grid {
    grid-template-columns: 1fr;
  }

  .intro-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .menu-toggle {
    display: block;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    padding: 1.5rem;
    background: rgba(12, 24, 36, 0.98);
    border-bottom: 1px solid rgba(201, 162, 39, 0.15);
    gap: 1rem;
  }

  .nav-links.open {
    display: flex;
  }

  .header-cta {
    display: none;
  }

  .site-header nav {
    position: relative;
  }

  .timeline,
  .landmarks-grid {
    grid-template-columns: 1fr;
  }

  .landmark-card {
    grid-template-columns: 80px 1fr;
  }

  .intro-stats {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .hero-trust {
    gap: 1.5rem;
  }
}
