/* ============================================================
   KURIOSITY HOMES — global.css
   Design system: tokens · typography · layout · components
   Version: 1.0  |  All pages must link this file FIRST
   <link rel="stylesheet" href="../global.css">  (from /cities/)
   <link rel="stylesheet" href="global.css">     (from root)
   ============================================================ */


/* ============================================================
   1. GOOGLE FONTS IMPORT
   ============================================================ */
@import url('https://fonts.googleapis.com/css2?family=Syne:wght@400;500;600;700;800&family=Plus+Jakarta+Sans:ital,wght@0,300;0,400;0,500;0,600;1,400&display=swap');


/* ============================================================
   2. DESIGN TOKENS  (change here → updates every page)
   ============================================================ */
:root {

  /* --- Brand palette --- */
  --v1:   #6d28d9;   /* violet core          */
  --v2:   #7c3aed;   /* violet mid           */
  --v3:   #8b5cf6;   /* violet light         */
  --v4:   #a78bfa;   /* violet pale          */
  --v5:   #ede9fe;   /* violet tint          */
  --v6:   #f5f3ff;   /* violet whisper       */
  --ind:  #4f46e5;   /* indigo accent        */
  --fus:  #c026d3;   /* fuchsia pop          */
  --sky:  #06b6d4;   /* cyan spark           */

  /* --- Neutrals --- */
  --ink:  #0f0a1e;   /* near-black           */
  --ink2: #3d3354;   /* dark muted           */
  --ink3: #7c6f97;   /* mid muted            */
  --white: #ffffff;
  --surface: #faf9ff; /* page background     */
  --border: rgba(109, 40, 217, 0.12);
  --border-strong: rgba(109, 40, 217, 0.25);

  /* --- Semantic --- */
  --success: #10b981;
  --warning: #f59e0b;
  --error:   #ef4444;
  --wa-green: #25D366; /* WhatsApp           */

  /* --- Typography --- */
  --font-display: 'Syne', sans-serif;
  --font-body:    'Plus Jakarta Sans', sans-serif;

  /* --- Font sizes (fluid) --- */
  --text-xs:   11px;
  --text-sm:   13px;
  --text-base: 16px;
  --text-md:   18px;
  --text-lg:   20px;
  --text-xl:   clamp(22px, 3vw, 28px);
  --text-2xl:  clamp(28px, 4vw, 38px);
  --text-3xl:  clamp(36px, 5vw, 52px);
  --text-hero: clamp(40px, 7vw, 76px);

  /* --- Spacing scale --- */
  --sp-1:  4px;
  --sp-2:  8px;
  --sp-3:  12px;
  --sp-4:  16px;
  --sp-5:  20px;
  --sp-6:  24px;
  --sp-8:  32px;
  --sp-10: 40px;
  --sp-12: 48px;
  --sp-16: 64px;
  --sp-20: 80px;
  --sp-24: 96px;

  /* --- Border radius --- */
  --r-sm:  8px;
  --r-md:  12px;
  --r-lg:  16px;
  --r-xl:  20px;
  --r-2xl: 24px;
  --r-3xl: 28px;
  --r-pill: 100px;

  /* --- Shadows --- */
  --shadow-soft: 0 2px 24px rgba(109, 40, 217, 0.07);
  --shadow-card: 0 4px 32px rgba(109, 40, 217, 0.09);
  --shadow-lift: 0 20px 48px rgba(109, 40, 217, 0.12);
  --shadow-wa:   0 4px 20px rgba(37, 211, 102, 0.25);

  /* --- Transitions --- */
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --t-fast:   0.15s;
  --t-base:   0.25s;
  --t-slow:   0.4s;
  --t-reveal: 0.7s;

  /* --- Layout --- */
  --max-w:      1160px;
  --max-w-text: 680px;
  --section-y:  88px;
  --header-h:   72px;

  /* --- Gradient shorthands --- */
  --g-brand:    linear-gradient(135deg, var(--v1), var(--fus));
  --g-brand-h:  linear-gradient(135deg, var(--v1) 0%, var(--ind) 40%, var(--fus) 100%);
  --g-text:     linear-gradient(135deg, var(--v2) 0%, var(--fus) 50%, var(--sky) 100%);
  --g-card-1:   linear-gradient(135deg, #6d28d9, #7c3aed);
  --g-card-2:   linear-gradient(135deg, #c026d3, #7c3aed);
  --g-card-3:   linear-gradient(135deg, #4f46e5, #6d28d9);
  --g-card-4:   linear-gradient(135deg, #06b6d4, #6d28d9);
  --g-dark:     linear-gradient(135deg, #0f0a1e 0%, #1e0a2e 50%, #0f172a 100%);
}


/* ============================================================
   3. RESET & BASE
   ============================================================ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  background: var(--surface);
  color: var(--ink);
  font-size: var(--text-base);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img, video, svg {
  display: block;
  max-width: 100%;
}

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

ul, ol { list-style: none; }

button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
}

/* Focus visible — accessibility */
:focus-visible {
  outline: 2px solid var(--v2);
  outline-offset: 3px;
  border-radius: var(--r-sm);
}


/* ============================================================
   4. TYPOGRAPHY UTILITIES
   ============================================================ */

/* Display headings */
.font-display { font-family: var(--font-display); }

/* Gradient text — used on hero/section headings */
.text-gradient {
  background: var(--g-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.text-gradient-brand {
  background: var(--g-brand);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Section label (eyebrow) */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--v2);
  margin-bottom: var(--sp-3);
  font-family: var(--font-display);
}

.eyebrow::after {
  content: '';
  display: block;
  width: 28px;
  height: 2px;
  background: var(--g-brand);
  border-radius: 2px;
  flex-shrink: 0;
}

/* Section title */
.sec-title {
  font-family: var(--font-display);
  font-size: var(--text-3xl);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin-bottom: var(--sp-4);
}

/* Section subtitle */
.sec-sub {
  font-size: var(--text-base);
  color: var(--ink3);
  max-width: 500px;
  font-weight: 400;
  line-height: 1.8;
}

/* Dark variant eyebrow */
.eyebrow--dark {
  color: var(--v4);
}
.eyebrow--dark::after {
  background: linear-gradient(90deg, var(--v4), var(--fus));
}

/* Pill / badge */
.pill {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  background: linear-gradient(135deg, var(--v5), #fce7f3);
  border: 1px solid rgba(109, 40, 217, 0.2);
  color: var(--v1);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 6px 18px;
  border-radius: var(--r-pill);
  font-family: var(--font-display);
}

.pill::before {
  content: '';
  width: 6px;
  height: 6px;
  background: var(--v2);
  border-radius: 50%;
  flex-shrink: 0;
}


/* ============================================================
   5. LAYOUT UTILITIES
   ============================================================ */

.wrap {
  max-width: var(--max-w);
  margin: 0 auto;
  width: 100%;
}

.wrap--text {
  max-width: var(--max-w-text);
  margin: 0 auto;
}

.section {
  padding: var(--section-y) 28px;
}

.section--alt {
  background: var(--white);
}

.section--dark {
  background: var(--g-dark);
}

/* Two-column grid */
.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-16);
  align-items: center;
}

/* Auto-fit card grid */
.grid-auto {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

/* Flex helpers */
.flex-center {
  display: flex;
  align-items: center;
  justify-content: center;
}

.flex-between {
  display: flex;
  align-items: center;
  justify-content: space-between;
}


/* ============================================================
   6. HEADER (shared across all pages)
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 200;
  background: rgba(250, 249, 255, 0.88);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  height: var(--header-h);
}

.header-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 28px;
  height: 100%;
}

.brand-block {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.brand-logo {
  height: 48px;
  width: auto;
  object-fit: contain;
}

.brand-name {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  background: var(--g-brand);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.1;
}

.brand-sub {
  font-size: 10.5px;
  color: var(--ink3);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 500;
  line-height: 1;
  margin-top: 2px;
}

/* Desktop nav */
.site-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-link {
  font-size: 14px;
  font-weight: 500;
  color: var(--ink2);
  padding: 7px 15px;
  border-radius: var(--r-pill);
  transition: all var(--t-base) var(--ease);
  white-space: nowrap;
}

.nav-link:hover {
  color: var(--v1);
  background: var(--v5);
}

.nav-link.active,
.nav-link[aria-current="page"] {
  color: var(--v1);
  background: var(--v5);
}

/* Nav CTA button */
.nav-cta {
  background: var(--g-brand) !important;
  color: #fff !important;
  padding: 8px 20px !important;
  font-weight: 600 !important;
  border-radius: var(--r-pill) !important;
  box-shadow: 0 4px 16px rgba(109, 40, 217, 0.3);
  transition: all var(--t-base) var(--ease);
}

.nav-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(109, 40, 217, 0.4) !important;
}

/* Mobile hamburger (hidden by default) */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
  border: none;
  background: transparent;
  border-radius: var(--r-sm);
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--ink2);
  border-radius: 2px;
  transition: all var(--t-base) var(--ease);
}

/* Mobile nav open state */
.nav-toggle.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* Mobile nav drawer */
.mobile-nav {
  display: none;
  position: absolute;
  top: var(--header-h);
  left: 0;
  right: 0;
  background: rgba(250, 249, 255, 0.98);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  padding: var(--sp-4) var(--sp-6) var(--sp-6);
  flex-direction: column;
  gap: var(--sp-1);
  z-index: 199;
  animation: slideDown 0.25s var(--ease);
}

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

.mobile-nav .nav-link {
  font-size: 16px;
  padding: 12px 16px;
  border-radius: var(--r-md);
  width: 100%;
}

.mobile-nav .nav-cta {
  margin-top: var(--sp-2);
  text-align: center;
  display: block;
  padding: 13px 20px !important;
}

@keyframes slideDown {
  from { opacity: 0; transform: translateY(-8px); }
  to   { opacity: 1; transform: translateY(0); }
}


/* ============================================================
   7. FOOTER (shared across all pages)
   ============================================================ */
.site-footer {
  background: #0a0612;
  color: rgba(255, 255, 255, 0.6);
  padding: 60px 28px 28px;
}

.footer-wrap {
  max-width: var(--max-w);
  margin: 0 auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.2fr;
  gap: 48px;
  margin-bottom: 48px;
}

.footer-brand-logo {
  height: 44px;
  margin-bottom: var(--sp-4);
}

.footer-brand-name {
  display: block;
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 800;
  background: linear-gradient(135deg, var(--v3), var(--fus));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: var(--sp-2);
}

.footer-brand-desc {
  font-size: 13.5px;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.4);
}

.footer-col h4 {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.25);
  margin-bottom: var(--sp-4);
  font-family: var(--font-display);
}

.footer-col a,
.footer-col p {
  display: block;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.55);
  margin-bottom: var(--sp-2);
  transition: color var(--t-fast);
}

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

.footer-contact-row {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  font-size: 14px;
  color: rgba(255, 255, 255, 0.55);
  margin-bottom: var(--sp-2);
}

.footer-contact-row i {
  color: var(--v3);
  font-size: 13px;
  width: 16px;
  text-align: center;
  flex-shrink: 0;
}

.footer-contact-row a {
  color: rgba(255, 255, 255, 0.55);
  display: inline;
  margin-bottom: 0;
}

.footer-contact-row a:hover { color: var(--v4); }

.footer-divider {
  border: none;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  margin-bottom: var(--sp-6);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12.5px;
  color: rgba(255, 255, 255, 0.22);
  flex-wrap: wrap;
  gap: var(--sp-2);
}


/* ============================================================
   8. BUTTON SYSTEM
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-2);
  padding: 14px 26px;
  border-radius: var(--r-md);
  font-size: 15px;
  font-weight: 600;
  font-family: var(--font-body);
  transition: all var(--t-base) var(--ease);
  cursor: pointer;
  border: none;
  white-space: nowrap;
  text-decoration: none;
}

/* Primary — gradient */
.btn--primary {
  background: var(--g-brand);
  color: #fff;
  box-shadow: 0 4px 16px rgba(109, 40, 217, 0.3);
}
.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(109, 40, 217, 0.4);
}

/* White — on dark backgrounds */
.btn--white {
  background: #fff;
  color: var(--v1);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}
.btn--white:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 32px rgba(0, 0, 0, 0.2);
}

/* WhatsApp */
.btn--wa {
  background: var(--wa-green);
  color: #fff;
  box-shadow: var(--shadow-wa);
}
.btn--wa:hover {
  background: #1ebe5d;
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(37, 211, 102, 0.35);
}

/* Ghost — on dark backgrounds */
.btn--ghost {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  border: 1.5px solid rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(8px);
}
.btn--ghost:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-1px);
}

/* Outline — on light backgrounds */
.btn--outline {
  background: transparent;
  color: var(--v1);
  border: 1.5px solid var(--v1);
}
.btn--outline:hover {
  background: var(--v5);
}

/* Size variants */
.btn--sm  { padding: 9px 18px; font-size: 13px; }
.btn--lg  { padding: 16px 32px; font-size: 17px; }

/* Button group */
.btn-group {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
}

.btn-group--center {
  justify-content: center;
}


/* ============================================================
   9. CARD COMPONENTS
   ============================================================ */

/* Base card */
.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: 26px 20px;
  transition: all var(--t-base) var(--ease);
  position: relative;
  overflow: hidden;
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lift);
  border-color: rgba(109, 40, 217, 0.2);
}

/* Top-bar accent on hover */
.card--accent::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 3px;
  background: var(--g-brand);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--t-base) var(--ease);
}
.card--accent:hover::before { transform: scaleX(1); }

/* Gradient surface cards (serve/who-we-are) */
.card--grad {
  border-radius: var(--r-2xl);
  padding: 28px 24px;
  position: relative;
  overflow: hidden;
  border: none;
  color: #fff;
  cursor: default;
  transition: transform var(--t-base) var(--ease);
}
.card--grad:hover { transform: translateY(-4px); }

.card--grad::before {
  content: '';
  position: absolute;
  top: -30px; right: -30px;
  width: 120px; height: 120px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
}
.card--grad::after {
  content: '';
  position: absolute;
  bottom: -20px; left: 20px;
  width: 80px; height: 80px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
}

.card--grad-1 { background: var(--g-card-1); }
.card--grad-2 { background: var(--g-card-2); }
.card--grad-3 { background: var(--g-card-3); }
.card--grad-4 { background: var(--g-card-4); }

/* Card icon glyph */
.card-glyph {
  width: 50px;
  height: 50px;
  border-radius: var(--r-md);
  background: linear-gradient(135deg, var(--v5), #fce7f3);
  border: 1px solid rgba(109, 40, 217, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--sp-4);
  position: relative;
  z-index: 1;
  flex-shrink: 0;
}
.card-glyph i { color: var(--v2); font-size: 20px; }
.card-glyph--sm { width: 40px; height: 40px; border-radius: var(--r-sm); }
.card-glyph--sm i { font-size: 16px; }

/* Card with gradient icon */
.card-glyph--brand {
  background: var(--g-brand);
  border: none;
}
.card-glyph--brand i { color: #fff; }

/* Value / mission card row */
.value-row {
  display: flex;
  align-items: flex-start;
  gap: var(--sp-3);
  padding: var(--sp-4);
  border-radius: var(--r-md);
  border: 1px solid var(--border);
  background: var(--v6);
  transition: all var(--t-base) var(--ease);
}
.value-row:hover {
  background: var(--v5);
  border-color: var(--border-strong);
  transform: translateX(6px);
}
.value-row h4 { font-size: 15px; font-weight: 600; color: var(--ink); margin-bottom: 3px; }
.value-row p  { font-size: 13px; color: var(--ink3); line-height: 1.5; }

/* Safety stat card (on dark bg) */
.safety-stat {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--r-lg);
  padding: 18px 20px;
  display: flex;
  align-items: center;
  gap: var(--sp-4);
  backdrop-filter: blur(12px);
  transition: all var(--t-base) var(--ease);
}
.safety-stat:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(139, 92, 246, 0.4);
  transform: translateX(4px);
}
.safety-stat-icon {
  width: 44px; height: 44px;
  border-radius: var(--r-sm);
  background: linear-gradient(135deg, rgba(109,40,217,0.5), rgba(192,38,211,0.4));
  border: 1px solid rgba(139, 92, 246, 0.3);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.safety-stat-icon i { color: var(--v4); font-size: 18px; }
.safety-stat strong { display: block; color: #fff; font-size: 17px; font-weight: 600; }
.safety-stat span   { font-size: 12.5px; color: rgba(255,255,255,0.45); }

/* Metro/location card */
.metro-item {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  padding: 14px 16px;
  border-radius: var(--r-md);
  border: 1px solid var(--border);
  background: var(--white);
  transition: all var(--t-base) var(--ease);
}
.metro-item:hover {
  border-color: var(--border-strong);
  background: var(--v6);
  transform: translateX(4px);
}
.metro-badge {
  width: 36px; height: 36px;
  border-radius: var(--r-sm);
  background: var(--g-brand);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.metro-badge i { color: #fff; font-size: 14px; }
.metro-item h4 { font-size: 15px; font-weight: 600; color: var(--ink); margin-bottom: 2px; }
.metro-item p  { font-size: 12px; color: var(--ink3); }

/* Nearby tag pill */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--v6);
  border: 1px solid rgba(109, 40, 217, 0.15);
  color: var(--ink2);
  font-size: 13px;
  font-weight: 500;
  padding: 6px 14px;
  border-radius: var(--r-pill);
  transition: all var(--t-fast);
}
.tag i { color: var(--v2); font-size: 11px; }
.tag:hover { background: var(--v5); border-color: var(--border-strong); }
.tag-cloud { display: flex; flex-wrap: wrap; gap: 8px; }


/* ============================================================
   10. HERO STATS BAR
   ============================================================ */
.hero-stats {
  display: inline-grid;
  grid-template-columns: repeat(4, 1fr);
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  overflow: hidden;
  box-shadow: 0 8px 40px rgba(109, 40, 217, 0.1);
}

.hstat {
  padding: 20px 28px;
  border-right: 1px solid var(--border);
  text-align: center;
}
.hstat:last-child { border-right: none; }

.hstat-val {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 800;
  background: var(--g-brand);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.1;
  display: block;
}

.hstat-lbl {
  font-size: 11.5px;
  color: var(--ink3);
  font-weight: 500;
  display: block;
  margin-top: 3px;
  letter-spacing: 0.03em;
}


/* ============================================================
   11. BACKGROUND DECORATIONS (blobs, rings, dots)
   ============================================================ */
.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
}
.blob--v1 { background: radial-gradient(circle, rgba(139, 92, 246, 0.17) 0%, transparent 70%); }
.blob--v2 { background: radial-gradient(circle, rgba(192, 38, 211, 0.12) 0%, transparent 70%); }
.blob--sky { background: radial-gradient(circle, rgba(6, 182, 212, 0.09) 0%, transparent 70%); }
.blob--dark-v { background: radial-gradient(circle, rgba(139, 92, 246, 0.2) 0%, transparent 65%); }
.blob--dark-f { background: radial-gradient(circle, rgba(192, 38, 211, 0.12) 0%, transparent 65%); }

.geo-ring {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}
.geo-ring--v { border: 1.5px solid rgba(109, 40, 217, 0.14); animation: kh-spin 40s linear infinite; }
.geo-ring--f { border: 1px solid rgba(192, 38, 211, 0.11); animation: kh-spin 28s linear infinite reverse; }

@keyframes kh-spin { to { transform: rotate(360deg); } }

.dot-grid {
  position: absolute;
  pointer-events: none;
  display: grid;
  gap: 10px;
}
.dot-grid--5 { grid-template-columns: repeat(5, 8px); }
.dot-grid span {
  width: 4px; height: 4px;
  background: rgba(109, 40, 217, 0.17);
  border-radius: 50%;
  display: block;
}


/* ============================================================
   12. GRADIENT VISUAL BLOCK (replaces photos)
   ============================================================ */
.gradient-card {
  width: 100%;
  aspect-ratio: 3/4;
  border-radius: var(--r-2xl);
  background: var(--g-brand-h);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.gradient-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23fff' fill-opacity='0.06'%3E%3Ccircle cx='30' cy='30' r='2'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.gradient-card__inner {
  position: relative;
  z-index: 1;
  text-align: center;
  color: #fff;
  padding: 32px;
}

.gradient-card__icon {
  width: 80px; height: 80px;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: var(--r-2xl);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto var(--sp-5);
  backdrop-filter: blur(10px);
}
.gradient-card__icon i { font-size: 36px; color: #fff; }
.gradient-card__title {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 800;
  color: #fff;
  margin-bottom: 8px;
}
.gradient-card__desc { font-size: 14px; color: rgba(255,255,255,0.75); line-height: 1.7; }

/* Float badges on gradient cards */
.float-badge {
  position: absolute;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 14px 18px;
  box-shadow: 0 12px 40px rgba(109, 40, 217, 0.18);
  display: flex;
  align-items: center;
  gap: 10px;
}
.float-badge--br { bottom: -18px; right: -18px; min-width: 160px; }
.float-badge--tl { top: 28px; left: -22px; }
.float-badge--tl-dark {
  background: var(--g-brand);
  border: none;
  box-shadow: 0 8px 32px rgba(109, 40, 217, 0.35);
  text-align: center;
  padding: 12px 16px;
}
.float-badge__icon {
  width: 40px; height: 40px;
  background: var(--g-brand);
  border-radius: var(--r-sm);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.float-badge__icon i { color: #fff; font-size: 16px; }
.float-badge strong { display: block; font-size: 15px; font-weight: 700; color: var(--ink); }
.float-badge span   { font-size: 11px; color: var(--ink3); }
.float-badge--tl-dark strong {
  font-family: var(--font-display);
  font-size: 22px; font-weight: 800; color: #fff; line-height: 1;
}
.float-badge--tl-dark span { color: rgba(255,255,255,0.75); }


/* ============================================================
   13. CTA BAND
   ============================================================ */
.cta-band {
  position: relative;
  border-radius: var(--r-3xl);
  overflow: hidden;
  background: var(--g-brand-h);
  padding: 64px 48px;
  text-align: center;
}

.cta-band::before {
  content: '';
  position: absolute;
  top: -40px; left: -40px;
  width: 200px; height: 200px;
  background: rgba(255, 255, 255, 0.07);
  border-radius: 50%;
}
.cta-band::after {
  content: '';
  position: absolute;
  bottom: -60px; right: -20px;
  width: 280px; height: 280px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 50%;
}

.cta-band__title {
  font-family: var(--font-display);
  font-size: var(--text-3xl);
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.02em;
  margin-bottom: var(--sp-3);
  position: relative;
  z-index: 1;
}

.cta-band__sub {
  color: rgba(255, 255, 255, 0.72);
  font-size: var(--text-md);
  margin-bottom: var(--sp-8);
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
  position: relative;
  z-index: 1;
}

.cta-band .btn-group {
  position: relative;
  z-index: 1;
}


/* ============================================================
   14. DARK SECTION WRAP (safety, features)
   ============================================================ */
.dark-wrap {
  position: relative;
  border-radius: var(--r-3xl);
  overflow: hidden;
  background: var(--g-dark);
  padding: 64px 56px;
}

.dark-wrap::before {
  content: '';
  position: absolute;
  top: -100px; right: -80px;
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(139,92,246,0.2) 0%, transparent 65%);
  pointer-events: none;
}
.dark-wrap::after {
  content: '';
  position: absolute;
  bottom: -80px; left: 0;
  width: 300px; height: 300px;
  background: radial-gradient(circle, rgba(192,38,211,0.12) 0%, transparent 65%);
  pointer-events: none;
}

.dark-title {
  font-family: var(--font-display);
  font-size: var(--text-3xl);
  font-weight: 800;
  color: #fff;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: var(--sp-4);
}
.dark-sub { color: rgba(255,255,255,0.55); font-size: var(--text-base); line-height: 1.8; margin-bottom: var(--sp-7); }

.sc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.sc {
  display: flex; align-items: center; gap: 10px;
  color: rgba(255,255,255,0.8); font-size: 14px; font-weight: 500;
}
.sc-dot {
  width: 20px; height: 20px; border-radius: 50%;
  background: var(--g-brand);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.sc-dot i { font-size: 9px; color: #fff; }


/* ============================================================
   15. FORM COMPONENTS
   ============================================================ */
.form-group {
  display: flex;
  flex-direction: column;
  gap: var(--sp-1);
  margin-bottom: var(--sp-5);
}

.form-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink2);
  letter-spacing: 0.02em;
}

.form-label span { color: var(--fus); }  /* required asterisk */

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 13px 16px;
  border: 1.5px solid var(--border);
  border-radius: var(--r-md);
  background: var(--white);
  color: var(--ink);
  font-size: 15px;
  font-family: var(--font-body);
  transition: border-color var(--t-base) var(--ease), box-shadow var(--t-base) var(--ease);
  appearance: none;
}

.form-input::placeholder,
.form-textarea::placeholder { color: var(--ink3); }

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--v2);
  box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.1);
}

.form-textarea { resize: vertical; min-height: 120px; line-height: 1.6; }

.form-select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%237c6f97' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 40px;
  cursor: pointer;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-5);
}

.form-error {
  font-size: 12px;
  color: var(--error);
  margin-top: 4px;
}

.form-hint {
  font-size: 12px;
  color: var(--ink3);
  margin-top: 4px;
}


/* ============================================================
   16. BREADCRUMB
   ============================================================ */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--ink3);
  flex-wrap: wrap;
}
.breadcrumb a { color: var(--v2); }
.breadcrumb a:hover { color: var(--v1); }
.breadcrumb span { opacity: 0.5; }


/* ============================================================
   17. SCROLL-REVEAL ANIMATION
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity var(--t-reveal) var(--ease), transform var(--t-reveal) var(--ease);
}
.reveal.visible  { opacity: 1; transform: translateY(0); }
.reveal.d1 { transition-delay: 0.1s; }
.reveal.d2 { transition-delay: 0.2s; }
.reveal.d3 { transition-delay: 0.3s; }
.reveal.d4 { transition-delay: 0.4s; }
.reveal.d5 { transition-delay: 0.5s; }

/* Page-load animations */
@keyframes kh-fadeUp   { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: translateY(0); } }
@keyframes kh-fadeDown { from { opacity: 0; transform: translateY(-16px); } to { opacity: 1; transform: translateY(0); } }

.anim-fadeup   { animation: kh-fadeUp   0.7s var(--ease) both; }
.anim-fadedown { animation: kh-fadeDown 0.6s var(--ease) both; }
.anim-d1 { animation-delay: 0.1s; }
.anim-d2 { animation-delay: 0.2s; }
.anim-d3 { animation-delay: 0.3s; }


/* ============================================================
   18. UTILITY CLASSES
   ============================================================ */
.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); border: 0;
}

.text-center { text-align: center; }
.text-left   { text-align: left; }

.mt-0 { margin-top: 0; }
.mt-4 { margin-top: var(--sp-4); }
.mt-6 { margin-top: var(--sp-6); }
.mt-8 { margin-top: var(--sp-8); }
.mt-10 { margin-top: var(--sp-10); }
.mt-12 { margin-top: var(--sp-12); }

.mb-4 { margin-bottom: var(--sp-4); }
.mb-6 { margin-bottom: var(--sp-6); }
.mb-8 { margin-bottom: var(--sp-8); }

.gap-2 { gap: var(--sp-2); }
.gap-4 { gap: var(--sp-4); }
.gap-6 { gap: var(--sp-6); }

.w-full { width: 100%; }
.relative { position: relative; }
.overflow-hidden { overflow: hidden; }

/* WhatsApp floating button */
.wa-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 999;
  width: 56px;
  height: 56px;
  background: var(--wa-green);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
  transition: all var(--t-base) var(--ease);
  animation: kh-fadeUp 0.5s 1s var(--ease) both;
}
.wa-float:hover { transform: scale(1.1); box-shadow: 0 8px 32px rgba(37, 211, 102, 0.5); }
.wa-float i { color: #fff; font-size: 26px; }


/* ============================================================
   19. RESPONSIVE BREAKPOINTS
   ============================================================ */

/* Tablet — ≤ 960px */
@media (max-width: 960px) {
  :root { --section-y: 64px; }

  .grid-2   { grid-template-columns: 1fr; gap: var(--sp-10); }
  .grid-4   { grid-template-columns: repeat(2, 1fr); }
  .grid-3   { grid-template-columns: repeat(2, 1fr); }
  .dark-wrap { padding: 40px 28px; }
  .cta-band  { padding: 48px 32px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }

  .float-badge--br,
  .float-badge--tl,
  .float-badge--tl-dark { display: none; }

  .nav-toggle { display: flex; }
  .site-nav   { display: none; }

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

/* Mobile — ≤ 600px */
@media (max-width: 600px) {
  :root { --section-y: 48px; }

  .header-inner { padding: 0 16px; }
  .section { padding: var(--section-y) 16px; }
  .dark-wrap { padding: 32px 20px; border-radius: var(--r-xl); }
  .cta-band  { padding: 36px 20px; border-radius: var(--r-xl); }

  .hero-stats { grid-template-columns: repeat(2, 1fr); }
  .hstat:nth-child(2) { border-right: none; }
  .hstat:nth-child(3),
  .hstat:nth-child(4) { border-top: 1px solid var(--border); }

  .grid-4 { grid-template-columns: 1fr 1fr; }
  .grid-3 { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; }

  .btn-group { flex-direction: column; align-items: stretch; }
  .btn-group .btn { width: 100%; justify-content: center; }
  .btn-group--center .btn { max-width: 360px; margin: 0 auto; }

  .wa-float { bottom: 16px; right: 16px; width: 50px; height: 50px; }
  .wa-float i { font-size: 22px; }
}

/* Large screens — ≥ 1280px */
@media (min-width: 1280px) {
  :root { --section-y: 100px; }
}


/* ============================================================
   20. SCROLL REVEAL — handled by global.js (see below)
   21. MOBILE NAV — handled by global.js
   22. ALL JS BEHAVIOURS — global.js

   EVERY PAGE must include these two lines in <head>:

   <!-- Favicon (auto-injected by global.js — no <link> tags needed) -->

   And these at end of <body>, BEFORE </body>:

   <!-- Analytics config (optional — set your IDs here) -->
   <script>
     window.KH_CONFIG = {
       GA4_ID:     '',  // e.g. 'G-XXXXXXXXXX'
       CLARITY_ID: ''   // e.g. 'xxxxxxxxxx'
     };
   </script>

   <!-- Single global script — handles EVERYTHING -->
   <!-- Root pages:          <script src="global.js" defer></script> -->
   <!-- /cities/ and /blog/: <script src="../global.js" defer></script> -->

   COPYRIGHT YEAR — use this pattern in every footer:
   <span>© <span id="copy-year">2025</span> Kuriosity Homes. All rights reserved.</span>

   global.js auto-replaces the inner span text with current year.
   The fallback "2025" shows if JS is disabled.
   ============================================================ */
