:root {
    --navy: #0b2d3a;
    --navy-dark: #061e28;
    --blue-gray: #dfe9eb;
    --paper: #edf3f2;
    --line: #b9c8ca;
    --green: #617a58;
    --text: #142d35;
    --muted: #5e7177;
    --white: #ffffff;
    --shadow: 0 10px 30px rgba(9, 38, 48, 0.13);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--text);
    background:
        linear-gradient(rgba(245, 249, 248, 0.94), rgba(245, 249, 248, 0.94)),
        repeating-linear-gradient(
            0deg,
            transparent,
            transparent 5px,
            rgba(25, 67, 76, 0.04) 6px
        );
    font-family: Arial, Helvetica, sans-serif;
}

a {
    color: inherit;
    text-decoration: none;
}

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

.screen-reader-text {
    position: absolute;
    left: -9999px;
}

.site-header {
    background: rgba(238, 245, 244, 0.98);
    border-bottom: 1px solid var(--line);
}

.header-top {
    width: min(1450px, calc(100% - 48px));
    min-height: 150px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}

.brand-link {
    display: flex;
    flex-direction: column;
    color: var(--navy);
    line-height: 1;
}

.brand-main {
    font-family: Georgia, serif;
    font-size: clamp(2rem, 4vw, 3.7rem);
    font-weight: 800;
    letter-spacing: 0.03em;
}

.brand-sub {
    margin-top: 8px;
    font-family: Georgia, serif;
    font-size: 1.35rem;
    font-weight: 700;
    letter-spacing: 0.22em;
    text-align: center;
}

.brand-tagline {
    margin-top: 13px;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-align: center;
}

.header-tools {
    width: min(520px, 48%);
}

.account-links {
    margin-bottom: 18px;
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    font-size: 0.83rem;
    font-weight: 700;
}

.shop-search {
    height: 54px;
    display: flex;
    overflow: hidden;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 4px;
    box-shadow: inset 0 1px 4px rgba(0, 0, 0, 0.05);
}

.shop-search input {
    min-width: 0;
    flex: 1;
    padding: 0 18px;
    border: 0;
    background: transparent;
    font-size: 1rem;
    outline: 0;
}

.shop-search button {
    width: 60px;
    border: 0;
    border-left: 1px solid var(--line);
    background: transparent;
    color: var(--navy);
    cursor: pointer;
    font-size: 1.8rem;
}

.main-navigation {
    background: rgba(231, 239, 239, 0.98);
    border-top: 1px solid var(--line);
}

.main-navigation ul {
    width: min(1450px, calc(100% - 36px));
    min-height: 58px;
    margin: 0 auto;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    list-style: none;
}

.main-navigation a {
    padding: 20px 10px;
    display: block;
    color: var(--navy);
    font-size: 0.81rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

.main-navigation a:hover {
    color: var(--green);
}



.home-hero {
    min-height: 600px;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    background-image:
        linear-gradient(
            90deg,
            rgba(5, 35, 44, 0.82) 0%,
            rgba(5, 35, 44, 0.62) 30%,
            rgba(5, 35, 44, 0.22) 58%,
            rgba(5, 35, 44, 0) 100%
        ),
        url('../images/hero/md_home_hero.png');
    background-position: center center;
    background-size: cover;
    background-repeat: no-repeat;
}




.hero-content {
    width: min(1450px, calc(100% - 80px));
    margin: 0 auto;
    position: relative;
    z-index: 2;
    color: var(--white);
}

.hero-content > * {
    max-width: 520px;
}

.hero-eyebrow {
    margin-bottom: 12px;
    color: #bfd2ce;
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.hero-content h1 {
    margin: 0;
    font-family: Impact, Haettenschweiler, 'Arial Narrow Bold', sans-serif;
    font-size: clamp(3rem, 6vw, 6rem);
    font-weight: 500;
    line-height: 0.94;
    letter-spacing: 0.025em;
    text-transform: uppercase;
}

.hero-content p {
    margin: 24px 0;
    font-size: 1.18rem;
    font-weight: 700;
    line-height: 1.55;
}




.button {
    min-height: 48px;
    padding: 0 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    font-size: 0.86rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.button-primary {
    background: var(--green);
    color: var(--white);
}

.button-dark {
    background: var(--navy);
    color: var(--white);
    white-space: nowrap;
}

.benefit-strip {
    min-height: 105px;
    padding: 20px max(24px, calc((100% - 1400px) / 2));
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    align-items: center;
    background: rgba(232, 240, 240, 0.98);
    border-bottom: 1px solid var(--line);
}

.benefit {
    min-height: 60px;
    padding: 8px 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    border-right: 1px solid var(--line);
    color: var(--navy);
    font-size: 0.76rem;
    font-weight: 800;
    line-height: 1.35;
    text-transform: uppercase;
}

.benefit:last-child {
    border-right: 0;
}

.benefit-icon {
    font-size: 1.7rem;
}

.category-grid {
    width: min(1450px, calc(100% - 48px));
    margin: 32px auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.category-card {
    min-width: 0;
    overflow: hidden;
    background: rgba(238, 244, 243, 0.95);
    border: 1px solid var(--line);
    border-radius: 5px;
    box-shadow: var(--shadow);
    transition: transform 180ms ease, box-shadow 180ms ease;
}

.category-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 15px 34px rgba(9, 38, 48, 0.19);
}

.category-card > a {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.category-image {
    min-height: 230px;
    background-position: center;
    background-size: cover;
}

.category-image-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background:
        radial-gradient(circle at 50% 35%, #f7fafa 0, #dce7e6 58%, #c8d5d4 100%);
    font-size: 5rem;
}

.category-copy {
    padding: 20px;
}

.category-copy h2 {
    margin: 0 0 8px;
    color: var(--navy);
    font-family: Impact, Haettenschweiler, 'Arial Narrow Bold', sans-serif;
    font-size: 1.55rem;
    font-weight: 500;
    line-height: 1.05;
    text-transform: uppercase;
}

.category-copy p {
    margin: 0 0 10px;
    color: var(--muted);
    font-size: 0.83rem;
    font-weight: 700;
}

.category-link {
    color: var(--navy);
    font-size: 0.82rem;
    font-weight: 800;
}

.onlyfish {
    width: min(1450px, calc(100% - 48px));
    margin: 30px auto 50px;
    padding: 27px 30px;
    display: grid;
    grid-template-columns: 1.2fr 2.4fr auto;
    align-items: center;
    gap: 32px;
    background: rgba(237, 243, 242, 0.97);
    border: 2px solid var(--line);
    border-radius: 6px;
    box-shadow: var(--shadow);
}

.onlyfish-heading {
    display: flex;
    align-items: center;
    gap: 16px;
}

.onlyfish-fish {
    font-size: 2.3rem;
}

.onlyfish h2 {
    margin: 0;
    color: var(--navy);
    font-family: Georgia, serif;
    font-size: 2rem;
    text-transform: uppercase;
}

.onlyfish p {
    margin: 7px 0 0;
    color: var(--muted);
}

.onlyfish-benefits {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
}

.onlyfish-benefits div {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.onlyfish-benefits strong {
    color: var(--navy);
    font-size: 0.83rem;
}

.onlyfish-benefits span {
    color: var(--muted);
    font-size: 0.75rem;
    line-height: 1.35;
}

.product-section {
    width: min(1450px, calc(100% - 48px));
    margin: 55px auto;
}

.product-section-muted {
    padding: 34px;
    background: rgba(226, 235, 234, 0.67);
    border: 1px solid var(--line);
    border-radius: 6px;
}

.section-heading {
    margin-bottom: 24px;
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 30px;
}

.section-heading h2 {
    margin: 0;
    color: var(--navy);
    font-family: Georgia, serif;
    font-size: clamp(2rem, 4vw, 3rem);
}

.section-heading > a {
    color: var(--navy);
    font-weight: 800;
}

.section-kicker {
    margin: 0 0 6px;
    color: var(--green);
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

.woocommerce ul.products {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 22px;
}

.woocommerce ul.products::before,
.woocommerce ul.products::after {
    display: none;
}

.woocommerce ul.products li.product {
    width: auto !important;
    margin: 0 !important;
    padding: 14px;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 5px;
    box-shadow: var(--shadow);
}

.woocommerce ul.products li.product img {
    aspect-ratio: 1 / 1;
    object-fit: contain;
}

.woocommerce ul.products li.product .woocommerce-loop-product__title {
    color: var(--navy);
    font-size: 1rem;
}

.woocommerce ul.products li.product .price {
    color: var(--green);
    font-weight: 800;
}

.woocommerce ul.products li.product .button {
    width: 100%;
    background: var(--navy);
    color: var(--white);
}

.content-wrapper {
    width: min(1200px, calc(100% - 48px));
    min-height: 500px;
    margin: 50px auto;
}

.site-footer {
    margin-top: 60px;
    padding: 50px max(30px, calc((100% - 1400px) / 2)) 20px;
    background: var(--navy-dark);
    color: #dce8e6;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 50px;
}

.footer-grid h2,
.footer-grid h3 {
    color: var(--white);
}

.footer-grid a {
    margin: 8px 0;
    display: block;
}

.footer-bottom {
    margin-top: 35px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.18);
    font-size: 0.8rem;
}

@media (max-width: 1050px) {
    .category-grid {
        grid-template-columns: repeat(2, 1fr);
    }

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

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

    .woocommerce ul.products {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    
@media (max-width: 760px) {
    .header-top {
        width: calc(100% - 30px);
        padding: 25px 0;
        flex-direction: column;
        text-align: center;
    }

    .header-tools {
        width: 100%;
    }

    .account-links {
        justify-content: center;
    }

    .main-navigation {
        overflow-x: auto;
    }

    .main-navigation ul {
        width: max-content;
        padding: 0 12px;
        justify-content: flex-start;
    }

    

.home-hero {
    min-height: 600px;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    background:
        linear-gradient(
            90deg,
            rgba(5,35,44,.80) 0%,
            rgba(5,35,44,.60) 30%,
            rgba(5,35,44,.25) 55%,
            rgba(5,35,44,0) 100%
        ),
        url('../images/hero/md_home_hero.png') center center / cover no-repeat;
}



/* =========================================================
   Homepage hero sizing and navigation wave refinement
   ========================================================= */

.main-navigation {
    position: relative;
    z-index: 10;
    overflow: visible;
}

/* Subtle irregular/wave edge below the navigation */
.main-navigation::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -11px;
    height: 13px;
    z-index: 5;
    pointer-events: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='320' height='14' viewBox='0 0 320 14'%3E%3Cpath fill='%23e7efef' d='M0 0h320v7c-26 2-43 4-70 2-28-2-47-1-74 2-28 3-48 2-74-1C75 7 50 9 25 11 15 12 7 11 0 10V0z'/%3E%3C/svg%3E");
    background-repeat: repeat-x;
    background-position: center top;
    background-size: 320px 14px;
}

.home-hero {
    min-height: 0;
    height: 535px;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    box-sizing: border-box;
    background-position: center center;
}

/* Keep the text area closer to the render */
.hero-content {
    width: min(1450px, calc(100% - 80px));
    margin: 0 auto;
    padding-top: 45px;
    padding-bottom: 55px;
    position: relative;
    z-index: 2;
    box-sizing: border-box;
}

.hero-content > * {
    max-width: 460px;
}

.hero-eyebrow {
    margin: 0 0 16px;
    font-size: 0.78rem;
    line-height: 1.2;
    letter-spacing: 0.18em;
}

.hero-content h1 {
    margin: 0;
    max-width: 450px;
    font-size: clamp(3.25rem, 4.2vw, 4.8rem);
    line-height: 0.96;
    letter-spacing: 0.015em;
}

.hero-content p:not(.hero-eyebrow) {
    max-width: 440px;
    margin: 20px 0 18px;
    font-size: 1rem;
    line-height: 1.45;
}

.hero-content .button {
    margin-top: 5px;
}

/* Keep visual breathing room above the icon strip */
.benefit-strip {
    position: relative;
    z-index: 3;
    min-height: 112px;
    padding-top: 26px;
    padding-bottom: 22px;
}

/* Tablet */
@media (max-width: 1050px) {
    .home-hero {
        height: 520px;
    }

    .hero-content h1 {
        font-size: clamp(3rem, 6vw, 4.2rem);
    }
}

/* Mobile */
@media (max-width: 760px) {
    .main-navigation::after {
        bottom: -8px;
        height: 10px;
        background-size: 240px 11px;
    }

    .home-hero {
        height: auto;
        min-height: 500px;
    }

    .hero-content {
        width: calc(100% - 44px);
        padding-top: 55px;
        padding-bottom: 55px;
    }

    .hero-content h1 {
        font-size: clamp(2.8rem, 14vw, 4rem);
    }

    .benefit-strip {
        padding-top: 25px;
    }
}

/* =========================================================
   FINAL HOMEPAGE HERO OVERRIDES
   ========================================================= */

body.home .main-navigation {
    position: relative !important;
    z-index: 20 !important;
    overflow: visible !important;
    border-bottom: 0 !important;
}

/* Uneven painted/wave edge below navigation */
body.home .main-navigation::after {
    content: "" !important;
    display: block !important;
    position: absolute !important;
    left: 0 !important;
    right: 0 !important;
    bottom: -13px !important;
    width: 100% !important;
    height: 15px !important;
    z-index: 30 !important;
    pointer-events: none !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='500' height='18' viewBox='0 0 500 18'%3E%3Cpath fill='%23e7efef' d='M0 0h500v9c-38 1-62 6-101 4-43-3-73-5-112-1-42 5-72 4-111 0C136 8 102 9 65 14 39 17 18 14 0 13V0z'/%3E%3C/svg%3E") !important;
    background-repeat: repeat-x !important;
    background-position: center top !important;
    background-size: 500px 18px !important;
}

/* Shorter hero, matching the original design proportions */
body.home section.home-hero {
    min-height: 0 !important;
    height: 500px !important;
    max-height: 500px !important;
    padding: 0 !important;
    margin: 0 !important;
    display: flex !important;
    align-items: center !important;
    overflow: hidden !important;
    background-image:
        linear-gradient(
            90deg,
            rgba(4, 37, 47, 0.92) 0%,
            rgba(4, 37, 47, 0.78) 26%,
            rgba(4, 37, 47, 0.34) 42%,
            rgba(4, 37, 47, 0.08) 62%,
            rgba(4, 37, 47, 0) 100%
        ),
        url('../images/hero/md_home_hero.png') !important;
    background-position: center center !important;
    background-size: cover !important;
    background-repeat: no-repeat !important;
}

/* Text placement */
body.home section.home-hero .hero-content {
    width: min(1450px, calc(100% - 100px)) !important;
    height: 100% !important;
    margin: 0 auto !important;
    padding: 54px 0 44px !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    align-items: flex-start !important;
    box-sizing: border-box !important;
}

/* Small label above headline */
body.home section.home-hero .hero-eyebrow {
    max-width: 430px !important;
    margin: 0 0 15px !important;
    font-size: 13px !important;
    line-height: 1.2 !important;
    letter-spacing: 3px !important;
}

/* Headline reduced to match the render */
body.home section.home-hero .hero-content h1 {
    width: 430px !important;
    max-width: 430px !important;
    margin: 0 !important;
    font-size: 58px !important;
    line-height: 0.99 !important;
    letter-spacing: 1px !important;
}

/* Supporting description */
body.home section.home-hero .hero-content p:not(.hero-eyebrow) {
    width: 410px !important;
    max-width: 410px !important;
    margin: 20px 0 20px !important;
    font-size: 16px !important;
    line-height: 1.45 !important;
}

/* Button sizing and lower spacing */
body.home section.home-hero .hero-content .button {
    min-height: 45px !important;
    margin: 0 0 18px !important;
    padding: 0 23px !important;
}

/* Give the icon bar its own breathing room */
body.home section.benefit-strip {
    min-height: 116px !important;
    margin: 0 !important;
    padding-top: 31px !important;
    padding-bottom: 25px !important;
    position: relative !important;
    z-index: 5 !important;
}

/* Tablet */
@media (max-width: 1050px) {
    body.home section.home-hero {
        height: 490px !important;
        max-height: 490px !important;
    }

    body.home section.home-hero .hero-content h1 {
        width: 390px !important;
        max-width: 390px !important;
        font-size: 52px !important;
    }
}

/* Mobile */
@media (max-width: 760px) {
    body.home section.home-hero {
        height: auto !important;
        max-height: none !important;
        min-height: 480px !important;
    }

    body.home section.home-hero .hero-content {
        width: calc(100% - 44px) !important;
        padding: 55px 0 45px !important;
    }

    body.home section.home-hero .hero-content h1 {
        width: 100% !important;
        max-width: 370px !important;
        font-size: 48px !important;
    }

    body.home section.home-hero .hero-content p:not(.hero-eyebrow) {
        width: 100% !important;
        max-width: 370px !important;
    }
}

/* =========================================================
   MATCH ORIGINAL HOMEPAGE RENDER
   ========================================================= */

/* Navigation with uneven lower edge */
body.home .main-navigation {
    position: relative !important;
    overflow: visible !important;
    background: #e7efef !important;
}

body.home .main-navigation::after {
    content: "" !important;
    position: absolute !important;
    left: 0 !important;
    right: 0 !important;
    bottom: -10px !important;
    height: 12px !important;
    display: block !important;
    z-index: 50 !important;
    background: #e7efef !important;
    clip-path: polygon(
        0 0,
        100% 0,
        100% 45%,
        93% 70%,
        86% 53%,
        77% 78%,
        68% 55%,
        59% 73%,
        49% 50%,
        39% 76%,
        29% 52%,
        19% 72%,
        9% 50%,
        0 68%
    ) !important;
}

/* Shorter hero like the render */
body.home section.home-hero {
    height: 465px !important;
    min-height: 465px !important;
    max-height: 465px !important;
    padding: 0 !important;
    margin: 0 !important;
    align-items: center !important;
    background-image:
        linear-gradient(
            90deg,
            rgba(4, 37, 47, 0.94) 0%,
            rgba(4, 37, 47, 0.86) 24%,
            rgba(4, 37, 47, 0.46) 38%,
            rgba(4, 37, 47, 0.08) 57%,
            rgba(4, 37, 47, 0) 100%
        ),
        url('../images/hero/md_home_hero.png') !important;
    background-size: cover !important;
    background-position: center center !important;
    background-repeat: no-repeat !important;
}

/* Position content similarly to the render */
body.home section.home-hero .hero-content {
    width: min(1450px, calc(100% - 100px)) !important;
    height: 100% !important;
    margin: 0 auto !important;
    padding: 58px 0 42px !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    align-items: flex-start !important;
    box-sizing: border-box !important;
}

/* Remove the extra small heading from the render area */
body.home section.home-hero .hero-eyebrow {
    display: none !important;
}

/* Much smaller headline */
body.home section.home-hero .hero-content h1 {
    width: 390px !important;
    max-width: 390px !important;
    margin: 0 !important;
    padding: 0 !important;
    font-size: 48px !important;
    line-height: 0.98 !important;
    letter-spacing: 0.5px !important;
}

/* Smaller supporting copy */
body.home section.home-hero .hero-content p:not(.hero-eyebrow) {
    width: 370px !important;
    max-width: 370px !important;
    margin: 22px 0 20px !important;
    font-size: 15px !important;
    line-height: 1.45 !important;
}

/* Button */
body.home section.home-hero .hero-content .button {
    min-height: 43px !important;
    margin: 0 !important;
    padding: 0 22px !important;
    font-size: 12px !important;
}

/* Space between button area and icons */
body.home section.benefit-strip {
    min-height: 105px !important;
    padding-top: 28px !important;
    padding-bottom: 24px !important;
    margin: 0 !important;
}

/* Keep icons vertically centered */
body.home section.benefit-strip .benefit {
    min-height: 54px !important;
}

/* Tablet */
@media (max-width: 1050px) {
    body.home section.home-hero {
        height: 450px !important;
        min-height: 450px !important;
        max-height: 450px !important;
    }

    body.home section.home-hero .hero-content h1 {
        font-size: 44px !important;
    }
}

/* Mobile */
@media (max-width: 760px) {
    body.home section.home-hero {
        height: auto !important;
        min-height: 470px !important;
        max-height: none !important;
    }

    body.home section.home-hero .hero-content {
        width: calc(100% - 44px) !important;
        padding: 55px 0 45px !important;
    }

    body.home section.home-hero .hero-content h1 {
        width: 100% !important;
        max-width: 340px !important;
        font-size: 43px !important;
    }

    body.home section.home-hero .hero-content p:not(.hero-eyebrow) {
        width: 100% !important;
        max-width: 340px !important;
    }
}
