/* Becco's Sausage: custom styles layered on Bootstrap 5 */

:root {
    /* Italian flag red */
    --becco-red: #cd212a;
    --becco-red-dark: #a31a21;
    --becco-green: #2f5d3a;
    --becco-cream: #f6efe2;
    --becco-paper: #fbf7ef;
    --becco-ink: #2a211c;
    --becco-muted: #6b5d52;
    --becco-gold: #b8893b;
    /* Italian flag colors */
    --flag-green: #008c45;
    --flag-red: #cd212a;

    --bs-body-font-family: "Source Sans 3", system-ui, sans-serif;
    --bs-body-color: var(--becco-ink);
    --bs-body-bg: var(--becco-paper);
    --bs-link-color-rgb: 205, 33, 42;
    --bs-link-hover-color-rgb: 163, 26, 33;
}

body { font-size: 1.075rem; line-height: 1.65; }

/* Every paragraph uses the same font and size as regular body text. */
p.lead, p.small { font-size: inherit; font-weight: inherit; line-height: inherit; }

h1, h2, h3, h4, .display-font {
    font-family: "Playfair Display", Georgia, serif;
    font-weight: 800;
    color: var(--becco-ink);
}


.site-header { position: sticky; top: 0; z-index: 1030; }

/* Navigation: white bar so the original logo sits on its own background */
.site-nav {
    background: #fff;
    /* Italian flag green stripe under the header */
    border-bottom: 6px solid var(--flag-green);
    box-shadow: 0 2px 10px rgba(0,0,0,.08); padding: .275rem 0; }
/* The logo uses the brand link's padding, so it is bigger while the header keeps its
   original height (about 87px on desktop, 73px on phones). */
.site-nav .navbar-brand { padding-top: 0; padding-bottom: 0; }
.navbar-brand img { height: 78px; width: auto; display: block; padding: 6px 0; box-sizing: border-box; }   /* new logo has no built-in margins */
@media (max-width: 575px) {
    .site-nav { padding: .4rem 0; }
    .navbar-brand img { height: 60px; padding: 5px 0; }
}
.site-nav .nav-link { font-weight: 600; color: var(--becco-ink); padding-inline: .8rem !important; }
.site-nav .nav-link:hover { color: var(--becco-red); }
.site-nav .nav-link.active { color: var(--becco-red); text-decoration: underline; text-underline-offset: 6px; text-decoration-color: var(--flag-green); text-decoration-thickness: 2px; }

/* Hero */
.hero {
    /* Dark charcoal (matches the footer) so the green and red stand out */
    background: linear-gradient(135deg, #1f1814, #3a2f28);
    color: var(--becco-cream);
    padding: 6rem 0 5rem;
    position: relative;
    overflow: hidden;
}
.hero h1 { color: #fff; font-size: clamp(2.4rem, 6vw, 4.2rem); line-height: 1.05; }
.hero .lead { color: var(--becco-cream); max-width: 34rem; }
.hero .hero-eyebrow { color: var(--flag-green); font-size: 1.2rem; }
.hero-badge {
    width: 230px; height: 230px; border-radius: 50%;
    border: 3px solid var(--becco-gold);
    outline: 1px solid rgba(184,137,59,.5); outline-offset: 8px;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    text-align: center; margin-inline: auto; color: var(--becco-cream);
}
.hero-badge .since { letter-spacing: 4px; text-transform: uppercase; font-size: .8rem; }
.hero-badge .year { font-family: "Playfair Display", serif; font-size: 4rem; font-weight: 800; line-height: 1; color: #fff; }
.hero-badge .place { font-size: .85rem; letter-spacing: 1px; }

.page-header {
    background: linear-gradient(135deg, var(--becco-red-dark), var(--becco-red));
    color: #fff; padding: 3.5rem 0 3rem;
}
.page-header h1 { color: #fff; margin: 0; }
.page-header p { margin: .5rem 0 0; color: #fff; }

/* Buttons */
.btn-becco { background: var(--becco-gold); color: #1f160f; border: 0; font-weight: 600; padding: .75rem 1.5rem; }
.btn-becco:hover { background: #cf9d4c; color: #1f160f; }
.btn-outline-cream { border: 2px solid var(--becco-cream); color: var(--becco-cream); font-weight: 600; padding: .65rem 1.4rem; }
.btn-outline-cream:hover { background: var(--becco-cream); color: var(--becco-red); }
/* White button with green text that matches the green band behind it */
.btn-white { background: #fff; color: var(--becco-green); border: 0; font-weight: 600; padding: .75rem 1.5rem; }
.btn-white:hover { background: var(--becco-cream); color: var(--becco-green); }
.btn-red { background: var(--becco-red); color: #fff; font-weight: 600; padding: .7rem 1.5rem; }
.btn-red:hover { background: var(--becco-red-dark); color: #fff; }

/* Sections */
.section { padding: 5rem 0; }
.section-alt { background: var(--becco-cream); }
.eyebrow { text-transform: uppercase; letter-spacing: 3px; font-size: .8rem; font-weight: 600; color: var(--becco-red); }

.feature-card {
    background: #fff; border: 1px solid #eadfcc; border-radius: 12px;
    padding: 2rem; height: 100%;
}
.feature-icon {
    width: 56px; height: 56px; border-radius: 50%;
    background: var(--becco-cream); color: var(--becco-red);
    display: grid; place-items: center; font-size: 1.5rem; margin-bottom: 1rem;
}

.quote-block {
    border-left: 4px solid var(--becco-gold);
    padding: .5rem 0 .5rem 1.5rem;
    font-family: "Playfair Display", serif; font-style: italic;
    font-size: 1.35rem; line-height: 1.5;
}
.quote-block cite { display: block; font-family: "Source Sans 3", sans-serif; font-style: normal; font-size: .95rem; color: var(--becco-muted); margin-top: .75rem; }

/* Timeline */
.timeline { list-style: none; padding: 0; margin: 0; position: relative; }
.timeline::before { content: ""; position: absolute; left: 7px; top: 6px; bottom: 6px; width: 2px; background: #e2d4bb; }
.timeline li { position: relative; padding-left: 2.25rem; margin-bottom: 2rem; }
.timeline li::before {
    content: ""; position: absolute; left: 0; top: 6px; width: 16px; height: 16px;
    border-radius: 50%; background: var(--becco-red); border: 3px solid var(--becco-cream);
    box-shadow: 0 0 0 2px var(--becco-red);
}
.timeline .year { font-family: "Playfair Display", serif; font-weight: 800; font-size: 1.3rem; color: var(--becco-red); }

/* Products */
.product-list { columns: 2; column-gap: 2rem; padding-left: 1.2rem; }
@media (max-width: 575px) { .product-list { columns: 1; } }

/* Store cards */
.store-card { background: #fff; border-radius: 12px; border-top: 5px solid var(--becco-green); padding: 1.75rem; height: 100%; box-shadow: 0 4px 14px rgba(0,0,0,.05); }
.store-state { font-size: 1.6rem; margin: 0 0 1.25rem; padding-bottom: .5rem; border-bottom: 2px solid #e2d4bb; }
.store-town { font-weight: 600; color: var(--becco-red); letter-spacing: .5px; text-transform: uppercase; font-size: .85rem; }
.store-card h3 { font-size: 1.35rem; margin-bottom: .25rem; }

/* CTA band */
.cta-band { background: var(--becco-green); color: #fff; padding: 3.5rem 0; }
.cta-band h2 { color: #fff; }

/* Forms */
.form-control:focus { border-color: var(--becco-gold); box-shadow: 0 0 0 .2rem rgba(184,137,59,.25); }
.hp-field { position: absolute; left: -9999px; }

/* Footer: one compact bar */
.site-footer { background: #1f1814; color: #cbbfae; padding: .75rem 0; font-size: .95rem; }
.site-footer a { color: #f1e6d3; text-decoration: none; }
.site-footer a:hover { color: var(--becco-gold); }
.footer-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .75rem 1.5rem; }
.footer-logo { width: 110px; height: auto; display: block; }
.footer-copy { margin: 0; font-size: .85rem; color: #9d9182; }
@media (max-width: 767px) {
    .footer-row { flex-direction: column; justify-content: center; text-align: center; gap: .4rem; }
}

/* Archival photos */
.photo-frame { margin: 0; background: #fff; padding: .6rem .6rem 0; border-radius: 6px; box-shadow: 0 8px 24px rgba(0,0,0,.12); }
.photo-frame img { width: 100%; height: auto; display: block; border-radius: 3px; }
.photo-frame figcaption { font-family: "Playfair Display", serif; font-style: italic; text-align: center; padding: .6rem .25rem .75rem; color: var(--becco-muted); }
.hero .photo-frame { max-width: 520px; margin-left: auto; }
.hero .photo-frame figcaption { color: var(--becco-ink); }

/* Shop */
.merch-card { display: flex; flex-direction: column; height: 100%; background: #fff; border: 1px solid #eadfcc; border-radius: 12px; overflow: hidden; }
.merch-image { background: var(--becco-cream); padding: 1rem 1.5rem .25rem; }
.merch-image img { width: 100%; height: auto; display: block; }
.merch-body { padding: 1.5rem 1.75rem 1.75rem; display: flex; flex-direction: column; align-items: flex-start; flex: 1; }
.merch-body .btn, .merch-buttons { margin-top: auto; }
.merch-buttons { display: flex; flex-wrap: wrap; gap: .5rem; }
.merch-buttons .btn { margin-top: 0; }
.merch-price { font-weight: 600; color: var(--becco-red); }
.merch-strip img { width: 100%; height: auto; display: block; }
.merch-photo { display: block; background: #fff; border-bottom: 1px solid #eadfcc; }
.merch-photo img { width: 100%; height: auto; aspect-ratio: 1 / 1; object-fit: contain; padding: .75rem; display: block; transition: opacity .15s; }
.merch-strip .merch-thumb { aspect-ratio: 1 / 1; object-fit: contain; padding: .4rem; background: #fff; border-radius: 10px; box-shadow: 0 4px 14px rgba(0,0,0,.08); }

/* Recipes */
.tip-card { background: #fff8e6; border: 1px solid #ecd9a8; border-left: 5px solid var(--becco-gold); border-radius: 10px; padding: 1.5rem 1.75rem; }
.recipe-card { display: flex; flex-direction: column; height: 100%; background: #fff; border: 1px solid #eadfcc; border-radius: 12px; padding: 1.75rem; color: inherit; text-decoration: none; transition: transform .15s ease, box-shadow .15s ease; }
.recipe-card:hover { transform: translateY(-3px); box-shadow: 0 10px 24px rgba(0,0,0,.08); color: inherit; }
.recipe-photo { position: relative; margin: -1.75rem -1.75rem 1.25rem; background: #fff; border-bottom: 1px solid #eadfcc; }
.recipe-photo img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: contain; padding: .75rem; display: block; }   /* same treatment as the shop photos */
.recipe-photo .recipe-badge { position: absolute; top: 1.25rem; right: 1.25rem; box-shadow: 0 2px 6px rgba(0,0,0,.25); }
.recipe-card { overflow: hidden; }
.recipe-hero { width: 100%; max-width: 420px; height: auto; aspect-ratio: 4 / 3; object-fit: contain; padding: .75rem; display: block; background: #fff; border: 1px solid #eadfcc; border-radius: 12px; }
.recipe-icon { width: 48px; height: 48px; border-radius: 50%; background: var(--becco-cream); color: var(--becco-red); display: grid; place-items: center; font-size: 1.3rem; }
.recipe-badge { background: var(--becco-green); font-weight: 600; letter-spacing: .5px; }
.recipe-by { color: var(--becco-muted); font-style: italic; }
.recipe-link { margin-top: auto; padding-top: 1rem; font-weight: 600; color: var(--becco-red); }
.recipe-ingredients li { margin-bottom: .45rem; }
.recipe-steps { padding-left: 0; list-style: none; counter-reset: step; }
.recipe-steps li { counter-increment: step; position: relative; padding-left: 3rem; margin-bottom: 1.25rem; }
.recipe-steps li::before { content: counter(step); position: absolute; left: 0; top: 0; width: 2rem; height: 2rem; border-radius: 50%; background: var(--becco-red); color: #fff; font-weight: 600; display: grid; place-items: center; font-size: .95rem; }
.recipe-pager { border-top: 1px solid #e2d4bb; }
.recipe-pager a { font-weight: 600; text-decoration: none; }
.breadcrumb-light a { color: #fff; }
.breadcrumb-light .breadcrumb-item.active, .breadcrumb-light .breadcrumb-item + .breadcrumb-item::before { color: rgba(246,239,226,.7); }

@media print {
    .site-header, .site-nav, .site-footer, .page-header nav { display: none !important; }
    .page-header { background: none; color: #000; padding: 0 0 1rem; }
    .page-header h1 { color: #000; }
    .section { padding: 1rem 0; }
    .recipe-hero { max-width: 3.5in; border: 0; padding: 0; }
}
.recipe-ingredients.feature-card { height: auto; }

/* On phones and tablets, use normal column spacing so wide-gap rows don't
   push 12px past the screen edge (which let pages wiggle sideways). */
@media (max-width: 991.98px) { .row.g-5 { --bs-gutter-x: 1.5rem; } }
