/* Reset styling */
*::before, *, *::after{
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root{
  --barWidth: 60px;
  --barHeight: 8px;
  --hamburger-gap:6px;
  --animation-time: 200ms ease-in-out;
  --hamburger-height: calc(var(--barHeight) * 3 + var(--hamburger-gap) * 2);
  --backGround: #c28739e5;
    --header-height: 120px;
}

.hamburger-menu{
  display: none;
}

html{
    scroll-behavior: smooth;
}

#logo img{
  width: 150px;
  height: auto;
}
.desktop ul{
  display: flex;
  gap: 2rem;
}

.nav{
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.topBar{
  background-color: var(--backGround);
  position: fixed; 
  top: 0; 
  width: 100%;
  height: 15vh;
  z-index: 0;
}
li{
  list-style: none;
  padding-right: 45px;
}

.desktop a{
   text-decoration: none; 
   color: #000000; 
   font-weight: 900; 
   font-size: 1.3rem; 
  } 

  .link:hover{
     color: #000000d8; 
     border-bottom: 5px double black; 
     font-family: 'Courier New', Courier, monospace; 
    }

    .skip-link{
  position: absolute;
  top: 0;
  left: 0;
  background: black;
  color: white;
  padding: 8px 12px;
  transform: translateY(-100%);
  z-index: 100;
  transition: transform 0.3s ease;
}

.skip-link:focus{
  transform: translateY(0);
}

h1, h2{
  text-align: center;
  font-family: Arial, Helvetica, sans-serif;
  font-weight: 600;
  padding-top: 90px;
}

hr{
  margin-top: 55px;
  margin-bottom: 40px;
  border: 2px solid brown;
}

.intro{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  padding: 0 1rem
}

.pitch{
  max-width: 500px;
  padding-left: 0 1rem;
  display: flex;
  flex-direction: column;
}

.pitch p, .connect p{
  line-height: 2.5;
  font-size: 20px;
  font-family: Arial, sans-serif;
}

a[href="#discover"]{
  display: inline-block;
  align-self: flex-end;
  margin-top: 2rem;
  width: 125px;
  height: 40px;
  padding: 10px 14px 10px 18px;
  border-radius: 30px;
  background-color: saddlebrown;
  border: none;
  color: #f7f7f7;
  text-decoration: none;
}

a[href="#discover"]:hover{
  transition: .40s;
  border-radius: 20px 10px;
  background-color: aliceblue;
  color: brown;
  font-weight: 800;
  transform: rotate(5deg);
}
.intro img{
  width: 100%;
  max-width: 500px;
  height: 300px;
  border-radius: 10px;
  padding: 0;
  padding-top: 3rem;
}

.hero{
    background-color: tan;
    padding-bottom: 80px;
}

body{
  padding-top: var(--header-height);
  overflow-x: hidden;
}

#discover{
  background-color: aliceblue;
}

h2{
  padding-bottom: 3em;
  color: #9b5800;
}

#discover p, .contact p{
  padding: 5rem 3rem;
  font-size: 18px;
  line-height: 1.5;
  font-family: Helvetica, sans-serif;
  text-align: center;
  color: #444343;
}

.menu{
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
}

.item{
  display: flex;
  flex-direction: column;
  align-items: center;
}

.visit{
  width: 100%;
  max-width: 400px;
  height: 300px;
  padding-left: 20px;
  border-radius: 50px;
}

.menu-btn{
  display: inline-block;
  width: 80px;
  height: 40px;
  padding: 10px 14px 10px 18px;
  border-radius: 30px;
  margin: 15px;
  background-color: rgba(70, 35, 10, 0.801);
  border: none;
  color: #f7f7f7;
  text-decoration: none;
}

a[href="Menu.html"]:hover{
  background-color: transparent;
  border: 2px solid rgba(70, 35, 10, 0.801);
  color: saddlebrown;
  transition: 0.5s;
}

.connect, .contact{
  background-color: aliceblue;
}

.connect h2, h3{
  text-align: center;
  color: #9b5800;
  background-color: aliceblue;
}

.connect p, input:focus{
    color: #444343;
}

.icons{
  position: relative;
  width: 200px;
  height: 200px;
  right: 1%;
  border-radius: 100%;
  animation: spin 20s linear infinite;
}

.icons i{
  position: absolute;
  font-size: 2rem;
  transition: transform 0.3s;
  animation: pop 20s linear infinite;
}

/* top */
.icons .fa-facebook{
  top: 14%;
  left: 80%;
}

/* right */
.icons .fa-reddit{
  right: 0;
  top: 50%;
}

/* bottom */
.icons .fa-youtube{
  bottom: 33%;
  right: 40%;
}

/* left */
.icons .fa-twitter{
  left: 38%;
  bottom: 67%;
}

@keyframes spin{
  from{
    transform: rotate(0deg);
  }
  to{
    transform: rotate(360deg);
  }
}

.icons .fa-facebook{
  animation-delay: 0s;
}

.icons .fa-reddit{
  animation-delay: 10s;
}

.icons .fa-youtube{
  animation-delay: 20s;
}

.icons .fa-twitter{
  animation-delay: 30s;
}

@keyframes pop{
  0%, 100%{
    transform: scale(1);
  }
  10%{
    transform: scale(1.5);
  }

  20%{
    transform: scale(1.5);
  }

  30%{
    transform: scale(1);
  }
}

.fa-facebook{
  color: blue;
}

.fa-reddit{
  color: orangered;
}

.fa-youtube{
  color: red;
}

.fa-twitter{
  color: aqua;
}

.wrap{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4rem;
  padding: 3rem;
  flex-direction: row-reverse;
}

h3{
  font-size: 24px;
  font-weight: 700;
  padding-top: 105px;
}

.contact{
    display: flex;
  align-items: center;
  justify-content: space-evenly;
  padding: 2rem;
  flex-direction: row;
}

.contact p{
  line-height: 1.8;
}

form{
  display:flex;
  flex-direction: column;
  padding: 65px;
}

label{
  font-size: 18px;
  font-family: monospace;
  padding-bottom: 25px;
  cursor: pointer;
  font-weight: 700;
  margin-bottom: 5px;
  padding-right: 5px;
}

fieldset{
  border: none;
  margin-bottom: 20px;
  display: inline-flex;
}

input{
  border-radius: 20px;
  font-size: 16px;
  border: 2px solid black;
  width: 300px;
  height: 40px;
  padding: 0 10px;
}

input:hover, textarea:hover{
  background-color: skyblue;
}

input:focus{
  border: 5px double black;
  outline: none;
  background-color: rgb(179, 225, 243);
  color: #000000;
}

.address{
  padding-left: 20px;
}

.submit-btn{
  display: block;
  width: 20%;
  background-color: #000000;
  color: #f7f7f7;
  font-family: 'Franklin Gothic Medium', 'Arial Narrow', Arial, sans-serif;
  font-size: 22px;
}

.submit-btn:hover{
  background-color: transparent;
  color: rgb(89, 214, 214);
  transition: 0.2s;
  cursor: pointer;
  font-family: 'Courier New', Courier, monospace;
  border-radius: 10px 5px;
}

/* Menu page */

.menupage{
  background-image: url("Images/Coffeebeans.jpg");
  font-family: sans-serif;
  padding: 20px;
}

.Menu-nav {
  width: 100%;
  background-color: burlywood;
  margin-left: auto;
  margin-right: auto;
  margin-top: 3.4rem;
  max-width: 1000px;
  padding-bottom: 60px;
}

.coffeemenu, #pastry-icon {
  display: block;
  margin-left: auto;
  margin-right: auto;
  margin-top:-95px;
  width: 210px;
}

.head1 {
  font-size: 40px;
  margin-top: 0;
  margin-bottom: 15px;
}

.head2 {
  font-size: 30px;
}

.head1, .head2, .menu-subtitle{
  text-align: center;
}

.head1, .head2{
    font-family: Impact, serif;
    color: #000;
}

.eat{
  display: flex;
  align-items: center;
  justify-content: space-around;
  position: relative;
  padding: 15px 0;
}

.hoverImg{
  position: absolute;
  left: 50%;
  transform: translateX(-50%) scale(0.8);
  opacity: 0;
  width: 120px;
  height: auto;
  border-radius: 10px;
  transition: 0.3s ease;
  pointer-events: none;
}

.eat:hover .hoverImg, .eat:focus .hoverImg{
  opacity: 1;
  transform: translateX(-50%) scale(1);
}

.flavor, .dessert {
  text-align: left;
  width: auto;
}

.price {
  text-align: right;
  min-width: 60px;
  padding-bottom: 25px;
}

.hover-hint{
  text-align: center;
  font-size: 14px;
  color: #5a4a3a;
  margin-top: -10px;
  margin-bottom: 20px;
  opacity: 0.8;
}

.sr-only{
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
}

footer{
  background-color:rgb(56, 33, 4);
  padding: 1rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-evenly;
}

.ftext, address, .footer-menu a, h6{
  color: #e6e0e0;
  line-height: 1.8;
}

h6{
  font-size: 18px;
  text-decoration: underline;
  line-height: 2.5;
}

.location, .fontIcons, .bottom-nav{
   margin-right: 0;
}

.footer-icons{
  font-size: 20px;
  display: flex;
  gap: 15px;
}

.footer-menu ul{
  display: flex;
  gap: 20px;
  list-style: none;
  margin-right: 5px;
}

.footer-menu a{
  text-decoration: none;
}

.footer-menu a:hover{
  border-bottom: 5px dotted #d89b2a;
}

/* Media queries */

@media (max-width: 768px){
   :root {
    --header-height: 100px;
  }

  .sidebar nav ul{
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 1.5rem;
    padding: 4rem;
  }

  .sidebar nav li{
    margin-left: 0;
  }

.topBar{
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);
  list-style: none;
  background-color: var(--backGround);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  z-index: 10;
}

#logo{
  width: 100px;
}

  .hamburger-menu{
  --x-width: calc(var(--hamburger-height) * 1.41421356237);
  display: flex;
  flex-direction: column;
  gap: var(--hamburger-gap);
  width: max-content;
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 1;
  cursor: pointer;
}

.hamburger-menu::before, .hamburger-menu::after, .hamburger-menu input{
  content: "";
  width: var(--barWidth);
  height: var(--barHeight);
  background-color: #000000;
  border-radius: 20px;
  transform-origin: left center;
  transition: opacity var(--animation-timing), width var(--animation-timing),
   rotate var(--animation-timing), translate var(--animation-timing), background-color var(--animation-timing);
}

.hamburger-menu input{
  appearance: none;
  padding: 0;
  margin: 0;
  pointer-events: none;
}

.hamburger-menu:has(input:checked)::before{
  rotate: 45deg;
  width: var(--x-width);
  translate: 0 calc(var(--barHeight) / -2);
}

.hamburger-menu:has(input:checked)::after{
  rotate: -45deg;
  width: var(--x-width);
  translate: 0 calc(var(--barHeight) / 2);
}

.hamburger-menu input:checked{
  opacity: 0;
  width: 0;
}

.sidebar{
  position: fixed;
  top: 0;
  right: 0;
  width: min(80%, 300px);
  height: 30vh;
  transition: translate var(--animation-time);
  transform: translateX(100%);
  padding-top: calc(var(--hamburger-height) + var(--barHeight) + 1rem);
  background-color: var(--backGround);
}

.hamburger-menu:has(input:checked) + .sidebar{
  transform: translateX(0);
  display: flex;
  flex-direction: column;
}

.hamburger-menu:has(input:focus-visible)::before, .hamburger-menu:has(input:focus-visible)::after,
.hamburger-menu:has(input:focus-visible){
  border: 1px solid aliceblue;
  box-shadow: 0 0 0 1px #000000;
}

.hero{
  margin-top: 0;
}

  .intro{
   display: flex;
   flex-direction: column;
   align-items: center;
  }

  .intro img{
    width: 100%;
   max-width: 300px;
   height: 200px;
   padding: 0;
  }

 .menu{
  flex-direction: column;
}

.visit{
  width: 200px;
  height: auto;
}

h2{
  padding-bottom: 0.4rem;
  font-size: 19px;
}

#discover p{
  line-height: 1.7;
}

.pitch p, #discover p{
    font-size: 15px;
}

a[href="#discover"]{
    padding: 8px 14px 8px 14px;
    width: 110px;
 }

.menu-btn{
  font-size: 15px;
}

.text p{
  font-size: 14px;
  padding-top: 2rem;
}

.icons .fa-youtube{
  right: 99%;
}

/* left */
.icons .fa-twitter{
  left: 1%;
  top: 20%;
}

.icons .fa-facebook{
  top: 25%;
}

h3{
  font-size: 20px;
  font-weight: 600;
  padding-top: 15px;
}

.texts p{
    font-size: 15px;
    padding-bottom: .5rem;
}
.contact{
  flex-direction: column;
}

label{
  font-size: 15px;
}

input{
  height: 30px;
  width: 200px;
}
.submit-btn{
  font-size: 15px;
}

.location{
  margin-right: 30px;
}

.ftext, .address{
  font-size: 17px;
}

.footer-icons{
  font-size: 17px;
}

/* menu */

.hoverImg{
  position: static;
  transform: none;
  opacity: 1;
  margin: 10px auto;
  display: block;
}

.eat{
  flex-direction: column;
  align-items: center;
}

 .hover-hint{
    display: none;
  }

   form{
    padding: 20px;
  }
}