/*
Theme Name: Love Apple
Theme URI: https://loveapplecafebar.co.uk/
Author: Daniel Jackson
Author URI: https://danielmjackson.co.uk/
Version: 1.0.0
Description: Theme for The Love Apple Cafe-Bar, 44-46 Bingley Rd, Saltaire, BD18 4RU.
*/

:root {
  --font-color: #101010;
  --background-color: #F2F2F2;
  --main-transition: all 0.5s ease;
}

html {
  -webkit-font-smoothing: antialiased;
    box-sizing: border-box;
}

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

body {
  margin: 0px;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  font-optical-sizing: auto;
  font-weight: 430;
  color: var(--font-color);
  font-width: 100;
  font-variation-settings:
    "wdth" 100;
  font-style: normal;
  font-size: 1rem;
  min-height: 100svh;
  background: #fff;
}

h1, h2, h3, h4, h5 {
  font-variation-settings:
    "wdth" 56;
  font-weight: 700;
  text-transform: uppercase;
}
h2 {
  text-align: center;
  padding-bottom: 20px;
  border-bottom: 1px solid #CCC;
  margin-bottom: 20px;
  font-size: 1.26rem;
}
h3, h4, h5, h6 {
  margin: 1.8em 0 1em; 
}
h3 {
  font-size: 1.17rem;
}
h4 {
  font-size: 1rem;
}
h5, h6 {
  font-size: .85rem;
}
p {
  font-size: .85rem;
  margin: 0 0 1rem;
}
main {
  display: flex;
  flex-direction: column;
}
#header {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  transition: var(--main-transition);
  height: 90px;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  background-color: #FFF;
}
.home #header {
  background-color: transparent;
}
#header.scrolled {
  height: 60px;
}
.home #header.scrolled {
  background: rgba(0,0,0,0.8);
}
#mobileMenu {
  display: block;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  right: 20px;
  width: 25px;
  height: 25px;
  background: url('./images/Hamburger-menu.svg') center / contain no-repeat;
  cursor: pointer;
  filter: invert(0.94) brightness(0.06); 
}
.home #mobileMenu {
  filter: none; 
}
#hdrNav {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 0;
  z-index: 99;
  transform: translate(0,100%);
  transition: var(--main-transition);
}
#hdrNav.active {
  transform: translate(0,0);
}
#hdrNav ul {
  width: 100%;
  text-transform: uppercase;
  margin: 0;
  padding: 0;
  font-weight: 700;
  font-variation-settings:
    "wdth" 56;
}
.menu-item {
  display: inline-block;
  font-size: 1.125rem;
  text-align: center;
  width: 100vw;
  margin: 0;
}
.menu-item a {
  padding: 20px;
  width: 100%;
  display: block;
  border-top: 1px solid #CCC;
  background-color: rgba(255,255,255,0.95);
  color: #000;
  text-decoration: none;
}
#hdrLogo {
  height: 100%;
  padding: 16px 0;
  width: 58px;
}
#hdrLogo img {
  height: 100%;
  width: auto;
  max-width: 100%; 
  object-fit: contain;
  position: relative;
  left: 50%;
  transform: translateX(-50%);
}
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.home-slideshow-wrapper {
  width: auto;
  position: relative;
  height: 100svh;
  overflow-y: hidden;
  background: blue;
}
.home-logo {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%,-45%);
  text-align: center;
  width: 100%;
  z-index: 999;
}
.home-logo-img-cont {
  width: 80%;
  margin: 0 auto;
  width: clamp(200px, 80%, 400px);
}
.home-logo-img {
  width: 100%;
}
.social-media {
  width: 100%;
  margin: 25px 0 0;
  padding: 0;
  display: flex;
  flex-direction: row;
  justify-content: end;
  gap: 15px;
}
.social-media li {
  list-style: none;
}
.social-media img {
  width: 25px;
}
.home-slideshow {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.4);
}
.home-slideshow img {
  opacity: 0;
  animation-name: fade;
  animation-iteration-count: infinite;
}
.home .home-slideshow:after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.4);
}
.footer {
  padding: 30px 0;
  position: relative;
  z-index: 10;
  font-size: 0.875rem;
  background: var(--background-color);
  margin: 0 0 -30px;
}
.footer-social-media {
  margin: 0;
  justify-content: center;
}
.footer-social-media img {
  filter: invert(0.94) brightness(0.06);
}
address {
  margin: 1rem ;
  text-align: center;
  font-style: normal;
}

.footer-buttons {
  display: flex;
  justify-content: center;
  gap: 10px;
}
.footer-button {
  background: var(--font-color);
  color: #FFF;
  text-transform: uppercase;
  cursor: pointer;
  font-weight: 700;
  font-variation-settings:
    "wdth" 50;
  border: 1px solid var(--font-color);
  text-decoration: none;
  padding: 5px 10px; 
}
.top-left {
  margin: 86px 0 0;
  height: 80svw;
  width: 100%;
  position: relative;
  overflow-y: hidden;
  z-index: 5;
  background-color: #000;
  transition: var(--main-transition);
}
.top-left img, .home-slideshow img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  position: absolute;
  top: 0;
  left: 0;
}
.map {
  position: relative;
  width: 100%;
  height: 100%;
}
.map iframe {
  position: absolute;
  height: 100%;
  bottom: 0;
  top: 0;
  width: 100%;
  border: 0;
}
.about {
  width: 100%;
  padding: 30px 0;
  min-height: 60svh;
  background-color: #ededed;
}
.section-wrapper {
  max-width: 600px;
  padding: 0 20px;
  margin: 0 auto;
}
.merch-page {
  width: min(100%, 1620px);
  margin: 0 auto 60px;
  flex-direction: column;
  background: #eeeae4;
  padding: 90px 20px 40px;
  text-align: center;
  min-height: calc(100svh - 280px);
}
.merch-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}
.merch-item {
  background-color: #fff;
  padding: 10px;
}
.merch-images {
  position: relative;
  margin: 0 0 20px;
}

.merch-images img {
  width: 100%;
  height: auto;
  display: block;
  aspect-ratio: 1/1;
  object-fit: cover;
}
img.merch-image--back {
  position: absolute;
  top: 0;
  left: 0;
  opacity: 0;
  transition: var(--main-transition);
}
.merch-images:hover img.merch-image--back {
  opacity: 1;
}
.merch-price {
  font-weight: 700;
}

@media screen and (min-width: 700px) {
  .merch-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
  }
  .merch-item {
    padding: 15px;
  }

}

@media screen and (min-width: 800px) {
  h2 {
    font-size: 2rem;
  }
  #header, #header.scrolled {
    height: auto;
  }
  #hdrNav {
    position: relative;
    transform: none;
    padding: 50px 0;
  }
  #header.scrolled #hdrNav {
    padding: 25px 0;
  }
  #hdrNav.active {
    transform: none;
  }
  main {
    flex-direction: row;
  }
  .about {
    padding: 152px 0 30px;
    min-height: 90svh;
  }
  .about, .top-left {
    width: 50%;
  }
  .top-left {
    margin: 0;
  }
  #hdrLogo {
    position: absolute;
    top: 0;
    padding: 20px 0;
    z-index: 100;
  }
  #mobileMenu {
    display: none;
  }
  #hdrNav ul {
    display: flex;
    padding: 0 60px;
  }
  .menu-item {

  }
  .menu-item:nth-of-type(3) {
    padding-right: 60px;
  }
  .menu-item:nth-of-type(4) {
    padding-left: 60px;
  }
  .menu-item a {
    padding: 0;
    border: 0;
    background-color: transparent;
    color: #fff;
  }
  body:not(.home) #header .menu-item a {
    color: var(--font-color);
  }
  .home-slideshow-wrapper {
    width: 100%;
  }
  .map {
    width: 50%;
    height: 100%;
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
  }
  .top-left {
    height: auto;
    min-height: 80vh;
  }
  .merch-page {
    padding: 122px 40px 60px;
  }
}

@media screen and (min-width: 1000px) {
  .merch-grid {
    grid-template-columns: repeat(4, 1fr); /* Snaps to 4 stretching columns */
    gap: 20px;
  }
  .merch-item {
    padding: 20px;
  }
  .merch-page {
    padding: 122px 60px 60px;
  }
}

