/*
Theme Name: 4Ever Sea Child
Theme URI: https://4eversea.com/
Description: Custom child theme for 4Ever Sea based on Hello Elementor.
Author: 4Ever Sea
Template: hello-elementor
Version: 1.0.2
Text Domain: 4eversea-child
*/

/* ==================================================
   1. DESIGN TOKENS
================================================== */

:root {

    /* Brand Colors */
    --4es-navy: #0D1F2D;
    --4es-sea: #2E6A7A;
    --4es-taupe: #B89C7A;
    --4es-ivory: #F6F3EE;
    --4es-white: #FFFFFF;

    /* Text Colors */
    --4es-text: #29363D;
    --4es-muted: #6D777C;
    --4es-border: #DED8CF;

    /* Backgrounds */
    --4es-bg-primary: var(--4es-ivory);
    --4es-bg-dark: var(--4es-navy);
    --4es-bg-light: var(--4es-white);

    /* Layout */
    --4es-container: 1400px;

    --4es-side-desktop: 40px;
    --4es-side-tablet: 28px;
    --4es-side-mobile: 20px;

    /* Section Spacing */
    --4es-section-desktop: 120px;
    --4es-section-tablet: 80px;
    --4es-section-mobile: 60px;

    /* Radius */
    --4es-radius-sm: 8px;
    --4es-radius-md: 14px;
    --4es-radius-lg: 22px;
    --4es-radius-xl: 32px;
    --4es-radius-round: 999px;

    /* Shadows */
    --4es-shadow-soft: 0 12px 35px rgba(13, 31, 45, 0.08);
    --4es-shadow-card: 0 16px 45px rgba(13, 31, 45, 0.10);

    /* Transitions */
    --4es-transition-fast: 180ms ease;
    --4es-transition: 300ms ease;
    --4es-transition-slow: 600ms ease;
}


/* ==================================================
   2. BASE / RESET
================================================== */

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--4es-text);
    background-color: var(--4es-bg-primary);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

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

a {
    color: inherit;
}

::selection {
    background: var(--4es-sea);
    color: var(--4es-white);
}


/* ==================================================
   3. TYPOGRAPHY
================================================== */

/*
 * Final font families will be added after approval.
 */

body,
button,
input,
textarea,
select {
    font-family: Arial, Helvetica, sans-serif;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    margin-top: 0;
    color: var(--4es-navy);
    line-height: 1.15;
}

p {
    margin-top: 0;
}

.4es-eyebrow {
    display: block;
    margin-bottom: 16px;
    color: var(--4es-sea);
    font-size: 13px;
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.4es-text-muted {
    color: var(--4es-muted);
}


/* ==================================================
   4. GLOBAL LAYOUT
================================================== */

.4es-container {
    width: min(
        calc(100% - (var(--4es-side-desktop) * 2)),
        var(--4es-container)
    );
    margin-inline: auto;
}

.4es-section {
    padding-block: var(--4es-section-desktop);
}

.4es-section--small {
    padding-block: 80px;
}

.4es-section--dark {
    color: var(--4es-white);
    background-color: var(--4es-navy);
}

.4es-section--white {
    background-color: var(--4es-white);
}

.4es-section--ivory {
    background-color: var(--4es-ivory);
}

.4es-full-width {
    width: 100%;
}

.4es-content-narrow {
    width: min(100%, 820px);
    margin-inline: auto;
}


/* ==================================================
   5. GLOBAL BUTTONS
================================================== */

.4es-btn,
.elementor-button.4es-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-height: 52px;
    padding: 14px 26px;

    border: 1px solid transparent;
    border-radius: var(--4es-radius-round);

    font-size: 14px;
    font-weight: 700;
    line-height: 1;

    letter-spacing: 0.06em;
    text-transform: uppercase;
    text-decoration: none;

    cursor: pointer;

    transition:
        background-color var(--4es-transition),
        color var(--4es-transition),
        border-color var(--4es-transition),
        transform var(--4es-transition);
}

.4es-btn:hover {
    transform: translateY(-2px);
}

.4es-btn--primary {
    color: var(--4es-white);
    background-color: var(--4es-navy);
}

.4es-btn--primary:hover {
    color: var(--4es-white);
    background-color: var(--4es-sea);
}

.4es-btn--sand {
    color: var(--4es-navy);
    background-color: var(--4es-taupe);
}

.4es-btn--sand:hover {
    color: var(--4es-white);
    background-color: var(--4es-sea);
}

.4es-btn--outline {
    color: var(--4es-navy);
    background-color: transparent;
    border-color: var(--4es-navy);
}

.4es-btn--outline:hover {
    color: var(--4es-white);
    background-color: var(--4es-navy);
}


/* ==================================================
   6. CARDS
================================================== */

.4es-card {
    overflow: hidden;
    border: 1px solid var(--4es-border);
    border-radius: var(--4es-radius-lg);
    background-color: var(--4es-white);
    box-shadow: var(--4es-shadow-soft);

    transition:
        transform var(--4es-transition),
        box-shadow var(--4es-transition);
}

.4es-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--4es-shadow-card);
}


/* ==================================================
   7. MEDIA / IMAGES
================================================== */

.4es-image-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.4es-image-rounded img {
    border-radius: var(--4es-radius-lg);
}


/* ==================================================
   8. HEADER
================================================== */

/*
 * Global header styles will be added here.
 */


/* ==================================================
   9. FOOTER
================================================== */

/*
 * Global footer styles will be added here.
 */


/* ==================================================
   10. GLOBAL COMPONENTS
================================================== */

.4es-center {
    text-align: center;
}

.4es-hidden {
    display: none !important;
}


/* ==================================================
   11. PAGE-SPECIFIC STYLES
================================================== */

/*
 * Page-specific styles belong here only when
 * they genuinely apply to one page.
 */


/* ==================================================
   12. RESPONSIVE
================================================== */

@media (max-width: 1024px) {

    .4es-container {
        width: min(
            calc(100% - (var(--4es-side-tablet) * 2)),
            var(--4es-container)
        );
    }

    .4es-section {
        padding-block: var(--4es-section-tablet);
    }

    .4es-section--small {
        padding-block: 64px;
    }
}


@media (max-width: 767px) {

    .4es-container {
        width: min(
            calc(100% - (var(--4es-side-mobile) * 2)),
            var(--4es-container)
        );
    }

    .4es-section {
        padding-block: var(--4es-section-mobile);
    }

    .4es-section--small {
        padding-block: 48px;
    }

    .4es-btn,
    .elementor-button.4es-btn {
        min-height: 48px;
        padding: 13px 22px;
    }
}


/* ==================================================
   13. LOCAL FONTS
================================================== */

@font-face {
    font-family: "Manrope";
    src: url("assets/fonts/Manrope-Variable.ttf") format("truetype");
    font-style: normal;
    font-weight: 200 800;
    font-display: swap;
}

@font-face {
    font-family: "Cormorant Garamond";
    src: url("assets/fonts/CormorantGaramond-Variable.ttf") format("truetype");
    font-style: normal;
    font-weight: 300 700;
    font-display: swap;
}


/* ==================================================
   14. GLOBAL TYPOGRAPHY
================================================== */

:root {
    --4es-font-body: "Manrope", Arial, Helvetica, sans-serif;
    --4es-font-heading: "Cormorant Garamond", Georgia, serif;

    --4es-font-size-body: 17px;
    --4es-line-height-body: 1.7;

    --4es-h1-desktop: clamp(54px, 5vw, 76px);
    --4es-h2-desktop: clamp(42px, 3.8vw, 58px);
    --4es-h3-desktop: clamp(28px, 2.5vw, 36px);
    --4es-h4-desktop: 24px;

    --4es-h1-mobile: 44px;
    --4es-h2-mobile: 36px;
    --4es-h3-mobile: 28px;
}

body,
button,
input,
textarea,
select {
    font-family: var(--4es-font-body);
}

body {
    font-size: var(--4es-font-size-body);
    line-height: var(--4es-line-height-body);
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--4es-font-heading);
    font-weight: 500;
    letter-spacing: -0.015em;
}

h1 {
    font-size: var(--4es-h1-desktop);
    line-height: 0.98;
}

h2 {
    font-size: var(--4es-h2-desktop);
    line-height: 1.05;
}

h3 {
    font-size: var(--4es-h3-desktop);
    line-height: 1.1;
}

h4 {
    font-size: var(--4es-h4-desktop);
}

.elementor-button,
.4es-btn {
    font-family: var(--4es-font-body);
}

.4es-eyebrow {
    font-family: var(--4es-font-body);
}

@media (max-width: 767px) {

    h1 {
        font-size: var(--4es-h1-mobile);
    }

    h2 {
        font-size: var(--4es-h2-mobile);
    }

    h3 {
        font-size: var(--4es-h3-mobile);
    }
}


/* ==================================================
   15. GLOBAL HEADER
================================================== */

.4es-site-content {
    position: relative;
}

.4es-header {
    position: fixed;
    z-index: 1000;
    top: 0;
    right: 0;
    left: 0;

    color: var(--4es-white);

    transition:
        background-color var(--4es-transition),
        box-shadow var(--4es-transition),
        color var(--4es-transition),
        transform var(--4es-transition);
}

.4es-header__inner {
    width: min(
        calc(100% - (var(--4es-side-desktop) * 2)),
        var(--4es-container)
    );

    min-height: 104px;
    margin-inline: auto;

    display: grid;
    grid-template-columns: 230px minmax(0, 1fr) auto;
    align-items: center;
    gap: 28px;

    transition: min-height var(--4es-transition);
}

.4es-header__logo {
    position: relative;
    display: inline-flex;
    align-items: center;
    width: 205px;
}

.4es-header__logo img {
    display: block;
    width: 100%;
    height: auto;

    transition:
        opacity var(--4es-transition),
        visibility var(--4es-transition);
}

.4es-header__logo-dark {
    position: absolute;
    inset: 0 auto auto 0;

    opacity: 0;
    visibility: hidden;
}

.4es-header__nav {
    display: flex;
    justify-content: center;
}

.4es-nav {
    display: flex;
    align-items: center;
    justify-content: center;

    gap: clamp(16px, 1.5vw, 28px);

    margin: 0;
    padding: 0;

    list-style: none;
}

.4es-nav > li {
    margin: 0;
    padding: 0;
}

.4es-nav > li > a {
    position: relative;

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

    min-height: 44px;

    color: inherit;

    font-family: var(--4es-font-body);
    font-size: 13px;
    font-weight: 600;
    line-height: 1;

    letter-spacing: 0.035em;
    text-decoration: none;

    white-space: nowrap;

    transition: color var(--4es-transition);
}

.4es-nav > li > a::after {
    content: "";

    position: absolute;
    right: 0;
    bottom: 6px;
    left: 0;

    height: 1px;

    background: currentColor;

    transform: scaleX(0);
    transform-origin: center;

    transition: transform var(--4es-transition);
}

.4es-nav > li:hover > a::after,
.4es-nav > li.current-menu-item > a::after,
.4es-nav > li.current_page_item > a::after {
    transform: scaleX(1);
}

.4es-header__actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;

    gap: 16px;
}

.4es-header__cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-height: 46px;
    padding: 0 21px;

    border: 1px solid var(--4es-taupe);
    border-radius: var(--4es-radius-round);

    color: var(--4es-navy);
    background-color: var(--4es-taupe);

    font-family: var(--4es-font-body);
    font-size: 12px;
    font-weight: 700;

    letter-spacing: 0.06em;
    text-transform: uppercase;
    text-decoration: none;

    transition:
        background-color var(--4es-transition),
        border-color var(--4es-transition),
        color var(--4es-transition),
        transform var(--4es-transition);
}

.4es-header__cta:hover {
    color: var(--4es-white);
    border-color: var(--4es-sea);
    background-color: var(--4es-sea);

    transform: translateY(-2px);
}

.4es-header.is-scrolled {
    color: var(--4es-navy);

    background: rgba(246, 243, 238, 0.94);

    box-shadow:
        0 8px 30px rgba(13, 31, 45, 0.08);

    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}

.4es-header.is-scrolled .4es-header__inner {
    min-height: 82px;
}

.4es-header.is-scrolled .4es-header__logo-light {
    opacity: 0;
    visibility: hidden;
}

.4es-header.is-scrolled .4es-header__logo-dark {
    opacity: 1;
    visibility: visible;
}


/* ==================================================
   16. MOBILE HEADER
================================================== */

.4es-menu-toggle {
    display: none;

    width: 44px;
    height: 44px;

    padding: 10px;

    border: 0;
    background: transparent;

    cursor: pointer;
}

.4es-menu-toggle span {
    display: block;

    width: 100%;
    height: 1px;

    margin: 6px 0;

    background: currentColor;

    transition: transform var(--4es-transition);
}

.4es-mobile-menu {
    position: fixed;
    z-index: 2000;
    inset: 0;

    color: var(--4es-white);
    background:
        linear-gradient(
            145deg,
            #0D1F2D 0%,
            #143B4B 100%
        );

    opacity: 0;
    visibility: hidden;

    transform: translateY(-16px);

    transition:
        opacity var(--4es-transition),
        visibility var(--4es-transition),
        transform var(--4es-transition);
}

.4es-mobile-menu.is-open {
    opacity: 1;
    visibility: visible;

    transform: translateY(0);
}

.4es-mobile-menu__inner {
    width: min(
        calc(100% - 40px),
        720px
    );

    min-height: 100%;
    margin-inline: auto;

    display: flex;
    flex-direction: column;

    padding: 24px 0 30px;
}

.4es-mobile-menu__top {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.4es-mobile-menu__logo {
    width: 180px;
    height: auto;
}

.4es-mobile-menu__close {
    width: 48px;
    height: 48px;

    border: 0;
    background: transparent;

    color: var(--4es-white);

    font-family: Arial, sans-serif;
    font-size: 38px;
    font-weight: 200;
    line-height: 1;

    cursor: pointer;
}

.4es-mobile-menu__nav {
    display: flex;
    align-items: center;

    flex: 1;

    padding-block: 40px;
}

.4es-mobile-nav {
    width: 100%;

    margin: 0;
    padding: 0;

    list-style: none;
}

.4es-mobile-nav > li {
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.4es-mobile-nav > li > a {
    display: flex;
    align-items: center;

    padding: 15px 0;

    color: var(--4es-white);

    font-family: var(--4es-font-heading);
    font-size: clamp(30px, 8vw, 48px);
    font-weight: 500;
    line-height: 1.05;

    text-decoration: none;
}

.4es-mobile-menu__bottom {
    padding-top: 24px;

    border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.4es-mobile-menu__cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-height: 50px;
    padding: 0 23px;

    border-radius: var(--4es-radius-round);

    color: var(--4es-navy);
    background-color: var(--4es-taupe);

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

    letter-spacing: 0.06em;
    text-transform: uppercase;
    text-decoration: none;
}

.4es-mobile-menu__bottom p {
    margin: 22px 0 0;

    color: rgba(255, 255, 255, 0.65);

    font-family: var(--4es-font-heading);
    font-size: 20px;
    line-height: 1.3;
}

body.4es-menu-open {
    overflow: hidden;
}


@media (max-width: 1180px) {

    .4es-header__inner {
        grid-template-columns: 190px minmax(0, 1fr) auto;
        gap: 18px;
    }

    .4es-header__logo {
        width: 175px;
    }

    .4es-nav {
        gap: 14px;
    }

    .4es-nav > li > a {
        font-size: 12px;
    }

    .4es-header__cta {
        padding-inline: 17px;
        font-size: 11px;
    }
}


@media (max-width: 1024px) {

    .4es-header__inner {
        width: min(
            calc(100% - (var(--4es-side-tablet) * 2)),
            var(--4es-container)
        );

        grid-template-columns: 1fr auto;

        min-height: 84px;
    }

    .4es-header__nav,
    .4es-header__cta {
        display: none;
    }

    .4es-header__logo {
        width: 175px;
    }

    .4es-menu-toggle {
        display: block;
    }

    .4es-header.is-scrolled .4es-header__inner {
        min-height: 72px;
    }
}


@media (max-width: 767px) {

    .4es-header__inner {
        width: min(
            calc(100% - (var(--4es-side-mobile) * 2)),
            var(--4es-container)
        );

        min-height: 76px;
    }

    .4es-header__logo {
        width: 155px;
    }

    .4es-mobile-menu__logo {
        width: 155px;
    }
}


/* ==================================================
   17. HEADER EMERGENCY OVERRIDES
================================================== */

body {
    padding-top: 104px;
}

.4es-header {
    position: fixed;
    top: 0;
    right: 0;
    left: 0;
    z-index: 9999;

    color: var(--4es-white);
    background: transparent;
}

.4es-header__inner {
    width: min(
        calc(100% - (var(--4es-side-desktop) * 2)),
        var(--4es-container)
    );
    min-height: 104px;
    margin-inline: auto;

    display: grid;
    grid-template-columns: 190px minmax(0, 1fr) auto;
    align-items: center;
    gap: 24px;
}

.4es-header__logo {
    position: relative;
    display: block;
    width: 180px;
    max-width: 180px;
    line-height: 0;
}

.4es-header__logo img,
.4es-header__logo-light,
.4es-header__logo-dark {
    display: block;
    width: 100%;
    max-width: 100%;
    height: auto;
}

.4es-header__logo-dark {
    position: absolute;
    top: 0;
    left: 0;

    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.4es-header__nav {
    display: flex;
    justify-content: center;
}

.4es-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 18px;

    margin: 0;
    padding: 0;

    list-style: none;
}

.4es-nav > li {
    margin: 0;
    padding: 0;
}

.4es-nav > li > a {
    display: inline-flex;
    align-items: center;
    min-height: 40px;

    color: inherit;
    text-decoration: none;
    white-space: nowrap;

    font-family: var(--4es-font-body);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.03em;
}

.4es-header__actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 16px;
}

.4es-header__cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-height: 46px;
    padding: 0 20px;

    border: 1px solid var(--4es-taupe);
    border-radius: var(--4es-radius-round);

    background-color: var(--4es-taupe);
    color: var(--4es-navy);

    text-decoration: none;

    font-family: var(--4es-font-body);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.4es-menu-toggle {
    display: none;
}

.4es-header.is-scrolled {
    color: var(--4es-navy);
    background: rgba(246, 243, 238, 0.96);
    box-shadow: 0 8px 30px rgba(13, 31, 45, 0.08);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}

.4es-header.is-scrolled .4es-header__logo-light {
    opacity: 0;
    visibility: hidden;
}

.4es-header.is-scrolled .4es-header__logo-dark {
    opacity: 1;
    visibility: visible;
}

@media (max-width: 1024px) {
    body {
        padding-top: 84px;
    }

    .4es-header__inner {
        width: min(
            calc(100% - (var(--4es-side-tablet) * 2)),
            var(--4es-container)
        );
        min-height: 84px;
        grid-template-columns: 1fr auto;
    }

    .4es-header__nav,
    .4es-header__cta {
        display: none;
    }

    .4es-header__logo {
        width: 155px;
        max-width: 155px;
    }

    .4es-menu-toggle {
        display: inline-flex;
        width: 44px;
        height: 44px;
        padding: 10px;
        border: 0;
        background: transparent;
        color: inherit;
        cursor: pointer;
        flex-direction: column;
        justify-content: center;
    }

    .4es-menu-toggle span {
        display: block;
        width: 100%;
        height: 1px;
        margin: 3px 0;
        background: currentColor;
    }
}

@media (max-width: 767px) {
    body {
        padding-top: 76px;
    }

    .4es-header__inner {
        width: min(
            calc(100% - (var(--4es-side-mobile) * 2)),
            var(--4es-container)
        );
        min-height: 76px;
    }

    .4es-header__logo {
        width: 140px;
        max-width: 140px;
    }
}
