/* FLORAL CAFE — ORGANIZED STYLESHEET
   Section comments explain the purpose of each group.
   Original selector order and declarations are preserved to protect the cascade.
*/

/* =========================================================
   1. GLOBAL STYLES
   Base typography, reset, and page-wide scrolling behavior
   ========================================================= */

body {
  color: #f5f1e8;
  font-family: "Inter", serif;
  background-color: #14394a;
}
html {
  background-color: #14394a;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* =========================================================
   2. MAIN NAVIGATION
   Fixed navbar, mobile menu, links, and hamburger animation
   ========================================================= */

#navbar {
  background-color: #14394a;
  position: fixed;
  left: 0;
  top: 0;
  width: 100%;
  z-index: 1999;
}

html {
  scroll-behavior: smooth; /* glide instead of jump */
}

/* =========================================================
   6. MENU: COLLAPSIBLE CATEGORIES
   Category headings, dividers, chevrons, and expanding wrappers
   ========================================================= */

.menu-section {
  scroll-margin-top: 140px;
}

#menuhhh,
#gall {
  scroll-margin-top: 60px;
}

#findus1 {
  scroll-margin-top: 130px; /* set to your navbar's height, so it doesn't cover the heading */
}

#links li a {
  color: #f6eedc;
  text-decoration: none;
  font-family: "Quicksand", serif;
  font-size: 1.3rem;
  display: flex;
  align-items: center;
  height: 100%;
  line-height: 49px;
  display: block;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
  transition: all 0.3s ease-out;
}

#links li a:hover {
  color: #f0b544;
  background-color: #123241;
}

#links li {
  list-style: none;
  height: 51px;
  position: relative;
}

#links {
  max-height: 0px;
  overflow: hidden;
  transition: all 0.3s ease-out;
}

#links.active {
  /* max-height: 256px; */
  max-height: 285px;
}

#links li::after {
  content: "";
  background: #c9a25f89;
  width: auto;
  height: 1px;
  position: absolute;
  right: 1.5rem;
  left: 1.5rem;
  bottom: 0;
}
#links li:last-child:after {
  display: none;
}

#toporder {
  text-decoration: none;
  color: #f0b544;
  background-color: #f0b544;
  padding: 0.5rem 1rem;
  font-family: "Quicksand", serif;
}

#logo {
  color: #f0b544;
  text-decoration: none;
  font-size: 2rem;
  letter-spacing: 1px;
  font-weight: 650;
  font-family: "Quicksand", serif;
  margin-left: 1.5rem;
}

#navtop {
  display: flex;
  align-items: center;
  height: 65px;
  justify-content: space-between;
  border-bottom: #f0b544 2px solid;
}

#links li:last-child {
  height: 75px;
  padding: 0.9rem 1.5rem;
  border-bottom: solid 2px #c9a25f;
}

#links li:last-child a {
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #f0b544; /* #C9A25F; */
  color: #14394a;
  font-weight: 500;

  font-size: 1.3rem;

  border: #f5f1e8 solid 1px;
  padding: 0;
  transition: all 0.3s ease-out;
}

#links li:last-child a:hover {
  background-color: #c8953d;
}

#schedimg {
  display: none; /* hidden on phones */
}

#navtop2 {
  display: flex;
  align-items: center;
  height: 50px;
  gap: 1rem;
}

.paths {
  transform-origin: center;
  transform-box: fill-box;
  transition: all 0.3s ease-out;
}

#navtgl.active .paths:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

#navtgl.active .paths:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

#navtgl.active .paths:nth-child(2) {
  opacity: 0;
}

#navtgl {
  height: 60px;
  width: 60px;
  border: none;
  background-color: transparent;
  color: #f0b544;
  margin-right: 0.5rem;
}

/* =========================================================
   3. HERO SECTION
   Full-screen background, headline, caption, and hero buttons
   ========================================================= */

#sec1 {
  background-image:
    linear-gradient(
      to top,
      rgba(20, 57, 74, 0.78) 0%,
      rgba(20, 57, 74, 0.55) 20%,
      rgba(20, 57, 74, 0) 50%
    ),
    url("lAquois.img/cafe.jpg");

  height: 100vh;
  height: 100dvh;
  width: 100%;
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
}

#sec2 {
  position: relative;
  border-top: 1px solid #f0b544;
  background-color: #14394a;
  position: relative;
  padding-bottom: 5rem;
}

#sec3 {
  border-top: 1px solid #f0b544;
  background-color: #14394a;
  position: relative;
  border-bottom: 1px solid #f0b544;
}
.menu-h {
  text-align: center;
  padding-top: 3.5rem;
  padding-bottom: 0.8rem;
  font-weight: 500;
  font-size: 3rem;

  letter-spacing: 2px;
  color: #f0b544;
  font-family: "Quicksand", serif;
}

/* #herotext {
  display: flex;
  justify-content: end;
  height: 100vh;
  row-gap: 2rem;
  flex-direction: column;
  padding-bottom: 5rem;
  padding-left: 1rem;
}

#heroh {
  font-family: "Quicksand", serif;
  font-size: 2.8rem;
  color: #f5f1e8;
}

#captionh {
  font-family: "Quicksand", serif;
  font-size: 0.95rem;
  color: #f5f1e8;
} */

#herotext {
  display: flex;
  justify-content: end;
  height: 100vh;
  height: 100svh;
  row-gap: 2rem;
  flex-direction: column;
  padding-bottom: 5rem;
  padding-left: 1.5rem;
}

#heroh {
  font-family: "Quicksand", serif;
  font-size: clamp(2.8rem, 7vw, 5.5rem);
  color: #f5f1e8;
}

#captionh {
  font-family: "Quicksand", serif;
  font-size: clamp(0.95rem, 1.5vw, 1.2rem);
  color: #f5f1e8;
}

#findb {
  border: #c9a25f solid 1px;
  padding: 1rem 1.5rem;
  font-family: "Quicksand", serif;
  font-size: 1.2rem;
  color: #f0b544;
  text-decoration: none;
  font-weight: 550;
}

#menub {
  border: #f5f1e8 solid 1px;
  padding: 1rem 2rem;
  font-family: "Quicksand", serif;
  font-size: 1.2rem;
  color: #344e41;
  text-decoration: none;
  background-color: #f0b544;
  font-weight: 550;
}

#menufind {
  display: flex;
  gap: 1rem;
}

#headcap {
  display: flex;
  flex-direction: column;
  row-gap: 1rem;
}

/* =========================================================
   4. MENU: CATEGORY NAVIGATION
   Sticky horizontal menu links and their scrolling behavior
   ========================================================= */

/*        ⋆｡🌿‧💘˚ Section 2 — Menu ✩🌳📕°｡⋆               */

#menubar {
  position: sticky;
  z-index: 999;
  top: 70px;
}

#menulinks::-webkit-scrollbar {
  display: none;
}

#menulinks {
  scroll-behavior: smooth;
  display: flex;
  justify-content: flex-start;
  scrollbar-width: none;
  flex-wrap: nowrap;

  overflow-x: auto;
  overflow-y: hidden;
  width: 100%;
}
#menubar li {
  list-style: none;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-family: "Quicksand", serif;
  font-weight: 500;
  font-size: 1.1rem;
}

#menulinks li:first-child a {
  padding-left: 2rem;
}

#menulinks li:last-child a {
  padding-right: 2rem;
}

#menubar li a {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  text-decoration: none;
  color: #14394a;
  background-color: #f0b544;
  padding: 1rem 1rem;
  white-space: nowrap;
}

/* =========================================================
   5. MENU: ITEM CARDS
   Card layout, images, descriptions, prices, and mobile expansion
   ========================================================= */

.card-img {
  width: 123px;
  border-radius: 10px 0px 0px 10px;
  height: 100%;
  object-fit: cover;
  transition: all 0.5s ease-out;
}

.card.active .card-img {
  border-radius: 10px 10px 0px 0px;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.menu-grid {
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding-bottom: 0;
}

.item-info2 {
  overflow: hidden;
  max-height: 0;
  transition: all 0.5s ease-out;
  width: 100%;
  border-radius: 0px 0px 10px 10px;
}

.card.active .item-info2 {
  overflow: hidden;
  color: #344e41;
  font-family: "Quicksand", serif;
  font-size: 1rem;
  display: flex;
  gap: 0.5rem;
  flex-direction: column;
  padding: 1rem 1rem;

  background-color: #f5f1e8;
  width: 100%;
  min-height: 110px;
  border-radius: 0px 0px 10px 10px;
}

.row2 {
  display: flex;
}

.row1 {
  overflow: hidden;
  display: flex;
  position: relative;
  height: 100%;
}

.card.active .item-info {
  width: 0;
  height: auto;
  border-bottom-left-radius: 0px;
  border-bottom-right-radius: 0px;
}

.item-info {
  height: auto;
  overflow: hidden;
  color: #344e41;
  font-family: "Quicksand", serif;
  font-size: 1rem;
  display: flex;
  flex-direction: column;
  background: #f5f1e8;
  justify-content: space-evenly;

  width: 100%;
  transition: all 0.5s ease-out;

  border-radius: 0px 10px 10px 0px;
}

#triangle p {
  font-family: "Quicksand", serif;
  font-weight: 500;
  font-size: 2rem;
  transform: rotate(-45deg);
  position: absolute;
  bottom: 20px;
  right: 2px;
}

#triangle.hidden {
  opacity: 0;
  pointer-events: none;
}

#triangle {
  opacity: 1;
  transition: opacity 0.4s ease;
  position: relative;
  background-color: #f0b544;
  color: #14394a;
  position: absolute;
  clip-path: polygon(0 100%, 100% 100%, 100% 0);
  height: 98px;
  width: 100px;
  bottom: 0;
  right: 0;
  border-top-right-radius: 10px;
  border-bottom-right-radius: 10px;
}

.card {
  display: flex;
  width: 100%;

  flex-direction: column;
}

.card.active {
  overflow: hidden;
}

.iname,
.price,
.idescr {
  margin-left: 1rem;
  margin-right: 1rem;
}

.nameprice {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.iname2 {
  font-size: 1.1rem;
  font-weight: 600;
}

.idescr {
  font-size: 0.9rem;
}

.iname {
  font-size: 1rem;
  font-weight: 600;
}

.price {
  font-size: 1.1rem;
  font-weight: 600;
}

.price2 {
  font-size: 1.1rem;
  font-weight: 600;
  align-self: flex-start;
}

/* .iname {
  margin-top: 0.5rem;
}

.price {
  margin-bottom: 0.5rem;
} */

.menu-section {
  justify-content: space-between;
  padding-left: 1rem;
  padding-right: 1rem;
  padding-bottom: 0;
  display: flex;
  align-items: center;
  gap: 0.7rem;
}

.menu-drinks {
  justify-content: space-between;
  padding-left: 1rem;
  padding-right: 1rem;
  padding-bottom: 0;
  display: flex;
  align-items: center;
  gap: 0.7rem;
}

#firstmsheader {
  padding-top: 1rem;
}

.msheader {
  font-size: 1.6rem;
  color: #f0b544;
  font-weight: 500;
  font-family: "Quicksand", serif;
}

.menu-grid-wrap {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.5s ease-out;
}

.menu-grid-wrap.active {
  grid-template-rows: 1fr;
}

.menu-grid-exp {
  min-height: 0; /* lets it shrink all the way to 0 */
  overflow: hidden;
  padding: 0 1rem; /* sides only: top/bottom padding would hold it open */
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 0rem;
}

.forsubcats {
  padding: 0;
  gap: 0;
}

.lucide-arrow {
  border: 1px solid #c9a25f89;
  padding: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lucide-arrow2 {
  border: 1px solid #c9a25f89;
  padding: 7px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.menu-section2 {
  justify-content: space-between;
  padding-left: 2rem;
  padding-right: 1rem;
  padding-bottom: 0;
  display: flex;
  align-items: center;
  gap: 0.7rem;
}

.menu-section.open .lucide-chevron-down,
.menu-section2.open .lucide-chevron-down2,
.menu-drinks.open .lucide-chevron-down {
  transform: rotate(-180deg);
}

.lucide-chevron-down {
  color: #f0b544;
  width: 28px;
  height: 28px;
  transition: all 0.4s ease-out;
}

.lucide-chevron-down2 {
  color: #f0b544;
  width: 20px;
  height: 20px;
  transition: all 0.4s ease-out;
}

.lining,
.lining2 {
  transition: border-color 0.2s ease-out; /* add to your existing rules */
}

.menu-section.open .lining,
.menu-section2.open .lining2 {
  border-bottom-color: transparent;
}

.lining2 {
  align-items: center;
  height: 50px;
  display: flex;
  width: 100%;
  border-bottom: 1px solid #c9a25f89;
}

.lining {
  align-items: center;
  height: 80px;
  display: flex;
  width: 100%;
  border-bottom: 1px solid #c9a25f89;
}
.noidea {
  padding: 1rem 0rem;
}

.secondary {
  height: 62px;
}

/* .secondary::after {
  content: "";
  background: #c9a25f89;
  width: auto;
  height: 1px;
  position: absolute;
  right: 1rem;
  left: 1rem;
  bottom: 0;
} */

.expandmenul {
  width: 100%;

  font-size: 1rem;
  color: #f0b544;
  font-weight: 500;
  font-family: "Quicksand", serif;
}

.expandmenu {
  width: 100%;
  font-size: 1.6rem;
  color: #f0b544;
  font-weight: 500;
  font-family: "Quicksand", serif;
}

.line {
  flex: 1;
  background: #c9a25f77;
  height: 1px;
}

/* =========================================================
   7. GALLERY
   Responsive image grid and image placement
   ========================================================= */

#galgrid {
  padding: 1rem;
  padding-bottom: 4rem;
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(2, 1fr);
  grid-template-rows: 20rem;
  grid-template-areas:
    "b c"
    "d d";
}

#galgrid img {
  border: #c9a25fc0 1px solid;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

#galimg1 {
  grid-area: a;
}

#galimg2 {
  grid-area: b;
}

#galimg3 {
  grid-area: c;
}

#galimg4 {
  grid-area: d;
}

#imgsched {
  display: none;
}

/* =========================================================
   8. LOCATION AND OPENING HOURS
   Schedule layout, address, and supporting image
   ========================================================= */

#schedule {
  display: grid;
  grid-template-columns: 1fr;

  background-color: #205f7c;
  color: #f5f1e8;

  font-family: "Inter", sans-serif;

  width: 100%;
  border-bottom: 1px solid #f0b544;
}

#hours {
  padding-top: 3rem;
  padding-bottom: 3rem;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

#findus1 {
  font-family: "Quicksand", sans-serif;
  font-size: 1.5rem;
  font-weight: 600;
  color: #f0b544;
  margin-bottom: 1rem;
  padding-top: 2.5rem;
}

#scheduleh1 {
  font-family: "Quicksand", sans-serif;
  font-size: 1.5rem;
  font-weight: 600;
  color: #f0b544;
  margin-bottom: 1rem;
}

.rows {
  width: 100%;
}

#hours {
  width: 100%;
}

.row {
  width: 100%;
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 59px;
  padding: 0 rem;

  border-bottom: 1px solid #f0b544;
}

/* .row::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 1px;
  background: ##F0B544;
  opacity: 0.6;
} */

address {
  font-size: 1rem;
  font-style: normal;
  font-weight: 500;
  font-family: "Quicksand", serif;
}

/* =========================================================
   9. FOOTER
   Footer layout, links, and small-print text
   ========================================================= */

footer {
  background-color: #14394a;
  color: #f5f1e8;
  padding: 2.5rem 1rem 1.5rem;
  display: grid;
  gap: 1.5rem;
  text-align: center;
  font-family: "Inter", sans-serif;
}

#logof {
  color: #f0b544;
  font-family: "Quicksand", sans-serif;
  font-size: 2.2rem;
  font-weight: 600;
  letter-spacing: 1px;
}

.finfo {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.finfo a {
  color: #f5f1e8;
  text-decoration: none;
  transition: color 0.2s;
}

.finfo a:hover {
  color: #f0b544;
}

.small {
  font-size: 0.8rem;
  opacity: 0.6;
  padding-top: 1rem;
  border-top: 1px solid rgba(232, 180, 184, 0.3);
}

/* =========================================================
   10. RESPONSIVE LAYOUTS
   Breakpoints are kept in ascending order where possible.
   Each block overrides the base/mobile styles above.
   ========================================================= */

/* 10.1 — Wider screens: change the hero image overlay */
@media (min-width: 500px) {
  #sec1 {
    background-image:
      /* linear-gradient(
        to right,
        rgba(20, 57, 74, 0.48) 0%,
        rgba(20, 57, 74, 0.45) 20%,
        rgba(20, 57, 74, 0) 50%
      ), */
      linear-gradient(
        to top,
        rgba(20, 57, 74, 0.78) 0%,
        rgba(20, 57, 74, 0.55) 20%,
        rgba(20, 57, 74, 0) 50%
      ),
      url("lAquois.img/cafe.jpg");

    height: 100vh;
    height: 100dvh;
    width: 100%;
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
  }
}

/* 10.2 — Small tablets: two-column content and desktop-style cards */
@media (min-width: 670px) {
  /* large phones, small tablets */

  #hours {
    border-right: #c9a25fc0 1px solid;
  }

  #imgsched {
    display: block;
    max-width: none; /* cancels the max-width: 0 from the base rule */
    box-sizing: border-box;
    /* spacing lives on the wrapper */
    overflow: hidden; /* nothing can spill past the row */
  }

  #schedimg {
    display: block;
    box-sizing: border-box;
    width: 100%;
    height: 100%; /* fills the wrapper, which is the row's height minus the padding */
    object-fit: cover;
    object-position: center;
  }
  #schedule {
    padding-left: 0;

    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 441px;
    padding-right: 0;
  }

  .row2 {
    min-height: 110px;
  }
  #triangle {
    display: none;
  }
  .menu-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .menu-grid-exp {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .menu-grid-exp.forsubcats {
    display: flex;
  }

  .card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 10px 10px 0px 0px;
  }

  .item-info {
    display: none;
  }

  .item-info2 {
    overflow: hidden;
    color: #344e41;
    font-family: "Quicksand", serif;
    font-size: 1rem;
    display: flex;
    gap: 0.5rem;
    flex-direction: column;
    padding: 1rem 1rem;
    background-color: #f5f1e8;
    width: 100%;
    min-height: 110px;
    border-radius: 0px 0px 10px 10px;
  }
}
/* 10.3 — Tablets and larger: switch to the full navigation bar */
@media (min-width: 768px) {
  /* tablets */
}
/* 10.4 — Laptops: use three columns for menu cards */
@media (min-width: 1005px) {
  /* laptops */

  .menu-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
  }

  .menu-grid-exp {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
  }
}

@media (min-width: 820px) {
  #links li:last-child {
    border: none;
  }

  #links li:last-child a {
    padding: 1rem 2rem;
  }

  #navbar {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    border-bottom: #f0b544 2px solid;
  }

  #navtop2 {
    display: none;
  }

  #navtop {
    border: none;
  }

  #links {
    display: flex;
    max-height: 65px;
    align-items: center;
  }

  #links li {
    height: 100%;
  }

  #links li a {
    align-items: center;
    display: flex;
  }

  #links li::after {
    display: none;
  }
}
/* 10.5 — Large desktops: reserved for future large-screen adjustments */
@media (min-width: 1280px) {
  /* large desktops */
}

/* 10.6 — Very narrow phones: small spacing and card adjustments */
@media (max-width: 340px) {
  .card.active .item-info2 {
    min-height: 125px;
  }

  #hours {
    padding-top: 3rem;
    padding-bottom: 3rem;
    padding-left: 1rem;
    padding-right: 1rem;
  }

  #herotext {
    padding-left: 1rem;
  }
}
