/*
File: main.css
Vella Brasserie (vellascrippsranch.com) - built from the Runningfish boilerplate.
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.

Design source: Figma "Vella Brasserie" (Primary page, 1440 frame).
Fonts: Cormorant Garamond (titles) + Jost (body/UI). Load both in Divi
(Theme Options > Custom Fonts or self-hosted) - this file only references them.
Fluid type scales from 768px (min) to 1440px (max = Figma value).
*/

/* ==========================================================================
   VARIABLES
   ========================================================================== */

:root {
    /* COLORS (Figma: Brand) */
    --color-1: #14234E; /* Navy - header, dark sections, headings */
    --color-2: #F2E9D8; /* Cream - light sections, text on dark */
    --color-3: #EADFCA; /* Linen - alt light section (UI-3) */
    --color-4: #FDFBF6; /* Ivory - button text (Inverse-1) */
    --color-5: #2B5FA6; /* Sea blue - primary buttons, labels, links */
    --color-6: #D9C3A1; /* Sand - rules, dividers */
    --color-7: #D9A93B; /* Gold - star accent */

    --color-font-1: #14234E; /* Headings */
    --color-font-2: #4A3328; /* Body copy (warm brown) */
    --color-font-3: #6E6354; /* Muted / notes */
    --color-font-inverse: #FDFBF6;
    --color-font-inverse-2: #F2E9D8; /* Headings + copy on navy */
    --color-font-inverse-3: #9FAAC4; /* Muted copy + labels on navy */

    --color-ui-1: #fff;
    --color-ui-2: #F2E9D8;
    --color-ui-3: #EADFCA;
    --color-ui-4: #D9C3A1;
    --color-ui-5: #14234E;
    --color-ui-6: #2B5FA6;

    /* TYPOGRAPHY */
    --line-height: 1.5rem; /* spacing rhythm */
    --line-height-body: 1.56; /* Figma Body/Paragraph */
    --font-title: "Cormorant Garamond", "Cormorant", "Garamond", "Georgia", serif;
    --font-body: "Jost", "Helvetica Neue", "Arial", sans-serif;
    --font-interactive: "Jost", "Helvetica Neue", "Arial", sans-serif;
    --letter-spacing-label: 0.3em; /* Figma UI/Label 30 = 4.2px @ 14px */
    --letter-spacing-button: 0.2em; /* Figma UI/Button text 20 = 2.6px @ 13px */

    /* 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%;

    /* BUTTONS */
    --button-radius: 2px;
    --button-border: 1.25px;

    /* 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 */
}

/* Figma sections sit ~96-112px top/bottom: 72px section + 24px row */
.et_pb_section:not(.et_pb_fullwidth_section) {
    padding: var(--size-xlarge) 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) {
    .et_pb_section:not(.et_pb_fullwidth_section) {
        padding: var(--size-large) 0;
    }

    .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 - Cormorant Garamond, navy */
body.et_divi_theme h1,
body.et_divi_theme .h1,
body.et_divi_theme h2,
body.et_divi_theme .h2,
body.et_divi_theme h3,
body.et_divi_theme .h3,
body.et_divi_theme h4,
body.et_divi_theme .h4,
body.et_divi_theme h5,
body.et_divi_theme .h5 {
    color: var(--color-font-1);
}

/* H1 - Hero headline: 68px Medium, lh 1.06, -1% tracking */
body.et_divi_theme h1,
body.et_divi_theme .h1 {
    font-family: var(--font-title);
    font-weight: 500;
    line-height: 1.06;
    letter-spacing: -0.01em;
    min-height: 0vw;
    font-size: 4.25rem;
    font-size: clamp(2.75rem, calc(2.75rem + ((1vw - 0.48rem) * 3.5714)), 4.25rem);
}

body.et_divi_theme h1 span,
body.et_divi_theme .h1 span {
    display: block;
}

/* H2 - Section headline: 46px SemiBold, lh 1.12 */
body.et_divi_theme h2,
body.et_divi_theme .h2 {
    font-family: var(--font-title);
    font-weight: 600;
    line-height: 1.12;
    min-height: 0vw;
    font-size: 2.875rem;
    font-size: clamp(2.125rem, calc(2.125rem + ((1vw - 0.48rem) * 1.7857)), 2.875rem);
}

body.et_divi_theme h2 span,
body.et_divi_theme .h2 span {
    display: block;
}

/* H2 display variant - "Our story" centred statement: 54px Medium */
body.et_divi_theme .rf-heading--display h2,
body.et_divi_theme h2.rf-heading--display {
    font-weight: 500;
    font-size: 3.375rem;
    font-size: clamp(2.375rem, calc(2.375rem + ((1vw - 0.48rem) * 2.381)), 3.375rem);
}

/* H3 - Pillar titles / menu categories: 30px SemiBold, lh 1.18 */
body.et_divi_theme h3,
body.et_divi_theme .h3 {
    font-family: var(--font-title);
    font-weight: 600;
    line-height: 1.18;
    min-height: 0vw;
    font-size: 1.875rem;
    font-size: clamp(1.5rem, calc(1.5rem + ((1vw - 0.48rem) * 0.8929)), 1.875rem);
}

body.et_divi_theme h3 span,
body.et_divi_theme .h3 span {
    display: block;
}

/* H4 - Dish names / hours rows: 22px Medium, lh 1.22 */
body.et_divi_theme h4,
body.et_divi_theme .h4 {
    font-family: var(--font-title);
    font-weight: 500;
    line-height: 1.22;
    min-height: 0vw;
    font-size: 1.375rem;
    font-size: clamp(1.1875rem, calc(1.1875rem + ((1vw - 0.48rem) * 0.4464)), 1.375rem);
}

body.et_divi_theme h4 span,
body.et_divi_theme .h4 span {
    display: block;
}

/* H5 - Small serif title: 20px Medium */
body.et_divi_theme h5,
body.et_divi_theme .h5 {
    font-family: var(--font-title);
    font-weight: 500;
    line-height: 1.22;
    min-height: 0vw;
    font-size: 1.25rem;
    font-size: clamp(1.125rem, calc(1.125rem + ((1vw - 0.48rem) * 0.2976)), 1.25rem);
}

body.et_divi_theme h5 span,
body.et_divi_theme .h5 span {
    display: block;
}

/* H6 - UI/Label: Jost Medium 14px, uppercase, 0.3em tracking, sea blue */
body.et_divi_theme h6,
body.et_divi_theme .h6 {
    font-family: var(--font-interactive);
    font-weight: 500;
    min-height: 0vw;
    font-size: 0.875rem;
    line-height: 1.5;
    letter-spacing: var(--letter-spacing-label);
    text-transform: uppercase;
    color: var(--color-5);
}

body.et_divi_theme h6 span,
body.et_divi_theme .h6 span {
    display: block;
}

/* BODY FONTS - Figma Body/Paragraph: Jost 18px, lh 1.56, warm brown */
body.et_divi_theme,
body.et_divi_theme a,
body.et_divi_theme li {
    font-family: var(--font-body);
    line-height: var(--line-height-body);
    font-weight: 400;
    font-size: 1.125rem;
}

body.et_divi_theme {
    color: var(--color-font-2);
}

#rf-body {
    font-family: var(--font-body);
    line-height: var(--line-height-body);
    font-weight: 400;
    font-size: 1.125rem;
    color: var(--color-font-2);
}

body.et_divi_theme a {
    transition: var(--transition-standard);
}

/* Links inside headings and paragraphs - Figma Text Link: Jost Medium, sea blue, underlined */
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-5) !important;
    font-weight: 500;
}

body.et_divi_theme p a {
    text-decoration: underline;
    text-underline-offset: 0.2em;
    text-decoration-thickness: 1px;
}

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-1) !important;
}

/* LARGE PARAGRAPH STYLE - Figma Body/Large: 20px, lh 1.55 */
body.et_divi_theme .rf-paragraph--large,
body.et_divi_theme .rf-paragraph--large a {
    font-size: 1.25rem;
    font-size: clamp(1.125rem, calc(1.125rem + ((1vw - 0.48rem) * 0.2976)), 1.25rem);
    line-height: 1.55;
}

#rf-body .rf-paragraph--large,
#rf-body .rf-paragraph--large a {
    font-size: 1.25rem;
    font-size: clamp(1.125rem, calc(1.125rem + ((1vw - 0.48rem) * 0.2976)), 1.25rem);
    line-height: 1.55;
}

/* SMALL PARAGRAPH STYLE - Figma Body/Small: 14px, lh 1.52 */
body.et_divi_theme .rf-paragraph--small,
body.et_divi_theme .rf-paragraph--small a {
    font-size: 0.875rem;
    line-height: 1.52;
}

#rf-body .rf-paragraph--small,
#rf-body .rf-paragraph--small a {
    font-size: 0.875rem;
    line-height: 1.52;
}

/* LABEL - Figma UI/Label for non-heading labels (menu "Starters", footer column titles) */
#rf-body .rf-label,
#rf-body .rf-label p {
    font-family: var(--font-interactive);
    font-weight: 500;
    font-size: 0.875rem;
    line-height: 1.5;
    letter-spacing: var(--letter-spacing-label);
    text-transform: uppercase;
    color: var(--color-5);
}

/* TAGLINE - Cormorant Italic 28px, sea blue ("Come hungry. Stay a while.") */
#rf-body .rf-tagline,
#rf-body .rf-tagline p {
    font-family: var(--font-title);
    font-style: italic;
    font-weight: 400;
    font-size: 1.75rem;
    font-size: clamp(1.375rem, calc(1.375rem + ((1vw - 0.48rem) * 0.8929)), 1.75rem);
    line-height: 1.24;
    color: var(--color-5);
}

/* SHORT RULE - 56px sand line under section headlines */
#rf-body .rf-rule {
    width: 56px;
    height: 1px;
    border: 0;
    background-color: var(--color-6);
}

/* DARK LAYOUT - navy sections */
body.et_divi_theme .et_pb_layout_dark,
#rf-body .et_pb_layout_dark {
    color: var(--color-font-inverse-2);
}

body.et_divi_theme .et_pb_layout_dark h1,
body.et_divi_theme .et_pb_layout_dark h2,
body.et_divi_theme .et_pb_layout_dark h3,
body.et_divi_theme .et_pb_layout_dark h4,
body.et_divi_theme .et_pb_layout_dark h5 {
    color: var(--color-font-inverse-2);
}

body.et_divi_theme .et_pb_layout_dark h6,
#rf-body .et_pb_layout_dark .rf-label,
#rf-body .et_pb_layout_dark .rf-label p,
#rf-body .et_pb_layout_dark .rf-paragraph--small {
    color: var(--color-font-inverse-3);
}

body.et_divi_theme .et_pb_layout_dark p a {
    color: var(--color-font-inverse-2) !important;
}

body.et_divi_theme .et_pb_layout_dark p a:hover {
    color: var(--color-7) !important;
}

#rf-body .et_pb_layout_dark .rf-rule {
    background-color: var(--color-font-inverse-3);
}

/* ==========================================================================
   BUTTONS - Figma: Jost Medium 13px, uppercase, 0.2em tracking, 52px tall, 2px radius
   ========================================================================== */

/* BASE BUTTON STRUCTURE */
#rf-body .et_pb_button,
#rf-body .df-menu-button,
#rf-body .gform_button,
#rf-body [type=submit] {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    position: relative;
    border: none;
    border-radius: var(--button-radius);
    font-size: 0.8125rem;
    font-weight: 500;
    letter-spacing: var(--letter-spacing-button);
    padding: 1.1875rem 2rem !important; /* 13px text + 19px top/bottom = 52px */
    min-width: 190px;
    text-transform: uppercase;
    transition: var(--transition-standard);
    font-family: var(--font-interactive);
    line-height: 1 !important;
    text-align: center;
    text-shadow: none;
    cursor: pointer;
    /* Primary button styles as base */
    color: var(--color-font-inverse);
    background-color: var(--color-5);
}

#rf-body .et_pb_button::after,
#rf-body .et_pb_button::before {
    display: none; /* no Divi arrow icon */
}

#rf-body .et_pb_button:hover,
#rf-body .df-menu-button:hover,
#rf-body .gform_button:hover,
#rf-body [type=submit]:hover {
    background-color: var(--color-1) !important;
    color: var(--color-font-inverse-2) !important;
    box-shadow: 0 0 0 var(--button-border) inset var(--color-font-inverse-2);
}

/* PRIMARY BUTTON - sea blue ("Reserve a table") */
#rf-body .rf-button--primary {
    color: var(--color-font-inverse);
    background-color: var(--color-5);
}

#rf-body .rf-button--primary:hover {
    background-color: var(--color-1) !important;
    color: var(--color-font-inverse-2) !important;
    box-shadow: 0 0 0 var(--button-border) inset var(--color-font-inverse-2);
}

/* OUTLINE BUTTON - navy ring, for cream/linen sections */
#rf-body .rf-button--outline {
    color: var(--color-1) !important;
    background-color: transparent;
    height: fit-content;
    box-shadow: 0 0 0 var(--button-border) inset var(--color-1);
}

#rf-body .rf-button--outline:hover {
    background-color: var(--color-1) !important;
    color: var(--color-font-inverse-2) !important;
    opacity: 1 !important;
}

/* SECONDARY BUTTON - navy fill */
#rf-body .rf-button--secondary {
    color: var(--color-font-inverse-2);
    background-color: var(--color-1);
}

#rf-body .rf-button--secondary:hover {
    background-color: transparent !important;
    color: var(--color-1) !important;
    box-shadow: 0 0 0 var(--button-border) inset var(--color-1);
}

/* SECONDARY OUTLINE BUTTON - sea blue ring */
#rf-body .rf-button--secondary-outline {
    color: var(--color-5);
    background-color: transparent;
    box-shadow: 0 0 0 var(--button-border) inset var(--color-5);
}

#rf-body .rf-button--secondary-outline:hover {
    background-color: var(--color-5) !important;
    color: var(--color-font-inverse) !important;
    box-shadow: 0 0 0 var(--button-border) inset var(--color-5);
}

/* INVERSE BUTTON - cream fill on navy/photo */
#rf-body .rf-button--inverse {
    color: var(--color-1) !important;
    background-color: var(--color-font-inverse-2);
    height: fit-content;
    box-shadow: 0 0 0 var(--button-border) inset var(--color-font-inverse-2);
}

#rf-body .rf-button--inverse:hover {
    background-color: transparent;
    color: var(--color-font-inverse-2) !important;
    opacity: 1 !important;
    box-shadow: 0 0 0 var(--button-border) inset var(--color-font-inverse-2);
}

/* INVERSE OUTLINE BUTTON - cream ring on navy/photo ("View the menu", "Reserve") */
#rf-body .rf-button--inverse-outline {
    color: var(--color-font-inverse-2) !important;
    background-color: transparent;
    height: fit-content;
    box-shadow: 0 0 0 var(--button-border) inset var(--color-font-inverse-2);
}

#rf-body .rf-button--inverse-outline:hover {
    background-color: var(--color-font-inverse-2) !important;
    color: var(--color-1) !important;
    opacity: 1 !important;
    box-shadow: 0 0 0 var(--button-border) inset var(--color-font-inverse-2);
}

/* NEWSLETTER BUTTON */
#rf-body .rf-button--newsletter {
    color: var(--color-font-inverse-2) !important;
    background-color: transparent;
    height: fit-content;
}

#rf-body .rf-button--newsletter:hover {
    background-color: var(--color-font-inverse-2) !important;
    color: var(--color-1) !important;
    opacity: 1 !important;
    box-shadow: 0 0 0 0.0625rem inset var(--color-font-inverse-2);
}

/* MULTI-BUTTON LAYOUTS - Figma gap 20px */
#rf-body .et_pb_button + .et_pb_button {
    margin-left: 1.25rem;
}

/* ==========================================================================
   HEADER + NAVIGATION (incl. Divi Flash menu)
   Figma: 120px navy bar, Jost 17px cream links, centred arch logo plaque
   ========================================================================== */

@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-family: var(--font-body);
    font-weight: 400;
    line-height: 1.4;
    color: var(--color-font-inverse-2);
    font-size: 1.0625rem;
    font-size: clamp(0.875rem, calc(0.875rem + ((1vw - 0.48rem) * 0.4464)), 1.0625rem);
}

#rf-body .rf-centered-inline--menu li a:hover,
#rf-body .rf-left-aligned--menu li a:hover {
    color: var(--color-font-inverse-3);
    opacity: 1;
}

#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%;
}

/* 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 {
    background-color: var(--color-1);
}

#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-family: var(--font-body);
    font-weight: 400;
    color: var(--color-font-inverse-2);
    font-size: clamp(0.875rem, calc(0.875rem + ((1vw - 0.48rem) * 0.4464)), 1.0625rem);
}

#main-header #top-menu li ul {
    width: auto;
}

#main-header #top-menu li ul a {
    width: auto;
    white-space: nowrap;
}

/* Button in navigation - Desktop. Figma "Reserve": cream outline, 164 x 44 */
@media (min-width: 981px) {
    #rf-body li.btn {
        display: flex;
        align-items: center;
    }

    #rf-body li.btn a {
        color: var(--color-font-inverse-2) !important;
        background-color: transparent;
        height: fit-content;
        min-width: 164px;
        justify-content: center;
        font-family: var(--font-interactive);
        font-weight: 500;
        font-size: 0.8125rem !important;
        line-height: 1 !important;
        letter-spacing: var(--letter-spacing-button);
        text-transform: uppercase;
        text-align: center;
        border-radius: var(--button-radius);
        padding: 0.96875rem 1.5rem !important; /* 44px tall */
        box-shadow: 0 0 0 var(--button-border) inset var(--color-font-inverse-2);
    }

    #rf-body li.btn a:hover {
        background-color: var(--color-font-inverse-2) !important;
        color: var(--color-1) !important;
        opacity: 1 !important;
    }

    #main-header li.btn a {
        color: var(--color-font-inverse-2) !important;
        background-color: transparent;
        height: fit-content;
        box-shadow: 0 0 0 var(--button-border) inset var(--color-font-inverse-2);
    }

    #main-header li.btn a:hover {
        background-color: var(--color-font-inverse-2) !important;
        color: var(--color-1) !important;
        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,
    #rf-body .mobile_menu_bar::before {
        color: var(--color-font-inverse-2);
    }

    #main-header .mobile_menu_bar::before {
        font-size: 3rem;
        position: absolute;
        transform: translate(-50px, -22px);
    }

    #main-header .mobile_nav {
        padding: 0 !important;
    }

    #main-header #et_mobile_nav_menu {
        margin: 0;
    }

    /* Mobile dropdown panel: navy with cream links */
    #rf-body .et_mobile_menu {
        background-color: var(--color-1);
        border-top-color: var(--color-7);
    }

    #rf-body .et_mobile_menu li a {
        color: var(--color-font-inverse-2) !important;
        border-bottom-color: rgba(159, 170, 196, 0.3);
    }
}

@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 - Figma: navy, cream links, muted labels + legal line
   ========================================================================== */

/* MAIN FOOTER AREA */
#main-footer {
    background-color: var(--color-1);
}

#main-footer #footer-widgets {
    display: block;
    justify-content: center;
}

#main-footer .footer-widget {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: start;
    color: var(--color-font-inverse-2);
    font-size: 0.875rem;
    line-height: 1.52;
}

#main-footer .footer-widget .title {
    font-family: var(--font-interactive);
    font-weight: 500;
    font-size: 0.875rem;
    letter-spacing: var(--letter-spacing-label);
    text-transform: uppercase;
    color: var(--color-font-inverse-3);
}

#main-footer .footer-widget a {
    color: var(--color-font-inverse-2);
    font-size: 0.875rem;
}

#main-footer .footer-widget a:hover {
    color: var(--color-7);
}

#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-bottom {
    background-color: var(--color-1);
    border-top: 1px solid rgba(159, 170, 196, 0.5);
}

#footer-info {
    font-family: var(--font-body);
    font-weight: 400;
    font-size: 0.875rem;
    line-height: 1.52;
    color: var(--color-font-inverse-3);
    float: none;
    padding: var(--size-small) 0;
    text-align: center;
}

#footer-info a {
    font-size: 14px;
    color: var(--color-font-inverse-3);
}

#footer-info a:hover {
    color: var(--color-font-inverse-2);
}

/* ==========================================================================
   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-body);
    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 select,
#et-main-area .gform_wrapper textarea {
    border: 1px solid var(--color-6) !important;
    border-radius: var(--button-radius);
    background-color: var(--color-4);
    font-family: var(--font-body);
    color: var(--color-font-2);
}

#et-main-area .gform_wrapper input:focus,
#et-main-area .gform_wrapper select:focus,
#et-main-area .gform_wrapper textarea:focus {
    border-color: var(--color-5) !important;
}

#et-main-area .gform_wrapper .gfield_label {
    font-family: var(--font-body);
    font-weight: 500;
    color: var(--color-font-1);
}

/* 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: 52px;
}

#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 var(--color-font-inverse-2) !important;
    color: var(--color-font-inverse-2);
}

#et-main-area .gform_wrapper .gf_simple_horizontal input::placeholder {
    color: var(--color-font-inverse-3);
}

#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: var(--color-font-inverse-2) !important;
    background-color: transparent;
    height: fit-content;
    border-left: 1px solid var(--color-font-inverse-2);
}

#et-main-area .gform_wrapper .gf_simple_horizontal #gform_submit_button_2:hover {
    background-color: var(--color-font-inverse-2) !important;
    color: var(--color-1) !important;
    opacity: 1 !important;
    box-shadow: 0 0 0 0.0625rem inset var(--color-font-inverse-2);
}

/* ==========================================================================
   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: 2.875rem;
    font-size: clamp(2.125rem, calc(2.125rem + ((1vw - 0.48rem) * 1.7857)), 2.875rem) !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: 600;
    line-height: 1.18;
    letter-spacing: 0px;
    text-transform: none;
    font-size: 1.875rem !important;
    font-family: var(--font-title);
    color: var(--color-font-1);
}

#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 var(--button-border) inset var(--color-1);
    border-radius: var(--button-radius);
    /* Button base styles */
    display: inline-flex;
    justify-content: center;
    position: relative;
    border: none;
    font-weight: 500;
    padding: 1.1875rem 2rem !important;
    text-transform: uppercase;
    transition: var(--transition-standard);
    font-family: var(--font-interactive);
    line-height: 1 !important;
    text-align: center;
    text-shadow: none;
    cursor: pointer;
    letter-spacing: var(--letter-spacing-button);
    margin-top: 1.5rem;
    font-size: 0.8125rem;
}

#rf-body .rf-news a.more-link:hover {
    background-color: var(--color-1) !important;
    color: var(--color-font-inverse-2) !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-2);
    color: var(--color-font-2);
    font-family: var(--font-body);
    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-2);
    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-5);
    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: var(--color-4);
    border-radius: var(--button-radius);
    color: var(--color-font-2);
    border-color: var(--color-6);
}

#login input[type=text]:focus,
#login input[type=password]:focus {
    box-shadow: 0 0 0 1px var(--color-5);
}

#login input[type=checkbox] {
    border-color: var(--color-6);
    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-5);
}

#login input[type=submit] {
    font-family: var(--font-interactive);
    font-weight: 500;
    font-size: 0.8125rem;
    letter-spacing: var(--letter-spacing-button);
    line-height: var(--line-height);
    padding: var(--size-small) var(--size-medium);
    color: var(--color-font-inverse);
    text-transform: uppercase;
    background-color: var(--color-5) !important;
    border-color: var(--color-5) !important;
    border-radius: var(--button-radius);
}

#login input[type=submit]:hover {
    background-color: var(--color-1) !important;
    border-color: var(--color-1) !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-5);
}

#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);
    }
}