@import url('https://fonts.googleapis.com/css2?family=Libre+Baskerville:ital,wght@0,400;0,700;1,400&family=Imperial+Script&display=swap&family=Noto+Sans+JP:wght@100..900&display=swap&family=Amiri&display=swap&family=Lateef:wght@200;300;400;500;600;700;800&family=Noto+Naskh+Arabic:wght@400..700&family=Noto+Nastaliq+Urdu:wght@400..700&display=swap&family=Aref+Ruqaa:wght@400;700&display=swap');
@import "color_palette.css";

/* Reset & Base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

ul,
li {
  list-style: none;
}

html {
  scroll-behavior: smooth;
}

body {
  /* background-color: var(--primary); */
  background: url('../images/body-bg.jpg') center/cover no-repeat fixed;
  min-height: 100vh;
}

/* Fonts */
.imperial-script-regular {
  font-family: "Imperial Script", cursive;
}

.caprasimo-regular {
  font-family: "Caprasimo", serif;
}

.noto-sans {
  font-family: "Noto Sans JP", sans-serif;
}

/*Kurdish Fonts */
.amiri-regular {
  font-family: "Amiri", serif;
}

.noto-naskh-arabic {
  font-family: "Noto Naskh Arabic", serif;
}

.aref-ruqaa-regular {
  font-family: "Aref Ruqaa", serif;
}

.lateef-regular {
  font-family: "Lateef", serif;
}


/* Flex Utils */
.flex {
  display: flex;
}

.d-column {
  flex-direction: column;
}

.align-center {
  align-items: center;
}

.align-start {
  align-items: start;
}

.justify-center {
  justify-content: center;
}

.justify-space-between {
  justify-content: space-between;
}

.justify-end {
  justify-content: flex-end;
}


/* Styles */
.welcome {
  color: var(--secondaryAccent);
  font-size: 2.5em;
  font-weight: 500;
}

.cafe-name {
  color: var(--primary);
  font-size: 4.5em;
  font-weight: 450;
}

.slogan {
  font-style: italic;
  font-size: 18px;
  color: var(--secondaryAccent);
}

.h2-style {
  font-size: 3em;
  color: var(--primary);
}

.h3-style {
  font-weight: 300;
  font-size: 19px;
  color: var(--secondary);
}

.description-p {
  text-align: center;
  font-size: 17px;
  color: var(--secondaryAccent);
}

/* Top Headers Style */
.top-header {
  font-size: 2.2em;
  color: var(--secondary);
  background-color: var(--white);
  padding: 70px 20px 35px;
  text-align: center;
}

/* Layout */
main {
  background-color: var(--whiteContrast);
  margin: 4em 2em 0;
  flex-grow: 1;
}

/* Navbar */
.navbar-wrapper {
  position: absolute;
  top: 2em;
  left: 0;
  right: 0;
  padding: 0 2em;
  /* Optional: space inside instead of outside */
  transition: 0.2s ease-in-out;
  z-index: 1000;
}


.navbar-wrapper.scrolled {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  padding: 0 1em;
}

.navbar {
  background-color: var(--headerBackground);
  color: var(--secondary);
  backdrop-filter: blur(0);
  height: 80px;
  transition: 0.2s ease-in-out;
}
.navbar a{
  text-decoration: none;
}
.navbar-wrapper.scrolled .navbar {
  background-color: var(--headerBlure);
  backdrop-filter: blur(10px);
  box-shadow: 0 3px 5px rgba(0, 0, 0, 0.1);
  height: 60px;
}

.logo {
  font-size: 35px;
  font-weight: bold;
  padding: 0 30px;
  color: var(--primary);
}

.logo img {
  width: 52px;
  height: auto;
  margin-right: 0.1em;
}

/* Nav Links */
.nav-links {
  height: 100%;
  font-style: italic;
  display: flex;
  flex-direction: row;
  align-items: center;
}

.nav-links li {
  position: relative;
  font-size: 17px;
  height: 100%;
  border-left: 1px solid var(--white);
}

.navbar-wrapper.scrolled .nav-links li {
  border-left: 1px solid var(--headerBackground);
}

.nav-links a,
.lang-btn {
  text-decoration: none;
  color: var(--secondary);
  padding: 0 30px;
  display: flex;
  align-items: center;
  height: 100%;
  background: none;
  border: none;
  cursor: pointer;

}

.lang-btn {
  font-style: italic;
  font-size: 17px;

}

.nav-links li:hover,
.lang-dropdown:hover {
  background-color: var(--whiteContrast);
}

.lang-dropdown>a {
  display: flex;
  align-items: center;
  height: 100%;
  padding: 0 30px;
  text-decoration: none;
  color: var(--secondary);
}

/* Dropdown */
.lang-dropdown {
  position: relative;
  z-index: 1000;
}

.lang-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background-color: var(--whiteContrast);
  z-index: 1001;
  width: 100%;
  text-align: center;
}

.lang-menu li a {
  display: block;
  padding: 8px 15px;
  border-bottom: 1px solid var(--secondaryAccent);
  color: var(--secondary);
  text-decoration: none;
  white-space: nowrap;
  font-family: "Noto Naskh Arabic", serif;
}

.lang-menu li a:hover {
  background-color: var(--white);
}

.lang-dropdown:hover .lang-menu {
  display: block;
}

.lang-dropdown img {
  margin-left: 3px;
  transition: transform 0.3s ease;
}

.lang-dropdown:hover img {
  transform: rotate(-90deg);
}

/* Icons */
.icon-s {
  width: 16px;
  height: auto;
}

/* Footer */
footer {
  background-color: var(--white);
  padding: 2em 2em 1em;
  text-align: center;
  color: #333;
  margin: 0 2em 1em 2em;
}

.footer-line {
  height: 2px;
  width: 100%;
  background-color: var(--headerBackground);
  margin-bottom: 1em;
  display: block;
}

.footer-wrapper {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 2em;
  align-items: center;
  padding: 1em 2.5em;
}

/* Cafe name */
.cafe-div {
  font-family: 'Caprasimo', serif;
  font-size: 26px;
  color: var(--secondary);
  font-weight: bold;
}

/* Cafe info */
.cafe-info {
  font-size: 15px;
  color: var(--secondary);
}

.cafe-info a,
#developer a {
  color: var(--secondaryAccent);
  text-decoration: none;
}

.cafe-info a:hover,
#developer a:hover {
  color: var(--secondary);
  text-decoration: underline;
}

/* Social */

.social-icons {
  display: flex;
  justify-content: center;
  gap: 1em;
  flex-wrap: wrap;
}

.social-icons img {
  width: 32px;
  transition: transform 0.3s ease;
}

.social-icons img:hover {
  transform: scale(1.1);
}

.footer-wrapper .social-icons img {
  width: 28px;
  transition: transform 0.3s ease;
}

.footer-wrapper .social-icons img:hover {
  transform: scale(1.1);
}

/* Developer credit */
#developer {
  margin-top: 1em;
  font-size: 14px;
  font-style: italic;
}

/* Hide hamburger by default */
#nav-icon3 {
  width: 30px;
  height: 25px;
  position: relative;
  margin: 30px auto;
  transform: rotate(0deg);
  transition: 0.5s ease-in-out;
  cursor: pointer;
  display: none;
  order: 0;
}

#nav-icon3 span {
  display: block;
  position: absolute;
  height: 2px;
  width: 100%;
  background: var(--secondary);
  border-radius: 5px;
  opacity: 1;
  left: 0;
  transform: rotate(0deg);
  transition: 0.25s ease-in-out;
}


#nav-icon3 span:nth-child(1) {
  top: 0px;
}

#nav-icon3 span:nth-child(2),
#nav-icon3 span:nth-child(3) {
  top: 8px;

}

#nav-icon3 span:nth-child(4) {
  top: 16px;

}


#nav-icon3.open span:nth-child(1),
#nav-icon3.open span:nth-child(4) {
  top: 8px;
  width: 0%;
  left: 50%;
}

#nav-icon3.open span:nth-child(2) {
  transform: rotate(45deg);
}

#nav-icon3.open span:nth-child(3) {
  transform: rotate(-45deg);
}

@media (max-width: 768px) {
  main {
    margin: 2em 1em 0;
  }
.top-header {
  font-size: 2em;
  padding-top: 80px;
}
  /* Logo */
  .logo {
    font-size: 26px;
  }

  .navbar-wrapper {
    padding: 0 1em;
  }

  .navbar-wrapper.scrolled {
    padding: 0 0.5em;
  }

  .logo img {
    width: 42px;
  }

  #nav-icon3 {
    display: block;
    position: fixed;
    top: 0;
    right: 20px;
    z-index: 1002;
  }

  .nav-links {
    display: none;
    flex-direction: column !important;
    align-items: flex-start !important;
    justify-content: flex-start !important;
    position: fixed;
    top: 60px;
    right: 0;
    height: calc(100vh - 70px);
    width: 250px;
    background-color: var(--headerBackground);
    padding-top: 20px;
    z-index: 1001;
    transform: translateX(100%);
    transition: transform 0.3s ease-in-out;
  }

  .nav-links.active {
    display: flex;
    transform: translateX(0%);
  }

  .nav-links li {
    display: block;
    width: 100%;
    border: none;
    height: 50px;
  }

  .nav-links a {
    padding-top: 15px;
    display: block;
    width: 100%;
    text-align: center;
  }

  .lang-btn {
    display: block;
    width: 100%;
    text-align: center;
  }

  .lang-menu {
    position: static;
    background-color: transparent;
    box-shadow: none;
  }

  .lang-menu li a {
    padding-left: 1em;
  }

  .lang-dropdown:hover .lang-menu {
    display: block;
  }

  footer {
    margin: 0 1em 1em 1em;
  }

  .footer-wrapper {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .cafe-info ul {
    align-items: center;
  }
}

/* Right to Left Edition */
/* RTL overrides */
.rtl .navbar {
  direction: rtl;
}

/* Change Fonts */
.rtl .caprasimo-regular {
  font-family: "Noto Naskh Arabic", serif !important;
}

.rtl .imperial-script-regular {
  font-family: "Aref Ruqaa", serif !important;
}

/* Change Logo in Header */
.rtl .logo {
  padding: 0 30px 0 0;
}

.rtl .logo img {
  margin-left: 0.1em;
}

.rtl .logo-script-vero {
  font-family: "Aref Ruqaa", serif;
}

.rtl .logo .logo-coffee {
  font-family: "Lateef", serif;
}

.rtl .lang-dropdown:hover img {
  transform: rotate(90deg);
}

.rtl .nav-links.active {
  left: 0 !important;
  right: auto !important;
  transform: translateX(0%);
  /* slide into view */
}

.rtl .nav-links li {
  border-left: none;
  border-right: 1px solid var(--white);
}

.rtl .h3-style {
  font-weight: bold;
}

.rtl .cafe-name {
  font-weight: bold;
}

.rtl .navbar-wrapper.scrolled .nav-links li {
  border-right: 1px solid var(--headerBackground);
}

.rtl .lang-dropdown img {
  margin-left: 0;
  margin-right: 3px;
}

/* Menu Page */
.rtl .item-name p {
  text-align: right;
  direction: rtl;
}

.rtl .item-name {
  border-right: none;
  border-left: 1px solid var(--headerBackground);
}

/* Humbergr icon */
.rtl #nav-icon3 {
  right: auto;
  left: 20px;
}

.rtl .item-name {
  border-right: 1px solid var(--headerBackground);
  border-left: none;
}
/* Reusable: force left-to-right in RTL layouts */
.rtl .force-ltr {
  direction: ltr;
  unicode-bidi: isolate;
  white-space: nowrap;
  display: inline-block;
  text-align: left;
}

/* ******************************************* */
/* LTR reset in case you switch back */
.ltr .caprasimo-regular {
  font-family: "Caprasimo", serif !important;
}

.ltr .imperial-script-regular {
  font-family: "Imperial Script", cursive !important;
}

/* Change Logo in Header */
.ltr .logo {
  padding: 0 30px 0 0;
}

.ltr .logo img {
  margin-right: 0.1em;
}

.ltr .logo .logo-script-vero {
  font-family: "Imperial Script", cursive;
}

.ltr .logo .logo-coffee {
  font-family: "Caprasimo", serif !important;
}

.ltr .navbar {
  direction: ltr;
}

.ltr .nav-links {
  flex-direction: row;
}

.ltr .logo {
  padding: 0 0 0 30px;
}

.ltr .nav-links li {
  border-right: none;
  border-left: 1px solid var(--white);
}

.ltr .navbar-wrapper.scrolled .nav-links li {
  border-left: 1px solid var(--headerBackground);
}

/* Menu Page */
.ltr .item-name p {
  text-align: left;
  direction: ltr;
}

/* Humbergr icon */
.ltr #nav-icon3 {
  right: 20px;
  left: auto;
}
