/* =========================================================
   KAUAI SEA FARMS
   Public Site
   ========================================================= */


/* =========================================================
   KSF COLOR PALETTE
   ========================================================= */

:root {
    --ksf-deep-ocean: #164f68;
    --ksf-ocean: #287f9b;
    --ksf-lagoon: #43aeb0;
    --ksf-seafoam: #83bfa5;
    --ksf-island: #527b59;
    --ksf-sand: #d7c59d;

    --ksf-ink: #24343b;
    --ksf-muted: #657277;
    --ksf-pale-water: #edf6f7;
    --ksf-pale-sand: #f7f4ed;
    --ksf-border: #dce6e7;
}




* {
    box-sizing: border-box;
}

html {
    font-size: 16px;
}

body {
    margin: 0;
    background: #ffffff;
    color: var(--ksf-ink);
    font-family: Arial, Helvetica, sans-serif;
    line-height: 1.6;
}

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

a {
    color: var(--ksf-deep-ocean);
}


/* =========================================================
   HEADER / BRAND
   ========================================================= */

.site-header {
    max-width: 1200px;
    margin: 0 auto;
    padding: 24px 28px 0;
}

.site-brand {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0 0 28px;
}

.site-brand img {
    width: min(390px, 80vw);
    height: auto;
}


/* =========================================================
   PRIMARY NAVIGATION
   ========================================================= */

.main-nav {
    position: relative;
    border-bottom: 1px solid var(--ksf-border);
}

.nav-menu {
    display: flex;
    justify-content: center;
    align-items: stretch;
    gap: 0;
    margin: 0;
    padding: 0;
    list-style: none;
}

.nav-menu > li {
    position: relative;
    margin: 0;
    padding: 0;
}

.nav-menu > li > a {
    display: block;
    padding: 15px 28px 17px;
    color: var(--ksf-deep-ocean);
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    font-size: 0.88rem;
    white-space: nowrap;
    border-bottom: 2px solid transparent;
}

.nav-menu > li > a:hover,
.nav-menu > li > a:focus {
    color: var(--ksf-ocean);
    border-bottom-color: var(--ksf-lagoon);
}


/* =========================================================
   DROPDOWN NAVIGATION
   ========================================================= */

.sub-menu {
    display: none;
    position: absolute;
    z-index: 100;
    top: 100%;
    left: 0;
    min-width: 210px;
    margin: 0;
    padding: 8px 0;
    list-style: none;
    background: #ffffff;
    border: 1px solid var(--ksf-border);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

.has-children:hover > .sub-menu,
.has-children:focus-within > .sub-menu {
    display: block;
}

.sub-menu li {
    margin: 0;
}

.sub-menu a {
    display: block;
    padding: 9px 18px;
    color: var(--ksf-deep-ocean);
    text-decoration: none;
    font-size: 0.95rem;
    white-space: nowrap;
}

.sub-menu a:hover,
.sub-menu a:focus {
    background: var(--ksf-pale-water);
    color: var(--ksf-ocean);
}


/* =========================================================
   MOBILE NAV BUTTON
   ========================================================= */

.nav-toggle {
    display: none;
    margin: 0 auto 15px;
    padding: 7px 11px;
    background: #ffffff;
    color: #111111;
    border: 1px solid #999999;
    border-radius: 2px;
    font-size: 1.25rem;
    cursor: pointer;
}


/* =========================================================
   BREADCRUMBS
   ========================================================= */

.breadcrumb {
    max-width: 1140px;
    margin: 18px auto 0;
    padding: 0 28px;
    color: var(--ksf-muted);
    font-size: 0.85rem;
}

.breadcrumb a {
    color: var(--ksf-ocean);
    text-decoration: none;
}

.breadcrumb a:hover {
    text-decoration: underline;
}


/* =========================================================
   MAIN CONTENT
   ========================================================= */

.site-main {
    max-width: 1200px;
    min-height: 450px;
    margin: 0 auto;
    padding: 48px 28px 70px;
}

.content {
    width: 100%;
}

.page-content {
    width: 100%;
}

.page-content > h1:first-child {
    margin-top: 0;
}

h1,
h2,
h3 {
    line-height: 1.2;
    font-weight: 400;
}



h1 {
    margin: 0 0 24px;
    color: var(--ksf-deep-ocean);
    font-size: clamp(1.8rem, 3vw, 2.5rem);
    letter-spacing: 0.02em;
}


h2 {
    margin: 2rem 0 1rem;
    color: var(--ksf-ocean);
    font-size: 1.8rem;
}

h3 {
    margin: 0 0 10px;
    color: var(--ksf-island);
    font-size: 1.25rem;
}

p {
    margin: 0 0 1.3em;
}


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

.hero {
    position: relative;
    min-height: 440px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--ksf-pale-water);
    overflow: hidden;
}

.hero-overlay {
    position: relative;
    z-index: 2;
    padding: 50px;
    text-align: center;
}

.hero-overlay h1 {
    margin: 0;
    font-size: clamp(2.4rem, 6vw, 4.5rem);
    font-weight: 300;
}


/* =========================================================
   SECTION LANDING PAGES
   ========================================================= */

.section-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
    margin-top: 38px;
}

.section-card {
    display: block;
    color: var(--ksf-ink);
    text-decoration: none;
    border: 1px solid var(--ksf-border);
    background: #ffffff;
    transition:
        transform 0.15s ease,
        box-shadow 0.15s ease;
}

.section-card:hover,
.section-card:focus {
    transform: translateY(-2px);
    border-color: var(--ksf-lagoon);
    box-shadow: 0 8px 22px rgba(22, 79, 104, 0.12);
}

.card-inner {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.card-text {
    padding: 24px;
}

.card-text h3 {
    color: var(--ksf-deep-ocean);
}

.card-text p {
    margin-bottom: 0;
    color: var(--ksf-muted);
}

.card-image {
    margin-top: auto;
}

.card-image img {
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
}


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

#img-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    inset: 0;
    padding: 50px;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.88);
}

#img-modal.active {
    display: flex;
}

#modal-img {
    max-width: 95%;
    max-height: 90vh;
    object-fit: contain;
}

#img-modal .close {
    position: absolute;
    top: 16px;
    right: 26px;
    color: #ffffff;
    font-size: 2.5rem;
    line-height: 1;
    cursor: pointer;
}


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

.site-footer {
    border-top: 1px solid var(--ksf-border);
    background: var(--ksf-pale-water);
}

.footer-inner {
    max-width: 1140px;
    margin: 0 auto;
    padding: 28px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 30px;
    color: #555555;
    font-size: 0.9rem;
}




/* =========================================================
   HOME
   ========================================================= */

.home-hero {
    display: grid;
    grid-template-columns: 3fr 2fr;
    min-height: 450px;
    background: var(--ksf-pale-water);
}

.home-hero-image {
    min-height: 450px;
}

.home-hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.home-hero-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 50px;
    text-align: center;
}


.home-hero-text h1 {
    margin: 0 0 18px;
    font-size: clamp(2.2rem, 4vw, 3.4rem);
    font-weight: 300;
    line-height: 1.15;
    white-space: nowrap;
}

.home-hero-text p {
    margin: 0;
    font-size: 1.15rem;
    letter-spacing: 0.04em;
}




/* People: Team, Advisors, etc. */

.people-grid {
    display: flex;
    flex-direction: column;
    gap: 48px;
    margin-top: 32px;
}

.person-card {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 36px;
    align-items: start;
}

.person-image {
    width: 260px;
    height: 260px;
    overflow: hidden;
    border-radius: 4px;
}

.person-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

.person-content h2 {
    margin-top: 0;
    margin-bottom: 14px;
}

.person-content p {
    margin: 0 0 14px;
}



/* Product detail pages */

.product-detail {
    display: grid;
    grid-template-columns: minmax(300px, 520px) minmax(0, 1fr);
    gap: 48px;
    align-items: start;
    margin-top: 32px;
}

.product-detail-image img {
    width: 100%;
    height: auto;
    max-height: 480px;
    object-fit: cover;
    display: block;
    border-radius: 4px;
}

.product-detail-content {
    min-width: 0;
}

.product-detail-content h2 {
    margin-top: 0;
}



.card-image.card-image-square {
    width: 220px;
    height: 220px;
    aspect-ratio: 1 / 1;
    margin: 20px auto 28px;
    overflow: hidden;
    border-radius: 50%;
}

.card-image.card-image-square img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.social-icon {
    display: block;
    width: 160px;
    height: 160px;
    object-fit: cover;
    border-radius: 50%;
    margin: 28px 0;
}

.article-meta {
    margin-bottom: 28px;
    color: var(--ksf-muted);
}

.article-image {
    margin: 28px 0 36px;
    max-width: 760px;
}

.article-image img {
    display: block;
    width: 100%;
    height: auto;
    max-height: 520px;
    object-fit: cover;
    border-radius: 4px;
}

.article-image figcaption {
    margin-top: 8px;
    font-size: 0.9rem;
    color: var(--ksf-muted);
}

/* =========================================================
   BUTTONS
   ========================================================= */

.button-link {
    display: inline-block;
    padding: 12px 22px;
    background: var(--ksf-deep-ocean);
    color: #ffffff;
    text-decoration: none;
    border-radius: 3px;
    font-weight: 600;
}

.button-link:hover,
.button-link:focus {
    background: var(--ksf-ocean);
    color: #ffffff;
}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 760px) {
    .site-header {
        padding: 18px 18px 0;
    }

    .site-brand {
        padding-bottom: 18px;
    }

    .site-brand img {
        width: min(300px, 82vw);
    }

    .nav-toggle {
        display: block;
        margin: 0 0 14px auto;
        padding: 6px 12px;
        background: #ffffff;
        color: var(--ksf-deep-ocean);
        border: 1px solid var(--ksf-border);
        border-radius: 3px;
    }

    .main-nav {
        border-bottom: 0;
    }

    .nav-menu {
        display: none;
        border-top: 1px solid var(--ksf-border);
    }

    .nav-menu.open {
        display: block;
    }

    .nav-menu > li {
        border-bottom: 1px solid var(--ksf-border);
    }

    .nav-menu > li > a {
        padding: 13px 8px;
        font-size: 0.9rem;
    }

    /* Mobile navigation uses the section landing pages. */
    .sub-menu {
        display: none !important;
    }

    .site-main {
        padding: 32px 20px 50px;
    }

    .breadcrumb {
        padding: 0 20px;
    }

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

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

    .home-hero-image {
        min-height: 300px;
    }

    .home-hero-text {
        padding: 42px 24px;
    }

    .product-detail {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .product-detail-image {
        max-width: 520px;
    }

    .footer-inner {
        padding: 24px 20px;
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 700px) {
    .person-card {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .person-image {
        width: 100%;
        max-width: 320px;
        height: 320px;
    }
}
