  /* ========================================
     Luis Sosa Guasch — Sacramento Real Estate
     Custom Styles
     ======================================== */

  /* Base */
  *, *::before, *::after {
    box-sizing: border-box;
  }

  html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
  }

  body {
    font-family: 'Inter', sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
  }

  h1, h2, h3, h4 {
    font-family: 'Playfair Display', serif;
  }

  /* Selection */
  ::selection {
    background: #c8a44e;
    color: #0a1628;
  }

  /* Scrollbar */
  ::-webkit-scrollbar {
    width: 8px;
  }
  ::-webkit-scrollbar-track {
    background: #0a1628;
  }
  ::-webkit-scrollbar-thumb {
    background: #c8a44e;
    border-radius: 4px;
  }

  /* Navbar scroll state */
  #navbar.scrolled {
    background: rgba(10, 22, 40, 0.95);
    backdrop-blur: 20px;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
  }

  /* Mobile menu animation */
  #mobile-menu.open .menu-line:nth-child(1) {
    transform: rotate(45deg) translate(4px, 4px);
  }
  #mobile-menu.open .menu-line:nth-child(2) {
    opacity: 0;
  }
  #mobile-menu.open .menu-line:nth-child(3) {
    transform: rotate(-45deg) translate(4px, -4px);
    width: 1.25rem;
  }

  /* Scroll reveal base (progressive enhancement) */
  .reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s ease, transform 0.7s ease;
  }

  @media (prefers-reduced-motion: no-preference) {
    .reveal.revealed {
      opacity: 1;
      transform: translateY(0);
    }
  }

  /* Service cards */
  .service-card {
    position: relative;
    overflow: hidden;
  }

  .service-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #c8a44e, #d4b35e);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
  }

  .service-card:hover::after {
    transform: scaleX(1);
  }

  /* Neighborhood cards */
  .neighborhood-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 16px;
    border: 2px solid transparent;
    transition: border-color 0.3s ease;
    z-index: 1;
    pointer-events: none;
  }

  .neighborhood-card:hover::before {
    border-color: rgba(200, 164, 78, 0.4);
  }

  /* Floating animation for hero card */
  @keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
  }

  .floating-card {
    animation: float 4s ease-in-out infinite;
  }

  /* Gold gradient text */
  .text-gold-gradient {
    background: linear-gradient(135deg, #c8a44e 0%, #e0c470 50%, #c8a44e 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
  }

  /* Geometric accent shapes */
  .geo-diamond {
    position: absolute;
    width: 20px;
    height: 20px;
    background: #c8a44e;
    transform: rotate(45deg);
    opacity: 0.15;
  }

  /* Form select arrow */
  select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23c8a44e' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    padding-right: 2.5rem;
  }

  /* Button ripple effect */
  .btn-ripple {
    position: relative;
    overflow: hidden;
  }

  .btn-ripple::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at var(--x, 50%) var(--y, 50%), rgba(255,255,255,0.2) 0%, transparent 60%);
    opacity: 0;
    transition: opacity 0.3s;
  }

  .btn-ripple:hover::after {
    opacity: 1;
  }

  /* Counter animation */
  .counter {
    display: inline-block;
  }

  /* Smooth image loading */
  img {
    loading: lazy;
  }

  /* Print styles */
  @media print {
    nav, #contact-form, #form-success {
      display: none;
    }
    body {
      color: #000;
      background: #fff;
    }
  }
