/* ==========================================================
   FINITO FOODS — Design System
   Palette sampled directly from the client logo:
     Deep Navy   #00204E  (dark surfaces, primary text, headers)
     Ocean Blue  #0079C0  (brand accent — nav, links, primary CTA)
     Steel Blue  #005299  (secondary blue — gradients, hover)
     Ice         #F5FAFC  (page background)
     Coral       #F2683B  (signature accent, drawn from the salmon
                            flesh itself — used sparingly: price
                            tags, badges, active states)
   Type: Fraunces (display, premium editorial serif with a soft,
         slightly "wonky" character — for headings)
        Manrope (body/UI — clean, geometric, built for prices,
         buttons, and dense catalog text)
   ========================================================== */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,400;9..144,500;9..144,600;9..144,700&family=Manrope:wght@400;500;600;700;800&display=swap');

:root {
    --navy: #00204E;
    --navy-soft: #0B2E5C;
    --ocean: #0079C0;
    --steel: #005299;
    --ice: #F5FAFC;
    --ice-deep: #E7F3FA;
    --coral: #F2683B;
    --coral-dark: #D9502A;
    --white: #FFFFFF;
    --ink: #10233F;
    --ink-soft: #4E6079;
    --line: #DCE7F0;

    --font-display: 'Fraunces', Georgia, serif;
    --font-body: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

    --container: 1200px;
    --radius: 14px;
    --radius-sm: 8px;
    --shadow-soft: 0 8px 30px rgba(0, 32, 78, 0.08);
    --shadow-lift: 0 16px 40px rgba(0, 32, 78, 0.16);
    --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------------- Reset / base ---------------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    font-family: var(--font-body);
    color: var(--ink);
    background: var(--ice);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
button { font-family: inherit; cursor: pointer; }
input, select, textarea { font-family: inherit; font-size: 1rem; }

h1, h2, h3, h4 {
    font-family: var(--font-display);
    color: var(--navy);
    margin: 0 0 .5em;
    line-height: 1.15;
    font-weight: 600;
}
h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); font-weight: 700; }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); }
h3 { font-size: 1.3rem; }
p { margin: 0 0 1em; color: var(--ink-soft); }

.container { max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 0.78rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--ocean);
    margin-bottom: 14px;
}
.eyebrow::before {
    content: '';
    width: 22px; height: 2px;
    background: var(--coral);
    display: inline-block;
}

.section { padding: 88px 0; }
.section--tight { padding: 56px 0; }
.section--navy { background: var(--navy); color: var(--ice); }
.section--navy h2, .section--navy h3 { color: var(--white); }
.section--navy p { color: #AFC3DB; }
.section--ice-deep { background: var(--ice-deep); }

.section-head { max-width: 620px; margin-bottom: 48px; }
.section-head--center { margin-left: auto; margin-right: auto; text-align: center; }

/* ---------------- Buttons ---------------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 30px;
    border-radius: 999px;
    font-weight: 700;
    font-size: 0.95rem;
    border: 2px solid transparent;
    transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s var(--ease), color .25s var(--ease);
    white-space: nowrap;
}
.btn:active { transform: scale(0.97); }
.btn--primary { background: var(--coral); color: var(--white); }
.btn--primary:hover { background: var(--coral-dark); box-shadow: var(--shadow-lift); transform: translateY(-2px); }
.btn--ocean { background: var(--ocean); color: var(--white); }
.btn--ocean:hover { background: var(--steel); box-shadow: var(--shadow-lift); transform: translateY(-2px); }
.btn--outline { background: transparent; border-color: var(--navy); color: var(--navy); }
.btn--outline:hover { background: var(--navy); color: var(--white); }
.btn--ghost-on-dark { background: transparent; border-color: rgba(255,255,255,0.5); color: var(--white); }
.btn--ghost-on-dark:hover { background: var(--white); color: var(--navy); border-color: var(--white); }
.btn--whatsapp { background: #25D366; color: var(--white); }
.btn--whatsapp:hover { background: #1DA851; box-shadow: var(--shadow-lift); transform: translateY(-2px); }
.btn--sm { padding: 10px 20px; font-size: 0.85rem; }
.btn--block { width: 100%; }
.btn[disabled] { opacity: 0.5; cursor: not-allowed; transform: none !important; }

/* ---------------- Announcement bar (Blacksteer-style utility strip above nav) ---------------- */
.announcement-bar {
    position: fixed; top: 0; left: 0; right: 0; z-index: 101;
    background: var(--navy);
    color: #CFE0F0;
    text-align: center;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    padding: 9px 16px;
    height: 34px;
    box-sizing: border-box;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}
.announcement-bar strong, .announcement-bar b { color: var(--coral); }

/* ---------------- Header / Nav ---------------- */
.site-header {
    position: fixed;
    top: 34px;
    left: 0; right: 0;
    z-index: 100;
    padding: 22px 0;
    transition: background .3s var(--ease), padding .3s var(--ease), box-shadow .3s var(--ease);
}
.site-header.is-solid {
    background: rgba(255,255,255,0.96);
    backdrop-filter: blur(8px);
    padding: 14px 0;
    box-shadow: 0 4px 24px rgba(0,32,78,0.08);
}
.site-header:not(.is-solid) { color: var(--white); }
.site-header:not(.is-solid) .logo-word { color: var(--white); }
.site-header.is-solid .logo-word { color: var(--navy); }

.nav-row { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.logo { display: flex; align-items: center; gap: 10px; font-family: var(--font-display); font-weight: 700; font-size: 1.4rem; }
.logo-mark { width: 38px; height: 38px; flex-shrink: 0; }
.logo-word { transition: color .3s var(--ease); letter-spacing: 0.01em; }
.logo-word span { color: var(--coral); }

.main-nav { display: flex; align-items: center; gap: 34px; }
.main-nav a {
    font-weight: 600;
    font-size: 0.95rem;
    position: relative;
    padding: 4px 0;
}
.main-nav a::after {
    content: '';
    position: absolute;
    left: 0; bottom: -2px;
    width: 0; height: 2px;
    background: var(--coral);
    transition: width .25s var(--ease);
}
.main-nav a:hover::after, .main-nav a.active::after { width: 100%; }

.nav-actions { display: flex; align-items: center; gap: 18px; }
.cart-btn { position: relative; display: flex; align-items: center; gap: 8px; font-weight: 700; }
.cart-count {
    background: var(--coral);
    color: var(--white);
    font-size: 0.72rem;
    font-weight: 800;
    min-width: 20px; height: 20px;
    border-radius: 999px;
    display: flex; align-items: center; justify-content: center;
    padding: 0 4px;
}
.nav-toggle { display: none; background: none; border: none; padding: 8px; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: currentColor; margin: 5px 0; transition: transform .25s var(--ease), opacity .25s var(--ease); }

/* ---------------- Hero (full-bleed, matches Blacksteer's structure:
   one huge photo, no text on it, trust strip + heading block below) ---------------- */
.hero-fullbleed {
    position: relative;
    height: 88vh;
    min-height: 560px;
    max-height: 900px;
    overflow: hidden;
}
.hero-fullbleed .hero-media {
    position: absolute; inset: 0;
    width: 100%; height: 100%;
}
.hero-fullbleed .hero-media img,
.hero-fullbleed .hero-media > div { width: 100%; height: 100%; object-fit: cover; }
.hero-fullbleed::after {
    /* gentle bottom gradient so the nav + scroll cue stay legible over any photo */
    content: '';
    position: absolute; left: 0; right: 0; bottom: 0; height: 40%;
    background: linear-gradient(180deg, transparent, rgba(0,32,78,0.35));
    pointer-events: none;
    z-index: 1;
}
.hero-scroll-cue {
    position: absolute; bottom: 26px; left: 50%; transform: translateX(-50%);
    z-index: 2; color: var(--white); display: flex; flex-direction: column; align-items: center; gap: 6px;
    font-size: 0.72rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase;
    animation: float 2.6s ease-in-out infinite;
    opacity: 0.85;
}

/* Intro block directly below the hero photo — centered heading + paragraph,
   plain white background, no overlay. This is the "Premium South African
   Meat" equivalent block on Blacksteer. */
.hero-intro { padding: 64px 0 20px; text-align: center; }
.hero-intro .eyebrow { justify-content: center; }
.hero-intro h1 { max-width: 720px; margin-left: auto; margin-right: auto; }
.hero-intro p { max-width: 620px; margin: 0 auto; font-size: 1.08rem; }
.hero-intro .hero-actions { justify-content: center; margin-top: 26px; }
.hero-actions { display: flex; gap: 16px; margin-top: 30px; flex-wrap: wrap; }

.hero-visual { position: relative; }
.hero-badge-float {
    position: absolute;
    background: var(--white);
    color: var(--navy);
    border-radius: var(--radius);
    padding: 14px 18px;
    box-shadow: var(--shadow-lift);
    font-weight: 700;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 10px;
    animation: float 4.5s ease-in-out infinite;
}
.hero-badge-float span.dot { width: 8px; height: 8px; border-radius: 50%; background: #2FBF71; flex-shrink: 0; }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

/* (hero-waves removed — Blacksteer's hero has clean flat edges, no curve under it) */

/* Trust strip directly under hero */
.trust-strip { background: var(--white); padding: 26px 0; border-bottom: 1px solid var(--line); }
.trust-strip .container { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 20px; }
.trust-item { display: flex; align-items: center; gap: 12px; font-weight: 700; color: var(--navy); font-size: 0.92rem; }
.trust-item svg { flex-shrink: 0; color: var(--ocean); }

/* ---------------- Wave divider (signature element) ---------------- */
.wave-divider { line-height: 0; position: relative; }
.wave-divider svg { width: 100%; height: 70px; display: block; }
.wave-divider--flip { transform: rotate(180deg); }

/* ---------------- Category tiles ---------------- */
.category-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.category-tile {
    display: block;
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--white);
    box-shadow: var(--shadow-soft);
    transition: transform .4s var(--ease), box-shadow .4s var(--ease);
}
.category-tile-media { position: relative; aspect-ratio: 4/5; overflow: hidden; }
.category-tile-media img, .category-tile-media > div { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.category-tile:hover { transform: translateY(-6px); box-shadow: var(--shadow-lift); }
.category-tile:hover .category-tile-media img { transform: scale(1.08); }
.category-tile-label {
    padding: 18px 20px;
    display: flex; align-items: center; justify-content: space-between;
    border-top: 1px solid var(--line);
}
.category-tile-label h3 { margin: 0; font-size: 1.05rem; }
.category-tile-label .arrow { color: var(--coral); font-weight: 700; font-size: 1.2rem; transition: transform .3s var(--ease); }
.category-tile:hover .category-tile-label .arrow { transform: translateX(4px); }

/* ---------------- Product cards ---------------- */
.product-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.product-card {
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    transition: transform .35s var(--ease), box-shadow .35s var(--ease);
    display: flex;
    flex-direction: column;
}
.product-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lift); }
.product-card-media { position: relative; aspect-ratio: 4/3; overflow: hidden; background: var(--ice-deep); }
.product-card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.product-card:hover .product-card-media img { transform: scale(1.06); }
.product-tag {
    position: absolute; top: 14px; left: 14px;
    background: var(--coral);
    color: var(--white);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    padding: 6px 12px;
    border-radius: 999px;
}
.product-card-body { padding: 22px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.product-card-body h3 { font-size: 1.15rem; margin-bottom: 2px; }
.product-card-body p.desc { font-size: 0.9rem; margin-bottom: 6px; flex: 1; }
.product-price-row { display: flex; align-items: baseline; justify-content: space-between; margin-top: auto; }
.product-price { font-family: var(--font-display); font-weight: 700; font-size: 1.3rem; color: var(--navy); }
.product-price small { font-family: var(--font-body); font-weight: 600; font-size: 0.78rem; color: var(--ink-soft); }
.product-card-cta {
    display: block; width: 100%; text-align: center;
    margin-top: 14px; padding: 12px; border-radius: 999px;
    border: 1.5px solid var(--navy); color: var(--navy);
    font-weight: 700; font-size: 0.88rem;
    transition: background .25s var(--ease), color .25s var(--ease);
}
.product-card:hover .product-card-cta { background: var(--navy); color: var(--white); }

/* ---------------- Why-us / feature list ---------------- */
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.feature-card { padding: 6px; }
.feature-icon {
    width: 56px; height: 56px;
    border-radius: 16px;
    background: var(--ice-deep);
    display: flex; align-items: center; justify-content: center;
    color: var(--ocean);
    margin-bottom: 18px;
}

/* ---------------- Testimonial / partners ---------------- */
.partner-strip { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 40px; opacity: 0.75; }
.partner-strip span { font-family: var(--font-display); font-weight: 600; font-size: 1.15rem; color: var(--navy); }

/* ---------------- Footer ---------------- */
.site-footer { background: var(--navy); color: #B9CBE0; padding: 70px 0 30px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 40px; margin-bottom: 50px; }
.footer-logo { display: flex; align-items: center; gap: 10px; font-family: var(--font-display); font-weight: 700; font-size: 1.3rem; color: var(--white); margin-bottom: 14px; }
.footer-col h4 { color: var(--white); font-family: var(--font-body); font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 18px; }
.footer-col a { display: block; padding: 6px 0; font-size: 0.92rem; transition: color .2s; }
.footer-col a:hover { color: var(--white); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,0.12); font-size: 0.85rem; }
.social-row { display: flex; gap: 12px; }
.social-row a { width: 36px; height: 36px; border-radius: 50%; background: rgba(255,255,255,0.08); display: flex; align-items: center; justify-content: center; transition: background .2s; }
.social-row a:hover { background: var(--ocean); }

.payment-badges {
    display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
    padding: 20px 0; border-top: 1px solid rgba(255,255,255,0.12);
    font-size: 0.82rem; color: #8FA6C2;
}
.pay-badge {
    background: rgba(255,255,255,0.08);
    color: #D6E4F0;
    padding: 5px 12px;
    border-radius: 6px;
    font-weight: 700;
    font-size: 0.78rem;
    letter-spacing: 0.02em;
}

/* ---------------- WhatsApp floating button ---------------- */
.whatsapp-float {
    position: fixed; right: 22px; bottom: 22px; z-index: 90;
    width: 60px; height: 60px; border-radius: 50%;
    background: #25D366; color: var(--white);
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 10px 30px rgba(37,211,102,0.45);
    animation: pulse-wa 2.8s infinite;
}
.whatsapp-float:hover { transform: scale(1.08); }
@keyframes pulse-wa {
    0% { box-shadow: 0 0 0 0 rgba(37,211,102,0.45); }
    70% { box-shadow: 0 0 0 16px rgba(37,211,102,0); }
    100% { box-shadow: 0 0 0 0 rgba(37,211,102,0); }
}

/* ---------------- Scroll reveal ---------------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.is-visible { opacity: 1; transform: translateY(0); }
.reveal-stagger.is-visible > * { animation: none; }
.reveal-stagger > * { opacity: 0; transform: translateY(24px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.reveal-stagger.is-visible > *:nth-child(1) { transition-delay: 0s; }
.reveal-stagger.is-visible > *:nth-child(2) { transition-delay: .1s; }
.reveal-stagger.is-visible > *:nth-child(3) { transition-delay: .2s; }
.reveal-stagger.is-visible > *:nth-child(4) { transition-delay: .3s; }
.reveal-stagger.is-visible > *:nth-child(5) { transition-delay: .4s; }
.reveal-stagger.is-visible > *:nth-child(6) { transition-delay: .5s; }
.reveal-stagger.is-visible > * { opacity: 1; transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
    .reveal, .reveal-stagger > * { opacity: 1 !important; transform: none !important; }
}

/* ---------------- Breadcrumb / page header ---------------- */
.page-header {
    background: linear-gradient(160deg, var(--navy), var(--steel));
    color: var(--white);
    padding: 194px 0 60px;
}
.page-header p { color: #BFD6EA; }
.breadcrumb { font-size: 0.85rem; color: #9FB8D2; margin-bottom: 10px; }
.breadcrumb a:hover { color: var(--white); }

/* ---------------- Forms ---------------- */
.form-group { margin-bottom: 18px; }
.form-group label { display: block; font-weight: 700; font-size: 0.85rem; margin-bottom: 6px; color: var(--navy); }
.form-group input, .form-group select, .form-group textarea {
    width: 100%;
    padding: 13px 16px;
    border: 1.5px solid var(--line);
    border-radius: var(--radius-sm);
    background: var(--white);
    transition: border-color .2s;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
    outline: none; border-color: var(--ocean);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

/* ---------------- Cart / checkout ---------------- */
.cart-table { width: 100%; border-collapse: collapse; }
.cart-table th { text-align: left; font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--ink-soft); padding: 0 0 14px; border-bottom: 1px solid var(--line); }
.cart-table td { padding: 18px 0; border-bottom: 1px solid var(--line); vertical-align: middle; }
.cart-line-product { display: flex; align-items: center; gap: 14px; }
.cart-line-product img { width: 64px; height: 64px; border-radius: var(--radius-sm); object-fit: cover; background: var(--ice-deep); }
.qty-input { width: 64px; padding: 8px; text-align: center; border: 1.5px solid var(--line); border-radius: var(--radius-sm); }
.cart-remove { color: var(--coral); font-weight: 700; font-size: 0.85rem; }
.summary-box { background: var(--white); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow-soft); }
.summary-row { display: flex; justify-content: space-between; padding: 10px 0; font-weight: 600; }
.summary-row.total { border-top: 1px solid var(--line); margin-top: 8px; padding-top: 16px; font-size: 1.2rem; font-family: var(--font-display); color: var(--navy); }
.empty-state { text-align: center; padding: 80px 20px; }

/* ---------------- Utilities ---------------- */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.badge-outline { display: inline-block; padding: 5px 12px; border: 1.5px solid var(--line); border-radius: 999px; font-size: 0.78rem; font-weight: 700; color: var(--ink-soft); }
.alert { padding: 14px 18px; border-radius: var(--radius-sm); margin-bottom: 20px; font-weight: 600; font-size: 0.92rem; }
.alert--success { background: #E7F8EF; color: #1D7A45; }
.alert--error { background: #FCEAE5; color: var(--coral-dark); }

/* ---------------- Responsive ---------------- */
@media (max-width: 980px) {
    .hero-grid { grid-template-columns: 1fr; text-align: left; }
    .hero-visual { display: none; }
    .category-grid, .product-grid, .feature-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
    .main-nav, .nav-actions .btn { display: none; }
    .nav-toggle { display: block; }
    .category-grid, .product-grid, .feature-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; gap: 30px; }
    .form-row { grid-template-columns: 1fr; }
    .trust-strip .container { justify-content: center; text-align: center; }
    .page-header { padding: 164px 0 40px; }
}

/* Mobile nav drawer */
.mobile-nav {
    position: fixed; inset: 0;
    background: var(--navy);
    z-index: 102;
    display: flex; flex-direction: column;
    align-items: center; justify-content: center;
    gap: 30px;
    transform: translateY(-100%);
    transition: transform .4s var(--ease);
}
.mobile-nav.is-open { transform: translateY(0); }
.mobile-nav a { color: var(--white); font-family: var(--font-display); font-size: 1.6rem; font-weight: 600; }
.mobile-nav .close-btn { position: absolute; top: 26px; right: 26px; background: none; border: none; color: var(--white); font-size: 1.8rem; }
