/* ── INTERFACE Classes – Shared Navbar & Footer Styles ── */

:root {
  --bg-primary: #F2EDE4;
  --bg-surface: #EDE7DC;
  --bg-card: #F9F5EF;
  --primary: #B84A0F;
  --primary-mid: #A04010;
  --primary-deep: #7A2E08;
  --primary-light: rgba(184,74,15,0.06);
  --gold: #C9922A;
  --gold-soft: rgba(201,146,42,0.18);
  --text-primary: #1C1710;
  --text-secondary: #4A3F30;
  --text-muted: #7A6E5E;
  --page-pad: 56px;
  --thin-rule: 1px solid rgba(184,74,15,0.12);
}

/* ────────────────── NAVBAR ────────────────── */
.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 64px;
  z-index: 1000;
  background: rgba(242,237,228,0.92);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(184,74,15,0.12);
  transition: background 0.25s ease, box-shadow 0.25s ease;
}

.site-nav.scrolled {
  background: rgba(242,237,228,1);
  box-shadow: 0 1px 0 rgba(184,74,15,0.12);
}

.nav-inner {
  height: 100%;
  padding: 0 var(--page-pad);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
}

.brand {
  justify-self: start;
  display: inline-flex;
  flex-direction: row;
  align-items: center;
  gap: 0;
  line-height: 1;
  min-width: 0;
  white-space: nowrap;
}
.brand-logo {
  width: auto;
  height: 40px;
  max-width: 180px;
  border-radius: 6px;
  object-fit: contain;
  border: 0;
  background: transparent;
  flex-shrink: 0;
}

.nav-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 22px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-secondary);
}

.nav-links a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s;
}

.nav-links a:hover { color: var(--primary); }
.nav-links a.active {
  color: var(--primary);
  background: linear-gradient(180deg, rgba(184,74,15,0.16), rgba(184,74,15,0.1));
  border: 1px solid rgba(184,74,15,0.24);
  border-radius: 999px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.4);
  padding: 6px 12px;
}

.nav-toggle {
  display: none;
  background: transparent;
  border: 0;
  padding: 4px;
  cursor: pointer;
  flex-direction: column;
  gap: 5px;
  justify-self: end;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--primary);
}

.has-dropdown {
  position: relative;
}
.has-dropdown::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  height: 12px;
}

.dropdown-toggle {
  background: transparent;
  border: 0;
  color: var(--text-secondary);
  font: inherit;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  padding: 0;
}

.dropdown-indicator {
  width: 0.48rem;
  height: 0.48rem;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg) translateY(-1px);
  transform-origin: 55% 55%;
  transition: transform 0.2s ease, opacity 0.2s ease;
  opacity: 0.82;
}

.has-dropdown:hover .dropdown-indicator,
.has-dropdown.open .dropdown-indicator {
  transform: rotate(225deg) translateY(-1px);
  opacity: 1;
}

.dropdown-toggle:hover,
.dropdown-toggle.active {
  color: var(--primary);
}
.dropdown-toggle.active {
  background: linear-gradient(180deg, rgba(184,74,15,0.16), rgba(184,74,15,0.1));
  border: 1px solid rgba(184,74,15,0.24);
  border-radius: 999px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.4);
  padding: 6px 12px;
}

.dropdown-menu {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  min-width: 220px;
  list-style: none;
  margin: 0;
  padding: 10px;
  display: none;
  background: rgba(249,245,239,0.98);
  border: 1px solid rgba(184,74,15,0.16);
  border-radius: 12px;
  box-shadow: 0 10px 28px rgba(184,74,15,0.12);
}

.dropdown-menu a {
  display: block;
  padding: 9px 12px;
  font-size: 11px;
  border: 1px solid transparent;
  border-radius: 8px;
  color: var(--text-secondary);
}

.dropdown-menu a:hover {
  border-color: rgba(184,74,15,0.16);
  background: var(--primary-light);
}
.dropdown-menu a.active {
  border-color: rgba(184,74,15,0.16);
  background: var(--primary-light);
}

.has-dropdown:hover .dropdown-menu,
.has-dropdown.open .dropdown-menu {
  display: block;
}

.nav-cta {
  justify-self: end;
  background: var(--primary);
  color: var(--bg-card);
  border: 0;
  border-radius: 0;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.05em;
  padding: 10px 22px;
  transition: background 0.2s ease;
  text-decoration: none;
}

.nav-cta:hover { background: var(--primary-mid); }
.nav-cta-mobile-item,
.nav-cta-mobile {
  display: none;
}

/* ────────────────── FOOTER ────────────────── */
.site-footer {
  background: #1A0E00; /* Richer dark brown */
  color: rgba(249, 245, 239, 0.7);
  padding: 80px var(--page-pad) 40px;
  border-top: 1px solid rgba(184, 74, 15, 0.2);
  font-family: "Inter", sans-serif;
}

.footer-main {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: 60px;
  margin-bottom: 60px;
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.footer-logo {
  height: 48px;
  width: auto;
  align-self: flex-start;
  filter: brightness(1.1);
  border-radius: 6px;
}

.footer-desc {
  font-size: 14px;
  line-height: 1.7;
  color: rgba(249, 245, 239, 0.5);
  margin: 0;
  max-width: 320px;
}

.footer-title {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 18px;
  font-weight: 700;
  color: var(--bg-card);
  margin: 0;
  position: relative;
  padding-bottom: 12px;
}

.footer-title::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 30px;
  height: 2px;
  background: var(--gold);
}

.footer-nav-list,
.footer-contact-info {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-nav-list a {
  font-size: 14px;
  color: inherit;
  text-decoration: none;
  transition: all 0.25s ease;
  display: inline-block;
}

.footer-nav-list a:hover {
  color: var(--gold);
  transform: translateX(5px);
}

.footer-nav-list a.active {
  color: var(--gold);
  font-weight: 600;
}

.footer-contact-info li {
  display: flex;
  gap: 12px;
  font-size: 14px;
  line-height: 1.5;
  color: rgba(249, 245, 239, 0.6);
}

.footer-contact-info i {
  color: var(--gold);
  font-size: 16px;
  flex-shrink: 0;
}

.footer-contact-info a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s;
}

.footer-contact-info a:hover {
  color: var(--gold);
}

.footer-bottom {
  border-top: 1px solid rgba(249, 245, 239, 0.08);
  padding-top: 32px;
}

.footer-bottom-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  color: rgba(249, 245, 239, 0.4);
}

.footer-credits a {
  color: rgba(201, 146, 42, 0.8);
  text-decoration: none;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  transition: color 0.2s;
}

.footer-credits a:hover {
  color: var(--gold);
}

/* ────────────────── MOBILE RESPONSIVE ────────────────── */
@media (max-width: 1024px) {
  .nav-inner {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px;
  }
  .nav-toggle { display: flex; }
  .nav-links {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: rgba(242,237,228,0.98);
    border-bottom: 1px solid rgba(184,74,15,0.12);
    padding: 12px var(--page-pad) 16px;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
  .nav-links.open { display: flex; }
  .nav-links li { width: 100%; }
  .nav-links a,
  .dropdown-toggle {
    display: block;
    width: 100%;
    font-size: 12px;
    text-align: left;
  }
  .dropdown-menu {
    position: static;
    min-width: 100%;
    padding: 6px 6px 6px 10px;
    border: 1px solid rgba(184,74,15,0.12);
    border-radius: 10px;
    box-shadow: none;
    background: rgba(249,245,239,0.95);
  }
  .has-dropdown::after { display: none; }
  .dropdown-menu a {
    font-size: 12px;
    padding: 8px 10px;
  }
  .nav-cta {
    display: none;
  }
  .nav-cta-mobile-item {
    display: block;
    margin-top: 8px;
    padding-top: 10px;
    border-top: 1px solid rgba(184,74,15,0.12);
  }
  .nav-cta-mobile {
    display: block;
    width: 100%;
    text-align: center;
    padding: 10px 14px;
    letter-spacing: 0.08em;
  }
  
  .footer-main {
    grid-template-columns: 1fr 1fr;
    gap: 40px;
  }
}

@media (max-width: 768px) {
  :root { --page-pad: 22px; }
  .nav-inner { padding: 0 var(--page-pad); }
  
  .footer-main {
    grid-template-columns: 1fr;
    gap: 48px;
  }
  
  .footer-bottom-inner {
    flex-direction: column;
    gap: 16px;
    text-align: center;
  }
}

@media (max-width: 480px) {
  :root { --page-pad: 16px; }
  .brand-logo { height: 34px; }
}
