/* ============================================================
   JESSICA SWIFT — KELLER WILLIAMS ST. LOUIS
   Website Option 2 — Modern Editorial Style

   COLOR PALETTE:
     --kw-red:        #B40101  (accent)
     --kw-red-dark:   #8A0000  (hover)
     --charcoal:      #1A1A1A  (dark backgrounds, headings)
     --warm-gray:     #3D3D3D  (secondary dark)
     --text:          #4A4A4A  (body text)
     --text-light:    #7A7A7A  (muted text)
     --cream:         #FAF8F5  (warm off-white backgrounds)
     --white:         #FFFFFF

   FONTS:
     Headings: Cormorant Garamond (elegant serif)
     Body:     Montserrat (modern, clean sans-serif)
   ============================================================ */

:root {
  --kw-red: #B40101;
  --kw-red-dark: #8A0000;
  --charcoal: #1A1A1A;
  --warm-gray: #3D3D3D;
  --text: #4A4A4A;
  --text-light: #7A7A7A;
  --cream: #FAF8F5;
  --white: #FFFFFF;
  --font-heading: 'Cormorant Garamond', Georgia, serif;
  --font-body: 'Montserrat', 'Helvetica Neue', Arial, sans-serif;
  --nav-height: 72px;
  --container-max: 1200px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-height);
}

body {
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.75;
  color: var(--text);
  background-color: var(--white);
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--kw-red);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--kw-red-dark);
}

.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
}

/* ============================================================
   SECTION SHARED STYLES
   ============================================================ */
.section {
  padding: 96px 0;
}

.section-label {
  display: block;
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--kw-red);
  margin-bottom: 12px;
}

.section-title {
  font-family: var(--font-heading);
  font-size: 2.6rem;
  font-weight: 600;
  color: var(--charcoal);
  margin-bottom: 16px;
}

.section-subtitle {
  max-width: 580px;
  margin-bottom: 56px;
  font-size: 0.95rem;
  color: var(--text-light);
  line-height: 1.8;
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 14px 36px;
  border-radius: 0;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all 0.25s ease;
}

.btn-primary {
  background: var(--kw-red);
  color: var(--white);
  border-color: var(--kw-red);
}

.btn-primary:hover {
  background: var(--kw-red-dark);
  border-color: var(--kw-red-dark);
  color: var(--white);
}

.btn-outline {
  background: transparent;
  color: var(--kw-red);
  border-color: var(--kw-red);
}

.btn-outline:hover {
  background: var(--kw-red);
  color: var(--white);
}

.btn-submit {
  width: 100%;
  padding: 16px;
  font-size: 0.85rem;
}

/* ============================================================
   NAVIGATION BAR
   Starts transparent, turns solid on scroll.
   ============================================================ */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-height);
  background: var(--white);
  z-index: 1000;
  transition: background 0.3s ease, box-shadow 0.3s ease;
}

.navbar.scrolled {
  box-shadow: 0 1px 20px rgba(0, 0, 0, 0.08);
}

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

.nav-logo {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--charcoal);
  letter-spacing: 0.01em;
}

.nav-logo:hover {
  color: var(--kw-red);
}

.nav-logo-separator {
  color: var(--kw-red);
  margin: 0 6px;
}

/* Hamburger (mobile) */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  z-index: 1100;
}

.hamburger-line {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--charcoal);
  transition: transform 0.3s ease, opacity 0.3s ease;
}

/* Nav menu (desktop) */
.nav-menu {
  display: flex;
  align-items: center;
  gap: 36px;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 32px;
}

.nav-links a {
  color: var(--text);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 4px 0;
  position: relative;
  transition: color 0.2s ease;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1.5px;
  background: var(--kw-red);
  transition: width 0.25s ease;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--kw-red);
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

.nav-social {
  display: flex;
  gap: 16px;
}

.nav-social a {
  color: var(--text-light);
  font-size: 1rem;
  transition: color 0.2s ease;
}

.nav-social a:hover {
  color: var(--kw-red);
}

/* ============================================================
   HERO SECTION — Split Layout
   Text left, full-height photo right.
   ============================================================ */
.hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 100vh;
  padding-top: var(--nav-height);
}

.hero-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 80px 64px 80px 0;
  padding-left: max(24px, calc((100vw - var(--container-max)) / 2 + 24px));
}

.hero-pre {
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--kw-red);
  margin-bottom: 20px;
}

.hero-name {
  font-family: var(--font-heading);
  font-size: 5rem;
  font-weight: 700;
  color: var(--charcoal);
  line-height: 1.05;
  margin-bottom: 24px;
}

.hero-divider {
  width: 48px;
  height: 3px;
  background: var(--kw-red);
  margin-bottom: 24px;
}

.hero-tagline {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 500;
  color: var(--text);
  line-height: 1.5;
  margin-bottom: 40px;
}

.hero-image {
  position: relative;
  overflow: hidden;
  background: var(--cream);
}

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

/* ============================================================
   HOME SEARCH SECTION
   ============================================================ */
.home-search {
  background: var(--cream);
}

.home-search .section-title,
.home-search .section-subtitle {
  text-align: left;
}

.search-cta-box {
  background: var(--white);
  border-left: 4px solid var(--kw-red);
  padding: 40px;
  max-width: 700px;
  margin-bottom: 32px;
}

.search-cta-box h3 {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--charcoal);
  margin-bottom: 8px;
}

.search-cta-box p {
  color: var(--text-light);
  margin-bottom: 24px;
  font-size: 0.9rem;
}

.search-buttons {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.search-personal-note {
  font-size: 0.9rem;
  color: var(--text-light);
}

/* ============================================================
   NEIGHBORHOOD GUIDES
   Image cards with overlay title, text below.
   ============================================================ */
.neighborhoods {
  background: var(--white);
}

.neighborhoods .section-title,
.neighborhoods .section-subtitle {
  text-align: left;
}

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

.neighborhood-card {
  background: var(--white);
  overflow: hidden;
  transition: transform 0.25s ease;
}

.neighborhood-card:hover {
  transform: translateY(-4px);
}

.neighborhood-img-wrapper {
  position: relative;
  height: 220px;
  overflow: hidden;
  background: #ddd;
}

.neighborhood-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.neighborhood-card:hover .neighborhood-img-wrapper img {
  transform: scale(1.05);
}

.neighborhood-card-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 16px 20px;
  background: linear-gradient(to top, rgba(26, 26, 26, 0.85) 0%, transparent 100%);
}

.neighborhood-card-overlay h3 {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--white);
}

.neighborhood-info {
  padding: 20px 4px 8px;
}

.neighborhood-info p {
  font-size: 0.85rem;
  line-height: 1.7;
  color: var(--text-light);
  margin-bottom: 12px;
}

.card-link {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--kw-red);
}

.card-link i {
  margin-left: 4px;
  font-size: 0.65rem;
  transition: transform 0.2s ease;
}

.card-link:hover i {
  transform: translateX(4px);
}

/* ============================================================
   ABOUT JESSICA — Overlapping layout
   ============================================================ */
.about {
  background: var(--cream);
  overflow: hidden;
}

.about-layout {
  display: grid;
  grid-template-columns: 5fr 6fr;
  gap: 0;
  align-items: center;
}

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

.about-image-col img {
  width: 100%;
  height: 520px;
  object-fit: cover;
  object-position: center top;
}

.about-text-card {
  background: var(--white);
  padding: 56px;
  margin-left: -48px;
  position: relative;
  z-index: 1;
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.06);
}

.about-text-card h2 {
  font-family: var(--font-heading);
  font-size: 2.4rem;
  font-weight: 600;
  color: var(--charcoal);
  margin-bottom: 20px;
}

.about-text-card p {
  margin-bottom: 16px;
  font-size: 0.92rem;
  line-height: 1.85;
}

.about-serving {
  color: var(--charcoal);
}

.about-social {
  display: flex;
  gap: 16px;
  margin-top: 24px;
}

.social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1.5px solid var(--charcoal);
  color: var(--charcoal);
  font-size: 1.1rem;
  transition: all 0.2s ease;
}

.social-link:hover {
  background: var(--kw-red);
  border-color: var(--kw-red);
  color: var(--white);
}

/* ============================================================
   CONTACT SECTION
   ============================================================ */
.contact {
  background: var(--white);
}

.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 64px;
  align-items: start;
}

.contact-heading {
  font-family: var(--font-heading);
  font-size: 2.4rem;
  font-weight: 600;
  color: var(--charcoal);
  margin-bottom: 16px;
}

.contact-intro p {
  font-size: 0.95rem;
  color: var(--text-light);
  line-height: 1.8;
}

.contact-details {
  margin-top: 32px;
}

.contact-details p {
  margin-bottom: 8px;
  font-size: 0.9rem;
}

.contact-details i {
  color: var(--kw-red);
  margin-right: 8px;
}

.contact-response {
  color: var(--text-light) !important;
  font-style: italic;
  font-size: 0.85rem !important;
}

.contact-social {
  display: flex;
  gap: 12px;
  margin-top: 24px;
}

.contact-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 1.5px solid #d0d0d0;
  color: var(--text-light);
  font-size: 1rem;
  transition: all 0.2s ease;
}

.contact-social a:hover {
  border-color: var(--kw-red);
  color: var(--kw-red);
}

/* Contact Form */
.contact-form {
  background: var(--cream);
  padding: 40px;
}

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

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

.form-group .required {
  color: var(--kw-red);
}

.form-group .optional {
  color: var(--text-light);
  font-weight: 400;
  text-transform: none;
  font-size: 0.7rem;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px 0;
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: var(--charcoal);
  border: none;
  border-bottom: 1.5px solid #ccc;
  background: transparent;
  transition: border-color 0.2s ease;
}

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

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

/* ============================================================
   FOOTER — Dark charcoal with red accent line
   ============================================================ */
.footer {
  background: var(--charcoal);
  color: rgba(255, 255, 255, 0.7);
  padding: 0 0 32px;
}

.footer-accent {
  height: 4px;
  background: var(--kw-red);
}

.footer-content {
  padding-top: 40px;
  text-align: center;
}

.footer-name {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 4px;
}

.footer-title {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 20px;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-bottom: 28px;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.6);
  font-size: 1.1rem;
  transition: color 0.2s ease;
}

.footer-links a:hover {
  color: var(--white);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 24px;
  font-size: 0.78rem;
  line-height: 1.8;
}

.footer-bottom p {
  margin-bottom: 4px;
}

.footer-domain {
  color: rgba(255, 255, 255, 0.4);
}

.footer-eho {
  margin-top: 16px;
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.35);
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6;
}

.eho-icon {
  font-size: 1rem;
  margin-right: 4px;
  vertical-align: middle;
}

/* ============================================================
   RESPONSIVE — TABLET (max-width: 900px)
   ============================================================ */
@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .hero-text {
    padding: 60px 24px;
    order: 2;
  }

  .hero-image {
    height: 50vh;
    order: 1;
  }

  .hero-name {
    font-size: 3.5rem;
  }

  .neighborhood-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .about-layout {
    grid-template-columns: 1fr;
  }

  .about-image-col img {
    height: 400px;
  }

  .about-text-card {
    margin-left: 0;
    margin-top: -40px;
    margin-right: 0;
  }

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

/* ============================================================
   RESPONSIVE — MOBILE (max-width: 768px)
   ============================================================ */
@media (max-width: 768px) {
  :root {
    --nav-height: 60px;
  }

  .nav-toggle {
    display: flex;
  }

  .nav-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: var(--white);
    flex-direction: column;
    justify-content: center;
    gap: 24px;
    padding: 40px;
    box-shadow: -4px 0 20px rgba(0, 0, 0, 0.1);
    transition: right 0.3s ease;
  }

  .nav-menu.open {
    right: 0;
  }

  .nav-links {
    flex-direction: column;
    gap: 20px;
    text-align: center;
  }

  .nav-links a {
    font-size: 0.85rem;
  }

  .nav-social {
    justify-content: center;
  }

  .nav-toggle.active .hamburger-line:nth-child(1) {
    transform: translateY(6.5px) rotate(45deg);
  }

  .nav-toggle.active .hamburger-line:nth-child(2) {
    opacity: 0;
  }

  .nav-toggle.active .hamburger-line:nth-child(3) {
    transform: translateY(-6.5px) rotate(-45deg);
  }

  .hero-name {
    font-size: 2.8rem;
  }

  .hero-tagline {
    font-size: 1.2rem;
  }

  .section {
    padding: 64px 0;
  }

  .section-title {
    font-size: 2rem;
  }

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

  .search-cta-box {
    padding: 28px 20px;
  }

  .search-buttons {
    flex-direction: column;
  }

  .about-text-card {
    padding: 32px 24px;
  }

  .about-text-card h2 {
    font-size: 1.8rem;
  }

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

  .contact-heading {
    font-size: 1.8rem;
  }
}

/* ============================================================
   RESPONSIVE — SMALL MOBILE (max-width: 480px)
   ============================================================ */
@media (max-width: 480px) {
  .hero-name {
    font-size: 2.2rem;
  }

  .hero-image {
    height: 40vh;
  }

  .nav-logo {
    font-size: 1.1rem;
  }
}
