/*
Theme Name: Mullein For Lungs
Theme URI: https://mulleinforlungs.com/
Description: Custom child theme for MulleinForLungs.com
Author: Mullein For Lungs
Template: astra
Version: 1.0.1
Text Domain: mulleinforlungs
*/


/* =========================================================
   MULLEIN FOR LUNGS
   GLOBAL DESIGN SYSTEM
   ========================================================= */

:root {

  --mfl-green: #496451;
  --mfl-green-dark: #304539;

  --mfl-heading: #202a24;
  --mfl-text: #505a53;
  --mfl-muted: #737d76;

  --mfl-bg: #ffffff;
  --mfl-bg-soft: #f6f4ed;
  --mfl-bg-green: #eef3ee;

  --mfl-border: #dfe5df;

  --mfl-radius: 14px;

  --mfl-container: 1180px;
  --mfl-content: 760px;

}


/* =========================================================
   BASE
   ========================================================= */

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  padding: 0;

  background: var(--mfl-bg);
  color: var(--mfl-text);

  font-family:
    Arial,
    Helvetica,
    sans-serif;

  font-size: 17px;
  line-height: 1.7;

  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

body.mfl-menu-open {
  overflow: hidden;
}


/* =========================================================
   TYPOGRAPHY
   ========================================================= */

h1,
h2,
h3,
h4,
h5,
h6 {

  margin-top: 0;

  color: var(--mfl-heading);

  font-family:
    Georgia,
    "Times New Roman",
    serif;

  font-weight: 700;
  line-height: 1.22;

}

h1 {
  font-size: clamp(38px, 5vw, 64px);
}

h2 {
  font-size: clamp(30px, 4vw, 44px);
}

h3 {
  font-size: clamp(23px, 3vw, 30px);
}

p {
  margin: 0 0 1.4em;
}


/* =========================================================
   LINKS
   ========================================================= */

a {
  color: var(--mfl-green);
  text-decoration: none;
}

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


/* =========================================================
   IMAGES
   ========================================================= */

img {
  display: block;
  max-width: 100%;
  height: auto;
}


/* =========================================================
   CONTAINERS
   ========================================================= */

.mfl-container {

  width: min(
    calc(100% - 40px),
    var(--mfl-container)
  );

  margin-left: auto;
  margin-right: auto;

}

.mfl-content {

  width: min(
    calc(100% - 40px),
    var(--mfl-content)
  );

  margin-left: auto;
  margin-right: auto;

}


/* =========================================================
   CUSTOM HEADER
   ========================================================= */

.mfl-header {

  position: relative;

  width: 100%;

  z-index: 999;

  background:
    rgba(255,255,255,.97);

  border-bottom:
    1px solid rgba(32,42,36,.09);

}

.mfl-header__inner {

  width: min(
    calc(100% - 40px),
    1180px
  );

  height: 78px;

  margin: 0 auto;

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

}


/* =========================================================
   BRAND
   ========================================================= */

.mfl-brand {
  flex-shrink: 0;
}

.mfl-brand__link {

  display: inline-flex;
  align-items: center;

  gap: 10px;

  color: var(--mfl-heading);

  text-decoration: none;

}

.mfl-brand__link:hover {
  color: var(--mfl-heading);
}

.mfl-brand__mark {

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

  color: var(--mfl-green);

  flex-shrink: 0;

}

.mfl-brand__text {

  color: var(--mfl-heading);

  font-family:
    Georgia,
    "Times New Roman",
    serif;

  font-size: 23px;
  font-weight: 700;

  letter-spacing: -.5px;

  line-height: 1;

  white-space: nowrap;

}

.mfl-brand__text em {

  color: var(--mfl-green);

  font-size: .76em;
  font-weight: 400;

}


/* WordPress custom logo */

.mfl-brand__logo .custom-logo-link {
  display: block;
}

.mfl-brand__logo img {

  width: auto;
  max-width: 230px;
  max-height: 52px;

}


/* =========================================================
   NAVIGATION
   ========================================================= */

.mfl-nav {

  display: flex;
  align-items: center;

}

.mfl-menu {

  display: flex;
  align-items: center;

  gap: 33px;

  margin: 0;
  padding: 0;

  list-style: none;

}

.mfl-menu li {

  position: relative;

  margin: 0;
  padding: 0;

}

.mfl-menu > li > a {

  position: relative;

  display: flex;
  align-items: center;

  min-height: 78px;

  color: #39443d;

  font-size: 14.5px;
  font-weight: 600;

  line-height: 1;

  letter-spacing: .01em;

  text-decoration: none;

  transition:
    color .2s ease;

}

.mfl-menu > li > a:hover,
.mfl-menu > li.current-menu-item > a,
.mfl-menu > li.current_page_item > a {

  color: var(--mfl-green);

}


/* underline */

.mfl-menu > li > a::after {

  content: "";

  position: absolute;

  left: 0;
  bottom: 20px;

  width: 0;
  height: 2px;

  background: var(--mfl-green);

  transition:
    width .2s ease;

}

.mfl-menu > li > a:hover::after,
.mfl-menu > li.current-menu-item > a::after,
.mfl-menu > li.current_page_item > a::after {

  width: 100%;

}


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

.mfl-menu .sub-menu {

  position: absolute;

  top: calc(100% - 8px);
  left: -20px;

  min-width: 210px;

  margin: 0;
  padding: 10px;

  list-style: none;

  background: #fff;

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

  border-radius: 10px;

  box-shadow:
    0 14px 40px rgba(25,38,29,.10);

  opacity: 0;
  visibility: hidden;

  transform: translateY(8px);

  transition:
    opacity .18s ease,
    visibility .18s ease,
    transform .18s ease;

}

.mfl-menu li:hover > .sub-menu {

  opacity: 1;
  visibility: visible;

  transform: translateY(0);

}

.mfl-menu .sub-menu li a {

  display: block;

  padding: 10px 12px;

  border-radius: 7px;

  color: var(--mfl-text);

  font-size: 14px;
  font-weight: 500;

  line-height: 1.4;

}

.mfl-menu .sub-menu li a:hover {

  color: var(--mfl-green-dark);

  background: var(--mfl-bg-green);

}


/* =========================================================
   MOBILE BUTTON
   ========================================================= */

.mfl-menu-toggle {

  display: none;

  position: relative;

  width: 42px;
  height: 42px;

  margin: 0;
  padding: 9px;

  background: transparent;

  border: 0;
  border-radius: 8px;

  cursor: pointer;

}

.mfl-menu-toggle span {

  position: absolute;

  left: 10px;

  width: 22px;
  height: 2px;

  background: var(--mfl-heading);

  border-radius: 10px;

  transition:
    transform .22s ease,
    opacity .22s ease,
    top .22s ease;

}

.mfl-menu-toggle span:nth-child(1) {
  top: 13px;
}

.mfl-menu-toggle span:nth-child(2) {
  top: 20px;
}

.mfl-menu-toggle span:nth-child(3) {
  top: 27px;
}


/* X */

.mfl-menu-toggle.is-open span:nth-child(1) {

  top: 20px;

  transform:
    rotate(45deg);

}

.mfl-menu-toggle.is-open span:nth-child(2) {

  opacity: 0;

}

.mfl-menu-toggle.is-open span:nth-child(3) {

  top: 20px;

  transform:
    rotate(-45deg);

}


/* =========================================================
   TABLET / MOBILE
   ========================================================= */

@media (max-width: 900px) {

  .mfl-header__inner {

    width: calc(100% - 32px);

    height: 68px;

  }

  .mfl-brand__text {

    font-size: 21px;

  }

  .mfl-brand__mark svg {

    width: 27px;
    height: 27px;

  }


  /* MENU BUTTON */

  .mfl-menu-toggle {

    display: block;

  }


  /* MOBILE NAV */

  .mfl-nav {

    position: absolute;

    top: 68px;

    left: 0;
    right: 0;

    display: block;

    width: 100%;

    max-height: 0;

    overflow: hidden;

    background: #ffffff;

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

    opacity: 0;

    visibility: hidden;

    transition:
      max-height .28s ease,
      opacity .2s ease,
      visibility .2s ease;

  }

  .mfl-nav.is-open {

    max-height:
      calc(100vh - 68px);

    overflow-y: auto;

    opacity: 1;

    visibility: visible;

  }


  .mfl-menu {

    display: block;

    width: calc(100% - 32px);

    margin: 0 auto;

    padding: 13px 0 24px;

  }

  .mfl-menu > li {

    border-bottom:
      1px solid rgba(32,42,36,.08);

  }

  .mfl-menu > li:last-child {

    border-bottom: 0;

  }

  .mfl-menu > li > a {

    min-height: auto;

    padding: 15px 3px;

    color: var(--mfl-heading);

    font-size: 16px;
    font-weight: 600;

  }

  .mfl-menu > li > a::after {

    display: none;

  }


  /* MOBILE SUBMENU */

  .mfl-menu .sub-menu {

    position: static;

    min-width: 0;

    margin: 0;
    padding:
      0 0 10px 14px;

    background: transparent;

    border: 0;
    border-radius: 0;

    box-shadow: none;

    opacity: 1;
    visibility: visible;

    transform: none;

  }

  .mfl-menu .sub-menu li a {

    padding:
      9px 4px;

    color: var(--mfl-muted);

    font-size: 14px;

  }

}


/* =========================================================
   SMALL MOBILE
   ========================================================= */

@media (max-width: 480px) {

  body {
    font-size: 16px;
  }

  .mfl-container,
  .mfl-content {

    width:
      calc(100% - 32px);

  }

  .mfl-header__inner {

    width:
      calc(100% - 28px);

  }

  .mfl-brand__text {

    font-size: 19px;

  }

  .mfl-brand__mark {

    gap: 7px;

  }

  .mfl-brand__mark svg {

    width: 25px;
    height: 25px;

  }

}