/* Goalpost Finance - Optimized Stylesheet */

/* CSS Variables for Easy Theming */
:root {
    --primary: #2563eb;
    --primary-dark: #1d4ed8;
    --primary-light: #60a5fa;
    --secondary: #10b981;
    --secondary-dark: #059669;
    --danger: #ef4444;
    --warning: #f59e0b;
    
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-300: #d1d5db;
    --gray-400: #9ca3af;
    --gray-500: #6b7280;
    --gray-600: #4b5563;
    --gray-700: #374151;
    --gray-800: #1f2937;
    --gray-900: #111827;
    
    --font-primary: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    --font-heading: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Skip to Content - Accessibility */
.skip-link {
    position: absolute;
    top: -100px;
    left: 0;
    background: var(--primary);
    color: white;
    padding: 8px 16px;
    z-index: 10000;
    transition: top 0.3s;
}

.skip-link:focus {
    top: 0;
}

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

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-primary);
    font-size: 16px;
    line-height: 1.6;
    color: var(--gray-800);
    background-color: #fff;
    overflow-x: hidden;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
    color: var(--gray-900);
    margin-bottom: 1rem;
}

h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.75rem, 4vw, 2.5rem); }
h3 { font-size: clamp(1.5rem, 3vw, 2rem); }
h4 { font-size: clamp(1.25rem, 2.5vw, 1.5rem); }
h5 { font-size: 1.25rem; }
h6 { font-size: 1.125rem; }

p {
    margin-bottom: 1.25rem;
    line-height: 1.8;
    color: var(--gray-600);
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--primary-dark);
}

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

/* Container */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.container-narrow {
    max-width: 800px;
}

/* Navigation */
.navbar {
    background: #fff;
    box-shadow: var(--shadow);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 9999;
    backdrop-filter: blur(10px);
}

.nav-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem 0;
}

.logo img {
    height: 50px;
    width: auto;
}

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

.nav-links a {
    color: var(--gray-700);
    font-weight: 500;
    font-size: 1rem;
    transition: var(--transition);
    position: relative;
}

.nav-links a:not(.btn)::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: width 0.3s ease;
}

.nav-links a:not(.btn):hover::after {
    width: 100%;
}

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

/* Mobile Menu */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    width: 48px;
    height: 48px;
    position: relative;
    z-index: 1001;
}

.mobile-menu-btn .hamburger {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--gray-700);
    position: relative;
    transition: var(--transition);
}

.mobile-menu-btn .hamburger::before,
.mobile-menu-btn .hamburger::after {
    content: '';
    position: absolute;
    width: 24px;
    height: 2px;
    background: var(--gray-700);
    transition: var(--transition);
}

.mobile-menu-btn .hamburger::before {
    top: -7px;
}

.mobile-menu-btn .hamburger::after {
    top: 7px;
}

/* Hamburger to X animation */
.mobile-menu-btn.active .hamburger {
    background: transparent;
}

.mobile-menu-btn.active .hamburger::before {
    top: 0;
    transform: rotate(45deg);
}

.mobile-menu-btn.active .hamburger::after {
    top: 0;
    transform: rotate(-45deg);
}

/* Mobile menu overlay */
.nav-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 998;
    opacity: 0;
    transition: opacity 0.3s;
}

.nav-overlay.active {
    display: block;
    opacity: 1;
}

@media (max-width: 768px) {
    .mobile-menu-btn {
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        flex-direction: column;
        background: #fff;
        padding: 5rem 2rem 2rem;
        box-shadow: var(--shadow-xl);
        transition: right 0.3s ease;
        gap: 0;
        z-index: 999;
    }
    
    .nav-links.active {
        right: 0;
    }
    
    .nav-links li {
        width: 100%;
    }
    
    .nav-links a {
        display: block;
        padding: 1rem 0.75rem;
        border-bottom: 1px solid var(--gray-100);
        font-size: 1.125rem;
        border-left: 3px solid transparent;
        transition: border-left-color 0.2s ease, color 0.2s ease, background 0.2s ease;
    }

    .nav-links a:not(.btn):hover {
        border-left-color: var(--primary);
        background: rgba(37, 99, 235, 0.05);
        color: var(--primary);
    }

    /* Disable the sliding ::after underline on mobile — doesn't work in vertical menus */
    .nav-links a:not(.btn)::after {
        display: none;
    }

    .nav-links a.btn {
        margin-top: 1rem;
        text-align: center;
        border-bottom: none;
        border-left: none;
        background: none;
    }
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.875rem 2rem;
    font-weight: 600;
    font-size: 1rem;
    text-align: center;
    border-radius: 0.5rem;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    min-height: 48px; /* Touch-friendly */
}

.btn-primary {
    background: var(--primary);
    color: #fff;
}

.btn-primary:hover {
    background: var(--primary-dark);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-secondary {
    background: var(--secondary);
    color: #fff;
}

.btn-secondary:hover {
    background: var(--secondary-dark);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
}

.btn-outline:hover {
    background: var(--primary);
    color: #fff;
}

.btn-large {
    padding: 1rem 2.5rem;
    font-size: 1.125rem;
    min-height: 52px;
}

/* Focus states for accessibility */
.btn:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
    outline: 3px solid var(--primary-light);
    outline-offset: 2px;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: #fff;
    padding: 5rem 0;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320"><path fill="rgba(255,255,255,0.05)" d="M0,96L48,112C96,128,192,160,288,160C384,160,480,128,576,122.7C672,117,768,139,864,144C960,149,1056,139,1152,122.7C1248,107,1344,85,1392,74.7L1440,64L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z"></path></svg>') no-repeat bottom;
    background-size: cover;
}

.hero-content {
    position: relative;
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
}

.hero h1 {
    color: #fff;
    margin-bottom: 1.5rem;
    animation: fadeInUp 0.8s ease-out;
}

.hero p {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 2.5rem;
    line-height: 1.8;
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

.hero .btn {
    animation: fadeInUp 0.8s ease-out 0.4s both;
}

.hero-subheadline {
    font-size: 1.35rem;
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 1.5rem;
    line-height: 1.7;
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

.hero-testimonial {
    background: rgba(255, 255, 255, 0.15);
    border-left: 4px solid var(--secondary);
    padding: 1rem 1.5rem;
    margin: 0 auto 2rem auto;
    max-width: 600px;
    border-radius: 0 8px 8px 0;
    animation: fadeInUp 0.8s ease-out 0.3s both;
}

.hero-testimonial p {
    font-size: 1.1rem;
    font-style: italic;
    color: rgba(255, 255, 255, 0.95);
    margin: 0;
    line-height: 1.6;
}

.hero-friction-reducer {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.8);
    margin-top: 1rem;
    margin-bottom: 0;
    animation: fadeInUp 0.8s ease-out 0.5s both;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Sections */
.section {
    padding: 5rem 0;
}

.section-gray {
    background: var(--gray-50);
}

.section-title {
    text-align: center;
    margin-bottom: 1rem;
}

.section-subtitle {
    text-align: center;
    font-size: 1.125rem;
    color: var(--gray-600);
    max-width: 700px;
    margin: 0 auto 3rem;
    line-height: 1.8;
}

/* Grid Layouts */
.grid {
    display: grid;
    gap: 2rem;
    margin-top: 3rem;
}

.grid-2 {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.grid-3 {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.grid-4 {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

/* Cards */
.card {
    background: #fff;
    border-radius: 1rem;
    padding: 2rem;
    box-shadow: var(--shadow);
    transition: var(--transition);
    position: relative;
    display: flex;
    flex-direction: column;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

/* Push button to bottom of card */
.card .btn, .card span.btn {
    margin-top: auto;
    display: block;
}

.card-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    display: block;
}

.card h3 {
    margin-bottom: 1rem;
    color: var(--gray-900);
}

.card p {
    color: var(--gray-600);
    line-height: 1.8;
}

/* Steps - Redesigned Process Section */
.steps {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    max-width: 1100px;
    margin: 3rem auto 0;
}

.step-item {
    background: #fff;
    border-radius: 1rem;
    padding: 2rem;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    position: relative;
    transition: var(--transition);
    border-top: 4px solid var(--primary);
}

.step-item:hover {
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
    transform: translateY(-4px);
}

/* Remove the old pseudo-element number */
.step-item::before {
    display: none;
}

/* Step badge - clean rounded square */
.step-badge {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.125rem;
    color: #fff;
    background: var(--primary);
    margin-bottom: 1rem;
}

.step-badge-success {
    background: var(--secondary);
}

/* Success step highlight */
.step-item-success {
    border-top-color: var(--secondary);
    background: linear-gradient(180deg, #f0fdf4 0%, #fff 50%);
}

.step-item h3 {
    font-size: 1.25rem;
    margin-bottom: 0.375rem;
    color: var(--gray-900);
}

.step-subtitle {
    color: var(--gray-500);
    font-weight: 500;
    font-size: 0.9rem;
    margin-bottom: 0.875rem;
    display: block;
}

.step-item > p:last-of-type {
    color: var(--gray-600);
    line-height: 1.7;
    margin-bottom: 0;
    font-size: 0.95rem;
}

/* Active/focus states for touch devices */
@media (hover: none) {
    .step-item:hover {
        transform: none;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    }
    
    .step-item:active {
        transform: scale(0.98);
    }
    
    .card:hover {
        transform: none;
    }
    
    .card:active {
        transform: scale(0.98);
    }
}

/* Pricing */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 3rem;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.pricing-card {
    background: #fff;
    border-radius: 1rem;
    padding: 2.5rem;
    box-shadow: var(--shadow-md);
    text-align: center;
    position: relative;
    transition: var(--transition);
    position: relative;
}

.pricing-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-xl);
}

.pricing-card.featured {
    border: 3px solid var(--primary);
}

.pricing-card.featured::before {
    content: 'BEST VALUE';
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary);
    color: #fff;
    padding: 0.5rem 1.5rem;
    border-radius: 2rem;
    font-size: 0.875rem;
    font-weight: 700;
    letter-spacing: 0.05em;
}

.pricing-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.price {
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--primary);
    margin: 1.5rem 0;
    line-height: 1;
}

.price-period {
    color: var(--gray-600);
    font-size: 1rem;
    font-weight: 400;
}

.pricing-features {
    list-style: none;
    margin: 2rem 0;
    text-align: left;
}

.pricing-features li {
    padding: 0.75rem 0;
    padding-left: 2rem;
    position: relative;
    color: var(--gray-700);
}

.pricing-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--secondary);
    font-weight: bold;
    font-size: 1.25rem;
}

/* FAQ */
.faq-container {
    max-width: 800px;
    margin: 3rem auto 0;
}

.faq-container .faq-item {
    background: #fff;
    border-radius: 0.75rem;
    padding: 1.5rem;
    margin-bottom: 1rem;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border-bottom: none;
}

.faq-container .faq-item:hover {
    box-shadow: var(--shadow-md);
}

.faq-question {
    font-weight: 600;
    font-size: 1.125rem;
    color: var(--gray-900);
    margin-bottom: 0.75rem;
}

.faq-answer {
    color: var(--gray-600);
    line-height: 1.8;
}

/* Forms */
.form-container {
    max-width: 600px;
    margin: 0 auto;
    background: #fff;
    padding: 3rem;
    border-radius: 1rem;
    box-shadow: var(--shadow-lg);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--gray-900);
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 2px solid var(--gray-200);
    border-radius: 0.5rem;
    font-size: 1rem;
    font-family: inherit;
    transition: var(--transition);
}

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

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

.form-group small {
    display: block;
    margin-top: 0.5rem;
    color: var(--gray-500);
    font-size: 0.875rem;
}

/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: #fff;
    padding: 5rem 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    pointer-events: none;
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320"><path fill="rgba(255,255,255,0.05)" d="M0,96L48,112C96,128,192,160,288,160C384,160,480,128,576,122.7C672,117,768,139,864,144C960,149,1056,139,1152,122.7C1248,107,1344,85,1392,74.7L1440,64L1440,0L1392,0C1344,0,1248,0,1152,0C1056,0,960,0,864,0C768,0,672,0,576,0C480,0,384,0,288,0C192,0,96,0,48,0L0,0Z"></path></svg>') no-repeat top;
    background-size: cover;
}

.cta-section h2 {
    color: #fff;
    margin-bottom: 1rem;
}

.cta-section p {
    font-size: 1.125rem;
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 2rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.cta-section .btn {
    position: relative;
    z-index: 1;
    background: #fff;
    color: var(--primary);
}

.cta-section .btn:hover {
    background: var(--gray-100);
    transform: translateY(-2px);
}

/* Blog */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.blog-card {
    background: #fff;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.blog-card-content {
    padding: 2rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.blog-meta {
    color: var(--gray-500);
    font-size: 0.875rem;
    margin-bottom: 1rem;
}

.blog-card h3 {
    font-size: 1.35rem;
    margin-bottom: 1rem;
    color: var(--gray-900);
}

.blog-excerpt {
    color: var(--gray-600);
    line-height: 1.8;
    margin-bottom: 1.5rem;
    flex: 1;
}

.read-more {
    color: var(--primary);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: var(--transition);
}

.read-more:hover {
    gap: 0.75rem;
}

.read-more::after {
    content: '→';
}

/* Blog Post */
.blog-post {
    max-width: 800px;
    margin: 0 auto;
}

.blog-post-header {
    margin-bottom: 3rem;
}


/* Breadcrumbs (Blog Posts) */
.breadcrumbs {
    font-size: 0.9rem;
    color: var(--gray-600);
    margin-bottom: 0.85rem;
}

.breadcrumbs ol {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
}

.breadcrumbs li {
    display: inline-flex;
    align-items: center;
}

.breadcrumbs li + li::before {
    content: '›';
    margin: 0 0.6rem;
    color: var(--gray-400);
}

.breadcrumbs a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
}

.breadcrumbs a:hover {
    text-decoration: underline;
}

.blog-post h1 {
    margin-bottom: 1rem;
    line-height: 1.3;
}

.blog-post h2 {
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    padding-top: 1rem;
    border-top: 2px solid var(--gray-100);
}

.blog-post h3 {
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.blog-post p {
    margin-bottom: 1.5rem;
    line-height: 1.9;
}

.blog-post ul,
.blog-post ol {
    margin-left: 2rem;
    margin-bottom: 1.5rem;
    color: var(--gray-700);
}

.blog-post li {
    margin-bottom: 0.5rem;
    line-height: 1.8;
}

.blog-post strong {
    color: var(--gray-900);
    font-weight: 600;
}

.blog-cta {
    background: var(--gray-50);
    border-left: 4px solid var(--primary);
    padding: 2rem;
    border-radius: 0.75rem;
    margin: 3rem 0;
    text-align: center;
}

.blog-cta h3 {
    margin-bottom: 1rem;
}

.blog-cta p {
    margin-bottom: 1.5rem;
}

/* Footer */
.footer {
    background: var(--gray-900);
    color: #fff;
    padding: 4rem 0 1.5rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-section h3 {
    color: #fff;
    margin-bottom: 1.5rem;
    font-size: 1.125rem;
}

.footer-section p {
    color: var(--gray-300);
    margin-bottom: 1rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.75rem;
}

.footer-section a {
    color: var(--gray-300);
    transition: var(--transition);
}

.footer-section a:hover {
    color: #fff;
}

.footer-bottom {
    border-top: 1px solid var(--gray-700);
    padding-top: 2rem;
    text-align: center;
    color: var(--gray-400);
}

/* Utility Classes */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mt-0 { margin-top: 0; }
.mt-2 { margin-top: 1rem; }
.mt-4 { margin-top: 2rem; }
.mt-6 { margin-top: 3rem; }

.mb-0 { margin-bottom: 0; }
.mb-2 { margin-bottom: 1rem; }
.mb-4 { margin-bottom: 2rem; }
.mb-6 { margin-bottom: 3rem; }

/* Hide on mobile */
@media (max-width: 768px) {
    .hide-mobile {
        display: none;
    }
}

/* Show only on mobile */
@media (min-width: 769px) {
    .show-mobile-only {
        display: none;
    }
}

/* Step subtitle styling */
.step-subtitle {
    color: var(--gray-500);
    font-weight: 500;
    font-size: 0.95rem;
    margin-bottom: 1rem;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .section {
        padding: 4rem 0;
    }
    
    .pricing-grid {
        grid-template-columns: repeat(2, 1fr);
        max-width: 800px;
    }
    
    .steps {
        max-width: 900px;
    }
}

@media (max-width: 768px) {
    /* Reduce section padding on mobile */
    .section {
        padding: 3rem 0;
    }
    
    .hero {
        padding: 3rem 0;
    }
    
    .cta-section {
        padding: 3rem 0;
    }
    
    /* Hero text adjustments */
    .hero h1 {
        font-size: 1.75rem;
        line-height: 1.3;
    }
    
    .hero p {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }
    
    /* Better button on mobile */
    .hero .btn-large {
        padding: 1rem 1.5rem;
        font-size: 1rem;
        width: 100%;
        max-width: 320px;
    }

    .hero-cta-buttons {
        flex-direction: column !important;
        align-items: stretch !important;
    }

    .hero-cta-buttons .btn {
        width: 100%;
    }
    
    /* New hero elements mobile */
    .hero-subheadline {
        font-size: 1.05rem;
        margin-bottom: 1.25rem;
    }
    
    .hero-testimonial {
        padding: 0.875rem 1rem;
        margin-bottom: 1.5rem;
    }
    
    .hero-testimonial p {
        font-size: 0.95rem;
    }
    
    .hero-friction-reducer {
        font-size: 0.875rem;
    }
    
    /* Pricing cards - show best value first */
    .pricing-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .pricing-card.featured {
        order: -1; /* Move to top on mobile */
    }
    
    .pricing-card {
        padding: 2rem 1.5rem;
    }
    
    .price {
        font-size: 2.75rem;
    }
    
    /* Steps section mobile */
    .steps {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }
    
    .steps::before {
        display: none; /* Hide connecting line on mobile */
    }
    
    .step-item {
        padding: 1.5rem;
    }
    
    .step-badge {
        width: 40px;
        height: 40px;
        font-size: 1.1rem;
        border-radius: 10px;
    }
    
    .step-item h3 {
        font-size: 1.125rem;
    }
    
    /* Form inputs - prevent iOS zoom */
    .form-group input,
    .form-group textarea,
    .form-group select,
    input[type="email"],
    input[type="text"],
    input[type="number"],
    input[type="tel"] {
        font-size: 16px !important; /* Prevents iOS zoom */
        padding: 1rem;
        min-height: 52px;
    }
    
    .form-container {
        padding: 1.5rem;
        margin: 0 0.5rem;
    }
    
    /* Grid adjustments */
    .grid,
    .grid-2,
    .grid-3,
    .grid-4,
    .blog-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    /* Cards */
    .card {
        padding: 1.5rem;
    }
    
    /* Section titles */
    .section-title {
        font-size: 1.5rem;
    }
    
    .section-subtitle {
        font-size: 1rem;
        margin-bottom: 2rem;
    }

    .calculator-results-grid {
        grid-template-columns: 1fr !important;
    }
    
    /* Footer */
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    
    .footer-section ul {
        text-align: center;
    }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 1rem;
    }
    
    .btn {
        padding: 0.875rem 1.25rem;
        font-size: 0.95rem;
    }
    
    .btn-large {
        padding: 1rem 1.5rem;
        font-size: 1rem;
    }
    
    .hero h1 {
        font-size: 1.5rem;
    }
    
    .step-item {
        padding: 1.25rem;
    }
    
    .pricing-card {
        padding: 1.5rem 1.25rem;
    }
    
    .price {
        font-size: 2.25rem;
    }
}

/* About Page - Photo Section */
.about-intro {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 3rem;
    align-items: start;
    margin-bottom: 3rem;
}

.about-photo {
    position: sticky;
    top: 120px;
}

.about-photo img {
    width: 100%;
    max-width: 300px;
    border-radius: 1rem;
    box-shadow: var(--shadow-lg);
}

.about-photo-caption {
    text-align: center;
    margin-top: 1rem;
    font-size: 0.875rem;
    color: var(--gray-500);
}

.about-stats {
    display: flex;
    gap: 1.5rem;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--gray-200);
}

.about-stat {
    text-align: center;
}

.about-stat-number {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--primary);
    display: block;
}

.about-stat-label {
    font-size: 0.75rem;
    color: var(--gray-500);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

@media (max-width: 900px) {
    .about-intro {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .about-photo {
        position: relative;
        top: 0;
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    
    .about-photo img {
        max-width: 250px;
    }
    
    .about-stats {
        justify-content: center;
    }
}

/* Print Styles */
@media print {
    .navbar,
    .footer,
    .cta-section,
    .btn {
        display: none;
    }
}

/* Better paragraph readability */
.container-narrow p,
.blog-post p,
article p {
    max-width: 65ch;
}

/* Improve text readability */
@media (min-width: 769px) {
    p {
        max-width: 75ch;
    }
}


/* Testimonials */
.testimonials-grid{
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.25rem;
    margin-top: 1.5rem;
}
.testimonial{
    background: #fff;
    border-radius: 14px;
    padding: 1.25rem;
    box-shadow: 0 6px 18px rgba(0,0,0,0.06);
    border: 1px solid rgba(0,0,0,0.06);
}
.testimonial blockquote{
    margin: 0 0 0.75rem 0;
    font-size: 1.02rem;
    line-height: 1.55;
}
.testimonial figcaption{
    font-size: 0.95rem;
    opacity: 0.85;
}

/* Blog tools box */
.blog-tools{
    margin-top: 2rem;
    padding: 1.25rem;
    border-radius: 14px;
    background: rgba(0,0,0,0.03);
    border: 1px solid rgba(0,0,0,0.06);
}
.blog-tools ul{
    margin: 0.75rem 0 0 1.25rem;
}

/* Simple two column helper */
.two-col{
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem;
    margin-top: 1.25rem;
}


/* =========================================================
   Goalpost Finance – Style Normalization Overrides
   (Added for consistency across all pages)
   ========================================================= */

:root{
    --radius-lg: 16px;
    --shadow-soft: 0 10px 24px rgba(0,0,0,0.08);
    --border-soft: 1px solid rgba(0,0,0,0.08);
}

body{
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Consistent section spacing */
.section{
    padding-top: 4rem;
    padding-bottom: 4rem;
}
@media (max-width: 768px){
    .section{
        padding-top: 3rem;
        padding-bottom: 3rem;
    }
}

/* Typography consistency */
h1, h2, h3{
    letter-spacing: -0.01em;
}
h1{
    line-height: 1.15;
}
h2{
    line-height: 1.2;
}
h3{
    line-height: 1.25;
}
p{
    line-height: 1.7;
}

/* Buttons */
.btn{
    border-radius: 999px;
    padding: 0.85rem 1.25rem;
    font-weight: 700;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: transform 0.12s ease, box-shadow 0.12s ease, opacity 0.12s ease;
}
.btn:hover{
    transform: translateY(-1px);
    box-shadow: var(--shadow-soft);
}
.btn:active{
    transform: translateY(0px);
}

/* Cards */
.card,
.blog-card,
.testimonial{
    border-radius: var(--radius-lg);
}

/* Blog cards: consistent spacing */
.blog-card-content{
    padding: 1.25rem;
}
.blog-excerpt{
    margin-top: 0.6rem;
}

/* Calculator results spacing */
#results, .results{
    scroll-margin-top: 120px;
}

/* Footer: consistent layout everywhere */
footer.footer{
    padding-top: 3rem;
    padding-bottom: 3rem;
}
footer.footer .footer-content{
    gap: 1.25rem;
}
footer.footer a{
    text-decoration: none;
}
footer.footer a:hover{
    text-decoration: underline;
}

/* Prevent footer weirdness on short pages */
html, body{
    height: 100%;
}
body{
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}
main{
    flex: 1;
}

/* Make sure hero doesn't cause layout shift */
.hero{
    padding-top: 4.5rem;
    padding-bottom: 4.5rem;
}
@media (max-width: 768px){
    .hero{
        padding-top: 3.25rem;
        padding-bottom: 3.25rem;
    }
}

/* Reduce excessive top margin in blog content */
.blog-content h2{
    margin-top: 2.25rem;
}
.blog-content h3{
    margin-top: 1.5rem;
}

/* Make all nav links feel consistent */
.nav-links a{
    text-decoration: none;
}
.nav-links a:hover{
    text-decoration: none;
}


/* Related reading (blog) */
.related-reading{
    margin-top: 1rem;
    padding-left: 1.25rem;
}
.related-reading li{
    margin: 0.5rem 0;
}
.related-reading a{
    display: inline;
    white-space: normal;
    word-break: break-word;
    overflow-wrap: anywhere;
}

.about-author{
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 2px solid #e5e7eb;
    color: rgba(0,0,0,0.75);
}



/* Sticky Navigation (Sitewide) */
/* (navbar consolidated above) */

/* Prevent content from hiding under fixed navbar */
body {
    padding-top: 92px;
}

@media (max-width: 768px) {
    body {
        padding-top: 90px;
    }
}


/* --- Goalpost conversion UX fixes --- */
.scroll-target{
  scroll-margin-top: 110px; /* offset for sticky header */
}


/* --- Goalpost: Premium landing page (private coaching) --- */
.gp-landing { background: #ffffff; }
.gp-hero { padding: 88px 18px 64px; background: linear-gradient(180deg, rgba(15,23,42,0.06), rgba(255,255,255,1)); }
.gp-hero__inner { max-width: 1100px; margin: 0 auto; display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 28px; align-items: center; }
.gp-eyebrow { letter-spacing: .14em; text-transform: uppercase; font-weight: 700; font-size: 12px; opacity: .75; margin-bottom: 12px; }
.gp-subhead { font-size: 18px; line-height: 1.6; max-width: 44ch; margin: 14px 0 18px; opacity: .92; }
.gp-hero__cta { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 18px; }
.gp-micro { margin-top: 12px; font-size: 13px; opacity: .75; }
.gp-btn { display: inline-flex; align-items: center; justify-content: center; padding: 12px 18px; border-radius: 10px; font-weight: 700; text-decoration: none; border: 1px solid rgba(15,23,42,.14); }
.gp-btn--primary { background: #0f172a; color: #fff; }
.gp-btn--primary:hover { filter: brightness(1.05); }
.gp-btn--ghost { background: rgba(255,255,255,.65); color: #0f172a; }
.gp-card { background: rgba(255,255,255,.92); border: 1px solid rgba(15,23,42,.10); box-shadow: 0 10px 30px rgba(15,23,42,.08); border-radius: 16px; padding: 18px 18px 14px; }
.gp-card__title { margin: 0 0 10px; font-size: 16px; }
.gp-checklist { margin: 0; padding-left: 18px; }
.gp-checklist li { margin: 8px 0; }
.gp-card__meta { display:flex; gap:8px; flex-wrap: wrap; margin-top: 12px; }
.gp-pill { font-size: 12px; padding: 6px 10px; border-radius: 999px; background: rgba(15,23,42,.06); border: 1px solid rgba(15,23,42,.10); }

.gp-section { padding: 64px 18px; }
.gp-section--alt { background: rgba(15,23,42,.03); }
.gp-section__inner { max-width: 1100px; margin: 0 auto; }
.gp-lede { max-width: 70ch; opacity: .9; }

.gp-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 18px; }
.gp-grid--two { grid-template-columns: repeat(2, 1fr); }
.gp-bulletcard, .gp-infocard { background: #fff; border: 1px solid rgba(15,23,42,.10); border-radius: 14px; padding: 16px; box-shadow: 0 8px 18px rgba(15,23,42,.05); }
.gp-bulletcard h3, .gp-infocard h3 { margin-top: 0; margin-bottom: 6px; font-size: 16px; }
.gp-callout { margin-top: 18px; padding: 14px 16px; border-radius: 14px; background: rgba(15,23,42,.05); border: 1px solid rgba(15,23,42,.10); }

.gp-steps { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 14px; }
.gp-steps li { background: #fff; border: 1px solid rgba(15,23,42,.10); border-radius: 14px; padding: 16px; }
.gp-steps h3 { margin: 0 0 6px; }

.gp-ctaBand { margin-top: 22px; background: #0f172a; color: #fff; border-radius: 16px; padding: 18px; display:flex; gap: 16px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.gp-ctaBand p { margin: 4px 0 0; opacity: .9; }
.gp-ctaBand .gp-btn--primary { background: #fff; color: #0f172a; border-color: rgba(255,255,255,.25); }
.gp-ctaBand--tight { margin-top: 18px; }

.gp-softlink { margin-top: 14px; opacity: .9; }
.gp-softlink a { font-weight: 700; }

.gp-testimonials { display:grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 18px; }
.gp-quote { background: #fff; border: 1px solid rgba(15,23,42,.10); border-radius: 14px; padding: 16px; box-shadow: 0 8px 18px rgba(15,23,42,.05); }
.gp-quote footer { margin-top: 10px; font-weight: 800; opacity: .85; }

.gp-faq details { background: #fff; border: 1px solid rgba(15,23,42,.10); border-radius: 14px; padding: 14px 16px; margin: 10px 0; }
.gp-faq summary { cursor: pointer; font-weight: 800; }

@media (max-width: 980px){
  .gp-hero__inner { grid-template-columns: 1fr; }
  .gp-grid { grid-template-columns: 1fr 1fr; }
  .gp-testimonials { grid-template-columns: 1fr; }
}
@media (max-width: 520px){
  .gp-grid { grid-template-columns: 1fr; }
}

/* --- Goalpost: Hero CTA pills (official colors) --- */
.hero-cta{
  margin-top: 22px;
  display:flex;
  justify-content:center;
  gap:14px;
  flex-wrap:wrap;
}
.hero-cta__btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding: 12px 20px;
  border-radius: 999px;
  font-weight: 800;
  text-decoration:none;
  box-shadow: 0 10px 22px rgba(15, 23, 42, 0.10);
  border: 2px solid transparent;
  min-width: 190px;
}
.hero-cta__btn--primary{
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color:#ffffff;
}
.hero-cta__btn--primary:hover{ filter: brightness(1.03); }

.hero-cta__btn--secondary{
  background: rgba(255,255,255,0.10);
  color:#ffffff;
  border-color: rgba(255,255,255,0.85);
}
.hero-cta__btn--secondary:hover{
  background: rgba(255,255,255,0.16);
}

/* Light hero sections: make secondary button use Goalpost blue for contrast */
.hero.light .hero-cta__btn--secondary,
.page-hero.light .hero-cta__btn--secondary,
.banner.light .hero-cta__btn--secondary{
  background: #ffffff;
  color:#2563eb;
  border-color:#2563eb;
}
.hero.light .hero-cta__btn--secondary:hover,
.page-hero.light .hero-cta__btn--secondary:hover,
.banner.light .hero-cta__btn--secondary:hover{
  background: rgba(37,99,235,0.06);
}

/* Mobile centering */
@media (max-width: 768px){
  .hero, .page-hero, .banner, .hero-section{
    text-align:center;
  }
}



/* Bottom CTA section wrapper */
.bottom-cta{
  margin-top: 26px;
  display:flex;
  justify-content:center;
  gap:14px;
  flex-wrap:wrap;
}


/* Blog Topic Hub (Pillars) */
.topic-hub h2 {
    margin-bottom: 0.5rem;
}

.section-subtitle {
    color: var(--gray-600);
    max-width: 720px;
}

.topic-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
    margin-top: 1.5rem;
}

.topic-card {
    background: #fff;
    border: 1px solid var(--gray-200);
    border-radius: 1rem;
    padding: 1.25rem;
    text-decoration: none;
    color: inherit;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.topic-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow);
    border-color: rgba(37, 99, 235, 0.25);
}

.topic-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: rgba(37, 99, 235, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
}

.topic-title {
    font-weight: 800;
    letter-spacing: -0.01em;
}

.topic-desc {
    color: var(--gray-600);
    font-size: 0.95rem;
    line-height: 1.4;
}

.topic-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1.25rem;
}

.filter-btn {
    border: 1px solid var(--gray-200);
    background: #fff;
    color: var(--gray-700);
    padding: 0.45rem 0.7rem;
    border-radius: 999px;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: var(--transition);
}

.filter-btn:hover {
    border-color: rgba(37, 99, 235, 0.35);
    color: var(--primary);
}

.filter-btn.active {
    background: rgba(16, 185, 129, 0.12);
    border-color: rgba(16, 185, 129, 0.35);
    color: var(--secondary-dark);
}

.blog-pill {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    padding: 0.25rem 0.55rem;
    border-radius: 999px;
    background: rgba(37, 99, 235, 0.08);
    border: 1px solid rgba(37, 99, 235, 0.18);
    color: var(--primary-dark);
    font-weight: 700;
    font-size: 0.8rem;
    margin-top: 0.9rem;
}

.pillar-intro {
    max-width: 820px;
    color: var(--gray-600);
    margin-bottom: 1.25rem;
}

.empty-state {
    margin-top: 1.5rem;
    background: #fff;
    border: 1px dashed var(--gray-300);
    border-radius: 1rem;
    padding: 1.5rem;
}

.empty-state h3 {
    margin-bottom: 0.25rem;
}

.empty-state p {
    color: var(--gray-600);
}

.empty-actions {
    display: flex;
    gap: 0.75rem;
    margin-top: 1rem;
    flex-wrap: wrap;
}


/* Pillar Pages: Featured "Start Here" */
.pillar-featured{
  margin: 1.25rem 0 1.75rem;
}
.featured-card{
  background: linear-gradient(135deg, rgba(37,99,235,0.10), rgba(16,185,129,0.10));
  border: 1px solid rgba(37,99,235,0.18);
  border-radius: 1.25rem;
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
}
.featured-badge{
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  background: rgba(16,185,129,0.14);
  border: 1px solid rgba(16,185,129,0.30);
  color: var(--secondary-dark);
  font-weight: 800;
  font-size: 0.8rem;
  letter-spacing: -0.01em;
}
.featured-card h2{
  margin: 0.75rem 0 0.35rem;
  letter-spacing: -0.02em;
}
.featured-card h2 a{
  color: var(--gray-900);
  text-decoration: none;
}
.featured-card h2 a:hover{
  color: var(--primary-dark);
  text-decoration: underline;
}
.featured-card p{
  color: var(--gray-700);
  max-width: 900px;
}
.featured-actions{
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-top: 1rem;
}

/* Blog Post: More in this topic */
.topic-more{
  margin: 2.25rem 0 1.75rem;
  background: #ffffff;
  border: 1px solid var(--gray-200);
  border-radius: 1rem;
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
}
.topic-more__top{
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
}
.topic-more__kicker{
  color: var(--gray-600);
  font-weight: 700;
  font-size: 0.95rem;
}
.topic-more__pill{
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 0.25rem 0.55rem;
  border-radius: 999px;
  background: rgba(37, 99, 235, 0.08);
  border: 1px solid rgba(37, 99, 235, 0.18);
  color: var(--primary-dark);
  font-weight: 800;
  font-size: 0.85rem;
  text-decoration: none;
}
.topic-more__pill:hover{
  border-color: rgba(37, 99, 235, 0.35);
  text-decoration: underline;
}
.topic-more__title{
  margin: 0.75rem 0 0.25rem;
}
.topic-more__links{
  margin: 0.6rem 0 0;
  padding-left: 1.15rem;
}
.topic-more__links li{
  margin: 0.35rem 0;
}
.topic-more__actions{
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-top: 1rem;
}

/* Responsive */
@media (max-width: 980px) {
    .topic-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
    .topic-grid { grid-template-columns: 1fr; }
}


/* ===============================
   Goalpost Blog Visuals (tables/timelines)
   =============================== */
.gp-table-wrap{
  overflow-x: auto;
  margin: 1.25rem 0 1.5rem;
  border: 1px solid rgba(15,23,42,.10);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 8px 18px rgba(15,23,42,.05);
}
.gp-table{
  width: 100%;
  border-collapse: collapse;
  min-width: 720px;
}
.gp-table th, .gp-table td{
  padding: 12px 14px;
  border-bottom: 1px solid rgba(15,23,42,.10);
  vertical-align: top;
}
.gp-table th{
  background: rgba(15,23,42,.04);
  font-weight: 800;
  text-align: left;
  color: var(--gray-800);
  font-size: 0.95rem;
}
.gp-table tr:last-child td{ border-bottom: none; }

.gp-timeline{
  list-style: none;
  padding: 0;
  margin: 1.25rem 0 1.5rem;
  display: grid;
  gap: 12px;
}
.gp-timeline li{
  background: #fff;
  border: 1px solid rgba(15,23,42,.10);
  border-radius: 14px;
  padding: 14px 16px;
  box-shadow: 0 8px 18px rgba(15,23,42,.05);
}
.gp-timeline .gp-time{
  display: inline-block;
  font-weight: 900;
  color: var(--primary-dark);
  margin-bottom: 4px;
}


/* =========================================================
   Goalpost Brand Corrections (CTAs + Blog Visual Blocks)
   ========================================================= */

/* Ensure primary hover stays on-brand */
.btn-primary:hover{
  background: var(--primary-dark);
  color:#fff;
}

/* GP CTA components used inside expanded blog posts */
.gp-btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 18px;
  border-radius: 999px;
  font-weight: 800;
  text-decoration: none;
  border: 2px solid transparent;
  transition: transform 0.12s ease, box-shadow 0.12s ease, filter 0.12s ease, background 0.12s ease;
  min-height: 48px;
}
.gp-btn:hover{ transform: translateY(-1px); box-shadow: var(--shadow-md); }
.gp-btn:active{ transform: translateY(0); }

.gp-btn--primary{
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}
.gp-btn--primary:hover{
  background: var(--primary-dark);
  border-color: var(--primary-dark);
  filter: none;
}

.gp-btn--ghost{
  background: transparent;
  color: var(--primary);
  border-color: var(--primary);
}
.gp-btn--ghost:hover{
  background: rgba(37, 99, 235, 0.08);
}

/* CTA band: match Goalpost blue and keep contrast high */
.gp-ctaBand{
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: #fff;
  border-radius: 16px;
  padding: 18px;
  display:flex;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  border: 1px solid rgba(255,255,255,0.22);
}
.gp-ctaBand p{ color: rgba(255,255,255,0.92); margin: 4px 0 0; }

/* Buttons inside the band */
.gp-ctaBand .gp-btn--primary{
  background: #fff;
  color: var(--primary-dark);
  border-color: #fff;
}
.gp-ctaBand .gp-btn--primary:hover{
  background: rgba(255,255,255,0.92);
  border-color: rgba(255,255,255,0.92);
}
.gp-ctaBand .gp-btn--ghost{
  background: transparent;
  color: #fff;
  border-color: rgba(255,255,255,0.92);
}
.gp-ctaBand .gp-btn--ghost:hover{
  background: rgba(255,255,255,0.14);
}

/* GP cards + info cards: align to existing neutral palette */
.gp-card,
.gp-bulletcard,
.gp-infocard,
.gp-callout,
.gp-steps li,
.gp-quote,
.gp-faq details{
  background: #fff;
  border: 1px solid var(--gray-200);
  border-radius: 14px;
  box-shadow: var(--shadow-sm);
}
.gp-card{ padding: 18px 18px 14px; }
.gp-card__title{ margin: 0 0 10px; font-size: 1rem; }
.gp-checklist{ margin: 0; padding-left: 18px; }
.gp-checklist li{ margin: 8px 0; color: var(--gray-700); }
.gp-pill{
  font-size: 12px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(37,99,235,0.08);
  border: 1px solid rgba(37,99,235,0.18);
  color: var(--primary-dark);
  font-weight: 800;
}

/* Blog visuals */
.gp-table-wrap{
  border: 1px solid var(--gray-200);
  border-radius: 14px;
  background: #fff;
  box-shadow: var(--shadow-sm);
}
.gp-table th, .gp-table td{
  border-bottom: 1px solid var(--gray-200);
}
.gp-table th{
  background: rgba(37,99,235,0.05);
  color: var(--gray-800);
}
.gp-timeline li{
  border: 1px solid var(--gray-200);
  box-shadow: var(--shadow-sm);
}
.gp-timeline .gp-time{ color: var(--primary-dark); }

/* Hero CTA pills: primary should match Goalpost blue */
.hero-cta__btn--primary{
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color:#ffffff;
}


/* ── New post elements (callouts, toc, stat cards, etc.) ─────────────────── */
.callout {
  border-radius: 8px;
  padding: 1.25rem 1.5rem;
  margin: 1.5rem 0;
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  background: #EFF6FF;
  border-left: 4px solid var(--primary);
}
.callout.green { background: #ECFDF5; border-left-color: #059669; }
.callout.yellow { background: #FFFBEB; border-left-color: #D97706; }
.callout.red { background: #FEF2F2; border-left-color: #DC2626; }
.callout-icon { font-size: 1.5rem; flex-shrink: 0; line-height: 1.5; }
.callout-body strong { display: block; margin-bottom: 0.25rem; color: var(--gray-900); }
.callout-body p { margin: 0; color: var(--gray-700); font-size: 0.95rem; }

.toc {
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  border-radius: 10px;
  padding: 1.5rem 1.75rem;
  margin: 1.5rem 0 2rem;
}
.toc h3 { font-size: 1rem; color: var(--gray-900); margin-bottom: 0.75rem; }
.toc ol { padding-left: 1.25rem; }
.toc li { margin-bottom: 0.4rem; }
.toc a { color: var(--primary); text-decoration: none; font-size: 0.95rem; }
.toc a:hover { text-decoration: underline; }

.stat-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1rem;
  margin: 1.5rem 0 2rem;
}
.stat-card {
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  border-radius: 10px;
  padding: 1.25rem;
  text-align: center;
}
.stat-card .val {
  display: block;
  font-size: 2rem;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 0.25rem;
}
.stat-card .lbl { font-size: 0.85rem; color: var(--gray-600); line-height: 1.4; }

.reason-card, .fix-card {
  border: 1px solid var(--gray-200);
  border-radius: 12px;
  padding: 1.5rem;
  margin: 1.25rem 0;
}
.fix-card { background: #ECFDF5; border-color: rgba(5, 150, 105, 0.25); }
.reason-num { font-size: 2.5rem; font-weight: 800; color: var(--gray-200); line-height: 1; margin-bottom: 0.5rem; }
.reason-title, .fix-title { font-weight: 700; color: var(--gray-900); margin-bottom: 0.75rem; }
.fix-label { font-size: 0.7rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: #059669; margin-bottom: 0.5rem; }

.comparison-table { width: 100%; border-collapse: collapse; margin: 1.5rem 0; font-size: 0.95rem; }
.comparison-table th { background: var(--gray-800); color: #fff; padding: 0.75rem 1rem; text-align: left; font-size: 0.85rem; }
.comparison-table td { padding: 0.75rem 1rem; border-bottom: 1px solid var(--gray-200); vertical-align: top; }
.comparison-table tr:last-child td { border-bottom: none; }
.comparison-table tr:nth-child(even) td { background: var(--gray-50); }
.comparison-table .x { color: #DC2626; font-weight: 700; }
.comparison-table .check { color: #059669; font-weight: 700; }

.faq-item { border-bottom: 1px solid var(--gray-200); padding: 1rem 0; }
.faq-item:last-of-type { border-bottom: none; }
.faq-q { font-weight: 700; color: var(--gray-900); margin-bottom: 0.5rem; }
.faq-a { color: var(--gray-700); margin: 0; }

.savings-row, .compare-grid, .audit-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin: 1.5rem 0;
}
.savings-card, .compare-card, .audit-card {
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  border-radius: 10px;
  padding: 1.25rem;
}
.savings-card .service-name, .compare-card strong { font-weight: 700; color: var(--gray-900); display: block; margin-bottom: 0.5rem; }
.savings-card .savings-amount { font-size: 1.5rem; font-weight: 800; color: var(--primary); }

/* Content wrap (from new posts) — remove max-width override since container-narrow handles it */
.content-wrap { max-width: none; padding: 0; margin: 0; }

/* Steps and process lists */
.step-list { list-style: none; padding: 0; counter-reset: step-counter; }
.step-list li { counter-increment: step-counter; display: flex; gap: 1rem; margin-bottom: 1.5rem; }
.step-list li::before { content: counter(step-counter); background: var(--primary); color: white; width: 2rem; height: 2rem; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 0.9rem; flex-shrink: 0; }

/* Script blocks in new posts */
.script-block {
  background: var(--gray-50);
  border-left: 4px solid var(--primary);
  border-radius: 0 8px 8px 0;
  padding: 1.25rem 1.5rem;
  margin: 1.25rem 0;
  font-style: italic;
  color: var(--gray-700);
}

/* =====================================================
   Calculator Page SEO Content Sections
   ===================================================== */
.calc-seo-intro {
  background: #fff;
  padding: 48px 20px 32px;
  border-bottom: 1px solid #e2e8f0;
}
.calc-seo-intro .inner {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 1.5rem;
}
.calc-seo-intro h2 {
  font-size: 1.6rem;
  color: #1e293b;
  margin-bottom: 1rem;
  font-weight: 700;
}
.calc-seo-intro p {
  color: #475569;
  line-height: 1.75;
  margin-bottom: 0.85rem;
  font-size: 1.05rem;
}
.calc-seo-content {
  background: #f8fafc;
  padding: 56px 20px;
}
.calc-seo-content .inner {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 1.5rem;
}
.calc-seo-content h2 {
  font-size: 1.5rem;
  color: #1e293b;
  margin-bottom: 1.1rem;
  margin-top: 2.5rem;
  font-weight: 700;
}
.calc-seo-content h2:first-child { margin-top: 0; }
.calc-seo-content p {
  color: #475569;
  line-height: 1.75;
  margin-bottom: 0.85rem;
  font-size: 1rem;
}
.calc-seo-content ol,
.calc-seo-content ul {
  color: #475569;
  line-height: 1.75;
  padding-left: 1.5rem;
  margin-bottom: 1rem;
  font-size: 1rem;
}
.calc-seo-content li { margin-bottom: 0.5rem; }
.calc-concept-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1rem;
  margin: 1.25rem 0 2rem;
}
.calc-concept-card {
  background: white;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 1.25rem 1.4rem;
}
.calc-concept-card h3 {
  color: #2563eb;
  font-size: 1rem;
  margin-bottom: 0.5rem;
  font-weight: 700;
}
.calc-concept-card p {
  color: #475569;
  font-size: 0.95rem;
  margin: 0;
  line-height: 1.6;
}
.calc-faq-list { margin-top: 1rem; }
.calc-faq-item {
  border-bottom: 1px solid #e2e8f0;
  padding: 1.25rem 0;
}
.calc-faq-item:last-child { border-bottom: none; }
.calc-faq-q {
  font-weight: 700;
  color: #1e293b;
  font-size: 1.02rem;
  margin-bottom: 0.5rem;
}
.calc-faq-a {
  color: #475569;
  line-height: 1.75;
  margin: 0;
  font-size: 0.98rem;
}
.calc-seo-cta {
  background: linear-gradient(135deg, #2563eb 0%, #1e40af 100%);
  color: white;
  padding: 40px 36px;
  border-radius: 16px;
  text-align: center;
  margin-top: 2.5rem;
}
.calc-seo-cta h2 {
  color: white !important;
  margin-bottom: 0.75rem !important;
  margin-top: 0 !important;
  font-size: 1.5rem;
}
.calc-seo-cta p {
  color: rgba(255,255,255,0.9) !important;
  margin-bottom: 1.25rem;
  font-size: 1.05rem;
}
.calc-seo-cta a {
  display: inline-block;
  background: white;
  color: #2563eb;
  font-weight: 700;
  padding: 14px 28px;
  border-radius: 8px;
  text-decoration: none;
  margin: 6px;
  transition: background 0.2s;
  font-size: 0.98rem;
}
.calc-seo-cta a:hover { background: #f0f4ff; }
.calc-seo-cta a.outline {
  background: transparent;
  color: white;
  border: 2px solid white;
}
.calc-seo-cta a.outline:hover { background: rgba(255,255,255,0.1); }
.calc-other-tools {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 0.75rem;
  margin-top: 1.25rem;
}
.calc-other-tools a {
  background: white;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 0.85rem 1rem;
  text-decoration: none;
  color: #2563eb;
  font-weight: 600;
  font-size: 0.9rem;
  text-align: center;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.calc-other-tools a:hover {
  border-color: #2563eb;
  box-shadow: 0 2px 8px rgba(37,99,235,0.15);
}
@media (max-width: 640px) {
  .calc-seo-intro { padding: 32px 16px 24px; }
  .calc-seo-intro h2 { font-size: 1.3rem; }
  .calc-seo-content { padding: 36px 16px; }
  .calc-seo-cta { padding: 28px 20px; }
  .calc-seo-cta a { display: block; margin: 6px 0; }
}

/* Clickable card wrapper */
.card-link {
    display: block;
    text-decoration: none;
    color: inherit;
}
.card-link:hover .card {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}
.card-link:hover span.btn {
    background: var(--primary-dark);
    color: #fff;
}