/* ============================================
   f-cmo.co.uk — Chris Bruno, Fractional CMO
   Minimal. Modern. Clean.
   ============================================ */

:root {
    --white: #ffffff;
    --black: #0a0a0a;
    --gray-50: #fafafa;
    --gray-100: #f5f5f5;
    --gray-200: #e5e5e5;
    --gray-300: #d4d4d4;
    --gray-400: #a3a3a3;
    --gray-500: #737373;
    --gray-600: #525252;
    --gray-700: #404040;
    --gray-800: #262626;
    --gray-900: #171717;
    --accent: #2563eb;
    --accent-hover: #1d4ed8;
    --accent-light: #dbeafe;
    --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --mono: 'JetBrains Mono', monospace;
    --max-width: 1200px;
    --transition: 0.2s ease;
}

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

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

body {
    font-family: var(--font);
    font-size: 16px;
    line-height: 1.6;
    color: var(--gray-800);
    background: var(--white);
}

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

a {
    color: inherit;
    text-decoration: none;
}

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
}

/* ---- Navigation ---- */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--gray-200);
    transition: background var(--transition);
}

.nav-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
    height: 88px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo img {
    height: 56px;
    width: auto;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 36px;
}

.nav-links a {
    font-size: 14px;
    font-weight: 500;
    color: var(--gray-600);
    transition: color var(--transition);
    letter-spacing: -0.01em;
}

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

.nav-cta {
    background: var(--black);
    color: var(--white) !important;
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 14px !important;
    transition: background var(--transition) !important;
}

.nav-cta:hover {
    background: var(--gray-800) !important;
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    width: 32px;
    height: 32px;
    position: relative;
}

.nav-toggle span {
    display: block;
    width: 20px;
    height: 1.5px;
    background: var(--black);
    position: absolute;
    left: 6px;
    transition: all 0.3s ease;
}

.nav-toggle span:first-child { top: 11px; }
.nav-toggle span:last-child { top: 19px; }

.nav-toggle.active span:first-child {
    transform: rotate(45deg);
    top: 15px;
}

.nav-toggle.active span:last-child {
    transform: rotate(-45deg);
    top: 15px;
}

/* ---- Buttons ---- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 28px;
    font-family: var(--font);
    font-size: 15px;
    font-weight: 500;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    transition: all var(--transition);
    letter-spacing: -0.01em;
}

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

.btn-primary:hover {
    background: var(--accent-hover);
}

.btn-ghost {
    background: transparent;
    color: var(--gray-700);
    border: 1px solid var(--gray-300);
}

.btn-ghost:hover {
    border-color: var(--gray-400);
    color: var(--black);
}

.btn-lg {
    padding: 18px 36px;
    font-size: 16px;
}

.btn-full {
    width: 100%;
}

/* ---- Section Basics ---- */
.section-label {
    font-family: var(--mono);
    font-size: 13px;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--accent);
    margin-bottom: 16px;
}

.section-header {
    max-width: 800px;
    margin-bottom: 64px;
}

.section-header h2 {
    font-size: clamp(28px, 4vw, 40px);
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: -0.025em;
    color: var(--gray-900);
}

/* ---- Hero ---- */
.hero {
    padding-top: 140px;
    padding-bottom: 80px;
    background: var(--white);
}

.hero .container {
    display: flex;
    align-items: center;
    gap: 80px;
}

.hero-content {
    flex: 1;
}

.hero-image {
    flex: 0 0 340px;
}

.hero-image img {
    border-radius: 16px;
}

.hero-label {
    font-family: var(--mono);
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--accent);
    margin-bottom: 20px;
}

.hero-title {
    font-size: clamp(36px, 5vw, 56px);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.035em;
    color: var(--gray-900);
    margin-bottom: 24px;
}

.hero-title .accent {
    color: var(--accent);
}

.hero-sub {
    font-size: 18px;
    line-height: 1.7;
    color: var(--gray-600);
    max-width: 560px;
    margin-bottom: 36px;
}

.hero-actions {
    display: flex;
    gap: 12px;
}

/* ---- Stats ---- */
.stats {
    padding: 60px 0;
    background: var(--gray-50);
    border-top: 1px solid var(--gray-200);
    border-bottom: 1px solid var(--gray-200);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 36px;
    font-weight: 700;
    letter-spacing: -0.03em;
    color: var(--gray-900);
    margin-bottom: 4px;
}

.stat-label {
    font-size: 14px;
    color: var(--gray-500);
    letter-spacing: -0.01em;
}

/* ---- Problem ---- */
.problem {
    padding: 120px 0;
}

.problem-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.problem-card {
    padding: 40px 32px;
    border: 1px solid var(--gray-200);
    border-radius: 12px;
    transition: border-color var(--transition);
}

.problem-card:hover {
    border-color: var(--gray-400);
}

.problem-icon {
    font-family: var(--mono);
    font-size: 13px;
    color: var(--accent);
    margin-bottom: 20px;
}

.problem-card h3 {
    font-size: 20px;
    font-weight: 600;
    letter-spacing: -0.02em;
    margin-bottom: 12px;
    color: var(--gray-900);
}

.problem-card p {
    font-size: 15px;
    line-height: 1.6;
    color: var(--gray-600);
}

/* ---- How it Works ---- */
.how-it-works {
    padding: 120px 0;
    background: var(--gray-50);
}

.steps {
    max-width: 720px;
}

.step {
    display: flex;
    gap: 32px;
    padding: 40px 0;
    border-bottom: 1px solid var(--gray-200);
}

.step:last-child {
    border-bottom: none;
}

.step-number {
    font-family: var(--mono);
    font-size: 13px;
    color: var(--accent);
    flex-shrink: 0;
    padding-top: 4px;
}

.step-content h3 {
    font-size: 22px;
    font-weight: 600;
    letter-spacing: -0.02em;
    margin-bottom: 12px;
    color: var(--gray-900);
}

.step-content p {
    font-size: 16px;
    line-height: 1.7;
    color: var(--gray-600);
}

/* ---- About ---- */
.about {
    padding: 120px 0;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.about-content h2 {
    font-size: clamp(28px, 4vw, 40px);
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: -0.025em;
    color: var(--gray-900);
    margin-bottom: 24px;
}

.about-content p {
    font-size: 16px;
    line-height: 1.7;
    color: var(--gray-600);
    margin-bottom: 16px;
}

.about-content p:last-child {
    margin-bottom: 0;
}

.about-content strong {
    color: var(--gray-800);
    font-weight: 600;
}

.about-image img {
    border-radius: 12px;
}

/* ---- Trusted By ---- */
.trusted {
    padding: 100px 0;
    background: var(--gray-50);
}

.trusted .section-header {
    text-align: center;
    margin-left: auto;
    margin-right: auto;
}

.logo-grid {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 64px;
    flex-wrap: wrap;
}

.logo-item img {
    height: 40px;
    width: auto;
    opacity: 0.6;
    filter: grayscale(100%);
    transition: all var(--transition);
}

.logo-item img:hover {
    opacity: 1;
    filter: grayscale(0%);
}

/* ---- What You Get ---- */
.what-you-get {
    padding: 120px 0;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.service-card {
    padding: 40px 32px;
    border: 1px solid var(--gray-200);
    border-radius: 12px;
    transition: all var(--transition);
}

.service-card:hover {
    border-color: var(--accent);
    box-shadow: 0 0 0 1px var(--accent);
}

.service-card h3 {
    font-size: 18px;
    font-weight: 600;
    letter-spacing: -0.02em;
    margin-bottom: 12px;
    color: var(--gray-900);
}

.service-card p {
    font-size: 15px;
    line-height: 1.6;
    color: var(--gray-600);
}

/* ---- Ways to Work Together ---- */
.ways-to-work {
    padding: 120px 0;
    background: var(--white);
}

.ways-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-bottom: 48px;
}

.way-card {
    padding: 40px 32px;
    background: linear-gradient(180deg, var(--gray-50) 0%, var(--gray-100) 100%);
    border: 1px solid var(--gray-200);
    border-radius: 16px;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.way-card:hover {
    border-color: var(--gray-300);
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.06);
}

.way-card-featured {
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-hover) 100%);
    border-color: transparent;
}

.way-card-featured:hover {
    border-color: transparent;
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(37, 99, 235, 0.2);
}

.way-card-featured .way-number {
    color: rgba(255, 255, 255, 0.6);
}

.way-card-featured h3 {
    color: var(--white);
}

.way-card.way-card-featured p {
    color: rgba(255, 255, 255, 0.9);
}

.way-number {
    font-family: var(--mono);
    font-size: 13px;
    color: var(--accent);
    margin-bottom: 24px;
    letter-spacing: 0.04em;
}

.way-card h3 {
    font-size: 22px;
    font-weight: 600;
    letter-spacing: -0.02em;
    margin-bottom: 12px;
    color: var(--gray-900);
}

.way-card p {
    font-size: 15px;
    line-height: 1.7;
    color: var(--gray-600);
    flex-grow: 1;
}

.ways-cta {
    text-align: center;
}

/* ---- CTA Section ---- */
.cta-section {
    padding: 100px 0;
    background: var(--gray-900);
    text-align: center;
}

.cta-section h2 {
    font-size: clamp(28px, 4vw, 44px);
    font-weight: 700;
    letter-spacing: -0.03em;
    color: var(--white);
    margin-bottom: 16px;
}

.cta-section p {
    font-size: 18px;
    color: var(--gray-400);
    max-width: 520px;
    margin: 0 auto 36px;
    line-height: 1.6;
}

/* ---- Contact ---- */
.contact {
    padding: 120px 0;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
}

.contact-info h2 {
    font-size: clamp(28px, 4vw, 40px);
    font-weight: 600;
    letter-spacing: -0.025em;
    color: var(--gray-900);
    margin-bottom: 16px;
}

.contact-info > p {
    font-size: 16px;
    line-height: 1.7;
    color: var(--gray-600);
    margin-bottom: 32px;
}

.contact-details a {
    color: var(--accent);
    font-weight: 500;
}

.contact-details a:hover {
    text-decoration: underline;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-group label {
    font-size: 14px;
    font-weight: 500;
    color: var(--gray-700);
}

.form-group input,
.form-group textarea {
    font-family: var(--font);
    font-size: 15px;
    padding: 12px 16px;
    border: 1px solid var(--gray-300);
    border-radius: 8px;
    background: var(--white);
    color: var(--gray-800);
    transition: border-color var(--transition);
    outline: none;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-light);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--gray-400);
}

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

.hp-field {
    position: absolute;
    left: -9999px;
    opacity: 0;
    height: 0;
    overflow: hidden;
}

.form-note {
    font-size: 13px;
    color: var(--gray-500);
    text-align: center;
}

.form-success {
    text-align: center;
    padding: 60px 0;
}

.form-success h3 {
    font-size: 24px;
    font-weight: 600;
    color: var(--gray-900);
    margin-bottom: 8px;
}

.form-success p {
    color: var(--gray-600);
}

/* ---- Footer ---- */
.footer {
    padding: 40px 0;
    border-top: 1px solid var(--gray-200);
}

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

.footer-logo {
    height: 24px;
    width: auto;
    margin-bottom: 8px;
}

.footer-left p {
    font-size: 13px;
    color: var(--gray-500);
}

.footer-links {
    display: flex;
    gap: 24px;
}

.footer-links a {
    font-size: 14px;
    color: var(--gray-500);
    transition: color var(--transition);
}

.footer-links a:hover {
    color: var(--black);
}

/* ---- Responsive ---- */
@media (max-width: 968px) {
    .hero .container {
        flex-direction: column-reverse;
        gap: 48px;
        text-align: center;
    }

    .hero-image {
        flex: none;
        max-width: 280px;
    }

    .hero-sub {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-actions {
        justify-content: center;
    }

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

    .problem-grid,
    .services-grid,
    .ways-grid {
        grid-template-columns: 1fr;
    }

    .about-grid,
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    .about-image {
        order: -1;
    }

    .nav-links {
        display: none;
        position: fixed;
        top: 88px;
        left: 0;
        right: 0;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        padding: 24px;
        gap: 0;
        border-bottom: 1px solid var(--gray-200);
    }

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

    .nav-links a {
        padding: 16px 0;
        font-size: 16px;
        border-bottom: 1px solid var(--gray-100);
    }

    .nav-links a:last-child {
        border-bottom: none;
        margin-top: 8px;
    }

    .nav-cta {
        text-align: center;
    }

    .nav-toggle {
        display: block;
    }
}

@media (max-width: 640px) {
    .stats-grid {
        grid-template-columns: 1fr 1fr;
        gap: 24px;
    }

    .stat-number {
        font-size: 28px;
    }

    .hero-title {
        font-size: 32px;
    }

    .hero-sub {
        font-size: 16px;
    }

    .hero-actions {
        flex-direction: column;
    }

    .logo-grid {
        gap: 32px;
    }

    .footer-inner {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }
}
