/*
 Theme Name:     Husk Divi Child
 Theme URI:      https://www.elegantthemes.com/gallery/divi/
 Description:    Divi Child Theme
 Author:         Husk
 Author URI:     https://www.husk.co.nz/
 Template:       Divi
 Version:        1.0.031
*/

/* ==========================================================================
   CSS Variables
   ========================================================================== */
:root {
    /* Brand Colors */
    --color-pink: #ee007f;
    --color-blue: #00a3e9;
    --color-yellow: #fff12c;
    --color-grey: #43494d;
    --color-white: #ffffff;
    --color-black: #000000;

    /* Typography */
    --font-primary: 'Stinger', Arial, sans-serif;
    --font-secondary: 'GT Walsheim', Arial, sans-serif;
    --font-size-base: 1rem;
    --font-size-sm: 0.75rem;
    --font-size-md: 0.875rem;
    --font-size-lg: 1.25rem;
	--font-size-xlg: 1.5rem;
    --line-height-tight: 1.2em;
    --line-height-normal: 1.4em;
    --line-height-relaxed: 1.6em;

    /* Spacing */
    --spacing-xs: 5px;
    --spacing-sm: 10px;
    --spacing-md: 20px;
    --spacing-lg: 30px;
    --spacing-xl: 36px;

    /* Transitions */
    --transition-base: all 300ms ease 0ms;

    /* Borders */
    --border-radius: 0;
    --border-width: 2px;
}

/* ==========================================================================
   Base Typography
   ========================================================================== */
html {
	font-size: 16px;
}


/* Headings */
h1,
h2,
h3,
h4,
h5,
h6,
.et_pb_posts .pagination a {
    line-height: var(--line-height-tight) !important;
    font-weight: 700;
}

h1,
h2,
h3 {
    font-family: var(--font-primary);
	font-weight: 400;
}

h4,
h5,
h6,
.et_pb_posts .pagination a,
h4 span,
h5 span,
h6 span,
h2.entry-title,
h5.et_pb_toggle_title,
h4.et_pb_module_header,
h2.dmpro-carousel-item-title {
    font-family: var(--font-secondary) !important;
}

/* Heading Sizes */
h1,
.et_pb_column_1_2 h1,
.et_pb_column_1_3 h1,
.et_pb_column_1_4 h1,
.et_pb_column_1_5 h1,
.et_pb_column_1_6 h1,
.et_pb_column_2_5 h1,
.et_pb_title_container h1.entry-title {
    font-size: 2.75rem !important;
}


@media (max-width: 430px) {

    h1,
    .et_pb_column_1_2 h1,
    .et_pb_column_1_3 h1,
    .et_pb_column_1_4 h1,
    .et_pb_column_1_5 h1,
    .et_pb_column_1_6 h1,
    .et_pb_column_2_5 h1,
    .et_pb_title_container h1.entry-title {
        font-size: 2.5rem !important;
    }
}

h2,
.et_pb_column_1_2 h2,
.et_pb_column_1_3 h2,
.et_pb_column_1_4 h2,
.et_pb_column_1_5 h2,
.et_pb_column_1_6 h2,
.et_pb_column_2_5 h2 {
    font-size: 3.5rem !important;
}

h3,
.et_pb_column_1_2 h3,
.et_pb_column_1_3 h3,
.et_pb_column_1_4 h3,
.et_pb_column_1_5 h3,
.et_pb_column_1_6 h3,
.et_pb_column_2_5 h3,
.et_pb_post h2 {
    font-size: 2.75rem !important;
}

h4,
.et_pb_column_1_2 h4,
.et_pb_column_1_3 h4,
.et_pb_column_1_4 h4,
.et_pb_column_1_5 h4,
.et_pb_column_1_6 h4,
.et_pb_column_2_5 h4,
.et_pb_blog_grid h2,
h2.dmpro-carousel-item-title {
    font-size: 2.5rem !important;
}

h5,
.et_pb_column_1_2 h5,
.et_pb_column_1_3 h5,
.et_pb_column_1_4 h5,
.et_pb_column_1_5 h5,
.et_pb_column_1_6 h5,
.et_pb_column_2_5 h5,
.et_pb_column_1_3 .et_pb_blurb_container h4,
h5.et_pb_toggle_title {
    font-size: 1.25rem;
}

h6,
.et_pb_column_1_2 h6,
.et_pb_column_1_3 h6,
.et_pb_column_1_4 h6,
.et_pb_column_1_5 h6,
.et_pb_column_1_6 h6,
.et_pb_column_2_5 h6 {
    font-size: 1rem;
}

/* Body Text */
p,
ul li,
ol li,
.et_pb_toggle_content,
.et_pb_text_inner,
.et_pb_blurb_description,
.et_pb_tab_content,
cite {
    font-family: var(--font-secondary);
    line-height: var(--line-height-relaxed);
    font-weight: 400;
    font-size: var(--font-size-lg);
}

/* Text Size Modifiers */
.large .et_pb_text_inner,
.large .et_pb_text_inner p,
.large .et_pb_text_inner ul li,
.large .et_pb_text_inner ol li {
    font-size: var(--font-size-lg);
}

.xlarge .et_pb_text_inner,
.xlarge .et_pb_text_inner p,
.xlarge .et_pb_text_inner ul li,
.xlarge .et_pb_text_inner ol li {
    font-size: var(--font-size-xlg);
}

.dmpro-breadcrumb-item,
.small .et_pb_text_inner,
.small .et_pb_text_inner p,
.small .et_pb_text_inner ul li,
.small .et_pb_text_inner ol li {
    font-size: var(--font-size-sm);
}

/* ==========================================================================
   Links & Underlines
   ========================================================================== */
.et_pb_text_inner p a,
.et_pb_text_inner ul li a,
.et_pb_text_inner a,
.et_pb_text_inner table p a,
.et_pb_tab_content a,
.et_pb_toggle_content a,
.et_pb_toggle_content p a,
.et_pb_post_content p a,
.et_pb_blurb_description p a,
.et_pb_blurb_description li a {
    text-decoration: none;
}

.et_pb_text_inner p a:hover,
.et_pb_text_inner ul li a:hover,
.et_pb_text_inner a:hover,
.et_pb_text_inner table p a:hover,
.et_pb_post_content p a:hover,
.et_pb_post .post-meta a:hover,
.et_pb_posts .pagination a:hover,
.et_pb_blurb_description p a:hover,
.et_pb_blurb_description li a:hover {
    text-decoration: underline;
}

.external-link {
    position: relative;
    text-decoration: none;
}

.external-link::after {
    content: '';
    display: inline-block;
    width: 0.75em;
    height: 0.75em;
    vertical-align: middle;
    margin-left: 2px;
    background-color: currentColor;
    mask: url('data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2224%22%20height%3D%2224%22%20viewBox%3D%220%200%2024%2024%22%3E%3Cpath%20d%3D%22M19%2019H5V5h7V3H5a2%202%200%200%200-2%202v14a2%202%200%200%200%202%202h14c1.1%200%202-.9%202-2v-7h-2v7zM14%203v2h3.59l-9.83%209.83%201.41%201.41L19%206.41V10h2V3h-7z%22%2F%3E%3C%2Fsvg%3E') no-repeat center;
    mask-size: contain;
}

/* ==========================================================================
   Navigation
   ========================================================================== */
#main-header {
    box-shadow: none;
}

.nav li li {
    line-height: var(--line-height-normal);
}

.nav li ul {
    width: 260px;
}

.et-menu li li a {
    width: 220px;
}

@media (max-width: 1041px) {
    #et_mobile_nav_menu {
        display: block;
    }

    #top-menu {
        display: none;
    }
}

/* Mobile Menu */
#page-container .mobile_nav li ul.hide {
    display: none !important;
}

#page-container .mobile_nav .menu-item-has-children {
    position: relative;
}

#page-container .mobile_nav .menu-item-has-children>a {
    background: transparent;
}

#page-container .mobile_nav .menu-item-has-children>a+span {
    position: absolute;
    right: 0;
    top: 0;
    padding: var(--spacing-sm) var(--spacing-md);
    font-size: 1.25rem;
    font-weight: 400;
    cursor: pointer;
    z-index: 3;
}

#page-container span.menu-closed:before {
    content: "\4c";
    display: block;
    color: var(--color-grey);
    font-size: 1rem;
    font-family: ETmodules;
}

#page-container span.menu-closed.menu-open:before {
    content: "\4d";
}

/* custom menu styles */
a.btn-menu {
  color: var(--color-yellow) !important;
}

.dlight-header {
    display: flex;
    align-items: stretch;
    width: 100%;
    background: transparent;
    border: 1px solid white;
  }

  .dlight-header__col {
    /* flex-basis: auto = size to content, so wider labels
       (like the date line) naturally claim more space than
       short ones (like "The Hub") instead of all being equal */
    flex: 1 1 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--spacing-sm) var(--spacing-sm);
    border-right: 1px solid white;
    text-align: center;
  }

  .dlight-header__col--last {
    border-right: none;
  }

  .dlight-header__col--logo {
    flex: 1 1 auto;
    justify-content: flex-start;
    padding-left: var(--spacing-sm);
  }

  .dlight-logo {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-xs);
  }

  .dlight-logo__img {
    max-height: 40px;
    width: auto;
    display: block;
  }

  .dlight-item {
    color: var(--color-white);
    font-family: var(--font-primary);
    font-size: var(--font-size-md);
    font-weight: 400;
    text-decoration: none !important;
    white-space: nowrap;
    transition: var(--transition-base);
  }

  .dlight-item:hover {
    opacity: 0.75;
    text-decoration: none !important;
  }

  /* Stack on smaller screens so items don't crush together,
     matching the theme's existing 980px breakpoint */
  @media (max-width: 980px) {
    .dlight-header {
      flex-wrap: wrap;
    }
    .dlight-header__col {
      flex: 1 1 33.33%;
      border-bottom: 1px solid white;
    }
    .dlight-header__col--logo {
      flex: 1 1 100%;
      justify-content: center;
      padding-left: var(--spacing-sm);
    }
  }

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn,
.nf-form-content input[type=submit] {
    display: inline-block;
    font-size: var(--font-size-xlg) !important;
    font-family: var(--font-primary);
    font-weight: 400 !important;
    text-transform: lowercase !important;
    letter-spacing: 1px;
    line-height: var(--line-height-tight) !important;
    border-radius: var(--border-radius) !important;
    border: var(--border-width) solid !important;
    padding: var(--spacing-sm) var(--spacing-sm) !important;
    transition: var(--transition-base);
    cursor: pointer !important;
    height: auto !important;
    text-decoration: none !important;
}

.btn--shaped {
  position: relative;
  overflow: visible;
}

.btn--shaped .btn__icon {
  position: absolute;
  right: -54px;        
  top: 50%;
  transform: translateY(-50%);
  height: 53px;     
  width: auto;
  z-index: 2;
}

/* Button Variants */
.btn-pink {
    color: var(--color-white) !important;
    background-color: var(--color-pink) !important;
    border-color: var(--color-pink) !important;
}

.btn-blue {
    color: var(--color-white) !important;
    background-color: var(--color-blue) !important;
    border-color: var(--color-blue) !important;
}

.btn-yellow,
.nf-form-content input[type=submit] {
    color: var(--color-black) !important;
    background-color: var(--color-yellow) !important;
    border-color: var(--color-yellow) !important;
}

.btn-grey {
    color: var(--color-white) !important;
    background-color: var(--color-grey) !important;
    border-color: var(--color-grey) !important;
}

.btn-white {
    color: var(--color-red) !important;
    background-color: var(--color-white) !important;
    border-color: var(--color-white) !important;
}

.btn-black {
    color: var(--color-white) !important;
    background-color: var(--color-black) !important;
    border-color: var(--color-black) !important;
}

.btn:hover,
.nf-form-content input[type=submit]:hover {
    opacity: 0.8;
    text-decoration: none !important;
}

/* Inline Buttons */
.inline-buttons .et_pb_button_module_wrapper {
    display: inline-block;
}

/* ==========================================================================
   Forms
   ========================================================================== */
.nf-form-content {
    margin-left: 0 !important;
    padding: 0 !important;
}

.nf-form-fields-required,
.nf-error.field-wrap .nf-field-element:after {
    display: none;
}

.nf-error-msg {
    font-size: var(--font-size-sm);
    line-height: var(--line-height-normal);
}

.nf-field-container {
    margin-bottom: var(--spacing-sm) !important;
}

.nf-form-content label {
    font-size: var(--font-size-base) !important;
    font-weight: 700 !important;
}

.nf-form-content .label-above .nf-field-label {
    margin-bottom: var(--spacing-xs) !important;
}

.nf-form-content input:not([type=submit]),
.nf-form-content textarea,
.nf-form-content select,
.nf-error textarea.ninja-forms-field {
    border-radius: var(--border-radius) !important;
    background-color: transparent !important;
    padding: var(--spacing-md) !important;
    color: var(--color-grey) !important;
    font-size: var(--font-size-base);
    border-width: 1px !important;
    border-color: var(--color-grey) !important;
}

/* Form Autofill Styles */
.nf-form-content input:-webkit-autofill,
.nf-form-content input:-webkit-autofill:hover,
.nf-form-content input:-webkit-autofill:active {
    -webkit-background-clip: text;
    -webkit-text-fill-color: var(--color-grey);
    transition: background-color 5000s ease-in-out 0s;
    box-shadow: inset 0 0 20px 60px var(--color-white) !important;
}

.nf-form-content input:-webkit-autofill:focus {
    -webkit-background-clip: text;
    -webkit-text-fill-color: var(--color-grey);
    box-shadow: inset 0 0 20px 60px var(--color-grey) !important;
}

/* Light Form Variant */
.form-light .nf-form-content input:not([type=submit]),
.form-light .nf-form-content textarea,
.form-light .nf-error textarea.ninja-forms-field {
    background-color: transparent !important;
    color: var(--color-white) !important;
    border-color: var(--color-white) !important;
}

.form-light .nf-response-msg {
    border: 1px solid var(--color-white);
}