/* =========================================================
   WASMaN HISTORY PAGE
   Premium editorial aquatic redesign
========================================================= */

:root {
    --ocean-deep: #052f43;
    --ocean-dark: #073e54;
    --ocean: #087f9c;
    --teal: #18a7b5;
    --mint: #4fd2c4;

    --seafoam: #e8f8f5;
    --mist: #f1f9fa;
    --ice: #f8fbfc;

    --white: #ffffff;

    --heading: #183746;
    --text: #536d78;
    --muted: #82959d;

    --border: rgba(8,127,156,0.12);

    --shadow-soft: 0 12px 34px rgba(5,47,67,0.07);
    --shadow-medium: 0 22px 52px rgba(5,47,67,0.11);
    --shadow-large: 0 32px 80px rgba(5,47,67,0.15);

    --radius-sm: 14px;
    --radius-md: 22px;
    --radius-lg: 30px;

    --transition: all 0.34s ease;
}


/* =========================================================
   RESET / TYPOGRAPHY
========================================================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Manrope', sans-serif;

    color: var(--text);

    background: var(--white);

    line-height: 1.8;

    overflow-x: hidden;

    -webkit-font-smoothing: antialiased;
}

img {
    width: 100%;
    display: block;
}

a {
    text-decoration: none;
}

h1,
h2,
h3 {
    font-family: 'Playfair Display', serif;
}


/* =========================================================
   MAIN PAGE
========================================================= */

.history-section {
    position: relative;

    background:
        radial-gradient(
            circle at 4% 10%,
            rgba(79,210,196,0.10),
            transparent 24%
        ),
        radial-gradient(
            circle at 95% 50%,
            rgba(8,127,156,0.06),
            transparent 28%
        ),
        #f9fcfd;

    overflow: hidden;
}

.history-section::before {
    content: "";

    position: absolute;

    width: 480px;
    height: 480px;

    top: 330px;
    left: -300px;

    border-radius: 50%;

    border: 1px solid rgba(79,210,196,0.14);

    pointer-events: none;
}

.history-section::after {
    content: "";

    position: absolute;

    width: 350px;
    height: 350px;

    right: -190px;
    top: 930px;

    border-radius: 50%;

    background: rgba(79,210,196,0.05);

    pointer-events: none;
}

.history {
    width: min(1200px, 90%);

    margin: auto;

    padding: 105px 0 125px;

    position: relative;

    z-index: 2;
}


/* =========================================================
   HISTORY HERO
========================================================= */

.history-hero {
    display: grid;

    grid-template-columns:
        minmax(0, 1.5fr)
        minmax(240px, 0.5fr);

    gap: 60px;

    align-items: end;

    margin-bottom: 110px;

    padding-bottom: 55px;

    border-bottom: 1px solid var(--border);
}

.history-hero-copy {
    max-width: 850px;
}

.eyebrow {
    display: inline-flex;

    align-items: center;

    gap: 10px;

    margin-bottom: 18px;

    color: var(--ocean);

    font-size: 16pt;

    font-weight: 800;

    letter-spacing: 0.18em;
}

.eyebrow::before {
    content: "";

    width: 30px;
    height: 2px;

    border-radius: 10px;

    background:
        linear-gradient(
            90deg,
            var(--mint),
            var(--ocean)
        );
}

.history-hero h1 {
    max-width: 900px;

    color: var(--ocean-deep);

    font-size: clamp(2.8rem, 5vw, 4.5rem);

    line-height: 1.08;

    font-weight: 600;

    letter-spacing: -0.035em;
}

.history-hero h1 span {
    color: var(--ocean);
}

.history-hero p {
    max-width: 730px;

    margin-top: 24px;

    color: var(--text);

    font-size: 1rem;

    line-height: 1.9;
}

.history-hero-mark {
    min-height: 300px;
    width: 300px;

    padding: 28px;

    display: flex;
    flex-direction: column;
    justify-content: flex-start;

    border-radius: var(--radius-md);

    background:
        linear-gradient(
            145deg,
            var(--ocean-deep),
            var(--ocean)
        );

    box-shadow: var(--shadow-medium);
}

.history-hero-icon {
    width: 52px;
    height: 52px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 15px;

    background: rgba(255,255,255,0.12);

    color: #73ded3;

    font-size: 1.1rem;
}

.history-hero-mark span {
    color: rgba(255,255,255,0.80);

    font-size: 0.76rem;

    font-weight: 700;

    letter-spacing: 0.08em;

    text-transform: uppercase;
}


/* =========================================================
   HISTORY ROWS
========================================================= */

.history-row {
    display: grid;

    grid-template-columns:
        minmax(0, 1fr)
        minmax(0, 1fr);

    gap: 78px;

    align-items: center;

    margin-bottom: 115px;

    position: relative;
}

.history-row:last-child {
    margin-bottom: 0;
}

.history-row.reverse .history-image-wrap {
    order: 2;
}

.history-row.reverse .history-content {
    order: 1;
}


/* =========================================================
   IMAGE
========================================================= */

.history-image-wrap {
    position: relative;
}

.history-image {
    position: relative;

    height: 440px;

    border-radius: var(--radius-lg);

    overflow: hidden;

    box-shadow: var(--shadow-large);
}

.history-image::before {
    content: "";

    position: absolute;

    inset: 0;

    z-index: 1;

    background:
        linear-gradient(
            180deg,
            transparent 48%,
            rgba(5,47,67,0.35)
        );

    pointer-events: none;
}

.history-image img {
    width: 100%;
    height: 100%;

    object-fit: cover;

    transition:
        transform 0.7s ease,
        filter 0.7s ease;
}

.history-row:hover .history-image img {
    transform: scale(1.045);

    filter: saturate(1.05);
}

.image-badge {
    position: absolute;

    left: 22px;
    bottom: 22px;

    z-index: 2;

    display: inline-flex;

    align-items: center;

    gap: 9px;

    padding: 10px 14px;

    border-radius: 50px;

    background: rgba(255,255,255,0.92);

    color: var(--ocean-deep);

    font-size: 0.76rem;

    font-weight: 800;

    box-shadow: 0 8px 24px rgba(5,47,67,0.14);
}

.image-badge i {
    color: var(--teal);
}


/* =========================================================
   CONTENT CARD
========================================================= */

.history-content {
    position: relative;

    padding: 42px;

    border-radius: var(--radius-md);

    background:
        linear-gradient(
            145deg,
            rgba(255,255,255,0.97),
            rgba(248,252,253,0.97)
        );

    border: 1px solid var(--border);

    box-shadow: var(--shadow-soft);

    overflow: hidden;

    transition: var(--transition);
}

.history-content::before {
    content: "";

    position: absolute;

    left: 0;
    top: 40px;

    width: 4px;
    height: 70px;

    border-radius: 0 8px 8px 0;

    background:
        linear-gradient(
            180deg,
            var(--mint),
            var(--ocean)
        );
}

.history-row:hover .history-content {
    transform: translateY(-6px);

    box-shadow: var(--shadow-medium);

    border-color: rgba(24,167,181,0.22);
}

.content-number {
    position: absolute;

    top: 22px;
    right: 25px;

    color: rgba(8,127,156,0.09);

    font-size: 3.8rem;

    font-weight: 800;

    line-height: 1;
}

.content-icon {
    width: 50px;
    height: 50px;

    display: flex;
    align-items: center;
    justify-content: center;

    margin-bottom: 24px;

    border-radius: 15px;

    background: var(--seafoam);

    color: var(--ocean);

    font-size: 1rem;
}

.content-label {
    display: block;

    margin-bottom: 8px;

    color: var(--teal);

    font-size: 16pt;

    font-weight: 800;

    letter-spacing: 0.16em;
}

.history-content h2 {
    max-width: 520px;

    margin-bottom: 20px;

    color: var(--ocean-deep);

    font-size: clamp(1.8rem, 3vw, 2.45rem);

    font-weight: 600;

    line-height: 1.2;

    letter-spacing: -0.02em;
}

.history-content p {
    margin-bottom: 17px;

    color: rgb(44, 44, 44);

    font-size: 16pt;

    line-height: 1.9;
}

.history-content p:last-child {
    margin-bottom: 0;
}


/* =========================================================
   FOOTER
========================================================= */

.footer {
    position: relative;

    padding: 82px 0 0;

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

    background:
        linear-gradient(
            135deg,
            #042d42 0%,
            #07586b 55%,
            #087f8d 100%
        );

    overflow: hidden;
}

.footer::before {
    content: "";

    position: absolute;

    width: 430px;
    height: 430px;

    right: -220px;
    top: -250px;

    border-radius: 50%;

    border: 1px solid rgba(79,210,196,0.18);
}

.footer::after {
    content: "";

    position: absolute;

    width: 280px;
    height: 280px;

    left: -170px;
    bottom: -170px;

    border-radius: 50%;

    background: rgba(79,210,196,0.07);
}

.footer-container {
    position: relative;

    z-index: 2;

    width: min(1200px, 90%);

    margin: auto;

    display: grid;

    grid-template-columns:
        1.45fr
        0.8fr
        1fr
        1fr;

    gap: 52px;
}

.footer-column {
    position: relative;
}

.footer-brand-mark {
    width: 48px;
    height: 48px;

    display: flex;
    align-items: center;
    justify-content: center;

    margin-bottom: 18px;

    border-radius: 14px;

    background: rgba(255,255,255,0.10);

    color: var(--mint);
}

.footer-column h2 {
    margin-bottom: 16px;

    color: var(--white);

    font-size: 1.8rem;

    font-weight: 600;
}

.footer-column h3 {
    margin-bottom: 22px;

    color: var(--white);

    font-size: 1.05rem;

    font-weight: 600;
}

.footer-column h3::after {
    content: "";

    display: block;

    width: 30px;
    height: 2px;

    margin-top: 8px;

    border-radius: 10px;

    background: var(--mint);
}

.footer-column p {
    color: rgba(255,255,255,0.68);

    font-size: 0.8rem;

    line-height: 1.85;
}

.footer-column ul {
    list-style: none;
}

.footer-column li {
    margin-bottom: 10px;

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

    font-size: 0.8rem;
}

.footer-column li a {
    color: rgba(255,255,255,0.68);

    transition: var(--transition);
}

.footer-column li a:hover {
    color: var(--mint);

    padding-left: 4px;
}

.focus-list li {
    display: flex;
    align-items: center;

    gap: 9px;
}

.focus-list i {
    width: 15px;

    color: var(--mint);

    font-size: 0.72rem;
}

.contact-item {
    display: flex;

    gap: 12px;

    margin-bottom: 17px;
}

.contact-item > i {
    width: 34px;
    height: 34px;

    flex: 0 0 34px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 10px;

    background: rgba(255,255,255,0.09);

    color: var(--mint);

    font-size: 0.8rem;
}

.contact-item span {
    display: block;

    margin-bottom: 2px;

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

    font-size: 0.65rem;

    font-weight: 700;

    letter-spacing: 0.08em;

    text-transform: uppercase;
}

.contact-item a,
.contact-item p {
    color: rgba(255,255,255,0.76);

    font-size: 0.78rem;
}

.footer-divider {
    width: min(1200px, 90%);

    height: 1px;

    margin: 62px auto 0;

    background: rgba(255,255,255,0.14);
}

.footer-bottom {
    position: relative;

    z-index: 2;

    width: min(1200px, 90%);

    margin: auto;

    padding: 24px 0;

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 30px;
}

.footer-bottom p {
    color: rgba(255,255,255,0.48);

    font-size: 0.72rem;
}

.social-links {
    display: flex;

    gap: 9px;
}

.social-links a {
    width: 38px;
    height: 38px;

    display: flex;

    align-items: center;
    justify-content: center;

    border-radius: 50%;

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

    background: rgba(255,255,255,0.08);

    border: 1px solid rgba(255,255,255,0.10);

    transition: var(--transition);
}

.social-links a:hover {
    color: var(--ocean-deep);

    background: var(--mint);

    border-color: var(--mint);

    transform: translateY(-4px);
}


/* =========================================================
   RESPONSIVE
========================================================= */

@media (max-width: 1050px) {

    .history-hero {
        grid-template-columns: 1fr;
    }

    .history-hero-mark {
        max-width: 320px;
    }

    .history-row {
        gap: 45px;
    }

    .history-image {
        height: 390px;
    }

    .history-content {
        padding: 34px;
    }

    .footer-container {
        grid-template-columns: repeat(2, 1fr);
    }
}


@media (max-width: 760px) {

    .history {
        width: 90%;

        padding: 80px 0 90px;
    }

    .history-hero {
        margin-bottom: 75px;

        padding-bottom: 42px;
    }

    .history-hero h1 {
        font-size: 2.6rem;
    }

    .history-row,
    .history-row.reverse {
        grid-template-columns: 1fr;

        gap: 32px;

        margin-bottom: 72px;
    }

    .history-row.reverse .history-image-wrap,
    .history-row.reverse .history-content {
        order: initial;
    }

    .history-image {
        height: 310px;
    }

    .history-content {
        padding: 30px 26px;
    }

    .footer-container {
        grid-template-columns: 1fr;

        gap: 38px;
    }

    .footer-bottom {
        flex-direction: column;

        text-align: center;
    }
}


@media (max-width: 460px) {

    .history-hero h1 {
        font-size: 2.15rem;
    }

    .history-hero p {
        font-size: 0.92rem;
    }

    .history-image {
        height: 255px;
    }

    .history-content {
        padding: 27px 22px;
    }

    .history-content h2 {
        font-size: 1.65rem;
    }
}


/* =========================================================
   WASMaN JOURNEY — HERO TIMELINE CAROUSEL
========================================================= */
.history-hero-mark.journey-carousel {
    position: relative;
    width: 100%;
    max-width: 390px;
    min-height: 350px;
    padding: 28px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    overflow: hidden;
    border-radius: var(--radius-md);
    background:
        radial-gradient(circle at 90% 10%, rgba(79,210,196,0.20), transparent 34%),
        linear-gradient(145deg, var(--ocean-deep), var(--ocean));
    box-shadow: var(--shadow-medium);
}

.history-hero-mark.journey-carousel::before {
    content: "";
    position: absolute;
    width: 210px;
    height: 210px;
    right: -110px;
    bottom: -110px;
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 50%;
    pointer-events: none;
}

.journey-header {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 15px;
}

.journey-header .history-hero-icon {
    flex: 0 0 52px;
}

.history-hero-mark .journey-kicker {
    display: block;
    margin-bottom: 2px;
    color: var(--mint);
    font-family: 'Manrope', sans-serif;
    font-size: 0.65rem;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.journey-header h2 {
    color: var(--white);
    font-family: 'Playfair Display', serif;
    font-size: 1.35rem;
    font-weight: 600;
    line-height: 1.2;
}

.journey-slides {
    position: relative;
    z-index: 2;
    min-height: 150px;
    margin: 24px 0 20px;
}

.journey-slide {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transform: translateX(24px);
    transition: opacity .45s ease, transform .45s ease, visibility .45s ease;
}

.journey-slide.is-active {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
}

.history-hero-mark .journey-year {
    display: block;
    margin-bottom: 8px;
    color: #83e4da;
    font-family: 'Playfair Display', serif;
    font-size: 2.8rem;
    font-weight: 700;
    line-height: 1;
    letter-spacing: -0.03em;
}

.journey-slide p {
    margin: 0;
    max-width: 290px;
    color: rgba(255,255,255,0.92);
    font-family: 'Manrope', sans-serif;
    font-size: 0.92rem;
    font-weight: 600;
    line-height: 1.65;
}

.journey-footer {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding-top: 17px;
    border-top: 1px solid rgba(255,255,255,0.14);
}

.journey-dots {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
}

.journey-dot {
    width: 7px;
    height: 7px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: rgba(255,255,255,0.34);
    cursor: pointer;
    transition: all .3s ease;
}

.journey-dot.is-active {
    width: 24px;
    border-radius: 20px;
    background: var(--mint);
}

.journey-arrow {
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255,255,255,0.16);
    border-radius: 50%;
    background: rgba(255,255,255,0.08);
    color: var(--white);
    cursor: pointer;
    transition: var(--transition);
}

.journey-arrow:hover {
    color: var(--ocean-deep);
    background: var(--mint);
    border-color: var(--mint);
    transform: translateY(-2px);
}

@media (max-width: 1050px) {
    .history-hero-mark.journey-carousel {
        width: 100%;
        max-width: 520px;
    }
}

@media (max-width: 460px) {
    .history-hero-mark.journey-carousel {
        min-height: 330px;
        padding: 23px;
    }

    .history-hero-mark .journey-year {
        font-size: 2.35rem;
    }

    .journey-slide p {
        font-size: 0.86rem;
    }
}
