/* =============================================
   Sonya Green — Realtor with Keller Williams
   Classic & Elegant · Terracotta + Sand
   ============================================= */

/* ---------- Reset & Base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img, svg { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; }

/* ---------- Hero Gradient ---------- */
.hero-gradient {
  background: linear-gradient(
    135deg,
    #6e211a 0%,
    #a82e1f 20%,
    #d4623a 40%,
    #e07a4a 55%,
    #c4956a 72%,
    #b8860b 88%,
    #8b6914 100%
  );
  background-size: 300% 300%;
  animation: heroGradientShift 18s ease infinite;
}

@keyframes heroGradientShift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

/* ---------- Hero Pattern ---------- */
.hero-pattern {
  background-image: url("data:image/svg+xml,%3Csvg width='80' height='80' viewBox='0 0 80 80' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.5'%3E%3Cpath d='M50 50c0-5.523 4.477-10 10-10s10 4.477 10 10-4.477 10-10 10c0 5.523-4.477 10-10 10s-10-4.477-10-10 4.477-10 10-10zM10 10c0-5.523 4.477-10 10-10s10 4.477 10 10-4.477 10-10 10c0 5.523-4.477 10-10 10S0 25.523 0 20s4.477-10 10-10zm10 8c4.418 0 8-3.582 8-8s-3.582-8-8-8-8 3.582-8 8 3.582 8 8 8zm40 40c4.418 0 8-3.582 8-8s-3.582-8-8-8-8 3.582-8 8 3.582 8 8 8zM30 10c0-5.523 4.477-10 10-10s10 4.477 10 10-4.477 10-10 10-10-4.477-10-10zm20 40c0-5.523 4.477-10 10-10s10 4.477 10 10-4.477 10-10 10-10-4.477-10-10z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

/* ---------- Floating Orbs ---------- */
.hero-orb { pointer-events: none; }
.hero-orb--1 {
  background: radial-gradient(circle, #f4e0b0 0%, transparent 70%);
  animation: orbFloat1 12s ease-in-out infinite;
}
.hero-orb--2 {
  background: radial-gradient(circle, #f9d0c2 0%, transparent 70%);
  animation: orbFloat2 15s ease-in-out infinite;
}
.hero-orb--3 {
  background: radial-gradient(circle, #ebc97e 0%, transparent 70%);
  animation: orbFloat3 10s ease-in-out infinite;
}

@keyframes orbFloat1 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(30px, -40px) scale(1.1); }
}
@keyframes orbFloat2 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-25px, 35px) scale(1.05); }
}
@keyframes orbFloat3 {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(20px, 20px); }
}

/* ---------- Navbar ---------- */
#navbar {
  background: transparent;
  transition: background 0.35s ease, box-shadow 0.35s ease, backdrop-filter 0.35s ease;
}
#navbar.scrolled {
  background: rgba(254, 253, 249, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 1px 0 rgba(110, 33, 26, 0.06), 0 4px 24px rgba(110, 33, 26, 0.06);
}
.nav-link { position: relative; }
.nav-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1.5px;
  background: #e05533;
  transition: width 0.25s ease;
}
.nav-link:hover::after { width: 100%; }

/* ---------- Mobile Menu ---------- */
.mobile-nav-link {
  border-left: 2px solid transparent;
  transition: border-color 0.2s ease, background 0.2s ease;
}
.mobile-nav-link:hover {
  border-left-color: #e05533;
  background: #fdf9ee;
}
#mobile-menu {
  animation: slideDown 0.25s ease;
}
@keyframes slideDown {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ---------- Scroll Reveal (progressive enhancement) ---------- */
@media (prefers-reduced-motion: no-preference) {
  .reveal-up {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s ease, transform 0.6s ease;
  }
  .reveal-left {
    opacity: 0;
    transform: translateX(-24px);
    transition: opacity 0.6s ease, transform 0.6s ease;
  }
  .reveal-right {
    opacity: 0;
    transform: translateX(24px);
    transition: opacity 0.6s ease, transform 0.6s ease;
  }
  .reveal-up.is-visible,
  .reveal-left.is-visible,
  .reveal-right.is-visible {
    opacity: 1;
    transform: translate(0, 0);
  }
}
/* Ensure content is visible even without JS */
.reveal-up, .reveal-left, .reveal-right { opacity: 1; transform: none; }

/* ---------- Selection ---------- */
::selection {
  background: #f9d0c2;
  color: #6e211a;
}

/* ---------- Custom Scrollbar ---------- */
@media (min-width: 1024px) {
  ::-webkit-scrollbar { width: 8px; }
  ::-webkit-scrollbar-track { background: #fdf9ee; }
  ::-webkit-scrollbar-thumb {
    background: #ddbaab;
    border-radius: 999px;
  }
  ::-webkit-scrollbar-thumb:hover { background: #c89580; }
}

/* ---------- Focus visible ---------- */
:focus-visible {
  outline: 2px solid #e05533;
  outline-offset: 2px;
}

/* ---------- Subtle divider lines ---------- */
section::before {
  content: '';
  display: block;
  width: 48px;
  height: 2px;
  background: linear-gradient(90deg, #e05533, #f4ad94);
  border-radius: 999px;
  margin-bottom: 1.5rem;
}
