/* KCOH Software Inc. — Index Page Overrides
 * Page-specific styles only. Base, nav, and layout come from styles.css.
 * Adds: Instrument Serif headlines, editorial sections unique to homepage.
 */

/* --- Typography Overrides (Instrument Serif for homepage) --- */

.label {
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #c9a84c;
}

.hero h1,
.operator-story h2,
.case-studies h2,
.how-i-work h2,
.who-this-is-for h2,
.mid-cta h2,
.faq h2,
.final-cta h2,
.case-title,
.credibility-number,
.process-number {
    font-family: 'Instrument Serif', Georgia, serif;
    font-weight: 400;
}

.hero h1 {
    font-size: clamp(2.75rem, 5vw, 4rem);
    max-width: 680px;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

/* --- Global left-align overrides (styles.css centers everything) --- */

body .hero,
body .credibility-strip,
body .operator-story,
body .case-studies,
body .how-i-work,
body .who-this-is-for,
body .faq,
body .final-cta {
    text-align: left;
}

body .hero .section-header,
body .credibility-strip .section-header,
body .operator-story .section-header,
body .case-studies .section-header,
body .how-i-work .section-header,
body .who-this-is-for .section-header,
body .faq .section-header,
body .final-cta .section-header {
    text-align: left;
}

body .section-subtitle,
body .hero-subtitle {
    margin-left: 0;
    margin-right: auto;
}

/* --- Hero --- */

.hero {
    padding: 10rem 0 6rem;
    min-height: auto;
    display: block;
}

.hero-content {
    max-width: 680px;
    text-align: left;
    margin: 0;
    animation: none;
}

.hero .label {
    margin-bottom: 1.5rem;
}

.hero h1 {
    margin-bottom: 1.5rem;
}

.hero-supporting {
    font-size: 1.1rem;
    color: #94a3b8;
    line-height: 1.7;
    margin-bottom: 2.5rem;
    max-width: 480px;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    align-items: center;
    flex-wrap: wrap;
    margin-bottom: 1.5rem;
    justify-content: flex-start;
}

.hero-proof {
    font-size: 0.85rem;
    color: #64748b;
}

.hero-proof a {
    color: #c9a84c;
    text-decoration: none;
}

.hero-proof a:hover {
    text-decoration: underline;
}

@media (max-width: 640px) {
    .hero {
        padding: 8rem 0 4rem;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* --- Credibility Strip --- */

.credibility-strip {
    padding: 3rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.credibility-row {
    display: flex;
    gap: 3rem;
    align-items: baseline;
    justify-content: flex-start;
}

.credibility-item {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    padding-right: 3rem;
    border-right: 1px solid rgba(255, 255, 255, 0.08);
}

.credibility-item:last-child {
    border-right: none;
    padding-right: 0;
}

.credibility-number {
    font-size: 1.75rem;
    color: #f0ede8;
}

.credibility-label {
    font-size: 0.85rem;
    color: #64748b;
    font-weight: 400;
}

@media (max-width: 640px) {
    .credibility-row {
        flex-direction: column;
        gap: 1.5rem;
    }

    .credibility-item {
        border-right: none;
        padding-right: 0;
        padding-bottom: 1.5rem;
        border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    }

    .credibility-item:last-child {
        border-bottom: none;
        padding-bottom: 0;
    }
}

/* --- Operator Story --- */

.operator-story {
    padding: 5rem 0;
}

.operator-story .label {
    margin-bottom: 1.25rem;
}

.operator-story h2 {
    font-size: 2rem;
    max-width: 680px;
    margin-bottom: 2rem;
}

.operator-story p {
    font-size: 1.05rem;
    color: #94a3b8;
    line-height: 1.75;
    margin-bottom: 1.5rem;
    max-width: 540px;
}

.operator-story p:last-of-type {
    margin-bottom: 0;
}

/* --- Case Studies --- */

.case-studies {
    padding: 5rem 0;
    background: rgba(17, 24, 39, 0.4);
}

.case-studies > .container > .label {
    margin-bottom: 1.25rem;
}

.case-studies > .container > h2 {
    font-size: 2rem;
    max-width: 680px;
    margin-bottom: 3.5rem;
}

/* Featured case study */
.featured-case {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 4rem;
    align-items: center;
    margin-bottom: 4rem;
}

.featured-case.reversed {
    grid-template-columns: 1.2fr 1fr;
}

.featured-case.reversed .case-text {
    order: 2;
}

.featured-case.reversed .case-visual {
    order: 1;
}

.case-tag {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 0.75rem;
}

.case-tag.copper { color: #c9a84c; }
.case-tag.slate { color: #67e8f9; }
.case-tag.green { color: #4ade80; }

.case-title {
    font-size: 1.75rem;
    color: #f0ede8;
    line-height: 1.3;
    margin-bottom: 1rem;
}

.case-description {
    font-size: 1rem;
    color: #94a3b8;
    line-height: 1.7;
    margin-bottom: 1.5rem;
    max-width: 440px;
}

.case-details {
    list-style: none;
    padding: 0;
    margin-bottom: 1.5rem;
}

.case-details li {
    font-size: 0.875rem;
    color: #64748b;
    line-height: 1.6;
    padding: 0.35rem 0;
}

.case-details li::before {
    content: '\2014\00a0';
    color: #c9a84c;
}

.case-link {
    font-size: 0.9rem;
    font-weight: 600;
    color: #c9a84c;
    text-decoration: none;
    transition: color 0.2s ease;
}

.case-link:hover {
    color: #d4af57;
}

.case-link::after {
    content: ' \2192';
}

/* Case study logo frame */
.case-visual {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.case-logo-frame {
    border-radius: 20px;
    padding: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 260px;
    height: 260px;
}

.case-logo-frame.draftory {
    background: radial-gradient(ellipse at 30% 20%, rgba(99, 102, 241, 0.15), rgba(139, 92, 246, 0.08) 60%, rgba(17, 24, 39, 0.6));
    border: 1px solid rgba(139, 92, 246, 0.2);
}

.case-logo-frame.skyroa {
    background: radial-gradient(ellipse at 30% 20%, rgba(34, 211, 238, 0.12), rgba(6, 182, 212, 0.06) 60%, rgba(17, 24, 39, 0.6));
    border: 1px solid rgba(34, 211, 238, 0.15);
}

.case-logo-frame.automedic {
    background: radial-gradient(ellipse at 30% 20%, rgba(22, 163, 74, 0.15), rgba(74, 222, 128, 0.06) 60%, rgba(17, 24, 39, 0.6));
    border: 1px solid rgba(22, 163, 74, 0.2);
}

.case-logo-img {
    width: 140px;
    height: 140px;
    object-fit: contain;
    filter: drop-shadow(0 6px 20px rgba(0, 0, 0, 0.5));
}

@media (max-width: 768px) {
    .featured-case,
    .featured-case.reversed {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .featured-case.reversed .case-text,
    .featured-case.reversed .case-visual {
        order: unset;
    }

    .case-title {
        font-size: 1.5rem;
    }
}

/* Secondary work list */
.secondary-work {
    margin-top: 3rem;
    padding-top: 3rem;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.secondary-item {
    display: flex;
    gap: 0.5rem;
    padding: 1rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    align-items: baseline;
    flex-wrap: wrap;
}

.secondary-item:last-child {
    border-bottom: none;
}

.secondary-name {
    font-weight: 600;
    color: #f0ede8;
    font-size: 1rem;
    flex-shrink: 0;
}

.secondary-name::after {
    content: '\00a0\2014\00a0';
    color: #334155;
    font-weight: 400;
}

.secondary-desc {
    color: #64748b;
    font-size: 1rem;
}

/* --- How I Work --- */

.how-i-work {
    padding: 4rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.how-i-work .label {
    margin-bottom: 1.25rem;
}

.how-i-work h2 {
    font-size: 2rem;
    max-width: 680px;
    margin-bottom: 2.5rem;
}

.process-list {
    max-width: 540px;
}

.process-item {
    display: flex;
    gap: 1.25rem;
    padding: 1.25rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    align-items: baseline;
}

.process-item:last-child {
    border-bottom: none;
}

.process-number {
    font-size: 1.5rem;
    color: #c9a84c;
    flex-shrink: 0;
    line-height: 1;
}

.process-content h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #f0ede8;
    margin-bottom: 0.35rem;
}

.process-content p {
    font-size: 0.95rem;
    color: #94a3b8;
    line-height: 1.6;
}

/* --- Who This Is For --- */

.who-this-is-for {
    padding: 4rem 0;
}

.who-this-is-for .label {
    margin-bottom: 1.25rem;
}

.who-this-is-for h2 {
    font-size: 2rem;
    margin-bottom: 2rem;
    max-width: 540px;
}

.audience-statements {
    max-width: 540px;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.audience-statements p {
    font-size: 1.05rem;
    color: #94a3b8;
    line-height: 1.75;
}

/* --- Mid-Page CTA --- */

.mid-cta {
    padding: 5rem 0;
    background: linear-gradient(135deg, rgba(201, 168, 76, 0.08), rgba(201, 168, 76, 0.03));
    border-top: 1px solid rgba(201, 168, 76, 0.15);
    border-bottom: 1px solid rgba(201, 168, 76, 0.15);
    text-align: center !important;
}

.mid-cta h2 {
    color: #f0ede8;
    margin: 0 auto 1rem;
    font-size: 1.75rem;
}

.mid-cta p {
    color: #94a3b8;
    font-size: 1rem;
    margin: 0 auto 2rem;
    max-width: 460px;
}

/* --- FAQ (index page version) --- */

.faq .label {
    margin-bottom: 1.25rem;
}

.faq > .container > .fade-in > h2 {
    font-size: 2rem;
    max-width: 680px;
    margin-bottom: 2.5rem;
}

.faq-list {
    max-width: 640px;
}

.faq-list .faq-item {
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    background: none;
    backdrop-filter: none;
    border-radius: 0;
    border-left: none;
    border-right: none;
    border-top: none;
    padding: 0;
    box-shadow: none;
}

.faq-list .faq-item::before {
    display: none;
}

.faq-list .faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 1.25rem 0;
    background: none;
    border: none;
    cursor: pointer;
    text-align: left;
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    color: #f0ede8;
    transition: color 0.2s ease;
    border-radius: 0;
}

.faq-list .faq-question:hover {
    color: #c9a84c;
    background: none;
}

.faq-list .faq-question h3 {
    font-size: 1rem;
    font-weight: 600;
}

.faq-list .faq-icon {
    font-size: 1.25rem;
    color: #64748b;
    transition: transform 0.3s ease;
    flex-shrink: 0;
    margin-left: 1rem;
    user-select: none;
    width: auto;
    height: auto;
    background: none;
    border-radius: 0;
}

.faq-list .faq-item.open .faq-icon {
    transform: rotate(45deg);
    background: none;
    color: #c9a84c;
}

.faq-list .faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.faq-list .faq-item.open .faq-answer {
    max-height: 200px;
}

.faq-list .faq-answer p {
    font-size: 0.95rem;
    color: #94a3b8;
    line-height: 1.7;
    max-width: 540px;
    padding-bottom: 1.25rem;
}

/* --- Final CTA --- */

.final-cta {
    padding: 5rem 0 3rem;
}

.final-cta h2 {
    font-size: 2rem;
    max-width: 680px;
    margin-bottom: 1.25rem;
}

.final-cta .subline {
    font-size: 0.9rem;
    color: #64748b;
    margin-bottom: 2rem;
    max-width: 540px;
}

.final-cta .subline a {
    color: #c9a84c;
    text-decoration: none;
}

.final-cta .subline a:hover {
    text-decoration: underline;
}

/* --- Footer (index page simplified) --- */

.footer-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-brand {
    font-weight: 600;
    font-size: 0.9rem;
    color: #f0ede8;
}

.footer-links {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.footer-links a {
    color: #64748b;
    text-decoration: none;
    font-size: 0.85rem;
    transition: color 0.2s ease;
}

.footer-links a:hover {
    color: #f0ede8;
}

.footer-copyright {
    text-align: center;
    padding-top: 1.5rem;
    font-size: 0.8rem;
    color: #475569;
}

@media (max-width: 640px) {
    .footer-inner {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
}

/* --- Scroll Animation --- */

.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
    .fade-in {
        opacity: 1;
        transform: none;
        transition: none;
    }
}
