/* itsnotgenetics.com — Custom CSS */
:root {
    --primary: #1a5632;
    --primary-dark: #0f3d22;
    --primary-light: #2a7a4a;
    --text: #2d2d2d;
    --text-light: #5a5a5a;
    --bg: #fafaf7;
    --bg-alt: #f0eeea;
    --accent: #c8a951;
    --accent-hover: #b8963e;
    --white: #ffffff;
    --border: #e0ddd6;
    --font-serif: Georgia, 'Times New Roman', serif;
    --font-sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    --max-width: 1200px;
    --radius: 8px;
    --shadow: 0 2px 12px rgba(0,0,0,0.08);
    --shadow-lg: 0 4px 24px rgba(0,0,0,0.12);
}

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

html { font-size: 16px; scroll-behavior: smooth; }

body {
    font-family: var(--font-sans);
    color: var(--text);
    background: var(--bg);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}

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

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

h1, h2, h3, h4 { font-family: var(--font-serif); color: var(--text); line-height: 1.3; }
h1 { font-size: 2.4rem; }
h2 { font-size: 1.8rem; }
h3 { font-size: 1.3rem; }

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

.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: var(--radius);
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    border: none;
    transition: all 0.2s;
    text-decoration: none;
}
.btn-primary { background: var(--accent); color: var(--text); }
.btn-primary:hover { background: var(--accent-hover); color: var(--text); }
.btn-secondary { background: var(--primary); color: var(--white); }
.btn-secondary:hover { background: var(--primary-dark); }
.btn-outline { background: transparent; border: 2px solid var(--primary); color: var(--primary); }
.btn-outline:hover { background: var(--primary); color: var(--white); }

/* ===== HEADER ===== */
.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: var(--white);
    border-bottom: 1px solid var(--border);
    box-shadow: 0 1px 4px rgba(0,0,0,0.04);
}
.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
}
.logo {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: var(--text);
}
.logo-icon { font-size: 1.5rem; }
.logo-text { font-size: 1.25rem; font-family: var(--font-serif); color: var(--primary); }
.logo-text strong { color: var(--text); }

.main-nav { display: flex; align-items: center; gap: 24px; }
.main-nav a {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text);
    padding: 4px 0;
    border-bottom: 2px solid transparent;
    transition: border-color 0.2s, color 0.2s;
}
.main-nav a:hover, .main-nav a.active {
    color: var(--primary);
    border-bottom-color: var(--primary);
}
.nav-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text);
    padding: 4px;
}

/* ===== HERO ===== */
.hero {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 60%, var(--primary-light) 100%);
    color: var(--white);
    padding: 80px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.hero::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.5;
}
.hero .container { position: relative; z-index: 1; }
.hero h1 {
    font-size: 3rem;
    color: var(--white);
    margin-bottom: 16px;
    font-weight: 700;
    letter-spacing: -0.5px;
}
.hero .subtitle {
    font-size: 1.2rem;
    opacity: 0.9;
    max-width: 640px;
    margin: 0 auto 32px;
    line-height: 1.6;
}
.hero .btn-primary { font-size: 1.05rem; padding: 14px 36px; }

/* ===== CATEGORY CARDS ===== */
.categories { padding: 60px 0; }
.categories h2 { text-align: center; margin-bottom: 8px; }
.categories .section-sub { text-align: center; color: var(--text-light); margin-bottom: 36px; font-size: 1.05rem; }
.cat-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}
.cat-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px 20px;
    text-align: center;
    transition: transform 0.2s, box-shadow 0.2s;
    text-decoration: none;
    color: var(--text);
}
.cat-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    color: var(--text);
}
.cat-card .icon { font-size: 2.2rem; margin-bottom: 12px; display: block; }
.cat-card .label { font-weight: 600; font-size: 0.95rem; }

/* ===== SPOTLIGHT ===== */
.spotlight { padding: 60px 0; background: var(--bg-alt); }
.spotlight-card {
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    display: grid;
    grid-template-columns: 1fr 1fr;
    box-shadow: var(--shadow);
}
.spotlight-img {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    min-height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 4rem;
}
.spotlight-body { padding: 40px; display: flex; flex-direction: column; justify-content: center; }
.spotlight-body .tag {
    display: inline-block;
    background: var(--primary);
    color: var(--white);
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 12px;
    width: fit-content;
}
.spotlight-body h2 { margin-bottom: 12px; font-size: 1.6rem; }
.spotlight-body p { color: var(--text-light); margin-bottom: 20px; line-height: 1.7; }

/* ===== PRODUCTS ===== */
.products { padding: 60px 0; }
.products h2 { text-align: center; margin-bottom: 8px; }
.products .section-sub { text-align: center; color: var(--text-light); margin-bottom: 36px; }
.product-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
.product-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
    display: flex;
    flex-direction: column;
    transition: box-shadow 0.2s;
}
.product-card:hover { box-shadow: var(--shadow-lg); }
.product-img {
    background: var(--bg-alt);
    height: 160px;
    border-radius: 6px;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: var(--primary);
}
.product-card h3 { font-size: 1.05rem; margin-bottom: 8px; }
.product-card p { font-size: 0.88rem; color: var(--text-light); flex: 1; margin-bottom: 16px; }
.product-card .btn-primary {
    text-align: center;
    font-size: 0.85rem;
    padding: 10px 20px;
}

/* ===== ARTICLES GRID ===== */
.latest-articles { padding: 60px 0; background: var(--bg-alt); }
.latest-articles h2 { text-align: center; margin-bottom: 36px; }
.articles-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
.article-card {
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.2s, box-shadow 0.2s;
    text-decoration: none;
    color: var(--text);
    display: block;
}
.article-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    color: var(--text);
}
.article-thumb {
    height: 180px;
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--primary-dark) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
}
.article-card-body { padding: 20px; }
.article-card-body .tag {
    display: inline-block;
    background: rgba(26,86,50,0.1);
    color: var(--primary);
    padding: 3px 10px;
    border-radius: 4px;
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}
.article-card-body h3 { font-size: 1.05rem; margin-bottom: 8px; }
.article-card-body p { font-size: 0.85rem; color: var(--text-light); margin-bottom: 8px; }
.article-card-body .date { font-size: 0.78rem; color: #999; }

/* ===== TRUST ===== */
.trust { padding: 60px 0; text-align: center; }
.trust h2 { margin-bottom: 12px; }
.trust .subtitle { color: var(--text-light); max-width: 700px; margin: 0 auto 32px; }
.trust-badges {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
}
.trust-badge {
    text-align: center;
    max-width: 140px;
}
.trust-badge .icon { font-size: 2rem; margin-bottom: 8px; display: block; }
.trust-badge .name { font-weight: 600; font-size: 0.85rem; }

/* ===== NEWSLETTER ===== */
.newsletter {
    padding: 50px 0;
    background: var(--primary);
    color: var(--white);
}
.newsletter-box { text-align: center; max-width: 600px; margin: 0 auto; }
.newsletter-box h2 { color: var(--white); margin-bottom: 8px; }
.newsletter-box p { opacity: 0.9; margin-bottom: 24px; }
.newsletter-form {
    display: flex;
    gap: 8px;
    max-width: 480px;
    margin: 0 auto;
}
.newsletter-form input {
    flex: 1;
    padding: 12px 16px;
    border: none;
    border-radius: var(--radius);
    font-size: 0.95rem;
    font-family: var(--font-sans);
}
.newsletter-form .btn-primary { white-space: nowrap; }

/* ===== FOOTER ===== */
.site-footer {
    background: var(--text);
    color: #ccc;
    padding: 48px 0 24px;
}
.footer-inner {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 32px;
}
.footer-brand .logo-text { color: var(--white); font-size: 1.2rem; display: block; margin-bottom: 8px; }
.footer-brand p { font-size: 0.88rem; color: #999; line-height: 1.6; }
.footer-links h4 { color: var(--white); font-size: 0.9rem; margin-bottom: 12px; font-family: var(--font-sans); }
.footer-links a { display: block; color: #999; font-size: 0.85rem; margin-bottom: 8px; }
.footer-links a:hover { color: var(--white); }
.footer-bottom {
    border-top: 1px solid #444;
    padding-top: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.82rem;
    color: #777;
}
.footer-bottom-links a { color: #777; margin-left: 16px; }
.footer-bottom-links a:hover { color: #ccc; }

/* ===== ARTICLE PAGE ===== */
.article-header {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
    color: var(--white);
    padding: 48px 0;
}
.article-header .category-tag {
    display: inline-block;
    background: rgba(255,255,255,0.2);
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 12px;
}
.article-header h1 { color: var(--white); font-size: 2.2rem; max-width: 800px; margin-bottom: 12px; }
.article-header .meta { opacity: 0.8; font-size: 0.9rem; }

.article-hero { margin: 0 auto; max-width: 900px; padding: 0 20px; }
.article-hero img { width: 100%; height: auto; border-radius: 8px; margin-top: -30px; box-shadow: 0 4px 20px rgba(0,0,0,0.15); }
.photo-credit { font-size: 0.75rem; color: #888; text-align: right; margin-top: 6px; }
.photo-credit a { color: #888; text-decoration: underline; }

.article-content {
    max-width: 760px;
    margin: 0 auto;
    padding: 48px 20px;
}
.article-content h2 { margin: 36px 0 16px; font-size: 1.5rem; }
.article-content h3 { margin: 28px 0 12px; }
.article-content p { margin-bottom: 16px; }
.article-content ul, .article-content ol { margin: 0 0 16px 24px; }
.article-content li { margin-bottom: 6px; }
.article-content blockquote {
    border-left: 4px solid var(--primary);
    padding: 12px 20px;
    margin: 20px 0;
    background: var(--bg-alt);
    border-radius: 0 var(--radius) var(--radius) 0;
}
.article-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
}
.article-content th, .article-content td {
    padding: 10px 14px;
    border: 1px solid var(--border);
    text-align: left;
    font-size: 0.9rem;
}
.article-content th { background: var(--bg-alt); font-weight: 600; }

/* ===== BLOG LISTING ===== */
.blog-header { padding: 48px 0; background: var(--primary); color: var(--white); text-align: center; }
.blog-header h1 { color: var(--white); margin-bottom: 8px; }
.blog-header p { opacity: 0.9; }

.filter-tabs {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: center;
    padding: 24px 0;
}
.filter-tab {
    padding: 8px 18px;
    border: 1px solid var(--border);
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    background: var(--white);
    color: var(--text);
    cursor: pointer;
    transition: all 0.2s;
}
.filter-tab:hover, .filter-tab.active {
    background: var(--primary);
    color: var(--white);
    border-color: var(--primary);
}

/* ===== ABOUT / LEGAL PAGES ===== */
.page-header {
    background: var(--primary);
    color: var(--white);
    padding: 48px 0;
    text-align: center;
}
.page-header h1 { color: var(--white); }
.page-content {
    max-width: 760px;
    margin: 0 auto;
    padding: 48px 20px;
}
.page-content h2 { margin: 32px 0 12px; }
.page-content p { margin-bottom: 16px; }
.page-content ul { margin: 0 0 16px 24px; }
.page-content li { margin-bottom: 6px; }

/* ===== MOBILE NAV ===== */
.main-nav.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: var(--white);
    border-bottom: 1px solid var(--border);
    padding: 16px 20px;
    box-shadow: var(--shadow-lg);
    gap: 12px;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .nav-toggle { display: block; }
    .main-nav { display: none; }
    .main-nav.open { display: flex; }

    .hero h1 { font-size: 2rem; }
    .hero .subtitle { font-size: 1rem; }
    .hero { padding: 50px 0; }

    .cat-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }

    .spotlight-card { grid-template-columns: 1fr; }
    .spotlight-img { min-height: 200px; }

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

    .footer-inner { grid-template-columns: 1fr 1fr; gap: 24px; }
    .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }

    .newsletter-form { flex-direction: column; }

    .article-header h1 { font-size: 1.6rem; }
}

@media (max-width: 480px) {
    h1 { font-size: 1.8rem; }
    .hero h1 { font-size: 1.7rem; }
    .cat-grid { grid-template-columns: repeat(2, 1fr); }
    .product-grid { grid-template-columns: 1fr; }
    .footer-inner { grid-template-columns: 1fr; }
    .cat-card { padding: 20px 16px; }
}
