/* ============================================================
   MÁLAGA SELECCIÓN — Premium Meat B2B Website
   ============================================================ */

/* ── CSS Variables ──────────────────────────────────────────── */
:root {
    --gold:         #c9a84c;
    --gold-light:   #e2c97e;
    --gold-dark:    #9e7d30;
    --bg-darkest:   #0a0a0a;
    --bg-dark:      #111111;
    --bg-mid:       #181818;
    --bg-card:      #1e1e1e;
    --text-primary: #f5f0e8;
    --text-muted:   #888880;
    --text-faint:   #555550;
    --border:       rgba(201, 168, 76, 0.2);
    --border-subtle:rgba(255,255,255,0.06);
    --font-serif:   'Playfair Display', Georgia, serif;
    --font-sans:    'Montserrat', system-ui, sans-serif;
    --transition:   0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ── Reset & Base ───────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-sans);
    font-weight: 300;
    background: var(--bg-dark);
    color: var(--text-primary);
    line-height: 1.7;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-serif);
    font-weight: 600;
    color: var(--text-primary);
    line-height: 1.25;
}

a { text-decoration: none; color: inherit; transition: color var(--transition); }
img { max-width: 100%; display: block; }
address { font-style: normal; }

/* ── Navigation ─────────────────────────────────────────────── */
#mainNav {
    padding: 1.25rem 0;
    transition: background var(--transition), padding var(--transition), box-shadow var(--transition);
    z-index: 1000;
}

#mainNav.scrolled {
    background: rgba(10, 10, 10, 0.97) !important;
    backdrop-filter: blur(12px);
    padding: 0.75rem 0;
    box-shadow: 0 2px 30px rgba(0,0,0,0.6);
}

/* Start transparent over hero */
#mainNav { background: transparent; }

.navbar-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
}


.brand-text {
    font-family: var(--font-serif);
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-primary);
    line-height: 1.2;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.brand-text small {
    display: block;
    font-size: 0.65rem;
    font-family: var(--font-sans);
    font-weight: 400;
    letter-spacing: 0.2em;
    color: var(--gold);
    text-transform: uppercase;
}

.navbar-nav .nav-link {
    font-size: 0.78rem;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(245, 240, 232, 0.85) !important;
    padding: 0.5rem 1rem;
    transition: color var(--transition);
}

.navbar-nav .nav-link:hover { color: var(--gold) !important; }

.btn-nav-contact {
    border: 1px solid var(--gold) !important;
    color: var(--gold) !important;
    padding: 0.45rem 1.25rem !important;
    font-size: 0.75rem !important;
    letter-spacing: 0.12em !important;
    transition: background var(--transition), color var(--transition) !important;
}

.btn-nav-contact:hover {
    background: var(--gold) !important;
    color: var(--bg-darkest) !important;
}

.nav-user {
    color: var(--gold) !important;
    font-size: 0.75rem !important;
    letter-spacing: 0.05em !important;
}

.btn-nav-logout {
    background: none !important;
    border: none !important;
    cursor: pointer;
    font-size: 0.78rem !important;
    letter-spacing: 0.12em !important;
    text-transform: uppercase;
    color: rgba(245, 240, 232, 0.5) !important;
    padding: 0.5rem 1rem !important;
    transition: color var(--transition) !important;
}

.btn-nav-logout:hover { color: var(--gold) !important; }

/* Hamburger */
.navbar-toggler {
    border: none;
    background: none;
    padding: 4px 0;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.toggler-icon {
    display: block;
    width: 24px;
    height: 1.5px;
    background: var(--text-primary);
    transition: all var(--transition);
}

/* ── Buttons ─────────────────────────────────────────────────── */
.btn-primary-gold {
    display: inline-block;
    background: var(--gold);
    color: var(--bg-darkest);
    font-family: var(--font-sans);
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    padding: 1rem 2.5rem;
    border: none;
    cursor: pointer;
    transition: background var(--transition), transform var(--transition);
    text-align: center;
}

.btn-primary-gold:hover {
    background: var(--gold-light);
    color: var(--bg-darkest);
    transform: translateY(-2px);
}

.btn-outline-light-custom {
    display: inline-block;
    background: transparent;
    color: var(--text-primary);
    font-family: var(--font-sans);
    font-size: 0.78rem;
    font-weight: 500;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    padding: 1rem 2.5rem;
    border: 1px solid rgba(245,240,232,0.4);
    transition: border-color var(--transition), color var(--transition);
}

.btn-outline-light-custom:hover {
    border-color: var(--gold);
    color: var(--gold);
}

/* ── Hero ────────────────────────────────────────────────────── */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(ellipse at 70% 40%, rgba(100, 40, 20, 0.35) 0%, transparent 60%),
        radial-gradient(ellipse at 20% 80%, rgba(60, 30, 10, 0.3) 0%, transparent 50%),
        linear-gradient(135deg, #0d0808 0%, #1a0f0a 40%, #0e0a07 100%);
}

.hero-photo {
    position: absolute;
    top: 0;
    bottom: 0;
    right: -15%;
    width: auto;
    height: 100%;
    mask-image: linear-gradient(to right, transparent 0%, black 20%);
    -webkit-mask-image: linear-gradient(to right, transparent 0%, black 20%);
}


.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to right,
        rgba(10,8,6,0.85) 0%,
        rgba(10,8,6,0.5) 60%,
        rgba(10,8,6,0.15) 100%
    );
}

.hero-content {
    position: relative;
    z-index: 2;
    padding-top: 6rem;
    padding-bottom: 6rem;
}

.hero-eyebrow {
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.hero-eyebrow::before {
    content: '';
    display: block;
    width: 40px;
    height: 1px;
    background: var(--gold);
}

.hero-title {
    font-family: var(--font-serif);
    font-size: clamp(2.8rem, 6vw, 5.5rem);
    font-weight: 700;
    line-height: 1.1;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
}

.hero-title em {
    font-style: italic;
    color: var(--gold);
}

.hero-subtitle {
    font-size: 1.05rem;
    font-weight: 300;
    color: rgba(245,240,232,0.75);
    max-width: 520px;
    margin-bottom: 2.5rem;
    line-height: 1.8;
}

.hero-cta { margin-top: 0.5rem; }

.hero-scroll-indicator {
    position: absolute;
    bottom: 2.5rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
}

.hero-scroll-indicator span {
    display: block;
    width: 1px;
    height: 60px;
    background: linear-gradient(to bottom, var(--gold), transparent);
    margin: 0 auto;
    animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
    0%, 100% { opacity: 0.3; transform: scaleY(0.8); }
    50%       { opacity: 1;   transform: scaleY(1); }
}

/* ── Stats Bar ───────────────────────────────────────────────── */
.stats-bar {
    background: var(--bg-darkest);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    padding: 3rem 0;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.4rem;
}

.stat-number {
    font-family: var(--font-serif);
    font-size: 2.8rem;
    font-weight: 700;
    color: var(--gold);
    line-height: 1;
}

.stat-label {
    font-size: 0.72rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text-muted);
}

/* ── Sections Common ─────────────────────────────────────────── */
.section-dark   { background: var(--bg-dark);    padding: 7rem 0; }
.section-darker { background: var(--bg-darkest); padding: 7rem 0; }

.section-eyebrow {
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.section-eyebrow::before {
    content: '';
    display: inline-block;
    width: 30px;
    height: 1px;
    background: var(--gold);
    flex-shrink: 0;
}

.section-header .section-eyebrow {
    justify-content: center;
}

.section-header .section-eyebrow::before { display: none; }

.section-title {
    font-family: var(--font-serif);
    font-size: clamp(2rem, 3.5vw, 3rem);
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1.25rem;
    line-height: 1.2;
}

.section-title em {
    font-style: italic;
    color: var(--gold);
}

.section-subtitle {
    font-size: 1rem;
    color: var(--text-muted);
    max-width: 580px;
    margin: 0 auto 0.5rem;
    line-height: 1.8;
}

.section-text {
    font-size: 0.97rem;
    color: rgba(245,240,232,0.7);
    line-height: 1.9;
    margin-bottom: 1rem;
}

/* ── Nosotros – Image Frame ──────────────────────────────────── */
.image-frame {
    position: relative;
    padding: 1.5rem 0 0 1.5rem;
}

.image-placeholder {
    width: 100%;
    padding-bottom: 70%;
    position: relative;
    background: linear-gradient(135deg, #1e1008 0%, #2a1810 50%, #1a0e08 100%);
    overflow: hidden;
}

.nosotros-img {
    background-image:
        linear-gradient(160deg, rgba(201,168,76,0.08) 0%, transparent 50%),
        linear-gradient(160deg, rgba(0,0,0,0.55) 0%, rgba(0,0,0,0.35) 100%),
        url('/images/nosotros.jpg');
    background-size: auto, auto, cover;
    background-position: center, center, center;
}

.image-caption {
    position: absolute;
    bottom: 1.25rem;
    left: 1.25rem;
    font-size: 0.7rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--gold);
    background: rgba(0,0,0,0.6);
    padding: 0.35rem 0.75rem;
}

.image-accent-border {
    position: absolute;
    top: 0;
    left: 0;
    width: 60%;
    height: 60%;
    border-top: 2px solid var(--gold);
    border-left: 2px solid var(--gold);
    pointer-events: none;
}

/* ── Pillars ─────────────────────────────────────────────────── */
.pillars-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem 1.5rem;
}

.pillar {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 0.85rem;
    color: rgba(245,240,232,0.8);
}

.pillar-icon {
    color: var(--gold);
    font-size: 0.5rem;
    flex-shrink: 0;
}

/* ── Product Cards ───────────────────────────────────────────── */
.product-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    overflow: hidden;
    transition: transform var(--transition), border-color var(--transition);
    position: relative;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-6px);
    border-color: var(--border);
}

.product-card--featured {
    border-color: rgba(201,168,76,0.4);
}

.product-img {
    height: 200px;
    position: relative;
    overflow: hidden;
}

/* Product image placeholders with distinct colour moods */
.product-img.vacuno  { background: linear-gradient(135deg, #2d0a0a 0%, #4a1510 80%, #1f0808 100%); }
.product-img.iberico { background: linear-gradient(135deg, #2a1a08 0%, #4a3010 80%, #1f1208 100%); }
.product-img.cordero { background: linear-gradient(135deg, #0a1a2a 0%, #153050 80%, #080f1a 100%); }
.product-img.aves    { background: linear-gradient(135deg, #1a1a0a 0%, #2f2d10 80%, #121208 100%); }
.product-img.ternera { background: linear-gradient(135deg, #1a0a1a 0%, #2f1030 80%, #120812 100%); }
.product-img.caza    { background: linear-gradient(135deg, #0a1a0a 0%, #103010 80%, #081208 100%); }

.product-img::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.4) 0%, transparent 60%);
}

.product-badge {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    background: var(--gold);
    color: var(--bg-darkest);
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 0.3rem 0.75rem;
    z-index: 1;
}

.product-body {
    padding: 1.75rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.product-tag {
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 0.6rem;
    display: block;
}

.product-name {
    font-family: var(--font-serif);
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
}

.product-desc {
    font-size: 0.88rem;
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: 1rem;
    flex: 1;
}

.product-details {
    list-style: none;
    padding: 0;
    margin: 0 0 1.25rem;
    border-top: 1px solid var(--border-subtle);
    padding-top: 1rem;
}

.product-details li {
    font-size: 0.78rem;
    color: rgba(245,240,232,0.55);
    padding: 0.2rem 0;
    padding-left: 1rem;
    position: relative;
}

.product-details li::before {
    content: '–';
    position: absolute;
    left: 0;
    color: var(--gold);
}

.product-link {
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    color: var(--gold);
    text-transform: uppercase;
    transition: letter-spacing var(--transition);
    margin-top: auto;
}

.product-link:hover { letter-spacing: 0.2em; color: var(--gold-light); }

.catalog-note {
    font-size: 0.9rem;
    color: var(--text-muted);
    font-style: italic;
}

/* ── Calidad ─────────────────────────────────────────────────── */
.section-calidad {
    background-image:
        linear-gradient(rgba(10,8,6,0.82), rgba(10,8,6,0.82)),
        url('/images/calidad.jpg');
    background-size: auto, cover;
    background-position: center, center;
    background-attachment: fixed;
}

.quality-list { margin-top: 2rem; }

.quality-item {
    display: flex;
    gap: 1.5rem;
    padding: 1.25rem 0;
    border-bottom: 1px solid var(--border-subtle);
    align-items: flex-start;
}

.quality-item:last-child { border-bottom: none; }

.quality-icon {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--gold);
    min-width: 3rem;
    line-height: 1.3;
    opacity: 0.7;
}

.quality-item strong {
    display: block;
    font-family: var(--font-serif);
    font-size: 1.05rem;
    color: var(--text-primary);
    margin-bottom: 0.3rem;
}

.quality-item p {
    font-size: 0.88rem;
    color: var(--text-muted);
    margin: 0;
    line-height: 1.6;
}

/* Certifications grid */
.cert-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 1px;
    background: var(--border-subtle);
}

.cert-card {
    background: var(--bg-mid);
    padding: 2rem 1.5rem;
    text-align: center;
    transition: background var(--transition);
}

.cert-card:hover { background: var(--bg-card); }

.cert-icon {
    font-size: 1.5rem;
    color: var(--gold);
    margin-bottom: 0.5rem;
}

.cert-name {
    font-family: var(--font-serif);
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.cert-level {
    font-size: 0.7rem;
    letter-spacing: 0.1em;
    color: var(--text-muted);
    text-transform: uppercase;
}

/* ── Client Types ────────────────────────────────────────────── */
.client-type-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    padding: 2.5rem 2rem;
    height: 100%;
    transition: border-color var(--transition), transform var(--transition);
}

.client-type-card:hover {
    border-color: var(--border);
    transform: translateY(-4px);
}

.client-type-card--highlight {
    border-color: rgba(201,168,76,0.35);
    background: linear-gradient(160deg, rgba(201,168,76,0.06) 0%, var(--bg-card) 60%);
}

.client-type-icon {
    font-size: 1.5rem;
    color: var(--gold);
    margin-bottom: 1rem;
    opacity: 0.7;
}

.client-type-card h4 {
    font-family: var(--font-serif);
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
}

.client-type-card p {
    font-size: 0.88rem;
    color: var(--text-muted);
    line-height: 1.7;
    margin: 0;
}

/* Testimonials */
.testimonials { margin-top: 1rem; }

.testimonial {
    background: var(--bg-mid);
    border: 1px solid var(--border-subtle);
    border-left: 3px solid var(--gold);
    padding: 2rem 2rem 1.5rem;
    margin: 0;
    height: 100%;
}

.testimonial-text {
    font-family: var(--font-serif);
    font-size: 1rem;
    font-style: italic;
    color: rgba(245,240,232,0.8);
    line-height: 1.8;
    margin-bottom: 1.25rem;
}

.testimonial-author {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.testimonial-author strong {
    font-family: var(--font-sans);
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--text-primary);
}

.testimonial-author span {
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* ── Process Steps ───────────────────────────────────────────── */
.section-process { padding: 6rem 0; }

.process-steps {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 0;
    flex-wrap: wrap;
}

.process-step {
    flex: 1;
    min-width: 180px;
    max-width: 240px;
    text-align: center;
    padding: 0 1rem;
}

.process-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    border: 1px solid var(--gold);
    color: var(--gold);
    font-family: var(--font-serif);
    font-size: 1.4rem;
    font-weight: 700;
    margin: 0 auto 1.25rem;
}

.process-step h5 {
    font-family: var(--font-serif);
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.6rem;
}

.process-step p {
    font-size: 0.83rem;
    color: var(--text-muted);
    line-height: 1.7;
}

.process-arrow {
    font-size: 1.5rem;
    color: var(--gold);
    opacity: 0.4;
    padding: 0 0.5rem;
    margin-top: 1.1rem;
    flex-shrink: 0;
}

@media (max-width: 767px) {
    .process-arrow { display: none; }
    .process-steps { gap: 2rem; }
}

/* ── Contact Section ─────────────────────────────────────────── */
.section-contact {
    background:
        radial-gradient(ellipse at 10% 50%, rgba(60,30,10,0.2) 0%, transparent 55%),
        var(--bg-dark);
    padding: 7rem 0;
}

.contact-info { display: flex; flex-direction: column; gap: 1.25rem; }

.contact-info-item {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    padding-bottom: 1.25rem;
    border-bottom: 1px solid var(--border-subtle);
}

.contact-info-item:last-child { border-bottom: none; }

.contact-info-item strong {
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--gold);
}

.contact-info-item a,
.contact-info-item span {
    font-size: 0.97rem;
    color: rgba(245,240,232,0.8);
}

.contact-info-item a:hover { color: var(--gold); }

/* Contact Form */
.contact-form { width: 100%; }

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.form-group label {
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(245,240,232,0.6);
}

.form-input {
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.1);
    color: var(--text-primary);
    font-family: var(--font-sans);
    font-size: 0.93rem;
    font-weight: 300;
    padding: 0.85rem 1rem;
    transition: border-color var(--transition), background var(--transition);
    width: 100%;
    outline: none;
    border-radius: 0;
    -webkit-appearance: none;
    appearance: none;
}

.form-input::placeholder { color: var(--text-faint); }

.form-input:focus {
    border-color: var(--gold);
    background: rgba(201,168,76,0.05);
}

.form-select-custom {
    cursor: pointer;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23c9a84c' stroke-width='1.5' fill='none'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    padding-right: 2.5rem;
}

.form-select-custom option {
    background: var(--bg-mid);
    color: var(--text-primary);
}

textarea.form-input { resize: vertical; min-height: 110px; }

.form-check-custom {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.form-check-custom input[type="checkbox"] {
    width: 16px;
    height: 16px;
    margin-top: 2px;
    flex-shrink: 0;
    accent-color: var(--gold);
    cursor: pointer;
}

.form-check-custom label {
    font-size: 0.82rem;
    color: var(--text-muted);
    cursor: pointer;
    line-height: 1.5;
}

.form-check-custom label a {
    color: var(--gold);
    text-decoration: underline;
}

/* ── Footer ──────────────────────────────────────────────────── */
.site-footer {
    background: var(--bg-darkest);
    padding: 5rem 0 0;
    border-top: 1px solid var(--border);
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.footer-tagline {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.6;
    max-width: 280px;
    font-style: italic;
}

.footer-social {
    display: flex;
    gap: 0.75rem;
}

.footer-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border: 1px solid var(--border-subtle);
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--text-muted);
    letter-spacing: 0;
    transition: border-color var(--transition), color var(--transition);
}

.footer-social a:hover { border-color: var(--gold); color: var(--gold); }

.footer-heading {
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 1.25rem;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.footer-links li a {
    font-size: 0.85rem;
    color: var(--text-muted);
    transition: color var(--transition);
}

.footer-links li a:hover { color: var(--gold); }

.footer-address p {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
}

.footer-address a { color: var(--text-muted); }
.footer-address a:hover { color: var(--gold); }

.footer-hours {
    font-size: 0.75rem !important;
    letter-spacing: 0.08em;
    color: var(--text-faint) !important;
}

.footer-divider {
    border-color: var(--border-subtle);
    margin: 3rem 0 1.5rem;
}

.footer-bottom {
    padding-bottom: 2rem;
}

.footer-bottom p,
.footer-bottom a {
    font-size: 0.78rem;
    color: var(--text-faint);
    margin: 0;
}

.footer-bottom a:hover { color: var(--gold); }

/* ── Catalogue Tabs ──────────────────────────────────────────── */
.cat-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 2.5rem;
    border-bottom: 1px solid var(--border-subtle);
    padding-bottom: 1.5rem;
}

.cat-tab {
    background: transparent;
    border: 1px solid var(--border-subtle);
    color: var(--text-muted);
    font-family: var(--font-sans);
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    padding: 0.6rem 1.25rem;
    cursor: pointer;
    transition: all var(--transition);
    white-space: nowrap;
}

.cat-tab:hover {
    border-color: var(--gold);
    color: var(--gold);
}

.cat-tab.active {
    background: var(--gold);
    border-color: var(--gold);
    color: var(--bg-darkest);
}

.cat-panel { display: none; }
.cat-panel.active { display: block; }
.cat-panel.cat-panel--visible { display: block; }

/* ── Catalogue search ─────────────────────────────────────────── */
.cat-search-wrapper {
    position: relative;
    max-width: 440px;
    margin-bottom: 1.75rem;
}
.cat-search {
    width: 100%;
    background: var(--bg-mid);
    border: 1px solid var(--border-subtle);
    border-radius: 6px;
    color: var(--text-primary);
    font-family: var(--font-sans);
    font-size: .875rem;
    padding: .6rem 2.4rem .6rem 2.4rem;
    outline: none;
    transition: border-color .2s;
}
.cat-search:focus { border-color: var(--gold); }
.cat-search::placeholder { color: var(--text-muted); }
.cat-search-icon {
    position: absolute;
    left: .75rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    pointer-events: none;
    font-size: .85rem;
}
.cat-search-clear {
    position: absolute;
    right: .65rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    font-size: .9rem;
    padding: 0;
    line-height: 1;
    display: none;
}
.cat-search-clear:hover { color: var(--text-primary); }
.cat-search-label {
    font-size: .75rem;
    color: var(--gold);
    font-family: var(--font-sans);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .06em;
    margin-bottom: .5rem;
    display: block;
}

/* ── Product Item (catalogue grid) ───────────────────────────── */
.pitem {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    padding: 1.1rem 1.1rem 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    height: 100%;
    transition: border-color var(--transition), transform var(--transition);
    cursor: default;
}

.pitem:hover {
    border-color: rgba(201,168,76,0.3);
    transform: translateY(-3px);
}

.pitem--highlight {
    border-color: rgba(201,168,76,0.3);
    background: linear-gradient(160deg, rgba(201,168,76,0.05) 0%, var(--bg-card) 70%);
}

.pitem-name {
    font-family: var(--font-serif);
    font-size: 0.92rem;
    font-weight: 600;
    color: var(--text-primary);
    line-height: 1.3;
}

.pitem-format {
    font-size: 0.72rem;
    color: var(--text-muted);
    font-weight: 400;
}

.pitem-code {
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    color: var(--gold);
    text-transform: uppercase;
    margin-top: 0.2rem;
}

.pitem-price {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-top: auto;
    padding-top: 0.5rem;
}

.pitem-price--estimated {
    color: var(--text-muted);
}

/* Fish-specific accent (ocean blue) */
.pitem--fish {
    border-color: rgba(60, 130, 180, 0.15);
}

.pitem--fish.pitem--highlight {
    border-color: rgba(60, 130, 180, 0.35);
    background: linear-gradient(160deg, rgba(60, 130, 180, 0.07) 0%, var(--bg-card) 70%);
}

.pitem--fish .pitem-code {
    color: #6aadcf;
}

/* Product card image */
.pitem-img {
    width: calc(100% + 2.2rem);
    aspect-ratio: 4/3;
    object-fit: cover;
    border-radius: 6px 6px 0 0;
    margin: -1.1rem -1.1rem .75rem;
    display: block;
}
.pitem-img--placeholder {
    opacity: .5;
    filter: grayscale(40%);
}

/* Sub-section label within a catalogue panel */
.cat-section-label {
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: var(--text-faint);
    margin: 0;
    padding-top: 0.5rem;
    border-top: 1px solid var(--border-subtle);
}

/* ── Auth Pages ──────────────────────────────────────────────── */
.auth-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    background:
        radial-gradient(ellipse at 30% 40%, rgba(100,40,10,0.2) 0%, transparent 55%),
        var(--bg-darkest);
    padding: 7rem 0 4rem;
}

.auth-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    padding: 3rem 2.5rem;
    text-align: center;
}

.auth-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.auth-logo img {
    width: 52px;
    height: 52px;
    display: block;
}

.auth-title {
    font-family: var(--font-serif);
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.auth-subtitle {
    font-size: 0.88rem;
    color: var(--text-muted);
    margin-bottom: 0;
    line-height: 1.6;
}

.auth-alert {
    background: rgba(180, 50, 50, 0.15);
    border: 1px solid rgba(180, 50, 50, 0.4);
    color: #e07070;
    font-size: 0.85rem;
    padding: 0.75rem 1rem;
    margin-top: 1.25rem;
    text-align: left;
}

.auth-success {
    background: rgba(50, 150, 80, 0.12);
    border: 1px solid rgba(50, 150, 80, 0.35);
    color: #7dc99a;
    font-size: 0.88rem;
    padding: 1rem 1.25rem;
    margin-top: 1.25rem;
    text-align: left;
    line-height: 1.6;
}

.auth-field-error {
    display: block;
    font-size: 0.72rem;
    color: #e07070;
    margin-top: 0.25rem;
}

.auth-footer-link {
    font-size: 0.83rem;
    color: var(--text-muted);
}

.auth-footer-link a {
    color: var(--gold);
    text-decoration: underline;
}

/* ── Scrolled Nav Trigger ─────────────────────────────────────── */
/* Handled in site.js */

/* ── Responsive Tweaks ───────────────────────────────────────── */
@media (max-width: 991px) {
    .section-dark, .section-darker, .section-contact { padding: 5rem 0; }

    .navbar-collapse {
        background: rgba(10,10,10,0.97);
        backdrop-filter: blur(12px);
        padding: 1.5rem;
        margin-top: 0.5rem;
        border-top: 1px solid var(--border-subtle);
    }

    .btn-nav-contact { display: inline-block; margin-top: 0.5rem; }

    .cert-grid { grid-template-columns: 1fr 1fr; }

    .pillars-grid { grid-template-columns: 1fr; }
}

@media (max-width: 991px) {
    .hero-photo {
        width: 100%;
        height: 100%;
        right: 0;
        object-fit: cover;
        object-position: center;
        mask-image: none;
        -webkit-mask-image: none;
    }
}

@media (max-width: 767px) {
    .hero-title { font-size: 2.5rem; }
    .stats-bar { padding: 2.5rem 0; }
    .stat-number { font-size: 2.2rem; }
    .cert-grid { grid-template-columns: 1fr 1fr; }
    .process-step { max-width: 100%; }
    .image-frame { padding: 0; }
    .image-accent-border { display: none; }
}

@media (max-width: 575px) {
    .hero-cta { flex-direction: column; align-items: flex-start; }
    .btn-primary-gold, .btn-outline-light-custom { width: 100%; text-align: center; }
    .cert-grid { grid-template-columns: 1fr; }
}

/* ── Admin ───────────────────────────────────────────────────── */
.admin-section {
    min-height: 100vh;
    padding: 120px 0 80px;
    background: var(--bg-darkest);
}

.admin-header {
    margin-bottom: 2.5rem;
    border-bottom: 1px solid var(--border);
    padding-bottom: 1.5rem;
}

.admin-title {
    font-size: 2rem;
    color: var(--gold);
}

.admin-subtitle {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-top: 0.25rem;
}

.admin-table-wrapper {
    overflow-x: auto;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.875rem;
}

.admin-table thead tr {
    border-bottom: 1px solid var(--border);
}

.admin-table th {
    text-align: left;
    padding: 0.75rem 1rem;
    color: var(--gold);
    font-family: var(--font-sans);
    font-weight: 600;
    font-size: 0.75rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    white-space: nowrap;
}

.admin-table td {
    padding: 0.875rem 1rem;
    border-bottom: 1px solid var(--border-subtle);
    color: var(--text-primary);
    vertical-align: top;
}

.admin-table tbody tr:hover {
    background: rgba(255,255,255,0.03);
}

.admin-table tbody tr.row-pending {
    background: rgba(201, 168, 76, 0.04);
}

.td-company { font-weight: 500; }
.td-mono { font-family: monospace; font-size: 0.82rem; color: var(--text-muted); }
.td-date { color: var(--text-muted); white-space: nowrap; }

.badge-approved {
    display: inline-block;
    padding: 0.2rem 0.65rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    background: rgba(76, 175, 80, 0.15);
    color: #81c784;
    border: 1px solid rgba(76, 175, 80, 0.3);
}

.badge-pending {
    display: inline-block;
    padding: 0.2rem 0.65rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    background: rgba(201, 168, 76, 0.12);
    color: var(--gold-light);
    border: 1px solid var(--border);
}

.btn-toggle {
    padding: 0.3rem 0.9rem;
    border-radius: 4px;
    font-size: 0.78rem;
    font-weight: 600;
    font-family: var(--font-sans);
    cursor: pointer;
    border: none;
    transition: opacity var(--transition);
    white-space: nowrap;
}

.btn-toggle:hover { opacity: 0.8; }

.btn-toggle-approve {
    background: var(--gold);
    color: var(--bg-darkest);
}

.btn-toggle-revoke {
    background: transparent;
    color: var(--text-muted);
    border: 1px solid var(--border-subtle) !important;
}

/* ── Admin subnav ────────────────────────────────────────────── */
.admin-subnav {
    display: flex;
    gap: 0.25rem;
    margin-bottom: 2rem;
    border-bottom: 1px solid var(--border);
    padding-bottom: 0;
}

.admin-subnav-link {
    padding: 0.5rem 1.25rem;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-muted);
    border-bottom: 2px solid transparent;
    margin-bottom: -1px;
    transition: color var(--transition), border-color var(--transition);
}

.admin-subnav-link:hover { color: var(--text-primary); }
.admin-subnav-link.active { color: var(--gold); border-bottom-color: var(--gold); }

/* Inactive row */
.admin-table tbody tr.row-inactive { opacity: 0.45; }

.td-muted { color: var(--text-muted); font-size: 0.82rem; }

/* Status badges */
.badge-inactive {
    display: inline-block;
    padding: 0.2rem 0.65rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    background: rgba(255,255,255,0.04);
    color: var(--text-faint);
    border: 1px solid var(--border-subtle);
}

.badge-highlight {
    font-size: 0.75rem;
    margin-left: 0.4rem;
    color: var(--gold);
}

/* Category tab product count */
.cat-tab-count {
    display: inline-block;
    margin-left: 0.35rem;
    font-size: 0.7rem;
    opacity: 0.6;
    font-family: var(--font-sans);
    font-weight: 400;
}

/* Admin table inputs */
.admin-input {
    background: var(--bg-mid);
    border: 1px solid var(--border);
    color: var(--text-primary);
    padding: 0.3rem 0.5rem;
    border-radius: 4px;
    font-size: 0.82rem;
    font-family: var(--font-sans);
    width: 100%;
}

.admin-input:focus {
    outline: none;
    border-color: var(--gold);
}

.admin-input[type="number"]::-webkit-inner-spin-button,
.admin-input[type="number"]::-webkit-outer-spin-button {
    opacity: 1;
    background: var(--bg-light);
    border-left: 1px solid var(--border-subtle);
    cursor: pointer;
    filter: invert(1) brightness(0.6);
}

.admin-input[type="number"]::-webkit-inner-spin-button:hover,
.admin-input[type="number"]::-webkit-outer-spin-button:hover {
    filter: invert(1) brightness(0.9) sepia(1) saturate(4) hue-rotate(5deg);
}

.admin-input-code { width: 90px; font-family: monospace; }

.admin-select {
    appearance: none;
    -webkit-appearance: none;
    background-color: var(--bg-mid);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%23c9a84c'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.6rem center;
    border: 1px solid var(--border);
    border-radius: 4px;
    color: var(--text-primary);
    font-size: 0.82rem;
    font-family: var(--font-sans);
    padding: 0.3rem 1.8rem 0.3rem 0.5rem;
    width: 100%;
    cursor: pointer;
}

.admin-select:focus {
    outline: none;
    border-color: var(--gold);
}

.admin-select option {
    background: var(--bg-mid);
    color: var(--text-primary);
}

.admin-checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.82rem;
    color: var(--text-muted);
    cursor: pointer;
    white-space: nowrap;
}

/* Icon-style action buttons */
.td-actions { white-space: nowrap; }
.td-actions form { display: inline; }
.td-actions .btn-icon { min-width: 5.5rem; text-align: center; }

.btn-icon {
    padding: 0.25rem 0.65rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 500;
    font-family: var(--font-sans);
    cursor: pointer;
    border: 1px solid var(--border-subtle);
    background: transparent;
    color: var(--text-muted);
    transition: all var(--transition);
    white-space: nowrap;
}

.btn-icon + .btn-icon { margin-left: 0.3rem; }
.btn-icon:hover { color: var(--text-primary); border-color: var(--border); }
.btn-icon-gold { color: var(--gold); border-color: rgba(201,168,76,0.3); }
.btn-icon-gold:hover { background: rgba(201,168,76,0.1); }
.btn-icon-save { background: var(--gold); color: var(--bg-darkest); border-color: transparent; font-weight: 600; }
.btn-icon-save:hover { opacity: 0.85; }

/* Add product form */
.add-product-form {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    align-items: flex-end;
    margin-top: 1.25rem;
    padding: 1rem 1.25rem;
    background: var(--bg-mid);
    border: 1px solid var(--border-subtle);
    border-radius: 6px;
}

.add-product-form .form-group {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.add-product-form label {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-muted);
}

/* ── Registration success / confirm email ────────────────────── */
.register-success-icon,
.register-error-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    font-size: 1.75rem;
    font-weight: 700;
    margin: 1.5rem auto 0;
}

.register-success-icon {
    background: rgba(76, 175, 80, 0.12);
    color: #81c784;
    border: 1px solid rgba(76, 175, 80, 0.3);
}

.register-error-icon {
    background: rgba(229, 57, 53, 0.1);
    color: #ef9a9a;
    border: 1px solid rgba(229, 57, 53, 0.25);
}

.register-success-body p {
    color: var(--text-muted);
    line-height: 1.7;
}

/* ── Phase 3: Cart & order styles ────────────────────────────── */

/* Cart badge in navbar */
.cart-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 18px;
    height: 18px;
    padding: 0 4px;
    background: var(--gold);
    color: #0a0a0a;
    border-radius: 9px;
    font-size: 0.65rem;
    font-weight: 700;
    line-height: 1;
    margin-left: 4px;
    vertical-align: middle;
}

.cart-badge--empty {
    display: none;
}

.nav-cart {
    position: relative;
}

/* Product item actions */
.pitem-actions {
    margin-top: 0.625rem;
    padding-top: 0.625rem;
    border-top: 1px solid var(--border-subtle);
}

.btn-add-cart {
    display: block;
    width: 100%;
    padding: 0.35rem 0.5rem;
    background: transparent;
    border: 1px solid var(--gold);
    color: var(--gold);
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
}

.btn-add-cart:hover {
    background: var(--gold);
    color: #0a0a0a;
}

.btn-add-cart--added {
    background: rgba(184, 151, 90, 0.12);
    border-color: rgba(184, 151, 90, 0.4);
    color: rgba(184, 151, 90, 0.7);
    cursor: default;
}

.btn-add-cart--added:hover {
    background: rgba(184, 151, 90, 0.12);
    color: rgba(184, 151, 90, 0.7);
}

.pitem--added {
    border-color: rgba(184, 151, 90, 0.35);
}
