﻿/* Shared marketing / public landing patterns (see also PublicHomeLanding.razor.css). */

@font-face {
    font-family: "Bahnschrift";
    font-style: normal;
    font-weight: 700;
    src: local("Bahnschrift Bold"),
         local("Bahnschrift SemiBold"),
         local("Bahnschrift");
}

.public-page .hero-headline .hero-headline-brand.brand-wordmark,
.public-page .hero-headline .hero-headline-brand.brand-wordmark .brand-wordmark-local,
.public-page .hero-headline .hero-headline-brand.brand-wordmark .brand-wordmark-yn {
    font-family: "Bahnschrift", "Barlow Semi Condensed", "DIN Alternate", "Segoe UI", sans-serif;
    font-size: 1.2em;
    font-weight: 700;
    letter-spacing: -0.02em;
    text-transform: lowercase;
}

.public-page .hero-headline .brand-wordmark-local {
    color: #0f4ea3;
}

.public-page .hero-headline .brand-wordmark-yn {
    color: #4cab34;
}

.public-page h1 {
    margin: 0 0 0.85rem;
    font-size: clamp(1.65rem, 3vw, 2.15rem);
    font-weight: 800;
    /* Keep room for descenders (g, y) — tight 1.15 overlaps the lead on refresh paint. */
    line-height: 1.3;
    padding-bottom: 0.12em;
    background: linear-gradient(90deg, #0e6eaf 0%, #0f4ea3 42%, #4cab34 88%, #86c22b 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.public-page h1.public-title-with-brand,
.public-page h1.hero-headline {
    background: none;
    -webkit-background-clip: unset;
    background-clip: unset;
    color: #1d3557;
}

.public-page h1 .brand-wordmark-local {
    color: #0f4ea3;
}

.public-page h1 .brand-wordmark-yn {
    color: #4cab34;
}

.public-page h2 {
    margin: 1.35rem 0 0.65rem;
    font-size: 1.2rem;
    font-weight: 700;
    line-height: 1.25;
    background: linear-gradient(90deg, #0e6eaf 0%, #0f4ea3 48%, #4cab34 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.public-page h2:first-child {
    margin-top: 0;
}

.public-page .public-lead {
    color: #3d5168;
    font-size: 1.05rem;
    line-height: 1.55;
    margin: 0;
    max-width: 62ch;
}

.public-media-grid,
.public-contact-grid {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
}

.public-story-card img,
.public-split-panel img {
    border-radius: 0.75rem;
    display: block;
    height: auto;
    margin-bottom: 0.85rem;
    width: 100%;
}

.public-split-panel {
    display: grid;
    gap: 1.25rem;
    grid-template-columns: minmax(0, 1.2fr) minmax(12rem, 18rem);
    align-items: start;
}

.public-cta-panel {
    text-align: center;
}

.public-cta-panel .public-lead {
    margin-inline: auto;
}

.public-cta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: center;
    margin-top: 1rem;
}

@media (max-width: 700px) {
    .public-split-panel {
        grid-template-columns: 1fr;
    }
}

.marketing-grid {    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
    margin-top: 1.25rem;
}

.marketing-card {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(245, 251, 255, 0.88));
    border: 1px solid rgba(13, 78, 162, 0.12);
    border-radius: 1rem;
    box-shadow: 0 24px 40px rgba(12, 82, 152, 0.08);
    padding: 1.1rem;
}

.marketing-card h2 {
    margin: 0 0 0.65rem;
    font-size: 1.12rem;
    font-weight: 700;
    background: linear-gradient(90deg, #0e6eaf 0%, #0f4ea3 48%, #4cab34 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.marketing-list {
    display: grid;
    gap: 0.45rem;
    margin: 0;
    padding-left: 1.15rem;
}

.whatsapp-contact-fab {
    position: fixed;
    right: 1.25rem;
    bottom: 1.25rem;
    z-index: 1040;
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.8rem 1rem;
    border-radius: 999px;
    background: #25d366;
    color: #fff;
    text-decoration: none;
    box-shadow: 0 16px 32px rgba(0, 0, 0, 0.18);
    font-weight: 600;
}

.whatsapp-contact-fab:hover {
    color: #fff;
    background: #1ebe57;
}

.whatsapp-contact-fab-icon {
    display: inline-flex;
    width: 1.5rem;
    height: 1.5rem;
    flex-shrink: 0;
}

@media (max-width: 640px) {
    .whatsapp-contact-fab-label {
        display: none;
    }

    .whatsapp-contact-fab {
        width: 3.5rem;
        height: 3.5rem;
        justify-content: center;
        padding: 0;
    }
}

/* ===== Printable /templates record sheets ===== */

.template-sheet {
    background: #fff;
    color: #111;
}

.template-sheet table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.85rem;
}

.template-sheet th,
.template-sheet td {
    border: 1px solid #444;
    padding: 0.35rem 0.45rem;
    text-align: left;
    vertical-align: top;
}

.template-sheet thead th {
    background: #f0f2f5;
    font-weight: 600;
}

.template-sheet .template-fill {
    min-width: 3.5rem;
    height: 1.6rem;
}

.template-sheet .template-tick {
    width: 2.2rem;
    text-align: center;
}

.template-sheet-title {
    font-weight: 700;
    font-size: 1.05rem;
    margin-bottom: 0.25rem;
}

.template-sheet-meta {
    display: flex;
    gap: 2rem;
    margin: 0.5rem 0 0.75rem;
    font-size: 0.9rem;
}

.template-sheet-meta span {
    border-bottom: 1px solid #444;
    min-width: 12rem;
    display: inline-block;
}

.template-allergen-table th.template-allergen-col {
    writing-mode: vertical-rl;
    transform: rotate(180deg);
    font-size: 0.7rem;
    padding: 0.3rem 0.15rem;
    text-align: left;
}

@media print {
    .public-site-header,
    .public-site-footer,
    .public-cta-panel,
    .whatsapp-contact-fab,
    .cookie-banner,
    .template-no-print,
    #blazor-error-ui {
        display: none !important;
    }

    body,
    .page,
    main,
    .content {
        background: #fff !important;
        padding: 0 !important;
        margin: 0 !important;
    }

    .card-panel {
        box-shadow: none !important;
        border: none !important;
        padding: 0 !important;
    }
}
.public-breadcrumbs {
    max-width: 72rem;
    margin: 0 auto 0.75rem;
    padding: 0 1rem;
    color: #5b6875;
    font-size: 0.875rem;
}

.public-breadcrumbs ol {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.public-breadcrumbs li:not(:last-child)::after {
    content: ">";
    margin-left: 0.35rem;
    color: #8b98a5;
}

.public-breadcrumbs a {
    color: inherit;
}
.guide-article { max-width: 900px; margin-inline: auto; }
.guide-eyebrow, .guide-updated { color: var(--bs-secondary-color); font-size: .9rem; }
.guide-contents ul { columns: 2; margin: .75rem 0 0; }
.guide-image-panel { margin: 0; }
.guide-image-panel img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; border-radius: .5rem; }
.guide-image-panel figcaption { color: var(--bs-secondary-color); font-size: .875rem; margin-top: .5rem; }
.guide-article-section h2 { scroll-margin-top: 5rem; }
.guide-faq-section details { border-top: 1px solid var(--bs-border-color); padding: .85rem 0; }
.guide-faq-section details:last-child { border-bottom: 1px solid var(--bs-border-color); }
.guide-faq-section summary { cursor: pointer; font-weight: 600; }
.guide-diagram-track { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.guide-diagram-step { display: grid; gap: .35rem; padding: 1rem; border: 1px solid var(--bs-border-color); border-radius: .6rem; background: var(--bs-tertiary-bg); }
.guide-diagram-number { display: grid; place-items: center; width: 2rem; height: 2rem; border-radius: 50%; background: var(--bs-primary); color: #fff; font-weight: 700; }
.guide-diagram-step span:last-child { color: var(--bs-secondary-color); font-size: .9rem; }
@media (max-width: 700px) { .guide-contents ul { columns: 1; } }

.sensor-alert-demo {
    margin: 1rem 0 1.25rem;
    display: grid;
    gap: 0.65rem;
    max-width: 36rem;
}

.sensor-alert-toggle {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.sensor-alert-ok,
.sensor-alert-hot {
    display: none;
    padding: 0.85rem 1rem;
    border-radius: 0.65rem;
    line-height: 1.4;
}

.sensor-alert-ok span,
.sensor-alert-hot span {
    display: block;
    font-size: 0.92rem;
}

.sensor-alert-ok {
    display: block;
    background: #edf8ef;
    border: 1px solid #4cab34;
    color: #1d4d28;
}

.sensor-alert-toggle:checked ~ .sensor-alert-ok {
    display: none;
}

.sensor-alert-toggle:checked ~ .sensor-alert-hot {
    display: block;
    background: #fff1f0;
    border: 1px solid #c2410c;
    color: #7c2d12;
}
@media (max-width: 700px) { .guide-diagram-track { grid-template-columns: 1fr; } }
