/* =========================================================
   WASMaN COMPLETED PROJECTS
   Premium editorial aquatic redesign
========================================================= */

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

    --seafoam: #e9f8f5;
    --mist: #f1f9fa;
    --ice: #f9fcfd;

    --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
========================================================= */

* {
    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;
}

.completed-projects-page {
    overflow: hidden;
}


/* =========================================================
   SHARED LABEL
========================================================= */

.section-label,
.eyebrow {
    display: inline-flex;

    align-items: center;

    gap: 10px;

    margin-bottom: 11px;

    color: var(--teal);

    font-size: 0.7rem;

    font-weight: 800;

    letter-spacing: 0.16em;

    text-transform: uppercase;
}

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

    width: 28px;
    height: 2px;

    border-radius: 10px;

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

.dark-label {
    color: #79ddd4;
}


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

.completed-hero {
    min-height: 650px;

    position: relative;

    display: flex;

    align-items: center;

    background:
        linear-gradient(
            105deg,
            rgba(2,43,58,0.94),
            rgba(3,92,106,0.72),
            rgba(24,167,181,0.30)
        ),
        url("../pics_vids/comp.png")
        center / cover no-repeat;

    background-attachment: fixed;
}

.completed-hero-overlay {
    width: 100%;

    min-height: 650px;

    display: flex;

    align-items: center;

    background:
        linear-gradient(
            90deg,
            rgba(3,38,52,0.78),
            rgba(3,62,73,0.36),
            transparent
        );
}

.completed-hero-content {
    width: min(1180px, 88%);

    margin: auto;

    padding: 100px 0;

    color: var(--white);
}

.completed-hero-content .eyebrow {
    color: #9de5de;
}

.completed-hero-content h1 {
    max-width: 850px;

    margin-bottom: 24px;

    color: var(--white);

    font-size: clamp(3.1rem, 5vw, 4.9rem);

    line-height: 1.05;

    font-weight: 600;

    letter-spacing: -0.04em;
}

.completed-hero-content h1 span {
    color: #9de5de;
}

.completed-hero-content p {
    max-width: 720px;

    margin-bottom: 34px;

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

    font-size: 0.98rem;

    line-height: 1.9;
}

.completed-hero-actions {
    display: flex;

    flex-wrap: wrap;

    gap: 11px;
}

.primary-btn,
.secondary-btn,
.cta-primary,
.cta-outline {
    display: inline-flex;

    align-items: center;

    gap: 9px;

    padding: 13px 22px;

    border-radius: 50px;

    font-size: 0.78rem;

    font-weight: 800;

    transition: var(--transition);
}

.primary-btn,
.cta-primary {
    color: var(--ocean-deep);

    background: var(--mint);
}

.secondary-btn,
.cta-outline {
    color: var(--white);

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

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

    backdrop-filter: blur(8px);
}

.primary-btn:hover,
.secondary-btn:hover,
.cta-primary:hover,
.cta-outline:hover {
    transform: translateY(-3px);
}

.primary-btn:hover,
.cta-primary:hover {
    background: var(--white);
}


/* =========================================================
   LEGACY
========================================================= */

.legacy-section {
    width: min(1180px, 88%);

    margin: 110px auto;

    display: grid;

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

    gap: 75px;

    align-items: center;
}

.legacy-intro h2 {
    margin-bottom: 20px;

    color: var(--ocean-deep);

    font-size: clamp(2.4rem, 4vw, 3.5rem);

    line-height: 1.12;

    font-weight: 600;

    letter-spacing: -0.025em;
}

.legacy-intro p {
    margin-bottom: 17px;

    color: var(--text);

    font-size: 0.92rem;

    line-height: 1.9;
}

.legacy-stat-grid {
    display: grid;

    grid-template-columns: repeat(2, 1fr);

    gap: 18px;
}

.legacy-stat {
    min-height: 190px;

    padding: 28px;

    border-radius: 18px;

    background:
        linear-gradient(
            145deg,
            #f7fbfb,
            #edf8f7
        );

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

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

    transition: var(--transition);
}

.legacy-stat:hover {
    transform: translateY(-6px);

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

.stat-icon {
    width: 42px;
    height: 42px;

    display: flex;

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

    border-radius: 12px;

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

    color: var(--teal);
}

.legacy-stat h3 {
    margin: 26px 0 5px;

    color: var(--ocean);

    font-size: 2rem;

    line-height: 1.1;
}

.legacy-stat p {
    color: var(--muted);

    font-size: 0.74rem;

    font-weight: 700;
}


/* =========================================================
   FEATURED SUCCESS STORY
========================================================= */

.success-section {
    width: min(1220px, 90%);

    min-height: 560px;

    margin: 0 auto 110px;

    display: grid;

    grid-template-columns: 1fr 1fr;

    overflow: hidden;

    border-radius: 26px;

    background:
        linear-gradient(
            135deg,
            #052f43,
            #075f70
        );

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

.success-image {
    position: relative;

    min-height: 560px;

    overflow: hidden;
}

.success-image::after {
    content: "";

    position: absolute;

    inset: 0;

    z-index: 1;

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

    pointer-events: none;
}

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

    object-fit: cover;

    transition: transform 0.6s ease;
}

.success-section:hover .success-image img {
    transform: scale(1.03);
}

.success-tag {
    position: absolute;

    top: 22px;
    left: 22px;

    z-index: 2;

    display: inline-flex;

    align-items: center;

    gap: 8px;

    padding: 8px 12px;

    border-radius: 50px;

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

    color: var(--ocean-deep);

    font-size: 0.64rem;

    font-weight: 800;
}

.success-image-caption {
    position: absolute;

    left: 22px;
    bottom: 22px;

    z-index: 2;

    display: inline-flex;

    align-items: center;

    gap: 9px;

    padding: 9px 13px;

    border-radius: 50px;

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

    color: var(--ocean-deep);

    font-size: 0.7rem;

    font-weight: 800;
}

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

.success-content {
    padding: 65px;

    display: flex;

    flex-direction: column;

    justify-content: center;
}

.success-content h2 {
    margin-bottom: 18px;

    color: var(--white);

    font-size: clamp(2.4rem, 4vw, 3.4rem);

    line-height: 1.1;

    font-weight: 600;
}

.success-content p {
    margin-bottom: 12px;

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

    font-size: 0.88rem;

    line-height: 1.85;
}

.success-results {
    display: grid;

    grid-template-columns: repeat(2, 1fr);

    gap: 10px;

    margin-top: 25px;
}

.success-results div {
    display: flex;

    align-items: center;

    gap: 9px;

    padding: 10px 12px;

    border-radius: 12px;

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

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

    font-size: 0.7rem;
}

.success-results i {
    color: var(--mint);
}


/* =========================================================
   COMPLETED PROJECTS HEADING
========================================================= */

.completed-heading {
    max-width: 780px;

    margin: 0 auto 55px;

    padding: 0 24px;

    text-align: center;
}

.completed-heading h2 {
    margin-bottom: 14px;

    color: var(--ocean-deep);

    font-size: clamp(2.4rem, 4vw, 3.5rem);

    line-height: 1.12;

    font-weight: 600;
}

.completed-heading p {
    max-width: 700px;

    margin: auto;

    color: var(--muted);

    font-size: 0.9rem;

    line-height: 1.8;
}


/* =========================================================
   PROJECT GRID
========================================================= */

.completed-project-grid {
    width: min(1220px, 90%);

    margin: 0 auto 110px;

    display: grid;

    grid-template-columns: repeat(3, 1fr);

    gap: 22px;
}

.completed-project-card {
    overflow: hidden;

    border-radius: 20px;

    background: var(--white);

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

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

    transition: var(--transition);
}

.completed-project-card:hover {
    transform: translateY(-8px);

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

.completed-card-image {
    position: relative;

    height: 235px;

    overflow: hidden;
}

.completed-card-image::after {
    content: "";

    position: absolute;

    inset: 0;

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

    pointer-events: none;
}

.completed-card-image img {
    width: 100%;
    height: 100%;

    object-fit: cover;

    transition: transform 0.5s ease;
}

.completed-project-card:hover .completed-card-image img {
    transform: scale(1.04);
}

.completed-badge {
    position: absolute;

    top: 15px;
    right: 15px;

    z-index: 2;

    display: inline-flex;

    align-items: center;

    gap: 6px;

    padding: 6px 10px;

    border-radius: 50px;

    background: rgba(236,250,242,0.94);

    color: #167554;

    font-size: 0.6rem;

    font-weight: 800;
}

.completed-card-content {
    padding: 25px;
}

.project-category {
    display: inline-flex;

    align-items: center;

    gap: 7px;

    margin-bottom: 10px;

    color: var(--teal);

    font-size: 0.66rem;

    font-weight: 800;

    letter-spacing: 0.07em;

    text-transform: uppercase;
}

.completed-card-content h3 {
    margin-bottom: 11px;

    color: var(--ocean-deep);

    font-size: 1.35rem;

    line-height: 1.28;

    font-weight: 600;
}

.completed-card-content p {
    min-height: 92px;

    color: var(--text);

    font-size: 0.8rem;

    line-height: 1.75;
}

.project-details {
    margin: 20px 0;

    padding-top: 16px;

    display: flex;

    flex-direction: column;

    gap: 9px;

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

.project-details div {
    display: flex;

    align-items: flex-start;

    gap: 8px;

    color: var(--muted);

    font-size: 0.7rem;
}

.project-details i {
    width: 15px;

    color: var(--teal);
}

.project-link {
    display: inline-flex;

    align-items: center;

    gap: 7px;

    color: var(--ocean);

    font-size: 0.72rem;

    font-weight: 800;

    transition: var(--transition);
}

.project-link:hover {
    transform: translateX(4px);

    color: var(--teal);
}


/* =========================================================
   IMPACT GALLERY
========================================================= */

.impact-gallery-section {
    padding: 110px 6%;

    background:
        linear-gradient(
            180deg,
            #edf8f7,
            #f7fbfb
        );
}

.gallery-heading {
    max-width: 740px;

    margin-bottom: 48px;
}

.gallery-heading h2 {
    margin-bottom: 12px;

    color: var(--ocean-deep);

    font-size: clamp(2.4rem, 4vw, 3.4rem);

    font-weight: 600;
}

.gallery-heading p {
    color: var(--muted);

    font-size: 0.9rem;
}

.impact-gallery {
    display: grid;

    grid-template-columns:
        1.3fr
        1fr
        1fr;

    grid-template-rows:
        250px
        250px;

    gap: 15px;
}

.gallery-item {
    position: relative;

    overflow: hidden;

    border-radius: 18px;

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

.gallery-item::after {
    content: "";

    position: absolute;

    inset: 0;

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

    pointer-events: none;
}

.gallery-item.large {
    grid-row: span 2;
}

.gallery-item.wide {
    grid-column: span 2;
}

.gallery-item img {
    width: 100%;
    height: 100%;

    object-fit: cover;

    transition: transform 0.5s ease;
}

.gallery-item:hover img {
    transform: scale(1.045);
}


/* =========================================================
   LESSONS
========================================================= */

.lessons-section {
    width: min(1180px, 88%);

    margin: 110px auto;

    display: grid;

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

    gap: 75px;

    align-items: center;
}

.lessons-image {
    position: relative;

    height: 540px;

    overflow: hidden;

    border-radius: 26px;

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

.lessons-image::after {
    content: "";

    position: absolute;

    inset: 0;

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

    pointer-events: none;
}

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

    object-fit: cover;
}

.lessons-image-badge {
    position: absolute;

    left: 22px;
    bottom: 22px;

    z-index: 2;

    display: inline-flex;

    align-items: center;

    gap: 9px;

    padding: 9px 13px;

    border-radius: 50px;

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

    color: var(--ocean-deep);

    font-size: 0.7rem;

    font-weight: 800;
}

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

.lessons-content h2 {
    margin-bottom: 18px;

    color: var(--ocean-deep);

    font-size: clamp(2.4rem, 4vw, 3.4rem);

    line-height: 1.12;

    font-weight: 600;
}

.lessons-content > p {
    color: var(--text);

    font-size: 0.9rem;

    line-height: 1.85;
}

.lesson-list {
    margin-top: 28px;

    display: flex;

    flex-direction: column;

    gap: 18px;
}

.lesson-item {
    display: flex;

    gap: 15px;

    padding: 17px 0;

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

.lesson-icon {
    width: 46px;
    height: 46px;

    flex: 0 0 46px;

    display: flex;

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

    border-radius: 13px;

    background: var(--seafoam);

    color: var(--ocean);
}

.lesson-item h3 {
    margin-bottom: 4px;

    color: var(--ocean-deep);

    font-size: 1rem;

    font-weight: 600;
}

.lesson-item p {
    color: var(--text);

    font-size: 0.78rem;

    line-height: 1.7;
}


/* =========================================================
   FINAL CTA
========================================================= */

.completed-cta {
    min-height: 500px;

    display: flex;

    align-items: center;

    padding: 90px 6%;

    text-align: center;

    background:
        linear-gradient(
            105deg,
            rgba(3,61,76,0.94),
            rgba(4,111,120,0.74),
            rgba(8,127,156,0.35)
        ),
        url("../pics_vids/outreach.jpeg")
        center / cover no-repeat;
}

.cta-content {
    width: min(820px, 100%);

    margin: auto;
}

.cta-content h2 {
    margin-bottom: 17px;

    color: var(--white);

    font-size: clamp(2.5rem, 5vw, 3.8rem);

    line-height: 1.1;

    font-weight: 600;
}

.cta-content p {
    max-width: 660px;

    margin: 0 auto 28px;

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

    font-size: 0.88rem;

    line-height: 1.8;
}

.cta-buttons {
    display: flex;

    justify-content: center;

    flex-wrap: wrap;

    gap: 10px;
}


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

.footer {
    position: relative;

    padding: 82px 0 0;

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

    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-container {
    position: relative;

    z-index: 2;

    width: min(1200px, 90%);

    margin: auto;

    display: grid;

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

    gap: 50px;
}

.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: 20px;

    color: var(--white);

    font-size: 1rem;

    font-weight: 600;
}

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

    display: block;

    width: 28px;
    height: 2px;

    margin-top: 8px;

    border-radius: 10px;

    background: var(--mint);
}

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

    font-size: 0.78rem;

    line-height: 1.82;
}

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

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

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

    font-size: 0.78rem;
}

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

    transition: var(--transition);
}

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

    padding-left: 4px;
}

.focus-list li {
    display: flex;

    align-items: center;

    gap: 8px;
}

.focus-list i {
    width: 15px;

    color: var(--mint);

    font-size: 0.7rem;
}

.contact-item {
    display: flex;

    gap: 11px;

    margin-bottom: 16px;
}

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

    flex: 0 0 33px;

    display: flex;

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

    border-radius: 9px;

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

    color: var(--mint);

    font-size: 0.75rem;
}

.contact-item span {
    display: block;

    margin-bottom: 2px;

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

    font-size: 0.62rem;

    font-weight: 800;

    letter-spacing: 0.08em;

    text-transform: uppercase;
}

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

    font-size: 0.76rem;
}

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

    height: 1px;

    margin: 60px auto 0;

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

.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.46);

    font-size: 0.7rem;
}

.social-links {
    display: flex;

    gap: 9px;
}

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

    display: flex;

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

    border-radius: 50%;

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

    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: 1080px) {

    .legacy-section,
    .lessons-section {
        grid-template-columns: 1fr;
    }

    .success-section {
        grid-template-columns: 1fr;
    }

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

    .success-image {
        min-height: 440px;
    }

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


@media (max-width: 760px) {

    .completed-hero,
    .completed-hero-overlay {
        min-height: 600px;

        background-attachment: scroll;
    }

    .completed-hero-content h1 {
        font-size: 2.7rem;
    }

    .legacy-section,
    .lessons-section {
        width: 88%;

        margin: 80px auto;
    }

    .legacy-stat-grid,
    .completed-project-grid {
        grid-template-columns: 1fr;
    }

    .success-section {
        width: 92%;

        margin-bottom: 80px;
    }

    .success-content {
        padding: 42px 28px;
    }

    .success-results {
        grid-template-columns: 1fr;
    }

    .completed-project-grid {
        width: 92%;
    }

    .impact-gallery-section {
        padding: 80px 6%;
    }

    .impact-gallery {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: 230px 230px 230px;
    }

    .gallery-item.large {
        grid-column: span 2;
        grid-row: span 1;
    }

    .gallery-item.wide {
        grid-column: span 2;
    }

    .lessons-image {
        height: 420px;
    }

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

    .footer-bottom {
        flex-direction: column;

        text-align: center;
    }
}


@media (max-width: 520px) {

    .completed-hero-content h1 {
        font-size: 2.3rem;
    }

    .completed-hero-actions {
        flex-direction: column;

        align-items: stretch;
    }

    .primary-btn,
    .secondary-btn {
        justify-content: center;
    }

    .success-image {
        min-height: 320px;
    }

    .completed-card-image {
        height: 220px;
    }

    .impact-gallery {
        display: flex;

        flex-direction: column;
    }

    .gallery-item,
    .gallery-item.large,
    .gallery-item.wide {
        height: 240px;
    }

    .lessons-image {
        height: 320px;
    }

    .cta-buttons {
        flex-direction: column;

        align-items: center;
    }

    .cta-primary,
    .cta-outline {
        width: 100%;

        max-width: 280px;

        justify-content: center;
    }
}
