/*
Theme Name: Salmon Etc.
Theme URI: https://salmonetc.com
Description: A premium, rustic-artisan WooCommerce child theme for Salmon Etc. — boutique Wild Alaskan Salmon smokery in Ketchikan, AK (est. 1978). Built on Storefront. Fully self-contained, no build step required.
Author: Salmon Etc.
Author URI: https://salmonetc.com
Template: storefront
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: salmon-etc
*/

/* ==========================================================================
   Google Fonts — loaded via @import (no build step)
   ========================================================================== */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,600;0,700;0,800;0,900;1,500&family=Source+Sans+3:ital,wght@0,300;0,400;0,600;0,700;1,400&display=swap');

/* ==========================================================================
   Brand Design Tokens
   ========================================================================== */
:root {
    --navy:        #1B2A47;
    --navy-dark:   #131f36;
    --forest:      #2C4A3E;
    --forest-dark: #223a30;
    --cedar:       #A05A32;
    --cedar-dark:  #834526;
    --cream:       #F9F6F0;
    --cream-dark:  #efe9dd;
    --gold:        #C8960C;
    --gold-light:  #e0ac1f;
    --ink:         #26221c;
    --muted:       #6b6459;
    --white:       #ffffff;

    --font-head: 'Playfair Display', Georgia, 'Times New Roman', serif;
    --font-body: 'Source Sans 3', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;

    --shadow-sm: 0 2px 8px rgba(27, 42, 71, 0.08);
    --shadow-md: 0 8px 26px rgba(27, 42, 71, 0.14);
    --shadow-lg: 0 18px 50px rgba(27, 42, 71, 0.22);
    --radius: 10px;
    --maxw: 1220px;
}

/* ==========================================================================
   Base / Reset (scoped so we don't fight Storefront too hard)
   ========================================================================== */
body.salmon-etc-home,
.salmon-etc {
    font-family: var(--font-body);
    color: var(--ink);
    background: var(--cream);
    margin: 0;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

.salmon-etc h1, .salmon-etc h2, .salmon-etc h3, .salmon-etc h4 {
    font-family: var(--font-head);
    color: var(--navy);
    line-height: 1.15;
    margin: 0 0 0.5em;
    font-weight: 700;
}

.salmon-etc a { color: var(--cedar); text-decoration: none; transition: color .2s ease; }
.salmon-etc a:hover { color: var(--cedar-dark); }
.salmon-etc img { max-width: 100%; height: auto; display: block; }

.se-container {
    max-width: var(--maxw);
    margin: 0 auto;
    padding: 0 24px;
    width: 100%;
}

.se-section { padding: 88px 0; }
.se-eyebrow {
    font-family: var(--font-body);
    text-transform: uppercase;
    letter-spacing: 0.22em;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--cedar);
    margin: 0 0 12px;
    display: inline-block;
}
.se-section-title {
    font-size: clamp(1.9rem, 3.6vw, 2.9rem);
    margin: 0 0 18px;
    color: var(--navy);
}
.se-section-head { text-align: center; max-width: 720px; margin: 0 auto 52px; }
.se-section-head p { color: var(--muted); font-size: 1.1rem; margin: 0; }

/* ==========================================================================
   Buttons
   ========================================================================== */
.se-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 1rem;
    letter-spacing: 0.02em;
    padding: 15px 32px;
    border-radius: 50px;
    border: 2px solid transparent;
    cursor: pointer;
    transition: transform .18s ease, background .2s ease, box-shadow .2s ease, color .2s ease;
    text-decoration: none;
    line-height: 1;
}
.se-btn-primary { background: var(--cedar); color: var(--white); box-shadow: var(--shadow-md); }
.se-btn-primary:hover { background: var(--cedar-dark); color: var(--white); transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.se-btn-gold { background: var(--gold); color: var(--navy); box-shadow: var(--shadow-md); }
.se-btn-gold:hover { background: var(--gold-light); color: var(--navy); transform: translateY(-2px); }
.se-btn-outline { background: transparent; color: var(--white); border-color: rgba(255,255,255,.75); }
.se-btn-outline:hover { background: var(--white); color: var(--navy); }
.se-btn-lg { font-size: 1.12rem; padding: 18px 40px; }

/* ==========================================================================
   Announcement Bar
   ========================================================================== */
.se-announcement {
    background: var(--forest);
    color: #f4efe4;
    text-align: center;
    font-size: 0.92rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    padding: 9px 16px;
    position: relative;
    z-index: 1001;
}
.se-announcement a { color: var(--gold-light); text-decoration: none; font-weight: 700; }
.se-announcement a:hover { color: var(--white); }

/* ==========================================================================
   Sticky Header / Navigation
   ========================================================================== */
.se-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(249, 246, 240, 0.96);
    backdrop-filter: saturate(180%) blur(10px);
    border-bottom: 1px solid var(--cream-dark);
    box-shadow: var(--shadow-sm);
}
.se-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 12px 24px;
    max-width: var(--maxw);
    margin: 0 auto;
}
.se-logo img { height: 52px; width: auto; }
.se-nav { display: flex; align-items: center; gap: 8px; }
.se-nav ul { display: flex; align-items: center; gap: 4px; list-style: none; margin: 0; padding: 0; }
.se-nav a {
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.98rem;
    color: var(--navy);
    padding: 10px 14px;
    border-radius: 6px;
    text-decoration: none;
    transition: background .18s ease, color .18s ease;
}
.se-nav a:hover { background: var(--cream-dark); color: var(--cedar); }
.se-nav .se-cart-link {
    background: var(--navy);
    color: var(--white);
    margin-left: 8px;
}
.se-nav .se-cart-link:hover { background: var(--cedar); color: var(--white); }

.se-nav-toggle {
    display: none;
    background: none;
    border: 0;
    cursor: pointer;
    padding: 8px;
    flex-direction: column;
    gap: 5px;
}
.se-nav-toggle span { display: block; width: 26px; height: 3px; background: var(--navy); border-radius: 2px; }

/* ==========================================================================
   Hero
   ========================================================================== */
.se-hero {
    position: relative;
    min-height: calc(100vh - 110px);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
    /* REPLACE WITH OWN PHOTO — third-party Ketchikan harbor image */
    background: linear-gradient(rgba(19,31,54,.62), rgba(19,31,54,.72)),
                url('https://andthewest.stanford.edu/wp-content/uploads/2025/02/ketchikan-harbor-ronald-woan-4771836713_95564e1fec_o-1200px-1024x683.jpg');
    background-size: cover;
    background-position: center;
    padding: 80px 24px;
    overflow: hidden;
}
.se-hero-content { position: relative; max-width: 880px; z-index: 2; }
.se-hero-star { margin-bottom: 22px; }
.se-hero h1 {
    color: var(--white);
    font-size: clamp(2.2rem, 5.4vw, 4rem);
    font-weight: 800;
    text-shadow: 0 3px 22px rgba(0,0,0,.4);
    margin-bottom: 22px;
}
.se-hero p {
    font-size: clamp(1.05rem, 2vw, 1.4rem);
    color: #f1ede3;
    max-width: 680px;
    margin: 0 auto 34px;
    text-shadow: 0 2px 14px rgba(0,0,0,.35);
    font-weight: 400;
}
.se-hero .se-salmon-accent { position: absolute; opacity: .16; z-index: 1; }
.se-hero .se-salmon-accent.top { top: 6%; right: -40px; width: 340px; transform: rotate(-8deg); }
.se-hero .se-salmon-accent.bottom { bottom: 4%; left: -50px; width: 300px; transform: rotate(172deg); }

/* ==========================================================================
   Trust Strip
   ========================================================================== */
.se-trust {
    background: var(--navy);
    color: var(--white);
    padding: 0;
}
.se-trust-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    max-width: var(--maxw);
    margin: 0 auto;
}
.se-trust-item {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    text-align: left;
    padding: 28px 22px;
    border-right: 1px solid rgba(255,255,255,.08);
}
.se-trust-item:last-child { border-right: 0; }
.se-trust-item svg { flex: 0 0 auto; width: 36px; height: 36px; color: var(--gold); }
.se-trust-item strong { display: block; font-family: var(--font-head); font-size: 1.05rem; color: var(--white); line-height: 1.2; }
.se-trust-item span { font-size: 0.86rem; color: #b9c1d0; }

/* ==========================================================================
   Featured Products
   ========================================================================== */
.se-products { background: var(--cream); }
.se-filter-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    margin-bottom: 44px;
}
.se-filter-btn {
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.92rem;
    padding: 10px 22px;
    border-radius: 50px;
    border: 2px solid var(--cream-dark);
    background: var(--white);
    color: var(--navy);
    text-decoration: none;
    transition: all .18s ease;
    cursor: pointer;
}
.se-filter-btn:hover, .se-filter-btn.is-active { background: var(--navy); color: var(--white); border-color: var(--navy); }

.se-product-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 28px;
}
.se-product-card {
    position: relative;
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: transform .2s ease, box-shadow .2s ease;
    display: flex;
    flex-direction: column;
}
.se-product-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.se-product-thumb { display: block; aspect-ratio: 1 / 1; overflow: hidden; background: var(--cream-dark); }
.se-product-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.se-product-card:hover .se-product-thumb img { transform: scale(1.06); }
.se-product-body { padding: 18px 18px 22px; display: flex; flex-direction: column; flex: 1; }
.se-product-title { font-family: var(--font-head); font-size: 1.12rem; font-weight: 600; margin: 0 0 6px; color: var(--navy); }
.se-product-title a { color: inherit; }
.se-product-title a:hover { color: var(--cedar); }
.se-product-price { font-family: var(--font-body); font-weight: 700; color: var(--forest); font-size: 1.12rem; margin-bottom: 14px; }
.se-product-price del { color: var(--muted); font-weight: 400; margin-right: 6px; font-size: .95em; }
.se-product-body .se-btn { margin-top: auto; justify-content: center; padding: 12px 20px; font-size: .95rem; }
.se-empty-note { grid-column: 1 / -1; text-align: center; color: var(--muted); padding: 40px; background: var(--white); border-radius: var(--radius); }

/* Free Shipping ribbon on corner */
.se-ribbon {
    position: absolute;
    top: 14px;
    left: -34px;
    transform: rotate(-45deg);
    background: var(--gold);
    color: var(--navy);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 6px 40px;
    box-shadow: 0 2px 6px rgba(0,0,0,.18);
    z-index: 3;
}
/* Small category tag badges */
.se-tag {
    position: absolute;
    top: 12px;
    right: 12px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: rgba(27,42,71,.92);
    color: #fff;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    padding: 5px 10px;
    border-radius: 50px;
    z-index: 3;
}
.se-tag svg { width: 12px; height: 12px; color: var(--gold); }
.se-tag + .se-tag { top: 44px; }

.se-products-cta { text-align: center; margin-top: 52px; }

/* ==========================================================================
   Parallax Credibility Banner
   ========================================================================== */
.se-parallax {
    position: relative;
    /* REPLACE WITH OWN PHOTO — third-party cedar smoked salmon image */
    background: linear-gradient(rgba(35,23,14,.68), rgba(35,23,14,.78)),
                url('https://assets.biggreenegg.eu/app/uploads/2017/12/05105031/topimage-cedar-wood-smoked-salmon-from-the-big-green-egg-800x500.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    padding: 120px 24px;
    display: flex;
    justify-content: center;
}
.se-cedar-sign {
    max-width: 640px;
    text-align: center;
    background: linear-gradient(180deg, #8a4d2a, #6f3c20);
    background-image:
        linear-gradient(180deg, rgba(0,0,0,.06), rgba(0,0,0,.22)),
        repeating-linear-gradient(90deg, rgba(0,0,0,.05) 0 3px, rgba(255,255,255,.03) 3px 6px);
    color: #fdf6ea;
    padding: 52px 46px;
    border-radius: 8px;
    position: relative;
    box-shadow: var(--shadow-lg);
    /* rope-style border via double frame */
    border: 3px solid #d8b483;
    outline: 3px dashed #b98a5a;
    outline-offset: 6px;
}
.se-cedar-sign::before {
    content: "";
    position: absolute;
    inset: 8px;
    border: 2px solid rgba(216,180,131,.5);
    border-radius: 4px;
    pointer-events: none;
}
.se-cedar-sign h2 {
    font-family: var(--font-head);
    color: #fdf6ea;
    font-size: clamp(1.7rem, 4vw, 2.7rem);
    font-weight: 800;
    margin: 14px 0 16px;
    text-shadow: 0 2px 10px rgba(0,0,0,.4);
}
.se-cedar-sign p { color: #f0dfc8; font-size: 1.15rem; margin: 0; font-style: italic; }
.se-rope-divider { display: flex; justify-content: center; margin: 0 auto 6px; }

/* ==========================================================================
   Why Wild Alaska
   ========================================================================== */
.se-why { background: var(--white); }
.se-why-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.se-why-card {
    background: var(--cream);
    border-radius: var(--radius);
    padding: 40px 32px;
    text-align: center;
    border-top: 4px solid var(--cedar);
    transition: transform .2s ease, box-shadow .2s ease;
}
.se-why-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.se-why-icon {
    width: 72px; height: 72px;
    margin: 0 auto 22px;
    display: flex; align-items: center; justify-content: center;
    background: var(--navy);
    border-radius: 50%;
    color: var(--gold);
}
.se-why-icon svg {
    width: 38px !important;
    height: 38px !important;
    max-width: 38px;
    max-height: 38px;
}
.se-why-card h3 { font-size: 1.3rem; margin-bottom: 12px; color: var(--navy); }
.se-why-card p { color: var(--muted); font-size: 1rem; margin: 0; }

/* ==========================================================================
   Footer
   ========================================================================== */
.se-footer { background: var(--navy); color: #cfd6e2; padding: 72px 0 0; }
.se-footer a { color: #cfd6e2; }
.se-footer a:hover { color: var(--gold-light); }
.se-footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr;
    gap: 48px;
    padding-bottom: 56px;
}
.se-footer-logo img { height: 58px; width: auto; margin-bottom: 18px; filter: brightness(0) invert(1); }
.se-footer-tag { font-family: var(--font-head); font-style: italic; font-size: 1.15rem; color: var(--gold-light); margin: 0 0 20px; }
.se-footer address { font-style: normal; line-height: 1.8; color: #b6bfd0; }
.se-footer address strong { color: var(--white); }
.se-footer h4 { color: var(--white); font-family: var(--font-head); font-size: 1.15rem; margin-bottom: 18px; }
.se-footer ul { list-style: none; margin: 0; padding: 0; }
.se-footer ul li { margin-bottom: 10px; }
.se-footer-contact-line { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.se-footer-contact-line svg {
    width: 16px !important;
    height: 16px !important;
    max-width: 16px;
    max-height: 16px;
    color: var(--gold);
    flex: 0 0 auto;
}
.se-footer-bottom {
    border-top: 1px solid rgba(255,255,255,.1);
    padding: 22px 0;
    text-align: center;
    font-size: 0.88rem;
    color: #9aa4b8;
}
/* Readable SEO text block (styled, low-emphasis but not display:none) */
.se-seo-text {
    font-size: 0.8rem;
    color: #55617a;
    line-height: 1.7;
    text-align: center;
    padding: 18px 0 26px;
    max-width: 900px;
    margin: 0 auto;
}

/* ==========================================================================
   WooCommerce sitewide badge styling (from template overrides)
   ========================================================================== */
ul.products li.product { position: relative; }
.se-woo-ribbon {
    position: absolute;
    top: 12px;
    left: -34px;
    transform: rotate(-45deg);
    background: var(--gold);
    color: var(--navy);
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    padding: 5px 40px;
    box-shadow: 0 2px 6px rgba(0,0,0,.18);
    z-index: 5;
}
.se-woo-badges {
    position: absolute;
    top: 10px;
    right: 10px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    z-index: 5;
    align-items: flex-end;
}
.se-woo-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: rgba(27,42,71,.92);
    color: #fff;
    font-size: 0.66rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    padding: 4px 9px;
    border-radius: 50px;
}
.se-woo-badge svg { width: 11px; height: 11px; color: var(--gold); }
.se-woo-badge.cedar { background: rgba(160,90,50,.95); }
.se-woo-badge.cedar svg { color: #ffe6c9; }

/* ==========================================================================
   Shop by Category Grid
   ========================================================================== */
.se-category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    margin-top: 40px;
}
.se-category-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 36px 24px;
    background: #fff;
    border-radius: 12px;
    text-decoration: none;
    color: var(--navy);
    transition: all .3s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,.06);
}
.se-category-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0,0,0,.12);
    color: var(--navy);
}
.se-category-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}
.se-category-icon svg {
    width: 48px;
    height: 48px;
}
.se-category-card h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.3rem;
    font-weight: 700;
    margin: 0 0 10px;
    color: var(--navy);
}
.se-category-card p {
    font-size: 0.9rem;
    color: #666;
    margin: 0;
    line-height: 1.5;
}

/* Storefront general brand harmony */
.woocommerce ul.products li.product .button,
.woocommerce a.button, .woocommerce button.button.alt,
.woocommerce button.button, .woocommerce input.button {
    background-color: var(--cedar) !important;
    color: #fff !important;
    border-radius: 50px;
}
.woocommerce a.button:hover, .woocommerce button.button.alt:hover,
.woocommerce button.button:hover, .woocommerce input.button:hover {
    background-color: var(--cedar-dark) !important;
    color: #fff !important;
}
.woocommerce ul.products li.product .price { color: var(--forest); }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1024px) {
    .se-product-grid { grid-template-columns: repeat(3, 1fr); }
    .se-trust-grid { grid-template-columns: repeat(2, 1fr); }
    .se-trust-item:nth-child(2) { border-right: 0; }
}
@media (max-width: 860px) {
    .se-nav-toggle { display: flex; }
    .se-nav {
        position: absolute;
        top: 100%;
        right: 0;
        left: 0;
        background: var(--cream);
        border-bottom: 1px solid var(--cream-dark);
        box-shadow: var(--shadow-md);
        padding: 12px 24px 20px;
        display: none;
    }
    .se-nav.is-open { display: block; }
    .se-nav ul { flex-direction: column; align-items: stretch; gap: 2px; }
    .se-nav a { display: block; padding: 12px 10px; }
    .se-nav .se-cart-link { margin-left: 0; text-align: center; }
    .se-why-grid { grid-template-columns: 1fr; }
    .se-footer-grid { grid-template-columns: 1fr; gap: 34px; }
    .se-section { padding: 64px 0; }
    .se-parallax { background-attachment: scroll; padding: 80px 20px; }
}
@media (max-width: 640px) {
    .se-product-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
    .se-trust-grid { grid-template-columns: 1fr; }
    .se-trust-item { border-right: 0; border-bottom: 1px solid rgba(255,255,255,.08); }
    .se-hero { min-height: 88vh; }
    .se-cedar-sign { padding: 40px 26px; }
}
@media (max-width: 420px) {
    .se-product-grid { grid-template-columns: 1fr; }
}
