/* ============================================================
   LA CASTLE HOMES — HEADER & FOOTER CSS
   Shared component styles for fragments
   ============================================================ */

/* ─────────────────────────────────────────
   HEADER
───────────────────────────────────────── */
#site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: transparent;
  transition: background 0.35s ease, box-shadow 0.35s ease, backdrop-filter 0.35s ease;
}
#site-header.scrolled {
  background: rgba(11,11,11,0.96);
  box-shadow: 0 2px 30px rgba(0,0,0,0.5);
  backdrop-filter: blur(14px);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 5rem;
}
.logo {
  display: flex;
  flex-direction: column;
  line-height: 1;
}
.logo-name {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--gold);
  letter-spacing: 0.32em;
}
.logo-sub {
  font-size: 0.5rem;
  color: var(--text-dim);
  letter-spacing: 0.42em;
  text-transform: uppercase;
  margin-top: 2px;
}
.logo-img {
  height: 100px;
  width: auto;
  object-fit: contain;
  display: block;
  margin-top: 6px;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
}
.nav-link {
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  color: rgba(255,255,255,0.8);
  position: relative;
  padding-bottom: 3px;
  transition: color 0.2s;
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 0; height: 1px;
  background: var(--gold);
  transition: width 0.3s ease;
}
.nav-link:hover,
.nav-link.active { color: #fff; }
.nav-link:hover::after,
.nav-link.active::after { width: 100%; }

.nav-cta { font-size: 0.68rem !important; padding: 0.85rem 1.75rem !important; }

/* Hamburger */
.hamburger {
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 6px;
}
.hamburger span {
  display: block;
  height: 1.5px;
  background: #fff;
  transition: all 0.3s;
}
.hamburger span:nth-child(1) { width: 24px; }
.hamburger span:nth-child(2) { width: 24px; }
.hamburger span:nth-child(3) { width: 16px; }
.hamburger.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); width: 24px; }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); width: 24px; }

/* Mobile menu */
.mobile-menu {
  display: none;
  background: rgba(11,11,11,0.98);
  border-top: 1px solid var(--gold-border);
  padding: 1.5rem 2rem 2rem;
}
.mobile-menu.open { display: block; }
.mobile-menu ul {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}
.mobile-menu .nav-link { font-size: 0.9rem; }
.mobile-cta-btn {
  display: inline-flex !important;
  margin-top: 0.5rem;
}


/* ─────────────────────────────────────────
   FOOTER
───────────────────────────────────────── */
#site-footer {
  background: var(--black);
}

/* CTA Banner */
.footer-cta {
  background: var(--dark-2);
  border-top: 1px solid var(--dark-border);
  border-bottom: 1px solid var(--dark-border);
  padding: 4.5rem 0;
}
.footer-cta-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 2.5rem;
}
.footer-cta-text h2 {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3.5vw, 2.6rem);
  font-weight: 700;
  color: var(--white);
  margin-bottom: 0.5rem;
}
.footer-cta-text h2 em { color: var(--gold); font-style: italic; }
.footer-cta-text p { color: var(--text-muted); font-size: 0.9rem; }

/* Main Footer */
.footer-main { padding: 5rem 0 3.5rem; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 3.5rem;
}
@media (max-width: 1024px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px)  { .footer-grid { grid-template-columns: 1fr; } }

.footer-brand .logo { margin-bottom: 1.5rem; display: inline-flex; }
.footer-tagline {
  color: var(--text-dim);
  font-size: 0.82rem;
  line-height: 1.85;
  margin-bottom: 2rem;
}
.footer-contacts {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}
.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  color: var(--text-muted);
  font-size: 0.8rem;
  transition: color 0.2s;
}
a.footer-contact-item:hover { color: var(--gold); }

.footer-col-title {
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.5rem;
}
.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}
.footer-link {
  font-size: 0.83rem;
  color: var(--text-dim);
  transition: color 0.2s, padding-left 0.2s;
  display: inline-block;
}
.footer-link:hover { color: var(--gold); padding-left: 4px; }

/* Bottom bar */
.footer-bottom {
  border-top: 1px solid var(--dark-border);
  padding: 1.5rem 0;
}
.footer-bottom-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.footer-bottom p {
  font-size: 0.75rem;
  color: var(--text-faint);
}
.footer-legal {
  display: flex;
  gap: 1.5rem;
}
.footer-legal .footer-link { font-size: 0.75rem; }
