/* =====================================================
   JOHNNY PEPPERSTEIN
   SHARED NAVIGATION
   Sage Green / Antique Gold / Literary
===================================================== */

/* =====================================================
   NAVIGATION VARIABLES
===================================================== */

:root {
  --nav-sage-dark: #263a32;
  --nav-cream: #f3ecdc;
  --nav-gold: #c4a15a;
  --nav-gold-light: #d9bd78;
}

/* =====================================================
   HEADER
===================================================== */

.site-header {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  color: var(--nav-cream);
}

/* =====================================================
   NAV WRAPPER
===================================================== */

.nav-wrap {
  width: min(1240px, 90%);
  min-height: 92px;
  margin: auto;

  display: flex;
  align-items: center;
  justify-content: space-between;

  border-bottom: 1px solid rgba(224, 204, 157, 0.25);
}

/* =====================================================
   BRAND
===================================================== */

.brand {
  display: flex;
  align-items: center;
  gap: 13px;

  color: inherit;
  text-decoration: none;
}

/* =====================================================
   BRAND MARK
===================================================== */

.brand-mark {
  width: 45px;
  height: 45px;

  display: grid;
  place-items: center;

  position: relative;

  border: 1px solid var(--nav-gold);
  border-radius: 50%;

  color: var(--nav-gold-light);

  font-family: "Palatino Linotype", "Book Antiqua", Palatino, Georgia, serif;

  font-size: 18px;
}

/* Inner circle */

.brand-mark::after {
  content: "";

  position: absolute;
  inset: 4px;

  border: 1px solid rgba(196, 161, 90, 0.4);
  border-radius: 50%;
}

/* =====================================================
   BRAND TEXT
===================================================== */

.brand-text {
  color: var(--nav-cream);

  font-family: "Palatino Linotype", "Book Antiqua", Palatino, Georgia, serif;

  font-size: 18px;

  letter-spacing: 0.02em;
}

/* Subtitle */

.brand-text small {
  display: block;

 
  color: rgba(243, 236, 220, 0.55);

  font-family: Arial, sans-serif;
  font-size: 9px;
  font-weight: 400;

  letter-spacing: 0.22em;
  text-transform: uppercase;
}

/* =====================================================
   MAIN NAVIGATION
===================================================== */

.main-nav {
  display: flex;
  align-items: center;
  gap: 35px;
}

/* Navigation links */

.main-nav a {
  position: relative;

  color: rgba(243, 236, 220, 0.8);

  text-decoration: none;

  font-family: Arial, sans-serif;
  font-size: 10px;
  font-weight: 700;

  letter-spacing: 0.2em;
  text-transform: uppercase;

  transition: color 0.3s ease;
}

/* =====================================================
   NAVIGATION UNDERLINE
===================================================== */

.main-nav a::after {
  content: "";

  position: absolute;

  left: 0;
  bottom: -9px;

  width: 0;
  height: 1px;

  background: var(--nav-gold);

  transition: width 0.3s ease;
}

/* Hover + active */

.main-nav a:hover,
.main-nav a.active {
  color: var(--nav-gold-light);
}

.main-nav a:hover::after,
.main-nav a.active::after {
  width: 100%;
}

/* =====================================================
   MOBILE MENU BUTTON
===================================================== */

.menu-toggle {
  display: none;

  width: 42px;
  height: 42px;

  padding: 9px;

  border: 1px solid rgba(255, 255, 255, 0.3);

  background: transparent;

  color: var(--nav-cream);

  cursor: pointer;
}

/* Hamburger lines */

.menu-toggle span {
  display: block;

  width: 100%;
  height: 1px;

  margin: 5px 0;

  background: var(--nav-cream);

  transition:
    transform 0.3s ease,
    opacity 0.3s ease;
}

/* =====================================================
   MOBILE MENU — OPEN STATE
===================================================== */

.menu-toggle.active span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

/* =====================================================
   TABLET / MOBILE
===================================================== */

@media (max-width: 700px) {
  .nav-wrap {
    width: 90%;
    min-height: 75px;
  }

  /* -------------------------
     BRAND
  ------------------------- */

  .brand {
    gap: 10px;
  }

  .brand-mark {
    width: 40px;
    height: 40px;

    font-size: 16px;
  }

  .brand-text {
    font-size: 15px;
  }

  .brand-text small {
    font-size: 7px;
    letter-spacing: 0.18em;
  }

  /* -------------------------
     MOBILE BUTTON
  ------------------------- */

  .menu-toggle {
    display: block;
  }

  /* -------------------------
     MOBILE NAV
  ------------------------- */

  .main-nav {
    position: absolute;

    top: 75px;
    left: 5%;
    right: 5%;

    display: flex;
    flex-direction: column;

    gap: 0;

    padding: 20px;

    background: var(--nav-sage-dark);

    border: 1px solid rgba(196, 161, 90, 0.25);

    opacity: 0;
    pointer-events: none;

    transform: translateY(-10px);

    transition:
      opacity 0.3s ease,
      transform 0.3s ease;
  }

  /* Open navigation */

  .main-nav.open {
    opacity: 1;
    pointer-events: auto;

    transform: translateY(0);
  }

  /* Mobile links */

  .main-nav a {
    width: 100%;

    padding: 14px 5px;

    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }

  .main-nav a:last-child {
    border-bottom: none;
  }

  /* Mobile underline */

  .main-nav a::after {
    bottom: 6px;
  }
}

/* =====================================================
   SMALL PHONES
===================================================== */

@media (max-width: 430px) {
  .nav-wrap {
    width: calc(100% - 30px);
  }

  .brand-mark {
    width: 38px;
    height: 38px;

    font-size: 15px;
  }

  .brand-text {
    font-size: 13px;
  }

  .brand-text small {
    font-size: 6px;
    letter-spacing: 0.16em;
  }

  .menu-toggle {
    width: 40px;
    height: 40px;
  }
}
/* =====================================================
   LOGO CSS
===================================================== */

/* Logo colors */
:root {
  --cream: #f3ecdc;
  --display: "Palatino Linotype", "Book Antiqua", Palatino, Georgia, serif;
}

/* Logo container */
.footer-brand {
  display: flex;
  align-items: center;
  gap: 15px;
}

/* Main logo name */
.footer-brand strong {
  color: var(--cream);
  font-family: var(--display);
  font-size: 19px;
  font-weight: 500;
  line-height: 1;
}

/* Logo subtitle */
.footer-brand p {
  margin-top: 3px;
  color: rgba(243, 236, 220, 0.45);
  font-family: Arial, sans-serif;
  font-size: 8px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}