.text-button:hover {
  opacity: 0.6;
}

/* --------------------------------------------------
   Magda Clean
-------------------------------------------------- */
@font-face {
  font-family: 'Magda';
  src: url('../fonts/MagdaClean.woff2') format('woff2'),
       url('../fonts/MagdaClean.otf') format('opentype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

/* --------------------------------------------------
   Magda Bold
-------------------------------------------------- */
@font-face {
  font-family: 'Magda_Bold';
  src: url('../fonts/MagdaWeb-Bold.woff2') format('woff2');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

/* --------------------------------------------------
   Magda Light
-------------------------------------------------- */
@font-face {
  font-family: 'Magda_Light';
  src: url('../fonts/MagdaWeb-Light.woff2') format('woff2');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

/* --------------------------------------------------
   COLOR SYSTEM — LIGHT MODE
-------------------------------------------------- */
:root {
  --bg: #FEF3DB;
  --text: #162647;
  --border: #162647;
  --hover: #FFF2D8;
  --toast-bg: #162647;
  --transition: 0.25s ease;
}

/* --------------------------------------------------
   DARK MODE — INDUSTRIAL GREY
-------------------------------------------------- */
.dark {
  --bg: #1c1d20;
  --text: #FFF5D9;
  --border: #3a3c40;
  --hover: #2f3035;
  --toast-bg: #3a3c40;
}

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

a {
  text-decoration: none;
  color: inherit;
}

/* --------------------------------------------------
   GLOBAL
-------------------------------------------------- */
body {
  font-family: 'Magda', sans-serif;
  background-color: var(--bg);
  color: var(--text);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  transition: background-color var(--transition), color var(--transition);
}

/* --------------------------------------------------
   HEADER BASE
-------------------------------------------------- */
header {
  width: 100%;
  height: 150px;
  border-bottom: 1px solid var(--border);
  background-color: var(--bg);
  position: fixed;
  top: 0;
  z-index: 1000;

  display: flex;
  align-items: center;
}

/* --------------------------------------------------
   DESKTOP LOGO
-------------------------------------------------- */
.desktop-logo {
  flex: 0 0 500px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-right: 1px solid var(--border);
}

.desktop-logo img {
  height: 40px;
  width: auto;
  cursor: pointer;
}

/* --------------------------------------------------
   DESKTOP NAV
-------------------------------------------------- */
#desktopNav {
  flex: 1;
  display: flex;
  height: 100%;
  justify-content: space-evenly; /* evenly distribute items */
}

#desktopNav a {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;

  background-color: var(--bg);
  border-right: 1px solid var(--border);

  text-transform: lowercase;
  font-size: 1rem;
  transition: var(--transition);
}

#desktopNav a:hover {
  background-color: var(--hover);
}

#desktopNav a.active {
  background-color: var(--bg) !important;
  color: var(--text) !important;
}

#desktopNav a.active:hover {
  background-color: var(--hover) !important;
  color: var(--text) !important;
}


/* Remove flex:1 from links */
#desktopNav a {
  display: flex;
  justify-content: center;
  align-items: center;

  background-color: var(--bg);
  border-right: 1px solid var(--border);

  text-transform: lowercase;
  font-size: 1rem;
  transition: var(--transition);
}

/* Dropdown parent behaves like a normal link */
#desktopNav .has-dropdown {
  flex: 1;                  /* equal width like other links */
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  background-color: var(--bg);
  text-transform: lowercase;
  font-size: 1rem;
  transition: var(--transition);
}


#desktopNav .has-dropdown > a {
  flex: 1;                  /* fill the parent box */
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100%;
  color: var(--text);
}


/* Dropdown panel */
#desktopNav .has-dropdown .dropdown {
  position: absolute;
  top: 100%;
  left: 0;

  width: 100%;                /* match width of Products button */
  background: var(--bg);
  border: 1px solid var(--border);

  display: flex;
  flex-direction: column;

  opacity: 0;
  pointer-events: none;
  transform: translateY(6px);
  transition: opacity 0.15s ease, transform 0.15s ease;
  z-index: 1000;
}

/* Dropdown links */
#desktopNav .has-dropdown .dropdown a {
  padding: 40px 40px;          /* more vertical + horizontal space */
  font-size: 1rem;             /* match nav font size */
  text-align: center;          /* center text nicely */
  border-top: 1px solid var(--border); /* divider between items */
}

#desktopNav .has-dropdown .dropdown a:first-child {
  border-top: none;            /* remove divider above first item */
}

/* Show dropdown on hover */
#desktopNav .has-dropdown:hover .dropdown {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}



/* --------------------------------------------------
   MAIN + HERO
-------------------------------------------------- */
main {
  flex: 1;
  padding: 150px 40px 60px 40px;

  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.hero-title {
  font-family: 'Magda_Light', sans-serif;
  font-size: 3.0rem;
  opacity: 1;
  margin-bottom: 15px; /* increase this */
}


.hero-sub {
  font-size: 1.5rem;
  opacity: 0.85;
}

/* --------------------------------------------------
   FOOTER
-------------------------------------------------- */
footer {
  padding: 20px;
  text-align: center;
  border-top: 1px solid var(--border);
}

/* --------------------------------------------------
   TOAST
-------------------------------------------------- */
#toast {
  position: fixed;
  bottom: -60px;
  left: 50%;
  transform: translateX(-50%);

  background-color: var(--toast-bg);
  color: white;
  padding: 14px 24px;
  border-radius: 6px;
  font-size: 0.95rem;

  opacity: 0;
  transition: all 0.4s ease;
  z-index: 2000;
}

#toast.show {
  bottom: 40px;
  opacity: 1;
}

/* --------------------------------------------------
   MOBILE HEADER
-------------------------------------------------- */
.mobile-header {
  display: none;
  width: 100%;
  height: 150px;

  align-items: center;
  justify-content: center;

  border-bottom: 1px solid var(--border);
  position: relative;
}

.mobile-logo img {
  height: 40px;
  width: auto;
  cursor: pointer;
}

/* --------------------------------------------------
   MOBILE 3-DOT MENU BUTTON
-------------------------------------------------- */
#mobileMenuBtn {
  display: none;
  flex-direction: column;
  gap: 4px;

  background: none;
  border: none;
  cursor: pointer;

  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
}

#mobileMenuBtn span {
  width: 22px;
  height: 3px;
  background-color: var(--text);
  border-radius: 2px;
}

/* --------------------------------------------------
   MOBILE DRAWER MENU — RIGHT → LEFT
-------------------------------------------------- */
#mobileNav {
  position: fixed;
  top: 0;
  right: -83%;
  width: 83%;
  height: 100vh;

  background-color: var(--bg);
  border-left: 1px solid var(--border);

  display: flex;
  flex-direction: column;
  justify-content: space-evenly; /* evenly spaced buttons */

  align-items: center;
  transition: right 0.3s ease;

  z-index: 2001;
}

#mobileNav a {
  width: 100%;
  padding: 25px 0;
  font-size: 1.4rem;
  text-align: center;

  border-top: 1px solid var(--border);
  background-color: var(--bg);

  color: var(--text) !important;
  text-decoration: none !important;

  transition: var(--transition);
}

#mobileNav a:hover {
  background-color: var(--hover);
}

/* --------------------------------------------------
   DIM BACKGROUND WHEN MENU OPEN
-------------------------------------------------- */
#menuOverlay {
  position: fixed;
  top: 0;
  left: 0;

  width: 100%;
  height: 100%;

  background: rgba(0,0,0,0.2);
  opacity: 0;
  visibility: hidden;

  transition: opacity 0.25s ease;
  z-index: 1500;
}

#menuOverlay.show {
  visibility: visible;
  opacity: 1;
}

/* --------------------------------------------------
   RESPONSIVE (MOBILE)
-------------------------------------------------- */
@media (max-width: 768px) {

  /* hide desktop nav & logo */
  .desktop-logo {
    display: none;
  }

  #desktopNav {
    display: none;
  }

  /* show mobile header */
  .mobile-header {
    display: flex;
  }

  #mobileMenuBtn {
    display: flex;
  }

  main {
    padding: 150px 20px 60px 20px;
  }
  
  
}

/* Dropdown container */
.has-dropdown {
  position: relative;
}

/* Dropdown panel */
.dropdown {
  position: absolute;
  top: 100%;
  left: 0;

  background: var(--bg, #111);
  border: 1px solid rgba(255,255,255,0.08);
  min-width: 160px;

  opacity: 0;
  pointer-events: none;
  transform: translateY(6px);

  transition: opacity 0.15s ease, transform 0.15s ease;
  z-index: 1000;
}

/* Dropdown links */
.dropdown a {
  display: block;
  padding: 10px 16px;
  font-size: 13px;
  color: inherit;
  text-decoration: none;
  white-space: nowrap;
}

.dropdown a:hover {
  background: rgba(255,255,255,0.05);
}

/* Show dropdown on hover */
.has-dropdown:hover .dropdown {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

@media (max-width: 768px) {
  .has-dropdown .dropdown {
    display: none;
  }
}
