/* nutrition.css - Nutrition Guide page */

.nut-page {
    background: #ffffff;
    color: #232323;
}

.nut-section {
    padding: 2.5rem 0;
}

.nut-section--tight {
    padding-top: 1.75rem;
    padding-bottom: 2.25rem;
}

.nut-hero {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    align-items: center;
    gap: 2.25rem;
}

.nut-hero__body {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.nut-pill {
    display: inline-flex;
    gap: 0.5rem;
    align-items: center;
    padding: 0.5rem 1rem;
    border-radius: 999px;
    background: #ecf8f0;
    border: 1px solid #d1eede;
    color: #3cb371;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.02em;
}

.nut-hero__title {
    margin: 0;
    font-size: clamp(2.3rem, 4vw, 3.25rem);
    font-weight: 800;
}

.nut-hero__subtitle {
    margin: 0;
    color: #6d7680;
    font-size: 1.05rem;
}

.nut-hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.nut-hero__media {
    border-radius: 22px;
    border: 1px solid #e2efe7;
    background: #f8faf9;
    overflow: hidden;
    box-shadow: 0 28px 80px -38px rgba(18, 78, 46, 0.35);
}

.nut-hero__media img {
    width: 100%;
    height: auto;
    display: block;
}

.nut-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    padding: 0.75rem 1.5rem;
    border-radius: 999px;
    font-weight: 600;
    text-decoration: none;
    border: 1px solid transparent;
    text-align: center;
    transition: background 0.2s ease, border 0.2s ease, box-shadow 0.2s ease;
}

.nut-btn--primary {
    background: #62d487;
    border-color: #62d487;
    color: #ffffff;
    box-shadow: 0 14px 36px -20px rgba(98, 212, 135, 0.45);
}

.nut-btn--primary:hover {
    background: #3cb371;
    border-color: #3cb371;
}

.nut-btn--secondary {
    background: #ffffff;
    border: 1px solid #d8eadf;
    color: #232323;
}

.nut-btn--secondary:hover {
    border-color: #62d487;
    color: #3cb371;
}

.nut-card {
    background: #ffffff;
    border: 1px solid #e2efe7;
    border-radius: 20px;
    padding: 1.75rem;
    box-shadow: 0 18px 60px -36px rgba(18, 78, 46, 0.3);
}

.nut-card h2,
.nut-card h3 {
    margin: 0;
    color: #232323;
    font-weight: 700;
}

.nut-card p {
    margin: 0.75rem 0 0;
    color: #6d7680;
    font-size: 0.95rem;
}

.nut-grid {
    display: grid;
    gap: 1.15rem;
}

.nut-grid--cols-2 {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.nut-grid--cols-3 {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.nut-grid--cols-4 {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

.nut-tile {
    border-radius: 18px;
    border: 1px solid #e2efe7;
    background: linear-gradient(135deg, #f4fbf7 0%, #ffffff 100%);
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.nut-tile__header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.nut-tile__img {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #dbe7df;
    background: #ffffff;
}

.nut-tile__img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.nut-tile .nut-kpi {
    font-size: 1.3rem;
    font-weight: 700;
    color: #3cb371;
}

.nut-flow {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    align-items: center;
    margin-top: 1rem;
}

.nut-flow__pill {
    display: inline-flex;
    align-items: center;
    padding: 0.45rem 0.85rem;
    border-radius: 12px;
    border: 1px solid #dbe7df;
    background: #f8faf9;
    color: #495057;
    font-size: 0.85rem;
    font-weight: 500;
}

.nut-flow__arrow {
    color: #6d7680;
}

.nut-equation {
    border-radius: 16px;
    border: 1px dashed #dbe7df;
    background: #f8faf9;
    padding: 1rem 1.25rem;
    margin-top: 1.25rem;
    color: #495057;
}

.nut-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid #dfe8e1;
}

.nut-table th,
.nut-table td {
    padding: 0.85rem 1rem;
    border-bottom: 1px solid #dfe8e1;
}

.nut-table thead th {
    background: #f4fbf7;
    color: #232323;
    font-weight: 600;
}

.nut-table td:not(:last-child),
.nut-table th:not(:last-child) {
    border-right: 1px solid #e8f1eb;
}

.nut-table tr:last-child td {
    border-bottom: none;
}

.nut-table__cell--right {
    text-align: right;
}

.nut-bar {
    height: 12px;
    border-radius: 10px;
    background: #eef5f0;
    border: 1px solid #d8eadf;
    display: flex;
    overflow: hidden;
    margin-top: 0.75rem;
}

.nut-bar span {
    display: block;
    height: 100%;
}

.nut-list {
    margin: 0.75rem 0 0;
    padding-left: 1.15rem;
    color: #495057;
    line-height: 1.6;
}

.nut-calculator__grid {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    align-items: end;
    margin-top: 1rem;
}

.nut-input {
    width: 100%;
    padding: 0.75rem 0.95rem;
    border-radius: 12px;
    border: 1px solid #dbe7df;
    background: #ffffff;
    color: #232323;
    transition: border 0.2s ease, box-shadow 0.2s ease;
}

.nut-input:focus {
    outline: none;
    border-color: #62d487;
    box-shadow: 0 0 0 3px rgba(98, 212, 135, 0.2);
}

.nut-result {
    font-weight: 700;
    font-size: 1.15rem;
    color: #232323;
}

.nut-small {
    font-size: 0.85rem;
    color: #6d7680;
}

.nut-accordion {
    border: 1px solid #e2efe7;
    border-radius: 18px;
    overflow: hidden;
}

.nut-acc-item + .nut-acc-item {
    border-top: 1px solid #e2efe7;
}

.nut-acc-btn {
    width: 100%;
    text-align: left;
    background: #ffffff;
    border: none;
    font-weight: 600;
    color: #232323;
    padding: 1rem 1.2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
}

.nut-acc-btn span:last-child {
    transition: transform 0.2s ease;
}

.nut-acc-item[aria-expanded="true"] .nut-acc-btn span:last-child {
    transform: rotate(45deg);
}

.nut-acc-panel {
    display: none;
    padding: 0 1.2rem 1rem;
    color: #6d7680;
    font-size: 0.95rem;
}

.nut-acc-item[aria-expanded="true"] .nut-acc-panel {
    display: block;
}

.nut-cta {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    border-radius: 20px;
    border: 1px solid #e2efe7;
    background: linear-gradient(140deg, #f4fbf7 0%, #ffffff 100%);
    padding: 1.75rem;
    align-items: center;
    text-align: center;
    box-shadow: 0 20px 70px -40px rgba(18, 78, 46, 0.35);
}

.nut-cta h3 {
    margin: 0;
    font-size: 1.35rem;
}

.nut-cta p {
    margin: 0;
    color: #6d7680;
    font-size: 0.95rem;
}

.nut-muted-box {
    margin-top: 1rem;
    border-radius: 16px;
    border: 1px dashed #dbe7df;
    background: #f8faf9;
    padding: 1rem;
    color: #495057;
}

@media (max-width: 768px) {
    .nut-section {
        padding: 2.5rem 0;
    }

    .nut-card,
    .nut-note--center,
    .nut-faq {
        padding: 1.5rem;
    }

    .nut-hero__title {
        font-size: clamp(2.1rem, 7vw, 2.6rem);
    }
}

