/* ═══════════════════════════════════════════════════════
   Distill Works — Shared Components
   All reusable UI components in one file.
   Uses design tokens from styles.min.css.
   ═══════════════════════════════════════════════════════ */


/* ── Hero ────────────────────────────────────────────── */
.hero {
    padding: 8rem 0 3rem;
}
/* Hero content width and centering — scoped per page type */
.ppc-hero .hero-content,
.hero--centered .hero-content {
    max-width: 800px;
    grid-template-columns: 1fr;
    margin: 0 auto;
}
.ppc-hero .hero-text,
.hero--centered .hero-text { text-align: center; }
.ppc-hero .hero-stats,
.hero--centered .hero-stats { justify-content: center; }

/* Hero: centered variant (industries, case studies) */
.hero--centered { text-align: center; }
.hero--centered h1 { font-size: 3rem; line-height: 1.15; }
.hero--centered p { max-width: 580px; margin-left: auto; margin-right: auto; }

/* Badge pill (above hero headings) */
.badge {
    display: inline-block;
    padding: 6px 16px;
    background: var(--blue-50, #eff6ff);
    color: var(--blue-600);
    border-radius: 100px;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    margin-bottom: 1.25rem;
}
.hero-text h1 {
    font-size: clamp(2rem, 5vw + 1rem, 3.75rem);
    font-weight: 400;
    color: var(--text-primary);
    line-height: 1.15;
    margin-bottom: 1rem;
}
.hero-subtitle {
    color: var(--text-secondary);
    font-size: 1.1rem;
    line-height: 1.7;
    margin-bottom: 2rem;
}
.highlight { color: var(--blue-600); }
.hero-stats {
    display: flex;
    gap: 2rem;
    margin-top: 2rem;
}
.hero-stats .stat {
    display: flex;
    flex-direction: column;
}
.hero-stats .stat-number {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
}
.hero-stats .stat-label {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-top: 0.25rem;
}
@media (max-width: 768px) {
    .hero { padding: 6rem 0 2rem; }
    .hero-text h1 { font-size: 2rem; }
    .hero-stats { flex-direction: column; gap: 1rem; }
}


/* ── Section Base ────────────────────────────────────── */
.section {
    padding: 5rem 0;
}
.section .container { max-width: 960px; }
.section h2 {
    font-size: 1.75rem;
    font-weight: 400;
    color: var(--text-primary);
    margin-bottom: 1.25rem;
}
.section p {
    color: var(--slate-700);
    font-size: 1.05rem;
    line-height: 1.8;
    margin-bottom: 1.25rem;
}
.section--alt { background: var(--bg-secondary); }


/* ── Feature Grid ────────────────────────────────────── */
.features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin-top: 2rem;
}
.feature-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 0.75rem;
    padding: 1.5rem;
}
.feature-card h3 {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}
.feature-card p {
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--text-secondary);
    margin-bottom: 0;
}
@media (max-width: 768px) {
    .features-grid { grid-template-columns: 1fr; }
}


/* ── Process Steps ───────────────────────────────────── */
.steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-top: 2rem;
}
.step {
    padding: 1.5rem;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 0.75rem;
}
.step-number {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--blue-600);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1rem;
    margin-bottom: 1rem;
}
.step h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}
.step p {
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--text-secondary);
    margin-bottom: 0;
}
@media (max-width: 768px) {
    .steps { grid-template-columns: 1fr; }
}


/* ── Pricing Cards ───────────────────────────────────── */
.pricing-section {
    padding: 5rem 0;
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border-color);
}
.pricing-section .container { max-width: 1000px; }
.pricing-section h2 {
    text-align: center;
    font-size: 2rem;
    font-weight: 400;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}
.pricing-subtitle {
    text-align: center;
    color: var(--text-secondary);
    margin-bottom: 3rem;
}
.pricing-note {
    text-align: center;
    margin-top: 1.5rem;
    color: var(--text-secondary);
    font-size: 0.9rem;
}
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    max-width: 1000px;
    margin: 0 auto;
}
.pricing-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 0.75rem;
    padding: 2rem;
    position: relative;
    transition: all 0.3s ease;
}
.pricing-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.1);
}
.pricing-card.featured {
    border-color: var(--accent-primary);
    box-shadow: 0 0 20px rgba(59, 130, 246, 0.15);
}
.pricing-card-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--accent-primary);
    color: white;
    padding: 0.375rem 1.25rem;
    border-radius: 2rem;
    font-size: 0.8rem;
    font-weight: 600;
    white-space: nowrap;
}
.pricing-card h3 {
    font-size: 1.5rem;
    font-weight: 400;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}
.pricing-card .price {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 1rem 0 0.25rem;
}
.pricing-card .price-period {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
}
.pricing-card .tagline {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
}
.pricing-features {
    list-style: none;
    padding: 0;
    margin: 0 0 2rem 0;
}
.pricing-features li {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.5rem 0;
    color: var(--text-secondary);
    font-size: 0.9rem;
}
.pricing-features .check {
    color: var(--color-success, #22c55e);
    flex-shrink: 0;
    font-weight: bold;
}
.pricing-features .x-mark {
    color: var(--slate-400);
    flex-shrink: 0;
}
.pricing-cta {
    display: block;
    width: 100%;
    text-align: center;
    padding: 0.875rem;
    border-radius: 0.5rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
}
.pricing-cta.primary {
    background: var(--accent-primary);
    color: white;
}
.pricing-cta.primary:hover { background: var(--blue-700); }
.pricing-cta.secondary {
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
}
.pricing-cta.secondary:hover {
    background: var(--slate-50);
    border-color: var(--blue-500);
    color: var(--blue-600);
}
@media (max-width: 768px) {
    .pricing-grid { grid-template-columns: 1fr; max-width: 400px; margin: 0 auto; }
}


/* ── Contact / Lead Form ─────────────────────────────── */
.contact-section {
    padding: 5rem 0;
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
}
.contact-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    max-width: 900px;
    margin: 0 auto;
}
@media (min-width: 768px) {
    .contact-content { grid-template-columns: 1fr 1fr; align-items: start; }
}
.contact-text h2 {
    font-size: 2rem;
    font-weight: 400;
    margin-bottom: 1rem;
    color: var(--text-primary);
}
.contact-text > p {
    color: var(--text-secondary);
    font-size: 1.125rem;
    margin-bottom: 1.5rem;
}
.contact-reassurance {
    background: var(--card-bg);
    border-radius: 0.75rem;
    padding: 1.5rem;
    border: 1px solid var(--border-color);
}
.contact-reassurance p {
    color: var(--slate-700);
    font-size: 0.875rem;
    margin-bottom: 0.75rem;
}
.contact-reassurance ul { list-style: none; padding: 0; margin: 0; }
.contact-reassurance li {
    color: var(--text-secondary);
    font-size: 0.875rem;
    padding: 0.25rem 0 0.25rem 1.25rem;
    position: relative;
}
.contact-reassurance li::before {
    content: "\2713";
    position: absolute;
    left: 0;
    color: var(--green-600);
}
.contact-form-wrapper {
    background: var(--card-bg);
    border-radius: 1rem;
    padding: 2rem;
    border: 1px solid var(--border-color);
    box-shadow: 0 4px 16px var(--shadow-md);
}
.contact-form-wrapper .form-group { margin-bottom: 1rem; }
.contact-form-wrapper input,
.contact-form-wrapper select,
.contact-form-wrapper textarea {
    width: 100%;
    padding: 0.875rem 1rem;
    background: var(--card-bg);
    border: 1px solid var(--slate-300);
    border-radius: 0.5rem;
    color: var(--text-primary);
    font-size: 1rem;
    font-family: inherit;
    box-sizing: border-box;
}
.contact-form-wrapper input:focus,
.contact-form-wrapper select:focus,
.contact-form-wrapper textarea:focus {
    outline: none;
    border-color: var(--blue-500);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}
.contact-form-wrapper .submit-btn {
    width: 100%;
    padding: 1rem;
    background: var(--blue-600);
    color: white;
    border: none;
    border-radius: 0.5rem;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease;
    font-family: inherit;
}
.contact-form-wrapper .submit-btn:hover { background: var(--blue-500); }


/* ── FAQ ─────────────────────────────────────────────── */
/* Base FAQ styles are in styles.min.css (single-column accordion) */
/* Pages needing 2-column FAQ grid (PPC, content-engine) use .faq-grid--two-col */
.faq-grid--two-col {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}
.faq-grid--two-col .faq-item {
    border-radius: 0.75rem;
    padding: 1.5rem;
}
.faq-grid--two-col .faq-item p {
    display: block;
}
@media (max-width: 768px) {
    .faq-grid--two-col { grid-template-columns: 1fr; }
}


/* ── Cross-sell ──────────────────────────────────────── */
.crosssell { max-width: 760px; }
.crosssell h2 {
    font-size: 1.5rem;
    font-weight: 400;
    color: var(--text-primary);
    margin-bottom: 1rem;
}
.crosssell p {
    color: var(--slate-700);
    font-size: 1.05rem;
    line-height: 1.8;
    margin-bottom: 1rem;
}
.crosssell-links {
    display: flex;
    gap: 2rem;
    margin-top: 1.5rem;
}
.product-link {
    color: var(--blue-600);
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
}
.product-link:hover { text-decoration: underline; }
@media (max-width: 768px) {
    .crosssell-links { flex-direction: column; gap: 0.75rem; }
}


/* ── Results Table ───────────────────────────────────── */
.results-table-wrap {
    margin-top: 2rem;
    overflow-x: auto;
}
.results-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.95rem;
}
.results-table th {
    text-align: left;
    padding: 0.75rem 1rem;
    background: var(--slate-100);
    color: var(--text-secondary);
    font-weight: 600;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-bottom: 2px solid var(--border-color);
}
.results-table td {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--border-light);
    color: var(--slate-700);
}
.results-table tr:hover td {
    background: rgba(59, 130, 246, 0.04);
}


/* ── Callout Box ─────────────────────────────────────── */
.callout {
    margin-top: 2rem;
    padding: 1.5rem 2rem;
    background: linear-gradient(135deg, #1e3a5f 0%, #0f172a 100%);
    border-radius: 0.75rem;
    text-align: center;
}
.callout p {
    color: #ffffff;
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0;
    line-height: 1.5;
}


/* ── Message Overlay ─────────────────────────────────── */
.message-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}
.message-content {
    background: var(--card-bg);
    border-radius: 1rem;
    padding: 2.5rem;
    max-width: 440px;
    width: 90%;
    text-align: center;
}
.success-message h3 { color: var(--green-600); margin-bottom: 0.75rem; }
.error-message h3 { color: #dc2626; margin-bottom: 0.75rem; }
.close-btn {
    margin-top: 1.5rem;
    padding: 0.75rem 2rem;
    background: var(--blue-600);
    color: white;
    border: none;
    border-radius: 0.5rem;
    font-weight: 600;
    cursor: pointer;
}


/* ── Featured Section ─────────────────────────────────── */
.featured { padding: 2rem 0 3rem; }

/* ── Industries Grid ─────────────────────────────────── */
.bento-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}
.bento-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 32px;
    border-radius: 16px;
    text-decoration: none;
    color: var(--slate-800);
    min-height: 220px;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}
.bento-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.08);
}
.bento-card .ind-name {
    font-family: 'Instrument Serif', Georgia, serif;
    font-size: 1.75rem;
    font-weight: 400;
    color: var(--text-primary);
    margin-bottom: 8px;
}
.bento-card .ind-stat {
    font-size: 0.8rem;
    color: var(--text-secondary);
    line-height: 1.5;
    padding: 6px 12px;
    background: rgba(255, 255, 255, 0.7);
    border-radius: 8px;
    display: inline-block;
    margin-bottom: 12px;
}
.bento-card .ind-hook {
    font-size: 0.9rem;
    color: var(--slate-600);
    line-height: 1.5;
    margin-bottom: 16px;
}
.bento-card .ind-link {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--blue-600);
}
.bc-blue { background: #eff6ff; }
.bc-amber { background: #fffbeb; }
.bc-sky { background: #f0f9ff; }
.bc-slate { background: var(--slate-50); }
.bc-violet { background: #f5f3ff; }
.bc-emerald { background: #ecfdf5; }

.compact-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}
.c-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-left: 3px solid var(--border-color);
    border-radius: 8px;
    text-decoration: none;
    color: var(--slate-800);
    transition: all 0.2s ease;
}
.c-card:hover {
    border-left-color: var(--blue-600);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    transform: translateX(3px);
}
.c-card-body { flex: 1; }
.c-card-name { font-weight: 600; font-size: 0.9rem; color: var(--text-primary); }
.c-card-hook { font-size: 0.75rem; color: var(--text-secondary); margin-top: 2px; line-height: 1.4; }
.c-card:hover .c-card-name { color: var(--blue-600); }
.c-card-arrow { color: var(--slate-300); font-size: 1rem; transition: all 0.2s; }
.c-card:hover .c-card-arrow { color: var(--blue-600); transform: translateX(3px); }

@media (max-width: 1024px) {
    .bento-grid { grid-template-columns: repeat(2, 1fr); }
    .compact-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 768px) {
    .bento-grid { grid-template-columns: 1fr; }
    .compact-grid { grid-template-columns: repeat(2, 1fr); }
    .c-card-hook { display: none; }
}
@media (max-width: 480px) {
    .compact-grid { grid-template-columns: 1fr; }
}


/* ── Industries Features (dark section) ──────────────── */
.ind-features {
    padding: 4rem 0;
    background: #0f172a;
}
.ind-features h2 {
    font-family: 'Instrument Serif', Georgia, serif;
    font-size: 2rem;
    font-weight: 400;
    color: #fff;
    text-align: center;
    margin-bottom: 0.5rem;
}
.ind-features .sub {
    color: var(--text-secondary);
    text-align: center;
    margin-bottom: 2.5rem;
}
.feat-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    max-width: 900px;
    margin: 0 auto;
}
.feat-item {
    text-align: center;
    padding: 24px 16px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
}
.feat-item::before {
    content: "";
    display: block;
    width: 32px;
    height: 2px;
    background: var(--accent-warm);
    margin: 0 auto 12px;
}
.feat-name { font-weight: 600; color: #fff; font-size: 0.95rem; margin-bottom: 4px; }
.feat-desc { color: var(--text-secondary); font-size: 0.8rem; line-height: 1.5; }
@media (max-width: 768px) {
    .feat-grid { grid-template-columns: 1fr; }
}


/* ── Divider ─────────────────────────────────────────── */
.divider {
    text-align: center;
    padding: 3rem 0;
    position: relative;
}
.divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--border-color);
}
.divider span {
    position: relative;
    background: #fff;
    padding: 0 24px;
    color: var(--slate-400);
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}


/* ── Industries CTA ──────────────────────────────────── */
.ind-cta {
    padding: 5rem 0;
    text-align: center;
}
.ind-cta h2 {
    font-family: 'Instrument Serif', Georgia, serif;
    font-size: 2.25rem;
    font-weight: 400;
    color: var(--text-primary);
    margin-bottom: 1rem;
}
.ind-cta p {
    color: var(--text-secondary);
    font-size: 1.05rem;
    max-width: 550px;
    margin: 0 auto 2rem;
    line-height: 1.6;
}
.btn-primary {
    display: inline-block;
    padding: 14px 32px;
    background: linear-gradient(135deg, var(--blue-600), var(--blue-700));
    color: #fff;
    border-radius: 10px;
    font-weight: 600;
    text-decoration: none;
    margin: 0 8px;
}
.btn-secondary {
    display: inline-block;
    padding: 14px 32px;
    background: transparent;
    color: var(--slate-600);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    font-weight: 500;
    text-decoration: none;
    margin: 0 8px;
}
