/* Steadfast Method Website Styles */

/* Base Styles */
body {
    margin: 0;
    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
    color: #1e293b;
    background-color: #f8fafc;
    line-height: 1.6;
}

h1, h2, h3 {
    margin-top: 0;
    color: #0f172a;
    font-weight: 700;
}

p {
    margin-bottom: 1rem;
}

section {
    padding: 3rem 1rem;
    max-width: 1100px;
    margin: 0 auto;
}

/* Navigation */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    background-color: #0f172a;
    color: #f1f5f9;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
}

.logo-icon {
    background-color: #334155;
    color: #f9fafb;
    padding: 0.5rem 0.75rem;
    border-radius: 0.25rem;
    font-size: 1.2rem;
}

/* Logo image styling */
.logo-img {
    width: 48px;
    height: auto;
    display: block;
}

/* Fade-in animation */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    opacity: 0;
    animation: fadeIn 0.8s ease forwards;
}

/* How It Works section */
.how-it-works {
    background-color: #f8fafc;
    text-align: center;
}
.how-it-works h2 {
    margin-bottom: 1.5rem;
}
.how-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}
.how-step {
    background-color: #fff;
    border: 1px solid #cbd5e1;
    border-radius: 0.5rem;
    padding: 1.5rem;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}
.how-step h3 {
    margin-bottom: 0.5rem;
    font-size: 1.125rem;
}
.how-step p {
    font-size: 0.95rem;
}
.how-cta {
    display: flex;
    justify-content: center;
    gap: 1rem;
}
.cta-button.secondary {
    background-color: #334155;
    color: #facc15;
}
.cta-button.secondary:hover {
    background-color: #475569;
}

/* Metrics section */
.metrics {
    background-color: #0f172a;
    color: #facc15;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 2rem;
    padding: 2rem 1rem;
}
.metric {
    text-align: center;
    min-width: 180px;
}
.metric h3 {
    font-size: 2rem;
    margin-bottom: 0.25rem;
}
.metric p {
    font-size: 0.9rem;
    margin: 0;
}

/* FAQ section */
.faq {
    background-color: #f8fafc;
}
.faq h2 {
    text-align: center;
    margin-bottom: 1.5rem;
}
.faq-item {
    max-width: 800px;
    margin: 0 auto 1.25rem auto;
}
.faq-item h3 {
    font-size: 1rem;
    margin-bottom: 0.25rem;
    color: #0f172a;
}
.faq-item p {
    font-size: 0.95rem;
    color: #334155;
    display: none;
}

.faq-item p.open {
    display: block;
    margin-top: 0.25rem;
}

.faq-item h3 {
    cursor: pointer;
    user-select: none;
    position: relative;
}
.faq-item h3::after {
    content: '\25bc';
    position: absolute;
    right: 0;
    transition: transform 0.3s ease;
}
.faq-item h3.open::after {
    transform: rotate(180deg);
}

/* Book Audit section */
.book {
    background-color: #f1f5f9;
    padding-top: 3rem;
    padding-bottom: 3rem;
    text-align: center;
}
.book h2 {
    margin-bottom: 1rem;
}
.book p {
    max-width: 650px;
    margin: 0 auto 1.5rem auto;
}
.book-form {
    max-width: 600px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
.book-form input,
.book-form textarea {
    padding: 0.75rem 1rem;
    border: 1px solid #cbd5e1;
    border-radius: 0.375rem;
    font-size: 1rem;
    resize: vertical;
}
.book .fine-print {
    font-size: 0.875rem;
    color: #64748b;
    margin-top: 1rem;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 2rem;
    margin: 0;
    padding: 0;
}

.nav-links li a {
    color: #e2e8f0;
    text-decoration: none;
    font-size: 1rem;
    transition: color 0.2s ease;
}

.nav-links li a:hover {
    color: #facc15;
}

/* Hero Section */
.hero {
    background: linear-gradient(to bottom right, #e5e7eb, #f9fafb);
    padding: 3rem 1.75rem;
    border-radius: 1.5rem;
    border: 1px solid rgba(148,163,184,0.45);
    box-shadow: 0 24px 45px rgba(15,23,42,0.08);
    margin-bottom: 3rem;
}

.hero-content h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.hero-content p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
}

.cta-button {
    display: inline-block;
    background-color: #facc15;
    color: #0f172a;
    padding: 0.75rem 1.5rem;
    border-radius: 0.375rem;
    text-decoration: none;
    font-weight: 600;
    transition: background-color 0.3s ease;
}

.cta-button:hover {
    background-color: #f59e0b;
    color: #0f172a;
}

/* Method Section */
.method h2 {
    text-align: center;
    margin-bottom: 2rem;
}

.method p {
    max-width: 700px;
    margin: 0 auto 2rem auto;
    text-align: center;
}

.method-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
}

.step {
    background-color: #f1f5f9;
    border: 1px solid #cbd5e1;
    border-radius: 0.5rem;
    padding: 1.5rem;
    text-align: center;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

/* Services Section */
.services h2 {
    text-align: center;
    margin-bottom: 2rem;
}

.service-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.card {
    background-color: #fff;
    border: 1px solid #cbd5e1;
    border-radius: 0.5rem;
    padding: 2rem 1.5rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.card h3 {
    margin-bottom: 0.5rem;
}

.card p {
    flex-grow: 1;
}

.card-button {
    margin-top: 1rem;
    align-self: flex-start;
    padding: 0.5rem 1rem;
    background-color: #0f172a;
    color: #facc15;
    border-radius: 0.375rem;
    text-decoration: none;
    font-weight: 600;
    transition: background-color 0.3s ease;
}

.card-button:hover {
    background-color: #334155;
    color: #facc15;
}

/* Testimonials */
.testimonial h2 {
    text-align: center;
    margin-bottom: 2rem;
}

.testimonials {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    max-width: 900px;
    margin: 0 auto;
}

.testimonials blockquote {
    background-color: #fff;
    border-left: 4px solid #facc15;
    padding: 1.5rem 1.5rem 1.5rem 2rem;
    margin: 0;
    border-radius: 0.375rem;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    font-style: italic;
}

.testimonials cite {
    display: block;
    margin-top: 0.5rem;
    font-style: normal;
    font-weight: bold;
    color: #334155;
}

/* Starter Kit Section */
.starter-kit h2 {
    text-align: center;
    margin-bottom: 1rem;
}

.starter-kit p {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 2rem auto;
}

.starter-form {
    max-width: 500px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.starter-form label {
    font-weight: 600;
}

.starter-form input {
    padding: 0.75rem 1rem;
    border: 1px solid #cbd5e1;
    border-radius: 0.375rem;
    font-size: 1rem;
}

.starter-form button {
    background-color: #0f172a;
    color: #facc15;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 0.375rem;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.starter-form button:hover {
    background-color: #334155;
}

/* Contact Section */
.contact {
    background-color: #f1f5f9;
    text-align: center;
}

.contact h2 {
    margin-bottom: 0.5rem;
}

.contact p {
    margin-bottom: 1.5rem;
}

/* Footer */
.footer {
    background-color: #0f172a;
    color: #f1f5f9;
    padding: 1rem 0;
}

.footer-content {
    text-align: center;
    font-size: 0.875rem;
}

.footer-content a {
    color: #facc15;
    text-decoration: none;
    margin: 0 0.5rem;
}

.footer-content a:hover {
    text-decoration: underline;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .testimonials {
        grid-template-columns: 1fr;
    }
}

/* Subpage layout */
.page-container {
    max-width: 960px;
    margin: 0 auto;
    padding: 3rem 1.25rem 3.5rem;
}

.subpage-hero {
    background: linear-gradient(to bottom right, #e5e7eb, #f9fafb);
    border-radius: 16px;
    padding: 2rem 1.75rem 2.25rem;
    border: 1px solid rgba(148,163,184,0.45);
    box-shadow: 0 18px 40px rgba(15,23,42,0.06);
    margin-bottom: 2.5rem;
}

.subpage-hero h1 {
    font-size: 2rem;
    margin-bottom: 0.75rem;
}

.subpage-hero p {
    max-width: 680px;
    font-size: 1rem;
}

.page-section {
    margin-bottom: 2.5rem;
}

.page-section h2 {
    font-size: 1.35rem;
    margin-bottom: 0.5rem;
}

.page-section p {
    font-size: 0.95rem;
}

.tool-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.25rem;
}

.tool-card {
    background-color: #ffffff;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    padding: 1.25rem 1.2rem;
    box-shadow: 0 12px 30px rgba(15,23,42,0.04);
}

.tool-card h3 {
    margin-bottom: 0.4rem;
}

.tool-note {
    font-size: 0.85rem;
    color: #64748b;
}

.tool-form {
    display: grid;
    gap: 1rem;
    max-width: 700px;
}

.tool-form label {
    font-weight: 600;
    font-size: 0.9rem;
}

.tool-form input {
    width: 100%;
    padding: 0.55rem 0.6rem;
    border-radius: 6px;
    border: 1px solid #cbd5e1;
    font-size: 0.9rem;
}

.tool-form input:focus {
    outline: none;
    border-color: #0f172a;
    box-shadow: 0 0 0 1px rgba(15,23,42,0.08);
}

.tool-results {
    margin-top: 1.25rem;
    padding: 1rem 1rem;
    border-radius: 10px;
    background-color: #0f172a;
    color: #e2e8f0;
    font-size: 0.92rem;
}

.tool-results strong {
    color: #facc15;
}

.small-muted {
    font-size: 0.8rem;
    color: #64748b;
}

.hero h1 {
    font-size: 2.4rem;
    line-height: 1.2;
    margin-bottom: 0.75rem;
    color: #0f172a;
}


/* === V2 POLISH OVERRIDES === */
.hero {
    padding-top: 4.5rem;
    padding-bottom: 3.5rem;
}

.hero h1 {
    font-size: 2.6rem;
    letter-spacing: -0.02em;
}

.hero p {
    font-size: 1.02rem;
    max-width: 36rem;
}

.cta-button,
.card-button {
    display: inline-block;
    padding: 0.9rem 1.9rem;
    border-radius: 999px;
    font-weight: 600;
    font-size: 0.98rem;
    box-shadow: 0 10px 22px rgba(15,23,42,0.18);
    border: none;
}

.cta-button.secondary,
.card-button {
    background-color: #0f172a;
    color: #facc15;
}

.cta-button.secondary:hover,
.card-button:hover {
    background-color: #1f2937;
    color: #fde68a;
}

.section-alt {
    background-color: #f3f4f6;
}

.starter-kit {
    background-color: #f9fafb;
    padding: 3rem 1.5rem;
}

.starter-kit .starter-form {
    max-width: 420px;
    margin: 1.5rem auto 0;
    padding: 1.5rem 1.5rem 1.75rem;
    background-color: #ffffff;
    border-radius: 0.75rem;
    box-shadow: 0 18px 35px rgba(15,23,42,0.08);
}

.starter-kit .starter-form input,
.starter-kit .starter-form button {
    margin-top: 0.35rem;
}

.testimonial {
    background-color: #f9fafb;
}

.testimonials blockquote {
    background-color: #ffffff;
    border-radius: 0.75rem;
    padding: 1.5rem 1.75rem;
    margin: 0;
    border-left: 4px solid #0f172a;
    box-shadow: 0 12px 30px rgba(15,23,42,0.06);
}

.metrics {
    background-color: #0f172a;
    color: #facc15;
    border-radius: 0.75rem;
    padding: 1.75rem 1.5rem;
    box-shadow: 0 12px 30px rgba(15,23,42,0.18);
}

footer {
    border-top: 1px solid #e2e8f0;
    margin-top: 3rem;
    padding-top: 1.25rem;
}

/* Mobile refinements */
@media (max-width: 768px) {
    .hero {
        padding-top: 3.25rem;
        padding-bottom: 2.5rem;
    }
    .hero h1 {
        font-size: 2.1rem;
    }
    .hero p {
        font-size: 0.98rem;
    }
    .page-section,
    .services,
    .testimonial,
    .starter-kit,
    .contact,
    .faq {
        padding-left: 1.25rem;
        padding-right: 1.25rem;
    }
    .cta-button,
    .card-button {
        width: 100%;
        text-align: center;
        box-shadow: 0 8px 20px rgba(15,23,42,0.18);
    }
}


/* Services intro text */
.services .section-intro {
    max-width: 720px;
    margin: 0 auto 2rem auto;
    font-size: 0.98rem;
    color: #475569;
    text-align: center;
}

/* Services comparison table */
.services-comparison {
    margin-top: 2.5rem;
}

.services-comparison h3 {
    font-size: 1.2rem;
    margin-bottom: 0.75rem;
    text-align: center;
}

.services-comparison p {
    max-width: 720px;
    margin: 0 auto 1.5rem auto;
    font-size: 0.95rem;
    color: #475569;
    text-align: center;
}

.table-wrapper {
    overflow-x: auto;
}

.comparison-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}

.comparison-table th,
.comparison-table td {
    border: 1px solid #cbd5e1;
    padding: 0.6rem 0.75rem;
    text-align: left;
    vertical-align: top;
}

.comparison-table thead th {
    background-color: #0f172a;
    color: #facc15;
}

.comparison-table tbody tr:nth-child(even) {
    background-color: #f8fafc;
}


/* Metrics section branding fix */
.metrics-section {
    background-color: #0F172A !important;
    color: #FACC15 !important;
}
.metrics-section h3,
.metrics-section p,
.metrics-section span,
.metrics-section strong {
    color: #FACC15 !important;
}


.metrics .metric h3,
.metrics .metric p {
    color: #facc15;
}


/* Mobile navigation */
.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 24px;
    height: 18px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    margin-left: 1rem;
}

.nav-toggle .bar {
    height: 2px;
    width: 100%;
    background-color: #e2e8f0;
    border-radius: 1px;
}

/* Responsive layout */
@media (max-width: 768px) {
    .navbar {
        padding: 0.75rem 1.25rem;
    }

    .navbar nav {
        position: relative;
    }

    .nav-toggle {
        display: flex;
    }

    .nav-links {
        position: absolute;
        top: 56px;
        right: 0;
        background-color: #0f172a;
        display: none;
        flex-direction: column;
        gap: 0;
        min-width: 180px;
        padding: 0.75rem 1rem;
        box-shadow: 0 10px 25px rgba(15,23,42,0.6);
        border-radius: 0 0 0.75rem 0.75rem;
    }

    .nav-links.open {
        display: flex;
    }

    .nav-links li {
        margin: 0.25rem 0;
    }

    .nav-links li a {
        display: block;
        padding: 0.25rem 0;
    }

    .hero {
        padding: 2.5rem 1.5rem;
        grid-template-columns: 1fr;
    }

    .hero-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .service-cards {
        grid-template-columns: 1fr;
    }

    .metrics-container {
        grid-template-columns: 1fr;
    }

    .case-study-grid,
    .testimonials {
        grid-template-columns: 1fr;
    }
}
