/* ==========================================================================
   Pages CSS — Content styles for sub-pages (SaaS, Fintech, Agencies, etc.)
   This file contains ONLY page content styles.
   Header/Footer/Body base styles live in header-footer.css.
   ========================================================================== */

/* Typography Hierarchy */
h1, h2, h3, h4 {
    font-family: 'Outfit', 'Inter', -apple-system, sans-serif;
    line-height: 1.2;
    margin-bottom: 1rem;
    font-weight: 700;
    letter-spacing: -0.03em;
    color: #1f2937;
}

h1 { font-size: clamp(2.5rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.75rem, 3vw, 2.5rem); margin-top: 3rem; }
h3 { font-size: 1.5rem; margin-top: 2rem; }

p {
    color: #4b5563;
    font-size: 1.1rem;
    margin-bottom: 1rem;
    max-width: 75ch;
}

a { color: #2563eb; }
a:hover { color: #1d4ed8; }

/* Quotable Definition Blocks */
.definition-block {
    background: #f8fafc;
    border-left: 4px solid #2563eb;
    padding: 2rem;
    border-radius: 0 0.75rem 0.75rem 0;
    margin: 2rem 0;
    font-size: 1.15rem;
    font-weight: 500;
    color: #1f2937;
}

/* Structured Lists */
ul, ol {
    margin-bottom: 2rem;
    padding-left: 2rem;
    color: #4b5563;
}

li {
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

/* Hero Section for Sub-pages (Matching AI Readiness theme) */
.hero, .blog-hero {
    background: #0f172a;
    color: white;
    padding: 120px 0 80px;
    text-align: center;
    border-radius: 0; /* Remove border-radius to match home page full-width look */
    margin-top: 0;
}

.hero h1, .blog-hero h1 {
    color: white;
    font-size: 48px;
    margin-bottom: 20px;
    text-shadow: none;
}

.hero p, .blog-hero p {
    color: #94a3b8;
    max-width: 700px;
    margin: 0 auto 40px;
    font-size: 20px;
}

/* Grid Layouts */
.grid-2 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin: 60px 0;
}

/* Cards (Matching service-card in index.html) */
.card {
    background: var(--white);
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 40px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    transition: transform 0.3s;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.1);
    border-color: #e5e7eb;
}

.card h3 {
    margin-top: 0;
}

/* Buttons (Matching primary-btn in index.html) */
.btn {
    display: inline-flex;
    padding: 15px 30px;
    border-radius: 5px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s;
    cursor: pointer;
}

.btn-primary {
    background: var(--primary-color);
    color: var(--white);
    border: none;
}

.btn-primary:hover {
    opacity: 0.9;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(37, 99, 235, 0.3);
}

/* Contact Form Section (Matching index.html) */
.contact-form {
    background: var(--white);
    padding: 40px;
    border-radius: 10px;
    border: 1px solid #e5e7eb;
    max-width: 600px;
    margin: 60px auto;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 12px;
    margin-bottom: 20px;
    background: var(--white);
    border: 1px solid #d1d5db;
    border-radius: 5px;
    color: var(--text-dark);
    font-family: inherit;
    font-size: 1rem;
}

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

/* Page Content Container */
main.container {
    padding-top: 0; /* Header is fixed, so we might need padding on the first section instead */
    padding-bottom: 80px;
}

/* Add padding to first section of main to account for fixed header */
main.container > section:first-child {
    padding-top: 140px;
}

.blog-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 2rem 4rem;
}

.blog-content h2 {
    color: #1e293b;
    margin-top: 3rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #e5e7eb;
}

.blog-content h3 {
    color: #334155;
    margin-top: 2rem;
}

.blog-content p {
    max-width: 100%;
    line-height: 1.8;
}

.blog-content ul, .blog-content ol {
    max-width: 100%;
}

.blog-meta {
    display: flex;
    gap: 1.5rem;
    color: rgba(255,255,255,0.7);
    justify-content: center;
    margin-top: 1rem;
    font-size: 0.9rem;
}

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

    .hero {
        padding: 7rem 1.5rem 3rem;
    }

    .guide-content {
        padding: 1.5rem;
        margin-top: 4rem;
    }

    .blog-hero {
        padding: 7rem 1.5rem 3rem;
    }

    .blog-content {
        padding: 0 1rem 3rem;
    }
}
