/* =============================================
   Kayla Travers — Real Estate Broker
   Clean minimalist · Emerald + Cream
   ============================================= */

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

:root {
  --emerald-900: #064e3b;
  --emerald-800: #065f46;
  --emerald-700: #047857;
  --emerald-600: #059669;
  --emerald-500: #10b981;
  --cream-50:  #faf9f6;
  --cream-100: #f5f3ee;
  --cream-200: #ebe7de;
  --cream-300: #e0dbd0;
  --stone-50:  #f8f7f4;
  --stone-100: #f0ede6;
  --stone-200: #e2ded4;
  --stone-400: #a8a295;
  --stone-500: #787165;
  --stone-600: #5c564e;
  --stone-700: #3d3832;
  --stone-800: #2a2620;
  --stone-900: #1a1713;

  --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
  --font-serif: 'Playfair Display', Georgia, 'Times New Roman', serif;

  --header-h: 72px;
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
  font-family: var(--font-sans);
  font-weight: 300;
  color: var(--stone-800);
  background: var(--cream-50);
  line-height: 1.7;
  overflow-x: hidden;
}

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

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

ul {
  list-style: none;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- TYPOGRAPHY ---------- */
h1, h2, h3 {
  font-family: var(--font-serif);
  font-weight: 400;
  line-height: 1.2;
  color: var(--stone-900);
}

.section-eyebrow {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--emerald-700);
  margin-bottom: 12px;
}

.section-title {
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  margin-bottom: 20px;
  color: var(--stone-900);
}

.section-subtitle {
  font-size: 1.05rem;
  color: var(--stone-500);
  max-width: 560px;
  line-height: 1.7;
}

/* ---------- BUTTONS ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-sans);
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  padding: 14px 28px;
  border-radius: var(--radius-sm);
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: all var(--transition);
  white-space: nowrap;
}

.btn-primary {
  background: var(--emerald-800);
  color: #ffffff;
  border-color: var(--emerald-800);
}

.btn-primary:hover {
  background: var(--emerald-700);
  border-color: var(--emerald-700);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(6, 95, 70, 0.25);
}

.btn-ghost {
  background: transparent;
  color: var(--emerald-800);
  border-color: var(--emerald-800);
}

.btn-ghost:hover {
  background: var(--emerald-800);
  color: #ffffff;
}

.btn-ghost-light {
  background: rgba(255,255,255,0.12);
  color: #ffffff;
  border-color: rgba(255,255,255,0.35);
}

.btn-ghost-light:hover {
  background: rgba(255,255,255,0.22);
  border-color: rgba(255,255,255,0.6);
}

.btn-full {
  width: 100%;
}

/* ---------- HEADER ---------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-h);
  z-index: 1000;
  background: rgba(250, 249, 246, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--cream-200);
  transition: box-shadow var(--transition);
}

.site-header.scrolled {
  box-shadow: 0 1px 20px rgba(0,0,0,0.06);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-serif);
  font-size: 1.125rem;
  color: var(--stone-900);
  letter-spacing: -0.01em;
}

.logo-icon {
  color: var(--emerald-700);
}

.main-nav ul {
  display: flex;
  align-items: center;
  gap: 32px;
}

.main-nav a {
  font-size: 0.875rem;
  font-weight: 400;
  color: var(--stone-600);
  transition: color var(--transition);
  position: relative;
}

.main-nav a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--emerald-700);
  transition: width var(--transition);
}

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

.main-nav a:hover::after {
  width: 100%;
}

.btn-nav {
  font-size: 0.8125rem !important;
  font-weight: 500 !important;
  color: var(--emerald-800) !important;
  border: 1.5px solid var(--emerald-700) !important;
  padding: 8px 18px !important;
  border-radius: var(--radius-sm) !important;
  transition: all var(--transition) !important;
}

.btn-nav::after {
  display: none !important;
}

.btn-nav:hover {
  background: var(--emerald-800) !important;
  color: #ffffff !important;
}

/* Mobile toggle */
.mobile-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  position: relative;
  width: 36px;
  height: 36px;
}

.hamburger,
.hamburger::before,
.hamburger::after {
  display: block;
  width: 20px;
  height: 1.5px;
  background: var(--stone-700);
  transition: all var(--transition);
  position: absolute;
  left: 8px;
}

.hamburger {
  top: 50%;
  transform: translateY(-50%);
}

.hamburger::before {
  content: '';
  top: -6px;
  left: 0;
}

.hamburger::after {
  content: '';
  top: 6px;
  left: 0;
}

.mobile-toggle[aria-expanded="true"] .hamburger {
  background: transparent;
}

.mobile-toggle[aria-expanded="true"] .hamburger::before {
  top: 0;
  transform: rotate(45deg);
}

.mobile-toggle[aria-expanded="true"] .hamburger::after {
  top: 0;
  transform: rotate(-45deg);
}

/* ---------- HERO ---------- */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  padding-top: var(--header-h);
  background: var(--cream-50);
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  flex: 1;
  align-items: stretch;
  padding-top: 40px;
  padding-bottom: 0;
}

.hero-content {
  padding: 60px 60px 60px 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-width: 560px;
}

.hero-eyebrow {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--emerald-700);
  margin-bottom: 20px;
}

.hero-headline {
  font-size: clamp(2rem, 4.5vw, 3.25rem);
  line-height: 1.15;
  color: var(--stone-900);
  margin-bottom: 24px;
  font-weight: 400;
  letter-spacing: -0.02em;
}

.hero-sub {
  font-size: 1.05rem;
  color: var(--stone-500);
  line-height: 1.8;
  margin-bottom: 40px;
  max-width: 460px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.hero-image-wrap {
  position: relative;
  height: 100%;
  min-height: 560px;
}

.hero-image {
  width: 100%;
  height: 100%;
  position: relative;
  overflow: hidden;
}

.hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-accent {
  position: absolute;
  bottom: -1px;
  left: -40px;
  width: 80px;
  height: 200px;
  background: var(--emerald-800);
  z-index: -1;
}

.hero-divider {
  height: 1px;
  background: var(--cream-200);
  max-width: 1200px;
  margin: 0 auto;
}

/* ---------- ABOUT ---------- */
.about {
  padding: 120px 0;
  background: var(--cream-50);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 80px;
  align-items: center;
}

.about-image-wrap {
  position: relative;
}

.about-image-wrap img {
  width: 100%;
  height: 560px;
  object-fit: cover;
  border-radius: var(--radius-md);
}

.about-image-wrap::after {
  content: '';
  position: absolute;
  top: -16px;
  right: -16px;
  width: 100%;
  height: 100%;
  border: 1.5px solid var(--emerald-200, #a7f3d0);
  border-radius: var(--radius-md);
  z-index: -1;
}

.about-content .section-title {
  margin-bottom: 24px;
}

.about-content p {
  color: var(--stone-600);
  margin-bottom: 16px;
  font-size: 0.95rem;
  line-height: 1.8;
}

.about-stats {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-top: 40px;
  padding-top: 32px;
  border-top: 1px solid var(--cream-200);
}

.stat {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.stat-number {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  color: var(--emerald-800);
  line-height: 1;
}

.stat-label {
  font-size: 0.75rem;
  color: var(--stone-500);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-weight: 500;
}

.stat-divider {
  width: 1px;
  height: 40px;
  background: var(--cream-200);
}

/* ---------- SERVICES ---------- */
.services {
  padding: 120px 0;
  background: var(--cream-100);
}

.section-header {
  text-align: center;
  margin-bottom: 64px;
}

.section-header .section-subtitle {
  margin: 0 auto;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.service-card {
  background: var(--cream-50);
  border: 1px solid var(--cream-200);
  border-radius: var(--radius-md);
  padding: 44px 36px;
  transition: all var(--transition);
}

.service-card:hover {
  border-color: var(--emerald-700);
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(6, 95, 70, 0.08);
}

.service-icon {
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  background: rgba(6, 95, 70, 0.08);
  color: var(--emerald-800);
  margin-bottom: 24px;
}

.service-title {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  margin-bottom: 12px;
  color: var(--stone-900);
}

.service-desc {
  font-size: 0.9rem;
  color: var(--stone-500);
  line-height: 1.75;
}

/* ---------- AREAS ---------- */
.areas {
  padding: 120px 0;
  background: var(--cream-50);
}

.areas-layout {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 80px;
  align-items: center;
}

.areas-content .section-title {
  margin-bottom: 16px;
}

.areas-content .section-subtitle {
  margin-bottom: 40px;
}

.area-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.area-list li {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding: 16px 0;
  border-bottom: 1px solid var(--cream-200);
  gap: 16px;
}

.area-list li:first-child {
  border-top: 1px solid var(--cream-200);
}

.area-name {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  color: var(--stone-800);
}

.area-detail {
  font-size: 0.8rem;
  color: var(--stone-400);
  letter-spacing: 0.03em;
}

.areas-image img {
  width: 100%;
  height: 640px;
  object-fit: cover;
  border-radius: var(--radius-md);
}

/* ---------- TESTIMONIALS ---------- */
.testimonials {
  padding: 120px 0;
  background: var(--emerald-900);
}

.testimonials .section-eyebrow {
  color: var(--emerald-500);
}

.testimonials .section-title {
  color: #ffffff;
  text-align: center;
  margin-bottom: 64px;
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.testimonial-card {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-md);
  padding: 36px 28px;
  transition: all var(--transition);
}

.testimonial-card:hover {
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.2);
}

.testimonial-quote {
  font-family: var(--font-serif);
  font-size: 3.5rem;
  line-height: 1;
  color: var(--emerald-500);
  margin-bottom: 8px;
}

.testimonial-text {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.8);
  line-height: 1.8;
  margin-bottom: 24px;
  font-style: italic;
}

.testimonial-author {
  font-size: 0.8rem;
  color: var(--emerald-400, #34d399);
  font-weight: 500;
  letter-spacing: 0.04em;
}

/* ---------- CTA ---------- */
.cta {
  padding: 100px 0;
  background: var(--cream-100);
}

.cta-inner {
  text-align: center;
  max-width: 640px;
  margin: 0 auto;
}

.cta-eyebrow {
  text-align: center;
}

.cta-title {
  margin-bottom: 20px;
}

.cta-text {
  font-size: 1rem;
  color: var(--stone-500);
  line-height: 1.8;
  margin-bottom: 36px;
}

.cta-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ---------- CONTACT ---------- */
.contact {
  padding: 120px 0 0;
  background: var(--cream-50);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  margin-bottom: 80px;
}

.contact-info .section-title {
  margin-bottom: 16px;
}

.contact-desc {
  font-size: 0.95rem;
  color: var(--stone-500);
  margin-bottom: 40px;
  line-height: 1.7;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.contact-item {
  display: flex;
  gap: 16px;
}

.contact-icon {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  background: rgba(6, 95, 70, 0.08);
  color: var(--emerald-800);
}

.contact-label {
  display: block;
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--stone-400);
  margin-bottom: 4px;
}

.contact-value {
  display: block;
  font-size: 0.95rem;
  color: var(--stone-700);
  line-height: 1.6;
}

.contact-link {
  color: var(--emerald-700);
  transition: color var(--transition);
}

.contact-link:hover {
  color: var(--emerald-600);
  text-decoration: underline;
}

/* Form */
.contact-form-wrap {
  background: var(--cream-100);
  border: 1px solid var(--cream-200);
  border-radius: var(--radius-lg);
  padding: 44px;
}

.form-title {
  font-family: var(--font-serif);
  font-size: 1.375rem;
  color: var(--stone-900);
  margin-bottom: 28px;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--stone-600);
  margin-bottom: 8px;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px 14px;
  font-family: var(--font-sans);
  font-size: 0.9rem;
  font-weight: 300;
  color: var(--stone-800);
  background: var(--cream-50);
  border: 1.5px solid var(--cream-200);
  border-radius: var(--radius-sm);
  outline: none;
  transition: border-color var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--emerald-700);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--stone-400);
}

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

.form-success {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 16px;
  padding: 14px 16px;
  background: rgba(6, 95, 70, 0.08);
  border: 1px solid rgba(6, 95, 70, 0.2);
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  color: var(--emerald-800);
}

.form-success svg {
  flex-shrink: 0;
  color: var(--emerald-700);
}

/* Map */
.map-wrap {
  border-top: 1px solid var(--cream-200);
}

.map-wrap iframe {
  width: 100%;
  height: 320px;
  filter: saturate(0.6) brightness(1.05);
}

/* ---------- FOOTER ---------- */
.site-footer {
  background: var(--stone-900);
  color: rgba(255,255,255,0.6);
  padding: 72px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 60px;
  padding-bottom: 56px;
}

.footer-brand .logo {
  color: #ffffff;
  margin-bottom: 16px;
}

.footer-brand .logo-icon {
  color: var(--emerald-500);
}

.footer-tagline {
  font-size: 0.875rem;
  line-height: 1.7;
  color: rgba(255,255,255,0.45);
}

.footer-nav-label,
.footer-contact .footer-nav-label {
  display: block;
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.35);
  margin-bottom: 16px;
}

.footer-nav ul {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-nav a {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.55);
  transition: color var(--transition);
}

.footer-nav a:hover {
  color: #ffffff;
}

.footer-contact p {
  font-size: 0.875rem;
  line-height: 1.7;
  margin-bottom: 4px;
}

.footer-contact a {
  color: var(--emerald-400, #34d399);
  transition: color var(--transition);
}

.footer-contact a:hover {
  color: #ffffff;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 24px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-bottom p {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.3);
}

.footer-license {
  font-size: 0.75rem !important;
  color: rgba(255,255,255,0.2) !important;
}

/* ---------- REVEAL ANIMATIONS (progressive enhancement) ---------- */
@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
  }

  .reveal.visible {
    opacity: 1;
    transform: none;
  }
}

/* ---------- MOBILE NAV OVERLAY ---------- */
.mobile-nav-overlay {
  display: none;
  position: fixed;
  inset: 0;
  top: var(--header-h);
  background: rgba(250, 249, 246, 0.98);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 999;
  padding: 40px 24px;
}

.mobile-nav-overlay.open {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.mobile-nav-overlay ul {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.mobile-nav-overlay a {
  display: block;
  padding: 16px 0;
  font-size: 1rem;
  font-weight: 400;
  color: var(--stone-700);
  border-bottom: 1px solid var(--cream-200);
  transition: color var(--transition);
}

.mobile-nav-overlay a:hover {
  color: var(--emerald-800);
}

.mobile-nav-overlay .btn-nav {
  border: 1.5px solid var(--emerald-700);
  text-align: center;
  margin-top: 20px;
  padding: 14px 28px;
  border-radius: var(--radius-sm);
  font-weight: 500;
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }

  .hero-content {
    padding: 40px 0 48px;
    max-width: 100%;
  }

  .hero-image-wrap {
    min-height: 400px;
    max-height: 480px;
  }

  .hero-accent {
    display: none;
  }

  .about-grid,
  .areas-layout,
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .about-image-wrap img,
  .areas-image img {
    height: 400px;
  }

  .about-image-wrap::after {
    display: none;
  }

  .services-grid {
    grid-template-columns: 1fr;
  }

  .testimonials-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 40px;
  }
}

@media (max-width: 768px) {
  :root {
    --header-h: 64px;
  }

  .main-nav {
    display: none;
  }

  .mobile-toggle {
    display: block;
  }

  .hero {
    min-height: auto;
  }

  .hero-content {
    padding: 32px 0 40px;
  }

  .hero-headline {
    font-size: clamp(1.75rem, 7vw, 2.5rem);
  }

  .hero-actions {
    flex-direction: column;
  }

  .hero-actions .btn {
    width: 100%;
    justify-content: center;
  }

  .about,
  .services,
  .areas,
  .testimonials,
  .cta {
    padding: 80px 0;
  }

  .section-header {
    margin-bottom: 48px;
  }

  .service-card {
    padding: 32px 24px;
  }

  .contact-form-wrap {
    padding: 28px 20px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }

  .cta-actions {
    flex-direction: column;
    align-items: center;
  }

  .cta-actions .btn {
    width: 100%;
    justify-content: center;
  }

  .about-stats {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }

  .stat-divider {
    width: 40px;
    height: 1px;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 16px;
  }

  .hero-image-wrap {
    min-height: 300px;
    max-height: 360px;
  }
}
