/* ═══════════════════════════════════════
   ELITE PROPERTIES KY — Global Styles
═══════════════════════════════════════ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
:root {
  --forest:      #1a2e1a;
  --forest-dark: #0f1d0f;
  --forest-mid:  #243824;
  --burgundy:    #6b1c2e;
  --burg-dark:   #4d1220;
  --cream:       #f5f2ec;
  --cream-dark:  #ede9e0;
  --text:        #1a1a1a;
  --muted:       #5a5a5a;
  --white:       #ffffff;
  --border:      rgba(0,0,0,0.09);
  --shadow:      0 4px 24px rgba(0,0,0,0.08);
  --accent:      #B7C9AF; /* sage — higher-contrast caption/CTA color on dark forest backgrounds */
}
html { scroll-behavior: smooth; }
body { font-family: 'Inter', sans-serif; color: var(--text); background: var(--white); line-height: 1.6; }
img { max-width: 100%; display: block; }
a { text-decoration: none; }
h1,h2,h3 { font-family: 'Playfair Display', serif; line-height: 1.15; }

/* NAV */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 999;
  background: var(--forest);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 3rem; height: 68px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.25);
}
.nav-logo { font-family: 'Playfair Display',serif; color: var(--white); font-size: 1.2rem; white-space: nowrap; }
.nav-links { display: flex; align-items: center; gap: 1.75rem; list-style: none; }
.nav-links a { color: rgba(255,255,255,0.82); font-size: 0.88rem; font-weight: 500; transition: color 0.2s; }
.nav-links a:hover, .nav-links a.active { color: var(--white); }
.nav-dropdown { position: relative; }
.nav-dropdown > a::after { content: " ▾"; font-size: 0.65rem; }
.dropdown-menu { display: none; position: absolute; top: 100%; left: 0; background: var(--forest-dark); min-width: 250px; border-top: 2px solid var(--burgundy); box-shadow: 0 8px 28px rgba(0,0,0,0.25); padding: 0.4rem 0; }
.nav-dropdown:hover .dropdown-menu { display: block; }
.dropdown-menu a { display: block; padding: 0.65rem 1.25rem; color: rgba(255,255,255,0.78); font-size: 0.85rem; }
.dropdown-menu a:hover { background: rgba(255,255,255,0.07); color: var(--white); }
.nav-cta { background: var(--accent) !important; color: var(--forest-dark) !important; padding: 0.62rem 1.5rem; border-radius: 4px; font-weight: 700 !important; font-size: 0.92rem; transition: transform 0.2s, box-shadow 0.2s !important; animation: navCtaBreathe 2.6s ease-in-out infinite; }
.nav-cta:hover { background: var(--accent) !important; transform: scale(1.05); animation-play-state: paused; }
@keyframes navCtaBreathe {
  0%, 100% { box-shadow: 0 0 0 0 rgba(183,201,175,0.55); transform: scale(1); }
  50% { box-shadow: 0 0 0 8px rgba(183,201,175,0); transform: scale(1.045); }
}
@media (prefers-reduced-motion: reduce) { .nav-cta { animation: none; } }
.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 0.5rem; flex-direction: column; gap: 5px; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--white); border-radius: 2px; }

/* BUTTONS */
.btn { display: inline-flex; align-items: center; gap: 0.45rem; font-family: 'Inter',sans-serif; font-weight: 600; font-size: 0.88rem; padding: 0.72rem 1.5rem; border-radius: 4px; border: none; cursor: pointer; transition: all 0.2s; }
.btn-white { background: var(--white); color: var(--forest-dark); }
.btn-white:hover { background: var(--cream); transform: translateY(-1px); }
.btn-outline-white { background: transparent; color: var(--white); border: 1.5px solid rgba(255,255,255,0.45); }
.btn-outline-white:hover { border-color: var(--white); background: rgba(255,255,255,0.08); }
.btn-burgundy { background: var(--burgundy); color: var(--white); }
.btn-burgundy:hover { background: var(--burg-dark); transform: translateY(-1px); }
.btn-forest { background: var(--forest); color: var(--white); }
.btn-forest:hover { background: var(--forest-mid); }
.btn-outline-forest { background: transparent; color: var(--forest); border: 1.5px solid var(--forest); }
.btn-outline-forest:hover { background: var(--forest); color: var(--white); }

/* LAYOUT */
.wrap { max-width: 1160px; margin: 0 auto; }
.section { padding: 5rem 3rem; }
.section-label { font-size: 0.7rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--burgundy); display: block; margin-bottom: 0.6rem; }
/* Higher-contrast variant for section labels sitting on dark forest backgrounds (contact hero, rentals hero) */
.section-label-accent { color: var(--accent); }
.section-title { font-size: clamp(1.8rem,3.5vw,2.6rem); color: var(--text); margin-bottom: 0.75rem; }
.section-sub { color: var(--muted); font-size: 0.94rem; max-width: 520px; margin-bottom: 2.5rem; line-height: 1.75; }

/* HERO */
/* Alignment rule: .hero gets the SAME 3rem side padding as .section, and .hero-inner
   mirrors .wrap (max-width 1160, centered, no extra padding) so hero copy lines up
   with the section content underneath it at every viewport width. */
.hero {
  position: relative;
  min-height: clamp(620px, 78vh, 860px);
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--forest-dark);
  padding: 0 3rem;
}
.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  opacity: 0.72;
  filter: brightness(1.08) contrast(1.04) saturate(1.08);
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg,rgba(8,18,8,0.30) 0%,rgba(45,12,22,0.18) 100%);
}
.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  filter: brightness(0.82) saturate(1.04);
}
.hero-inner { position: relative; z-index: 2; max-width: 1160px; margin: 0 auto; width: 100%; padding-top: 4.5rem; }
.hero-content { max-width: 760px; }
.hero-eyebrow { font-size: 0.7rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: rgba(255,255,255,0.5); display: block; margin-bottom: 1rem; }
.hero h1 { font-size: clamp(3rem,5.8vw,4.8rem); color: var(--white); line-height: 1.05; margin-bottom: 1rem; }
.hero-sub { font-size: 1.05rem; color: rgba(255,255,255,0.78); max-width: 600px; line-height: 1.72; margin-bottom: 2rem; }
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; }
.hero-short { min-height: 58vh; }

/* PROPERTY CARDS */
.prop-grid { display: grid; grid-template-columns: repeat(auto-fill,minmax(300px,1fr)); gap: 1.5rem; }
.prop-card { background: var(--white); border-radius: 8px; border: 1px solid var(--border); overflow: hidden; transition: transform 0.2s,box-shadow 0.2s; }
.prop-card:hover { transform: translateY(-4px); box-shadow: 0 12px 36px rgba(0,0,0,0.1); }
.prop-img { width: 100%; height: 215px; object-fit: cover; display: block; }
.prop-img-ph { width: 100%; height: 215px; background: linear-gradient(135deg,#c8d5c8,#a0b8a0); display: flex; align-items: center; justify-content: center; }
.prop-body { padding: 1.25rem; }
.prop-badge { display: inline-block; font-size: 0.67rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; padding: 3px 10px; border-radius: 20px; margin-bottom: 0.6rem; }
.prop-badge.avail { background: #e8f0e8; color: #1a6b1a; }
.prop-badge.soon { background: #f5e8eb; color: var(--burgundy); }
.prop-name { font-family: 'Playfair Display',serif; font-size: 1.08rem; color: var(--text); margin-bottom: 0.3rem; line-height: 1.3; }
.prop-addr { font-size: 0.79rem; color: var(--muted); margin-bottom: 0.8rem; }
.prop-stats { display: flex; gap: 1rem; font-size: 0.79rem; color: var(--muted); border-top: 1px solid var(--cream-dark); padding-top: 0.75rem; margin-bottom: 0.8rem; flex-wrap: wrap; }
.prop-price { font-size: 1.15rem; font-weight: 700; color: var(--forest); margin-bottom: 0.8rem; }
.prop-price small { font-size: 0.77rem; font-weight: 400; color: var(--muted); }
.prop-actions { display: flex; gap: 0.75rem; flex-wrap: wrap; }
.prop-link { font-size: 0.81rem; font-weight: 600; color: var(--burgundy); border-bottom: 1.5px solid transparent; transition: border-color 0.2s; }
.prop-link:hover { border-color: var(--burgundy); }
.prop-apply { font-size: 0.81rem; font-weight: 600; color: var(--forest); border-bottom: 1.5px solid transparent; transition: border-color 0.2s; }
.prop-apply:hover { border-color: var(--forest); }
.prop-tour { font-size: 0.81rem; font-weight: 600; color: #7c5c2e; border-bottom: 1.5px solid transparent; transition: border-color 0.2s; }
.prop-tour:hover { border-color: #7c5c2e; }

/* States */
.state-center { grid-column: 1/-1; text-align: center; padding: 4rem 1rem; color: var(--muted); }
.spinner { width: 34px; height: 34px; border: 3px solid var(--cream-dark); border-top-color: var(--forest); border-radius: 50%; animation: spin 0.75s linear infinite; margin: 0 auto 1rem; }
@keyframes spin { to { transform: rotate(360deg); } }

/* FILTER BAR */
.filter-bar { background: var(--white); border: 1.5px solid var(--cream-dark); border-radius: 8px; padding: 1.2rem 1.4rem; margin-bottom: 1.5rem; display: flex; flex-wrap: wrap; gap: 0.85rem; align-items: flex-end; }
.fg { display: flex; flex-direction: column; gap: 0.3rem; flex: 1; min-width: 130px; }
.fg label { font-size: 0.69rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.fg select, .fg input { padding: 0.55rem 0.8rem; border: 1.5px solid var(--cream-dark); border-radius: 5px; font-size: 0.86rem; font-family: 'Inter',sans-serif; color: var(--text); background: var(--white); appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%235a5a5a' stroke-width='1.5' fill='none'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 0.7rem center; transition: border-color 0.2s; }
.fg input { background-image: none; }
.fg select:focus, .fg input:focus { outline: none; border-color: var(--forest); }
.filter-actions { display: flex; gap: 0.5rem; align-items: flex-end; }
.btn-search { padding: 0.57rem 1.2rem; background: var(--forest); color: var(--white); border: none; border-radius: 5px; font-family: 'Inter',sans-serif; font-size: 0.85rem; font-weight: 600; cursor: pointer; transition: background 0.2s; }
.btn-search:hover { background: var(--forest-mid); }
.btn-clear { padding: 0.57rem 0.9rem; background: transparent; color: var(--muted); border: 1.5px solid var(--cream-dark); border-radius: 5px; font-family: 'Inter',sans-serif; font-size: 0.84rem; cursor: pointer; transition: all 0.2s; }
.btn-clear:hover { border-color: var(--burgundy); color: var(--burgundy); }
#propsCount { font-size: 0.83rem; color: var(--muted); margin-bottom: 1rem; }
#propsCount strong { color: var(--forest); }

/* COMMUNITY CARDS */
.community-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 1.5rem; }
.comm-card { position: relative; border-radius: 8px; overflow: hidden; min-height: 300px; display: flex; align-items: flex-end; transition: transform 0.25s; }
.comm-card:hover { transform: translateY(-4px); }
.comm-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.comm-card-overlay { position: absolute; inset: 0; background: linear-gradient(to top,rgba(8,18,8,0.9) 0%,rgba(8,18,8,0.1) 65%,transparent 100%); }
.comm-card-info { position: relative; z-index: 2; padding: 1.5rem 1.25rem; color: var(--white); }
.comm-card-info h3 { font-family: 'Playfair Display',serif; font-size: 1.2rem; margin-bottom: 0.25rem; }
.comm-card-info p { font-size: 0.78rem; color: rgba(255,255,255,0.68); margin-bottom: 0.75rem; }
.comm-card-info span { font-size: 0.77rem; font-weight: 600; color: var(--white); border-bottom: 1.5px solid rgba(255,255,255,0.4); padding-bottom: 1px; }

/* PHOTO GALLERY */
.photo-gallery { display: grid; grid-template-columns: 2fr 1fr 1fr; grid-template-rows: 220px 220px; gap: 6px; border-radius: 8px; overflow: hidden; }
.photo-gallery img { width: 100%; height: 100%; object-fit: cover; }
.photo-gallery img:first-child { grid-row: 1/3; }

/* MATTERPORT 3D TOUR */
.tour-section { background: var(--forest-dark); padding: 4rem 3rem; }
.tour-section .section-label { color: rgba(255,255,255,0.38); }
.tour-section .section-title { color: var(--white); }
.tour-section .section-sub { color: rgba(255,255,255,0.6); }
.tour-frame { border-radius: 10px; overflow: hidden; box-shadow: 0 8px 40px rgba(0,0,0,0.4); aspect-ratio: 16 / 9; position: relative; }
.tour-frame iframe { width: 100%; height: 100%; border: 0; display: block; }

/* LIFESTYLE SPLIT */
.lifestyle { background: var(--burg-dark); overflow: hidden; }
.lifestyle-inner { max-width: 1160px; margin: 0 auto; display: grid; grid-template-columns: 1fr 1fr; min-height: 500px; }
.lifestyle-img { background: url('images/home-hero-2.avif') center/cover no-repeat; min-height: 380px; }
.lifestyle-text { padding: 4rem 3.5rem; display: flex; flex-direction: column; justify-content: center; }
.lifestyle-text .section-label { color: rgba(255,255,255,0.38); }
.lifestyle-text h2 { font-family: 'Playfair Display',serif; font-size: clamp(1.75rem,2.5vw,2.3rem); color: var(--white); margin-bottom: 1.25rem; }
.lifestyle-text p { color: rgba(255,255,255,0.72); font-size: 0.94rem; line-height: 1.82; margin-bottom: 0.85rem; }

/* COMMUNITY ROWS */
.comm-rows { background: var(--white); }
.comm-row { max-width: 1160px; margin: 0 auto; display: grid; grid-template-columns: 1fr 1fr; align-items: start; gap: 4rem; padding: 4.5rem 3rem; border-bottom: 1px solid var(--cream-dark); }
.comm-row.flip { direction: rtl; }
.comm-row.flip > * { direction: ltr; }
.comm-row-img { width: 100%; height: 320px; object-fit: cover; border-radius: 8px; }
.comm-row-text h2 { font-family: 'Playfair Display',serif; font-size: clamp(1.6rem,2.5vw,2.2rem); color: var(--text); margin-bottom: 1rem; }
.comm-row-text p { color: var(--muted); font-size: 0.92rem; line-height: 1.82; margin-bottom: 1.5rem; }
.feature-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 1.25rem; margin-top: 2rem; }
.feature-item img { width: 100%; height: 145px; object-fit: cover; border-radius: 6px; margin-bottom: 0.75rem; }
.feature-item h4 { font-size: 0.92rem; font-weight: 600; color: var(--text); margin-bottom: 0.3rem; font-family: 'Inter',sans-serif; }
.feature-item p { font-size: 0.8rem; color: var(--muted); }

/* WHY KY */
.why-section { background: var(--forest); }
.why-section .section-title { color: var(--white); }
.why-section .section-sub { color: rgba(255,255,255,0.6); }
.why-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 2rem; }
.why-icon { width: 58px; height: 58px; border-radius: 50%; background: rgba(255,255,255,0.09); display: flex; align-items: center; justify-content: center; font-size: 1.5rem; margin: 0 auto 1rem; }
.why-item { text-align: center; }
.why-item h3 { font-size: 0.97rem; font-weight: 600; color: var(--white); margin-bottom: 0.45rem; font-family: 'Inter',sans-serif; }
.why-item p { font-size: 0.82rem; color: rgba(255,255,255,0.56); line-height: 1.65; }

/* CTA BAND */
.cta-band { background: var(--cream); text-align: center; padding: 5.5rem 3rem; }
.cta-band h2 { font-family: 'Playfair Display',serif; font-size: clamp(1.5rem,3vw,2.3rem); color: var(--text); margin-bottom: 0.75rem; }
.cta-band p { color: var(--muted); font-size: 0.94rem; max-width: 480px; margin: 0 auto 2rem; }

/* FORM */
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-bottom: 1rem; }
.form-group { display: flex; flex-direction: column; gap: 0.35rem; }
.form-group.full { grid-column: 1/-1; }
.form-group label { font-size: 0.75rem; font-weight: 600; color: var(--muted); }
.form-group input, .form-group select, .form-group textarea { padding: 0.65rem 0.9rem; border: 1.5px solid var(--cream-dark); border-radius: 5px; font-size: 0.9rem; font-family: 'Inter',sans-serif; color: var(--text); background: var(--white); transition: border-color 0.2s; width: 100%; }
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { outline: none; border-color: var(--forest); }
.form-group textarea { resize: vertical; min-height: 120px; }
.form-success { display: none; background: #e8f5e8; border: 1px solid #b8d8b8; border-radius: 6px; padding: 1rem 1.25rem; color: #1a5c1a; font-size: 0.9rem; margin-top: 1rem; }

/* FOOTER */
footer { background: var(--forest-dark); color: rgba(255,255,255,0.7); padding: 3.5rem 3rem 2rem; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 2.5rem; max-width: 1160px; margin: 0 auto 2.5rem; }
.footer-logo { font-family: 'Playfair Display',serif; color: var(--white); font-size: 1.15rem; display: block; margin-bottom: 0.75rem; }
.footer-brand p { font-size: 0.82rem; line-height: 1.75; }
.footer-col h4 { font-size: 0.68rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: rgba(255,255,255,0.35); margin-bottom: 1rem; }
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 0.5rem; }
.footer-col a { color: rgba(255,255,255,0.62); font-size: 0.84rem; transition: color 0.2s; }
.footer-col a:hover { color: var(--white); }
.footer-cta-btn { display: inline-flex; align-items: center; gap: 0.4rem; border: 1.5px solid rgba(255,255,255,0.28); color: var(--white); padding: 0.58rem 1.15rem; border-radius: 4px; font-size: 0.82rem; font-weight: 600; transition: all 0.2s; margin-top: 0.5rem; }
.footer-cta-btn:hover { border-color: var(--white); background: rgba(255,255,255,0.07); }
.footer-bottom { max-width: 1160px; margin: 0 auto; border-top: 1px solid rgba(255,255,255,0.1); padding-top: 1.5rem; font-size: 0.75rem; color: rgba(255,255,255,0.3); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 0.5rem; }

/* RESPONSIVE */
@media(max-width:960px) {
  nav { padding: 0 1.5rem; }
  .nav-links { display: none; position: absolute; top: 68px; left: 0; right: 0; background: var(--forest-dark); flex-direction: column; padding: 1rem 1.5rem 1.5rem; gap: 0.5rem; }
  .nav-links.open { display: flex; }
  .nav-toggle { display: flex; }
  .dropdown-menu { position: static; box-shadow: none; border-top: none; background: transparent; padding-left: 1rem; }
  .nav-dropdown:hover .dropdown-menu { display: none; }
  .nav-dropdown.open .dropdown-menu { display: block; }
  .section { padding: 3.5rem 1.5rem; }
  .hero { padding: 0 1.5rem; }
  .community-grid { grid-template-columns: 1fr; }
  .lifestyle-inner { grid-template-columns: 1fr; }
  .lifestyle-text { padding: 3rem 1.5rem; }
  .comm-row { grid-template-columns: 1fr; gap: 1.75rem; padding: 3rem 1.5rem; }
  .comm-row.flip { direction: ltr; }
  .why-grid { grid-template-columns: repeat(2,1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .photo-gallery { grid-template-columns: 1fr 1fr; grid-template-rows: auto; }
  .photo-gallery img:first-child { grid-row: auto; }
  .feature-grid { grid-template-columns: 1fr 1fr; }
  .form-row { grid-template-columns: 1fr; }
}
@media(max-width:560px) {
  .why-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .feature-grid { grid-template-columns: 1fr; }
  .hero { min-height: 70vh; }
  .hero-inner { padding-top: 3.5rem; }
  .hero h1 { font-size: 2.2rem; }
}
