/* ============================================
   KalamazooHomesForSale.com
   Matching KalamazooRealEstate.com exactly
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garant:ital,wght@0,400;0,500;0,600;0,700;1,400;1,600&family=Jost:wght@300;400;500;600&display=swap');

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --cream:   #f5f0e8;
  --dark:    #1a1a1a;
  --dark2:   #2a2a2a;
  --gold:    #b8956a;
  --gold2:   #c9a87c;
  --white:   #ffffff;
  --gray:    #6b6b6b;
  --light-gray: #e8e3d9;
  --text:    #2a2a2a;
  --serif:   'Cormorant Garant', Georgia, serif;
  --sans:    'Jost', sans-serif;
}

body {
  font-family: var(--sans);
  color: var(--text);
  background: var(--cream);
  line-height: 1.6;
  font-weight: 300;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

/* ---- HEADER ---- */
header {
  position: absolute;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.75rem 8rem;
  background: transparent;
}

.logo {
  color: var(--white);
  font-family: var(--serif);
  font-size: 1.45rem;
  font-weight: 500;
  letter-spacing: 0.02em;
}

.logo-dark { color: var(--dark); }

nav { display: flex; gap: 2rem; }

nav a {
  color: var(--white);
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: color 0.2s;
}

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

.hamburger { display: none; background: none; border: none; cursor: pointer; padding: 0.5rem; }
.hamburger span { display: block; width: 24px; height: 1px; background: var(--white); margin: 6px 0; transition: 0.3s; }

/* ---- HERO ---- */
.hero {
  position: relative;
  height: 100vh;
  min-height: 600px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: url('../images/home.jpg') center/cover no-repeat;
  filter: brightness(0.55);
  z-index: 0;
}

.hero-content {
  position: relative;
  z-index: 1;
  padding: 0 2rem;
  max-width: 800px;
  opacity: 0;
  animation: rise-up 1.4s ease-out 0.2s forwards;
}

.hero h1 {
  font-family: var(--serif);
  font-size: clamp(2.5rem, 7vw, 5rem);
  font-weight: 600;
  color: var(--white);
  line-height: 1.1;
  margin-bottom: 0.5rem;
}

.hero .tagline {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.1rem, 2.5vw, 1.6rem);
  color: var(--white);
  margin-bottom: 1rem;
  font-weight: 400;
}

.hero .subtext {
  font-size: 0.95rem;
  color: rgba(255,255,255,0.85);
  margin-bottom: 2.5rem;
  font-weight: 300;
  letter-spacing: 0.02em;
}

@keyframes rise-up {
  from {
    opacity: 0;
    transform: translateY(50px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-content {
    animation: none;
    opacity: 1;
  }
}

.btn-row { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

.btn {
  display: inline-block;
  padding: 0.75rem 2rem;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border: 1px solid var(--white);
  color: var(--white);
  background: transparent;
  transition: background 0.2s, color 0.2s;
  cursor: pointer;
  font-family: var(--sans);
}

.btn:hover { background: var(--white); color: var(--dark); }

.btn-dark {
  border-color: var(--dark);
  color: var(--dark);
  background: transparent;
}

.btn-dark:hover { background: var(--dark); color: var(--white); }

.btn-filled {
  background: var(--dark);
  color: var(--white);
  border-color: var(--dark);
}

.btn-filled:hover { background: var(--dark2); }

/* ---- INTRO SECTION ---- */
.intro {
  background: var(--cream);
  padding: 5rem 2rem 4rem;
  text-align: center;
}

.intro h2 {
  font-family: var(--serif);
  font-size: clamp(1.8rem, 4vw, 3rem);
  font-weight: 500;
  margin-bottom: 1rem;
  line-height: 1.2;
}

.intro p {
  color: var(--gray);
  max-width: 560px;
  margin: 0 auto 3.5rem;
  font-size: 0.95rem;
  line-height: 1.7;
}

/* ---- SERVICE CARDS ---- */
.service-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  max-width: 1100px;
  margin: 0 auto;
}

.service-card {
  border: 1px solid var(--light-gray);
  padding: 2rem 1.5rem;
  text-align: center;
  background: var(--cream);
  transition: box-shadow 0.2s;
}

.service-card:hover { box-shadow: 0 4px 20px rgba(0,0,0,0.08); }

.service-icon {
  font-size: 1.5rem;
  color: var(--gold);
  margin-bottom: 0.75rem;
}

.service-card h3 {
  font-family: var(--serif);
  font-size: 1.25rem;
  font-weight: 500;
  margin-bottom: 0.75rem;
}

.service-card p {
  color: var(--gray);
  font-size: 0.85rem;
  line-height: 1.6;
}

/* ---- DARK FEATURE SECTION ---- */
.feature-dark {
  background: var(--dark);
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  padding: 5rem 8rem;
  gap: 5rem;
}

.feature-img {
  width: 100%;
  max-width: 520px;
  height: 380px;
  object-fit: cover;
  display: block;
}

.feature-content {
  padding: 4rem 3.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.feature-content h2 {
  font-family: var(--serif);
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  color: var(--white);
  margin-bottom: 0.75rem;
  font-weight: 500;
  line-height: 1.2;
}

.feature-content .sub {
  color: rgba(255,255,255,0.65);
  font-size: 0.9rem;
  margin-bottom: 2rem;
}

.feature-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  margin-bottom: 2rem;
}

.feature-item .label {
  color: var(--gold2);
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  margin-bottom: 0.2rem;
}

.feature-item p {
  color: rgba(255,255,255,0.6);
  font-size: 0.8rem;
  line-height: 1.5;
}

/* ---- COMMUNITIES ---- */
.communities {
  background: var(--cream);
  padding: 5rem 2rem;
  text-align: center;
}

.communities h2 {
  font-family: var(--serif);
  font-size: clamp(1.75rem, 3.5vw, 2.75rem);
  margin-bottom: 2.5rem;
  font-weight: 500;
}

.communities-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
  max-width: 1100px;
  margin: 0 auto;
}

.community-card {
  position: relative;
  height: 200px;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
}

.community-card-bg {
  position: absolute;
  inset: 0;
  background: var(--dark2);
  transition: transform 0.4s;
}

.community-card:hover .community-card-bg { transform: scale(1.05); }

.community-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.1) 60%);
}

.community-card-name {
  position: relative;
  z-index: 1;
  color: var(--white);
  font-family: var(--serif);
  font-size: 1.2rem;
  font-weight: 500;
  padding: 1.25rem;
}

/* Community card background photos */
.cc-kalamazoo .community-card-bg { background: url('../images/kalamazoo.jpg') center/cover no-repeat; }
.cc-portage .community-card-bg { background: url('../images/portage.jpg') center/cover no-repeat; }
.cc-gull-lake .community-card-bg { background: url('../images/gull-lake.jpg') center/cover no-repeat; }
.cc-richland .community-card-bg { background: url('../images/richland.jpg') center/cover no-repeat; }
.cc-mattawan .community-card-bg { background: url('../images/mattawan.jpg') center/cover no-repeat; }
.cc-texas .community-card-bg { background: url('../images/texas-township.jpg') center/cover no-repeat; }

/* ---- PAM SECTION ---- */
.pam-section {
  background: var(--dark);
  display: grid;
  grid-template-columns: 380px 1fr;
  align-items: center;
}

.pam-section img { width: 100%; height: 500px; object-fit: cover; object-position: top; }

.pam-content {
  padding: 4rem 4rem;
}

.pam-content h2 {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  color: var(--white);
  margin-bottom: 1rem;
  line-height: 1.2;
  font-weight: 400;
}

.pam-content p {
  color: rgba(255,255,255,0.65);
  font-size: 0.9rem;
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

/* ---- FEATURED / PLACEHOLDER ---- */
.featured {
  background: var(--cream);
  padding: 4rem 2rem;
  text-align: center;
}

.featured-box {
  max-width: 500px;
  margin: 0 auto;
  border: 1px solid var(--light-gray);
  padding: 3rem 2rem;
}

.featured-box h3 {
  font-family: var(--serif);
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
  color: var(--gold);
}

.featured-box p { color: var(--gray); font-size: 0.9rem; }

/* ---- CONSULTATION FORM ---- */
.consult {
  background: var(--cream);
  padding: 5rem 2rem;
  text-align: center;
}

.consult h2 {
  font-family: var(--serif);
  font-size: clamp(1.75rem, 4vw, 3rem);
  margin-bottom: 0.5rem;
  font-weight: 500;
}

.consult .sub { color: var(--gray); font-size: 0.9rem; margin-bottom: 2.5rem; }

.consult-form {
  max-width: 900px;
  margin: 0 auto;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.form-row2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.consult-form input,
.consult-form select,
.consult-form textarea {
  width: 100%;
  padding: 0.85rem 1rem;
  border: 1px solid var(--light-gray);
  background: var(--white);
  font-family: var(--sans);
  font-size: 0.85rem;
  color: var(--text);
  font-weight: 300;
  outline: none;
  transition: border-color 0.2s;
}

.consult-form input:focus,
.consult-form select:focus,
.consult-form textarea:focus { border-color: var(--gold); }

.consult-form input::placeholder,
.consult-form textarea::placeholder { color: #aaa; }

/* ---- FOOTER ---- */
footer {
  background: var(--dark);
  padding: 3rem 3rem 1.5rem;
}

.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 3rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid #333;
  margin-bottom: 1.5rem;
}

.footer-brand .logo { color: var(--gold); font-size: 0.95rem; }
.footer-brand p { color: #888; font-size: 0.82rem; margin-top: 0.5rem; line-height: 1.6; }

footer h4 {
  color: var(--white);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

footer ul { list-style: none; }
footer ul li { margin-bottom: 0.4rem; }
footer ul a { color: #888; font-size: 0.82rem; transition: color 0.2s; }
footer ul a:hover { color: var(--white); }

.footer-bottom {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.75rem;
  color: #555;
}

/* ---- INTERIOR PAGE HEADER (non-hero pages) ---- */
header.solid {
  position: relative;
  background: var(--dark);
  padding: 1.25rem 3rem;
}

header.solid .logo { color: var(--white); }
header.solid nav a { color: rgba(255,255,255,0.8); }
header.solid nav a:hover { color: var(--white); }

.page-hero {
  background: var(--dark);
  padding: 5rem 2rem 4rem;
  text-align: center;
  color: var(--white);
}

.page-hero h1 {
  font-family: var(--serif);
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 500;
  margin-bottom: 0.75rem;
}

.page-hero p { color: rgba(255,255,255,0.65); max-width: 540px; margin: 0 auto; font-size: 0.95rem; }

/* ---- CONTENT SECTIONS ---- */
.section { padding: 4rem 2rem; }
.section-cream { background: var(--cream); }
.section-white { background: var(--white); }
.container { max-width: 1100px; margin: 0 auto; }

.section-title {
  font-family: var(--serif);
  font-size: clamp(1.5rem, 3vw, 2.5rem);
  font-weight: 500;
  margin-bottom: 0.5rem;
  text-align: center;
}

.section-sub {
  text-align: center;
  color: var(--gray);
  margin-bottom: 3rem;
  font-size: 0.9rem;
}

/* ---- IDX PLACEHOLDER ---- */
.idx-placeholder {
  border: 1px solid var(--light-gray);
  padding: 4rem 2rem;
  text-align: center;
  background: var(--white);
  max-width: 700px;
  margin: 0 auto;
}

.idx-placeholder h3 {
  font-family: var(--serif);
  font-size: 1.5rem;
  color: var(--gold);
  margin-bottom: 0.5rem;
}

.idx-placeholder p { color: var(--gray); font-size: 0.9rem; margin-bottom: 1.5rem; }

/* ---- PROSE ---- */
.prose { max-width: 760px; margin: 0 auto; }
.prose h2 { font-family: var(--serif); font-size: 1.75rem; margin: 2.5rem 0 0.75rem; font-weight: 500; }
.prose p { color: var(--gray); margin-bottom: 1.25rem; line-height: 1.8; font-size: 0.95rem; }

/* ---- PAGE-SPECIFIC GRIDS ---- */
.four-grid {
  display: grid;
  grid-template-columns: repeat(4,1fr);
  gap: 1.5rem;
  max-width: 1100px;
  margin: 0 auto;
}

.two-grid {
  display: grid;
  grid-template-columns: 380px 1fr;
  gap: 4rem;
  align-items: center;
  max-width: 1100px;
  margin: 0 auto;
}

/* Page-level contact form (lighter) */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  max-width: 1000px;
  margin: 0 auto;
}

.contact-form-light input,
.contact-form-light select,
.contact-form-light textarea {
  width: 100%;
  padding: 0.85rem 1rem;
  border: 1px solid var(--light-gray);
  background: var(--white);
  font-family: var(--sans);
  font-size: 0.85rem;
  color: var(--text);
  font-weight: 300;
  outline: none;
  margin-bottom: 0.75rem;
  transition: border-color 0.2s;
}

.contact-form-light input:focus,
.contact-form-light select:focus,
.contact-form-light textarea:focus { border-color: var(--gold); }

.contact-label {
  display: block;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 500;
  margin-bottom: 0.3rem;
  color: var(--gray);
}

/* ---- MOBILE ---- */
@media (max-width: 900px) {
  header { padding: 1.25rem 1.5rem; }
  nav { display: none; flex-direction: column; position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: var(--dark); padding: 5rem 2rem 2rem; z-index: 200; }
  nav.open { display: flex; }
  nav a { font-size: 1.1rem; padding: 0.75rem 0; border-bottom: 1px solid #333; color: var(--white) !important; }
  .hamburger { display: block; z-index: 300; position: relative; }
  .service-grid, .four-grid { grid-template-columns: 1fr 1fr; }
  .feature-dark { grid-template-columns: 1fr; padding: 3rem 1.5rem; gap: 2rem; }
  .feature-img { max-width: 100%; height: 260px; }
  .communities-grid { grid-template-columns: 1fr 1fr; }
  .pam-section { grid-template-columns: 1fr; }
  .pam-section img { height: 320px; }
  .form-row { grid-template-columns: 1fr; }
  .form-row2 { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; gap: 2rem; }
  .footer-bottom { flex-direction: column; gap: 0.5rem; text-align: center; }
  .two-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; gap: 2rem; }
}

@media (max-width: 560px) {
  .service-grid, .four-grid { grid-template-columns: 1fr; }
  .communities-grid { grid-template-columns: 1fr; }
  .btn-row { flex-direction: column; align-items: center; }
}
