/* ============================================
   SHARED SITE STYLES — HIL Home
   ============================================ */

:root {
  --gold: #D4AF37;
  --gold-light: #E8C766;
  --navy: #0B1426;
  --navy-soft: #16223D;
  --charcoal: #1A1A1A;
  --white: #FFFFFF;
  --off-white: #F7F5F0;
  --grey: #6B7280;
  --grey-light: #E5E7EB;
  --font-head: 'Montserrat', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;600;700;800;900&family=Inter:wght@300;400;500;600;700&display=swap');

/* ---------- Site Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(11, 20, 38, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(212, 175, 55, 0.2);
  transition: all 0.3s ease;
}

.site-header.scrolled {
  background: rgba(11, 20, 38, 0.98);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.25);
  border-bottom-color: rgba(212, 175, 55, 0.35);
}

.header-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
  height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
}

/* Brand */
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  flex-shrink: 0;
  transition: transform 0.3s ease;
}
.brand:hover { transform: translateY(-1px); }

.brand-mark {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--gold);
  color: var(--navy);
  font-family: var(--font-head);
  font-weight: 900;
  font-size: 0.95rem;
  letter-spacing: -0.5px;
  box-shadow: 0 4px 14px rgba(212, 175, 55, 0.35);
  border: 2px solid rgba(212, 175, 55, 0.5);
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
}

.brand-name {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1rem;
  color: var(--white);
  letter-spacing: 0.5px;
}

.brand-sub {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.72rem;
  color: var(--gold);
  letter-spacing: 3px;
  text-transform: uppercase;
}

/* Main Nav */
.main-nav {
  display: flex;
  align-items: center;
  gap: 36px;
  flex-grow: 1;
  justify-content: flex-end;
}

.main-nav ul {
  display: flex;
  align-items: center;
  gap: 6px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.main-nav ul li a {
  display: inline-block;
  padding: 10px 16px;
  font-family: var(--font-head);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.3px;
  color: rgba(255, 255, 255, 0.82);
  text-decoration: none;
  border-radius: 8px;
  position: relative;
  transition: all 0.25s ease;
}

.main-nav ul li a::after {
  content: '';
  position: absolute;
  bottom: 4px;
  left: 50%;
  transform: translateX(-50%) scaleX(0);
  width: 60%;
  height: 2px;
  background: var(--gold);
  transition: transform 0.3s ease;
  transform-origin: center;
}

.main-nav ul li a:hover { color: var(--white); }
.main-nav ul li a:hover::after { transform: translateX(-50%) scaleX(1); }

.main-nav ul li a.active { color: var(--gold); }
.main-nav ul li a.active::after { transform: translateX(-50%) scaleX(1); }

/* Contact CTA */
.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 24px;
  border-radius: 50px;
  background: var(--gold);
  color: var(--navy);
  font-family: var(--font-head);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 4px 16px rgba(212, 175, 55, 0.3);
  flex-shrink: 0;
}

.nav-cta:hover {
  background: var(--gold-light);
  color: var(--navy);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(212, 175, 55, 0.45);
}

/* Hamburger */
.nav-toggle {
  display: none;
  background: transparent;
  border: none;
  cursor: pointer;
  width: 40px;
  height: 40px;
  padding: 0;
  position: relative;
  flex-shrink: 0;
}

.nav-toggle span {
  display: block;
  position: absolute;
  left: 8px;
  right: 8px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: all 0.3s ease;
}

.nav-toggle span:nth-child(1) { top: 12px; }
.nav-toggle span:nth-child(2) { top: 19px; }
.nav-toggle span:nth-child(3) { top: 26px; }

.nav-toggle.active span:nth-child(1) { top: 19px; transform: rotate(45deg); background: var(--gold); }
.nav-toggle.active span:nth-child(2) { opacity: 0; transform: translateX(-10px); }
.nav-toggle.active span:nth-child(3) { top: 19px; transform: rotate(-45deg); background: var(--gold); }

/* Responsive Header */
@media (max-width: 960px) {
  .header-container { height: 68px; padding: 0 20px; }
  .brand-mark { width: 40px; height: 40px; font-size: 0.85rem; }
  .brand-name { font-size: 0.92rem; }
  .nav-toggle { display: block; }

  .main-nav {
    position: fixed;
    top: 68px;
    left: 0;
    right: 0;
    background: rgba(11, 20, 38, 0.98);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(212, 175, 55, 0.3);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 20px 20px 28px;
    transform: translateY(-120%);
    opacity: 0;
    visibility: hidden;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    max-height: calc(100vh - 68px);
    overflow-y: auto;
  }

  .main-nav.open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }

  .main-nav ul { flex-direction: column; align-items: stretch; gap: 4px; width: 100%; }
  .main-nav ul li a {
    display: block;
    padding: 14px 18px;
    font-size: 0.95rem;
    border-radius: 10px;
    border: 1px solid transparent;
  }
  .main-nav ul li a:hover { background: rgba(255,255,255,0.05); border-color: rgba(212,175,55,0.25); }
  .main-nav ul li a::after { display: none; }
  .main-nav ul li a.active { background: rgba(212,175,55,0.12); border-color: rgba(212,175,55,0.4); }

  .nav-cta {
    margin-top: 16px;
    justify-content: center;
    padding: 14px 24px;
    font-size: 0.85rem;
  }
}

@media (max-width: 400px) {
  .brand-text { display: none; }
  .brand-mark { width: 42px; height: 42px; }
}

/* ---------- Site Footer ---------- */
.site-footer {
  background: var(--charcoal);
  color: rgba(255,255,255,0.6);
  text-align: center;
  padding: 30px 24px;
  font-size: 0.85rem;
}

.site-footer strong { color: var(--gold); }
.site-footer a { color: var(--gold); text-decoration: none; }
.site-footer a:hover { color: var(--white); }