/*
Theme Name: AuraDCA
Theme URI: https://auradca.com
Author: Benefitas MB
Author URI: https://auradca.com
Description: Official AuraDCA theme — research-grade sodium dichloroacetate. Clean, scientific, trust-focused design.
Version: 1.0.0
License: GNU General Public License v2 or later
Text Domain: auradca
Tags: woocommerce, ecommerce, research, supplements
*/

/* ============================================================
   RESET & BASE
============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
    --navy:        #1F3864;
    --accent:      #1a56db;
    --accent-light:#e8f0fe;
    --green:       #0d9f6e;
    --green-light: #e6f7f2;
    --white:       #ffffff;
    --off-white:   #f7f8f9;
    --ice:         #eef2f5;
    --border:      #dde3e9;
    --text:        #0d1117;
    --text-sec:    #4a5568;
    --text-muted:  #8a96a3;
    --line:        rgba(13,17,23,0.08);
    --radius:      12px;
    --shadow:      0 4px 24px rgba(0,0,0,0.08);
}

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

body {
    font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--text);
    background: var(--white);
    -webkit-font-smoothing: antialiased;
    line-height: 1.6;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ============================================================
   TYPOGRAPHY
============================================================ */
h1, h2, h3, h4, h5, h6 {
    font-family: 'DM Serif Display', Georgia, serif;
    line-height: 1.15;
    letter-spacing: -0.5px;
    color: var(--text);
}

h1 { font-size: clamp(32px, 5vw, 56px); }
h2 { font-size: clamp(24px, 3.5vw, 40px); }
h3 { font-size: clamp(18px, 2.5vw, 26px); }
h4 { font-size: 18px; font-family: 'DM Sans', sans-serif; font-weight: 700; }

p { font-size: 16px; line-height: 1.75; color: var(--text-sec); margin-bottom: 16px; }

.mono {
    font-family: 'Space Mono', 'Courier New', monospace;
    font-size: 13px;
    letter-spacing: 0.04em;
}

/* ============================================================
   LAYOUT
============================================================ */
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.container--narrow { max-width: 800px; margin: 0 auto; padding: 0 24px; }
.section { padding: 80px 0; }
.section--sm { padding: 48px 0; }
.section--dark { background: #0d1117; }
.section--ice { background: var(--ice); }
.section--off { background: var(--off-white); }

/* ============================================================
   NAVIGATION
============================================================ */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--line);
    height: 64px;
    display: flex;
    align-items: center;
}

.nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

.nav-logo {
    font-family: 'DM Serif Display', serif;
    font-size: 22px;
    color: var(--text);
    text-decoration: none;
    letter-spacing: -0.5px;
}

.nav-logo span { color: var(--accent); }

.nav-links {
    display: flex;
    align-items: center;
    gap: 32px;
    list-style: none;
}

.nav-links a {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-sec);
    text-decoration: none;
    transition: color 0.2s;
}

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

.nav-cta {
    background: var(--navy);
    color: white !important;
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
}

.nav-cta:hover { background: var(--accent) !important; text-decoration: none !important; }

/* Mobile menu toggle */
.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 8px;
}

.nav-toggle span {
    width: 24px;
    height: 2px;
    background: var(--text);
    border-radius: 2px;
    transition: all 0.3s;
}

/* ============================================================
   BUTTONS
============================================================ */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s;
    cursor: pointer;
    border: none;
}

.btn--primary { background: var(--navy); color: white; }
.btn--primary:hover { background: var(--accent); color: white; text-decoration: none; }
.btn--outline { background: transparent; color: var(--navy); border: 2px solid var(--navy); }
.btn--outline:hover { background: var(--navy); color: white; text-decoration: none; }
.btn--white { background: white; color: var(--navy); }
.btn--white:hover { background: var(--ice); color: var(--navy); text-decoration: none; }
.btn--green { background: var(--green); color: white; }
.btn--green:hover { background: #0a8a5e; color: white; text-decoration: none; }
.btn--lg { padding: 18px 36px; font-size: 16px; }

/* ============================================================
   HERO
============================================================ */
.hero {
    background: #0d1117;
    position: relative;
    overflow: hidden;
    padding: 100px 0;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.02) 1px, transparent 1px);
    background-size: 48px 48px;
}

.hero-inner {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
}

.hero-eyebrow {
    font-family: 'Space Mono', monospace;
    font-size: 11px;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 16px;
}

.hero h1 { color: white; margin-bottom: 20px; }
.hero h1 em { color: var(--accent); font-style: italic; }

.hero-subtitle {
    font-size: 18px;
    color: rgba(255,255,255,0.6);
    margin-bottom: 36px;
    font-weight: 300;
    line-height: 1.7;
}

.hero-stats {
    display: flex;
    gap: 32px;
    margin-bottom: 40px;
    padding-top: 32px;
    border-top: 1px solid rgba(255,255,255,0.08);
}

.hero-stat-num {
    font-family: 'Space Mono', monospace;
    font-size: 24px;
    font-weight: 700;
    color: white;
}

.hero-stat-label {
    font-size: 12px;
    color: rgba(255,255,255,0.4);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-top: 4px;
}

.hero-buttons { display: flex; gap: 16px; flex-wrap: wrap; }

/* ============================================================
   TRUST BAR
============================================================ */
.trust-bar {
    background: var(--off-white);
    border-bottom: 1px solid var(--border);
    padding: 16px 0;
}

.trust-bar-inner {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 48px;
    flex-wrap: wrap;
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-sec);
}

.trust-item svg { color: var(--green); flex-shrink: 0; }

/* ============================================================
   FEATURES GRID
============================================================ */
.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
}

.feature-card {
    text-align: center;
    padding: 32px 20px;
}

.feature-icon {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.feature-card h4 { margin-bottom: 10px; font-size: 16px; }
.feature-card p { font-size: 14px; margin: 0; }

/* ============================================================
   PRODUCT CARD
============================================================ */
.products-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

.product-card {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    background: white;
    transition: all 0.2s;
}

.product-card:hover {
    border-color: var(--accent);
    box-shadow: var(--shadow);
    transform: translateY(-2px);
}

.product-card-image {
    background: var(--ice);
    height: 220px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.product-card-badge {
    position: absolute;
    top: 16px;
    left: 16px;
    background: var(--navy);
    color: white;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 4px 10px;
    border-radius: 4px;
}

.product-card-badge--soon {
    background: #f59e0b;
}

.product-card-body { padding: 24px; }
.product-card-body h3 { font-size: 18px; margin-bottom: 8px; }
.product-card-body p { font-size: 14px; margin-bottom: 16px; }

.product-price {
    font-family: 'Space Mono', monospace;
    font-size: 22px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 16px;
}

.product-price span {
    font-size: 13px;
    color: var(--text-muted);
    font-family: 'DM Sans', sans-serif;
    font-weight: 400;
}

.out-of-stock-notice {
    background: #fff8e6;
    border: 1px solid #f0c060;
    border-radius: 8px;
    padding: 12px 16px;
    font-size: 13px;
    color: #7a5c00;
    text-align: center;
    font-weight: 600;
}

/* ============================================================
   COA SECTION
============================================================ */
.coa-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
}

.coa-results {
    background: white;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.coa-results-header {
    background: var(--navy);
    padding: 16px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.coa-results-title {
    font-size: 13px;
    font-weight: 700;
    color: white;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.coa-badge {
    background: var(--green);
    color: white;
    font-size: 11px;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 4px;
    font-family: 'Space Mono', monospace;
}

.coa-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 20px;
    border-bottom: 1px solid var(--line);
    font-size: 14px;
}

.coa-row:last-child { border-bottom: none; }
.coa-row-label { color: var(--text-sec); }
.coa-row-value { font-family: 'Space Mono', monospace; font-size: 13px; font-weight: 700; color: var(--green); }

/* ============================================================
   COMPARISON TABLE
============================================================ */
.comparison-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.comparison-table th {
    padding: 18px 20px;
    font-size: 13px;
    text-align: center;
    border-bottom: 2px solid var(--border);
}

.comparison-table th:first-child { text-align: left; background: var(--off-white); color: var(--text-muted); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; }
.comparison-table th.th-us { background: var(--navy); color: white; font-family: 'DM Serif Display', serif; font-size: 16px; }
.comparison-table th.th-other { background: var(--off-white); color: var(--text-muted); }

.comparison-table td {
    padding: 14px 20px;
    border-bottom: 1px solid var(--line);
    font-size: 14px;
    text-align: center;
    background: white;
}

.comparison-table td:first-child { text-align: left; font-weight: 600; background: #fafafa; }
.comparison-table tr:last-child td { border-bottom: none; }
.td-yes { color: var(--green); font-weight: 700; font-size: 18px; }
.td-no { color: #dc2626; font-weight: 700; font-size: 18px; }
.td-highlight { background: #eff6ff !important; color: var(--accent); font-weight: 700; font-family: 'Space Mono', monospace; font-size: 13px; }

/* ============================================================
   BLOG / ARTICLES
============================================================ */
.articles-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

.article-card {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    background: white;
    transition: all 0.2s;
    text-decoration: none;
    display: block;
}

.article-card:hover {
    border-color: var(--accent);
    box-shadow: var(--shadow);
    transform: translateY(-2px);
    text-decoration: none;
}

.article-card-image {
    background: var(--ice);
    height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.article-card-body { padding: 20px; }
.article-tag { font-size: 11px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent); margin-bottom: 8px; }
.article-card-body h4 { font-size: 16px; color: var(--text); margin-bottom: 8px; line-height: 1.4; }
.article-card-body p { font-size: 13px; color: var(--text-muted); margin: 0; }

/* ============================================================
   FOOTER
============================================================ */
.site-footer {
    background: #0d1117;
    color: rgba(255,255,255,0.6);
    padding: 64px 0 32px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 48px;
    margin-bottom: 48px;
}

.footer-brand-name {
    font-family: 'DM Serif Display', serif;
    font-size: 22px;
    color: white;
    margin-bottom: 12px;
}

.footer-brand-name span { color: var(--accent); }
.footer-desc { font-size: 14px; line-height: 1.7; margin-bottom: 20px; }

.footer-col-title {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.4);
    margin-bottom: 16px;
}

.footer-links { list-style: none; }
.footer-links li { margin-bottom: 10px; }
.footer-links a { font-size: 14px; color: rgba(255,255,255,0.6); text-decoration: none; transition: color 0.2s; }
.footer-links a:hover { color: white; }

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.08);
    padding-top: 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
}

.footer-disclaimer {
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 8px;
    padding: 16px 20px;
    font-size: 12px;
    line-height: 1.6;
    color: rgba(255,255,255,0.4);
    margin-bottom: 32px;
}

/* ============================================================
   WOOCOMMERCE OVERRIDES
============================================================ */
.woocommerce-message,
.woocommerce-error,
.woocommerce-info {
    border-radius: var(--radius);
    padding: 16px 20px;
    font-size: 14px;
}

.woocommerce .button {
    background: var(--navy) !important;
    color: white !important;
    border-radius: 8px !important;
    font-weight: 600 !important;
    padding: 12px 24px !important;
}

.woocommerce .button:hover {
    background: var(--accent) !important;
}

/* ============================================================
   RESPONSIVE
============================================================ */
@media (max-width: 1024px) {
    .features-grid { grid-template-columns: repeat(2, 1fr); }
    .products-grid { grid-template-columns: repeat(2, 1fr); }
    .articles-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
    .hero-inner { grid-template-columns: 1fr; }
    .coa-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
    .features-grid { grid-template-columns: 1fr; }
    .products-grid { grid-template-columns: 1fr; }
    .articles-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; }
    .trust-bar-inner { gap: 24px; }
    .hero-stats { flex-wrap: wrap; gap: 20px; }
    .nav-links { display: none; }
    .nav-toggle { display: flex; }
    .comparison-table { font-size: 12px; }
    .comparison-table th, .comparison-table td { padding: 10px 12px; }
}
