/* ============================================================
   Specrom Analytics — Types of Retail Store Formats
   Clean light theme matching Specrom design system
   ============================================================ */

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

:root {
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'IBM Plex Sans', sans-serif;
    --font-mono: 'IBM Plex Mono', monospace;

    --color-bg: #ffffff;
    --color-bg-alt: #f8f9fb;
    --color-bg-card: #ffffff;
    --color-text: #1e293b;
    --color-text-secondary: #374151;
    --color-text-muted: #94a3b8;
    --color-border: #e2e8f0;
    --color-border-light: #f1f5f9;

    /* Specrom blue accent for informational page */
    --color-accent: #2563eb;
    --color-accent-dark: #1d4ed8;
    --color-accent-light: #eff6ff;
    --color-accent-bg: #eff6ff;

    --color-green: #16a34a;
    --color-green-light: #f0fdf4;

    --container: 960px;
    --radius: 10px;
    --radius-sm: 6px;
}

html { scroll-behavior: smooth; }

body {
    font-family: var(--font-body);
    background: var(--color-bg);
    color: var(--color-text);
    line-height: 1.65;
    font-size: 15px;
    -webkit-font-smoothing: antialiased;
}

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

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

strong { font-weight: 600; }

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

/* --- Header --- */
.site-header {
    border-bottom: 1px solid var(--color-border);
    background: var(--color-bg);
    position: sticky;
    top: 0;
    z-index: 100;
}

.site-header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 56px;
}

.logo-link { display: flex; align-items: center; }
.logo-img { height: 28px; width: auto; }

.header-nav { display: flex; gap: 24px; }
.header-nav a {
    font-size: 13px;
    font-weight: 500;
    color: var(--color-text-secondary);
    letter-spacing: 0.01em;
}
.header-nav a:hover { color: var(--color-text); text-decoration: none; }

/* --- Breadcrumb --- */
.breadcrumb-bar {
    background: var(--color-bg-alt);
    border-bottom: 1px solid var(--color-border-light);
    padding: 10px 0;
    font-size: 12px;
}
.breadcrumb-bar a { color: var(--color-text-muted); }
.breadcrumb-bar a:hover { color: var(--color-accent); }
.breadcrumb-bar .sep { color: var(--color-border); margin: 0 6px; }
.breadcrumb-bar .current { color: var(--color-text-secondary); font-weight: 500; }

/* --- Hero --- */
.hero {
    padding: 48px 0 56px;
    background:
        radial-gradient(ellipse 80% 60% at 0% 0%, rgba(37,99,235,0.04) 0%, transparent 60%),
        radial-gradient(ellipse 60% 60% at 100% 100%, rgba(37,99,235,0.03) 0%, transparent 50%),
        var(--color-bg);
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 48px;
    align-items: start;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--color-green-light);
    color: var(--color-green);
    font-size: 12px;
    font-weight: 600;
    padding: 5px 14px;
    border-radius: 20px;
    margin-bottom: 20px;
    font-family: var(--font-mono);
}

.badge-dot {
    width: 7px;
    height: 7px;
    background: var(--color-green);
    border-radius: 50%;
    display: inline-block;
    animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

.hero h1 {
    font-family: var(--font-heading);
    font-size: 38px;
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.03em;
    color: var(--color-text);
    margin-bottom: 16px;
}

.hero h1 .accent { color: var(--color-accent); }

.hero-desc {
    font-size: 16px;
    color: var(--color-text-secondary);
    line-height: 1.7;
    margin-bottom: 28px;
    max-width: 560px;
}

/* Hero Stats */
.hero-stats {
    display: flex;
    align-items: center;
    gap: 24px;
    padding: 20px 24px;
    background: var(--color-bg-alt);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
}

.stat-item { text-align: center; }
.stat-num {
    display: block;
    font-family: var(--font-heading);
    font-size: 28px;
    font-weight: 800;
    color: var(--color-text);
    line-height: 1;
    letter-spacing: -0.02em;
}
.stat-label {
    display: block;
    font-size: 11px;
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-top: 4px;
    font-weight: 500;
}
.stat-divider {
    width: 1px;
    height: 36px;
    background: var(--color-border);
}

/* --- Table of Contents Card --- */
.toc-card {
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    padding: 20px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04), 0 8px 24px rgba(0,0,0,0.04);
    position: sticky;
    top: 72px;
}

.toc-header {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-heading);
    font-size: 13px;
    font-weight: 700;
    color: var(--color-text);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 14px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--color-border-light);
}
.toc-header svg { color: var(--color-accent); }

.toc-list {
    list-style: none;
    counter-reset: toc;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.toc-list li a {
    display: block;
    font-size: 12.5px;
    color: var(--color-text-secondary);
    padding: 5px 10px;
    border-radius: 4px;
    transition: background 0.15s, color 0.15s;
    line-height: 1.4;
}

.toc-list li a:hover {
    background: var(--color-accent-light);
    color: var(--color-accent);
    text-decoration: none;
}

/* --- Sections --- */
.section {
    padding: 56px 0;
}

.section-alt {
    background: var(--color-bg-alt);
}

.section h2 {
    font-family: var(--font-heading);
    font-size: 28px;
    font-weight: 800;
    letter-spacing: -0.03em;
    color: var(--color-text);
    margin-bottom: 12px;
    line-height: 1.2;
}

.section-lead {
    font-size: 15px;
    color: var(--color-text-secondary);
    line-height: 1.7;
    margin-bottom: 28px;
    max-width: 700px;
}

.section p {
    color: var(--color-text-secondary);
    margin-bottom: 16px;
    line-height: 1.7;
    max-width: 750px;
}

/* --- Format Sections --- */
.format-header {
    display: flex;
    align-items: baseline;
    gap: 14px;
    margin-bottom: 12px;
}

.format-number {
    font-family: var(--font-mono);
    font-size: 14px;
    font-weight: 600;
    color: var(--color-accent);
    background: var(--color-accent-light);
    padding: 4px 10px;
    border-radius: 4px;
    flex-shrink: 0;
}

.format-header h2 {
    margin-bottom: 0;
}

.format-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
}

.meta-chip {
    background: var(--color-bg-alt);
    border: 1px solid var(--color-border);
    color: var(--color-text-secondary);
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 500;
    padding: 4px 12px;
    border-radius: 4px;
}

.format-body h3 {
    font-family: var(--font-heading);
    font-size: 18px;
    font-weight: 700;
    color: var(--color-text);
    margin-top: 28px;
    margin-bottom: 10px;
}

/* --- Map Blocks --- */
.map-block {
    margin: 24px 0;
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    overflow: hidden;
}

.map-block img {
    display: block;
    width: 100%;
    height: auto;
}

.map-caption {
    display: block;
    padding: 10px 16px;
    font-size: 12px;
    color: var(--color-text-muted);
    border-top: 1px solid var(--color-border-light);
    background: var(--color-bg-alt);
}

.map-caption a {
    font-weight: 600;
}

/* --- Related Datasets Links --- */
.related-datasets {
    margin-top: 20px;
    padding: 16px 20px;
    background: var(--color-accent-light);
    border: 1px solid rgba(37,99,235,0.12);
    border-radius: var(--radius-sm);
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    font-size: 13px;
}

.related-datasets strong {
    color: var(--color-text);
    font-size: 12px;
    margin-right: 4px;
}

.related-datasets a {
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
    color: var(--color-accent);
    transition: background 0.15s, border-color 0.15s;
}

.related-datasets a:hover {
    background: var(--color-accent);
    color: #fff;
    border-color: var(--color-accent);
    text-decoration: none;
}

/* --- Specialty Grid --- */
.specialty-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    margin: 16px 0 20px;
}

.specialty-item {
    padding: 10px 14px;
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    font-size: 13px;
    color: var(--color-text-secondary);
    line-height: 1.5;
}

.specialty-item strong {
    color: var(--color-text);
}

/* --- Tables --- */
.table-wrap {
    overflow-x: auto;
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    background: var(--color-bg-card);
    margin-bottom: 24px;
}

table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

thead th {
    text-align: left;
    padding: 12px 16px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--color-text-muted);
    border-bottom: 2px solid var(--color-border);
    font-family: var(--font-mono);
    white-space: nowrap;
    position: sticky;
    top: 0;
    background: var(--color-bg-card);
    z-index: 2;
}

tbody td {
    padding: 10px 16px;
    border-bottom: 1px solid var(--color-border-light);
    color: var(--color-text);
    vertical-align: top;
}
tbody td.mono { font-family: var(--font-mono); font-size: 13px; color: var(--color-text-secondary); }
tbody tr:last-child td { border-bottom: none; }
tbody tr:hover { background: rgba(37,99,235,0.02); }

/* --- Classification Grid --- */
.classification-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.class-card {
    padding: 24px 20px;
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    transition: border-color 0.2s;
}
.class-card:hover { border-color: var(--color-accent); }

.class-card h3 {
    font-family: var(--font-heading);
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--color-text);
}

.class-card p {
    font-size: 13px;
    color: var(--color-text-secondary);
    line-height: 1.6;
    margin: 0;
    max-width: none;
}

/* --- CTA Section --- */
.section-cta {
    background:
        linear-gradient(135deg, var(--color-accent-light) 0%, #fff 40%, var(--color-accent-light) 100%);
    border-top: 1px solid var(--color-border);
    border-bottom: 1px solid var(--color-border);
    padding: 56px 0;
}

.cta-grid {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 48px;
    align-items: start;
}

.cta-content h2 {
    font-family: var(--font-heading);
    font-size: 28px;
    font-weight: 800;
    margin-bottom: 12px;
}

.cta-content > p {
    max-width: none;
}

.cta-features {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 20px;
    margin-bottom: 24px;
}
.cta-features li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: var(--color-text);
    font-weight: 500;
}

.cta-links {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--color-accent);
    color: #fff;
    font-family: var(--font-heading);
    font-size: 14px;
    font-weight: 700;
    padding: 12px 24px;
    border-radius: var(--radius);
    transition: background 0.2s, transform 0.15s;
    text-decoration: none;
}
.btn-primary:hover {
    background: var(--color-accent-dark);
    transform: translateY(-1px);
    text-decoration: none;
    color: #fff;
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--color-bg);
    color: var(--color-accent);
    font-family: var(--font-heading);
    font-size: 14px;
    font-weight: 700;
    padding: 12px 24px;
    border-radius: var(--radius);
    border: 1px solid var(--color-border);
    transition: border-color 0.2s, transform 0.15s;
    text-decoration: none;
}
.btn-secondary:hover {
    border-color: var(--color-accent);
    transform: translateY(-1px);
    text-decoration: none;
}

/* --- Lead Gen Form --- */
.form-card {
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    padding: 28px 24px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04), 0 8px 24px rgba(0,0,0,0.06);
}

.form-card h3 {
    font-family: var(--font-heading);
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 4px;
}

.form-subtitle {
    font-size: 13px;
    color: var(--color-text-muted);
    margin-bottom: 20px;
    line-height: 1.5;
}

.form-group {
    margin-bottom: 14px;
}

.form-group label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: var(--color-text);
    margin-bottom: 5px;
    letter-spacing: 0.01em;
}

.form-group .required {
    color: #ef4444;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 10px 14px;
    font-family: var(--font-body);
    font-size: 14px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    background: var(--color-bg);
    color: var(--color-text);
    transition: border-color 0.2s, box-shadow 0.2s;
    outline: none;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--color-accent);
    box-shadow: 0 0 0 3px rgba(37,99,235,0.1);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--color-text-muted);
}

.form-group textarea {
    resize: vertical;
    min-height: 60px;
}

.btn-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    background: var(--color-accent);
    color: #fff;
    font-family: var(--font-heading);
    font-size: 15px;
    font-weight: 700;
    padding: 14px 24px;
    border-radius: var(--radius);
    border: none;
    cursor: pointer;
    transition: background 0.2s, transform 0.15s;
    margin-top: 4px;
}
.btn-submit:hover {
    background: var(--color-accent-dark);
    transform: translateY(-1px);
}

.form-note {
    display: block;
    font-size: 11px;
    color: var(--color-text-muted);
    margin-top: 10px;
    line-height: 1.5;
}

.loader-msg {
    text-align: center;
    padding: 12px 0;
}
.loader-msg p {
    font-size: 13px;
    color: var(--color-text-muted);
    max-width: none;
    margin: 0;
}

.success-msg {
    padding: 8px 0;
}
.success-msg p {
    font-size: 14px;
    max-width: none;
    margin: 0;
}

/* --- FAQ --- */
.faq-list {
    max-width: 700px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.faq-item {
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    background: var(--color-bg-card);
    overflow: hidden;
}

.faq-item summary {
    padding: 16px 20px;
    font-family: var(--font-heading);
    font-size: 15px;
    font-weight: 700;
    color: var(--color-text);
    cursor: pointer;
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.faq-item summary::-webkit-details-marker { display: none; }

.faq-item summary::after {
    content: '+';
    font-size: 20px;
    font-weight: 400;
    color: var(--color-text-muted);
    transition: transform 0.2s;
    flex-shrink: 0;
    margin-left: 16px;
}
.faq-item[open] summary::after {
    content: '\2212';
    color: var(--color-accent);
}

.faq-body {
    padding: 0 20px 16px;
}
.faq-body p {
    font-size: 14px;
    color: var(--color-text-secondary);
    line-height: 1.7;
    margin: 0;
    max-width: none;
}

/* --- Resources Grid --- */
.resources-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.resource-card {
    display: block;
    padding: 24px 20px;
    background: var(--color-bg-alt);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    transition: border-color 0.2s, box-shadow 0.2s;
    text-decoration: none;
}
.resource-card:hover {
    border-color: var(--color-accent);
    box-shadow: 0 2px 12px rgba(37,99,235,0.06);
    text-decoration: none;
}

.resource-card h3 {
    font-family: var(--font-heading);
    font-size: 15px;
    font-weight: 700;
    color: var(--color-text);
    margin-bottom: 6px;
}

.resource-card p {
    font-size: 13px;
    color: var(--color-text-secondary);
    line-height: 1.5;
    margin: 0;
    max-width: none;
}

/* --- Footer --- */
.site-footer {
    background: var(--color-bg-alt);
    border-top: 1px solid var(--color-border);
    padding: 40px 0 24px;
    font-size: 13px;
    color: var(--color-text-secondary);
}

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

.footer-grid strong {
    font-family: var(--font-heading);
    font-size: 15px;
    color: var(--color-text);
    display: block;
    margin-bottom: 6px;
}

.footer-grid p { margin: 0; max-width: none; }

.footer-grid h4 {
    font-family: var(--font-heading);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--color-text-muted);
    margin-bottom: 12px;
}

.footer-grid div:nth-child(2),
.footer-grid div:nth-child(3),
.footer-grid div:nth-child(4) {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.footer-grid a {
    color: var(--color-text-secondary);
    font-size: 13px;
}
.footer-grid a:hover { color: var(--color-accent); }

.footer-bottom {
    padding-top: 20px;
    border-top: 1px solid var(--color-border);
    font-size: 12px;
    color: var(--color-text-muted);
}

/* --- Responsive --- */
@media (max-width: 768px) {
    .hero-grid {
        grid-template-columns: 1fr;
        gap: 28px;
    }
    .hero h1 { font-size: 28px; }
    .hero-stats { gap: 16px; padding: 16px; }
    .stat-num { font-size: 22px; }

    .hero-visual { order: 2; }
    .toc-card { position: static; }

    .specialty-grid { grid-template-columns: 1fr; }
    .classification-grid { grid-template-columns: 1fr; }
    .resources-grid { grid-template-columns: 1fr; }

    .cta-grid {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .footer-grid { grid-template-columns: 1fr 1fr; gap: 24px; }
}

@media (max-width: 480px) {
    .hero { padding: 28px 0 36px; }
    .hero h1 { font-size: 24px; }
    .hero-stats { flex-direction: column; gap: 12px; }
    .stat-divider { width: 40px; height: 1px; }
    .cta-links { flex-direction: column; }
    .btn-primary, .btn-secondary { width: 100%; justify-content: center; }
    .footer-grid { grid-template-columns: 1fr; }
    .format-header { flex-direction: column; gap: 8px; }
}
