/* Donald Enos | Compass - Pacific Northwest Luxury Real Estate */

/* === FONTS === */
@import url('https://fonts.googleapis.com/css2?family=Italiana&family=Inter:wght@300;400;500;600;700&display=swap');

/* === CSS VARIABLES === */
:root {
  --navy: #0a1628;
  --gold: #b5985a;
  --cream: #f8f6f2;
  --warm: #f2ede6;
  --white: #ffffff;
  --font-heading: 'Italiana', serif;
  --font-body: 'Inter', sans-serif;
}

/* === RESET & BASE === */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  color: var(--navy);
  background-color: var(--cream);
  overflow-x: hidden;
}

/* === TYPOGRAPHY === */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 400;
  line-height: 1.2;
  color: var(--navy);
}

h1 { font-size: 4rem; }
h2 { font-size: 3rem; }
h3 { font-size: 2.25rem; }
h4 { font-size: 1.75rem; }
h5 { font-size: 1.5rem; }
h6 { font-size: 1.25rem; }

p {
  margin-bottom: 1.5rem;
}

a {
  color: var(--gold);
  text-decoration: none;
  transition: all 0.3s ease;
}

a:hover {
  color: var(--navy);
}

/* === PRELOADER === */
#preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--navy);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}

#preloader.hidden {
  opacity: 0;
  visibility: hidden;
}

.loader {
  border: 4px solid var(--gold);
  border-top: 4px solid transparent;
  border-radius: 50%;
  width: 60px;
  height: 60px;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* === HEADER === */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  transition: all 0.3s ease;
  padding: 1.5rem 0;
}

.site-header.scrolled {
  background: rgba(10, 22, 40, 0.95);
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
  padding: 1rem 0;
}

.header-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.site-logo {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  color: var(--white);
  text-decoration: none;
  transition: color 0.3s ease;
}

.site-logo:hover {
  color: var(--gold);
}

.main-nav ul {
  display: flex;
  list-style: none;
  gap: 2.5rem;
}

.main-nav a {
  color: var(--white);
  font-size: 0.95rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: color 0.3s ease;
}

.main-nav a:hover {
  color: var(--gold);
}

.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--white);
  font-size: 1.5rem;
  cursor: pointer;
}

/* === HERO === */
.hero {
  position: relative;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}

.hero-background::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, rgba(10, 22, 40, 0.3), rgba(10, 22, 40, 0.6));
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: var(--white);
  max-width: 900px;
  padding: 0 2rem;
  animation: fadeInUp 1s ease;
}

.hero-content h1 {
  color: var(--white);
  font-size: 5rem;
  margin-bottom: 1.5rem;
  text-shadow: 2px 4px 8px rgba(0, 0, 0, 0.3);
}

.hero-content p {
  font-size: 1.25rem;
  margin-bottom: 2.5rem;
  color: var(--cream);
}

.cta-button {
  display: inline-block;
  padding: 1rem 2.5rem;
  background: var(--gold);
  color: var(--navy);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  border-radius: 3px;
  transition: all 0.3s ease;
  border: 2px solid var(--gold);
}

.cta-button:hover {
  background: transparent;
  color: var(--gold);
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(181, 152, 90, 0.3);
}

/* === STATS BAR === */
.stats-bar {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  background: rgba(10, 22, 40, 0.6);
  backdrop-filter: blur(10px);
  padding: 2rem 0;
  z-index: 3;
}

.stats-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 2rem;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3rem;
  text-align: center;
}

.stat-item h3 {
  color: var(--gold);
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
}

.stat-item p {
  color: var(--cream);
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin: 0;
}

/* === SECTIONS === */
.section {
  padding: 6rem 0;
  position: relative;
}

.section-dark {
  background: var(--navy);
  color: var(--cream);
}

.section-warm {
  background: var(--warm);
}

.section-cream {
  background: var(--cream);
}

.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 2rem;
}

.section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.section-number {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  color: var(--gold);
  display: inline-block;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--gold);
  margin-bottom: 1rem;
}

.section-title {
  margin-bottom: 1.5rem;
}

.section-dark .section-title {
  color: var(--cream);
}

.section-subtitle {
  font-size: 1.15rem;
  color: var(--navy);
  opacity: 0.8;
  max-width: 700px;
  margin: 0 auto;
}

.section-dark .section-subtitle {
  color: var(--cream);
}

/* === WATERMARK TYPOGRAPHY === */
.watermark-text {
  position: absolute;
  font-family: var(--font-heading);
  font-size: 280px;
  opacity: 0.02;
  pointer-events: none;
  z-index: 0;
  line-height: 1;
  color: var(--navy);
  user-select: none;
}

.watermark-bellingham {
  top: -50px;
  left: -100px;
}

.watermark-compass {
  bottom: -80px;
  right: -150px;
}

/* === SERVICES GRID === */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 3rem;
  position: relative;
  z-index: 1;
}

.service-card {
  padding: 2.5rem;
  background: var(--white);
  border-radius: 5px;
  transition: all 0.3s ease;
  border-left: 3px solid var(--gold);
}

.service-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

.service-number {
  font-family: var(--font-heading);
  font-size: 1.75rem;
  color: var(--gold);
  display: inline-block;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--gold);
  margin-bottom: 1.5rem;
}

.service-card h3 {
  margin-bottom: 1rem;
  font-size: 1.5rem;
}

.service-card p {
  margin: 0;
  line-height: 1.8;
  opacity: 0.9;
}

/* === COMMUNITIES GRID === */
.communities-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.community-card {
  position: relative;
  height: 400px;
  overflow: hidden;
  border-radius: 5px;
  cursor: pointer;
}

.community-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
  opacity: 0.9;
}

.community-card:hover .community-image {
  transform: scale(1.1);
}

.community-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 2rem;
  background: linear-gradient(to top, rgba(10, 22, 40, 0.95), transparent);
  color: var(--white);
  transition: all 0.3s ease;
}

.community-card:hover .community-overlay {
  padding: 2.5rem;
}

.community-overlay h3 {
  color: var(--white);
  margin-bottom: 0.5rem;
  font-size: 1.75rem;
}

.community-overlay p {
  margin: 0;
  font-size: 0.95rem;
  color: var(--cream);
  opacity: 0.9;
}

/* === PARALLAX BREAK === */
.parallax-break {
  position: relative;
  height: 60vh;
  background-attachment: fixed;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
}

.parallax-break::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(10, 22, 40, 0.5);
}

.parallax-content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: var(--white);
  max-width: 800px;
  padding: 0 2rem;
}

.parallax-content h2 {
  color: var(--white);
  font-size: 3.5rem;
  margin-bottom: 1.5rem;
  text-shadow: 2px 4px 8px rgba(0, 0, 0, 0.3);
}

.parallax-content p {
  font-size: 1.25rem;
  color: var(--cream);
}

/* === LISTINGS GRID === */
.listings-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 2.5rem;
}

.listing-card {
  background: var(--white);
  border-radius: 5px;
  overflow: hidden;
  transition: all 0.3s ease;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
}

.listing-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.listing-image {
  width: 100%;
  height: 280px;
  object-fit: cover;
  opacity: 0.95;
}

.listing-content {
  padding: 1.75rem;
}

.listing-price {
  font-family: var(--font-heading);
  font-size: 1.75rem;
  color: var(--gold);
  margin-bottom: 0.75rem;
}

.listing-content h3 {
  font-size: 1.35rem;
  margin-bottom: 0.75rem;
}

.listing-details {
  display: flex;
  gap: 1.5rem;
  margin-bottom: 1rem;
  font-size: 0.95rem;
  color: var(--navy);
  opacity: 0.8;
}

.listing-content p {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.7;
  opacity: 0.85;
}

/* === TESTIMONIALS === */
.testimonials-slider {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}

.testimonial {
  padding: 3rem;
}

.testimonial-text {
  font-size: 1.35rem;
  font-style: italic;
  line-height: 1.8;
  margin-bottom: 2rem;
  color: var(--navy);
}

.testimonial-author {
  font-weight: 600;
  font-size: 1.1rem;
  color: var(--gold);
}

/* === CONTACT FORM === */
.contact-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
}

.contact-info h3 {
  margin-bottom: 2rem;
  font-size: 2rem;
}

.contact-item {
  margin-bottom: 2rem;
}

.contact-item h4 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
  color: var(--gold);
}

.contact-item p {
  margin: 0;
  font-size: 1.05rem;
}

.contact-form {
  background: var(--white);
  padding: 2.5rem;
  border-radius: 5px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
  color: var(--navy);
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.875rem;
  border: 2px solid #e0e0e0;
  border-radius: 3px;
  font-family: var(--font-body);
  font-size: 1rem;
  transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--gold);
}

.form-group textarea {
  resize: vertical;
  min-height: 150px;
}

.submit-button {
  width: 100%;
  padding: 1rem;
  background: var(--gold);
  color: var(--navy);
  border: 2px solid var(--gold);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  cursor: pointer;
  transition: all 0.3s ease;
  border-radius: 3px;
}

.submit-button:hover {
  background: transparent;
  color: var(--gold);
}

/* === FOOTER === */
.site-footer {
  background: var(--navy);
  color: var(--cream);
  padding: 3rem 0 1.5rem;
  text-align: center;
}

.footer-content p {
  margin: 0;
  opacity: 0.8;
}

/* === ANIMATIONS === */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in-up {
  animation: fadeInUp 0.8s ease;
}

/* === RESPONSIVE === */
@media (max-width: 968px) {
  h1 { font-size: 3rem; }
  h2 { font-size: 2.25rem; }
  h3 { font-size: 1.75rem; }
  
  .main-nav {
    display: none;
  }
  
  .mobile-menu-toggle {
    display: block;
  }
  
  .hero-content h1 {
    font-size: 3.5rem;
  }
  
  .stats-container {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .contact-wrapper {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  
  .watermark-text {
    font-size: 150px;
  }
  
  .parallax-break {
    background-attachment: scroll;
  }
}

@media (max-width: 640px) {
  .hero-content h1 {
    font-size: 2.5rem;
  }
  
  .services-grid,
  .communities-grid,
  .listings-grid {
    grid-template-columns: 1fr;
  }
  
  .section {
    padding: 4rem 0;
  }
}

/* OVERRIDE: Make reveal elements visible by default */
.stats-bar { transform: translateX(-50%) !important; }
.reveal-fade,
.reveal-slide,
.reveal-scale,
.card,
.numbered-section,
.section-header,
.service-item,
.community-card,
.listing-card,
.testimonial-card,
.service-card,
.testimonial,
.card-overlay,
.numbered-item,
.why-item,
.process-step,
.feature-card,
.stat-card,
.about-content {
    opacity: 1 !important;
    transform: none !important;
    visibility: visible !important;
}
/* Video hero background */
video.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}
/* Stats bar centering fix */
.stats-bar, section .stats-bar, .hero .stats-bar, .hero-section .stats-bar {
    left: 50% !important;
    transform: translateX(-50%) !important;
    width: 90% !important;
    max-width: 1200px !important;
    display: flex !important;
    justify-content: space-around !important;
}

/* Parallax overlay lighter */
.parallax-overlay {
    background: rgba(10, 22, 40, 0.5) !important;
}
.parallax-break {
    background-size: cover !important;
    background-position: center !important;
    background-attachment: fixed !important;
    min-height: 400px;
}
@media (max-width: 768px) {
    .parallax-break { background-attachment: scroll !important; }
}
