/**
 * Programmatic SEO for Willkin Coffee
 * Uses theme design system classes — no inline styles needed.
 * Loaded via wp_enqueue_style only on programmatic pages.
 */

.willkin-export-page,
.willkin-supply-page,
.willkin-price-page,
.willkin-coffee-page {
    max-width: 900px;
    margin: 0 auto;
    padding: 40px 24px;
    line-height: 1.8;
}

/* Hero */
.willkin-hero {
    border-radius: var(--radius-lg);
    padding: 50px 40px;
    margin-bottom: 30px;
    color: var(--white);
}
.willkin-hero--green { background: linear-gradient(135deg, var(--green) 0%, #061a10 100%); }
.willkin-hero--gold { background: linear-gradient(135deg, var(--gold) 0%, #b8942f 100%); }
.willkin-hero--dark { background: linear-gradient(135deg, #1a1a1a 0%, #333 100%); }
.willkin-hero__label {
    font-size: .8rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    opacity: .7;
    margin-bottom: 10px;
}
.willkin-hero h1 {
    font-family: var(--font-display);
    font-size: 2.2rem;
    margin: 0 0 15px;
    line-height: 1.2;
    color: var(--white);
}
.willkin-hero p {
    font-size: 1.1rem;
    opacity: .9;
    max-width: 650px;
}

/* Cards */
.willkin-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 24px;
    margin-bottom: 20px;
}
.willkin-card--alt {
    background: var(--offwhite);
    border: 1px solid var(--border);
}
.willkin-card h2 {
    font-family: var(--font-display);
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--green);
    margin: 0 0 15px;
}
.willkin-card h3 {
    color: var(--green);
    margin: 0 0 15px;
}
.willkin-card p {
    font-size: .95rem;
    color: var(--muted);
    line-height: 1.7;
    margin-bottom: 16px;
}

/* Grid */
.willkin-grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin-bottom: 30px;
}

/* Table */
.willkin-table {
    width: 100%;
    font-size: .95rem;
    border-collapse: collapse;
}
.willkin-table td {
    padding: 6px 0;
}
.willkin-table td:first-child {
    color: var(--muted);
}
.willkin-table td:last-child {
    font-weight: 600;
}
.willkin-table .highlight {
    color: var(--gold);
    font-weight: 700;
}

/* Lists */
.willkin-checklist {
    list-style: none;
    padding: 0;
    margin: 0;
    font-size: .95rem;
}
.willkin-checklist li {
    padding: 8px 0;
}
.willkin-checklist li::before {
    content: "✓ ";
    color: var(--accent);
    font-weight: 700;
}

/* Pricing table */
.willkin-pricing-table {
    width: 100%;
    border-collapse: collapse;
}
.willkin-pricing-table thead th {
    background: var(--green);
    color: var(--white);
    padding: 12px;
    text-align: left;
}
.willkin-pricing-table tbody td {
    padding: 12px;
    border-bottom: 1px solid var(--border);
}
.willkin-pricing-table .price {
    font-weight: 700;
    color: var(--gold);
}

/* Product cards grid */
.willkin-product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 16px;
    margin-bottom: 30px;
}
.willkin-product-grid .product-card-mini {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    text-decoration: none;
}
.willkin-product-grid .product-card-mini:hover {
    box-shadow: var(--shadow-md);
}
.willkin-product-grid .product-card-mini img {
    width: 100%;
    height: 140px;
    object-fit: cover;
}
.willkin-product-grid .product-card-mini-body {
    padding: 14px;
}
.willkin-product-grid .product-card-mini-body .title {
    font-size: .9rem;
    font-weight: 600;
    color: var(--text);
}
.willkin-product-grid .product-card-mini-body .price {
    color: var(--gold);
    font-weight: 700;
    margin-top: 6px;
}

/* RFQ section */
.willkin-rfq-section {
    background: var(--offwhite);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 30px;
    margin: 30px 0;
}
.willkin-rfq-section h2 {
    margin: 0 0 5px;
}
.willkin-rfq-section p {
    color: var(--muted);
    margin-bottom: 20px;
}

/* Footnote */
.willkin-footnote {
    font-size: .8rem;
    color: var(--muted-lite);
    margin-top: 12px;
}

/* Responsive */
@media (max-width: 768px) {
    .willkin-grid-2 {
        grid-template-columns: 1fr;
    }
    .willkin-hero {
        padding: 30px 20px;
    }
    .willkin-hero h1 {
        font-size: 1.6rem;
    }
}
