/* ============================================
   v13-consulting: PHARMA + AI CONSULTING
   Production consulting site — navy/amber palette
   DM Serif Display + Inter fonts
   ============================================ */

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

:root {
    /* Primary Palette */
    --blue-900: #1e3a5f;
    --blue-800: #264b7a;
    --blue-100: #dbeafe;
    --blue-50: #eff6ff;

    /* Accent — warm amber for energy against navy */
    --accent: #b45309;
    --accent-hover: #92400e;
    --accent-light: #fef3c7;
    --accent-50: #fffbeb;

    /* Neutrals */
    --white: #ffffff;
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-300: #d1d5db;
    --gray-400: #9ca3af;
    --gray-500: #6b7280;
    --gray-600: #4b5563;
    --gray-700: #374151;
    --gray-800: #1f2937;
    --gray-900: #111827;

    /* Semantic */
    --primary: var(--blue-900);
    --primary-hover: var(--blue-800);
    --bg: var(--white);
    --bg-alt: var(--gray-50);
    --text: var(--gray-900);
    --text-secondary: var(--gray-600);
    --text-muted: var(--gray-400);
    --border: var(--gray-200);

    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);

    --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-heading: 'DM Serif Display', Georgia, serif;
    --radius: 12px;
    --radius-sm: 8px;
    --radius-full: 9999px;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font);
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

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

a {
    color: var(--primary);
    text-decoration: none;
    transition: color 0.2s;
}

a:hover {
    color: var(--primary-hover);
    text-decoration: underline;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Version Bar */
.version-bar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 32px;
    background: #111;
    display: flex;
    align-items: center;
    padding: 0 16px;
    z-index: 99999;
    font-size: 12px;
    gap: 16px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.vb-link {
    color: #888;
    text-decoration: none;
    font-weight: 500;
}

.vb-link:hover {
    color: #ccc;
    text-decoration: none;
}

.vb-active {
    color: #fff !important;
    font-weight: 600;
}

.vb-sep {
    color: #333;
}

/* Skip to content */
.skip-to-content {
    position: absolute;
    top: -100px;
    left: 16px;
    background: var(--primary);
    color: white;
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    z-index: 100000;
    transition: top 0.2s;
}

.skip-to-content:focus {
    top: 40px;
}

/* Header */
.site-header {
    position: fixed;
    top: 32px;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 9999;
    border-bottom: 1px solid var(--border);
    transition: box-shadow 0.3s;
}

.site-header.scrolled {
    box-shadow: var(--shadow);
}

.header-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 64px;
}

.header-brand {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary);
    text-decoration: none;
}

.header-brand:hover {
    text-decoration: none;
}

.header-nav {
    display: flex;
    gap: 32px;
    align-items: center;
}

.nav-link {
    color: var(--gray-700);
    font-weight: 500;
    font-size: 0.9375rem;
    text-decoration: none;
    transition: color 0.2s;
}

.nav-link:hover {
    color: var(--primary);
    text-decoration: none;
}

/* Nav CTA button */
.nav-cta {
    background: var(--primary);
    color: white !important;
    padding: 8px 20px;
    border-radius: var(--radius-full);
    font-weight: 600;
    transition: background 0.2s, color 0.2s;
}

.nav-cta:hover {
    background: var(--primary-hover);
    color: white !important;
    text-decoration: none !important;
}

/* Hamburger */
.hamburger {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    flex-direction: column;
    gap: 5px;
}

.hamburger span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--gray-700);
    transition: all 0.3s;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 1rem;
    font-family: var(--font);
    cursor: pointer;
    transition: all 0.2s;
    border: 2px solid transparent;
    text-decoration: none;
    line-height: 1.5;
}

.btn:hover {
    text-decoration: none;
}

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

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

.btn-outline {
    background: transparent;
    color: var(--primary);
    border-color: var(--primary);
}

.btn-outline:hover {
    background: var(--blue-50);
    color: var(--primary);
}

.btn-full {
    width: 100%;
}

.btn-text {
    background: none;
    border: none;
    color: var(--primary);
    font-weight: 600;
    font-size: 0.9375rem;
    cursor: pointer;
    padding: 0;
    font-family: var(--font);
    transition: color 0.2s;
    text-decoration: none;
    display: inline-block;
}

.btn-text:hover {
    color: var(--primary-hover);
    text-decoration: underline;
}

/* Section Headers */
.section-header {
    text-align: center;
    margin-bottom: 64px;
}

.section-header h2 {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 400;
    color: var(--text);
    margin-bottom: 16px;
}

.section-subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    max-width: 720px;
    margin: 0 auto;
    line-height: 1.6;
}

/* ==================
   HERO
   ================== */
.hero {
    padding-top: 160px;
    padding-bottom: 80px;
}

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

.hero-badge {
    display: inline-block;
    padding: 6px 16px;
    background: var(--accent-50);
    color: var(--accent);
    border-radius: var(--radius-full);
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 24px;
    letter-spacing: 0.02em;
}

.hero-text h1 {
    font-family: var(--font-heading);
    font-size: 3.25rem;
    font-weight: 400;
    line-height: 1.2;
    color: var(--text);
    margin-bottom: 24px;
}

.hero-description {
    font-size: 1.25rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 32px;
}

.hero-cta-group {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.hero-visual {
    position: relative;
    display: flex;
    justify-content: center;
}

.hero-image-frame {
    width: 100%;
    max-width: 420px;
    aspect-ratio: 1;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-xl);
    background: var(--gray-100);
}

.hero-photo-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-float-stat {
    position: absolute;
    bottom: -24px;
    left: -24px;
    background: white;
    padding: 24px;
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
}

.float-stat-value {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 400;
    color: var(--accent);
    line-height: 1;
}

.float-stat-label {
    color: var(--text-secondary);
    font-size: 0.9375rem;
    margin-top: 4px;
}

/* ==================
   SERVICES / HOW I HELP
   ================== */
.services {
    padding: 80px 0;
}

.services-stack {
    display: flex;
    flex-direction: column;
    gap: 48px;
}

.service-card {
    background: white;
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    display: grid;
    grid-template-columns: 1fr 1fr;
}

.service-card-reverse .service-image {
    order: 2;
}

.service-card-reverse .service-content {
    order: 1;
}

.service-image {
    min-height: 300px;
    background: var(--gray-100);
    overflow: hidden;
}

.service-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.service-content {
    padding: 48px;
}

.service-content h3 {
    font-family: var(--font-heading);
    font-size: 1.75rem;
    font-weight: 400;
    color: var(--text);
    margin-bottom: 24px;
}

.service-content p {
    color: var(--text-secondary);
    font-size: 0.9375rem;
    line-height: 1.6;
    margin-bottom: 16px;
}

.service-content .service-outcome {
    margin-bottom: 24px;
}

.service-content .btn-text {
    margin-top: 0;
}

/* ==================
   NUMBERS BAR
   ================== */
.numbers-bar {
    padding: 64px 0;
    background: var(--blue-900);
    color: white;
}

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

.number-value {
    font-family: var(--font-heading);
    font-size: 3rem;
    font-weight: 400;
    color: white;
    line-height: 1;
    margin-bottom: 8px;
}

.number-label {
    font-size: 0.9375rem;
    color: rgba(255, 255, 255, 0.7);
}

/* ==================
   CASE STUDIES / SELECTED WORK
   ================== */
.case-studies {
    padding: 80px 0;
}

.case-studies-grid {
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.case-card {
    background: white;
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--gray-100);
    overflow: hidden;
}

.case-card-header {
    padding: 32px;
    padding-right: 72px;
    cursor: pointer;
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 12px;
    transition: background 0.2s;
}

.case-card-header:hover {
    background: var(--gray-50);
}

.case-card-meta {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.case-metric {
    display: inline-block;
    padding: 4px 12px;
    background: var(--accent-50);
    color: var(--accent);
    border-radius: var(--radius-full);
    font-size: 0.875rem;
    font-weight: 600;
}

.case-company {
    font-style: italic;
    color: var(--text-secondary);
    font-size: 0.9375rem;
}

.case-card-header h3 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 400;
    color: var(--text);
}

.case-challenge {
    color: var(--text-secondary);
    font-size: 0.9375rem;
    line-height: 1.6;
}

.case-expand-icon {
    position: absolute;
    top: 32px;
    right: 32px;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gray-100);
    border-radius: 50%;
    font-size: 1.25rem;
    color: var(--gray-600);
    transition: transform 0.3s, background 0.3s, color 0.3s;
    line-height: 1;
}

.case-card.expanded .case-expand-icon {
    transform: rotate(45deg);
    background: var(--blue-100);
    color: var(--primary);
}

.case-card-body {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
}

.case-card.expanded .case-card-body {
    max-height: 600px;
}

.case-card-body-inner {
    padding: 0 32px 32px;
    border-top: 1px solid var(--border);
    padding-top: 24px;
}

.case-card-body-inner h4 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 8px;
    margin-top: 16px;
}

.case-card-body-inner h4:first-child {
    margin-top: 0;
}

.case-card-body-inner p {
    color: var(--text-secondary);
    font-size: 0.9375rem;
    line-height: 1.6;
}

/* ==================
   ABOUT
   ================== */
.about {
    padding: 80px 0;
    background: var(--bg-alt);
}

.about-detail-card {
    background: white;
    padding: 48px;
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
}

.about-detail-card h3 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 400;
    color: var(--text);
    margin-bottom: 24px;
}

.about-detail-card p {
    color: var(--text-secondary);
    font-size: 1.0625rem;
    line-height: 1.7;
    margin-bottom: 16px;
}

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

/* Proof Strip */
.proof-strip {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
    margin-top: 32px;
}

/* ==================
   EXPERIENCE
   ================== */
.experience {
    padding: 80px 0;
}

.timeline {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
}

.timeline-line {
    position: absolute;
    left: 32px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--blue-100);
}

.timeline-item {
    display: flex;
    align-items: flex-start;
    gap: 32px;
    margin-bottom: 32px;
    position: relative;
}

.timeline-icon {
    flex-shrink: 0;
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary);
    border-radius: 50%;
    color: white;
    z-index: 2;
}

.timeline-content {
    flex: 1;
    background: white;
    padding: 32px;
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
}

.timeline-header-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 12px;
}

.timeline-content h3 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 400;
    color: var(--text);
    margin-bottom: 4px;
}

.timeline-role {
    font-size: 1rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.timeline-date {
    display: inline-block;
    padding: 4px 16px;
    background: var(--blue-50);
    color: var(--primary);
    border-radius: var(--radius-full);
    font-size: 0.875rem;
    font-weight: 500;
    white-space: nowrap;
}

.timeline-desc {
    color: var(--gray-700);
    font-size: 0.9375rem;
    line-height: 1.6;
    margin-bottom: 16px;
}

.timeline-sub-role {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 8px;
}

.timeline-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
}

.tag {
    display: inline-block;
    padding: 4px 12px;
    background: var(--gray-100);
    color: var(--gray-700);
    border-radius: var(--radius-full);
    font-size: 0.8125rem;
    font-weight: 500;
}

/* ==================
   CONTACT
   ================== */
.contact {
    padding: 80px 0;
    background: var(--bg-alt);
}

/* Primary CTA */
.contact-cta {
    text-align: center;
    margin: 40px 0 48px;
}

.btn-cta-booking {
    padding: 18px 48px;
    font-size: 1.125rem;
    background: var(--accent);
    border-color: var(--accent);
    color: white;
    border-radius: var(--radius-sm);
    box-shadow: 0 4px 14px rgba(180, 83, 9, 0.3);
    transition: all 0.2s;
}

.btn-cta-booking:hover {
    background: var(--accent-hover);
    border-color: var(--accent-hover);
    color: white;
    box-shadow: 0 6px 20px rgba(180, 83, 9, 0.4);
    transform: translateY(-1px);
}

/* Secondary label with side lines */
.contact-secondary-label {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 32px;
    max-width: 480px;
    margin-left: auto;
    margin-right: auto;
}

.contact-secondary-label::before,
.contact-secondary-label::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--gray-300);
}

.contact-secondary-label span {
    color: var(--text-muted);
    font-size: 0.9375rem;
    white-space: nowrap;
}

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

.contact-info-card,
.contact-form-card {
    background: white;
    padding: 28px;
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
}

.contact-info-card h3,
.contact-form-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 24px;
}

.contact-items {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

.contact-item-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background: var(--blue-100);
    border-radius: var(--radius-sm);
    flex-shrink: 0;
    color: var(--primary);
}

.contact-item-label {
    font-weight: 600;
    color: var(--text);
    margin-bottom: 2px;
}

.contact-item a {
    color: var(--primary);
}

.contact-item p:not(.contact-item-label) {
    color: var(--text-secondary);
}

/* Form */
.form-group {
    margin-bottom: 16px;
}

.form-group label {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--gray-700);
    margin-bottom: 6px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 10px 16px;
    border: 1px solid var(--gray-300);
    border-radius: var(--radius-sm);
    font-family: var(--font);
    font-size: 1rem;
    color: var(--text);
    background: white;
    transition: border-color 0.2s, box-shadow 0.2s;
    resize: none;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(30, 58, 95, 0.15);
}

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

.form-status {
    margin-top: 12px;
    font-size: 0.9375rem;
    text-align: center;
}

.form-status.success {
    color: #059669;
}

.form-status.error {
    color: #dc2626;
}

/* ==================
   FOOTER
   ================== */
.site-footer {
    background: var(--gray-900);
    color: white;
    padding: 48px 0 32px;
}

.footer-simple {
    text-align: center;
}

.footer-name {
    font-size: 1.125rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.footer-tagline {
    color: var(--gray-400);
    margin-bottom: 20px;
}

.footer-links {
    margin-bottom: 24px;
}

.footer-links a {
    color: var(--gray-400);
    text-decoration: none;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: white;
}

.footer-sep {
    margin: 0 12px;
    color: var(--gray-600);
}

.footer-copy {
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--gray-500);
    font-size: 0.8125rem;
}

/* ==================
   RESPONSIVE
   ================== */
@media (max-width: 1024px) {
    .hero-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .hero-visual {
        order: -1;
    }

    .hero-image-frame {
        max-width: 300px;
    }

    .hero-text h1 {
        font-size: 2.5rem;
    }

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

    .service-card-reverse .service-image {
        order: 0;
    }

    .service-card-reverse .service-content {
        order: 0;
    }

    .numbers-grid {
        grid-template-columns: repeat(3, 1fr);
    }

}

@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    .header-nav {
        display: none;
        position: absolute;
        top: 64px;
        left: 0;
        right: 0;
        background: white;
        border-top: 1px solid var(--border);
        padding: 16px 24px;
        flex-direction: column;
        gap: 0;
        box-shadow: var(--shadow);
    }

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

    .nav-link {
        padding: 8px 0;
        display: block;
    }

    .nav-cta {
        text-align: center;
        margin-top: 8px;
        padding: 10px 20px;
        display: block;
    }

    .section-header h2 {
        font-size: 2rem;
    }

    .hero {
        padding-top: 130px;
    }

    .hero-text h1 {
        font-size: 2rem;
    }

    .hero-description {
        font-size: 1.0625rem;
    }

    .hero-cta-group {
        flex-direction: column;
    }

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

    .btn-cta-booking {
        width: 100%;
        padding: 16px 32px;
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }

    .timeline-line {
        display: none;
    }

    .timeline-icon {
        display: none;
    }

    .timeline-item {
        gap: 0;
    }


    .about-detail-card {
        padding: 24px;
    }

    .service-content {
        padding: 24px;
    }

    .case-card-header {
        padding: 24px;
        padding-right: 64px;
    }

    .case-card-body-inner {
        padding: 0 24px 24px;
        padding-top: 20px;
    }

    .case-expand-icon {
        top: 24px;
        right: 24px;
    }
}

/* ==================
   REDUCED MOTION
   ================== */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

@media (max-width: 480px) {
    .version-bar {
        overflow-x: auto;
        white-space: nowrap;
        -webkit-overflow-scrolling: touch;
    }

    .container {
        padding: 0 16px;
    }

    .hero-text h1 {
        font-size: 1.75rem;
    }

    .section-header h2 {
        font-size: 1.75rem;
    }

    .number-value {
        font-size: 2.25rem;
    }

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