/* ============================================================
   FOUR DOT GLOBAL — Design tokens
   A consultancy bridging four service pillars: Business Setup,
   Investment Advisory, Real Estate, Relocation & Residency.
   The "four dots" motif (compass/quadrant) is the signature device
   used throughout — in nav, hero, section markers, and footer.
   ============================================================ */

:root {
  /* Color */
  --burgundy-900: #3D0F1A;
  --burgundy-700: #6B1B2B;
  --burgundy-600: #7E2135;
  --burgundy-500: #932A41;
  --gold-600: #A87C2E;
  --gold-500: #C4993F;
  --gold-300: #DFC489;
  --gold-100: #F1E4C3;
  --cream-50: #FAF6EE;
  --cream-100: #F3EBDC;
  --ink-900: #241713;
  --ink-700: #4A3A34;
  --ink-500: #7A6A62;
  --white: #FFFFFF;
  --line: rgba(107, 27, 43, 0.14);

  /* Type */
  --font-display: "Fraunces", "Iowan Old Style", Georgia, serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mono: "IBM Plex Mono", "SF Mono", Menlo, monospace;

  /* Scale */
  --space-1: 0.5rem;
  --space-2: 1rem;
  --space-3: 1.5rem;
  --space-4: 2.5rem;
  --space-5: 4rem;
  --space-6: 6.5rem;

  --radius: 2px;
  --container: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--cream-50);
  color: var(--ink-900);
  font-family: var(--font-body);
  font-size: 16.5px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.12;
  margin: 0 0 var(--space-2);
  color: var(--burgundy-900);
  letter-spacing: -0.01em;
}
h1 { font-size: clamp(2.4rem, 4.6vw, 4rem); font-weight: 500; }
h2 { font-size: clamp(1.7rem, 2.6vw, 2.5rem); font-weight: 500; }
h3 { font-size: 1.28rem; font-weight: 600; }
p { margin: 0 0 var(--space-2); color: var(--ink-700); }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--space-3);
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold-600);
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  margin-bottom: var(--space-2);
}
.eyebrow::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--gold-500);
  display: inline-block;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.92rem;
  padding: 0.85em 1.7em;
  border-radius: var(--radius);
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.2s ease;
  letter-spacing: 0.01em;
}
.btn-primary {
  background: var(--burgundy-700);
  color: var(--cream-50);
  border-color: var(--burgundy-700);
}
.btn-primary:hover { background: var(--burgundy-900); }
.btn-gold {
  background: var(--gold-500);
  color: var(--burgundy-900);
  border-color: var(--gold-500);
}
.btn-gold:hover { background: var(--gold-600); }
.btn-outline {
  background: transparent;
  color: var(--cream-50);
  border-color: rgba(250,246,238,0.4);
}
.btn-outline:hover { border-color: var(--gold-500); color: var(--gold-300); }
.btn-outline-dark {
  background: transparent;
  color: var(--burgundy-900);
  border-color: var(--burgundy-900);
}
.btn-outline-dark:hover { background: var(--burgundy-900); color: var(--cream-50); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(250, 246, 238, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.1rem 0;
}
.logo { display: flex; align-items: center; gap: 0.55rem; text-decoration: none; }
.logo-mark { width: 30px; height: auto; flex-shrink: 0; }
.footer-logo .logo-mark { width: 32px; }
.logo-word {
  font-family: var(--font-display);
  font-size: 1.18rem;
  font-weight: 600;
  color: var(--burgundy-900);
  letter-spacing: 0.01em;
  line-height: 1.1;
}
.logo-word span { display: block; font-family: var(--font-mono); font-size: 0.6rem; letter-spacing: 0.22em; color: var(--gold-600); font-weight: 500; margin-top: 2px;}

.nav-links { display: flex; align-items: center; gap: var(--space-4); list-style: none; margin: 0; padding: 0; }
.nav-links a {
  text-decoration: none; font-size: 0.88rem; font-weight: 500;
  color: var(--ink-700); position: relative; padding: 0.3rem 0;
}
.nav-links a.active, .nav-links a:hover { color: var(--burgundy-700); }
.nav-links a.active::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 2px; background: var(--gold-500);
}
.nav-cta { display: flex; align-items: center; gap: var(--space-2); }
.nav-toggle { display: none; }

@media (max-width: 900px) {
  .nav-links { display: none; }
  .nav-toggle {
    display: block; background: none; border: none; cursor: pointer;
    font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.1em;
    color: var(--burgundy-900); text-transform: uppercase;
  }
}

/* ---------- Hero ---------- */
.hero {
  background: linear-gradient(180deg, var(--burgundy-900) 0%, var(--burgundy-700) 100%);
  color: var(--cream-50);
  padding: var(--space-6) 0 var(--space-5);
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute; inset: 0;
  background-image: radial-gradient(circle at 85% 20%, rgba(196,153,63,0.16), transparent 55%);
  pointer-events: none;
}
.hero-grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: var(--space-5); align-items: center; position: relative; }
.hero h1 { color: var(--cream-50); }
.hero .eyebrow { color: var(--gold-300); }
.hero .eyebrow::before { background: var(--gold-300); }
.hero-lead { color: rgba(250,246,238,0.78); font-size: 1.08rem; max-width: 46ch; }
.hero-actions { display: flex; gap: var(--space-2); margin-top: var(--space-3); flex-wrap: wrap; }
.hero-stats { display: flex; gap: var(--space-4); margin-top: var(--space-5); flex-wrap: wrap; }
.hero-stat .num { font-family: var(--font-mono); font-size: 1.6rem; color: var(--gold-300); font-weight: 500; }
.hero-stat .label { font-size: 0.78rem; color: rgba(250,246,238,0.6); margin-top: 2px; }

.page-hero {
  background: linear-gradient(180deg, var(--burgundy-900) 0%, var(--burgundy-700) 100%);
  color: var(--cream-50);
  padding: var(--space-5) 0 var(--space-4);
  position: relative;
}
.page-hero h1 { color: var(--cream-50); margin-bottom: var(--space-1); }
.page-hero .hero-lead { color: rgba(250,246,238,0.78); max-width: 60ch; }
.breadcrumb { font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.08em; color: rgba(250,246,238,0.55); margin-bottom: var(--space-2); text-transform: uppercase; }
.breadcrumb a { text-decoration: none; color: rgba(250,246,238,0.7); }

/* ---------- Four Dots Signature (quadrant nav) ---------- */
.quadrant {
  display: grid; grid-template-columns: 1fr 1fr; gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.quadrant-cell {
  background: var(--cream-50);
  padding: var(--space-3);
  text-decoration: none;
  display: block;
  transition: background 0.2s ease;
  position: relative;
}
.quadrant-cell:hover { background: var(--cream-100); }
.quadrant-dot {
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--gold-500); margin-bottom: var(--space-2);
}
.quadrant-cell h3 { font-size: 1.02rem; margin-bottom: 0.3rem; color: var(--burgundy-900); }
.quadrant-cell p { font-size: 0.86rem; margin: 0; color: var(--ink-500); }
.quadrant-cell .arrow { position: absolute; top: var(--space-3); right: var(--space-3); color: var(--gold-600); opacity: 0; transition: opacity 0.2s ease, transform 0.2s ease; }
.quadrant-cell:hover .arrow { opacity: 1; transform: translate(2px,-2px); }

/* ---------- Sections ---------- */
section { padding: var(--space-5) 0; }
.section-cream { background: var(--cream-50); }
.section-tint { background: var(--cream-100); }
.section-dark { background: var(--burgundy-900); color: var(--cream-50); }
.section-dark h2 { color: var(--cream-50); }
.section-dark p { color: rgba(250,246,238,0.75); }
.section-head { max-width: 60ch; margin-bottom: var(--space-4); }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-4); }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-3); }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-3); }

.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: var(--space-3);
}
.card .num { font-family: var(--font-mono); color: var(--gold-600); font-size: 0.82rem; margin-bottom: var(--space-1); }

.divider-gold { height: 1px; background: linear-gradient(90deg, var(--gold-500), transparent); width: 120px; margin: var(--space-2) 0 var(--space-3); }

.stat-row { display: flex; gap: var(--space-5); flex-wrap: wrap; padding-top: var(--space-3); border-top: 1px solid var(--line); margin-top: var(--space-4); }
.stat-row .num { font-family: var(--font-mono); font-size: 2rem; color: var(--burgundy-700); }
.section-dark .stat-row .num { color: var(--gold-300); }
.stat-row .label { font-size: 0.82rem; color: var(--ink-500); margin-top: 4px; }
.section-dark .stat-row { border-top-color: rgba(250,246,238,0.15); }
.section-dark .stat-row .label { color: rgba(250,246,238,0.6); }

.process-list { list-style: none; margin: 0; padding: 0; counter-reset: step; }
.process-list li {
  counter-increment: step;
  display: grid; grid-template-columns: 56px 1fr; gap: var(--space-2);
  padding: var(--space-3) 0; border-top: 1px solid var(--line);
}
.process-list li:last-child { border-bottom: 1px solid var(--line); }
.process-list li::before {
  content: counter(step, decimal-leading-zero);
  font-family: var(--font-mono); color: var(--gold-600); font-size: 1rem; padding-top: 2px;
}
.process-list h4 { margin: 0 0 0.3rem; font-family: var(--font-body); font-size: 1.02rem; font-weight: 600; color: var(--burgundy-900); }
.process-list p { margin: 0; font-size: 0.92rem; }

.quote-block {
  border-left: 2px solid var(--gold-500);
  padding-left: var(--space-3);
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-style: italic;
  color: var(--burgundy-900);
  max-width: 62ch;
}

.audience-tags { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: var(--space-2); }
.audience-tags span {
  font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.04em;
  padding: 0.4em 0.9em; border: 1px solid var(--line); border-radius: 20px;
  color: var(--ink-700);
}

/* ---------- CTA band ---------- */
.cta-band {
  background: var(--burgundy-900);
  color: var(--cream-50);
  padding: var(--space-5) 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-band::before {
  content: "";
  position: absolute; inset: 0;
  background-image: radial-gradient(circle at 15% 85%, rgba(196,153,63,0.14), transparent 50%);
}
.cta-band h2 { color: var(--cream-50); margin-bottom: var(--space-1); }
.cta-band p { color: rgba(250,246,238,0.72); margin-bottom: var(--space-3); }
.cta-actions { display: flex; gap: var(--space-2); justify-content: center; flex-wrap: wrap; position: relative; }

/* ---------- Footer ---------- */
.site-footer { background: var(--burgundy-900); color: rgba(250,246,238,0.7); padding: var(--space-5) 0 var(--space-3); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: var(--space-4); }
.footer-logo { display: flex; align-items: center; gap: 0.6rem; margin-bottom: var(--space-2); }
.footer-logo .logo-word { color: var(--cream-50); }
.footer-col h4 { color: var(--gold-300); font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; margin-bottom: var(--space-2); font-weight: 500;}
.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col li { margin-bottom: 0.6rem; }
.footer-col a { text-decoration: none; color: rgba(250,246,238,0.68); font-size: 0.88rem; }
.footer-col a:hover { color: var(--gold-300); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; margin-top: var(--space-5); padding-top: var(--space-3); border-top: 1px solid rgba(250,246,238,0.12); font-size: 0.78rem; flex-wrap: wrap; gap: var(--space-2); }

/* ---------- WhatsApp floating button ---------- */
.wa-float {
  position: fixed; bottom: 24px; right: 24px; z-index: 200;
  width: 56px; height: 56px; border-radius: 50%;
  background: var(--burgundy-700);
  border: 2px solid var(--gold-500);
  display: flex; align-items: center; justify-content: center;
  text-decoration: none; box-shadow: 0 8px 24px rgba(61,15,26,0.35);
  transition: transform 0.2s ease;
}
.wa-float:hover { transform: scale(1.07); background: var(--burgundy-900); }
.wa-float svg { width: 26px; height: 26px; }

/* ---------- Mobile nav ---------- */
.mobile-menu { display: none; flex-direction: column; gap: 0.2rem; background: var(--cream-50); border-top: 1px solid var(--line); }
.mobile-menu.open { display: flex; }
.mobile-menu a { text-decoration: none; padding: 0.9rem var(--space-3); color: var(--ink-700); font-size: 0.95rem; border-bottom: 1px solid var(--line); }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .quadrant { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .footer-grid { grid-template-columns: 1fr; }
  .hero-stats { gap: var(--space-3); }
  .stat-row { gap: var(--space-3); }
}
