:root {
    --bg-color: #121212;
    --bg-card: #1c1c1c;
    --primary-color: #c0392b;
    --primary-light: #e67e22;
    --primary-dark: #7f0f07;
    --text-color: #e2e8f0;
    --text-light: #94a3b8;
    --border-color: #2e2e2e;
    --success-color: #2e7d32;
    --font-head: 'Outfit', sans-serif;
    --font-body: 'Roboto', sans-serif;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.header {
    background-color: #0d0d0d;
    border-bottom: 1.5px solid var(--primary-color);
    padding: 20px 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-head);
    font-weight: 700;
    font-size: 1.35rem;
    color: var(--primary-light);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 20px;
}

.nav-links a {
    color: var(--text-light);
    text-decoration: none;
    font-family: var(--font-head);
    font-size: 0.95rem;
    font-weight: 500;
    transition: color 0.25s ease;
}

.nav-links a:hover {
    color: var(--primary-light);
}

.nav-btn {
    border: 1.5px solid var(--primary-light);
    padding: 8px 16px;
    border-radius: 4px;
    color: var(--primary-light) !important;
    transition: all 0.3s;
}

.nav-btn:hover {
    background-color: var(--primary-light);
    color: white !important;
    transform: translateY(-1px);
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #2a110e 0%, var(--bg-color) 100%);
    padding: 100px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

/* CSS wood-grain texture highlight */
.hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: repeating-linear-gradient(90deg, var(--primary-color), var(--primary-color) 40px, var(--primary-light) 40px, var(--primary-light) 80px);
    opacity: 0.6;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.badge {
    background-color: rgba(230, 126, 34, 0.12);
    color: var(--primary-light);
    border: 1.5px solid rgba(230, 126, 34, 0.25);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    display: inline-block;
    margin-bottom: 20px;
}

.hero h1 {
    font-family: var(--font-head);
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 22px;
    line-height: 1.25;
    color: white;
}

.hero p {
    font-size: 1.2rem;
    color: var(--text-light);
    margin-bottom: 35px;
}

.hero-actions {
    display: flex;
    justify-content: center;
    gap: 15px;
}

/* Buttons with micro-animations */
.btn {
    display: inline-block;
    padding: 12px 26px;
    border-radius: 4px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    font-family: var(--font-head);
    transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275), background-color 0.2s, border-color 0.2s;
}

.btn:hover {
    transform: scale(1.03);
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
    border: none;
}

.btn-primary:hover {
    background-color: var(--primary-dark);
}

.btn-secondary {
    background-color: transparent;
    color: white;
    border: 2px solid var(--border-color);
}

.btn-secondary:hover {
    border-color: var(--primary-light);
    background-color: rgba(230, 126, 34, 0.05);
}

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

.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-header h2 {
    font-family: var(--font-head);
    font-size: 2.2rem;
    color: white;
    margin-bottom: 12px;
}

.section-header p {
    color: var(--text-light);
    font-size: 1.05rem;
    max-width: 600px;
    margin: 0 auto;
}

/* Grids */
.grid {
    display: grid;
    gap: 30px;
}

.grid-2 {
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
}

.grid-3 {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

/* Cards */
.card {
    background-color: var(--bg-card);
    border-radius: 6px;
    padding: 30px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    border: 1px solid var(--border-color);
    transition: transform 0.2s, border-color 0.2s;
}

.card:hover {
    border-color: var(--primary-light);
    transform: translateY(-2px);
}

.card h3 {
    font-family: var(--font-head);
    color: white;
    margin-bottom: 15px;
    font-size: 1.3rem;
}

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

.border-top-rust {
    border-top: 4px solid var(--primary-color);
}

/* Rub Matrix Planner */
.rub-matrix-box {
    background-color: var(--bg-card);
    border-radius: 6px;
    border: 1px solid var(--border-color);
    padding: 40px;
}

.rub-selectors {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 35px;
    flex-wrap: wrap;
}

.rub-btn {
    background-color: var(--bg-color);
    color: var(--text-light);
    border: 1.5px solid var(--border-color);
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
    font-family: var(--font-head);
    font-weight: 600;
    transition: all 0.2s;
}

.rub-btn:hover {
    border-color: var(--primary-light);
    color: white;
}

.rub-btn.active {
    background-color: var(--primary-light);
    border-color: var(--primary-light);
    color: white;
}

.rub-display-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 40px;
}

.rub-bars-card h3, .rub-recipe-card h3 {
    font-family: var(--font-head);
    color: white;
    font-size: 1.3rem;
    margin-bottom: 20px;
}

.rub-bar-group {
    margin-bottom: 20px;
}

.rub-bar-label {
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
    margin-bottom: 8px;
    color: var(--text-light);
}

.rub-bar-label span:last-child {
    color: white;
    font-weight: 600;
}

.rub-bar-bg {
    height: 10px;
    background-color: var(--bg-color);
    border-radius: 5px;
    overflow: hidden;
}

.rub-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color), var(--primary-light));
    border-radius: 5px;
    transition: width 0.4s ease;
}

.rub-recipe-card {
    background-color: var(--bg-color);
    border-radius: 6px;
    padding: 25px;
    border: 1px solid var(--border-color);
}

.rub-recipe-card p {
    color: var(--text-light);
    font-size: 0.92rem;
    margin-bottom: 20px;
    line-height: 1.5;
}

.rub-ingredients h4 {
    color: var(--primary-light);
    font-size: 0.95rem;
    margin-bottom: 10px;
    font-family: var(--font-head);
}

.clean-list {
    list-style: none;
}

.clean-list li {
    font-size: 0.9rem;
    margin-bottom: 8px;
    color: var(--text-light);
    position: relative;
    padding-left: 15px;
}

.clean-list li::before {
    content: '•';
    color: var(--primary-light);
    position: absolute;
    left: 0;
    font-weight: 700;
}

/* FDA Safety Corner Table */
.safety-box-left h3 {
    font-family: var(--font-head);
    color: white;
    font-size: 1.45rem;
    margin-bottom: 15px;
}

.safety-box-left p {
    color: var(--text-light);
    margin-bottom: 15px;
    font-size: 0.95rem;
}

.safety-table-card {
    padding: 20px;
}

.table-responsive {
    overflow-x: auto;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
}

.data-table th, .data-table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
    font-size: 0.9rem;
}

.data-table th {
    background-color: #1a1a1a;
    color: var(--primary-light);
    font-family: var(--font-head);
    font-weight: 600;
}

.data-table tr:hover {
    background-color: rgba(255, 255, 255, 0.02);
}

/* Newsletter Block */
.newsletter-block {
    background: radial-gradient(circle at center, #27140e 0%, var(--bg-card) 100%);
    border-radius: 6px;
    padding: 50px;
    text-align: center;
    border: 1.5px solid var(--primary-color);
}

.newsletter-content h2 {
    font-family: var(--font-head);
    font-size: 2.1rem;
    color: white;
    margin-bottom: 12px;
}

.newsletter-content p {
    color: var(--text-light);
    font-size: 1.05rem;
    max-width: 600px;
    margin: 0 auto 30px auto;
}

.signup-form {
    max-width: 650px;
    margin: 0 auto;
}

.form-inputs {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
}

.form-input {
    flex: 1;
    background-color: var(--bg-color);
    border: 2px solid var(--border-color);
    border-radius: 4px;
    padding: 12px 16px;
    color: white;
    font-family: inherit;
    font-size: 1rem;
    outline: none;
    transition: border-color 0.2s;
}

.form-input:focus {
    border-color: var(--primary-light);
}

/* Contact Details */
.border-left-rust {
    border-left: 4px solid var(--primary-color);
}

.contact-detail {
    font-size: 1.15rem !important;
    color: white !important;
    margin-top: 10px;
}

.contact-detail a {
    color: var(--primary-light);
    text-decoration: none;
}

.form-group-single {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group-single label {
    font-size: 0.95rem;
    font-weight: 600;
}

/* Legal Content */
.legal-content h1 {
    font-family: var(--font-head);
    font-size: 2.6rem;
    margin-bottom: 20px;
    color: white;
}

.legal-content h2 {
    font-family: var(--font-head);
    font-size: 1.6rem;
    margin-top: 35px;
    margin-bottom: 15px;
    color: white;
}

.legal-content p, .legal-content ul, .legal-content ol {
    color: var(--text-light);
    margin-bottom: 20px;
    font-size: 1rem;
    line-height: 1.7;
}

.legal-content ul, .legal-content ol {
    padding-left: 20px;
}

.legal-content li {
    margin-bottom: 8px;
}

/* Thank You & 404 */
.thank-you-container {
    padding: 100px 0;
}

.text-center {
    text-align: center;
}

.thank-you-badge {
    margin-bottom: 25px;
    display: inline-block;
}

.lead {
    font-size: 1.25rem;
    color: white;
    margin-bottom: 20px;
}

/* Footer */
.footer {
    background-color: #0b0b0b;
    border-top: 1px solid var(--border-color);
    padding: 70px 0 35px 0;
    font-size: 0.9rem;
}

.footer-grid {
    display: flex;
    justify-content: space-between;
    gap: 40px;
    margin-bottom: 50px;
}

.footer-brand {
    max-width: 500px;
}

.footer-brand h3 {
    font-family: var(--font-head);
    color: white;
    margin-bottom: 15px;
    font-size: 1.3rem;
}

.footer-brand p {
    color: var(--text-light);
}

.footer-links-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-links-group h4 {
    color: white;
    font-size: 1rem;
    margin-bottom: 5px;
}

.footer-links-group a {
    color: var(--text-light);
    text-decoration: none;
    transition: color 0.25s ease;
}

.footer-links-group a:hover {
    color: var(--primary-light);
}

.footer-disclosures {
    border-top: 1px solid var(--border-color);
    padding-top: 30px;
    color: #4b5563;
    font-size: 0.8rem;
    line-height: 1.5;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.footer-disclosures strong {
    color: var(--text-light);
}

/* Responsive */
@media (max-width: 768px) {
    .navbar {
        flex-direction: column;
        gap: 15px;
    }
    
    .nav-links {
        flex-direction: column;
        gap: 10px;
    }
    
    .hero h1 {
        font-size: 2.2rem;
    }
    
    .hero-actions {
        flex-direction: column;
        align-items: stretch;
    }
    
    .rub-display-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .form-inputs {
        flex-direction: column;
        gap: 10px;
    }
    
    .footer-grid {
        flex-direction: column;
        gap: 30px;
    }
}
