/* Document
   ========================================================================== */

/**
 * 1. Correct the line height in all browsers.
 * 2. Prevent adjustments of font size after orientation changes in iOS.
 */

 html {
  line-height: 1.15; /* 1 */
  -webkit-text-size-adjust: 100%; /* 2 */
}

/* Sections
   ========================================================================== */

/**
 * Remove the margin in all browsers.
 */

* {
  margin: 0;
}

*, *::before, *::after {
  box-sizing: border-box;
}

/**
 * Render the `main` element consistently in IE.
 */

main {
  display: block;
}

/**
 * Correct the font size and margin on `h1` elements within `section` and
 * `article` contexts in Chrome, Firefox, and Safari.
 */

h1 {
  font-size: 2em;
  margin: 0;
}

/* Grouping content
   ========================================================================== */

/**
 * 1. Add the correct box sizing in Firefox.
 * 2. Show the overflow in Edge and IE.
 */

hr {
  box-sizing: content-box; /* 1 */
  height: 0; /* 1 */
  overflow: visible; /* 2 */
}

/**
 * 1. Correct the inheritance and scaling of font size in all browsers.
 * 2. Correct the odd `em` font sizing in all browsers.
 */

pre {
  font-family: monospace, monospace; /* 1 */
  font-size: 1em; /* 2 */
}

/* Text-level semantics
   ========================================================================== */

/**
 * Remove the gray background on active links in IE 10.
 */

a {
  background-color: transparent;
}

/**
 * 1. Remove the bottom border in Chrome 57-
 * 2. Add the correct text decoration in Chrome, Edge, IE, Opera, and Safari.
 */

abbr[title] {
  border-bottom: none; /* 1 */
  text-decoration: underline; /* 2 */
  text-decoration: underline dotted; /* 2 */
}

/**
 * Add the correct font weight in Chrome, Edge, and Safari.
 */

b,
strong {
  font-weight: bolder;
}

/**
 * 1. Correct the inheritance and scaling of font size in all browsers.
 * 2. Correct the odd `em` font sizing in all browsers.
 */

code,
kbd,
samp {
  font-family: monospace, monospace; /* 1 */
  font-size: 1em; /* 2 */
}

/**
 * Add the correct font size in all browsers.
 */

small {
  font-size: 80%;
}

/**
 * Prevent `sub` and `sup` elements from affecting the line height in
 * all browsers.
 */

sub,
sup {
  font-size: 75%;
  line-height: 0;
  position: relative;
  vertical-align: baseline;
}

sub {
  bottom: -0.25em;
}

sup {
  top: -0.5em;
}

/* Embedded content
   ========================================================================== */

/**
 * Remove the border on images inside links in IE 10.
 */

img {
  border-style: none;
}

/* Forms
   ========================================================================== */

/**
 * 1. Change the font styles in all browsers.
 * 2. Remove the margin in Firefox and Safari.
 */

button,
input,
optgroup,
select,
textarea {
  font-family: inherit; /* 1 */
  font-size: 100%; /* 1 */
  line-height: 1.15; /* 1 */
  margin: 0; /* 2 */
}

/**
 * Show the overflow in IE.
 * 1. Show the overflow in Edge.
 */

button,
input { /* 1 */
  overflow: visible;
}

/**
 * Remove the inheritance of text transform in Edge, Firefox, and IE.
 * 1. Remove the inheritance of text transform in Firefox.
 */

button,
select { /* 1 */
  text-transform: none;
}

/**
 * Correct the inability to style clickable types in iOS and Safari.
 */

button,
[type="button"],
[type="reset"],
[type="submit"] {
  appearance: button;
  -webkit-appearance: button;
}

/**
 * Remove the inner border and padding in Firefox.
 */

button::-moz-focus-inner,
[type="button"]::-moz-focus-inner,
[type="reset"]::-moz-focus-inner,
[type="submit"]::-moz-focus-inner {
  border-style: none;
  padding: 0;
}

/**
 * Restore the focus styles unset by the previous rule.
 */

button:-moz-focusring,
[type="button"]:-moz-focusring,
[type="reset"]:-moz-focusring,
[type="submit"]:-moz-focusring {
  outline: 1px dotted ButtonText;
}

/**
 * Correct the padding in Firefox.
 */

fieldset {
  padding: 0.35em 0.75em 0.625em;
}

/**
 * 1. Correct the text wrapping in Edge and IE.
 * 2. Correct the color inheritance from `fieldset` elements in IE.
 * 3. Remove the padding so developers are not caught out when they zero out
 *    `fieldset` elements in all browsers.
 */

legend {
  box-sizing: border-box; /* 1 */
  color: inherit; /* 2 */
  display: table; /* 1 */
  max-width: 100%; /* 1 */
  padding: 0; /* 3 */
  white-space: normal; /* 1 */
}

/**
 * Add the correct vertical alignment in Chrome, Firefox, and Opera.
 */

progress {
  vertical-align: baseline;
}

/**
 * Remove the default vertical scrollbar in IE 10+.
 */

textarea {
  overflow: auto;
}

/**
 * 1. Add the correct box sizing in IE 10.
 * 2. Remove the padding in IE 10.
 */

[type="checkbox"],
[type="radio"] {
  box-sizing: border-box; /* 1 */
  padding: 0; /* 2 */
}

/**
 * Correct the cursor style of increment and decrement buttons in Chrome.
 */

[type="number"]::-webkit-inner-spin-button,
[type="number"]::-webkit-outer-spin-button {
  height: auto;
}

/**
 * 1. Correct the odd appearance in Chrome and Safari.
 * 2. Correct the outline style in Safari.
 */

[type="search"] {
  appearance: textfield;
  -webkit-appearance: textfield; /* 1 */
  outline-offset: -2px; /* 2 */
}

/**
 * Remove the inner padding in Chrome and Safari on macOS.
 */

[type="search"]::-webkit-search-decoration {
  -webkit-appearance: none;
}

/**
 * 1. Correct the inability to style clickable types in iOS and Safari.
 * 2. Change font properties to `inherit` in Safari.
 */

::-webkit-file-upload-button {
  -webkit-appearance: button; /* 1 */
  font: inherit; /* 2 */
}

/* Interactive
   ========================================================================== */

/*
 * Add the correct display in Edge, IE 10+, and Firefox.
 */

details {
  display: block;
}

/*
 * Add the correct display in all browsers.
 */

summary {
  display: list-item;
}

/* Misc
   ========================================================================== */

/**
 * Add the correct display in IE 10+.
 */

template {
  display: none;
}

/**
 * Add the correct display in IE 10.
 */

[hidden] {
  display: none;
}

/*
 * Actual CSS
 */

:root {
  /* --primary-color: rgba(42, 81, 235, 1); */
  --primary-color: #00428b;
  --secondary-color: #ffffff;
  --shade-color: #ecf5fc;
  --accent-color: #ffad01;
  --dark-color: #3a3a3c;

  --brand-blue: #2f80b3;
  --brand-blue-light: #e4ecf4;
  --brand-blue-dark: #0a3050;
  --brand-green: #a9c657;

  --dark-green: #588157;
  --light-green: #fffbed;
  --gold: #fdb853;

  --background-color: gainsboro;

  --font-primary: "Poppins", sans-seriff;
  --light-font: #ffffff;

  --font-sm: 0.7em;
  --font-m: 0.85em;
  --font-l: 1em;
  --font-xl: 1.25em;
  --font-xxl: 1.5em;

  --burger-time: 0.3s;
}

body {
  /* background: var(--light-green); */
  background: #ffffff;

  font-family: var(--font-primary);

  overflow-x:hidden;
  -webkit-font-smoothing: antialiased;
}

/*         CONSISTENT MARGINS AND PADDINGS          */

section {
  padding-top: clamp(4rem, 2.977rem + 4.091vi, 6.25rem);
  padding-bottom: clamp(4rem, 2.977rem + 4.091vi, 6.25rem);
}

.container {
  max-width: 1280px;
  width: 100%;
  margin: auto;
  padding-inline: 1rem;
}

h1, h2, h3, h4, h5, h6 {
  overflow-wrap: break-word;
}

p {
  line-height: 1.5rem;
}

.tagline {
  color:var(--primary-color);
}

.button-primary {
  display: block;
  border: 0;
  padding: 1rem 2rem;
  font-weight: 500;
  border-radius: 14px;
  cursor: pointer;
  width: fit-content;
  text-wrap: nowrap;
  color: black;
  /* background: linear-gradient(90deg,rgb(255, 196, 1) 50%, var(--accent-color) 50%); */
  /* background: linear-gradient(90deg,var(--brand-green) 50%, #71e405e8 50%); */
  background: #7bce2de8;
  background-size: 200% 100%;
  background-position:right;
  text-decoration: none;

  transition: background-position 0.125s linear, color 0.125s linear;
}

.button-primary:hover {
  background-position:left;
  color: black;
}

.button-secondary {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 0rem;
  font-weight: 500;
  cursor: pointer;
  width: fit-content;
  color: black;
  text-decoration: none;
  margin-left: auto;
  position: relative;
}

.button-secondary:before {
    background: none repeat scroll 0 0 transparent;
    content: "";
    position: absolute;
    bottom: 0.5rem;
    left: 0;
    height: 3px;
    width: 0;
    /* background: black; */
    background: linear-gradient(90deg,var(--brand-green) 50%, var(--brand-blue) 50%);
    transition: width 0.3s ease 0s;
}

.button-secondary:hover:before {
  width: 100%;
  left: 0;
}

.button-secondary:after {
  content: ' > ';
  font-size: 1.5rem;
}

.button-secondary:hover:after {
  color: var(--brand-green);
}


/*----------------------------------------

                   HEADER                 

------------------------------------------*/
header {
  position: sticky;
  top: 1rem;
  z-index: 100;
  color: #ffffff;
  background: #ffffff;
  font-weight: 600;
  font-size: 1.25rem;
  max-width: 1280px;
  width: calc(100% - 2rem);
  margin-inline: auto;
  border-radius: 14px;
  box-shadow: 0px 6px 24px rgba(0,0,0,0.1);
}

.primary-navigation ul a {
  text-decoration: none;
  color: black;
}

.menu-item {
  position: relative;
}

.menu-item:after {
    background: none repeat scroll 0 0 transparent;
    content: "";
    position: absolute;
    bottom: -2px;
    left: 0;
    height: 3px;
    width: 0;
    background: var(--brand-blue);
    transition: width 0.3s ease 0s;
}

.menu-item:hover:after, .menu-item:has(> a[aria-current=page]):after{
    width: 100%;
    left: 0; 
}

.dropdown-button {
  cursor: pointer;
  appearance: none;
  background: none;
  border: none;
  color: #ffffff;
  font-size: inherit;
  text-transform: inherit;
  font-weight: inherit;
}

.dropdown-button:focus {
  outline: auto;
}

.has-dropdown {
  position: relative;
}

.has-dropdown img {
  width: 1.5rem;
  scale: 1.75;
}

.dropdown-button[aria-expanded="false"] + .dropdown-menu , .dropdown-menu{
  visibility: hidden;
  opacity: 0;
  transform: scaleY(0);
  border-bottom: 5px solid #ffffff;
  margin: 0;
  padding: 0;
  background: var(--primary-color);
  height: 0;
  min-width: 12.5rem;
  overflow: hidden;
  transition: transform 0.3s, visibility 0.3s, opacity 0.3s, padding 0.3s;
  box-shadow: rgba(149, 157, 165, 0.2) 0px 10px 16px;
  transform-origin: top;
  text-align: left;

  z-index: 1000;
}

.dropdown-button[aria-expanded="true"] + .dropdown-menu {
    visibility: visible;
    opacity: 1;
    transform: scaleY(1);
    height: auto;
    padding: 2.8rem 0 0 0;
}

@media (hover: hover){
  .has-dropdown:hover .dropdown-menu {
    visibility: visible;
    opacity: 1;
    transform: scaleY(1);
    height: auto;
    padding: 2.8rem 0 0 0;
  }
}

.dropdown-menu-item {
  display: block;
  width: 100%;
  padding: 0.5rem 0 0.5rem 1rem;
  background: var(--primary-color);
}

.dropdown-menu-item:hover {
  background-color: #0452ac;
}


@media only screen and (max-width: 1024px){

  header {
    height: 4.5rem;
  }

  .desktop-button {
    display: none;
  }

  .mobile-wrapper {
    max-width: 1280px;
    margin: auto;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    padding: 0.5rem 1rem;
  }

  .mobile-wrapper > picture > img {
    width: 200px;
    height: 100%;
    object-fit: contain;
  }

  .primary-navigation ul a {
    color: white;
  }


  .mobile-wrapper .mobile-navigation-toggle {
    color:  #ffffff;
    display: block;
    border: none;
    aspect-ratio: 1;
    background-color:transparent;
    
    z-index: 101;
  }

  .mobile-navigation-toggle:focus {
    outline: auto;
    border: var(--brand-blue) 1px;
    border-radius: 14px;
    padding-left: 11px;
  }

  .desktop-logo {
    display: none;
  }

  .primary-navigation {
    visibility: hidden;
    position: absolute;
    top:  5.5rem;
    z-index: 99;
    height: 0px;
    width: 100%;
    overflow:hidden;
    background: var(--brand-blue);
    display: flex;
    flex-direction: column;
    align-items: center;
    border-radius: 14px;

    transition: 0.2s ease-in;
  }

  .mobile-wrapper:has(> button[aria-expanded="true"]) + nav .primary-navigation {
    visibility:visible;
    height: calc(100vh - 7.5rem);
    transition: height 0.2s ease-in-out;
  }

  .primary-navigation > ul {
    list-style-type: none;
    width: max-content;
    height: 100%;
    display: flex;
    gap: 3rem;
    padding-top: 3rem;
    flex-direction: column;
    text-align: left;
    text-transform: uppercase;
  }

  .primary-navigation > ul li {
    opacity: 0;
    transform: translateY(-1rem);

    transition: opacity .5s, transform .5s;
  }

  .mobile-wrapper:has(> button[aria-expanded="true"]) + nav .primary-navigation ul li {
    opacity: 1;
    transform: translateY(0);
  }

  .primary-navigation ul li:nth-of-type(1) {
    transition-delay: .025s;
  }

  .primary-navigation ul li:nth-of-type(2) {
    transition-delay: .05s;
  }

  .primary-navigation ul li:nth-of-type(3) {
    transition-delay: .075s;
  }

  .primary-navigation ul li:nth-of-type(4) {
    transition-delay: .1s;
  }

  .primary-navigation ul li:nth-of-type(5) {
    transition-delay: .125s;
  }

  .primary-navigation ul li:nth-of-type(6) {
    transition-delay: .15s;
  }

  /* dropdown menu */

  .dropdown-button[aria-expanded="true"] + .dropdown-menu {
    padding: 0.75rem 0 0 0;
  }

  @media (hover: hover ){
    .has-dropdown:hover .dropdown-menu {
      padding: 0.75rem 0 0 0;
    }
  }

}


@media only screen and (min-width: 1024.1px){

  .mobile-wrapper {
    display: none;
  }

  .desktop-logo {
    display: block;
  }

  .desktop-button {
    display: block;
  }

  nav {
    padding: 0.5rem 1rem;
    max-width: 1280px;
    margin: auto;
    display: flex;
    flex-direction: row;
    align-items: center;
    height: 108px !important;
  }

  nav .logo {
    margin-right: auto;
  }

  .primary-navigation {
    visibility: visible;
    position: unset;
    width: max-content;
    height: 100%;
    align-content: center;
    background-color: transparent;
    box-shadow: none;
  }

  .primary-navigation > ul{
    position: unset;
    display: flex;
    flex-direction: row;
    gap: 2rem;
    width: 100%;
    list-style-type: none;
    text-transform: uppercase;
  }

  .menu-item {
    width: max-content;
  }

  .dropdown-menu {
    position: absolute;
    top: 100%;
  }

  .nav-hide-on-desktop {
    display: none;
  }
}

/*----------------------------------------

                   FOOTER                 
                   
------------------------------------------*/
footer {
  /* background: var(--dark-color); */
  /* color:#ffffff; */
  background: var(--brand-blue-light);
  color: black;
  padding-block: 4rem;
}

footer img {
  object-fit: contain;
  width: 100%;
}

footer h2 {
  font-size: 1.5rem;
}

footer .container {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 2rem;
  height: 100%;
}

footer .left-section {
  max-width: 408px;
  width: 100%;
  height: 100%;
  margin-inline: auto;
}

footer .right-section {
  display: flex;
  width: 100%;
  height: 100%;
  margin-block: auto;
  flex-wrap: wrap;
  gap: 1rem;
  text-align: left;
}

footer .right-section ul {
  padding: 0;
}

footer .right-section ul li {
  list-style-type: none;
  padding-bottom: 0.5rem;
}

footer .right-section ul li a{
  text-decoration: none;
  /* color: #ffffff; */
  color: black;
  text-wrap: nowrap;
}

footer .right-section ul li a:hover {
  /* color: var(--accent-color); */
  color: var(--brand-blue);
}

@media only screen and (min-width: 1024.1px) {
  footer .container {
    flex-direction: row;
    justify-content: space-between;
  }

  footer .right-section {
    justify-content: space-evenly;
  }
}


 /*
 UTILITY CLASSES
 */

.sr-only {
  border: 0 !important;
  clip: rect(1px, 1px, 1px, 1px) !important;
  -webkit-clip-path: inset(50%) !important;
  clip-path: inset(50%) !important;
  height: 1px !important;
  overflow: hidden !important;
  margin: -1px !important;
  padding: 0 !important;
  position: absolute !important;
  width: 1px !important;
  white-space: nowrap !important;
}


/*     yummy burger      */

.burger {
  position: relative;
  width: 38px;
  height: 28px;
}

.burger-top,
.burger-filling,
.burger-bottom {
  position: absolute;
  display: block;
  background: var(--brand-blue);
  height:4px;
  width: 32px;
  border-radius: 2px;
}

.burger-top {
  top: 0;
  transform-origin: 32px 2px;
}

.burger-filling {
  top: 12px;
  width: 32px;
}

.burger-bottom {
  bottom: 0;
  transform-origin: 32px 2px;
}


/* bun animations */
.mobile-navigation-toggle[aria-expanded="true"] {
  .burger-top {
    animation: bun-top-out var(--burger-time) linear normal;
    animation-fill-mode:forwards;
  }
  .burger-bottom {
    animation: bun-bottom-out var(--burger-time) linear normal;
    animation-fill-mode:forwards;
  }
}

.mobile-navigation-toggle[aria-expanded="false"] {
  .burger-top {
    animation: bun-top-in var(--burger-time) linear normal;
    animation-fill-mode:forwards;
  }
  .burger-bottom {
    animation: bun-bottom-in var(--burger-time) linear normal;
    animation-fill-mode:forwards;
  }
}

@keyframes bun-top-out {
  0% {
    left: 0;
    top: 0;
    transform: rotate(0deg);
  }
  20% {
    left: 0;
    top: 0;
    transform: rotate(15deg);
  }
  80% {
    left: -5px;
    top: 0;
    transform: rotate(-60deg);
  }
  100% {
    left: -5px;
    top: 1px;
    transform: rotate(-45deg);
  }
}

@keyframes bun-bottom-out {
  0% {
    left: 0;
    transform: rotate(0deg);
  }
  20% {
    left: 0;
    transform: rotate(-15deg);
  }
  80% {
    left: -5px;
    transform: rotate(60deg);
  }
  100% {
    left: -5px;
    transform: rotate(45deg);
  }
}


@keyframes bun-top-in {
  0% {
    left: -5px;
    bot: 0;
    transform: rotate(-45deg);
  }
  20% {
    left: -5px;
    bot: 0;
    transform: rotate(-60deg);
  }
  80% {
    left: 0;
    bot: 0;
    transform: rotate(15deg);
  }
  100% {
    left: 0;
    bot: 1px;
    transform: rotate(0deg);
  }
}

@keyframes bun-bottom-in {
  0% {
    left: -5px;
    transform: rotate(45deg);
  }
  20% {
    left: -5px;
    bot: 0;
    transform: rotate(60deg);
  }
  80% {
    left: 0;
    bot: 0;
    transform: rotate(-15deg);
  }
  100% {
    left: 0;
    transform: rotate(0deg);
  }
}


/*  the filling */
.mobile-navigation-toggle[aria-expanded="true"] {
  .burger-filling {
    animation: burger-filling-out var(--burger-time) linear normal;
    animation-fill-mode:forwards;
  }
}

.mobile-navigation-toggle[aria-expanded="false"] {
  .burger-filling {
    animation: burger-filling-in var(--burger-time) linear normal;
    animation-fill-mode:forwards;
  }
}

@keyframes burger-filling-in {
  0% {
    width: 0;
    left: 32px;
  }
  40% {
    width: 0;
    left: 36px;
  }
  80% {
    width: 32px;
    left: -6px;
  }
  100% {
    width: 32px;
    left: 0px;
  }
}

@keyframes burger-filling-out {
  0% {
    width: 32px;
    left: 0px;
  }
  20% {
    width: 36px;
    left: -6px;
  }

  40% {
    width: 0;
    left: 36px;
  }

  100% {
    width: 0;
    left: 32px;
  }
}

/* page titles */

.page-title {
  /* background: var(--primary-color); */
  background: var(--brand-blue);
  text-align: center;
  color: white;
  margin-top: -7rem;
  padding-top: 12rem;
}

.page-title h1 {
    font-size: clamp(2.5rem, 1.818rem + 2.727vi, 4rem);
    line-height: clamp(2.25rem, 1.568rem + 2.727vi, 3.75rem);
}