/*
Theme Name: Astra Child WP
Template: astra
Version: 1.1.0
Description: WorkflowPick child theme — Zapier alternatives comparison site
Author: WorkflowPick Editorial
*/

/* =========================================
   BASE & VARIABLES
   ========================================= */
:root {
    --wp-primary: #0d1117;
    --wp-accent: #f97316;
    --wp-accent-light: #fff3ed;
    --wp-gray: #6b7280;
    --wp-border: #e5e7eb;
    --wp-card-bg: #ffffff;
    --wp-font: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
}

body {
    font-family: var(--wp-font);
    color: var(--wp-primary);
}

/* =========================================
   STICKY NAV
   ========================================= */
#site-header,
.site-header,
.ast-site-header-wrap {
    position: sticky !important;
    top: 0 !important;
    z-index: 100 !important;
    background: #ffffff !important;
    border-bottom: 1px solid var(--wp-border) !important;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}

/* =========================================
   TABLE OVERFLOW
   ========================================= */
.entry-content table {
    width: 100%;
    border-collapse: collapse;
}
.entry-content table th,
.entry-content table td {
    padding: 10px 14px;
    text-align: left;
    border: 1px solid #e5e7eb;
    font-size: 14px;
}
.entry-content table thead th {
    background: #0d1117;
    color: #fff;
    font-weight: 600;
}
.entry-content table tbody tr:nth-child(even) {
    background: #f9fafb;
}
div[style*="overflow-x"] {
    overflow-x: auto !important;
}
.entry-content .wp-block-table,
.entry-content figure.wp-block-table {
    overflow-x: auto;
    display: block;
}

/* =========================================
   CATEGORY ARCHIVE CARD FIXES
   ========================================= */
.ast-article-post .cat-links a,
.entry-meta .cat-links a {
    background: #fff3ed;
    color: #f97316;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-decoration: none;
    display: inline-block;
    margin-bottom: 8px;
}
.ast-article-post .entry-title a {
    color: #0d1117 !important;
    font-size: 18px;
    font-weight: 700;
    text-decoration: none;
}
.ast-article-post .entry-title a:hover {
    color: #f97316 !important;
}
.ast-article-post .entry-summary p {
    color: #6b7280;
    font-size: 14px;
    line-height: 1.6;
}
.ast-article-post {
    border-radius: 12px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.07);
    padding: 16px;
    margin-bottom: 24px;
    border: 1px solid #e5e7eb;
    background: #fff;
    transition: box-shadow 0.2s ease;
}
.ast-article-post:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,0.12);
}
.ast-article-post .post-thumb img {
    border-radius: 8px;
    height: 200px;
    object-fit: cover;
    width: 100%;
}
.ast-article-post .entry-meta .posted-on,
.ast-article-post .entry-meta .byline {
    display: none;
}

/* =========================================
   HOMEPAGE STYLES
   ========================================= */

/* Nav */
.wp-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 40px;
    font-family: inherit;
    height: 70px;
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    position: sticky;
    top: 0;
    z-index: 200;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}
.wp-nav-logo {
    font-size: 26px;
    font-weight: 800;
    color: #0d1117;
    text-decoration: none;
    letter-spacing: -0.5px;
}
.wp-nav-logo span {
    color: #f97316;
}
.wp-nav-links {
    display: flex;
    gap: 32px;
    list-style: none;
    margin: 0;
    padding: 0;
}
.wp-nav-links a {
    color: #374151;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: color 0.2s;
}
.wp-nav-links a:hover {
    color: #f97316;
}

/* Hero Section */
.wp-hero {
    background: #f8fafc;
    padding: 80px 40px;
}
.wp-hero-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}
.wp-hero-eyebrow {
    font-size: 12px;
    font-weight: 700;
    color: #f97316;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 16px;
    display: block;
}
.wp-hero h1 {
    font-size: 52px;
    font-weight: 900;
    line-height: 1.1;
    color: #0d1117;
    margin: 0 0 20px 0;
    letter-spacing: -1.5px;
}
.wp-hero-subhead {
    font-size: 18px;
    color: #4b5563;
    line-height: 1.6;
    margin-bottom: 32px;
    max-width: 460px;
}
.wp-hero-ctas {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}
.wp-btn-primary {
    background: #f97316;
    color: #ffffff;
    padding: 14px 28px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 700;
    text-decoration: none;
    display: inline-block;
    transition: background 0.2s, transform 0.1s;
    border: 2px solid #f97316;
}
.wp-btn-primary:hover {
    background: #ea6c0a;
    border-color: #ea6c0a;
    transform: translateY(-1px);
    color: #fff;
}
.wp-btn-outline {
    background: transparent;
    color: #0d1117;
    padding: 14px 28px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 700;
    text-decoration: none;
    display: inline-block;
    transition: all 0.2s;
    border: 2px solid #0d1117;
}
.wp-btn-outline:hover {
    background: #0d1117;
    color: #fff;
    transform: translateY(-1px);
}
.wp-hero-trust {
    font-size: 13px;
    color: #9ca3af;
    display: flex;
    align-items: center;
    gap: 4px;
}
.wp-hero-trust::before {
    content: "✓";
    color: #22c55e;
    font-weight: 700;
}

/* Savings Card */
.wp-hero-right {
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.wp-savings-card {
    background: #0d1117;
    border-radius: 16px;
    padding: 28px 32px;
    color: #fff;
    border: 1px solid #1f2937;
    box-shadow: 0 20px 60px rgba(0,0,0,0.25);
}
.wp-savings-card-header {
    font-size: 14px;
    font-weight: 700;
    color: #f97316;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.wp-savings-table {
    width: 100%;
    border-collapse: collapse;
}
.wp-savings-table td {
    padding: 10px 14px 10px 0;
    font-size: 15px;
    border: none;
    background: transparent !important;
}
.wp-savings-table td:last-child {
    text-align: right;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
}
.wp-savings-divider {
    border: none;
    border-top: 1px solid #1f2937;
    margin: 4px 0;
}
.wp-savings-table .savings-row td {
    color: #f97316;
    font-weight: 800;
    font-size: 17px;
    padding-top: 14px;
}
.wp-savings-table .savings-row td:first-child {
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.wp-savings-table tr.zapier-row td {
    color: #9ca3af;
    text-decoration: line-through;
    font-size: 14px;
}

/* Hero Photo */
.wp-hero-photo {
    border-radius: 12px;
    overflow: hidden;
    height: 200px;
}
.wp-hero-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 12px;
}

/* Stats Bar */
.wp-stats-bar {
    background: #0d1117;
    padding: 40px;
}
.wp-stats-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    text-align: center;
}
.wp-stat-item .wp-stat-number {
    font-size: 32px;
    font-weight: 900;
    color: #f97316;
    display: block;
    letter-spacing: -1px;
    line-height: 1;
    margin-bottom: 6px;
}
.wp-stat-item .wp-stat-label {
    font-size: 13px;
    color: #9ca3af;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Category Cards */
.wp-categories {
    padding: 80px 40px;
    background: #f8fafc;
}
.wp-categories-inner {
    max-width: 1200px;
    margin: 0 auto;
}
.wp-section-title {
    font-size: 32px;
    font-weight: 800;
    color: #0d1117;
    margin: 0 0 8px 0;
    letter-spacing: -0.5px;
}
.wp-section-sub {
    color: #6b7280;
    font-size: 16px;
    margin-bottom: 40px;
}
.wp-cat-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}
.wp-cat-card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 24px;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 16px;
    transition: all 0.2s ease;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}
.wp-cat-card:hover {
    border-color: #f97316;
    box-shadow: 0 4px 16px rgba(249,115,22,0.15);
    transform: translateY(-2px);
}
.wp-cat-icon {
    width: 44px;
    height: 44px;
    background: #fff3ed;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 26px;
}
.wp-cat-label {
    font-size: 15px;
    font-weight: 700;
    color: #0d1117;
    display: block;
}
.wp-cat-desc {
    font-size: 12px;
    color: #6b7280;
    display: block;
    margin-top: 2px;
}

/* Latest Articles */
.wp-latest {
    padding: 80px 40px;
    background: #ffffff;
}
.wp-latest-inner {
    max-width: 1200px;
    margin: 0 auto;
}
.wp-posts-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
.wp-post-card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.2s ease;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}
.wp-post-card:hover {
    box-shadow: 0 8px 24px rgba(0,0,0,0.1);
    transform: translateY(-2px);
}
.wp-post-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}
.wp-post-img-placeholder {
    width: 100%;
    height: 200px;
    background: linear-gradient(135deg, #0d1117 0%, #1f2937 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
}
.wp-post-body {
    padding: 20px;
}
.wp-post-pill {
    background: #fff3ed;
    color: #f97316;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: inline-block;
    margin-bottom: 10px;
    text-decoration: none;
}
.wp-post-title {
    font-size: 17px;
    font-weight: 700;
    color: #0d1117;
    line-height: 1.4;
    margin: 0 0 10px 0;
    text-decoration: none;
    display: block;
}
.wp-post-title:hover {
    color: #f97316;
}
.wp-post-excerpt {
    font-size: 14px;
    color: #6b7280;
    line-height: 1.6;
    margin-bottom: 16px;
}
.wp-read-more {
    font-size: 14px;
    font-weight: 700;
    color: #f97316;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}
.wp-read-more:hover {
    color: #ea6c0a;
}

/* Bottom CTA */
.wp-cta-section {
    background: #0d1117;
    padding: 80px 40px;
    text-align: center;
}
.wp-cta-section h2 {
    font-size: 38px;
    font-weight: 900;
    color: #ffffff;
    margin: 0 0 16px 0;
    letter-spacing: -1px;
}
.wp-cta-section p {
    font-size: 18px;
    color: #9ca3af;
    margin-bottom: 32px;
}

/* Footer */
.wp-footer {
    background: #0d1117;
    border-top: 1px solid #1f2937;
    padding: 24px 40px;
    text-align: center;
}
.wp-footer p {
    color: #6b7280;
    font-size: 13px;
    margin: 0;
}
.wp-footer a {
    color: #9ca3af;
    text-decoration: none;
}
.wp-footer a:hover {
    color: #f97316;
}

/* =========================================
   RESPONSIVE
   ========================================= */
@media (max-width: 900px) {
    .wp-nav { padding: 0 20px; }
    .wp-nav-links { gap: 16px; }

    .wp-hero { padding: 48px 20px; }
    .wp-hero-inner { grid-template-columns: 1fr; gap: 40px; }
    .wp-hero h1 { font-size: 36px; }
    .wp-hero-subhead { font-size: 16px; }

    .wp-stats-bar { padding: 32px 20px; }
    .wp-stats-inner { grid-template-columns: repeat(2, 1fr); gap: 24px; }

    .wp-categories { padding: 48px 20px; }
    .wp-cat-grid { grid-template-columns: repeat(2, 1fr); }

    .wp-latest { padding: 48px 20px; }
    .wp-posts-grid { grid-template-columns: 1fr; }

    .wp-cta-section { padding: 48px 20px; }
    .wp-cta-section h2 { font-size: 28px; }
}

@media (max-width: 600px) {
    .wp-nav-links { display: none; }
    .wp-cat-grid { grid-template-columns: 1fr; }
    .wp-stats-inner { grid-template-columns: 1fr 1fr; }
    .wp-hero h1 { font-size: 30px; }
    .wp-hero-ctas { flex-direction: column; }
    .wp-btn-primary, .wp-btn-outline { text-align: center; }
}

/* ── Global Astra header: match homepage .wp-nav exactly ── */
#masthead .main-header-bar,
.ast-header-break-point .main-header-bar,
.main-header-bar {
    padding: 0 40px !important;
    min-height: 64px !important;
    border-bottom: 1px solid #e5e7eb !important;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06) !important;
    display: flex !important;
    align-items: center !important;
}

/* Logo */
.ast-site-header-wrap .site-title a,
.site-title a,
.custom-logo-link {
    font-size: 22px !important;
    font-weight: 800 !important;
    color: #0d1117 !important;
    text-decoration: none !important;
    letter-spacing: -0.5px !important;
}

/* Nav links */
.main-header-menu .menu-item > a,
.ast-desktop-nav-wrap .menu-item > a,
#site-navigation .menu-item > a {
    font-size: 14px !important;
    font-weight: 500 !important;
    color: #374151 !important;
    padding: 0 12px !important;
    line-height: 64px !important;
}
.main-header-menu .menu-item > a:hover,
.ast-desktop-nav-wrap .menu-item > a:hover {
    color: #f97316 !important;
    background: transparent !important;
}

/* ── Match Astra header to homepage .wp-nav exactly ── */
.ast-primary-header-bar {
    min-height: 70px !important;
    padding: 0 !important;
    border-bottom: 1px solid #e5e7eb !important;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06) !important;
}
.ast-primary-header-bar .ast-container {
    padding-left: 40px !important;
    padding-right: 40px !important;
    max-width: 100% !important;
}

/* Logo — match .wp-nav-logo */
.site-title a {
    font-size: 26px !important;
    font-weight: 800 !important;
    letter-spacing: -0.5px !important;
    color: #0d1117 !important;
    text-decoration: none !important;
    line-height: 70px !important;
}

/* Nav links — match .wp-nav-links a */
.ast-builder-menu-1 .menu-item > a,
.ast-desktop-nav-wrap .menu-item > a,
#ast-desktop-header .menu-item > a {
    font-size: 14px !important;
    font-weight: 500 !important;
    color: #374151 !important;
    padding: 0 16px !important;
    line-height: 70px !important;
    text-decoration: none !important;
}
.ast-builder-menu-1 .menu-item > a:hover,
.ast-desktop-nav-wrap .menu-item > a:hover,
#ast-desktop-header .menu-item > a:hover {
    color: #f97316 !important;
    background: transparent !important;
}

/* ── Astra header: corrected to match homepage nav exactly (64px/22px/14px) ── */
.ast-primary-header-bar {
    min-height: 64px !important;
    max-height: 64px !important;
}
.ast-primary-header-bar .ast-container {
    min-height: 64px !important;
}
.site-title a {
    font-size: 22px !important;
    line-height: 64px !important;
}
.ast-builder-menu-1 .menu-item > a,
.ast-desktop-nav-wrap .menu-item > a,
#ast-desktop-header .menu-item > a {
    line-height: 64px !important;
    font-size: 14px !important;
}
/* Kill active/current blue */
.ast-builder-menu-1 .current-menu-item > a,
.ast-desktop-nav-wrap .current-menu-item > a,
#ast-desktop-header .current-menu-item > a {
    color: #374151 !important;
    font-weight: 600 !important;
}

/* ── Homepage: full-width, no container padding ── */
body.home .wp-homepage-wrap,
body.front-page-template .wp-homepage-wrap {
    width: 100%;
}
body.home #primary,
body.home .ast-container,
body.home .site-content .ast-container {
    max-width: 100% !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    width: 100% !important;
}
body.home .ast-row { max-width: 100% !important; }
body.home .entry-content, body.home article { padding: 0 !important; margin: 0 !important; }

/* ── Final header height fix: target the exact Astra selectors generating 80px ── */
.ast-primary-header-bar .site-primary-header-wrap,
.ast-mobile-header-wrap .ast-primary-header-bar { min-height: 64px !important; }
.ast-desktop .ast-primary-header-bar .main-header-menu > .menu-item { line-height: 64px !important; }
.site-title { font-size: 22px !important; }
.site-title a { font-size: 22px !important; font-weight: 800 !important; letter-spacing: -0.5px !important; }
.ast-builder-menu-1 .menu-item > .menu-link { font-size: 14px !important; font-weight: 500 !important; line-height: 64px !important; }
