/* ═══════════════════════════════════════════════
   GLOBAL STYLES — 7Horses Realty
   ═══════════════════════════════════════════════ */

/* ── Font Faces ── */
@font-face {
  font-family: 'Playfair';
  src: url('../font/Playfair.woff2') format('woff2');
  font-display: swap;
}
@font-face {
  font-family: 'EngGothic';
  src: url('../font/EngraversGothicBT.woff2') format('woff2');
  font-display: swap;
}
@font-face {
  font-family: 'playful';
  src: url('../font/futura-medium-condensed..woff2') format('woff2');
  font-display: swap;
}
@font-face {
  font-family: 'Playful';
  src: url('../font/Futura-Bk-BT-Book.woff2') format('woff2');
  font-display: swap;
}
@font-face {
  font-family: 'FuturaBk';
  src: url('../font/Futura-Bk-BT-Book.woff2') format('woff2');
  font-display: swap;
}
@font-face {
  font-family: 'FuturaBkItalic';
  src: url('../font/Futura-Md-BT-Bold-Italic.woff2') format('woff2');
  font-display: swap;
}
@font-face {
  font-family: 'FuturaBkBt';
  src: url('../font/Futura-Bk-BT-Book.woff2') format('woff2');
  font-display: swap;
}
@font-face {
  font-family: 'FuturaBkBtBold';
  src: url('../font/Futura-Md-BT-Bold.woff2') format('woff2');
  font-display: swap;
}

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;0,600;1,400;1,600&family=Raleway:wght@300;400;500;600&family=Montserrat:wght@300;400;500;600;700&display=swap');

/* ── Theme Variables ── */
:root {
  --bg-primary: #ffffff;
  --bg-secondary: #fdf8ee;
  --bg-tertiary: #f5edd8;
  --bg-card: rgba(255,255,255,0.7);
  --bg-dark-section: #523232;
  --bg-hero-overlay: rgba(15,8,5,0.55);
  --text-primary: #523232;
  --text-secondary: rgba(82,50,50,0.7);
  --text-muted: rgba(82,50,50,0.5);
  --gold: #C9A84C;
  --gold-light: #e2c97e;
  --gold-dark: #a07c2a;
  --border-light: rgba(82,50,50,0.08);
  --border-gold: rgba(201,168,76,0.15);
  --footer-bg: #e8dfd5;
  --navbar-bg: #f5f0e6;
  --input-bg: #faf8f6;
  --input-border: rgba(82,50,50,0.12);
  --shadow: rgba(82,50,50,0.1);
}

[data-theme="dark"] {
  --bg-primary: #121212;
  --bg-secondary: #1a1a1e;
  --bg-tertiary: #222228;
  --bg-card: rgba(255,255,255,0.05);
  --bg-dark-section: #1e1218;
  --bg-hero-overlay: rgba(0,0,0,0.6);
  --text-primary: #e8e0d8;
  --text-secondary: rgba(232,224,216,0.65);
  --text-muted: rgba(232,224,216,0.4);
  --border-light: rgba(255,255,255,0.06);
  --border-gold: rgba(201,168,76,0.2);
  --footer-bg: #161618;
  --navbar-bg: #141416;
  --input-bg: rgba(255,255,255,0.06);
  --input-border: rgba(255,255,255,0.1);
  --shadow: rgba(0,0,0,0.3);
}

html.theme-transitioning,
html.theme-transitioning *,
html.theme-transitioning *::before,
html.theme-transitioning *::after {
  transition: background-color 0.4s ease, color 0.4s ease, border-color 0.4s ease, box-shadow 0.3s ease !important;
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  margin: 0;
  padding: 0;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  overflow-x: hidden;
  font-family: 'Playful', serif;
}

button {
  font-family: inherit;
}

a {
  text-decoration: none;
}

ul, ol {
  list-style: none;
}

img {
  max-width: 100%;
  height: auto;
}

/* ── WhatsApp Button ── */
.whatsapp-btn {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 1000;
  transition: transform 0.2s ease;
  animation: vibrate 0.4s ease-in-out 4;
}

.whatsapp-btn img {
  display: block;
  border-radius: 50%;
}

.whatsapp-btn:hover {
  transform: scale(1.1);
  animation: none;
}

@keyframes vibrate {
  0% { transform: translateX(0); }
  20% { transform: translateX(-2px); }
  40% { transform: translateX(2px); }
  60% { transform: translateX(-2px); }
  80% { transform: translateX(2px); }
  100% { transform: translateX(0); }
}

@media (max-width: 768px) {
  .whatsapp-btn {
    bottom: 15px;
    right: 5px;
  }
}

/* ── Custom Cursor ── */
.re-dot {
  position: fixed;
  z-index: 99999;
  pointer-events: none;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #523232;
  transform: translate(-50%, -50%);
  transition: width 0.1s, height 0.1s, background 0.1s;
}
.re-dot.clicked {
  width: 12px;
  height: 12px;
  background: #fff;
}

/* ── Contact Popup ── */
.popup-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(82, 50, 50, 0.5);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  font-family: 'Playful', serif;
}
.popup-overlay.open {
  display: flex;
}
.popup-box {
  background: #fff;
  width: 90%;
  max-width: 480px;
  padding: 40px;
  position: relative;
  box-shadow: 0 20px 60px rgba(0,0,0,0.2);
}
.popup-close {
  position: absolute;
  top: 16px; right: 16px;
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: #523232;
  line-height: 1;
}
.popup-heading {
  text-align: center;
  margin-bottom: 32px;
}
.popup-heading h2 {
  color: #312113;
  font-size: 28px;
  font-family: 'EngGothic', serif;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 12px;
}
.popup-heading p {
  color: #523232;
  font-size: 14px;
  font-family: 'Playful', serif;
}
.popup-form .form-field {
  margin-bottom: 20px;
}
.popup-form label {
  display: block;
  color: #312113;
  font-size: 12px;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 8px;
  font-family: 'EngGothic', serif;
}
.popup-form input,
.popup-form textarea {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid rgba(194,155,87,0.3);
  background: rgba(255,255,255,0.8);
  font-size: 14px;
  font-family: 'Playful', serif;
  color: #523232;
  outline: none;
  transition: border-color 0.3s ease;
}
.popup-form input:focus,
.popup-form textarea:focus {
  border-color: #C29B57;
}
.popup-form textarea {
  resize: vertical;
}
.popup-submit {
  width: 100%;
  padding: 16px;
  background: #C29B57;
  border: none;
  color: #fff;
  font-size: 13px;
  letter-spacing: 3px;
  text-transform: uppercase;
  font-family: 'EngGothic', serif;
  cursor: pointer;
  transition: background 0.3s ease;
}
.popup-submit:hover {
  background: #312113;
}
.popup-success {
  text-align: center;
  padding: 40px 0;
  display: none;
}
.popup-success .check {
  font-size: 48px;
  color: #C29B57;
  margin-bottom: 16px;
}
.popup-success p {
  color: #523232;
  font-size: 18px;
  font-family: 'Playful', serif;
}

/* Buy page critical styles */
.buy-hero {
  min-height: 89vh;
}
.buy-hero-eyebrow {
  color: #C9A84C !important;
}
.buy-hero-title {
  color: #ffffff !important;
}
.buy-hero-title span {
  color: #C9A84C !important;
}
.buy-hero-bg {
  position: absolute;
  inset: 0;
  background: #1a0e0e;
}
