/* --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: min(2000px, 95%);
  margin-inline: auto;
  height: 220px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 0;
  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: 60px;
}

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

/* 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: 0;
  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: 58px;
  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: 0;
  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;
}

/* -------------------------
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;
  }

  .nav__links--left,
  .nav__links--right {
    display: none !important;
    position: absolute !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    background: #f6f3ee !important;
    flex-direction: column !important;
    gap: 18px !important;
    padding: 18px 16px 22px !important;
    z-index: 4 !important;
  }

  .nav__links--left.is-open {
    display: flex !important;
    top: 190px !important;
  }

  .nav__links--right.is-open {
    display: flex !important;
    top: 410px !important;
  }
}