/* =====================================================================
   SITE-WIDE STYLES — loaded on every page.
   Page-specific styles live in /assets/css/<page>.css
   ===================================================================== */

/* ---------- Design variables (from the WordPress theme) ----------
   One font for the whole site: change --sans/--serif/--mono here (and the
   Google Fonts link in includes/head.php) to switch every page at once. */
:root {
  --bg: #0a0a0a;
  --bg-2: #111111;
  --bg-3: #161616;
  --ink: #f5f1ea;
  --ink-dim: #a8a299;
  --ink-faint: #5c5751;
  --line: #232323;
  --line-bright: #3a3a3a;
  --accent: #c5a355;
  --accent-dim: #8a7250;
  --serif: 'Inter', -apple-system, sans-serif;
  --mono: 'Inter', -apple-system, sans-serif;
  --sans: 'Inter', -apple-system, sans-serif;
  --header-h: 84px;
}

/* ---------- Base (same rules the WordPress theme applied) ---------- */
* { box-sizing: border-box; margin: 0; padding: 0; }
*::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: clamp(1rem, 1rem + ((1vw - 0.2rem) * 0.247), 1.125rem);
  font-weight: 300;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: var(--accent); text-decoration: none; }
main { display: block; }
::selection { background: var(--accent); color: var(--bg); }

/* Heading defaults inherited from the theme; page styles override sizes and weights */
h1, h2, h3, h4, h5, h6 { font-style: normal; font-weight: 900; line-height: 1.2; }
h1 { font-size: clamp(1.672rem, 1.672rem + ((1vw - 0.2rem) * 2.327), 2.85rem); }
h2 { font-size: clamp(1.403rem, 1.403rem + ((1vw - 0.2rem) * 1.772), 2.3rem); text-transform: uppercase; }
h3 { font-size: 2.25rem; }
h4 { font-size: clamp(1.75rem, 1.75rem + ((1vw - 0.2rem) * 0.247), 1.875rem); }
h5 { font-size: clamp(1rem, 1rem + ((1vw - 0.2rem) * 0.247), 1.125rem); font-weight: 700; text-transform: uppercase; }
h6 { font-size: clamp(1rem, 1rem + ((1vw - 0.2rem) * 0.247), 1.125rem); text-transform: uppercase; }

.site-sr {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.site-skip {
  position: absolute; left: 12px; top: -60px; z-index: 10001;
  background: var(--accent); color: var(--bg); padding: 10px 16px;
  font: 600 13px var(--sans); text-decoration: none; transition: top 0.2s;
}
.site-skip:focus { top: 12px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 1000;
  border-bottom: 1px solid var(--line);
}
/* The blurred background sits on a separate layer. Putting backdrop-filter on
   .site-header itself would trap the full-screen mobile menu inside the header. */
.site-header::before {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background: rgba(10, 10, 10, 0.92);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}
.site-header-inner {
  max-width: 1440px; margin: 0 auto; padding: 0 48px;
  height: var(--header-h);
  display: flex; align-items: center; justify-content: space-between; gap: 32px;
}
.site-logo { display: inline-flex; align-items: center; line-height: 0; }
.site-logo img { width: 150px; height: auto; display: block; }

.site-nav { display: flex; align-items: center; gap: 36px; }
.site-nav-list { list-style: none; margin: 0; padding: 0; display: flex; gap: 32px; }
.site-nav-list a {
  font-family: var(--sans); font-size: 15px; font-weight: 300; letter-spacing: 0.02em;
  color: var(--ink); text-decoration: none; padding: 6px 0;
  border-bottom: 1px solid transparent; transition: color 0.25s, border-color 0.25s;
}
.site-nav-list a:hover, .site-nav-list a[aria-current="page"] { color: var(--accent); border-color: var(--accent); }

.site-lang { display: flex; align-items: center; gap: 8px; font: 400 12px var(--sans); letter-spacing: 0.15em; color: var(--ink-faint); }
.site-lang a { color: var(--ink-faint); text-decoration: none; transition: color 0.25s; }
.site-lang a:hover, .site-lang a[aria-current="true"] { color: var(--ink); }

.site-cta {
  font: 600 12px var(--sans); letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--bg) !important; text-decoration: none; white-space: nowrap;
  background: linear-gradient(135deg, #C5A355, #9E7E2E);
  padding: 13px 22px; border: 1px solid var(--accent); transition: background 0.3s;
}
.site-cta:hover { background: linear-gradient(135deg, #d4b365, #C5A355); }

.site-nav-toggle {
  display: none; background: none; border: 0; padding: 10px; cursor: pointer; color: var(--ink);
}
.site-nav-toggle:focus { outline: none; }
.site-nav-toggle:focus-visible { outline: 1px solid var(--accent); outline-offset: 4px; }
.site-nav-bars, .site-nav-bars::before, .site-nav-bars::after {
  display: block; width: 24px; height: 1.5px; background: currentColor; position: relative; transition: transform 0.3s, opacity 0.3s;
}
.site-nav-bars::before, .site-nav-bars::after { content: ''; position: absolute; left: 0; }
.site-nav-bars::before { top: -7px; }
.site-nav-bars::after { top: 7px; }
.site-nav-toggle[aria-expanded="true"] .site-nav-bars { background: transparent; }
.site-nav-toggle[aria-expanded="true"] .site-nav-bars::before { transform: translateY(7px) rotate(45deg); }
.site-nav-toggle[aria-expanded="true"] .site-nav-bars::after { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 1100px) {
  .site-header-inner { padding: 0 24px; }
  .site-nav-toggle { display: block; }
  .site-nav {
    position: fixed; top: var(--header-h); left: 0; right: 0; bottom: 0;
    flex-direction: column; align-items: stretch; gap: 28px;
    padding: 32px 24px calc(32px + env(safe-area-inset-bottom, 0px));
    background: var(--bg); overflow-y: auto;
    transform: translateX(100%); visibility: hidden; transition: transform 0.35s ease, visibility 0.35s;
  }
  .site-nav.is-open { transform: none; visibility: visible; }
  .site-nav-list { flex-direction: column; gap: 0; }
  .site-nav-list li { border-bottom: 1px solid var(--line); }
  .site-nav-list a { display: block; padding: 18px 0; font-size: 20px; border: 0; }
  .site-lang { font-size: 14px; }
  .site-cta { text-align: center; padding: 18px; }
  body.nav-open { overflow: hidden; }
}

/* ---------- Final call-to-action (Home, About, Services) — from the theme ---------- */
.final-cta { padding: 120px 0; position: relative; overflow: hidden; text-align: center; }
.final-cta-bg {
  position: absolute; inset: 0;
  background-image: url('/wp-content/uploads/2026/05/medellin-colombia.webp');
  background-size: cover; background-position: center;
  filter: grayscale(0.7) contrast(1.05) brightness(0.3);
}
.final-cta-bg::after {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse at center, rgba(10,10,10,0.5), rgba(10,10,10,0.95));
}
.final-cta-content { position: relative; z-index: 2; }
.final-cta .eyebrow { display: block; margin-bottom: 40px; }
.final-cta h2 {
  font-family: var(--serif); font-weight: 300; font-size: clamp(38px, 8vw, 60px);
  line-height: 0.95; letter-spacing: -0.02em; margin-bottom: 32px;
}
.final-cta h2 em { font-style: italic; color: var(--accent); }
.final-cta p {
  color: var(--ink-dim); font-size: 18px; margin-bottom: 56px;
  max-width: 540px; margin-left: auto; margin-right: auto;
}

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); background: var(--bg); }
.site-footer-inner {
  max-width: 1440px; margin: 0 auto; padding: 72px 48px 48px;
  display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 48px;
}
.site-footer-brand p { margin: 14px 0 0; }
.site-footer a { color: var(--ink-dim); text-decoration: none; transition: color 0.25s; }
.site-footer a:hover { color: var(--accent); }
.site-footer h2 {
  text-transform: uppercase;
  font: 500 11px var(--sans); letter-spacing: 0.25em; text-transform: uppercase;
  color: var(--accent); margin: 0 0 20px;
}
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; font-size: 15px; }
.site-footer-bottom {
  max-width: 1440px; margin: 0 auto; padding: 24px 48px calc(32px + env(safe-area-inset-bottom, 0px));
  border-top: 1px solid var(--line);
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  font-size: 13px; color: var(--ink-faint);
}
.site-footer-bottom p { margin: 0; }
.site-footer-bottom span { margin: 0 8px; }
@media (max-width: 900px) {
  .site-footer-inner { grid-template-columns: 1fr 1fr; padding: 56px 24px 40px; }
  .site-footer-bottom { padding-left: 24px; padding-right: 24px; }
}
@media (max-width: 560px) {
  .site-footer-inner { grid-template-columns: 1fr; }
}

/* ---------- Legal pages (Privacy, Terms) ---------- */
.legal { max-width: 760px; margin: 0 auto; padding: 96px 24px 120px; }
.legal h1 {
  font-family: var(--serif); font-weight: 300; text-transform: none; font-size: clamp(40px, 7vw, 64px);
  line-height: 1; letter-spacing: -0.02em; margin: 0 0 32px;
}
.legal h2 {
  font: 500 12px var(--sans); letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--accent); margin: 56px 0 18px;
}
.legal h3 { font-family: var(--serif); font-weight: 400; font-size: 26px; margin: 40px 0 12px; }
.legal p, .legal li { color: var(--ink-dim); font-size: 16px; line-height: 1.75; }
.legal p { margin: 0 0 18px; }
.legal ul { padding-left: 22px; margin: 0 0 18px; }
.legal li { margin-bottom: 6px; }
.legal h1, .legal h2, .legal h3 { text-transform: none; }
.legal h2 { text-transform: uppercase; }
.legal a { color: var(--accent); }

/* ---------- WhatsApp links styled as buttons keep their colors ---------- */
a.wa-cta { -webkit-tap-highlight-color: transparent; }

/* ---------- Floating WhatsApp button (added by /assets/js/wa-float.js) ---------- */
.mvl-wa-float {
  position: fixed; right: 20px; bottom: calc(20px + env(safe-area-inset-bottom, 0px));
  z-index: 9999; width: 56px; height: 56px; border-radius: 50%;
  background: #25D366; display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 24px rgba(37, 211, 102, 0.35); transition: transform 0.3s; text-decoration: none;
}
.mvl-wa-float:hover { transform: scale(1.1); }
.mvl-wa-float:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
.mvl-wa-float svg { width: 28px; height: 28px; fill: #fff; }
.wa-float:not(.mvl-wa-float) { display: none !important; }
@media print { .mvl-wa-float { display: none; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}
