@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;0,9..40,700;1,9..40,300;1,9..40,400&family=Space+Grotesk:wght@300;400;500;600;700&display=swap');

:root {
  --dark-teal: #1A4146;
  --teal: #297272;
  --cream: #E8E0C8;
  --gold: #D3A446;
  --amber: #B66D2F;
  --off-white: #F5F1E8;
  --light-cream: #FAF8F2;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'DM Sans', sans-serif;
  color: var(--dark-teal);
  background: var(--light-cream);
  overflow-x: hidden;
}

/* ─── NAV ─── */
nav {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 100;
  padding: 0.75rem 3rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  background: rgba(245, 241, 232, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 1px 0 rgba(26, 65, 70, 0.08);
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--dark-teal);
}

.nav-logo img {
  width: 42px;
  height: 42px;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.nav-logo:hover img {
  transform: rotate(180deg);
}

.nav-logo span {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 500;
  font-size: 1.2rem;
  letter-spacing: -0.02em;
}

.footer-logo img {
  filter: brightness(0) invert(0.9);
}

.nav-links {
  display: flex;
  gap: 2.5rem;
  align-items: center;
  list-style: none;
}

.nav-links a {
  text-decoration: none;
  color: var(--dark-teal);
  font-size: 0.9rem;
  font-weight: 400;
  letter-spacing: 0.01em;
  position: relative;
  padding-bottom: 0;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1.5px;
  background: var(--teal);
  transition: width 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.nav-links a:hover::after { width: 100%; }

.nav-links a.active::after { width: 100%; }

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 3px solid rgba(41, 114, 114, 0.28);
  outline-offset: 3px;
}

.nav-cta {
  background: var(--dark-teal) !important;
  color: var(--cream) !important;
  padding: 0.6rem 1.5rem !important;
  border-radius: 100px;
  font-size: 0.85rem !important;
  font-weight: 500 !important;
  transition: all 0.3s ease !important;
}

.nav-cta::after { display: none !important; }
.nav-cta:hover { background: var(--teal) !important; transform: translateY(-1px); }

.mobile-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  z-index: 101;
}

.mobile-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--dark-teal);
  margin: 5px 0;
  transition: all 0.3s;
}

/* ─── MOBILE MENU ─── */
.mobile-menu {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: var(--light-cream);
  z-index: 99;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2rem;
}

.mobile-menu.open {
  display: flex;
}

.mobile-menu a {
  text-decoration: none;
  color: var(--dark-teal);
  font-size: 1.5rem;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 500;
}

/* ─── FOOTER ─── */
footer {
  background: var(--dark-teal);
  color: var(--cream);
  padding: 4rem 3rem 2rem;
}

.footer-top {
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 3rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(232, 224, 200, 0.1);
}

.footer-brand p {
  color: rgba(232, 224, 200, 0.5);
  font-size: 0.9rem;
  line-height: 1.6;
  margin-top: 1rem;
  font-weight: 300;
  max-width: 300px;
}

.footer-col h4 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 1.25rem;
  color: var(--gold);
  font-weight: 500;
}

.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-col a {
  color: rgba(232, 224, 200, 0.5);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.2s;
  font-weight: 300;
}

.footer-col a:hover { color: var(--cream); }

.footer-bottom {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 2rem;
}

.footer-bottom p {
  font-size: 0.8rem;
  color: rgba(232, 224, 200, 0.3);
}

.footer-socials {
  display: flex;
  gap: 1rem;
}

.footer-socials a {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(232, 224, 200, 0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(232, 224, 200, 0.4);
  text-decoration: none;
  font-size: 0.85rem;
  transition: all 0.2s;
}

.footer-socials a:hover {
  background: rgba(232, 224, 200, 0.12);
  color: var(--cream);
}

/* ─── SHARED RESPONSIVE ─── */
@media (max-width: 1024px) {
  .footer-top { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  nav { padding: 1rem 1.5rem; }
  .nav-links { display: none; }
  .mobile-toggle { display: block; }
  footer { padding: 3rem 1.5rem 2rem; }
  .footer-top { grid-template-columns: 1fr; gap: 2rem; }
  .footer-bottom { flex-direction: column; gap: 1rem; text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
