/* allergens.css - Allergens & Safety page */

.alg-page {
    background-color: #ffffff;
    color: #232323;
}

.alg-section {
    padding: 2.5rem 0;
}

.alg-section--tight {
    padding-top: 2rem;
    padding-bottom: 2.5rem;
}

.alg-hero {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    align-items: center;
    gap: 2rem;
}

.alg-hero__body {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.alg-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: 999px;
    border: 1px solid #d1eede;
    background: #ecf8f0;
    color: #3cb371;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.02em;
}

.alg-hero__title {
    font-size: clamp(2.3rem, 4vw, 3.2rem);
    font-weight: 800;
    margin: 0;
}

.alg-hero__subtitle {
    font-size: 1.05rem;
    color: #6d7680;
    margin: 0 0 1rem;
}

.alg-hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.alg-hero__media {
    width: 100%;
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid #dfe8e1;
    background: #f8faf9;
    box-shadow: 0 24px 60px -28px rgba(19, 67, 47, 0.35);
}

.alg-hero__media img {
    width: 100%;
    height: auto;
    display: block;
}

.alg-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    padding: 0.75rem 1.5rem;
    border-radius: 999px;
    font-weight: 600;
    text-decoration: none;
    border: 1px solid transparent;
    transition: background 0.2s ease, border 0.2s ease, box-shadow 0.2s ease;
    text-align: center;
}

.alg-btn--primary {
    background: #62d487;
    border-color: #62d487;
    color: #ffffff;
    box-shadow: 0 12px 30px -20px #62d487;
}

.alg-btn--primary:hover {
    background: #3cb371;
    border-color: #3cb371;
}

.alg-btn--secondary {
    background: #ffffff;
    border: 1px solid #d9e7dd;
    color: #232323;
}

.alg-btn--secondary:hover {
    border-color: #62d487;
    color: #3cb371;
}

.alg-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(280px, 340px);
    gap: 1.5rem;
    align-items: flex-start;
}

.alg-card {
    background: #ffffff;
    border: 1px solid #e2efe7;
    border-radius: 18px;
    padding: 1.5rem;
    box-shadow: 0 14px 48px -32px rgba(27, 77, 50, 0.35);
}

.alg-card h2,
.alg-card h3 {
    margin: 0;
    color: #232323;
    font-weight: 700;
}

.alg-card p {
    margin: 0.75rem 0 0;
    color: #6d7680;
    font-size: 0.95rem;
}

.alg-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
    gap: 1rem;
    margin-top: 1.5rem;
}

.alg-item {
    border-radius: 16px;
    border: 1px solid #dbe7df;
    background: #f8faf9;
    padding: 1rem;
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 0.75rem;
    transition: border 0.15s ease, box-shadow 0.15s ease;
}

.alg-item:focus-within {
    border-color: #62d487;
    box-shadow: 0 0 0 3px rgba(98, 212, 135, 0.18);
}

.alg-item__img {
    width: 60px;
    height: 48px;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #dfe8e1;
    background: #ffffff;
}

.alg-item__img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.alg-item__label {
    font-weight: 600;
    color: #232323;
}

.alg-item__examples {
    color: #6d7680;
    font-size: 0.85rem;
    margin-top: 0.25rem;
}

.alg-switch {
    position: relative;
    width: 48px;
    height: 28px;
    justify-self: end;
    align-self: center;
}

.alg-switch input {
    position: absolute;
    opacity: 0;
    inset: 0;
    cursor: pointer;
}

.alg-switch__track {
    position: absolute;
    inset: 0;
    border-radius: 999px;
    background: #e8efeb;
    border: 1px solid #d2e3d8;
    transition: background 0.18s ease, border 0.18s ease;
}

.alg-switch__thumb {
    position: absolute;
    top: 3px;
    left: 3px;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #a7b8ad;
    transition: transform 0.18s ease, background 0.18s ease;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.alg-switch input:checked + .alg-switch__track {
    background: #62d487;
    border-color: #62d487;
}

.alg-switch input:checked + .alg-switch__track .alg-switch__thumb {
    transform: translateX(20px);
    background: #ffffff;
}

.alg-switch input:focus-visible + .alg-switch__track {
    outline: 3px solid rgba(98, 212, 135, 0.45);
    outline-offset: 2px;
}

.alg-summary__badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1rem;
}

.alg-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.4rem 0.75rem;
    border-radius: 999px;
    background: #ecf8f0;
    border: 1px solid #d1eede;
    color: #3cb371;
    font-size: 0.85rem;
    cursor: pointer;
}

.alg-summary__note {
    margin-top: 1rem;
    border-radius: 16px;
    border: 1px dashed #dbe7df;
    background: #f8faf9;
    padding: 1rem;
    font-size: 0.95rem;
    color: #495057;
}

.alg-summary__empty {
    color: #6d7680;
}

.alg-summary__actions {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-top: 1rem;
}

.alg-note {
    border-radius: 16px;
    border: 1px dashed #dbe7df;
    background: #f8faf9;
    padding: 1.25rem;
    color: #495057;
    line-height: 1.6;
}

.alg-note--warn {
    border-color: #f3d9a0;
    background: #fff5e0;
    color: #9b6b1d;
}

.alg-note--danger {
    border-color: #f3b6b6;
    background: #fff0f0;
    color: #934040;
}

.alg-card--center {
    max-width: 760px;
    margin: 0 auto;
}

.alg-note--center {
    max-width: 760px;
    margin: 0 auto;
}

.alg-flow {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-top: 1rem;
    align-items: center;
}

.alg-flow__pill {
    display: inline-flex;
    align-items: center;
    padding: 0.45rem 0.85rem;
    border-radius: 999px;
    border: 1px solid #dbe7df;
    background: #f8faf9;
    font-size: 0.85rem;
    font-weight: 500;
    color: #495057;
}

.alg-flow__arrow {
    color: #6d7680;
}

.alg-faq {
    max-width: 720px;
    margin: 0 auto;
}

.alg-accordion {
    border: 1px solid #e2efe7;
    border-radius: 16px;
    overflow: hidden;
}

.alg-acc-item + .alg-acc-item {
    border-top: 1px solid #e2efe7;
}

.alg-acc-btn {
    width: 100%;
    text-align: left;
    background: #ffffff;
    border: 0;
    padding: 1rem 1.2rem;
    font-weight: 600;
    color: #232323;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
}

.alg-acc-btn span:last-child {
    transition: transform 0.2s ease;
}

.alg-acc-item[aria-expanded="true"] .alg-acc-btn span:last-child {
    transform: rotate(45deg);
}

.alg-acc-panel {
    display: none;
    padding: 0 1.2rem 1rem;
    color: #6d7680;
    font-size: 0.95rem;
}

.alg-acc-item[aria-expanded="true"] .alg-acc-panel {
    display: block;
}

.alg-cta {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    border-radius: 18px;
    border: 1px solid #e2efe7;
    background: linear-gradient(135deg, #f4fbf7 0%, #ffffff 100%);
    padding: 1.75rem;
    align-items: center;
    text-align: center;
    box-shadow: 0 18px 60px -36px rgba(18, 78, 46, 0.35);
}

.alg-cta h3 {
    margin: 0;
    color: #232323;
}

.alg-cta p {
    margin: 0;
    color: #6d7680;
}

@media (max-width: 960px) {
    .alg-layout {
        grid-template-columns: 1fr;
    }
    .alg-card--center,
    .alg-note--center,
    .alg-faq {
        max-width: 100%;
    }
}

