/* --GLOBAL RESET-- */


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

body {
  margin: 0;
  font-family: "Playfair Display", Georgia, serif;
  color: #2b2b2b;
  background: #faf7f2;
  line-height: 1.5;
}

img {
  display: block;
  max-width: 100%;
}

/* --CONTAINER-- */

.container {
  width: min(1100px, 92%);
  margin-inline: auto;
}

/* --HEADER / NAV-- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: #f6f3ee;
  border-bottom: 1px solid #e6dfd5;
  height: 220px;
}

.nav.container {
  position: relative;
  width: 100%;
  max-width: 2000px;
  margin-inline: auto;
  height: 220px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  padding: 0 24px;
  box-sizing: border-box;
  overflow: visible;
}

/* LEFT + RIGHT NAV GROUPS */
.nav__links {
  display: flex;
  align-items: center;
  gap: 50px;
  list-style: none;
  margin: 0;
  padding: 0;
  min-width: 0;
  position: relative;
  top: -16px;
}

.nav__links--left {
  justify-self: end;
  margin-right: 12px;
}

.nav__links--right {
  justify-self: start;
  margin-left: 12px;
}

/* CENTER LOGO */
.nav__brand {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 2;
  top: 38%;
  transform: translateY(-50%);
}

.nav__brand img {
  display: block;
  height: 300px;
  width: auto;
  max-width: none;
}

/* NAV LINKS */
.nav__link {
  font-family: "Source Sans 3", serif;
  display: inline-block;
  text-decoration: none;
  color: #333;
  font-size: 2rem;
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0.04em;
  white-space: nowrap;
  transition: color 0.25s ease;
}

.nav__link:hover {
  color: #a7703a;
}

/* SOCIAL - KEEP IN TOP LEFT */
.nav__social {
  position: absolute;
  left: 24px;
  top: 18px;
  transform: none;
  display: flex;
  align-items: center;
  gap: 18px;
  z-index: 3;
}

.nav__social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: #333;
  transition: color 0.25s ease, border-color 0.25s ease;
}

.nav__social-link i {
  font-size: 1.8rem;
  line-height: 1;
}

.nav__social-link:hover {
  color: #a7703a;
}

/* UTILITIES - KEEP IN TOP RIGHT */
.nav__utilities {
  position: absolute;
  right: 110px;
  top: 18px;
  transform: none;
  display: flex;
  align-items: center;
  gap: 18px;
  z-index: 3;
}

/* PHONE */
.nav__phone {
  text-decoration: none;
  color: #333;
  font-size: 1.1rem;
  font-weight: 600;
  white-space: nowrap;
  transition: color 0.25s ease;
  font-family: Georgia, "Times New Roman", Times, serif;
}

.nav__phone:hover {
  color: #a7703a;
}

/* REMOVE CIRCLES FROM SOCIAL + CART */
.nav__social a,
.nav__cart {
  border: none;
  border-radius: 0;
}

/* ICON SIZES - KEEP THE SAME */
.nav__cart i,
.nav__social i {
  font-size: 1.8rem;
  color: #3a3a3a;
}

.nav__social a:hover i,
.nav__cart:hover i {
  color: #a7703a;
}

/* CART */
.nav__cart {
  display: inline-flex;
  position: absolute;
  right: 24px;
  top: 6px;
  bottom: auto;
  left: auto;
  z-index: 5;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  text-decoration: none;
  color: #333;
  transition: color 0.25s ease, border-color 0.25s ease;
}

.nav__cart:hover {
  color: #a7703a;
}

.nav__cart-icon {
  font-size: 1.05rem;
  line-height: 1;
}

.nav__toggle {
  display: none !important;
}

/* SAFETY */
*,
*::before,
*::after {
  box-sizing: border-box;
}

/* Buttons*/
.btn__primary {
  display: inline-block;
  padding: 24px 36px;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  border: 2px solid #fff;
  border-radius: 999px;
  font-size: 1.1rem;
  font-weight: 600;
  text-decoration: none;
  letter-spacing: 0.04em;
  backdrop-filter: blur(6px);

  transition: all 0.3s ease;
}

.btn__primary:hover {
    background-color: #fff;
    color: #553e27;
     
}
.btn__secondary {
  display: inline-block;
  padding: 24px 44px;
  background: #7a5c3e;
  color: white;
  border-radius: 14px;
  text-decoration: none;
  letter-spacing: .04em;
  font-size: 1.2rem;
  font-weight: 600;
}

.btn__secondary:hover {
    background-color: #a7703a;
}

/* -------------------------
FOOTER
------------------------- */

.site-footer {
  padding: 16px 0;
  background: #2b2b2b;
  color: white;
  text-align: center;
}

.footer-bottom {
  margin-top: 8px;
  font-size: 14px;
  opacity: .7;
}

.footer-bottom p {
  margin: 0;
}

/* -------------------------
mobile menu hidden by default
------------------------- */
.mobile-menu {
  display: none;
}

/* -------------------------
RESPONSIVE
------------------------- */

@media (max-width: 900px) {
  .nav__links {
    flex-wrap: wrap;
    justify-content: center;
  }
}

@media (max-width: 768px) {
  .site-header {
    overflow: visible !important;
    position: relative;
  }

  .nav.container {
    width: 100% !important;
    max-width: 100% !important;
    height: 190px !important;
    min-height: 190px !important;
    padding: 12px 16px 0 !important;
    grid-template-columns: 1fr auto 1fr !important;
    align-items: start !important;
    overflow: visible !important;
  }

  .nav__brand {
    position: absolute !important;
    left: 50% !important;
    top: 44px !important;
    transform: translateX(-50%) !important;
    z-index: 3 !important;
  }

  .nav__brand img {
    height: 150px !important;
    width: auto !important;
  }

  .nav__social {
    left: 16px !important;
    top: 18px !important;
    gap: 12px !important;
  }

  .nav__utilities {
    position: absolute !important;
    right: 16px !important;
    top: 18px !important;
    gap: 12px !important;
    width: auto !important;
    z-index: 4 !important;
    align-items:  center !important;
  }

  .nav__phone {
    font-size: 0.95rem !important;
  }

  .nav__cart {
    display: inline-flex !important;
    position: absolute !important;
    right: 16px !important;
    bottom: 14px !important;
    top: auto !important;
    left: auto !important;
    z-index: 5 !important;
    display: inline-flex !important ;
  }

  .nav__toggle {
    display: block !important;
    position: absolute !important;
    left: 16px !important;
    bottom: 14px !important;
    top: auto !important;
    right: auto !important;
    background: none !important;
    border: none !important;
    padding: 0 !important;
    font-size: 30px !important;
    line-height: 1 !important;
    color: #333 !important;
    z-index: 5 !important;
  }

    .mobile-menu {
    display: none;
    position: absolute;
    top: 190px;
    left: 16px;
    right: 16px;
    background: transparent;
    border: none;
    border-radius: 22px;
    box-shadow: 0 18px 40px rgba(43, 43, 43, 0.14);
    padding: 8px 4px;
    z-index: 6;
    backdrop-filter: none;
    box-shadow: none;
     
  }

  .mobile-menu.is-open {
    display: block;
  }

  .mobile-menu__list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px 10px;
  }

  .mobile-menu__link {
    display: block;
    text-decoration: none;
    color: #333;
    font-family: "Source Sans 3", serif;
    font-size: 1.2rem;
    font-weight: 600;
    line-height: 1.2;
    text-align: center;
    padding: 12px 10px;
    border-radius: 12px;
    background: rgba(246, 237, 228, 0.95);
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: all 0.25s ease;
  }

  .mobile-menu__link:hover,
  .mobile-menu__link:focus-visible {
    background: #efe7da;
    color: #8d5c2c;
  }

    .site-header .nav__links,
  .site-header .nav__links--left,
  .site-header .nav__links--right {
    display: none !important;
    visibility: hidden !important;
    pointer-events: none !important;
  }
}

@media (max-width: 1280px) {
  .nav__links {
    gap: 24px !important;
  }

  .nav__links--left {
    margin-right: 0 !important;
  }

  .nav__links--right {
    margin-left: 0 !important;
  }
}
@media (max-width: 1400px) {
  .nav__links {
    gap: 36px !important;
  }

  .nav__links--left {
    margin-right: 0 !important;
  }

  .nav__links--right {
    margin-left: 0 !important;
  }
}