/*
File: styles-consolidated.css
Runningfish template - ALL site CSS in one file (front end + login).
Order matters: variables first, page-specific last.
Source of truth for styles. Do not re-add the modular files.
*/

/* ==========================================================================
   VARIABLES
   ========================================================================== */

:root {
    /* COLORS */
    --color-1: #BC2733;
    --color-2: #2A3140;
    --color-3: #E63946;
    --color-4: #F1F3F7;
    --color-5: #101418;
    
    --color-font-1: #101418;
    --color-font-2: #2A3140;
    --color-font-3: #5B626E;
    --color-font-inverse: #fff;
    
    --color-ui-1: #fff;
    
    /* TYPOGRAPHY */
    --line-height: 1.5rem;
    --font-title: "IBM Plex Serif", "Open Sans", "Arial", "Helvetica Neue", sans-serif;
    --font-body: "IBM Plex Serif", "Open Sans", "Arial", "Helvetica Neue", sans-serif;
    --font-interactive: "IBM Plex Serif", "Open Sans", "Arial", "Helvetica Neue", sans-serif;
    
    /* SIZING */
    --size-xxsmall: 0.375rem; /* line-height / 4 */
    --size-xsmall: 0.5rem; /* line-height / 3 */
    --size-small: 0.75rem; /* line-height / 2 */
    --size-medium: 1.5rem; /* line-height */
    --size-large: 3rem; /* line-height * 2 */
    --size-xlarge: 4.5rem; /* line-height * 3 */
    --size-xxlarge: 6rem; /* line-height * 4 */
    
    --row-max-width: 1920px;
    --row-width: 90.09%;
    
    /* BREAKPOINTS (for reference in media queries) */
    --breakpoint-laptop: 1400px;
    --breakpoint-tablet: 980px;
    --breakpoint-smartphone: 767px;
    --breakpoint-smartphone-portrait: 479px;
    
    /* TRANSITIONS */
    --transition-standard: all 0.3s ease;
}

/* ==========================================================================
   LAYOUT
   ========================================================================== */

/* DIVI LAYOUT OVERRIDES */
/* Hide focus ring for mouse/touch only; keyboard users keep it (ADA) */
*:focus:not(:focus-visible) {
    outline: 0 !important;
}

body {
    overflow-x: hidden; /* fallback for older browsers */
    overflow-x: clip; /* same result, doesn't break position: sticky */
}

.et_pb_section:not(.et_pb_fullwidth_section) {
    padding: var(--size-large) 0;
}

.et_pb_row {
    width: var(--row-width);
    max-width: var(--row-max-width);
    padding: var(--size-medium) 0;
}

.et_pb_module {
    margin-bottom: var(--size-medium);
}

.et_pb_module.et-last-child,
.et_pb_module:last-child {
    margin-bottom: 0;
}

.rf-centered--row {
    display: flex;
}

.rf-centered--row .et_pb_column {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Removing extra space under gallery images */
.et_pb_gallery_image a {
    line-height: 0 !important;
}

#rf-body .rf-contact--blurb .et_pb_blurb_content {
    margin: 0;
}

/* TABLET AND MOBILE RESPONSIVE */
@media (max-width: 980px) {
    .rf-centered--row {
        flex-direction: column;
    }
    
    .rf-centered--row .et_pb_image {
        max-width: 500px;
    }
    
    .rf-centered--row .et_pb_column:first-child {
        margin-bottom: 3rem;
    }
    
    /* Flip the order of columns on tablet and mobile */
    .rf-flip {
        display: flex;
        flex-direction: column-reverse;
    }
    
    .rf-flip .et_pb_column:last-child {
        margin-bottom: 3rem !important;
    }
    
    .rf-flip .et_pb_column:first-child {
        margin-bottom: 0px !important;
    }
}

/* ==========================================================================
   ANIMATION
   ========================================================================== */

/* DELAYED BLURB ENTRY */
#rf-body img {
    animation-fill-mode: both;
}

/* Progressive animation delays for column images - Desktop only */
@media only screen and (min-width: 981px) {
    #rf-body .et_pb_column:nth-child(2) img {
        animation-delay: 0.25s;
    }
    
    #rf-body .et_pb_column:nth-child(3) img {
        animation-delay: 0.5s;
    }
    
    #rf-body .et_pb_column:nth-child(4) img {
        animation-delay: 0.75s;
    }
    
    #rf-body .et_pb_column:nth-child(5) img {
        animation-delay: 1s;
    }
    
    #rf-body .et_pb_column:nth-child(6) img {
        animation-delay: 1.25s;
    }
}

/* ==========================================================================
   TYPOGRAPHY
   ========================================================================== */

/* HEADING STYLES */
body.et_divi_theme h1, 
body.et_divi_theme .h1 {
    font-family: var(--font-title);
    min-height: 0vw;
    font-size: 4rem;
    font-size: clamp(3rem, calc(3rem + ((1vw - 0.48rem) * 1.3889)), 4rem);
}

body.et_divi_theme h1 span, 
body.et_divi_theme .h1 span {
    display: block;
}

body.et_divi_theme h2, 
body.et_divi_theme .h2 {
    font-family: var(--font-title);
    min-height: 0vw;
    font-size: 3rem;
    font-size: clamp(2rem, calc(2rem + ((1vw - 0.48rem) * 1.3889)), 3rem);
}

body.et_divi_theme h2 span, 
body.et_divi_theme .h2 span {
    display: block;
}

body.et_divi_theme h3, 
body.et_divi_theme .h3 {
    font-family: var(--font-title);
    min-height: 0vw;
    font-size: 2.25rem;
    font-size: clamp(1.5rem, calc(1.5rem + ((1vw - 0.48rem) * 1.0417)), 2.25rem);
}

body.et_divi_theme h3 span, 
body.et_divi_theme .h3 span {
    display: block;
}

body.et_divi_theme h4, 
body.et_divi_theme .h4 {
    font-family: var(--font-title);
    min-height: 0vw;
    font-size: 1.5rem;
    font-size: clamp(1.25rem, calc(1.25rem + ((1vw - 0.48rem) * 0.3472)), 1.5rem);
}

body.et_divi_theme h4 span, 
body.et_divi_theme .h4 span {
    display: block;
}

body.et_divi_theme h5, 
body.et_divi_theme .h5 {
    font-family: var(--font-title);
    min-height: 0vw;
    font-size: 1.25rem;
    font-size: clamp(1rem, calc(1rem + ((1vw - 0.48rem) * 0.3472)), 1.25rem);
}

body.et_divi_theme h5 span, 
body.et_divi_theme .h5 span {
    display: block;
}

body.et_divi_theme h6, 
body.et_divi_theme .h6 {
    font-family: var(--font-title);
    min-height: 0vw;
    font-size: 1rem;
    font-size: clamp(0.85rem, calc(0.85rem + ((1vw - 0.48rem) * 0.2083)), 1rem);
    line-height: var(--line-height);
}

body.et_divi_theme h6 span, 
body.et_divi_theme .h6 span {
    display: block;
}

/* BODY FONTS */
body.et_divi_theme,
body.et_divi_theme a,
body.et_divi_theme li {
    font-family: var(--font-body);
    line-height: var(--line-height);
    font-weight: 400;
    font-size: 1rem;
}

#rf-body {
    font-family: var(--font-body);
    line-height: var(--line-height);
    font-weight: 400;
    font-size: 1rem;
}

body.et_divi_theme a {
    transition: var(--transition-standard);
}

/* Links inside headings and paragraphs */
body.et_divi_theme h1 a,
body.et_divi_theme h2 a,
body.et_divi_theme h3 a,
body.et_divi_theme h4 a,
body.et_divi_theme h5 a,
body.et_divi_theme h6 a,
body.et_divi_theme p a {
    color: var(--color-1) !important;
    font-weight: 700;
}

body.et_divi_theme h1 a:hover,
body.et_divi_theme h2 a:hover,
body.et_divi_theme h3 a:hover,
body.et_divi_theme h4 a:hover,
body.et_divi_theme h5 a:hover,
body.et_divi_theme h6 a:hover,
body.et_divi_theme p a:hover {
    color: var(--color-2) !important;
}

/* LARGE PARAGRAPH STYLE */
body.et_divi_theme .rf-paragraph--large,
body.et_divi_theme .rf-paragraph--large a {
    font-size: 1.3125rem;
    font-size: clamp(1rem, calc(1rem + ((1vw - 0.3rem) * 0.5435)), 1.3125rem);
}

#rf-body .rf-paragraph--large,
#rf-body .rf-paragraph--large a {
    font-size: 1.3125rem;
    font-size: clamp(1rem, calc(1rem + ((1vw - 0.3rem) * 0.5435)), 1.3125rem);
}

/* SMALL PARAGRAPH STYLE */
body.et_divi_theme .rf-paragraph--small,
body.et_divi_theme .rf-paragraph--small a {
    font-size: 0.875rem;
    line-height: 1.3125rem;
}

#rf-body .rf-paragraph--small,
#rf-body .rf-paragraph--small a {
    font-size: 0.875rem;
    line-height: 1.3125rem;
}

/* DARK LAYOUT */
body.et_divi_theme .et_pb_layout_dark {
    color: var(--color-font-inverse);
}

/* ==========================================================================
   BUTTONS — Anocote Academy
   --------------------------------------------------------------------------
   Spec: Mood Board #1 › Buttons
   figma.com/design/n3j6uqrTjA4w4frmaZqcSI  (frame 2644:151)

   220 x 44 standing alone, corners rounded 8. Label is IBM Plex Sans
   SemiBold 13, uppercase, 6% tracking, left-aligned at 16. The right
   44 x 44 is an action cell, rounded on its outer edge only, carrying a
   1.5px plus mark with square caps.

   Two rules carry the whole system:
     1. On hover the body deepens to ink. The geometry never moves.
     2. The action cell always holds vermilion, in every variant,
        in every state.

   Vermilion (#E63946) is reserved for the cell, the rules and large type.
   It never sits behind small type — white on it measures 4.2:1 — so solid
   button bodies use deep vermilion (#BC2733), which measures 7.0:1.
   ========================================================================== */


/* ROLE MAP ----------------------------------------------------------------
   Values are the mockup's own hexes, not global variables. The button
   system is small and fully specified in Figma, so it is pinned here
   rather than inherited — that keeps it correct whatever the globals
   are named. To wire a role back to a global, swap the line:

       --rf-accent: var(--color-1);

   ...once you have confirmed that global holds the colour named below. */

#rf-body {
    --rf-btn-height:    2.75rem;    /* 44px */
    --rf-btn-cell:      2.75rem;    /* 44px action cell */
    --rf-btn-radius:    0.5rem;     /* 8px */
    --rf-btn-pad:       1rem;       /* 16px label inset */
    --rf-btn-gap:       0.75rem;    /* clearance between label and cell */
    --rf-btn-hairline:  0.0625rem;  /* 1px border */

    --rf-accent:        #E63946;    /* vermilion    — the action cell, always */
    --rf-solid:         #BC2733;    /* deep vermilion — solid button bodies */
    --rf-ink:           #101418;    /* ink          — hover body */
    --rf-rule:          #E3E7EF;    /* hairline     — outline border */
    --rf-surface:       #FFFFFF;    /* white        — light button bodies */
    --rf-label:         #101418;    /* ink label on a light body */
    --rf-label-inverse: #FFFFFF;    /* white label on a dark body */

    /* Button labels are IBM Plex Sans SemiBold in the mockup, not the
       serif. --font-interactive is deliberately NOT in this chain: if it
       resolves to the heading face, the label falls back to a serif. The
       fallbacks here are all sans, so the worst case is still sans. */
    --rf-btn-font: "IBM Plex Sans", "IBMPlexSans", system-ui, -apple-system,
                   "Segoe UI", Helvetica, Arial, sans-serif;

    /* white plus, 1.5px, square caps, 16 x 16 centred on the 44 cell */
    --rf-btn-mark: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16'%3E%3Cpath d='M8 .75V15.25M.75 8H15.25' fill='none' stroke='%23ffffff' stroke-width='1.5' stroke-linecap='square'/%3E%3C/svg%3E");
}


/* BASE BUTTON STRUCTURE ---------------------------------------------------
   Primary (solid) is the base, exactly as in the mockup. */

#rf-body .et_pb_button,
#rf-body .df-menu-button,
#rf-body .gform_button,
#rf-body [type=submit] {
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;
    position: relative;
    box-sizing: border-box;
    min-width: 13.75rem;            /* 220px standing alone */
    min-height: var(--rf-btn-height);
    border: var(--rf-btn-hairline) solid transparent;
    border-radius: var(--rf-btn-radius);
    padding: 0 calc(var(--rf-btn-cell) + var(--rf-btn-gap)) 0 var(--rf-btn-pad) !important;
    font-family: var(--rf-btn-font);
    font-size: 0.8125rem;           /* 13px, flat — the label does not scale */
    font-weight: 600;               /* SemiBold */
    letter-spacing: 0.06em;         /* 6% tracking */
    text-transform: uppercase;
    line-height: 1.4 !important;
    text-align: left;
    text-decoration: none;
    text-shadow: none;
    cursor: pointer;
    transition: background-color .25s ease, color .25s ease, border-color .25s ease;
    color: var(--rf-label-inverse);
    background-color: var(--rf-solid);
}

/* THE ACTION CELL
   Also neutralises Divi's arrow glyph, which lives on this same
   pseudo-element. Offsets are negative by the border width so the cell
   sits flush to the button's outer edge on all three sides. */

#rf-body .et_pb_button::after,
#rf-body .df-menu-button::after,
#rf-body .gform_button::after,
#rf-body button[type=submit]::after {
    content: "" !important;
    position: absolute;
    top: calc(var(--rf-btn-hairline) * -1);
    right: calc(var(--rf-btn-hairline) * -1);
    bottom: calc(var(--rf-btn-hairline) * -1);
    width: var(--rf-btn-cell);
    background-color: var(--rf-accent);
    background-image: var(--rf-btn-mark);
    background-repeat: no-repeat;
    background-position: center;
    background-size: 1rem 1rem;
    border-radius: 0 var(--rf-btn-radius) var(--rf-btn-radius) 0;
    /* reset Divi */
    display: block;
    opacity: 1 !important;
    margin: 0 !important;
    font-size: 0 !important;
    line-height: 0 !important;
    transform: none !important;
}

/* Divi animates padding and the arrow on hover. The geometry never moves. */
#rf-body .et_pb_button:hover::after,
#rf-body .et_pb_button:focus-visible::after {
    opacity: 1 !important;
    margin: 0 !important;
    transform: none !important;
}

#rf-body .et_pb_button:hover,
#rf-body .df-menu-button:hover,
#rf-body .gform_button:hover,
#rf-body [type=submit]:hover,
#rf-body .et_pb_button:focus-visible,
#rf-body .df-menu-button:focus-visible,
#rf-body .gform_button:focus-visible,
#rf-body [type=submit]:focus-visible {
    background-color: var(--rf-ink) !important;
    color: var(--rf-label-inverse) !important;
    border-color: transparent;
    box-shadow: none;
}

/* Keyboard focus — a vermilion ring clear of the button edge. */
#rf-body .et_pb_button:focus-visible,
#rf-body .df-menu-button:focus-visible,
#rf-body .gform_button:focus-visible,
#rf-body [type=submit]:focus-visible {
    outline: 0.125rem solid var(--rf-accent);
    outline-offset: 0.1875rem;
}

/* <input type=submit> cannot carry a pseudo-element, so it has no cell.
   Centre the label and close up the reserved space. See the note at the
   foot of this file for getting the cell onto Gravity Forms buttons. */
#rf-body input[type=submit] {
    justify-content: center;
    text-align: center;
    padding: 0 1.5rem !important;
}


/* PRIMARY BUTTON — solid deep vermilion, white label, vermilion cell */

#rf-body .rf-button--primary {
    color: var(--rf-label-inverse);
    background-color: var(--rf-solid);
    border-color: transparent;
}

#rf-body .rf-button--primary:hover,
#rf-body .rf-button--primary:focus-visible {
    background-color: var(--rf-ink) !important;
    color: var(--rf-label-inverse) !important;
    border-color: transparent;
    box-shadow: none;
}


/* OUTLINE BUTTON — white body, hairline, ink label, vermilion cell
   (the mockup's SECONDARY variant) */

#rf-body .rf-button--outline {
    color: var(--rf-label) !important;
    background-color: var(--rf-surface);
    border-color: var(--rf-rule);
    box-shadow: none;
    height: fit-content;
}

#rf-body .rf-button--outline:hover,
#rf-body .rf-button--outline:focus-visible {
    background-color: var(--rf-ink) !important;
    color: var(--rf-label-inverse) !important;
    border-color: transparent;
    box-shadow: none;
    opacity: 1 !important;
}


/* SECONDARY BUTTON — solid ink, white label, vermilion cell */

#rf-body .rf-button--secondary {
    color: var(--rf-label-inverse);
    background-color: var(--rf-ink);
    border-color: transparent;
}

#rf-body .rf-button--secondary:hover,
#rf-body .rf-button--secondary:focus-visible {
    background-color: var(--rf-solid) !important;
    color: var(--rf-label-inverse) !important;
    border-color: transparent;
    box-shadow: none;
}


/* SECONDARY OUTLINE BUTTON — white body, ink border, ink label */

#rf-body .rf-button--secondary-outline {
    color: var(--rf-label) !important;
    background-color: var(--rf-surface);
    border-color: var(--rf-ink);
    box-shadow: none;
}

#rf-body .rf-button--secondary-outline:hover,
#rf-body .rf-button--secondary-outline:focus-visible {
    background-color: var(--rf-ink) !important;
    color: var(--rf-label-inverse) !important;
    border-color: var(--rf-ink);
    box-shadow: none;
}


/* INVERSE BUTTON — on an ink band: white body, ink label, vermilion cell */

#rf-body .rf-button--inverse {
    color: var(--rf-label) !important;
    background-color: var(--rf-surface);
    border-color: transparent;
    box-shadow: none;
    height: fit-content;
}

#rf-body .rf-button--inverse:hover,
#rf-body .rf-button--inverse:focus-visible {
    background-color: var(--rf-solid) !important;
    color: var(--rf-label-inverse) !important;
    border-color: transparent;
    box-shadow: none;
    opacity: 1 !important;
}


/* INVERSE OUTLINE BUTTON — the mockup's ON INK variant:
   transparent body, white hairline, white label, vermilion cell */

#rf-body .rf-button--inverse-outline {
    color: var(--rf-label-inverse) !important;
    background-color: transparent;
    border-color: var(--rf-label-inverse);
    box-shadow: none;
    height: fit-content;
}

#rf-body .rf-button--inverse-outline:hover,
#rf-body .rf-button--inverse-outline:focus-visible {
    background-color: var(--rf-solid) !important;
    color: var(--rf-label-inverse) !important;
    border-color: transparent;
    box-shadow: none;
    opacity: 1 !important;
}


/* TEXT LINK — label and a 2px rail, no body, no cell.
   New: the mockup documents this variant and the old sheet had no match. */

#rf-body .rf-button--link {
    display: inline-flex;
    min-width: 0;
    min-height: 0;
    padding: 0 0 0.375rem 0 !important;
    color: var(--rf-solid) !important;
    background-color: transparent;
    border: 0;
    border-bottom: 0.125rem solid var(--rf-solid);
    border-radius: 0;
    box-shadow: none;
}

#rf-body .rf-button--link::after {
    content: none !important;
}

#rf-body .rf-button--link:hover,
#rf-body .rf-button--link:focus-visible {
    background-color: transparent !important;
    color: var(--rf-ink) !important;
    border-bottom-color: var(--rf-ink);
    box-shadow: none;
}


/* NEWSLETTER BUTTON — quiet, on the dark footer strip */

#rf-body .rf-button--newsletter::after {
    content: none !important;
}

#rf-body .rf-button--newsletter {
    min-width: 0;
    color: var(--rf-label-inverse) !important;
    background-color: transparent;
    border-color: transparent;
    height: fit-content;
}

#rf-body .rf-button--newsletter:hover,
#rf-body .rf-button--newsletter:focus-visible {
    background-color: var(--rf-solid) !important;
    color: var(--rf-label-inverse) !important;
    border-color: transparent;
    box-shadow: none;
    opacity: 1 !important;
}


/* IN A CARD — the button takes the card's full width, the height holds at 44 */

#rf-body .rf-button--full,
#rf-body .et_pb_button_module_wrapper.rf-button--full .et_pb_button {
    display: flex;
    width: 100%;
    min-width: 0;
}


/* DISABLED */

#rf-body .et_pb_button[disabled],
#rf-body .gform_button[disabled],
#rf-body [type=submit][disabled] {
    background-color: var(--rf-rule) !important;
    color: var(--rf-label) !important;
    border-color: transparent;
    cursor: not-allowed;
    opacity: 0.6;
}

#rf-body .et_pb_button[disabled]::after,
#rf-body .gform_button[disabled]::after,
#rf-body button[type=submit][disabled]::after {
    background-color: var(--rf-label);
}


/* MULTI-BUTTON LAYOUTS */

#rf-body .et_pb_button + .et_pb_button {
    margin-left: 1.5rem;
}

@media (max-width: 480px) {
    #rf-body .et_pb_button + .et_pb_button {
        margin-left: 0;
        margin-top: 0.75rem;
    }
}


/* --------------------------------------------------------------------------
   GRAVITY FORMS
   The submit control ships as <input type="submit">, which cannot carry a
   pseudo-element, so it renders without the action cell. To get the full
   button, output a <button> instead — drop this in the child theme's
   functions.php and the cell appears with no further CSS:

   add_filter( 'gform_submit_button', function ( $button, $form ) {
       return preg_replace(
           array( '/<input/', '/\s\/>$/', '/value=([\'"])(.*?)\1/' ),
           array( '<button', '></button>', 'data-label=$1$2$1' ),
           $button
       );
   }, 10, 2 );

   ...then echo the label inside the button, or use GF 2.6+'s button
   type setting, which outputs <button> natively.
   -------------------------------------------------------------------------- */
/* ==========================================================================
   HEADER + NAVIGATION (incl. Divi Flash menu)
   ========================================================================== */

@media only screen and (min-width: 981px) {
    /* Regular dropdowns only - Divi Flash mega menus keep their own layout */
    .df-normal-menu-wrap .df-menu-wrap li.menu-item:not(.df-mega-menu) > ul.sub-menu:not(.df-mega-menu *) {
        width: auto !important;
        display: flex;
        flex-direction: column;
        white-space: nowrap;
    }
}

/* DIVI THEME BUILDER MENUS */
#rf-body .rf-centered-inline--menu .et_pb_menu__logo a:hover,
#rf-body .rf-left-aligned--menu .et_pb_menu__logo a:hover {
    opacity: 1;
}

#rf-body .rf-centered-inline--menu li a,
#rf-body .rf-left-aligned--menu li a {
    font-size: 1.3125rem;
    font-size: clamp(0.75rem, calc(0.75rem + ((1vw - 0.48rem) * 0.6944)), 1.25rem);
}

#rf-body .rf-centered-inline--menu .et_pb_menu__logo-wrap,
#rf-body .rf-left-aligned--menu .et_pb_menu__logo-wrap {
    margin-bottom: 0px;
}

#rf-body .rf-centered-inline--menu .et_pb_menu_inner_container,
#rf-body .rf-left-aligned--menu .et_pb_menu_inner_container {
    display: flex;
}

/* Mobile menu icon to X when open */
#rf-body .mobile_nav.opened .mobile_menu_bar::before {
    content: "\4d";
}

/* Header container width */
#main-header .container,
#top-header .container {
    max-width: 1400px;
    width: 90.09%;
}

/* Auto width for nav dropdowns - Desktop */
@media only screen and (min-width: 981px) {
    .nav li ul {
        width: fit-content;
        display: flex;
        flex-direction: column;
    }
    
    .nav li li {
        white-space: nowrap;
    }
    
    .nav li li a {
        width: auto !important;
    }
}

/* TOP HEADER */
#top-header .container {
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

#top-header #et-info-phone a {
    font-weight: 500;
    transition: var(--transition-standard);
}

#top-header #et-info-phone a:hover {
    opacity: 0.7;
}

#top-header a {
    font-size: 15px !important;
}

#top-header #et-secondary-menu {
    float: none;
}

/* MAIN HEADER */
#main-header .et_pb_menu__wrap {
    display: flex;
    justify-content: flex-end;
}

#main-header #menu-top-menu {
    display: flex;
    align-items: center;
}

#main-header #et-top-navigation {
    padding-top: 42px;
}

#main-header #logo {
    max-width: 25%;
}

/* MAIN MENU */
#main-header #top-menu {
    display: flex;
    align-items: center;
}

#main-header #top-menu li a {
    font-size: clamp(0.75rem, calc(0.75rem + ((1vw - 0.48rem) * 0.6944)), 1.25rem);
}

#main-header #top-menu li ul {
    width: auto;
}

#main-header #top-menu li ul a {
    width: auto;
    white-space: nowrap;
}

/* Button in navigation - Desktop */
@media (min-width: 981px) {
    #rf-body li.btn {
        display: flex;
        align-items: center;
    }
    
    #rf-body li.btn a {
        color: var(--color-1) !important;
        background-color: transparent;
        height: fit-content;
        padding: var(--size-medium) var(--size-medium) !important;
        box-shadow: 0 0 0 0.0625rem inset var(--color-1);
    }
    
    #rf-body li.btn a:hover {
        background-color: var(--color-1) !important;
        color: var(--color-font-inverse) !important;
        opacity: 1 !important;
    }
    
    #main-header li.btn a {
        color: var(--color-font-inverse) !important;
        background-color: var(--color-1);
        height: fit-content;
    }
    
    #main-header li.btn a:hover {
        background-color: transparent !important;
        color: var(--color-1) !important;
        box-shadow: 0 0 0 0.125rem inset var(--color-1);
        opacity: 1 !important;
    }
}

/* TABLET AND MOBILE STYLES */
@media (max-width: 980px) {
    #rf-body .rf-centered-inline--menu .et_pb_menu__wrap,
    #rf-body .rf-left-aligned--menu .et_pb_menu__wrap {
        justify-content: flex-end;
    }
    
    #main-header .container {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 10px 0;
    }
    
    #main-header .logo_container {
        position: static;
    }
    
    #main-header #et-top-navigation {
        padding-left: 0px !important;
    }
    
    #main-header .logo_container #logo {
        max-width: unset;
        max-height: 100px;
    }
    
    #main-header .et_header_style_split #logo {
        max-width: unset;
    }
    
    #main-header #et_search_icon,
    #main-header .select_page {
        display: none;
    }
    
    #main-header .mobile_menu_bar::before {
        color: var(--color-font-3);
        font-size: 3rem;
        position: absolute;
        transform: translate(-50px, -22px);
    }
    
    #main-header .mobile_nav {
        padding: 0 !important;
    }
    
    #main-header #et_mobile_nav_menu {
        margin: 0;
    }
}

@media (max-width: 767px) {
    #main-header #logo {
        max-width: 100%;
    }
}

/* Centered header style mobile adjustments */
@media (max-width: 980px) {
    .et_header_style_centered #main-header .container {
        display: block;
        text-align: left;
    }
    
    .et_header_style_centered #main-header div#et-top-navigation {
        position: absolute;
        bottom: auto;
        top: 0;
        padding-top: 0;
    }
    
    .et_header_style_centered #main-header #et_mobile_nav_menu {
        margin-top: 0;
    }
    
    .et_header_style_centered #main-header #et_mobile_nav_menu .mobile_nav {
        padding: 0;
    }
}

/* ==========================================================================
   FULLWIDTH HEADER
   ========================================================================== */

#rf-body .et_pb_fullwidth_header {
    padding: var(--size-large) 0;
}

#rf-body .et_pb_fullwidth_header_container {
    margin: auto;
    max-width: var(--row-max-width);
    width: var(--row-width);
}

@media screen and (max-width: 400px) {
    #rf-body .et_pb_fullwidth_header_container {
        margin-left: auto;
        margin-right: auto;
    }
    
    #rf-body .et_pb_fullwidth_header {
        padding-top: 0px;
        padding-bottom: 0px;
    }
}

/* ==========================================================================
   FOOTER
   ========================================================================== */

/* MAIN FOOTER AREA */
#main-footer #footer-widgets {
    display: block;
    justify-content: center;
}

#main-footer .footer-widget {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: start;
}

#main-footer .footer-widget li {
    padding-left: 0;
}

#main-footer .footer-widget li::before {
    display: none;
}

#main-footer .footer-widget .widget_media_image {
    padding-bottom: 0;
    margin-bottom: 20px;
}

/* Desktop footer widgets */
@media screen and (min-width: 981px) {
    #main-footer #footer-widgets {
        display: flex;
    }
}

/* Tablet footer widgets */
@media screen and (max-width: 980px) {
    #main-footer #footer-widgets {
        flex-wrap: wrap;
        justify-content: flex-start;
    }
}

/* BOTTOM BAR */
#footer-info {
    font-family: var(--font-body);
    line-height: var(--line-height);
    font-weight: 400;
    font-size: 0.875rem;
    line-height: 1.3125rem;
    float: none;
    padding: var(--size-small) 0;
    text-align: center;
}

#footer-info a {
    font-size: 14px;
}

/* ==========================================================================
   FORMS + GRAVITY FORMS
   ========================================================================== */

/* Recaptcha Notice Styling */
.recaptcha {
    font-size: .8rem !important;
    opacity: .7;
}

.recaptcha * {
    font-size: .8rem !important;
}

/* GENERAL FORM OVERRIDES */
.gform_validation_errors {
    text-transform: none;
}

/* GRAVITY FORMS */
#et-main-area .gform_wrapper .gform_submission_error {
    font-family: var(--font-body);
    line-height: var(--line-height);
    font-weight: 400;
    font-size: 1rem;
}

#et-main-area .gform_wrapper input[type="number"],
#et-main-area .gform_wrapper input[type="text"],
#et-main-area .gform_wrapper input[type="tel"],
#et-main-area .gform_wrapper input[type="email"],
#et-main-area .gform_wrapper input[type="date"],
#et-main-area .gform_wrapper textarea { 
    border: 1px solid #bbb !important;
}

/* Hide required fields message */
.gform_heading {
    display: none;
}

/* MAILCHIMP NEWSLETTER SIGNUP */
/* HORIZONTAL NEWSLETTER CODE */
#et-main-area .gform_wrapper .gf_simple_horizontal {
    position: relative;
    display: flex;
    justify-content: center;
    margin: 0 auto;
    max-width: 838px;
    width: 100%;
    min-height: var(--size-large); /* can grow so validation messages show */
}

#et-main-area .gform_wrapper .gf_simple_horizontal * {
    margin: 0 auto;
    max-width: 838px;
    width: 100%;
}

/* Fixed height on the field + button only, not on wrappers or error messages */
#et-main-area .gform_wrapper .gf_simple_horizontal input,
#et-main-area .gform_wrapper .gf_simple_horizontal button,
#et-main-area .gform_wrapper .gf_simple_horizontal [type=submit] {
    height: var(--size-large);
}

#et-main-area .gform_wrapper .gf_simple_horizontal .gfield {
    padding: 0;
}

#et-main-area .gform_wrapper .gf_simple_horizontal input {
    padding: var(--size-small) var(--size-medium);
    background-color: transparent;
    border: 1px solid white;
    color: white;
}

#et-main-area .gform_wrapper .gf_simple_horizontal input::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

#et-main-area .gform_wrapper .gf_simple_horizontal .gform_footer {
    position: absolute;
    width: 25%;
    right: 0;
}

#et-main-area .gform_wrapper .gf_simple_horizontal #gform_submit_button_2 {
    color: #fff !important;
    background-color: transparent;
    height: fit-content;
    border-left: 1px solid white;
}

#et-main-area .gform_wrapper .gf_simple_horizontal #gform_submit_button_2:hover {
    background-color: #fff !important;
    color: #000000 !important;
    opacity: 1 !important;
    box-shadow: 0 0 0 0.0625rem inset #fff;
}

/* ==========================================================================
   SOCIAL ICONS [rf_social_media]
   ========================================================================== */

.rf-social-icons-inline .ul-social-et {
    display: flex;
    list-style-type: none;
    padding: 0;
}

.rf-social-icons-inline .ul-social-et .et-social-icon {
    margin: 0 var(--size-medium) 0 0;
}

.rf-social-icons-inline .ul-social-et .et-social-icon:last-child {
    margin: 0;
}

.rf-social-icons-inline .ul-social-et .et-social-icon a {
    font-size: var(--size-medium);
    width: 2.75rem; /* size-large - .25rem */
    height: 2.75rem;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 999px;
    border-style: solid;
    border-width: .125rem;
}

.rf-social-icons-inline .ul-social-et .et-social-icon a::before {
    position: relative;
}

/* Accessibility hidden class for screen readers */
.rf-social-icons-inline .ul-social-et .et-social-icon span {
    position: absolute;
    left: -10000px;
    top: auto;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

/* ==========================================================================
   NEWS
   ========================================================================== */

#rf-body .rf-news--header .header-content .et_pb_module_header {
    font-size: 3rem;
    font-size: clamp(2rem, calc(2rem + ((1vw - 0.48rem) * 1.3889)), 3rem) !important;
}

#rf-body .rf-news .entry-featured-image-url {
    max-width: 550px;
}

#rf-body .rf-news .entry-title {
    line-height: 0.5em;
}

#rf-body .rf-news .entry-title a {
    font-weight: 700;
    line-height: 1em;
    letter-spacing: 0px;
    text-transform: none;
    font-size: 1.5rem !important;
    font-family: var(--font-title);
}

#rf-body .rf-news a.more-link {
    /* Button outline styles */
    color: var(--color-1) !important;
    background-color: transparent;
    height: fit-content;
    box-shadow: 0 0 0 0.125rem inset var(--color-1);
    /* Button base styles */
    display: inline-flex;
    justify-content: center;
    position: relative;
    border: none;
    font-weight: 400;
    padding: var(--size-small) var(--size-medium) !important;
    text-transform: capitalize;
    transition: var(--transition-standard);
    font-family: var(--font-interactive);
    line-height: var(--line-height) !important;
    text-align: center;
    text-shadow: none;
    cursor: pointer;
    letter-spacing: 2px;
    margin-top: 1.5rem;
    font-size: 1rem;
    font-size: clamp(.875rem, calc(.875rem + ((1vw - 0.48rem) * 0.2083)), 1rem);
}

#rf-body .rf-news a.more-link:hover {
    background-color: var(--color-1) !important;
    color: #fff !important;
    opacity: 1 !important;
}

#rf-body .et_pb_post_content h1,
#rf-body .et_pb_post_content h2,
#rf-body .et_pb_post_content h3,
#rf-body .et_pb_post_content h4,
#rf-body .et_pb_post_content h5,
#rf-body .et_pb_post_content h6 {
    text-transform: capitalize;
}

/* ==========================================================================
   HOME PAGE
   ========================================================================== */

#rf-body .rf-home--slider .et_pb_container {
    max-width: 1400px;
}

/* ==========================================================================
   LOGIN PAGE (scoped to body.login, harmless on front end)
   ========================================================================== */

body.login {
    background-color: var(--color-ui-1);
    color: var(--color-font-2);
    font-size: 1rem;
    line-height: var(--line-height);
    display: flex;
}

body.login::after {
    content: "";
    display: block;
    height: 100%;
    flex-grow: 1;
    background-color: var(--color-1);
    background-size: cover;
    background-position: center;
}

#login {
    width: 50%;
    min-width: 480px;
    padding: var(--size-large) var(--size-xxlarge);
    min-height: 100vh;
    box-sizing: border-box;
    background-color: var(--color-ui-1);
    display: flex;
    flex-direction: column;
    justify-content: center;
    margin: 0;
}

#login #loginform {
    padding: 0;
    border: none;
    box-shadow: none;
    background: transparent;
    overflow: visible;
}

#login h1 {
    margin-top: auto;
}

#login h1 a {
    height: 197px;
    width: 260px;
    background-size: 100%;
    background-position: center;
    background-repeat: no-repeat;
    padding-bottom: 0;
    margin-bottom: 0;
}

#login a {
    color: var(--color-1);
    transition: var(--transition-standard);
}

#login label {
    line-height: var(--line-height);
    margin-bottom: 0;
    color: var(--color-font-3);
}

#login input {
    transition: var(--transition-standard);
}

#login input[type=text],
#login input[type=password] {
    font-size: 1rem;
    line-height: var(--line-height);
    padding: var(--size-small) var(--size-medium);
    background: transparent;
    border-radius: 0;
    color: var(--color-font-2);
    border-color: var(--color-font-3);
}

#login input[type=text]:focus,
#login input[type=password]:focus {
    box-shadow: 0 0 0 1px var(--color-1);
}

#login input[type=checkbox] {
    border-color: var(--color-font-3);
    border-radius: 0;
    box-shadow: none;
    background-color: transparent;
}

#login button.wp-hide-pw {
    height: 3rem;
    width: 3rem;
    top: 1px;
    right: 1px;
    color: var(--color-1);
}

#login input[type=submit] {
    font-size: 1rem;
    line-height: var(--line-height);
    padding: var(--size-small) var(--size-medium);
    color: var(--color-font-inverse);
    text-transform: uppercase;
    background-color: var(--color-1) !important;
    border-color: var(--color-1) !important;
    border-radius: 0;
}

#login input[type=submit]:hover {
    background-color: var(--color-2) !important;
    border-color: var(--color-2) !important;
}

#login p.submit::after {
    content: "";
    visibility: hidden;
    display: block;
    clear: both;
}

#login .itsec-pwls-login-fallback {
    position: static;
    margin-top: 10px;
}

#login #backtoblog,
#login #nav {
    padding: 0;
}

#login #backtoblog a,
#login #nav a {
    color: var(--color-font-3);
}

#login #backtoblog a:hover,
#login #nav a:hover {
    color: var(--color-1);
}

#login .privacy-policy-page-link {
    margin: auto 0 0;
    justify-self: flex-end;
}

/* TABLET AND MOBILE RESPONSIVE */
@media (max-width: 767px) {
    #login {
        width: 100%;
        min-width: 0;
        padding: var(--size-large);
    }
}

@media (max-width: 480px) {
    #login {
        padding: var(--size-large) var(--size-medium);
    }
}