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

:root {
  --black: #0c0c0c;
  --white: #f5f3ef;
  --cream: #ede8df;
  --gold: #b89a6a;
  --gold-lt: #d4b98a;
  --gray: #888580;
  --serif: 'Cormorant Garamond', Georgia, serif;
  --sans: 'Outfit', sans-serif;

  /* Theme tokens */
  --bg: var(--white);
  --bg-dark: var(--black);
  --bg-alt: var(--cream);
  --text: var(--black);
  --text-on-dark: var(--white);
  --text-muted: rgba(245, 243, 239, .65);
  --text-muted-light: rgba(245, 243, 239, .45);
  --nav-bg: rgba(12, 12, 12, 0.96);
  --nav-link: rgba(245, 243, 239, .65);
  --card-bg: var(--white);
  --card-border: rgba(12, 12, 12, .08);
  --footer-bg: #080808;
  --footer-text: rgba(245, 243, 239, .3);
  --input-bg: rgba(255, 255, 255, .06);
  --input-border: rgba(245, 243, 239, .15);
  --input-text: var(--white);
  --input-placeholder: rgba(245, 243, 239, .35);
  --divider-color: var(--gold);
}

.light {
  --bg: #faf9f7;
  --bg-dark: #f0ece5;
  --bg-alt: #ffffff;
  --text: #1a1a1a;
  --text-on-dark: #1a1a1a;
  --text-muted: rgba(26, 26, 26, .6);
  --text-muted-light: rgba(26, 26, 26, .4);
  --nav-bg: rgba(250, 249, 247, 0.96);
  --nav-link: rgba(26, 26, 26, .6);
  --card-bg: #ffffff;
  --card-border: rgba(0, 0, 0, .08);
  --footer-bg: #1a1a1a;
  --footer-text: rgba(245, 243, 239, .4);
  --input-bg: rgba(0, 0, 0, .04);
  --input-border: rgba(0, 0, 0, .15);
  --input-text: #1a1a1a;
  --input-placeholder: rgba(26, 26, 26, .4);
  --divider-color: var(--gold);
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
  transition: background .3s, color .3s;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* -- NAV -- */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.4rem 5vw;
  background: var(--nav-bg);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(184, 154, 106, 0.18);
  transition: padding .3s, background .3s;
}

.nav-logo {
  font-family: var(--serif);
  font-size: 1.55rem;
  font-weight: 600;
  color: var(--text-on-dark);
  letter-spacing: .06em;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: .6rem;
}

.nav-logo span {
  color: var(--gold);
}

.nav-links {
  display: flex;
  gap: 2.4rem;
  list-style: none;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}

.nav-links a {
  font-family: var(--sans);
  font-size: .8rem;
  font-weight: 500;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--nav-link);
  text-decoration: none;
  transition: color .25s;
}

.nav-links a:hover {
  color: var(--gold-lt);
}

.nav-right {
  display: flex;
  align-items: center;
  gap: .8rem;
}

.nav-cta {
  font-family: var(--sans);
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--black);
  background: var(--gold);
  padding: .55rem 1.4rem;
  border-radius: 2px;
  text-decoration: none;
  transition: background .25s, transform .2s;
}

.nav-cta:hover {
  background: var(--gold-lt);
  transform: translateY(-1px);
}

.burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
}

.burger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text-on-dark);
  transition: .3s;
}

/* -- THEME TOGGLE -- */
.theme-toggle {
  background: none;
  border: 1px solid rgba(184, 154, 106, .3);
  border-radius: 50%;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1rem;
  transition: border-color .25s, transform .2s;
  flex-shrink: 0;
}

.theme-toggle:hover {
  border-color: var(--gold);
  transform: scale(1.1);
}

/* -- DIVIDER -- */
.divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  margin: 0;
}

/* -- SECTION BASE -- */
section {
  padding: 6rem 5vw;
}

.section-label {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  font-family: var(--sans);
  font-size: .7rem;
  font-weight: 600;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.2rem;
}

.section-label::before {
  content: '';
  display: block;
  width: 24px;
  height: 1px;
  background: var(--gold);
}

.section-title {
  font-family: var(--serif);
  font-size: clamp(2rem, 4vw, 3.4rem);
  font-weight: 300;
  line-height: 1.15;
  color: var(--text);
}

.section-title em {
  font-style: italic;
  color: var(--gold);
}

/* -- BUTTONS -- */
.btn-primary {
  font-family: var(--sans);
  font-size: .82rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--black);
  background: var(--gold);
  padding: .85rem 2rem;
  border-radius: 2px;
  text-decoration: none;
  transition: background .25s, transform .2s, box-shadow .25s;
}

.btn-primary:hover {
  background: var(--gold-lt);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(184, 154, 106, .25);
}

.btn-outline {
  font-family: var(--sans);
  font-size: .82rem;
  font-weight: 500;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--text-on-dark);
  border: 1px solid rgba(245, 243, 239, .25);
  padding: .85rem 2rem;
  border-radius: 2px;
  text-decoration: none;
  transition: border-color .25s, background .25s;
}

.btn-outline:hover {
  border-color: var(--gold);
  background: rgba(184, 154, 106, .08);
}

.btn-ig {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  font-family: var(--sans);
  font-size: .82rem;
  font-weight: 500;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--text-on-dark);
  border: 1px solid rgba(184, 154, 106, .3);
  padding: .9rem 2rem;
  border-radius: 2px;
  text-decoration: none;
  transition: border-color .25s, background .25s;
}

.btn-ig:hover {
  border-color: var(--gold);
  background: rgba(184, 154, 106, .08);
}

/* -- FOOTER -- */
footer {
  background: #080808;
  padding: 2.5rem 5vw;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 1rem;
  border-top: 1px solid rgba(184, 154, 106, .12);
}

.footer-logo {
  font-family: var(--serif);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--white);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: .5rem;
}

.footer-logo span {
  color: var(--gold);
}

footer p {
  font-size: .74rem;
  color: rgba(245, 243, 239, .3);
  letter-spacing: .05em;
}

.footer-links {
  display: flex;
  gap: 1.5rem;
}

.footer-links a {
  font-size: .74rem;
  color: rgba(245, 243, 239, .3);
  text-decoration: none;
  letter-spacing: .08em;
  transition: color .2s;
}

.footer-links a:hover {
  color: var(--gold);
}

.footer-dev {
  width: 100%;
  text-align: center;
  padding-top: 1rem;
  border-top: 1px solid rgba(245, 243, 239, .06);
}

.footer-dev a {
  font-size: .68rem;
  color: rgba(245, 243, 239, .2);
  text-decoration: none;
  letter-spacing: .05em;
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  transition: color .2s;
}

.footer-dev a:hover {
  color: rgba(245, 243, 239, .5);
}

.footer-dev svg {
  width: 14px;
  height: 14px;
  fill: currentColor;
}

/* -- ANIMATIONS -- */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(22px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .7s ease, transform .7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: none;
}

/* -- RESPONSIVE SHARED -- */
@media (max-width: 900px) {
  .nav-cta {
    display: none;
  }

  .theme-toggle {
    margin-left: auto;
  }

  .nav-links {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    left: auto;
    right: -100%;
    transform: none;
    width: 70vw;
    max-width: 300px;
    height: 100vh;
    background: rgba(12, 12, 12, 0.98);
    padding: 5rem 2rem 2rem;
    gap: 1.5rem;
    transition: right .3s ease;
    z-index: 99;
  }

  .nav-links.open {
    right: 0;
  }

  .nav-links a {
    font-size: 1rem;
    color: rgba(245, 243, 239, .8);
    min-height: 44px;
    display: flex;
    align-items: center;
  }

  .burger {
    display: flex;
    min-width: 44px;
    min-height: 44px;
    align-items: center;
    justify-content: center;
    z-index: 101;
  }

  .burger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }

  .burger.active span:nth-child(2) {
    opacity: 0;
  }

  .burger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
  }

  footer {
    flex-direction: column;
    text-align: center;
    align-items: center;
    justify-content: center;
  }

  .footer-links {
    flex-wrap: wrap;
    justify-content: center;
  }

  /* Touch targets */
  .btn-primary,
  .btn-outline,
  .btn-ig {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .footer-links a {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
  }
}

/* -- LIGHT THEME SHARED -- */
.light nav {
  border-bottom: 1px solid rgba(0, 0, 0, .08);
}

.light .burger span {
  background: #1a1a1a;
}

@media (max-width: 900px) {
  .light .nav-links {
    background: rgba(250, 249, 247, 0.98);
  }

  .light .nav-links a {
    color: rgba(26, 26, 26, .8);
  }
}
