/* ============================================================
   KENDALL HOMES — Modern Site Stylesheet (Original Red Palette)
   Self-contained, zero dependencies, fully responsive
   ============================================================ */

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

:root {
  --primary:   #551439;   /* original dark burgundy */
  --primary-h: #6e1849;   /* hover / border shade   */
  --active:    #ac6161;   /* active nav highlight   */
  --dark:      #2a1a1f;   /* near-black dark bg     */
  --stone:     #d4b8b8;   /* warm off-white/rose    */
  --cream:     #f7f3f3;   /* page background        */
  --warm:      #ecdede;   /* borders / dividers     */
  --text:      #1e1212;
  --muted:     #6b5558;
  --white:     #ffffff;
  --nav-h:     72px;
  --max-w:     1100px;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Jost', sans-serif;
  font-weight: 300;
  color: var(--text);
  background: var(--cream);
  overflow-x: hidden;
}

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

/* ── TOP BAR ── */
.topbar {
  background: var(--primary);
  color: var(--stone);
  font-size: .75rem;
  letter-spacing: .07em;
  text-transform: uppercase;
  padding: .5rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: .4rem;
}
.topbar a { color: var(--stone); }
.topbar a:hover { color: var(--white); }
.topbar-left, .topbar-right { display: flex; gap: 1.5rem; flex-wrap: wrap; align-items: center; }

/* ── NAV ── */
nav.site-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  border-bottom: 1px solid var(--warm);
  height: var(--nav-h);
  display: flex;
  align-items: center;
  padding: 0 2rem;
  justify-content: space-between;
  transition: box-shadow .3s;
}
nav.site-nav.scrolled { box-shadow: 0 2px 20px rgba(85,20,57,.1); }

.nav-logo { display: flex; align-items: center; gap: .75rem; }
.nav-logo img { height: 44px; width: auto; }
.nav-logo-text {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.05rem;
  color: var(--primary);
  line-height: 1.2;
}
.nav-logo-text span {
  display: block;
  font-size: .68rem;
  font-family: 'Jost', sans-serif;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 400;
}

.nav-links { display: flex; align-items: center; gap: 1.8rem; list-style: none; }
.nav-links > li > a {
  font-size: .8rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--text);
  font-weight: 400;
  transition: color .2s;
  position: relative;
}
.nav-links > li > a::after {
  content: '';
  position: absolute;
  left: 0; bottom: -3px;
  width: 0; height: 1px;
  background: var(--primary);
  transition: width .25s;
}
.nav-links > li > a:hover { color: var(--primary); }
.nav-links > li > a:hover::after,
.nav-links > li > a.active::after { width: 100%; }
.nav-links > li > a.active { color: var(--primary); }

/* dropdown — top is flush with bottom of nav li so there's no gap for the mouse to fall through.
   Visual spacing is created with padding-top on the menu itself. */
.dropdown { position: relative; }
.dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  background: var(--white);
  border: 1px solid var(--warm);
  border-top: 2px solid var(--primary);
  box-shadow: 0 12px 40px rgba(85,20,57,.12);
  min-width: 220px;
  list-style: none;
  padding: .75rem 0 .5rem;
  z-index: 200;
}
.dropdown:hover .dropdown-menu,
.dropdown:focus-within .dropdown-menu { display: block; }
.dropdown-menu li a {
  display: block;
  padding: .6rem 1.4rem;
  font-size: .78rem;
  text-transform: none;
  letter-spacing: .04em;
  color: var(--text);
  transition: background .15s, color .15s;
}
.dropdown-menu li a::after { display: none; }
.dropdown-menu li a:hover { background: var(--cream); color: var(--primary); }

.nav-cta {
  background: var(--primary) !important;
  color: var(--white) !important;
  padding: .5rem 1.2rem;
  font-size: .78rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  transition: background .2s;
}
.nav-cta:hover { background: var(--primary-h) !important; }
.nav-cta::after { display: none !important; }

/* hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
}
.hamburger span { display: block; width: 24px; height: 2px; background: var(--primary); transition: .3s; }
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-menu {
  display: none;
  flex-direction: column;
  background: var(--white);
  border-top: 1px solid var(--warm);
  position: fixed;
  top: var(--nav-h);
  left: 0; right: 0;
  z-index: 99;
  padding: 1rem 0 2rem;
  box-shadow: 0 20px 40px rgba(85,20,57,.1);
  max-height: calc(100vh - var(--nav-h));
  overflow-y: auto;
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
  padding: .85rem 2rem;
  font-size: .88rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--text);
  border-bottom: 1px solid var(--warm);
  transition: background .15s, color .15s;
}
.mobile-menu a:hover { color: var(--primary); background: var(--cream); }
.mobile-menu .sub-link {
  padding-left: 3rem;
  font-size: .78rem;
  text-transform: none;
  letter-spacing: .04em;
  color: var(--muted);
}

/* ── BUTTONS ── */
.btn {
  display: inline-block;
  padding: .8rem 2rem;
  font-size: .76rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  font-weight: 500;
  font-family: 'Jost', sans-serif;
  transition: all .25s;
  cursor: pointer;
  border: none;
}
.btn-primary { background: var(--primary); color: var(--white); }
.btn-primary:hover { background: var(--primary-h); color: var(--white); }
.btn-dark { background: var(--dark); color: var(--white); }
.btn-dark:hover { background: var(--primary); color: var(--white); }
.btn-outline-white { border: 1px solid rgba(255,255,255,.55); color: var(--white); }
.btn-outline-white:hover { border-color: var(--white); background: rgba(255,255,255,.12); }

/* ── SECTION HELPERS ── */
.section { padding: 5rem 2rem; }
.section-inner { max-width: var(--max-w); margin: 0 auto; }
.section-tag {
  font-size: .7rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: .75rem;
  font-weight: 500;
}
.section-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 600;
  line-height: 1.2;
  color: var(--dark);
  margin-bottom: 1rem;
}
.section-body {
  font-size: .97rem;
  line-height: 1.8;
  color: var(--muted);
  max-width: 600px;
}
.divider { width: 48px; height: 2px; background: var(--primary); margin: 1.2rem 0; }

/* ── PAGE HEADER ── */
.page-header {
  background: var(--primary);
  padding: 3.5rem 2rem 3rem;
}
.page-header-inner { max-width: var(--max-w); margin: 0 auto; }
.page-header h1 {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(1.9rem, 4vw, 2.8rem);
  color: var(--white);
  font-weight: 600;
  margin-bottom: .6rem;
}
.breadcrumb {
  display: flex;
  gap: .5rem;
  align-items: center;
  font-size: .72rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: rgba(255,255,255,.45);
  flex-wrap: wrap;
}
.breadcrumb a { color: var(--stone); }
.breadcrumb a:hover { color: var(--white); }
.breadcrumb-sep { opacity: .4; }

/* ── CTA BAND ── */
.cta-band {
  background: var(--primary);
  padding: 4rem 2rem;
  text-align: center;
}
.cta-band h2 {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(1.7rem, 3.5vw, 2.4rem);
  color: var(--white);
  margin-bottom: .6rem;
}
.cta-band p { color: rgba(255,255,255,.8); margin-bottom: 1.8rem; }
.cta-band .btn { background: var(--white); color: var(--primary); }
.cta-band .btn:hover { background: var(--stone); color: var(--primary); }

/* ── FOOTER ── */
footer.site-footer {
  background: var(--dark);
  padding: 2.5rem 2rem;
}
.footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}
.footer-copy { font-size: .75rem; color: rgba(255,255,255,.35); letter-spacing: .06em; }
.footer-links { display: flex; gap: 1.5rem; flex-wrap: wrap; }
.footer-links a {
  font-size: .72rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: rgba(255,255,255,.4);
  transition: color .2s;
}
.footer-links a:hover { color: var(--stone); }

/* ── SCROLL REVEAL ── */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .7s ease, transform .7s ease;
}
.reveal.visible { opacity: 1; transform: none; }

/* ── GALLERY SLIDER ── */
.gallery-slider {
  position: relative;
  overflow: hidden;
  background: var(--warm);
  aspect-ratio: 16/10;
}
.gallery-slider img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity .5s ease;
}
.gallery-slider img.active { opacity: 1; }
.slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,.85);
  border: none;
  width: 40px;
  height: 40px;
  font-size: 1.1rem;
  cursor: pointer;
  z-index: 10;
  transition: background .2s;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
}
.slider-btn:hover { background: var(--white); }
.slider-btn.prev { left: .75rem; }
.slider-btn.next { right: .75rem; }
.slider-count {
  position: absolute;
  bottom: .75rem;
  right: 1rem;
  font-size: .7rem;
  letter-spacing: .1em;
  color: var(--white);
  background: rgba(85,20,57,.45);
  padding: .2rem .5rem;
}
.slider-caption {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  background: linear-gradient(transparent, rgba(42,26,31,.65));
  padding: 2rem 1.2rem .75rem;
  pointer-events: none;
}
.slider-caption h4 {
  font-family: 'Cormorant Garamond', serif;
  color: var(--white);
  font-size: 1.1rem;
  font-weight: 600;
}

/* ── TESTIMONIAL CARDS ── */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: 1.4rem;
}
.testimonial-card {
  padding: 2rem;
  background: var(--cream);
  border-left: 3px solid var(--primary);
  position: relative;
}
.testimonial-card::before {
  content: '\201C';
  font-family: 'Cormorant Garamond', serif;
  font-size: 4rem;
  color: var(--primary);
  opacity: .2;
  position: absolute;
  top: .6rem; right: 1rem;
  line-height: 1;
}
.testimonial-text { font-size: .9rem; line-height: 1.75; color: var(--muted); margin-bottom: 1rem; }
.testimonial-author { font-size: .75rem; letter-spacing: .1em; text-transform: uppercase; color: var(--primary); font-weight: 500; }

/* ── STATS BAR ── */
.stats-bar {
  background: var(--dark);
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
}
.stat-item {
  flex: 1 1 160px;
  padding: 2rem 1.5rem;
  text-align: center;
  border-right: 1px solid rgba(255,255,255,.07);
}
.stat-item:last-child { border-right: none; }
.stat-number {
  font-family: 'Cormorant Garamond', serif;
  font-size: 2.4rem;
  color: var(--stone);
  font-weight: 600;
  line-height: 1;
}
.stat-label {
  font-size: .68rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: rgba(255,255,255,.42);
  margin-top: .35rem;
}

/* ── CONTACT FORM ── */
.contact-form { display: flex; flex-direction: column; gap: .9rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: .9rem; }
.form-field { display: flex; flex-direction: column; gap: .3rem; }
.form-field label {
  font-size: .7rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 500;
}
.form-field input,
.form-field textarea,
.form-field select {
  padding: .8rem 1rem;
  border: 1px solid var(--warm);
  background: var(--white);
  font-family: 'Jost', sans-serif;
  font-size: .9rem;
  color: var(--text);
  outline: none;
  transition: border-color .2s;
  -webkit-appearance: none;
  border-radius: 0;
}
.form-field input:focus,
.form-field textarea:focus,
.form-field select:focus { border-color: var(--primary); }
.form-field textarea { resize: vertical; min-height: 120px; }
.form-submit button { width: 100%; text-align: center; }

/* ── CONTACT INFO ── */
.info-item { display: flex; gap: 1rem; margin-bottom: 1.3rem; align-items: flex-start; }
.info-icon { font-size: 1rem; margin-top: .15rem; flex-shrink: 0; }
.info-label { font-size: .68rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: .1rem; font-weight: 500; }
.info-value { font-size: .93rem; color: var(--text); }
.info-value a { color: var(--text); }
.info-value a:hover { color: var(--primary); }
.memberships { margin-top: 2rem; padding-top: 1.8rem; border-top: 1px solid var(--warm); }
.memberships p { font-size: .68rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: .6rem; font-weight: 500; }
.memberships a { font-size: .82rem; color: var(--primary); margin-right: 1rem; }
.memberships a:hover { text-decoration: underline; }

/* ── PORTFOLIO GRID ── */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.5rem;
}
.portfolio-card {
  background: var(--white);
  overflow: hidden;
  transition: box-shadow .3s;
}
.portfolio-card:hover { box-shadow: 0 8px 32px rgba(85,20,57,.12); }
.portfolio-thumb {
  position: relative;
  aspect-ratio: 4/3;
  overflow: hidden;
  background: var(--warm);
}
.portfolio-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s ease;
}
.portfolio-card:hover .portfolio-thumb img { transform: scale(1.04); }
.portfolio-thumb-overlay {
  position: absolute;
  inset: 0;
  background: rgba(85,20,57,.5);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity .3s;
}
.portfolio-card:hover .portfolio-thumb-overlay { opacity: 1; }
.portfolio-thumb-overlay span {
  color: var(--white);
  font-size: .75rem;
  letter-spacing: .15em;
  text-transform: uppercase;
  border: 1px solid rgba(255,255,255,.7);
  padding: .5rem 1.2rem;
}
.portfolio-card-body { padding: 1.2rem 1.4rem 1.5rem; }
.portfolio-card-body h3 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.25rem;
  color: var(--dark);
  margin-bottom: .3rem;
  font-weight: 600;
}
.portfolio-card-body p { font-size: .85rem; color: var(--muted); line-height: 1.6; }

/* ── SERVICES GRID ── */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5px;
  background: var(--warm);
  border: 1.5px solid var(--warm);
  margin-top: 3rem;
}
.service-card {
  background: var(--cream);
  padding: 2.5rem 2rem;
  transition: background .25s;
}
.service-card:hover { background: var(--white); }
.service-icon { font-size: 1.6rem; margin-bottom: 1rem; display: block; }
.service-card h3 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.35rem;
  color: var(--dark);
  margin-bottom: .4rem;
  font-weight: 600;
}
.service-card p { font-size: .88rem; color: var(--muted); line-height: 1.7; }

/* ── PROJECT PAGE ── */
.project-layout {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 3rem;
  align-items: start;
}
.project-meta h2 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.8rem;
  color: var(--dark);
  font-weight: 600;
  margin-bottom: 1rem;
}
.project-meta p { font-size: .95rem; color: var(--muted); line-height: 1.8; margin-bottom: 1rem; }
.project-details {
  margin-top: 1.5rem;
  background: var(--white);
  padding: 1.5rem;
  border-left: 3px solid var(--primary);
}
.project-detail {
  display: flex;
  justify-content: space-between;
  padding: .5rem 0;
  border-bottom: 1px solid var(--warm);
  font-size: .85rem;
}
.project-detail:last-child { border-bottom: none; }
.project-detail .detail-label { color: var(--muted); letter-spacing: .06em; }
.project-detail .detail-value { color: var(--dark); font-weight: 500; }
.project-nav {
  display: flex;
  justify-content: space-between;
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--warm);
}
.project-nav a {
  font-size: .75rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--primary);
  display: flex;
  align-items: center;
  gap: .4rem;
}
.project-nav a:hover { color: var(--primary-h); }

/* ── ABOUT PAGE ── */
.about-intro {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}
.location-tags { display: flex; flex-wrap: wrap; gap: .4rem 1rem; margin-top: 1.5rem; }
.location-tag {
  font-size: .72rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--primary);
  padding: .3rem .7rem;
  border: 1px solid rgba(85,20,57,.3);
}

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  .nav-links { display: none; }
  .hamburger { display: flex; }
  .project-layout { grid-template-columns: 1fr; }
  .about-intro { grid-template-columns: 1fr; gap: 2rem; }
  .form-row { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
  .topbar-right { display: none; }
  .topbar { justify-content: center; }
  .section { padding: 3.5rem 1.3rem; }
  .stat-item { flex-basis: 50%; }
  .portfolio-grid { grid-template-columns: 1fr; }
  .footer-inner { flex-direction: column; text-align: center; }
  .footer-links { justify-content: center; }
}