/* CSS Variables */
:root {
    --color-primary: #8B0000;
    --color-primary-dark: #5C0000;
    --color-secondary: #D4AF37;
    --color-secondary-light: #F4E4A6;
    --color-bg: #FFFEF9;
    --color-bg-alt: #F8F5ED;
    --color-text: #2C2C2C;
    --color-text-light: #5A5A5A;
    --color-border: #E5DFD0;
    --font-heading: 'Georgia', serif;
    --font-body: 'Segoe UI', system-ui, -apple-system, sans-serif;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.1);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.1);
    --shadow-lg: 0 8px 24px rgba(0,0,0,0.12);
    --radius: 8px;
    --max-width: 1100px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    font-size: 17px;
    line-height: 1.7;
    color: var(--color-text);
    background: var(--color-bg);
}

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
}

/* Typography */
h1, h2, h3, h4 {
    font-family: var(--font-heading);
    line-height: 1.3;
    color: var(--color-primary-dark);
}

h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

h2 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 3px solid var(--color-secondary);
}

h3 {
    font-size: 1.4rem;
    margin-bottom: 1rem;
    color: var(--color-primary);
}

h4 {
    font-size: 1.15rem;
    margin-bottom: 0.75rem;
    color: var(--color-text);
}

p {
    margin-bottom: 1rem;
}

a {
    color: var(--color-primary);
    text-decoration: none;
    transition: color 0.2s;
}

a:hover {
    color: var(--color-secondary);
    text-decoration: underline;
}

ul, ol {
    margin-bottom: 1rem;
    padding-left: 1.5rem;
}

li {
    margin-bottom: 0.5rem;
}

/* Header */
header {
    background: linear-gradient(135deg, var(--color-primary-dark) 0%, var(--color-primary) 100%);
    color: white;
    padding: 3rem 0 2rem;
    text-align: center;
}

header h1 {
    color: white;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.tagline {
    font-size: 1.25rem;
    color: var(--color-secondary-light);
    margin-bottom: 2rem;
    font-style: italic;
}

nav ul {
    list-style: none;
    padding: 0;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.5rem 1.5rem;
}

nav a {
    color: white;
    padding: 0.5rem 1rem;
    border-radius: var(--radius);
    transition: background 0.2s;
}

nav a:hover {
    background: rgba(255,255,255,0.15);
    text-decoration: none;
    color: var(--color-secondary-light);
}

/* Sections */
.section {
    padding: 4rem 0;
    border-bottom: 1px solid var(--color-border);
}

.section:last-of-type {
    border-bottom: none;
}

/* Cards */
.supply-card,
.technique-card,
.problem-card {
    background: white;
    border-radius: var(--radius);
    padding: 2rem;
    margin-bottom: 1.5rem;
    box-shadow: var(--shadow-sm);
    border-left: 4px solid var(--color-secondary);
}

.supply-card h3,
.technique-card h3,
.problem-card h3 {
    margin-top: 0;
}

/* Tip & History Boxes */
.tip-box,
.history-box {
    background: var(--color-bg-alt);
    border-radius: var(--radius);
    padding: 1.5rem;
    margin: 1.5rem 0;
}

.tip-box {
    border-left: 4px solid var(--color-secondary);
}

.history-box {
    border: 1px dashed var(--color-border);
}

.history-box h3 {
    font-size: 1.1rem;
    margin-bottom: 0.75rem;
}

/* Benefit List */
.benefit-list {
    list-style: none;
    padding: 0;
}

.benefit-list li {
    padding: 0.75rem 0 0.75rem 2rem;
    position: relative;
}

.benefit-list li::before {
    content: '✦';
    position: absolute;
    left: 0;
    color: var(--color-secondary);
}

/* Steps */
.steps {
    counter-reset: step;
    list-style: none;
    padding: 0;
}

.steps li {
    padding: 1rem 0 1rem 3.5rem;
    position: relative;
    border-left: 2px solid var(--color-border);
    margin-left: 1rem;
}

.steps li::before {
    counter-increment: step;
    content: counter(step);
    position: absolute;
    left: -1.25rem;
    top: 1rem;
    width: 2.5rem;
    height: 2.5rem;
    background: var(--color-primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1rem;
}

.steps li strong {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--color-primary-dark);
}

.steps li p {
    margin-bottom: 0;
    color: var(--color-text-light);
}

/* Temperature Table */
.temp-table {
    overflow-x: auto;
    margin: 1.5rem 0;
}

table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

th, td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid var(--color-border);
}

th {
    background: var(--color-primary);
    color: white;
    font-weight: 600;
}

tr:last-child td {
    border-bottom: none;
}

tr:hover td {
    background: var(--color-bg-alt);
}

/* Application Grid */
.application-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.application-item {
    background: white;
    padding: 1.5rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    border-top: 3px solid var(--color-secondary);
}

.application-item h3 {
    font-size: 1.15rem;
    margin-bottom: 0.75rem;
}

.application-item p {
    margin-bottom: 0;
    color: var(--color-text-light);
    font-size: 0.95rem;
}

/* Product Grid */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.product-card {
    background: white;
    border-radius: var(--radius);
    padding: 1.75rem;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--color-border);
    transition: transform 0.2s, box-shadow 0.2s;
}

.product-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.product-card h3 {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--color-secondary);
    margin-bottom: 0.5rem;
}

.product-card h4 {
    font-size: 1.2rem;
    color: var(--color-primary-dark);
    margin-bottom: 1rem;
}

.product-card p {
    font-size: 0.95rem;
    color: var(--color-text-light);
}

.product-link {
    display: inline-block;
    background: var(--color-primary);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius);
    font-weight: 500;
    margin-top: 0.5rem;
    transition: background 0.2s;
}

.product-link:hover {
    background: var(--color-primary-dark);
    color: white;
    text-decoration: none;
}

/* FAQ */
.faq-item {
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--color-border);
}

.faq-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.faq-item h3 {
    font-size: 1.15rem;
    margin-bottom: 0.75rem;
    color: var(--color-primary-dark);
}

.faq-item p {
    color: var(--color-text-light);
    margin-bottom: 0;
}

/* Footer */
footer {
    background: var(--color-primary-dark);
    color: rgba(255,255,255,0.9);
    padding: 2.5rem 0;
    text-align: center;
    margin-top: 2rem;
}

footer p {
    margin-bottom: 0.5rem;
}

.affiliate-disclosure {
    font-size: 0.85rem;
    color: rgba(255,255,255,0.7);
    max-width: 600px;
    margin: 0.5rem auto 0;
}

/* Responsive */
@media (max-width: 768px) {
    body {
        font-size: 16px;
    }

    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.6rem;
    }

    header {
        padding: 2rem 0 1.5rem;
    }

    nav ul {
        gap: 0.25rem 0.75rem;
    }

    nav a {
        padding: 0.4rem 0.75rem;
        font-size: 0.9rem;
    }

    .section {
        padding: 2.5rem 0;
    }

    .supply-card,
    .technique-card,
    .problem-card {
        padding: 1.5rem;
    }

    .steps li {
        padding-left: 3rem;
    }

    .product-grid {
        grid-template-columns: 1fr;
    }

    table {
        font-size: 0.9rem;
    }

    th, td {
        padding: 0.75rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }

    h1 {
        font-size: 1.75rem;
    }

    nav ul {
        flex-direction: column;
        align-items: center;
    }

    .application-grid {
        grid-template-columns: 1fr;
    }
}
