/* ═══════════════════════════════════════════════
   BASE.CSS — Resets, Typography, Global Elements
   OkaneGroup Theme v1.0.0
   ═══════════════════════════════════════════════ */

/* ── Reset ── */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  accent-color: var(--ok-dark);
}

::selection {
  background: var(--ok-cream);
  color: var(--ok-dark);
}

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

body {
  font-family: var(--ok-font-primary);
  color: var(--ok-text-dark);
  background: var(--ok-white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

body.loading {
  overflow: hidden;
}

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

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

button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
}

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

ul, ol {
  list-style: none;
}

/* ── Typography scale ── */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--ok-font-primary);
  font-weight: 600;
  line-height: 1.2;
  color: var(--ok-text-dark);
}

/* ── OKANE display text (hero, footer) ── */
.ok-display-text {
  font-family: var(--ok-font-display);
  font-weight: 600;
  text-transform: uppercase;
  line-height: 0.85;
  letter-spacing: -0.04em;
  user-select: none;
  background: linear-gradient(
    to bottom,
    rgba(225, 216, 203, 1) 30%,
    rgba(225, 216, 203, 0.3) 100%
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: transparent;
}

/* ═══ THEME PROTECTION — override WP/Elementor theme bleeding ═══ */
body a,
body a:link,
body a:visited {
  color: inherit !important;
  text-decoration: none !important;
}

body .property-card:hover,
body .property-card:focus {
  transform: translateY(-3px) !important;
  box-shadow: none !important;
  outline: none !important;
}

body .nav-links a,
body .nav-links a:link,
body .nav-links a:visited { color: var(--ok-cream-60) !important; }
body .nav-links a:hover,
body .nav-links a:focus { color: var(--ok-cream) !important; }
body .nav-links a.active { color: var(--ok-cream) !important; }

body .hero-breadcrumb a,
body .hero-breadcrumb a:link,
body .hero-breadcrumb a:visited { color: var(--ok-cream-60) !important; }
body .hero-breadcrumb a:hover { color: var(--ok-cream) !important; }
body .hero-breadcrumb span { color: var(--ok-cream-60) !important; }
body .hero-breadcrumb .sep { color: var(--ok-cream-40) !important; }

body .nav-cta:hover { background: var(--ok-btn-light) !important; color: var(--ok-dark) !important; }
body .nav-lang:hover { border-color: var(--ok-cream-40) !important; color: var(--ok-cream) !important; }
body .nav-search:hover { color: var(--ok-cream) !important; }

body .filter-chip:hover {
  background: var(--ok-dark) !important;
  color: var(--ok-cream) !important;
  border-color: var(--ok-dark) !important;
}

body .filter-search:focus { border-color: var(--ok-dark) !important; }

body .card-badge { background: var(--ok-dark) !important; color: var(--ok-cream) !important; }
body .card-badge.off-market { background: var(--ok-cream) !important; color: var(--ok-dark) !important; }

/* Boton FrancoGlobal hover protection */
body .btn-primary:hover,
body #boton-francoglobal:hover,
body .boton-francoglobal:hover { background: var(--ok-btn-light) !important; }
body .boton-francoglobal.btn-inverted:hover { background: var(--ok-dark-btn) !important; }
body .boton-francoglobal:hover .btn-text { color: var(--ok-btn-hover-text) !important; }
body .boton-francoglobal.btn-inverted:hover .btn-text { color: var(--ok-gray-text) !important; }
body .btn-outline:hover { border-color: var(--ok-cream) !important; color: var(--ok-cream) !important; }

body .faq-question:hover { color: var(--ok-gray-text) !important; }

body .cp-field input:focus,
body .cp-field select:focus,
body .cp-field textarea:focus { border-color: var(--ok-cream-30) !important; outline: none !important; }
