/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --black: #000000;
    --white: #FFFFFF;
    --gray-50: #FAFAFA;
    --gray-100: #F7F7F7;
    --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: #0066CC;
    --accent-hover: #0052A3;
    --success: #10B981;
    --error: #EF4444;
    --max-width: 1200px;
    --section-padding: 80px;
    --header-height: 72px;
}

html {
    /* scroll-behavior: smooth removed — causes Chrome scroll jank */
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--gray-900);
    background: var(--white);
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

h1 { font-size: clamp(32px, 5.5vw, 56px); }
h2 { font-size: clamp(28px, 4vw, 42px); }
h3 { font-size: clamp(20px, 3vw, 28px); }

p { margin-bottom: 16px; }

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

@media (min-width: 768px) {
    .container { padding: 0 24px; }
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 28px;
    border-radius: 8px;
    text-decoration: none;
    font-size: 16px;
    font-weight: 600;
    transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease, color 0.2s ease;
    cursor: pointer;
    border: none;
    min-height: 48px;
    white-space: nowrap;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
    letter-spacing: -0.01em;
}

.btn-primary {
    background: var(--black);
    color: var(--white);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.btn-primary:hover {
    background: var(--gray-800);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

.btn-secondary {
    background: var(--white);
    color: var(--gray-900);
    border: 2px solid var(--gray-300);
}

.btn-secondary:hover {
    background: var(--gray-50);
    border-color: var(--gray-900);
    transform: translateY(-1px);
}

.btn-accent {
    background: var(--accent);
    color: var(--white);
    box-shadow: 0 2px 8px rgba(0, 102, 204, 0.25);
}

.btn-accent:hover {
    background: var(--accent-hover);
    transform: translateY(-2px);
}

/* Header */
header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: #fff;
    border-bottom: 1px solid #e8e8e8;
    contain: layout style;
}

header.scrolled {
    border-bottom-color: #ddd;
}

.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: var(--header-height);
}

.logo {
    font-size: 18px;
    font-weight: 700;
    color: var(--gray-900);
    letter-spacing: -0.02em;
}

.desktop-nav {
    display: none;
    gap: 32px;
    align-items: center;
}

@media (min-width: 768px) {
    .desktop-nav { display: flex; }
}

.desktop-nav a {
    color: var(--gray-700);
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    transition: color 0.2s ease, background 0.2s ease;
    padding: 8px 12px;
    border-radius: 6px;
}

.desktop-nav a:hover {
    color: var(--gray-900);
    background: var(--gray-50);
}

.desktop-nav .btn {
    margin-left: 8px;
    background: var(--black) !important;
    color: var(--white) !important;
}

/* Mobile Menu */
.mobile-menu-btn {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 4px;
    width: 48px;
    height: 48px;
    padding: 12px;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 10000;
}

@media (min-width: 768px) {
    .mobile-menu-btn { display: none; }
}

.mobile-menu-btn span {
    display: block;
    width: 100%;
    height: 2px;
    background: var(--gray-900);
    transition: transform 0.3s ease, opacity 0.3s ease;
}

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

.mobile-menu-btn.active span:nth-child(2) {
    opacity: 0;
}

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

.mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.95);
    z-index: 9999;
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.mobile-menu.active {
    visibility: visible;
    opacity: 1;
}

.mobile-menu-content {
    background: var(--white);
    width: 85%;
    max-width: 350px;
    height: 100%;
    position: absolute;
    right: 0;
    top: 0;
    padding: 2rem;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    overflow-y: auto;
}

.mobile-menu.active .mobile-menu-content {
    transform: translateX(0);
}

.mobile-menu-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    font-size: 2rem;
    cursor: pointer;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.mobile-menu-content nav {
    margin-top: 4rem;
    display: flex;
    flex-direction: column;
}

.mobile-menu-content nav a {
    padding: 1rem 0;
    font-size: 1.125rem;
    font-weight: 500;
    color: var(--gray-900);
    text-decoration: none;
    border-bottom: 1px solid var(--gray-200);
}

.mobile-menu-content nav a.btn {
    margin-top: 1.5rem;
    text-align: center;
    border: none;
    background: var(--gray-900);
    color: var(--white);
    border-radius: 8px;
    padding: 14px 28px;
}

/* Sections */
section {
    padding: 80px 0;
    contain: layout style paint;
}

@media (min-width: 768px) {
    section { padding: 100px 0; }
}

.text-center { text-align: center; }
.mb-8 { margin-bottom: 64px; }

/* Hero Section - Split Layout with Headshot */
.hero {
    padding-top: calc(var(--header-height) + 68px);
    padding-bottom: 68px;
    background: var(--gray-50);
    min-height: 85vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

@media (min-width: 768px) {
    .hero {
        padding-top: calc(var(--header-height) + 85px);
        padding-bottom: 85px;
    }
}

.hero-content {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 48px;
}

@media (min-width: 900px) {
    .hero-content {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        gap: 60px;
    }
}

.hero-text {
    text-align: center;
    flex: 1;
    max-width: 650px;
}

@media (min-width: 900px) {
    .hero-text {
        text-align: left;
    }
}

.hero-photo {
    flex-shrink: 0;
    order: -1;
}

@media (min-width: 900px) {
    .hero-photo {
        order: 1;
    }
}

.hero-photo img {
    width: 280px;
    height: 280px;
    border-radius: 50%;
    object-fit: cover;
    object-position: center 15%;
    background: #ffffff;
    border: 6px solid #ffffff;
    contain: strict;
}

@media (min-width: 900px) {
    .hero-photo img {
        width: 320px;
        height: 320px;
    }
}

.hero-eyebrow {
    font-size: 14px;
    font-weight: 600;
    color: var(--gray-600);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 20px;
}

.hero h1 {
    margin-bottom: 28px;
    color: var(--gray-900);
    font-weight: 700;
    letter-spacing: -0.025em;
}

.hero-tagline {
    font-size: clamp(20px, 3vw, 24px);
    color: var(--gray-800);
    margin-bottom: 16px;
    font-weight: 500;
}

.hero-subtitle {
    font-size: clamp(17px, 2.5vw, 19px);
    color: var(--gray-600);
    margin-bottom: 0;
    line-height: 1.65;
    max-width: 540px;
}

@media (min-width: 900px) {
    .hero-subtitle {
        margin-left: 0;
        margin-right: 0;
    }
}

.hero-cta {
    display: flex;
    flex-direction: column;
    gap: 16px;
    align-items: center;
    justify-content: center;
    margin-top: 40px;
}

@media (min-width: 640px) {
    .hero-cta {
        flex-direction: row;
    }
}

@media (min-width: 900px) {
    .hero-cta {
        justify-content: flex-start;
    }
}

.hero-cta .btn {
    min-width: 180px;
    padding: 16px 32px;
}

/* Stats Bar */
.stats-bar {
    background: var(--gray-900);
    color: var(--white);
    padding: 0;
}

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

@media (min-width: 768px) {
    .stats-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.stat-item {
    padding: 24px 16px;
    border-right: 1px solid rgba(255,255,255,0.1);
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.stat-item:nth-child(2n) {
    border-right: none;
}

@media (min-width: 768px) {
    .stat-item {
        border-bottom: none;
    }
    .stat-item:nth-child(2n) {
        border-right: 1px solid rgba(255,255,255,0.1);
    }
    .stat-item:last-child {
        border-right: none;
    }
}

.stat-value {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 4px;
}

.stat-label {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    opacity: 0.7;
}

/* Featured Section - Trusenda */
.featured-section {
    background: var(--gray-900);
    color: var(--white);
}

.featured-badge {
    display: inline-block;
    padding: 6px 16px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 100px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 20px;
}

.featured-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.featured-content h2 {
    margin-bottom: 20px;
}

.featured-problem {
    font-size: clamp(18px, 2.5vw, 22px);
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 24px;
    line-height: 1.5;
    font-style: italic;
}

.featured-solution {
    font-size: 17px;
    color: rgba(255, 255, 255, 0.75);
    margin-bottom: 32px;
    line-height: 1.7;
}

/* Pro Forma Section */
.proforma-section {
    background: #0f1320;
    color: var(--white);
    border-top: 1px solid rgba(245, 158, 11, 0.3);
}

.proforma-badge {
    display: inline-block;
    padding: 8px 20px;
    background: rgba(245, 158, 11, 0.15);
    border: 1px solid rgba(245, 158, 11, 0.3);
    border-radius: 100px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #f59e0b;
    margin-bottom: 20px;
}

.proforma-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.proforma-content h2 {
    margin-bottom: 20px;
}

.proforma-tagline {
    font-size: clamp(18px, 2.5vw, 22px);
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 16px;
    font-weight: 500;
}

.proforma-desc {
    font-size: 17px;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 32px;
    line-height: 1.7;
}

.proforma-cta {
    margin-bottom: 16px;
}

.proforma-note {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.5);
}

/* What I Do Section */
.what-section {
    background: var(--white);
}

.what-intro {
    max-width: 700px;
    margin: 0 auto 48px;
    text-align: center;
}

.what-intro p {
    font-size: 18px;
    color: var(--gray-600);
    line-height: 1.7;
}

.what-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 32px;
    max-width: 1000px;
    margin: 0 auto;
}

@media (min-width: 768px) {
    .what-grid {
        grid-template-columns: 1fr 1fr;
    }
}

.what-card {
    padding: 40px;
    border-radius: 16px;
}

.what-card h3 {
    margin-bottom: 24px;
    font-size: 24px;
}

.what-card ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.what-card li {
    padding: 12px 0;
    padding-left: 20px;
    position: relative;
    border-bottom: 1px solid rgba(255,255,255,0.12);
    font-size: 15px;
    line-height: 1.5;
}

.what-card li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 18px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(255,255,255,0.5);
}

.what-card li:last-child {
    border-bottom: none;
}

.what-card.deals {
    background: #6e72b8;
    color: var(--white);
}

.what-card.systems {
    background: var(--gray-900);
    color: var(--white);
}

/* Selected Work Section */
.work-section {
    background: var(--gray-100);
}

.work-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
    max-width: 1000px;
    margin: 0 auto;
}

@media (min-width: 768px) {
    .work-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.work-card {
    background: var(--white);
    padding: 32px;
    border-radius: 12px;
    border: 1px solid var(--gray-200);
}

.work-card h3 {
    font-size: 18px;
    margin-bottom: 12px;
    color: var(--gray-900);
}

.work-card .context {
    font-size: 15px;
    color: var(--gray-600);
    margin-bottom: 16px;
    line-height: 1.5;
}

.work-card .outcome {
    font-size: 15px;
    font-weight: 600;
    color: var(--accent);
}

/* Templates Section */
.templates-section {
    background: var(--gray-900);
    color: var(--white);
}

.templates-intro {
    max-width: 700px;
    margin: 0 auto 48px;
    text-align: center;
}

.templates-intro h2 {
    margin-bottom: 16px;
}

.templates-intro .main-desc {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 12px;
}

.templates-intro .sub-desc {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.5);
}

.templates-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    max-width: 1000px;
    margin: 0 auto;
}

.template-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 28px;
    display: flex;
    flex-direction: column;
}

.template-card h3 {
    font-size: 18px;
    margin-bottom: 12px;
}

.template-card p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
    line-height: 1.5;
    flex-grow: 1;
}

.template-card .btn {
    margin-top: 20px;
    width: 100%;
}

.templates-custom {
    max-width: 700px;
    margin: 48px auto 0;
    text-align: center;
    padding: 28px;
    background: rgba(0, 102, 204, 0.1);
    border: 1px solid rgba(0, 102, 204, 0.2);
    border-radius: 12px;
}

.templates-custom p {
    margin-bottom: 12px;
    color: rgba(255, 255, 255, 0.9);
}

.templates-custom a {
    color: var(--accent);
    text-decoration: none;
    font-weight: 600;
}

/* Services Section */
.services-section {
    background: var(--white);
}

.services-intro {
    text-align: center;
    margin-bottom: 48px;
}

.services-intro p {
    font-size: 18px;
    color: var(--gray-600);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    max-width: 1000px;
    margin: 0 auto;
}

.service-card {
    background: var(--white);
    padding: 36px;
    border-radius: 16px;
    border: 1px solid var(--gray-200);
    text-align: center;
}

.service-card h3 {
    font-size: 22px;
    margin-bottom: 16px;
}

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

.service-card .type {
    font-size: 13px;
    font-weight: 600;
    color: var(--gray-500);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Contact Section */
.contact-section {
    background: var(--black);
    color: var(--white);
    text-align: center;
}

.contact-section h2 {
    margin-bottom: 20px;
}

.contact-section .subtitle {
    font-size: 18px;
    opacity: 0.8;
    margin-bottom: 32px;
}

.contact-phone {
    display: block;
    font-size: clamp(28px, 5vw, 40px);
    font-weight: 700;
    color: var(--white);
    text-decoration: none;
    margin-bottom: 32px;
}

.contact-phone:hover {
    opacity: 0.9;
}

.contact-location {
    font-size: 16px;
    opacity: 0.7;
    margin-top: 24px;
}

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

.footer-content {
    display: flex;
    flex-direction: column;
    gap: 24px;
    text-align: center;
}

@media (min-width: 768px) {
    .footer-content {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        text-align: left;
    }
}

.footer-links {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
    justify-content: center;
}

.footer-links a {
    color: var(--gray-700);
    text-decoration: none;
    font-size: 14px;
}

/* Form Styles */
.form-section {
    background: var(--gray-900);
    color: var(--white);
}

.form-container {
    max-width: 600px;
    margin: 0 auto;
}

.form-header {
    text-align: center;
    margin-bottom: 40px;
}

.form-header h2 {
    margin-bottom: 16px;
}

.form-header p {
    font-size: 18px;
    color: var(--gray-300);
}

.discovery-form {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 16px;
    padding: 32px 24px;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

@media (min-width: 768px) {
    .discovery-form {
        padding: 48px;
    }
}

.form-group {
    margin-bottom: 24px;
}

.form-group label {
    display: block;
    margin-bottom: 10px;
    font-weight: 600;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--gray-300);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 14px 16px;
    background: rgba(255, 255, 255, 0.08);
    border: 2px solid rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    color: var(--white);
    font-size: 16px;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    min-height: 48px;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    background: rgba(255, 255, 255, 0.12);
    border-color: var(--accent);
}

.form-group select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23ffffff' d='M6 8L0 0h12z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    padding-right: 40px;
}

.form-group select option {
    background: var(--gray-900);
    color: var(--white);
}

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

.form-submit {
    margin-top: 32px;
}

.form-submit .btn {
    width: 100%;
}

.form-note {
    text-align: center;
    margin-top: 20px;
    font-size: 14px;
    opacity: 0.6;
}

/* Icons */
.icon {
    width: 24px;
    height: 24px;
    margin-bottom: 16px;
    stroke-width: 2px;
    stroke: currentColor;
    fill: none;
    display: block;
}

.stats-bar .icon {
    margin: 0 auto 12px;
    color: rgba(255, 255, 255, 0.5);
    width: 24px;
    height: 24px;
}

.what-card .icon {
    color: rgba(255, 255, 255, 0.9);
    width: 32px;
    height: 32px;
}

.work-card .icon {
    color: var(--accent);
    width: 28px;
    height: 28px;
}

.template-card .icon {
    color: var(--white);
    opacity: 0.8;
    width: 28px;
    height: 28px;
}

.service-card .icon {
    margin: 0 auto 20px;
    color: var(--accent);
    width: 40px;
    height: 40px;
}

/* Animations */
.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) {
    * {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
}
