/* ── Variables ── */
:root {
  --primary:       #a0622a;
  --primary-light: rgba(160,98,42,.3);
  --bg:            #2e2218;
  --card-bg:       #4c392c;
  --fg:            #f9f7f4;
  --muted:         #c4b8a8;
  --border:        #5a4a3a;
  --footer-bg:     #1a1410;
}

/* ── Base ── */
html, body {
  max-width: 100%;
  overflow-x: hidden;
  position: relative;
}
body { background: var(--bg); color: var(--fg); font-family: 'Inter', sans-serif; }
h1,h2,h3,h4,h5 { font-family: 'Playfair Display', serif; }
a:hover { text-decoration: none; }
.tooltip { --bs-tooltip-opacity: 1 !important; }

/* ── Navbar ── */
#mainNav {
  background: rgba(46,34,24,.95);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--border);
  width: 100vw; 
  left: 0;
  right: 0;
  box-sizing: border-box;
  --bs-navbar-toggler-icon-bg: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28160, 98, 42, 0.75%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") !important;
}
#mainNav .navbar-brand svg { color: var(--primary); }
#mainNav .navbar-brand span { font-family: 'Playfair Display', serif; font-size: 1.2rem; color: var(--fg); }
#mainNav .nav-link { color: var(--muted); font-size: .875rem; font-weight: 500; transition: color .2s; }
#mainNav .nav-link:hover { color: var(--fg); }
.btn-primary-custom {
  background: var(--primary); color: var(--fg); border: none;
  padding: 0.65rem 1.5rem; border-radius: .375rem; font-size: 1rem; font-weight: 500;
  transition: opacity .2s;
}
.btn-primary-custom:hover { 
  color: var(--fg); 
  background-color: color-mix(in oklab, var(--primary) 90%, transparent);
}
.btn-primary-custom:active { 
  color: var(--fg); 
  background-color: color-mix(in oklab, var(--primary) 80%, black) !important;
}

/* ── Hero ── */
#hero {
  min-height: 100vh;
  background: url('../hero-house.jpg?v=2') center/cover no-repeat;
  position: relative;
  display: flex; align-items: center;
  overflow: hidden;
}
#hero .hero-top h1 { font-family: "Urbanist", sans-serif; text-transform: uppercase; letter-spacing: clamp(0.25rem, 0.5rem, 0.75rem); display: inline-block; text-shadow: 2px 2px 5px #00000052; }
#hero .hero-content { position: relative; z-index: 1; padding-top: 5rem;}
#hero .eyebrow { font-size: .75rem; letter-spacing: .15em; text-transform: uppercase; color: rgba(249,247,244,.8); }
#hero h1 { font-size: clamp(2.2rem, 5vw, 4.25rem); color: var(--fg); line-height: 1.15; font-weight: 400 !important;}
#hero .lead { color: rgba(249,247,244,.9); max-width: 36rem; }
.hero-slide-container {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}
.hero-slide-layer {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  transform: translateX(100%);
  opacity: 0;
  transition: transform .85s ease, opacity .85s ease;
  z-index: 0;
}
.hero-slide-layer.active {
  transform: translateX(0);
  opacity: 1;
  z-index: 2;
}
.hero-slide-layer.outgoing {
  transform: translateX(-100%);
  opacity: 0;
  z-index: 1;
}
.hero-heading-slide {
  display: inline-block;
  transition: transform .45s ease, opacity .45s ease;
}
.hero-heading-slide.slide-out {
  transform: translateX(-15px);
  opacity: 0;
}
.hero-heading-slide.slide-in {
  transform: translateX(0);
  opacity: 1;
}
.btn-hero-outline {
  background: transparent; border: 1px solid var(--fg); color: var(--fg);
  padding: .65rem 1.5rem; border-radius: .375rem; font-size: 1rem; font-weight: 500;
  transition: background .2s;
}
.btn-hero-outline:hover { background: rgba(249,247,244,.12); color: var(--fg); }
.hero-stats { border-top: 1px solid rgba(249,247,244,.2); padding-top: 2rem; margin-top: 3rem; }
.hero-stats .stat-num { font-family: 'Playfair Display', serif; font-size: 2rem; font-weight: 700; color: var(--fg); }
.hero-stats .stat-lbl { font-size: .8rem; color: rgba(249,247,244,.7); }
.scroll-hint { position: absolute; bottom: 2rem; left: 50%; transform: translateX(-50%); z-index: 1; color: rgba(249,247,244,.7); text-decoration: none; font-size: .7rem; letter-spacing: .1em; text-transform: uppercase; }
.scroll-hint:hover { color: var(--fg); }
.bounce { animation: bounce 1.6s infinite; }
@keyframes bounce { 0%,100%{transform:translateY(0)} 50%{transform:translateY(6px)} }

/* ── Bootstrap extension ── */
.py-lg-6 { padding-top: 5rem !important; padding-bottom: 5rem !important; }

/* ── Section shared ── */
.section-eyebrow { font-size: .75rem; letter-spacing: .15em; text-transform: uppercase; color: var(--primary); }
.section-title { font-size: clamp(1.75rem, 3vw, 2.25rem); font-weight: 700; }
.text-muted-custom { color: var(--muted); }

/* ── Houses ── */
#houses { background: var(--bg); }
.house-card { border: 1px solid var(--border); border-radius: .5rem; overflow: hidden; background: var(--card-bg); transition: box-shadow .3s; }
.house-card:hover { box-shadow: 0 8px 24px rgba(0,0,0,.1); }
.house-card .img-wrap { position: relative; aspect-ratio: 4/3; overflow: hidden; }
.house-card .img-wrap img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.house-card:hover .img-wrap img { transform: scale(1.05); }
.coming-soon-placeholder { aspect-ratio: 4/3; background: var(--border); }
.coming-soon-label { font-size: 1.1rem; font-weight: 600; color: var(--muted); letter-spacing: .05em; }
.price-badge { position: absolute; top: .75rem; right: .75rem; background: var(--primary); color: #f9f7f4; font-size: .8rem; font-weight: 600; padding: .25rem .65rem; border-radius: .25rem; }
.house-card .card-body { padding: 1.25rem; }
.house-card h3 { font-size: 1.2rem; font-weight: 600; margin-bottom: .4rem; }
.house-card .desc { font-size: .85rem; color: var(--muted); display: -webkit-box; -webkit-box-orient: vertical; overflow: hidden; }
.spec-icon { width: 1rem; height: 1rem; color: var(--muted); }
.spec-text { font-size: .85rem; color: var(--muted); }
.feature-badge { background: var(--primary-light); color: var(--fg); font-size: .72rem; padding: .2rem .55rem; border-radius: .25rem; }

.btn-close {
  --bs-btn-close-bg: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23a0622a'%3e%3cpath d='M.293.293a1 1 0 0 1 1.414 0L8 6.586 14.293.293a1 1 0 1 1 1.414 1.414L9.414 8l6.293 6.293a1 1 0 0 1-1.414 1.414L8 9.414l-6.293 6.293a1 1 0 0 1-1.414-1.414L6.586 8 .293 1.707a1 1 0 0 1 0-1.414z'/%3e%3c/svg%3e") !important;
}

.modal-content {
  background: rgba(58,45,36,.98) !important;
  border-radius: 1rem;
  border: 1px solid rgba(249,247,244,.08);
}
.modal-header {
  padding-bottom: 0;
}
.modal-title {
  color: var(--primary);
  font-size: 1.8rem;
}
.modal-body {
  color: var(--muted);
}
.house-modal-gallery .house-modal-image {
  border-radius: .85rem;
  overflow: hidden;
  width: 100%;
  aspect-ratio: 4/3;
  background: #2a2018;
}
.house-modal-gallery .house-modal-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .3s ease;
}
.house-modal-gallery .house-modal-image:hover img {
  transform: scale(1.03);
}
.modal-footer {
  padding-top: 1rem;
}
.modal-footer span {
  color: var(--muted);
}

/* ── Benefits ── */
#benefits { background: #3a2d24; }
.benefit-card { background: var(--card-bg); border: 1px solid var(--border); border-radius: .5rem; padding: 1.5rem; transition: box-shadow .25s, transform .25s, border-color .25s; }
.benefit-card:hover { box-shadow: 0 12px 32px rgba(0,0,0,.35); transform: translateY(-4px); border-color: var(--primary); }
.benefit-icon { width: 3rem; height: 3rem; border-radius: 50%; background: var(--primary-light); display: flex; align-items: center; justify-content: center; margin-bottom: 1rem; }
.benefit-icon svg { width: 1.4rem; height: 1.4rem; color: var(--primary); }
.benefit-card h3 { font-size: 1.05rem; font-weight: 600; margin-bottom: .4rem; }
.benefit-card p { font-size: .85rem; color: var(--muted); line-height: 1.6; margin: 0; }
.trust-card { border: 1px solid rgba(0,0,0,0); border-radius: .75rem; padding: 2rem; transition: box-shadow .25s, transform .25s, border-color .25s; cursor: default; }
.trust-card:hover { box-shadow: 0 12px 32px rgba(0,0,0,.35); transform: translateY(-4px); border-color: var(--primary); }
.trust-num { font-family: 'Playfair Display', serif; font-size: 2.5rem; font-weight: 700; color: var(--primary); }
.trust-lbl { font-size: .8rem; color: var(--muted); }
.trust-lbl span { color: var(--fg); }

/* ── Contact ── */
#contact { background: var(--bg); }
.contact-card { background: var(--card-bg); border: 1px solid var(--border); border-radius: .75rem; padding: 2rem; box-shadow: 0 1px 4px rgba(0,0,0,.05); }
.contact-card h3 { font-size: 1.2rem; font-weight: 600; margin-bottom: 1.5rem; }
.form-control, .form-control:focus { background: var(--bg); border: 1px solid var(--border); color: var(--fg); border-radius: .375rem; font-size: .9rem; box-shadow: none; }
.form-control:focus { border-color: var(--primary); }
.form-label { font-size: .875rem; font-weight: 500; color: var(--fg); }
.contact-info-icon { width: 2.5rem; height: 2.5rem; border-radius: 50%; background: var(--primary-light); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.contact-info-icon svg { width: 1.1rem; height: 1.1rem; color: var(--primary); }
.contact-info-title { font-weight: 500; font-size: .9rem; }
.contact-info-text { font-size: .85rem; color: var(--muted); margin: 0; }
.contact-info-text a { color: var(--muted); text-decoration: none; }
.contact-info-text a:hover { color: var(--primary); }
.contact-logo { width: 10rem; height: auto; }
.contact-logo:hover { filter: contrast(0.1) brightness(2.0); }
.map-wrap { border-radius: .75rem; overflow: hidden; border: 1px solid var(--border); aspect-ratio: 16/9; }
.map-wrap iframe { width: 100%; height: 100%; border: 0; display: block; }
.alert-success-custom { background: #f0fdf4; border: 1px solid #bbf7d0; color: #166534; border-radius: .375rem; padding: .75rem 1rem; font-size: .875rem; }
.alert-error-custom  { background: #fef2f2; border: 1px solid #fecaca; color: #991b1b; border-radius: .375rem; padding: .75rem 1rem; font-size: .875rem; }
#contactBenefits .contact-card { transition: box-shadow .25s, transform .25s, border-color .25s; }
#contactBenefits .contact-card:hover { box-shadow: 0 12px 32px rgba(0,0,0,.35); transform: translateY(-4px); border-color: var(--primary); }

.survey-carousel .carousel-item { padding: 0; }
.survey-step-title { font-size: 1.1rem; font-weight: 700; color: var(--fg); }
.survey-step-excerpt { color: var(--muted); margin-bottom: 1.5rem; }
.survey-carousel .form-check { margin-bottom: .5rem; }
.survey-carousel .form-check-input { margin-top: .15rem; background-color: var(--muted); font-size: 0.85rem; }
.survey-carousel .form-check-label.option-card { display: block; width: 100%; font-size: 0.85rem; padding: 0.25rem 1rem; border-radius: .75rem; border: 1px solid rgba(255,255,255,.12); background: rgba(255,255,255,.03); color: var(--fg); cursor: pointer; transition: border-color .2s, background .2s, transform .2s; }
.survey-carousel .form-check-input:focus { box-shadow: 0 0 0 .25rem var(--primary-light) !important; }
.survey-carousel .form-check-input:checked { background-color: var(--primary); border-color: var(--primary); }
.survey-carousel .form-check-input:checked + .form-check-label.option-card { background: rgba(160,98,42,.18); border-color: var(--primary); }
.survey-carousel .form-check-label.option-card:hover { background: rgba(255,255,255,.05); }
.survey-carousel .step-indicator { font-size: .9rem; letter-spacing: .03em; color: var(--primary); }
.survey-carousel .btn-outline-light { border-color: rgba(255,255,255,.18); color: var(--fg); padding: 0.65rem 1.5rem; font-size: 1rem;}
.survey-carousel .btn-outline-light:hover { background: rgba(255,255,255,.08); }
.survey-carousel .form-control, .survey-carousel .form-control:focus { background: var(--bg); border: 1px solid var(--border); color: var(--fg); }
.bs-tooltip-top .tooltip-arrow::before, .bs-tooltip-auto[data-popper-placement^=top] .tooltip-arrow::before {
  border-top-color: var(--primary) !important;
}
.bs-tooltip-bottom .tooltip-arrow::before, .bs-tooltip-auto[data-popper-placement^=bottom] .tooltip-arrow::before {
  border-bottom-color: var(--primary) !important;
}
.tooltip-inner { background: none; padding: 0; max-width: 100%; }
.tooltip-inner.image { background-color: var(--primary); padding: .5rem; border-radius: .5rem; }
.tooltip-inner.image img { max-width: 400px; }

/* ── Footer ── */
footer { background: var(--footer-bg); color: rgba(249,247,244,.9); }
footer .brand-name { font-family: 'Playfair Display', serif; font-size: 1.2rem; }
footer p.tagline { font-size: .85rem; color: rgba(249,247,244,.65); max-width: 22rem; line-height: 1.7; }
footer .social-btn { width: 2.25rem; height: 2.25rem; border-radius: 50%; background: rgba(249,247,244,.1); display: flex; align-items: center; justify-content: center; transition: background .2s; }
footer a.social-btn { color: var(--muted); }
footer .social-btn:hover { background: rgba(249,247,244,.2); }
footer .social-btn svg { width: 1rem; height: 1rem; color: rgba(249,247,244,.9); }
footer h4 { font-size: .95rem; font-weight: 600; margin-bottom: 1rem; color: #f9f7f4; font-family: 'Inter', sans-serif; }
footer ul { list-style: none; padding: 0; margin: 0; }
footer ul li + li { margin-top: .75rem; }
footer ul a { font-size: .85rem; color: rgba(249,247,244,.65); text-decoration: none; transition: color .2s; }
footer ul a:hover { color: #f9f7f4; }
footer .footer-bottom { border-top: 1px solid rgba(249,247,244,.1); margin-top: 3rem; padding-top: 2rem; font-size: .8rem; color: rgba(249,247,244,.5); }

/* ── Pulse animation ── */
@keyframes pulse-glow {
  0% { box-shadow: 0 0 0 0 rgba(160,98,42, 0.7); }
  70% { box-shadow: 0 0 0 10px rgba(160,98,42, 0); }
  100% { box-shadow: 0 0 0 0 rgba(160,98,42, 0); }
}
.pulse-btn {
  animation: pulse-glow 2s infinite;
}
