/* --------------------------------------------------
   GLOBAL PAGE LAYOUT
-------------------------------------------------- */

.page {
  padding: calc(var(--header-height) + 42px) clamp(24px, 8vw, 120px)
    clamp(100px, 12vh, 120px);
}

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);
}

main {
  flex: 1;
  display: flex;
  flex-direction: column; /* stack children vertically */
  align-items: center;
  justify-content: center;
  text-align: center;
}

html {
  scroll-behavior: auto;
}

html,
body {
  -webkit-overflow-scrolling: touch;
}

.page-reset {
  position: relative;
  transform: translateZ(0);
  contain: layout;
}

/* --------------------------------------------------
   BACK TO TOP BUTTON
-------------------------------------------------- */

#backToTop {
  position: fixed;
  right: 32px;
  bottom: 80px;

  width: 44px;
  height: 44px;

  border: 1px solid var(--border);
  background: #1c1d20;
  color: #fef3db;

  font-size: 18px;
  cursor: pointer;

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

  z-index: 99999;

  transition:
    opacity 0.2s ease,
    transform 0.2s ease,
    background 0.2s ease;
}

#backToTop:hover {
  transform: translateY(-2px);
}

/* --------------------------------------------------
   LANGUAGE PAGE
-------------------------------------------------- */
main.home {
  position: relative;
  width: 100%;
  min-height: 100vh;
  display: block;
}

.language-box {
  width: min(700px, 100%);
}

.language-head {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: min(700px, calc(100% - 48px));
  padding: 0;
  border-bottom: none;
  text-align: center;
}

.language-head h1 {
  font-family: "Magda_Light", sans-serif;
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 400;
  letter-spacing: 0.04em;
}

.language-head p {
  margin-top: 0;
  margin-bottom: 50px;
  text-align: center;
  letter-spacing: -1px;
  font-family: "Magda", sans-serif;
  font-size: clamp(1.3rem, 1.5vw, 1.9rem);
  opacity: 0.8;
}

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

.language-option {
  display: flex;
  font-family: "Magda", sans-serif;
  align-items: center;
  justify-content: center;
  min-height: 88px;
  padding: 20px;
  border: none;
  background: transparent;
  color: var(--text);
  font: inherit;
  font-size: clamp(1rem, 2vw, 1.2rem);
  border-bottom: 1px solid var(--border);
  border-top: 1px solid var(--border);
  border-right: 1px solid var(--border);
  border-left: 1px solid var(--border);
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.language-option:nth-child(2) {
  border-top: none;
}

.language-option:last-child {
  border-top: none;
}

.language-option:hover {
  background: var(--hover);
}

/* ===============================
   LOGO LANGUAGE
   =============================== */

.desktop-logo-language {
  display: flex;
  justify-content: center;
  align-items: center;
  padding-top: 70px;
  padding-bottom: 0;
}

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

/* --------------------------------------------------
   PAGE TRANSITION
-------------------------------------------------- */

main {
  animation: pageFade 0.5s ease forwards;
}

@keyframes pageFade {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.page-container {
  padding-top: 130px;
  padding-bottom: 120px;
  padding-left: clamp(24px, 6vw, 120px);
  padding-right: clamp(24px, 6vw, 120px);
}

/* --------------------------------------------------
   TEST FONT - MAGDA
-------------------------------------------------- */

.page.test-font {
  padding: calc(var(--header-height) + 42px) clamp(24px, 8vw, 120px)
    clamp(100px, 12vh, 120px);
  margin-top: 150px;
  border: 3px solid red;
  padding: 30px;
}

.test-font-box {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 40px;
  border: 3px solid var(--border);
  margin-bottom: 10px;
}

.test-font-announcement {
  font-family: "Magda", sans-serif;
  font-size: 1.5rem;
  letter-spacing: 1.5px;
  color: var(--text);
  padding-bottom: 50px;
}

.test-font-1 {
  font-family: "Magda_Bold", sans-serif;
  font-size: 2rem;
  color: var(--text);
}

.test-font-2 {
  font-family: "Magda_Regular", sans-serif;
  font-size: 2rem;
  color: var(--text);
}

.test-font-3 {
  font-family: "Magda_Light", sans-serif;
  font-size: 2rem;
  color: var(--text);
}

.test-font-4 {
  font-family: "Magda", sans-serif;
  font-size: 2rem;
  color: var(--text);
}

.test-font-5 {
  font-family: "vn-header", sans-serif;
  font-size: 1.6rem;
  color: var(--text);
}

.test-font-6 {
  font-family: "vn-body", sans-serif;
  font-size: 1.6rem;
  color: var(--text);
}

.test-font-7 {
  font-family: "vn-normal", sans-serif;
  font-size: 1.6rem;
  color: var(--text);
  letter-spacing: 1.5px;
}

/* --------------------------------------------------
   FONT - MAGDA
-------------------------------------------------- */
@font-face {
  font-family: "Magda";
  src: url("/fonts/MagdaClean.woff2") format("woff2");
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

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

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

@font-face {
  font-family: "Magda_Regular";
  src: url("/fonts/Magda-Text-Regular.woff2") format("woff2");
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

/* --------------------------------------------------
   FONT - VIETNAMESE SUPPORT (FALLBACK)
-------------------------------------------------- */
@font-face {
  font-family: "vn-header";
  src: url("/fonts/DC-Monument-Extended-Ultrabold.woff2") format("woff2");
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "vn-body";
  src: url("/fonts/VerdanaPrimer.woff2") format("woff2");
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "vn-normal";
  src: url("/fonts/SVN_Agency_FB.woff2") format("woff2");
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

/* --------------------------------------------------
   COLOR SYSTEM — LIGHT MODE (DEFAULT)
-------------------------------------------------- */
:root {
  --bg: #fef3db;
  --text: #162647;
  --border: #162647;

  --hover: #e0d6c5; /* light mode hover */

  --toast-bg: #162647;
  --transition: 0.25s ease;

  --header-height: 150px;
}

/* --------------------------------------------------
   COLOR SYSTEM — DARK MODE
-------------------------------------------------- */
.dark {
  --bg: #1c1d20;
  --text: #fff5d9;
  --border: #3a3c40;

  --hover: #2f3035; /* dark hover override */

  --toast-bg: #3a3c40;
}

/* --------------------------------------------------
   LIGHT/DARK MODE NOFITICATION
-------------------------------------------------- */

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

  display: flex;
  justify-content: center; /* horizontal center inside box */
  align-items: center; /* vertical center inside box */
  text-align: center;

  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: 99999; /* maximum priority above header, menu etc */
}

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

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

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

/* --------------------------------------------------
   HEADER 
-------------------------------------------------- */

.desktop-logo,
#desktopNav {
  height: 100%;
}

.footer-logo {
  position: fixed;
  left: 50%;
  bottom: 40px;
  transform: translateX(-50%);

  z-index: 9999;

  background: #1c1d20;
  padding: 12px 16px;

  border-radius: 4px;

  width: 250px;
  opacity: 0.9;

  pointer-events: none;
}

header {
  width: 100%;
  height: 150px;
  min-height: 150px;
  border-bottom: 1px solid var(--border);
  background-color: var(--bg);
  position: fixed;
  top: 0;
  z-index: 9999;

  display: flex;
  align-items: center;

  /* IMPORTANT */
  transform: translateY(0);
  transition: transform 0.3s ease;
  will-change: transform;
}

/* Hidden when scroll down */
header.folded {
  transform: translateY(-150px);
}

/* Visible when scroll up */
header.extended {
  transform: translateY(0);
}

/* ===============================
   DESKTOP LOGO (MENU)
   =============================== */

.desktop-logo {
  flex: 0.5;
  min-width: 300px; /* optional safety */
  display: flex;
  align-items: center;
  justify-content: center;
  border-right: 1px solid var(--border);
  user-select: none;
}

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

/* ===============================
   DESKTOP NAV (MENU)
   =============================== */

#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);
}

/* hover states */
#desktopNav a:hover,
#desktopNav .dropdown a:hover,
.dropdown a:hover {
  background: 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;
}

/* 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);
  cursor: pointer;
}

#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: -1px;
  width: calc(100% + 1px); /* match width of Products button */

  background: var(--bg);
  border-left: 1px solid var(--border);
  border-bottom: 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;
  font-size: 1rem;
  text-align: center;
  border-top: 1px solid var(--border);
}

#desktopNav .has-dropdown .dropdown a:first-child {
  border-top: 1px solid var(--border);
}

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

/* ===============================
   MENU DROPDOWN
   =============================== */

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

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

  background: var(--bg, #111);
  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;
}

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

/* ===============================
   ANNOUNCEMENT BAR (RESERVED)
   =============================== */

.announcement-bar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;

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

  padding: 25px 20px;

  background-color: #0f1011;
  color: #fef3db;

  border-bottom: 1px solid var(--border);

  font-family: "Magda", sans-serif;
  font-size: 1.1rem;
  letter-spacing: 1.5px;

  z-index: 10000;
}

.announcement-text {
  text-align: center;
}

.announcement-close {
  position: absolute;
  right: 20px;

  background: none;
  border: none;
  color: var(--text);

  font-size: 2.5rem;
  cursor: pointer;

  transition: opacity 0.2s ease;
}

.announcement-close:hover {
  opacity: 0.6;
}

body.has-announcement header {
  top: 65px; /* match announcement height */
}

/* smooth collapse animation */
.announcement-bar {
  overflow: hidden;
  transition:
    height 0.35s ease,
    padding 0.35s ease,
    opacity 0.25s ease,
    transform 0.35s ease;
}

/* closing state */
.announcement-bar.closing {
  opacity: 0;
  transform: translateY(-10px);

  height: 0 !important;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
}

/* --------------------------------------------------
   VIETNAMESE TYPOGRAPHY
-------------------------------------------------- */

.lang-vi,
.lang-vi body,
.lang-vi p,
.lang-vi a,
.lang-vi li,
.lang-vi span,
.lang-vi label,
.lang-vi input,
.lang-vi textarea,
.lang-vi select,
.lang-vi button,
.lang-vi blockquote,
.lang-vi figcaption,
.lang-vi td,
.lang-vi th,
.lang-vi #desktopNav a,
.lang-vi #mobileMenuSheet a {
  font-family: "vn-normal", sans-serif;
}

.lang-vi h1,
.lang-vi h2,
.lang-vi h3,
.lang-vi h4,
.lang-vi h5,
.lang-vi h6,
.lang-vi .hero-title,
.lang-vi .home-philosophy-title,
.lang-vi .section-title,
.lang-vi .mobile-page-title,
.lang-vi .desc {
  font-family: "vn-header", sans-serif;
}

.lang-vi .hero-sub,
.lang-vi .hero-description,
.lang-vi .home-philosophy-block p,
.lang-vi .home-philosophy-block h3,
.lang-vi .home-link,
.lang-vi .breadcrumb,
.lang-vi .edition,
.lang-vi .note,
.lang-vi .product-info,
.lang-vi .services-list-text,
.lang-vi .knowledge-item,
.lang-vi .about-text,
.lang-vi footer,
.lang-vi .announcement-bar,
.lang-vi .products-toggle,
.lang-vi .products-submenu a {
  font-family: "vn-body", sans-serif;
}

/* --------------------------------------------------
   HOME PAGE + HERO
-------------------------------------------------- */

/* ===============================
   HOME PAGE CUSTOM PADDING
   =============================== */

.home {
  max-width: 1500px;
  margin: 0 auto;
  padding-left: clamp(16px, 4vw, 40px);
  padding-right: clamp(16px, 4vw, 40px);
  scroll-snap-type: y proximity;
  scroll-padding-top: 80px;
  overscroll-behavior-y: none;
}

.hero {
  height: clamp(400px, 70vh, 700px); /* safer than height on mobile */
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;

  text-align: left;

  min-height: 100vh;
}

.home-philosophy {
  width: 100%;
  margin: 0;

  padding: clamp(192px, 27.6vh, 468px) 0 clamp(160px, 23vh, 390px);

  text-align: left;
  justify-content: flex-start;
}

.hero-extra-1 {
  font-family: "Magda_Light", sans-serif;
  font-size: clamp(1rem, 1.8vw, 1.5rem);
  color: var(--text);

  max-width: 1500px;
  margin: 0 auto clamp(120px, 20vh, 400px);

  line-height: 1.6;
  letter-spacing: 2px;

  padding: clamp(156px, 23.4vh, 390px) 0;
  text-align: left;
}

.page-transition {
  position: fixed;
  top: 100%;
  left: 0;
  width: 100%;
  height: 100%;
  background: #f6f3ee; /* your site background */
  z-index: 9999;
  transition: top 0.6s ease;
}

.page-transition.active {
  top: 0;
}

/* ===============================
   SNAP IN CODE
   =============================== */

body.home {
  scroll-snap-type: y mandatory;
}

/* homepage snap sections */

.home section {
  min-height: 100vh;
  scroll-snap-align: start;

  display: flex;
  flex-direction: column;
  justify-content: center;
}

.home section:first-of-type {
  scroll-snap-align: start;
  min-height: 100vh;
}

/* ===============================
   FIRST - MAIN TITLE
   =============================== */

/* mot cuc dat - a lump of clay */
.hero-title {
  font-family: "Magda_Light", sans-serif;
  font-size: clamp(2rem, 4vw, 3rem);
  opacity: 1;
  margin-top: clamp(60px, 10vh, 140px);
  user-select: none;
}

/* is where everything begins */
.hero-sub {
  font-family: "Magda_Light", sans-serif;
  font-size: clamp(1rem, 1.8vw, 1.4rem);
  opacity: 0.85;
  margin-top: 10px;
  color: var(--text);
  margin-top: 16px;
}

/*  At mot cuc dat, clay is a way... */
.hero-description {
  font-family: "Magda_Light", sans-serif;
  font-size: clamp(1rem, 1.8vw, 1.4rem);
  letter-spacing: 1px;

  padding-top: 110px;
  max-width: clamp(800px, 90vw, 1600px);
  color: var(--text);
  line-height: 1.6;
  text-align: left;
}

/* ===============================
   SECOND - SHIFT LEFT PARAGRAPH
   =============================== */

/*  mot cuc dat — Sustainability & Creativity */
.home-philosophy-title {
  font-family: "Magda_Light", sans-serif;
  font-size: clamp(1.52rem, 2.71vw, 2.05rem);

  letter-spacing: 0.8px;
  text-align: left;
  margin-bottom: clamp(60px, 10vh, 120px);
}

/*  Objects - HEADER OF THE PARAGRAPH */
.home-philosophy-block h3 {
  font-family: "Magda_Light", sans-serif;
  font-size: clamp(1rem, 1.8vw, 1.4rem);
  text-decoration: underline;
  margin-bottom: 12px;
}

/*  Our pieces stay raw and honest... */
.home-philosophy-block {
  letter-spacing: 0.8px;
  font-size: clamp(1.1rem, 2vw, 1.5rem);
  margin-bottom: clamp(50px, 8vh, 120px);
}

/*  Service Page */
.home-philosophy-block p {
  font-family: "Magda_Light", sans-serif;
  font-size: clamp(0.94rem, 1.7vw, 1.28rem);

  line-height: 1.8;
  letter-spacing: 0.8px;
  margin-bottom: 10px;
}

/* ===============================
   THRID - OUR BELIEF
   =============================== */

/*  Our Belief */
.hero-extra-title {
  font-family: "Magda_Light", sans-serif;
  font-weight: 700;
  display: block;
  margin-bottom: clamp(60px, 10vh, 120px);
}

.home-links {
  max-width: 700px;
  margin: 160px auto;
  padding: 0 40px;
}

.home-text {
  font-size: 0.95rem;
  line-height: 1.8;
  margin-bottom: 40px;
  color: var(--text);
}

.home-buttons {
  display: flex;
  flex-direction: column;
  gap: 10px;
  user-select: none;
}

.home-link {
  font-family: "Magda", sans-serif;
  font-size: clamp(1.1rem, 1.8vw, 1.5rem);
  color: var(--text-color);
  text-decoration: underline;
  transition: opacity 0.2s ease;
}

.home-link:hover {
  opacity: 0.8;
}

/*  Paragraph use hero-sub  */

/* ===============================
   FOURTH - MAP LINK
   =============================== */

.hero-extra-2 {
  display: flex;
  justify-content: flex-start;
  align-items: center;

  padding: clamp(60px, 10vh, 160px) 0;
}

.hero-extra-2 .home-map-link {
  display: block;
  text-align: left;

  font-size: clamp(1.3rem, 2vw, 2rem);

  font-family: "Magda", sans-serif;
}

/* ===============================
   HOME DISCOVER MORE SELECTION
   =============================== */

.about-discover {
  max-width: 1400px;
  margin: 160px auto 250px;
  padding: 0 100px;
}

.about-discover-title {
  font-family: "Magda_Light", sans-serif;
  font-size: 2rem;
  letter-spacing: 2px;
  margin-bottom: 60px;
  text-align: left;
  color: var(--text);
}

.about-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
}

.about-box {
  border: 1px solid var(--border);
  text-decoration: none;
  color: inherit;
  display: block;
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

.about-box:hover {
  transform: translateY(-8px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.about-box img {
  width: 100%;
  height: auto;
  display: block;
}

.about-label {
  font-family: "Magda", sans-serif;
  font-size: 1.6rem;
  letter-spacing: 2px;
  text-align: left;
  color: var(--text);
  padding: 10% 5% 10% 5%;
}

.about-frame {
  max-width: 1200px;
  margin: 50px auto;

  /* hidden state */
  opacity: 0;
  transform: translateY(40px);
  transition:
    opacity 1s ease,
    transform 1s ease;
}

.about-frame.visible {
  opacity: 1;
  transform: translateY(0);
}

.about-discover {
  max-width: 1600px;
  margin: 0 auto;
  padding: 120px 10px;
}

/* ===============================
   HOME IMAGE (RESERVED)
   =============================== */

.home-image-pair {
  display: flex;
  align-items: flex-start;

  gap: clamp(80px, 12vw, 220px);
}

.home-image-section {
  padding-top: 30vh;
  padding-bottom: 70vh;
  display: flex;
  justify-content: flex-start;
}

.home-image-section img {
  width: clamp(180px, 20vw, 300px);
  margin-left: 10%;
  margin-right: auto;
  height: auto;
  display: block;
}

.home-image-figure {
  margin: 0;
  margin-left: 10%;
  width: clamp(220px, 28vw, 380px);
}

.home-image-figure-2 {
  margin: 0;

  width: clamp(440px, 46vw, 680px);

  margin-top: clamp(80px, 12vh, 220px);

  margin-left: auto; /* pushes it to the right edge inside the container */
}

.home-image-figure-2 img {
  width: 100%;
  height: auto;
  display: block;
}

.home-image-figure img {
  width: 100%;
  height: auto;
  display: block;
}

.home-image-caption {
  font-family: "Magda", sans-serif;
  font-size: clamp(0.85rem, 1vw, 1.1rem); /* slightly bigger */
  color: var(--text);

  margin-top: 10px;
  margin-left: 10%; /* shifts caption right to align visually with image */
  text-align: left;
}

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

.desktop-footer {
  display: block;
}

/* --------------------------------------------------
   404 PAGE
-------------------------------------------------- */

.page-404 {
  min-height: calc(100vh - var(--header-height));
  display: flex;
  align-items: center;
  margin-left: 30px;
  font-size: clamp(1.4rem, 2vw, 1.6rem);
}

.lost {
  font-family: Magda_Light, sans-serif;
  font-size: clamp(1rem, 2.5vw, 1.5rem);
  text-align: left;
  width: 100%;
}

/* --------------------------------------------------
   MOBILE ELEMENTS HIDDEN ON DESKTOP
-------------------------------------------------- */

.mobile-page-title,
.services-title-mobile,
.mobile-header,
.hero-desktop,
.mobile-footer {
  display: none;
}

#mobileMenuSheet {
  display: none;
}

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

/* --------------------------------------------------
   MEDIA WIDTH 1100px (Tablet)
-------------------------------------------------- */

@media (max-width: 1100px) {
  .breadcrumb,
  .cover-image,
  .desktop-footer {
    display: none !important;
  }

  .mobile-footer {
    display: block;
    text-align: left;
    font-family: "Magda", sans-serif;
    letter-spacing: 1px;
    text-decoration: none;
    color: var(--text);
  }

  /* ===============================
   Mobile Product Layout
=============================== */

  .product-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .product-sub-page {
    padding-left: 30px;
    padding-right: 30px;
    margin-top: 0px;
  }

  .mobile-page-title {
    display: block;
    font-family: "Magda", sans-serif;
    font-size: 2.1rem;
    letter-spacing: 2px;
    margin-top: 30px;
    margin-bottom: 5px;
  }

  /* ===============================
   Mobile Services Layout
=============================== */

  .service-grid {
    grid-template-columns: 1fr;
  }

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

  .services-title-mobile {
    display: block;
    font-family: "Magda", sans-serif;
    font-size: 2.1rem;
    letter-spacing: 2px;
    margin-top: 30px;
    margin-bottom: 50px;
  }

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

  .tab-row::after {
    left: 50%;
    transform: translateX(-50%);
    width: 180px; /* adjust if needed */
  }

  /* ===============================
   Mobile Sub Service Layout
=============================== */

  .services-info-block {
    min-height: 100vh;

    scroll-snap-align: start;

    display: flex;
    flex-direction: column;

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

    padding-top: 0;
    padding-left: 50px;
    padding-right: 50px;
  }
}

/* --------------------------------------------------
   MEDIA WIDTH 900px (Phone)
-------------------------------------------------- */

@media (max-width: 900px) {
  .page {
    padding: clamp(120px, 12vh, 120px) 24px clamp(100px, 12vh, 120px);
  }

  .home {
    scroll-snap-type: y proximity;
  }

  /* ===============================
   MOBILE DESKTOP ELEMENTS HIDE/SHOW
   =============================== */

  .desktop-logo,
  #desktopNav,
  .breadcrumb,
  .cover-image,
  .has-dropdown,
  .dropdown,
  .desktop-header,
  .about-frame,
  .price-start,
  .about-grid,
  .about-discover-title,
  #backToTop {
    display: none !important;
  }

  .mobile-header,
  #mobileMenuBtn {
    display: flex;
  }

  .page-404 {
    margin-left: 0;
  }

  /* ===============================
   MOBILE HEADER MAIN STRUCTURE
=============================== */

  header {
    height: 80px;
    min-height: 80px;
  }

  .mobile-page-title {
    display: block;
    font-family: "Magda", sans-serif;
    font-size: 2rem;
    letter-spacing: 2px;
    margin-bottom: 5px;
  }

  .mobile-header {
    display: flex;
    align-items: center;
    width: 100%;
    height: 80px;
    color: #1c1d20;
    position: relative;
    z-index: 1100;
  }

  /* mobile logo */

  .mobile-logo {
    flex: 1;
    display: flex;
    align-items: center;
    padding-left: 20px;
    cursor: pointer;
  }

  .mobile-logo img {
    height: 28px;
  }

  .mobile-actions {
    display: flex;
    align-items: center;
    gap: 14px;
  }

  .menu-btn {
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    gap: 4px;
  }

  .menu-btn span {
    width: 22px;
    height: 2px;
    background: var(--text);
  }

  /* ===============================
   MOBILE MENU SHEET (WHEN TAPPING BURGER BUTTON)
=============================== */

  body.menu-open {
    overflow: hidden;
  }

  #mobileMenuSheet {
    position: fixed;
    top: 80px;
    left: 0;

    width: 100%;
    height: calc(100vh - 80px);

    background: var(--bg);

    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;

    padding: 60px 10px 0 10px;

    gap: 28px;

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

    transition:
      transform 0.35s ease,
      opacity 0.35s ease,
      background 0.25s ease;

    z-index: 900;
  }

  #mobileMenuSheet.active {
    transform: translateY(0);
    background: var(--bg);
    color: var(--text);
    opacity: 1;
    pointer-events: auto;
  }

  #mobileMenuSheet > a,
  .products-toggle {
    width: 100%;
    padding: 10px 10px;
    position: relative;
  }

  #mobileMenuSheet > a::after,
  .products-toggle::after {
    content: "";
    position: absolute;
    left: 10px;
    right: 10px;
    bottom: 0;

    height: 1px;
    background: var(--border);
  }

  #mobileMenuSheet a {
    font-family: "Magda", sans-serif;
    font-size: 1.5rem;
    text-decoration: none;
    color: var(--text);
  }

  #mobileMenuSheet .products-submenu a {
    font-family: "Magda", sans-serif;
    font-size: 1.2rem;
    letter-spacing: 0.5px;
    text-align: left;
  }

  #mobileMenuSheet.active .products-submenu a {
    color: #737373;
  }

  .menu-btn,
  #mobileMenuSheet {
    transition: background 0.25s ease;
  }

  /* ===============================
   MOBILE PRODUCTS CLICK TO EXPAIN SIGNATURE AND LIMITED OPTIONS
   =============================== */

  .products-submenu {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding-left: 20px;
    gap: 16px;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition:
      max-height 0.35s ease,
      opacity 0.25s ease;
  }

  .products-submenu.open {
    max-height: 170px;
    opacity: 1;

    gap: 20px; /* bigger gap between signature & limited */
    margin-top: 22px; /* space under "products" */
  }

  .products-toggle {
    appearance: none;
    background: none;
    border: none;

    color: inherit;
    font-family: "Magda", sans-serif;
    font-size: 1.5rem;
    letter-spacing: 0.5px;

    width: 100%;
    text-align: left;
    padding: 10px 10px;

    cursor: pointer;
  }

  .products-toggle:focus {
    outline: none;
  }

  .mobile-products {
    width: 100%;
    position: relative;
  }

  .mobile-products::after {
    content: "";

    position: absolute;
    left: 24px;
    right: 24px;
    bottom: 0;

    height: 1px;
  }

  /* ===============================
   CART ICON
   =============================== */

  .cart-icon {
    width: 64px; /* same as burger */
    height: 100%; /* fill header height */

    display: flex;
    align-items: center; /* vertical center */
    justify-content: center; /* horizontal center */

    border-left: 1px solid var(--border);
    font-size: 1rem;
    color: #737373;

    flex-shrink: 0;
  }

  /* ===============================
   MOBILE MENU BURGER BUTTON
   =============================== */

  body {
    padding-top: 0px;
  }
  .menu-btn {
    width: 64px;
    height: 100%; /* important */

    display: flex;
    align-items: center; /* vertical centering */
    justify-content: center;

    border-left: 1px solid var(--border);

    background: none;
    border-top: none;
    border-bottom: none;
    border-right: none;

    cursor: pointer;
    position: relative;
  }

  .menu-btn span {
    position: absolute;
    width: 22px;
    height: 2px;
    background: var(-background);

    left: 50%;
    top: 50%;

    transform-origin: center;
    transition:
      transform 0.25s ease,
      opacity 0.25s ease;
  }

  .menu-btn span:nth-child(1) {
    transform: translate(-50%, -6px);
  }

  .menu-btn span:nth-child(2) {
    transform: translate(-50%, 6px);
  }

  .menu-btn.active {
    background: var(--bg);
    border-left: 1px solid var(--border);
  }

  .menu-btn.active span {
    background: var(--text);
  }

  .menu-btn.active span:nth-child(1) {
    transform: translate(-50%, -50%) rotate(45deg);
  }

  .menu-btn.active span:nth-child(2) {
    transform: translate(-50%, -50%) rotate(-45deg);
  }

  .mobile-actions {
    display: flex;
    height: 100%;
    gap: 0; /* remove spacing */
  }

  /* ===============================
   MOBILE MENU FOOTER
   =============================== */

  .menu-footer {
    position: absolute;
    bottom: 20px;
    right: 20px;
    font-family: "Magda", sans-serif;
    font-size: 0.75rem;
    letter-spacing: 0.5px;
    opacity: 0.6;
  }

  /* ===============================
   Mobile Home Layout
=============================== */

  /* ===============================
   Mobile Product Layout
=============================== */

  .product-grid {
    grid-template-columns: 1fr;
  }

  .product-sub-page {
    padding-left: 24px;
    padding-right: 24px;
    margin-top: 0px;
  }

  /* Displaying - Sort */
  .product-header {
    padding-top: 0;
    padding-left: 0;
    padding-right: 0;
    font-size: 0.2rem;
    border-top: none;
  }

  /* ===============================
   Mobile Sub Service Layout
=============================== */

  .price-note {
    text-align: left;
    margin-left: 0;
    margin-right: auto;
  }

  .services-info-block {
    min-height: 100vh;

    scroll-snap-align: start;

    display: flex;
    flex-direction: column;

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

    padding-top: 0;
    padding-left: 0px;
    padding-right: 0px;
  }
}
