/* ======================================================
   SESSION: RESET / BASE
   PURPOSE: Browser normalization and global element defaults
   USED IN: Global + all pages
====================================================== */

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

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  margin: 0;
  overflow-x: hidden;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  padding-top: var(--wm-header-height);
  background: var(--bg);
  color: var(--text);
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  -webkit-tap-highlight-color: transparent;
}

img,
svg,
video {
  display: block;
  max-width: 100%;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  color: inherit;
}

/* ======================================================
   SESSION: DESIGN TOKENS
   PURPOSE: Colors, radius, shadows, transitions, layout widths
   USED IN: Global + all pages
====================================================== */

:root {
  --primary: #2f5d57;
  --primary-dark: #1f4d4f;
  --primary-deep: #173d42;
  --accent: #6fb3a8;
  --accent-light: #a7d7c5;
  --cta: #ff7a18;
  --cta-hover: #ff4d00;
  --cta-gradient: linear-gradient(135deg, #ff7a18, #ff4d00);
  --text: #222;
  --text-dark: #222;
  --text-soft: #4b625e;
  --text-light: #5f7a75;
  --text-muted: #5f7a75;
  --bg: #ffffff;
  --bg-soft: #f4f8f6;
  --bg-light: #f4f8f6;
  --white: #ffffff;
  --border: rgba(0, 0, 0, 0.08);
  --card-dark: #1f4d4f;
  --card-dark-2: #2f5d57;
  --card-border: rgba(255, 255, 255, 0.14);
  --radius: 8px;
  --radius-lg: 12px;
  --shadow-soft: 0 8px 24px rgba(0, 0, 0, 0.06);
  --shadow-medium: 0 12px 30px rgba(0, 0, 0, 0.12);
  --transition: 0.25s ease;
  --container: 1140px;
  --wm-header-height: 82px;
}

/* ======================================================
   SESSION: TYPOGRAPHY
   PURPOSE: Headings, paragraphs, lists, links, focus states
   USED IN: Global + all pages
====================================================== */

h1,
h2,
h3,
h4,
h5,
h6 {
  margin: 0 0 16px;
  color: var(--primary-deep);
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.25;
}

h1 { font-size: clamp(32px, 5vw, 42px); }
h2 { font-size: clamp(26px, 4vw, 32px); }
h3 { font-size: 20px; }
h4 { font-size: 18px; }
h5 { font-size: 17px; }
h6 { font-size: 16px; }

p {
  margin: 0 0 16px;
  color: var(--text-soft);
  font-size: 16px;
  line-height: 1.6;
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: color var(--transition), transform var(--transition), background var(--transition), box-shadow var(--transition);
}

a:hover {
  color: var(--primary-dark);
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

strong {
  font-weight: 700;
}

small {
  color: var(--text-muted);
  font-size: 14px;
}

ul,
ol {
  margin: 0 0 16px;
  padding-left: 22px;
}

li {
  margin-bottom: 8px;
}

/* ======================================================
   SESSION: LAYOUT SYSTEM
   PURPOSE: Containers, grids, flex helpers, section spacing
   USED IN: Global + all pages
====================================================== */

.container,
.wm-container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 20px;
}

section {
  padding: 40px 0;
}

.section-sm { padding: 40px 0; }
.section-md { padding: 60px 0; }
.section-lg { padding: 80px 0; }

.grid {
  display: grid;
  gap: 24px;
}

.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

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

.max-600,
.max-700,
.max-800 {
  margin-inline: auto;
}

.max-600 { max-width: 600px; }
.max-700 { max-width: 700px; }
.max-800 { max-width: 800px; }
.w-100 { width: 100%; }

/* ======================================================
   SESSION: HEADER SYSTEM
   PURPOSE: Desktop header, dropdowns, mobile navigation
   USED IN: Global header
   NOTE: Header behavior preserved during cleanup
====================================================== */

.wm-header {
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  background: var(--primary-dark);
  box-shadow: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  transform: none;
  transition: box-shadow 0.25s ease;
  width: 100%;
  z-index: 10020;
}

.wm-header.scrolled {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.wm-header .wm-container {
  display: flex;
  align-items: center;
  gap: 24px;
  max-width: 1240px;
  min-height: var(--wm-header-height);
  padding: 14px 28px;
}

.wm-logo {
  display: flex;
  align-items: center;
  flex: 0 0 auto;
}

.wm-logo a {
  display: flex;
  align-items: center;
}

.wm-logo img {
  width: auto;
  height: 52px;
}

.wm-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 28px;
  margin-left: auto;
}

.wm-nav > a,
.nav-toggle {
  position: relative;
  display: flex;
  align-items: center;
  height: 46px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--white);
  cursor: pointer;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0;
  white-space: nowrap;
}

.wm-nav > a::after,
.nav-toggle::after {
  position: absolute;
  bottom: 2px;
  left: 0;
  width: 0;
  height: 2px;
  border-radius: 999px;
  background: var(--accent);
  content: "";
  transition: width 0.22s ease;
}

.wm-nav > a:hover,
.nav-toggle:hover,
.wm-nav > a:focus-visible,
.nav-toggle:focus-visible {
  color: var(--white);
}

.wm-nav > a:hover::after,
.nav-toggle:hover::after,
.wm-nav > a:focus-visible::after,
.nav-toggle:focus-visible::after {
  width: 100%;
}

.wm-menu-item {
  position: relative;
}

.wm-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  z-index: 1000;
  min-width: 220px;
  margin-top: 8px;
  padding: 8px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  background: var(--primary-dark);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
  visibility: hidden;
}

.wm-menu-item:hover .wm-dropdown,
.wm-menu-item:focus-within .wm-dropdown {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
  transition-delay: 0.05s;
  visibility: visible;
}

.wm-dropdown::before {
  position: absolute;
  top: -10px;
  left: 0;
  width: 100%;
  height: 10px;
  content: "";
}

.wm-dropdown a {
  display: block;
  padding: 14px 20px;
  border-radius: 6px;
  color: var(--white);
  font-size: 15px;
}

.wm-dropdown a:hover,
.wm-dropdown a:focus-visible {
  background: rgba(255, 255, 255, 0.08);
  color: var(--white);
}

.wm-header-cta {
  border-radius: var(--radius);
  background: var(--cta-gradient);
  box-shadow: 0 6px 18px rgba(255, 122, 24, 0.3);
  color: var(--white);
  font-weight: 600;
  text-align: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.wm-header-cta {
  flex: 0 0 auto;
  padding: 13px 20px;
  white-space: nowrap;
}

.wm-header-cta:hover {
  box-shadow: 0 8px 20px rgba(255, 122, 24, 0.4);
  color: var(--white);
  transform: translateY(-2px);
}

.wm-menu-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  width: 44px;
  height: 44px;
  margin-left: auto;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.08);
  cursor: pointer;
}

.wm-menu-toggle span {
  width: 22px;
  height: 2px;
  border-radius: 999px;
  background: var(--white);
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.wm-menu-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.wm-menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.wm-menu-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

.wm-mobile-menu {
  box-sizing: border-box;
  padding: 0 0 28px;
  background: var(--primary);
  box-shadow: -18px 0 44px rgba(0, 0, 0, 0.24);
}

.wm-mobile-menu *,
.wm-mobile-menu *::before,
.wm-mobile-menu *::after {
  box-sizing: border-box;
}

.wm-mobile-menu a,
.menu-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 17px 18px;
  border: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
  background: none;
  color: var(--white);
  cursor: pointer;
  font-size: 16px;
  font-weight: 600;
  text-align: left;
  -webkit-tap-highlight-color: transparent;
}

.wm-mobile-menu a:active {
  background: rgba(255, 255, 255, 0.12);
}

.menu-item::after {
  content: none;
}

.menu-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  font-size: 18px;
  font-weight: 800;
  line-height: 1;
  transition: transform 0.25s ease;
}

.menu-item.active .menu-arrow {
  transform: rotate(180deg);
}

.submenu {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.submenu.open {
  max-height: 320px;
}

.submenu a {
  padding: 13px 18px 13px 36px;
  color: rgba(255, 255, 255, 0.88);
  font-size: 15px;
}

.wm-overlay {
  background: rgba(0, 0, 0, 0.45);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease, visibility 0.25s ease;
  visibility: hidden;
}

.wm-overlay.active {
  opacity: 1;
  pointer-events: auto;
  visibility: visible;
}

@media (max-width: 1080px) {
  .wm-nav {
    gap: 20px;
  }

  .wm-header-cta {
    padding-inline: 16px;
  }
}

/* ======================================================
   SESSION: FOOTER SYSTEM
   PURPOSE: Footer layout, footer links, footer CTA
   USED IN: Global footer
====================================================== */

.wm-footer {
  padding: 36px 0 18px;
  background: linear-gradient(180deg, #183f3b, #112a26);
  color: var(--white);
  font-size: 14px;
}

.wm-footer-grid {
  display: grid;
  grid-template-columns: 1.35fr 1fr 1fr 1fr;
  gap: 28px;
  align-items: start;
}

.wm-footer-col {
  min-width: 0;
}

.wm-footer-brand {
  max-width: 320px;
}

.wm-footer-logo img {
  width: auto;
  max-height: 52px;
  margin-bottom: 12px;
}

.wm-footer p,
.wm-footer-col p {
  margin-bottom: 12px;
  color: rgba(255, 255, 255, 0.85);
  font-size: 14px;
  line-height: 1.55;
}

.wm-footer-col h4 {
  position: relative;
  margin: 0 0 12px;
  color: var(--white);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.3;
}

.footer-menu {
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-menu li {
  margin-bottom: 7px;
}

.footer-menu a {
  display: block;
  color: rgba(255, 255, 255, 0.78);
  font-size: 14px;
  line-height: 1.35;
}

.footer-menu a:hover {
  color: var(--white);
}

.footer-trust {
  display: grid;
  gap: 6px;
  margin: 0;
  padding: 0;
  color: rgba(255, 255, 255, 0.82);
  list-style: none;
}

.footer-trust li {
  position: relative;
  margin: 0;
  padding-left: 16px;
  font-size: 13px;
  line-height: 1.35;
}

.footer-trust li::before {
  position: absolute;
  top: 8px;
  left: 0;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-light);
  content: "";
}

.footer-social {
  display: flex;
  gap: 12px;
  margin-top: 16px;
}

.footer-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
}

.footer-social img {
  width: 18px;
  height: 18px;
  opacity: 0.9;
  transition: transform var(--transition), opacity var(--transition);
}

.footer-social img:hover {
  opacity: 1;
  transform: scale(1.1);
}

.wm-footer-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-top: 28px;
  padding: 16px 18px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.06);
}

.wm-footer-cta p {
  margin: 0;
  color: var(--white);
  font-weight: 650;
}

.footer-cta-btn,
.footer-cta-btn:hover {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 10px 18px;
  border-radius: var(--radius);
  background: var(--cta-gradient);
  box-shadow: 0 8px 20px rgba(255, 122, 24, 0.22);
  color: var(--white);
  font-weight: 700;
  text-align: center;
  white-space: nowrap;
}

.wm-footer-bottom {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin-top: 18px;
  padding-inline: 18px;
  color: rgba(255, 255, 255, 0.6);
  font-size: 13px;
  text-align: center;
}

/* ======================================================
   SESSION: BUTTON SYSTEM
   PURPOSE: Standard reusable buttons across the site
   USED IN: Global + all pages
====================================================== */

.wm-btn,
.wm-btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 20px;
  border: 0;
  border-radius: var(--radius);
  background: var(--cta-gradient);
  box-shadow: 0 8px 20px rgba(255, 122, 24, 0.3);
  color: var(--white);
  cursor: pointer;
  font-weight: 700;
  text-align: center;
  transition: transform 0.25s ease, box-shadow 0.25s ease, opacity 0.25s ease;
}

.wm-btn:hover,
.wm-btn-primary:hover {
  box-shadow: 0 8px 20px rgba(255, 122, 24, 0.4);
  color: var(--white);
  transform: translateY(-2px);
}

.wm-btn:active,
.wm-btn-primary:active {
  transform: translateY(0) scale(0.98);
}

.wm-btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 20px;
  border: 1px solid var(--primary);
  border-radius: var(--radius);
  background: transparent;
  color: var(--primary);
  cursor: pointer;
  font-weight: 700;
  text-align: center;
  transition: transform 0.25s ease, box-shadow 0.25s ease, opacity 0.25s ease, background 0.25s ease;
}

.wm-btn-outline:hover {
  background: var(--bg-soft);
  color: var(--primary-dark);
  transform: translateY(-2px);
}

.wm-btn:disabled,
button:disabled {
  cursor: not-allowed;
  opacity: 0.65;
}

.btn-subtext {
  display: block;
  margin-top: 4px;
  font-size: 13px;
  font-weight: 500;
  opacity: 0.9;
}

/* ======================================================
   SESSION: CTA BUTTONS
   PURPOSE: High conversion CTA buttons using the orange gradient
   USED IN: Header, hero, key sections
   NOTE: Header-specific CTA styles remain in the header session
====================================================== */

.wm-cta {
  background: var(--cta-gradient);
  color: var(--white);
}

.wm-cta:hover {
  color: var(--white);
}

/* ======================================================
   SESSION: CARDS / COMPONENTS
   PURPOSE: Reusable UI blocks and shared visual components
   USED IN: Global + page templates
====================================================== */

.card {
  padding: 24px;
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow-soft);
}

.section-title {
  margin-bottom: 40px;
  text-align: center;
}

.text-content {
  max-width: 700px;
}

.final-cta {
  margin-top: 40px;
  padding: 40px 20px;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, var(--primary-deep), var(--primary));
  color: var(--white);
  text-align: center;
}

.final-cta h2,
.final-cta p {
  color: var(--white);
}

.final-btn {
  width: 100%;
  margin-top: 16px;
  padding: 16px 20px;
}

.floating-contact {
  position: fixed;
  right: 18px;
  bottom: 30px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.float-btn {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  color: var(--white);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.25), 0 2px 6px rgba(0, 0, 0, 0.15);
  overflow: hidden;
}

.float-btn:hover {
  color: var(--white);
  transform: translateY(-5px) scale(1.08);
}

.float-btn.whatsapp {
  background: linear-gradient(135deg, #25d366, #1ebe5d);
}

.float-btn.call {
  background: var(--primary);
}

.float-btn.whatsapp svg {
  width: 30px;
  height: 30px;
}

.float-btn.call svg {
  width: 24px;
  height: 24px;
}

.wm-sticky-call {
  display: none;
}

body.contact-page .floating-contact,
body.consultation-page .floating-contact,
body.contact-consultation-page .floating-contact {
  display: none;
}

.hero-banner {
  display: block;
  width: 100%;
}

.hero-img {
  width: 100%;
  height: auto;
}

/* ======================================================
   SESSION: FORMS
   PURPOSE: Shared form behavior inherited from base controls
   USED IN: Contact, consultation, payment, quizzes
   NOTE: Page-specific form visuals stay in page CSS wrappers
====================================================== */

/* Form reset and focus styles live in RESET / BASE and TYPOGRAPHY sessions. */

/* ======================================================
   SESSION: UTILITIES
   PURPOSE: Helper classes for text, spacing, display, images, radius
   USED IN: Global + all pages
====================================================== */

.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }
.text-muted { color: var(--text-muted); }

.mt-8 { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mt-40 { margin-top: 40px; }
.mt-60 { margin-top: 60px; }

.mb-8 { margin-bottom: 8px; }
.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }
.mb-40 { margin-bottom: 40px; }
.mb-60 { margin-bottom: 60px; }

.gap-8 { gap: 8px; }
.gap-16 { gap: 16px; }
.gap-24 { gap: 24px; }
.gap-40 { gap: 40px; }

.block { display: block; }
.inline-block { display: inline-block; }
.hidden { display: none; }
.relative { position: relative; }
.absolute { position: absolute; }

.img-cover {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.radius {
  border-radius: var(--radius);
}

/* ======================================================
   SESSION: RESPONSIVE
   PURPOSE: Global responsive layout, footer, and floating contact behavior
   USED IN: Global + all pages
====================================================== */

@media (max-width: 992px) {
  .grid-3,
  .grid-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 768px) {
  .container,
  .wm-container {
    padding-inline: 18px;
  }

  section,
  .section-md {
    padding: 40px 0;
  }

  .section-lg {
    padding: 60px 0;
  }

  .grid-2,
  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr;
  }

  body {
    padding-bottom: 78px;
  }

  .wm-footer {
    padding: 28px 0 92px;
  }

  .wm-footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0;
  }

  .wm-footer-logo img {
    max-height: 48px;
  }

  .wm-footer-brand {
    max-width: none;
    padding-bottom: 18px;
  }

  .footer-trust {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
  }

  .wm-footer-col {
    padding: 0;
  }

  .wm-footer-col h4 {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 0;
    padding: 15px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    cursor: pointer;
  }

  .wm-footer-col .footer-menu {
    display: none;
    padding: 0 0 12px;
  }

  .wm-footer-col.active .footer-menu {
    display: block;
  }

  .toggle-icon::before {
    content: "+";
    color: rgba(255, 255, 255, 0.75);
    font-size: 20px;
    font-weight: 500;
  }

  .wm-footer-col.active .toggle-icon::before {
    content: "-";
  }

  .wm-footer-cta {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    margin-top: 18px;
    padding: 14px;
    text-align: center;
  }

  .footer-cta-btn {
    width: 100%;
  }

  .wm-footer-bottom {
    margin-top: 16px;
    padding-inline: 18px;
  }

  .floating-contact {
    right: 14px;
    bottom: 82px;
    gap: 18px;
  }

  .float-btn {
    width: 54px;
    height: 54px;
  }

  .float-btn.whatsapp svg {
    width: 26px;
    height: 26px;
  }

  .float-btn.call svg {
    width: 20px;
    height: 20px;
  }

  .float-btn:hover {
    transform: none;
  }

  .wm-sticky-call {
    position: fixed;
    right: 14px;
    bottom: 12px;
    left: 14px;
    z-index: 9998;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    max-width: 380px;
    min-height: 50px;
    margin-inline: auto;
    border-radius: 32px;
    background: linear-gradient(135deg, #28a745, #1e7e34);
    box-shadow: 0 12px 28px rgba(30, 126, 52, 0.32);
    color: var(--white);
    font-size: 16px;
    font-weight: 800;
    text-align: center;
  }

  .wm-sticky-call:hover,
  .wm-sticky-call:active {
    color: var(--white);
    transform: none;
  }

  .wm-sticky-call svg {
    width: 20px;
    height: 20px;
    flex: 0 0 auto;
  }
}

@media (min-width: 768px) {
  .float-btn.call {
    display: none;
  }
}

/* ======================================================
   SESSION: CANONICAL MOBILE HEADER / DRAWER SYSTEM
   PURPOSE: Final mobile header and drawer UX rules
   USED IN: Mobile header, drawer, overlay, CTA
   NOTE: Keep this last so older header/container rules cannot override it
====================================================== */

body {
  overflow-x: hidden !important;
  padding-top: var(--wm-header-height) !important;
}

body .wm-header {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  transform: none !important;
  width: 100% !important;
  z-index: 10030 !important;
}

body .wm-mobile-menu {
  box-sizing: border-box;
  position: fixed !important;
  top: var(--wm-header-height) !important;
  right: 0 !important;
  width: min(82vw, 340px) !important;
  max-width: 100vw !important;
  height: calc(100vh - var(--wm-header-height)) !important;
  max-height: calc(100vh - var(--wm-header-height)) !important;
  overflow-x: hidden !important;
  overflow-y: auto !important;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  transform: translateX(100%) !important;
  transition: transform 0.28s ease !important;
  z-index: 10020 !important;
}

body .wm-mobile-menu.active {
  transform: translateX(0) !important;
}

body .wm-mobile-menu *,
body .wm-mobile-menu *::before,
body .wm-mobile-menu *::after {
  box-sizing: border-box;
}

body .wm-mobile-menu > a.wm-cta {
  box-sizing: border-box;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: calc(100% - 32px) !important;
  max-width: 320px !important;
  min-height: 44px !important;
  margin: 18px auto !important;
  padding: 10px 14px !important;
  border-bottom: 0 !important;
  border-radius: var(--radius) !important;
  background: var(--cta-gradient) !important;
  box-shadow: 0 8px 20px rgba(255, 122, 24, 0.28) !important;
  color: var(--white) !important;
  font-size: 15px !important;
  font-weight: 700 !important;
  line-height: 1.25 !important;
  text-align: center !important;
  transform: none !important;
  transition: box-shadow 0.2s ease, opacity 0.2s ease !important;
}

body .wm-mobile-menu > a.wm-cta:hover,
body .wm-mobile-menu > a.wm-cta:active,
body .wm-mobile-menu > a.wm-cta:focus {
  background: var(--cta-gradient) !important;
  box-shadow: 0 8px 20px rgba(255, 122, 24, 0.28) !important;
  color: var(--white) !important;
  transform: none !important;
}

body .wm-overlay {
  position: fixed !important;
  top: var(--wm-header-height) !important;
  right: 0 !important;
  bottom: auto !important;
  left: 0 !important;
  height: calc(100vh - var(--wm-header-height)) !important;
  z-index: 10010 !important;
}

body.menu-open {
  overflow: hidden !important;
  height: 100vh !important;
}

@media (max-width: 900px) {
  :root {
    --wm-header-height: 80px;
  }

  body {
    padding-top: var(--wm-header-height) !important;
  }

  body .wm-header .wm-container {
    height: var(--wm-header-height) !important;
    min-height: var(--wm-header-height) !important;
    padding: 10px 22px !important;
  }

  body .wm-nav,
  body .wm-header-cta {
    display: none;
  }

  body .wm-menu-toggle {
    display: flex;
  }

  body .wm-logo img {
    height: 48px !important;
  }

  body .menu-arrow {
    min-width: 20px;
    font-size: 18px;
    font-weight: 800;
  }

  body .wm-mobile-menu {
    top: var(--wm-header-height) !important;
    height: calc(100vh - var(--wm-header-height)) !important;
    max-height: calc(100vh - var(--wm-header-height)) !important;
  }

  body .wm-overlay {
    top: var(--wm-header-height) !important;
    height: calc(100vh - var(--wm-header-height)) !important;
  }
}

@media (max-width: 480px) {
  :root {
    --wm-header-height: 78px;
  }

  body {
    padding-top: var(--wm-header-height) !important;
  }

  body .wm-header .wm-container {
    height: var(--wm-header-height) !important;
    min-height: var(--wm-header-height) !important;
    padding: 10px 20px !important;
  }

  body .wm-logo img {
    height: 46px !important;
  }

  body .wm-mobile-menu {
    width: min(86vw, 330px) !important;
  }

  body .wm-mobile-menu > a.wm-cta {
    width: calc(100% - 32px) !important;
    margin: 18px auto !important;
  }
}
