/* ---
High-Fidelity Stylesheet
Based on Simplementix Mood Board - Phase 3 (Professional Sage)
--- */

/* --- Self-Hosted Fonts --- */
@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 400 600;
    font-display: swap;
    src: url('../fonts/inter-latin.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
    font-family: 'Manrope';
    font-style: normal;
    font-weight: 600 800;
    font-display: swap;
    src: url('../fonts/manrope-latin.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* --- 1. Variables & Global Styles --- */
:root {
    /* Brand Palette */
    --primary-color: #0C222F; /* Deep Navy - Stability/Authority */
    --secondary-color: #1E888B; /* Teal - Momentum/Action */
    --accent-color: #F59E0B; /* Alert Amber - for crucial calls to attention (sparing use) */
    
    /* Neutrals */
    --bg-color: #F9FAFB; /* Porcelain/Off-White */
    --surface-color: #FFFFFF; /* Pure White */
    --text-main: #111827; /* Near Black */
    --text-muted: #4B5563; /* Dark Gray */
    --border-color: #E5E7EB; /* Light Gray Border */

    /* Typography */
    --heading-font: 'Manrope', sans-serif;
    --body-font: 'Inter', sans-serif;
}

body { 
    font-family: var(--body-font); 
    color: var(--text-main); 
    background-color: var(--bg-color);
    margin: 0;
    padding: 0;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--heading-font);
    color: var(--primary-color);
    font-weight: 800; /* Bolder headings for authority */
    line-height: 1.2;
    margin-top: 0;
}

p {
    color: var(--text-muted);
    font-size: 1.05rem;
}

/* --- 2. Header & Navigation --- */
header { 
    padding: 20px 0;
    background-color: var(--surface-color);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 1000;
}

nav { 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    max-width: 1200px;
    margin: auto;
    padding: 0 20px;
}

/* Logo Setup */
nav .logo-container {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

nav .logo-icon {
    height: 40px; /* Adjust based on SVG */
    width: auto;
}

nav .logo-text {
    font-family: var(--heading-font);
    font-weight: 800;
    font-size: 1.5rem;
    color: var(--primary-color);
    letter-spacing: -0.02em;
}

.nav-right .cta-button {
    display: none; /* Hide nav CTA button on mobile */
}

/* Navigation Links */
nav ul { 
    list-style: none; 
    display: none; 
    flex-direction: column;
    position: absolute;
    top: 100%; 
    left: 0;
    width: 100%;
    background-color: var(--surface-color);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    padding: 0;
    margin: 0;
    border-top: 1px solid var(--border-color);
}

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

nav ul li {
    text-align: center;
    width: 100%;
    border-bottom: 1px solid var(--border-color);
}

nav ul a {
    text-decoration: none;
    color: var(--text-main);
    font-weight: 600;
    font-size: 0.95rem;
    padding: 15px;
    display: block;
    transition: color 0.2s;
}

nav ul a:hover {
    color: var(--secondary-color);
}

/* Buttons */
.cta-button { 
    display: inline-block;
    padding: 12px 28px; 
    border: none;
    text-decoration: none; 
    background-color: var(--secondary-color);
    color: var(--white);
    border-radius: 6px; /* Slightly softer corners, not full round */
    font-weight: 700;
    font-size: 1rem;
    transition: all 0.2s ease;
    white-space: nowrap; 
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}

.cta-button:hover {
    background-color: #176B6E; /* Darker shade of teal */
    transform: translateY(-1px);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.cta-button.secondary {
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--border-color); /* Subtle border */
    box-shadow: none;
}

.cta-button.secondary:hover {
    border-color: var(--primary-color);
    background-color: transparent;
}


.mobile-menu-button {
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    width: 24px;
    height: 24px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
}
.mobile-menu-button .bar { 
    display: block;
    width: 100%;
    height: 2px;
    background-color: var(--primary-color);
    border-radius: 2px;
}


/* --- 3. Hero Section --- */
.hero { 
    text-align: center; 
    padding: 120px 20px; 
    /* Apple-esque subtle off-white to pure white gradient */
    background: linear-gradient(180deg, var(--bg-color) 0%, var(--surface-color) 100%);
    position: relative;
    overflow: hidden; 
}

/* Abstract Tech Background (CSS-only "Data Flow") */
.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at 50% 50%, rgba(30, 136, 139, 0.08) 0%, transparent 50%);
    z-index: 0;
    pointer-events: none;
}

.hero::after {
    /* Deloitte-inspired "Precision" Dot/Accent */
    content: '';
    position: absolute;
    top: 10%;
    right: 15%;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(12, 34, 47, 0.05) 0%, transparent 70%);
    border-radius: 50%;
    z-index: 0;
}

.hero > * {
    position: relative;
    z-index: 1;
}

.hero h1 {
    font-size: 3rem;
    color: var(--text-main); /* Changed from primary for sharper contrast */
    letter-spacing: -0.04em; /* Tighter, more modern tracking */
    max-width: 900px;
    margin: 0 auto 24px auto;
    background: -webkit-linear-gradient(90deg, #0C222F, #1E888B);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent; /* Subtle gradient text for "Premium Tech" feel */
}

.hero p {
    font-size: 1.35rem; /* Larger, Apple-style body text */
    max-width: 680px;
    margin: 0 auto 48px auto;
    color: var(--text-muted);
    font-weight: 400;
}

.hero-buttons {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

/* --- 4. Content Sections --- */
section {
    padding: 100px 20px;
    max-width: 1200px;
    margin: auto;
    position: relative;
    /* Ensure no default max-width constraint fights with full-width utility classes */
    box-sizing: border-box;
}

/* Utility for Full-Width Sections */
.section-full-width {
    width: 100%;
    max-width: 100%;
    margin-left: 0;
    margin-right: 0;
    padding: 0; /* Let inner containers handle padding */
}

/* Inner Container for Full-Width Sections */
.section-full-width .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 100px 20px;
    text-align: inherit;
}

/* Alternate Backgrounds */
.section-alt {
    width: 100%;
    max-width: 100%;
    background-color: #F5F5F7; 
}
.section-alt > .content-wrapper {
    max-width: 1200px;
    margin: auto;
    padding: 100px 20px;
}

h2 {
    font-size: 2.25rem;
    text-align: center;
    margin-bottom: 20px;
    letter-spacing: -0.02em;
}

section p.section-intro {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 60px auto;
    font-size: 1.125rem;
}

/* Logo Cloud */
.logo-cloud {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 40px;
    opacity: 0.6;
    margin-top: 40px;
    filter: grayscale(100%);
}

/* --- 5. Service Cards & Grids --- */
.services-grid {
    display: grid;
    gap: 30px;
    grid-template-columns: 1fr; 
}

.service-card {
    background: var(--surface-color);
    padding: 40px;
    border-radius: 16px;
    border: 1px solid var(--border-color);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.service-card:hover {
    border-color: var(--secondary-color);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.service-card h3 {
    font-size: 1.5rem;
    margin-top: 0;
    margin-bottom: 15px;
}

.service-card ul {
    color: var(--text-muted);
    padding-left: 20px;
    margin-top: 15px;
}

.service-card .icon-wrapper {
    width: 40px; 
    height: 40px; 
    background: #E0F2FE; 
    border-radius: 8px; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    margin-bottom: 20px; 
    color: #0284C7;
}

/* Section Styling */
.section-header-line {
    text-align: left; 
    border-bottom: 2px solid var(--border-color); 
    padding-bottom: 15px; 
    margin-bottom: 30px; 
    font-size: 2rem; 
    color: var(--primary-color);
}

/* Workato Specifics */
.workato-highlight {
    margin-top: 30px; 
    text-align: left; 
    background: #FFF7ED; 
    padding: 30px; 
    border-radius: 12px; 
    border-left: 4px solid #EA580C;
}

/* CLM Specifics */
.clm-flex-container {
    display: flex; 
    gap: 40px; 
    flex-wrap: wrap;
}
.clm-info-box {
    flex: 1; 
    min-width: 280px; 
    background-color: #F0FDF4; 
    padding: 40px; 
    border-radius: 16px; 
    border: 1px solid #DCFCE7;
}

/* Call to Action Banner */
.cta-banner {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%); 
    color: white; 
    margin-top: 80px;
}
.cta-banner h2 {
    color: white; 
    margin-bottom: 24px; 
    font-size: 2.5rem; 
    text-align: center; 
    border-bottom: none;
}
.cta-banner p {
    color: #E5E7EB; 
    margin-bottom: 40px; 
    max-width: 600px; 
    margin-left: auto; 
    margin-right: auto; 
    font-size: 1.25rem; 
    text-align: center;
}

/* Process Steps */
.process-steps {
    display: grid;
    gap: 30px;
    grid-template-columns: 1fr;
    counter-reset: step-counter;
}

.step {
    position: relative;
    padding-left: 20px;
}

.step h3 {
    font-size: 1.25rem;
    margin-bottom: 10px;
}
/*.step::before {
    counter-increment: step-counter;
    content: "0" counter(step-counter);
    font-family: var(--heading-font);
    font-weight: 800;
    font-size: 2rem;
    color: var(--border-color);
    position: absolute;
    left: 0;
    top: -10px;
}*/


/* --- 6. Contact Page Styles --- */
.contact-grid {
    display: grid; 
    grid-template-columns: 1fr; 
    gap: 60px;
}
@media (min-width: 992px) {
    .contact-grid {
        grid-template-columns: 1fr 1fr;
    }
}

.contact-card {
    background: var(--surface-color); 
    padding: 40px; 
    border-radius: 16px; 
    border: 1px solid var(--border-color); 
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.form-group {
    margin-bottom: 20px;
    text-align: left;
}
.form-label {
    display: block; 
    font-weight: 600; 
    margin-bottom: 8px;
    color: var(--text-main);
    text-align: left;
}
.form-input, .form-textarea {
    box-sizing: border-box; 
    width: 100% !important; 
    padding: 12px; 
    border: 1px solid #D1D5DB; 
    border-radius: 6px; 
    font-family: inherit;
    font-size: 1rem;
    display: block;
    margin: 0;
}
.form-textarea {
    resize: vertical;
}

.contact-highlight-box {
    background: #F0FDFA; 
    padding: 25px; 
    border-radius: 12px; 
    border-left: 4px solid var(--secondary-color); 
    margin-top: 40px;
}

/* FAQ Section */
.faq-container {
    max-width: 800px; 
    margin: 40px auto 0 auto;
}
.faq-item {
    margin-bottom: 30px; 
    border-bottom: 1px solid var(--border-color); 
    padding-bottom: 20px;
}
.faq-item:last-child {
    border-bottom: none;
}

/* --- 7. Blog Cards --- */
.blog-grid {
    display: grid;
    gap: 30px;
    grid-template-columns: 1fr; 
}

.blog-card {
    background: var(--surface-color);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
    transition: box-shadow 0.3s ease;
}

.blog-card:hover {
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.blog-card h3 {
    padding: 20px 20px 10px 20px;
    font-size: 1.25rem;
    margin: 0;
}

.blog-card p {
    padding: 0 20px 20px 20px;
    font-size: 1rem;
}

.blog-card a.read-more {
    display: block;
    padding: 0 20px 20px 20px;
    color: var(--secondary-color);
    font-weight: 700;
    text-decoration: none;
}

/* --- 8. Footer --- */
footer {
    background-color: var(--primary-color); /* Deep Navy Background */
    color: #9CA3AF; /* Muted text on dark bg */
    padding: 80px 20px;
    border-top: 4px solid var(--secondary-color); /* Top accent bar */
}

footer h4 {
    font-family: var(--heading-font);
    color: var(--surface-color);
    margin-bottom: 20px;
    font-size: 1.1rem;
}

footer p {
    color: #9CA3AF;
}

footer ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

footer a { 
    color: #D1D5DB; 
    text-decoration: none;
    display: block;
    margin-bottom: 12px;
    transition: color 0.2s;
}

footer a:hover {
    color: var(--secondary-color);
}

footer .logo {
    color: var(--surface-color);
    font-family: var(--heading-font);
    font-weight: 800;
    font-size: 1.5rem;
    margin-top: 0; /* Fix vertical alignment */
    margin-bottom: 20px;
    display: block;
}


/* --- 8. Responsive Desktop Styles --- */
@media (min-width: 992px) {
    .mobile-menu-button { 
        display: none; 
    }
    
    .nav-right {
        display: flex;
        align-items: center;
        gap: 30px;
    }

    .nav-right .cta-button {
        display: block; 
    }
    
    nav ul { 
        display: flex;
        position: static;
        flex-direction: row;
        width: auto;
        background-color: transparent;
        box-shadow: none;
        gap: 30px;
        border: none;
    }

    nav ul li {
        border-bottom: none;
        width: auto;
    }
    
    nav ul a {
        padding: 0;
        font-weight: 500;
    }
    
    .hero { text-align: center; }
    .hero h1 { font-size: 4rem; line-height: 1.1; }
    
    .hero-buttons {
        flex-direction: row;
        justify-content: center;
    }

    .services-grid {
        grid-template-columns: repeat(2, 1fr); /* Default desktop to 2 columns as used in Services page */
    }

    .services-grid.three-col {
        grid-template-columns: repeat(3, 1fr); /* Optional utility for 3 cols */
    }

    .blog-grid {
        grid-template-columns: repeat(2, 1fr); 
    }

    .process-steps {
        grid-template-columns: repeat(4, 1fr);
        text-align: center;
    }

    .step {
        padding: 0 15px;
    }
}
    
@media (min-width: 992px) {
    footer .footer-grid {
        display: flex;
        justify-content: space-between;
        text-align: left;
    }
}

/* Mobile Footer adjustments */
@media (max-width: 991px) {
    footer .footer-grid {
        display: grid;
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }
}

/* --- Ghost Koenig Editor Width Classes (Required by Ghost) --- */
.kg-width-wide {
    max-width: 1040px;
    margin-left: auto;
    margin-right: auto;
}

.kg-width-full {
    width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
}

.kg-width-wide img,
.kg-width-full img {
    width: 100%;
}

/* Ghost Custom Font Support */
:root {
    --gh-font-body: var(--body-font);
    --gh-font-heading: var(--heading-font);
}

/* Ghost Gallery Card */
.kg-gallery-container {
    display: flex;
    flex-direction: column;
    max-width: 1040px;
    width: 100%;
}
.kg-gallery-row {
    display: flex;
    flex-direction: row;
    justify-content: center;
}
.kg-gallery-image {
    flex: 1 1 0%;
    margin: 0 4px;
}
.kg-gallery-image img {
    display: block;
    margin: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Ghost Bookmark Card */
.kg-bookmark-card {
    width: 100%;
    background: #fff;
    border: 1px solid #E5E7EB;
    border-radius: 8px;
    overflow: hidden;
}
.kg-bookmark-card a {
    display: flex;
    text-decoration: none;
    color: inherit;
}
.kg-bookmark-container {
    display: flex;
    text-decoration: none;
    width: 100%;
}
.kg-bookmark-content {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    padding: 20px;
}
.kg-bookmark-title {
    font-size: 1rem;
    font-weight: 600;
    color: #111827;
    line-height: 1.4;
}
.kg-bookmark-description {
    font-size: 0.875rem;
    color: #6B7280;
    margin-top: 8px;
    line-height: 1.5;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}
.kg-bookmark-metadata {
    display: flex;
    align-items: center;
    margin-top: 12px;
    font-size: 0.8rem;
    color: #9CA3AF;
}
.kg-bookmark-icon {
    width: 20px;
    height: 20px;
    margin-right: 8px;
}
.kg-bookmark-author {
    font-weight: 500;
}
.kg-bookmark-author::after {
    content: "\2022";
    margin: 0 6px;
}
.kg-bookmark-publisher {
    color: #9CA3AF;
}
.kg-bookmark-thumbnail {
    flex: 0 0 200px;
    position: relative;
}
.kg-bookmark-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
