/* ===== Provenance Website ===== */

/* --- Variables --- */
:root {
    --forest-deep: #1A2E1F;
    --forest-mid: #2C4A33;
    --sage: #4A7856;
    --sage-mid: #6B9E7A;
    --sage-light: #A8C9B0;
    --teal: #2A8074;
    --teal-light: #5BB5A8;

    --cream: #F4EFE6;
    --warm-white: #FAFAF7;
    --parchment: #EDE8DF;
    --slate: #3A4D3E;
    --slate-light: #8A9E8F;

    --score-critical: #C44D3F;
    --score-poor: #D4894A;
    --score-fair: #B5A84C;
    --score-good: #4A7856;

    --font-display: 'Cormorant Garamond', Georgia, serif;
    --font-body: 'DM Sans', -apple-system, sans-serif;

    --radius: 14px;
    --radius-sm: 8px;
}

/* --- Reset --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    color: var(--slate);
    background: var(--warm-white);
    -webkit-font-smoothing: antialiased;
}

a { color: var(--teal); text-decoration: none; }
a:hover { color: var(--teal-light); }

img { max-width: 100%; height: auto; }

ul { list-style: none; }

/* --- Layout --- */
.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 24px;
}

.container-narrow {
    max-width: 680px;
}

/* --- Nav --- */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: rgba(250, 250, 247, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(168, 201, 176, 0.3);
}

.nav-inner {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 24px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.nav-logo {
    width: 36px;
    height: 36px;
    border-radius: 8px;
}

.nav-title {
    font-family: var(--font-display);
    font-size: 22px;
    font-weight: 600;
    color: var(--forest-deep);
}

/* --- Buttons --- */
.btn {
    display: inline-block;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 15px;
    padding: 10px 24px;
    border-radius: var(--radius-sm);
    text-decoration: none;
    transition: all 0.2s ease;
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: var(--forest-deep);
    color: var(--cream);
}
.btn-primary:hover {
    background: var(--forest-mid);
    color: var(--cream);
    transform: translateY(-1px);
}

.btn-sm { padding: 8px 18px; font-size: 14px; }
.btn-lg { padding: 14px 32px; font-size: 16px; }

/* --- Hero --- */
.hero {
    padding: 140px 0 80px;
    text-align: center;
    background: linear-gradient(180deg, var(--warm-white) 0%, var(--cream) 100%);
}

.hero-icon {
    width: 100px;
    height: 100px;
    border-radius: 22px;
    box-shadow: 0 8px 32px rgba(26, 46, 31, 0.12);
    margin-bottom: 28px;
}

.hero-title {
    font-family: var(--font-display);
    font-size: clamp(40px, 7vw, 64px);
    font-weight: 700;
    color: var(--forest-deep);
    line-height: 1.1;
    margin-bottom: 12px;
}

.text-gradient {
    background: linear-gradient(135deg, var(--teal) 0%, var(--sage) 50%, var(--teal-light) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-tagline {
    font-family: var(--font-display);
    font-size: clamp(18px, 3vw, 24px);
    color: var(--sage);
    font-weight: 400;
    margin-bottom: 20px;
    letter-spacing: 1px;
}

.hero-description {
    font-size: 17px;
    color: var(--slate);
    max-width: 520px;
    margin: 0 auto 32px;
    line-height: 1.7;
}

/* --- Divider --- */
.divider {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px 0;
}

.divider::before,
.divider::after {
    content: '';
    flex: 1;
    max-width: 120px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--sage-light), transparent);
}

.divider-diamond {
    width: 8px;
    height: 8px;
    background: var(--sage-light);
    transform: rotate(45deg);
    margin: 0 16px;
}

/* --- Sections --- */
.section {
    padding: 80px 0;
}

.section-alt {
    background: var(--cream);
}

.section-title {
    font-family: var(--font-display);
    font-size: clamp(28px, 4vw, 40px);
    font-weight: 700;
    color: var(--forest-deep);
    text-align: center;
    margin-bottom: 48px;
}

/* --- Grid --- */
.grid {
    display: grid;
    gap: 24px;
}

.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }

/* --- Cards --- */
.card {
    background: var(--parchment);
    border-radius: var(--radius);
    padding: 32px 28px;
    text-align: center;
    transition: transform 0.2s ease;
}

.card:hover { transform: translateY(-4px); }

.card-icon {
    width: 48px;
    height: 48px;
    line-height: 48px;
    border-radius: 50%;
    background: var(--forest-deep);
    color: var(--cream);
    font-family: var(--font-display);
    font-size: 22px;
    font-weight: 700;
    margin: 0 auto 20px;
}

.card h3 {
    font-family: var(--font-display);
    font-size: 22px;
    font-weight: 600;
    color: var(--forest-deep);
    margin-bottom: 12px;
}

.card p {
    font-size: 15px;
    color: var(--slate);
    line-height: 1.6;
}

.feature-card {
    background: var(--warm-white);
    border: 1px solid rgba(168, 201, 176, 0.3);
    border-radius: var(--radius);
    padding: 28px 24px;
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.feature-card:hover {
    transform: translateY(-4px);
    border-color: var(--teal);
}

.feature-card h3 {
    font-family: var(--font-display);
    font-size: 20px;
    font-weight: 600;
    color: var(--teal);
    margin-bottom: 10px;
}

.feature-card p {
    font-size: 15px;
    color: var(--slate);
    line-height: 1.6;
}

/* --- CTA --- */
.cta-section {
    text-align: center;
}

.cta-logo {
    width: 80px;
    height: 80px;
    border-radius: 18px;
    margin-bottom: 24px;
    box-shadow: 0 4px 16px rgba(26, 46, 31, 0.1);
}

/* --- Footer --- */
.footer {
    padding: 40px 0;
    text-align: center;
    border-top: 1px solid rgba(168, 201, 176, 0.3);
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 32px;
    margin-bottom: 20px;
}

.footer-links a {
    font-size: 14px;
    color: var(--slate-light);
}

.footer-links a:hover { color: var(--teal); }

.footer-legal {
    font-size: 12px;
    color: var(--slate-light);
    margin-bottom: 8px;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.footer-copyright {
    font-size: 13px;
    color: var(--slate-light);
}

/* ===== Product Page ===== */

.product-page {
    padding: 80px 0 60px;
}

.product-header {
    display: flex;
    gap: 28px;
    align-items: flex-start;
    margin-bottom: 28px;
}

.product-image-wrap {
    flex-shrink: 0;
    width: 180px;
    height: 180px;
    border-radius: var(--radius);
    background: var(--parchment);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.product-image {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.product-header-info {
    flex: 1;
    padding-top: 8px;
}

.product-name {
    font-family: var(--font-display);
    font-size: clamp(24px, 4vw, 32px);
    font-weight: 700;
    color: var(--forest-deep);
    line-height: 1.2;
    margin-top: 6px;
    text-transform: uppercase;
}

.product-category {
    display: inline-block;
    font-size: 13px;
    color: var(--slate-light);
    background: var(--parchment);
    padding: 4px 12px;
    border-radius: 20px;
    margin-top: 10px;
}

/* --- Labels --- */
.label-caps {
    display: block;
    font-size: 11px;
    font-weight: 600;
    color: var(--slate-light);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 4px;
}

/* --- Score Card --- */
.score-card {
    background: var(--parchment);
    border-radius: var(--radius);
    padding: 24px 28px;
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 20px;
}

.score-display {
    display: flex;
    align-items: baseline;
}

.score-number {
    font-family: var(--font-display);
    font-size: 52px;
    font-weight: 700;
    line-height: 1;
}

.score-out-of {
    font-family: var(--font-display);
    font-size: 22px;
    color: var(--slate-light);
    margin-left: 2px;
}

.score-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.score-label {
    font-family: var(--font-display);
    font-size: 20px;
    font-weight: 600;
}

/* --- Content Cards --- */
.content-card {
    background: var(--parchment);
    border-radius: var(--radius);
    padding: 24px 28px;
    margin-bottom: 20px;
}

.content-card p {
    font-size: 15px;
    line-height: 1.7;
    color: var(--slate);
}

.text-display {
    font-family: var(--font-display);
    font-size: 20px;
    font-weight: 600;
    color: var(--teal);
}

/* --- Tags --- */
.tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 8px;
}

.tag {
    font-size: 13px;
    font-weight: 500;
    color: var(--forest-deep);
    background: rgba(168, 201, 176, 0.25);
    padding: 5px 14px;
    border-radius: 20px;
}

/* --- Ingredients --- */
.ingredients-list {
    font-size: 14px !important;
    color: var(--slate-light) !important;
}

/* --- Sources --- */
.sources-list {
    margin-top: 8px;
}

.sources-list li {
    padding: 6px 0;
    border-bottom: 1px solid rgba(168, 201, 176, 0.2);
}

.sources-list li:last-child { border-bottom: none; }

.sources-list a {
    font-size: 14px;
    word-break: break-word;
}

/* --- Product CTA --- */
.product-cta {
    display: flex;
    align-items: center;
    gap: 20px;
    background: var(--cream);
    border: 1px solid rgba(168, 201, 176, 0.3);
    border-radius: var(--radius);
    padding: 24px 28px;
    margin-top: 40px;
}

.product-cta-icon {
    width: 56px;
    height: 56px;
    border-radius: 12px;
    flex-shrink: 0;
}

.product-cta-text {
    font-size: 15px;
    font-weight: 500;
    color: var(--forest-deep);
    margin-bottom: 10px;
}

/* ===== Legal Pages ===== */

.legal-page {
    padding: 100px 0 60px;
}

.legal-page h1 {
    font-family: var(--font-display);
    font-size: clamp(32px, 5vw, 44px);
    font-weight: 700;
    color: var(--forest-deep);
    margin-bottom: 8px;
}

.legal-updated {
    font-size: 14px;
    color: var(--slate-light);
    margin-bottom: 40px;
}

.legal-page h2 {
    font-family: var(--font-display);
    font-size: 24px;
    font-weight: 600;
    color: var(--forest-deep);
    margin-top: 36px;
    margin-bottom: 12px;
}

.legal-page h3 {
    font-size: 17px;
    font-weight: 600;
    color: var(--forest-mid);
    margin-top: 20px;
    margin-bottom: 8px;
}

.legal-page p {
    font-size: 15px;
    line-height: 1.7;
    color: var(--slate);
    margin-bottom: 12px;
}

.legal-page ul {
    list-style: disc;
    padding-left: 24px;
    margin-bottom: 12px;
}

.legal-page li {
    font-size: 15px;
    line-height: 1.7;
    color: var(--slate);
    margin-bottom: 6px;
}

/* ===== Animations ===== */

.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ===== Responsive ===== */

@media (max-width: 768px) {
    .grid-2, .grid-3 {
        grid-template-columns: 1fr;
    }

    .hero { padding: 120px 0 60px; }
    .section { padding: 60px 0; }

    .product-header {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .product-image-wrap {
        width: 160px;
        height: 160px;
    }

    .score-card {
        flex-direction: column;
        text-align: center;
    }

    .product-cta {
        flex-direction: column;
        text-align: center;
    }
}
