/* ===========================
   CABOT AI — MAIN STYLESHEET
   =========================== */

:root {
    --green: #1D9E75;
    --green-dark: #0F6E56;
    --green-deep: #085041;
    --green-light: #E1F5EE;
    --text-primary: #1a1a18;
    --text-secondary: #5a5a56;
    --text-muted: #8a8a84;
    --border: rgba(0,0,0,0.1);
    --border-light: rgba(0,0,0,0.06);
    --bg: #ffffff;
    --bg-secondary: #f8f7f4;
    --bg-dark: #0e1410;
    --serif: 'DM Serif Display', Georgia, serif;
    --sans: 'DM Sans', system-ui, sans-serif;
    --radius: 8px;
    --radius-lg: 14px;
    --max-width: 1100px;
}

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

html { scroll-behavior: smooth; }

body {
    font-family: var(--sans);
    font-size: 16px;
    line-height: 1.7;
    color: var(--text-primary);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
}

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

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

/* ===========================
   NAVIGATION
   =========================== */

.site-nav {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(8px);
    border-bottom: 0.5px solid var(--border-light);
}

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

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

.logo-text {
    font-family: var(--serif);
    font-size: 22px;
    letter-spacing: -0.3px;
    color: var(--text-primary);
}

.logo-text span { color: var(--green); }

.nav-links {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-links a {
    font-size: 14px;
    font-weight: 400;
    color: var(--text-secondary);
    transition: color 0.15s;
}

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

.nav-cta {
    font-size: 13px !important;
    font-weight: 500 !important;
    color: var(--bg) !important;
    background: var(--green);
    padding: 9px 18px;
    border-radius: var(--radius);
    transition: background 0.15s !important;
}

.nav-cta:hover { background: var(--green-dark) !important; color: #fff !important; }

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}

.nav-toggle span {
    display: block;
    width: 22px;
    height: 1.5px;
    background: var(--text-primary);
    transition: 0.2s;
}

/* ===========================
   HERO
   =========================== */

.hero {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 5rem 2rem 0;
}

.hero-inner {
    max-width: 780px;
    padding-bottom: 4rem;
    border-bottom: 0.5px solid var(--border-light);
}

.eyebrow {
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    color: var(--green);
    margin-bottom: 1.5rem;
}

.hero h1 {
    font-family: var(--serif);
    font-size: clamp(30px, 4.5vw, 54px);
    line-height: 1.12;
    letter-spacing: -1.5px;
    margin-bottom: 1.25rem;
    color: var(--text-primary);
}

.hero h1 em {
    font-style: italic;
    color: var(--green);
}

.hero-sub {
    font-size: 17px;
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
    font-weight: 300;
}

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

.hero-stat-bar {
    display: flex;
    align-items: center;
    gap: 0;
    padding: 2rem 0;
}

.stat {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding-right: 3rem;
}

.stat-num {
    font-family: var(--serif);
    font-size: 28px;
    line-height: 1;
    color: var(--text-primary);
}

.stat-label {
    font-size: 12px;
    color: var(--text-muted);
}

.stat-divider {
    width: 0.5px;
    height: 40px;
    background: var(--border);
    margin-right: 3rem;
    flex-shrink: 0;
}

/* ===========================
   BUTTONS
   =========================== */

.btn-primary {
    display: inline-block;
    font-family: var(--sans);
    font-size: 14px;
    font-weight: 500;
    padding: 12px 24px;
    background: var(--green);
    color: #fff;
    border: none;
    border-radius: var(--radius);
    cursor: pointer;
    transition: background 0.15s;
    text-decoration: none;
}

.btn-primary:hover { background: var(--green-dark); color: #fff; }

.btn-primary.btn-large {
    font-size: 16px;
    padding: 16px 32px;
}

.btn-ghost {
    display: inline-block;
    font-size: 14px;
    font-weight: 400;
    padding: 12px 24px;
    color: var(--text-secondary);
    border: 0.5px solid var(--border);
    border-radius: var(--radius);
    transition: background 0.15s, color 0.15s;
}

.btn-ghost:hover {
    background: var(--bg-secondary);
    color: var(--text-primary);
}

/* ===========================
   PROBLEM BAND
   =========================== */

.problem-band {
    background: var(--bg-dark);
    padding: 3.5rem 2rem;
    margin: 0;
}

.problem-inner {
    max-width: var(--max-width);
    margin: 0 auto;
}

.problem-text {
    font-family: var(--serif);
    font-size: clamp(20px, 2.5vw, 28px);
    line-height: 1.4;
    color: rgba(255,255,255,0.7);
    max-width: 780px;
}

.problem-text strong {
    color: #fff;
    font-weight: 400;
}

/* ===========================
   SHARED SECTION STYLES
   =========================== */

.section-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 5rem 2rem;
}

.section-label {
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

.section-headline {
    font-family: var(--serif);
    font-size: clamp(24px, 3vw, 38px);
    line-height: 1.18;
    letter-spacing: -0.8px;
    max-width: 600px;
    margin-bottom: 1rem;
}

.section-intro {
    font-size: 17px;
    line-height: 1.7;
    color: var(--text-secondary);
    max-width: 580px;
    margin-bottom: 3.5rem;
    font-weight: 300;
}

/* ===========================
   PILLARS
   =========================== */

.pillars { background: var(--bg); }

.pillars-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5px;
    background: var(--border-light);
    border: 0.5px solid var(--border-light);
    border-radius: var(--radius-lg);
    overflow: hidden;
    margin-top: 3rem;
}

.pillar-card {
    background: var(--bg);
    padding: 2.5rem 2rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.pillar-num {
    font-family: var(--serif);
    font-size: 48px;
    line-height: 1;
    color: var(--green-dark);
    letter-spacing: -2px;
}

.pillar-card h3 {
    font-family: var(--serif);
    font-size: 22px;
    line-height: 1.25;
    letter-spacing: -0.3px;
    font-weight: 400;
}

.pillar-card p {
    font-size: 15px;
    line-height: 1.7;
    color: var(--text-secondary);
    flex: 1;
}

.pillar-outcomes {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding-top: 0.5rem;
    border-top: 0.5px solid var(--border-light);
}

.pillar-outcomes li {
    font-size: 13px;
    color: var(--green-dark);
    font-weight: 500;
    padding-left: 1rem;
    position: relative;
}

.pillar-outcomes li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--green);
}

/* ===========================
   PROCESS
   =========================== */

.process { background: var(--bg-secondary); }

.process-steps {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.process-step {
    display: grid;
    grid-template-columns: 60px 1fr;
    gap: 2rem;
    padding-bottom: 2.5rem;
}

.step-marker {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
}

.step-num {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--green);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    font-weight: 500;
    flex-shrink: 0;
}

.step-line {
    width: 1px;
    flex: 1;
    background: var(--border);
    margin-top: 8px;
    min-height: 40px;
}

.step-content {
    padding-top: 8px;
    padding-bottom: 2rem;
}

.step-content h3 {
    font-family: var(--serif);
    font-size: 22px;
    font-weight: 400;
    letter-spacing: -0.3px;
    margin-bottom: 0.75rem;
}

.step-content p {
    font-size: 15px;
    line-height: 1.7;
    color: var(--text-secondary);
    max-width: 540px;
}

/* ===========================
   CASE STUDY
   =========================== */

.case-study { background: var(--bg); }

.case-study-card {
    border: 0.5px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.case-context {
    background: var(--bg-dark);
    padding: 2rem 2.5rem;
}

.case-tag {
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--green);
    margin-bottom: 0.5rem;
}

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

.case-situation {
    padding: 2rem 2.5rem;
    border-bottom: 0.5px solid var(--border-light);
    background: var(--bg-secondary);
}

.case-situation p {
    font-size: 16px;
    line-height: 1.7;
    color: var(--text-secondary);
    max-width: 680px;
}

.case-score {
    margin-top: 1rem;
    font-size: 14px;
    color: var(--text-muted);
}

.case-score strong {
    color: var(--text-primary);
    font-weight: 500;
}

.results-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    border-bottom: 0.5px solid var(--border-light);
}

.result-card {
    padding: 2rem 1.5rem;
    border-right: 0.5px solid var(--border-light);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    text-align: center;
}

.result-card:last-child { border-right: none; }

.result-before {
    font-size: 20px;
    font-weight: 500;
    color: var(--text-muted);
    text-decoration: line-through;
    text-decoration-color: rgba(0,0,0,0.2);
}

.result-arrow {
    font-size: 16px;
    color: var(--text-muted);
}

.result-after {
    font-family: var(--serif);
    font-size: 28px;
    color: var(--green-dark);
    line-height: 1;
}

.result-label {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 6px;
    line-height: 1.4;
}

.case-quote {
    padding: 2.5rem 2.5rem 0;
    font-family: var(--serif);
    font-style: italic;
    font-size: 20px;
    line-height: 1.5;
    color: var(--text-primary);
    border-top: none;
    max-width: 700px;
}

.case-quote cite {
    display: block;
    font-family: var(--sans);
    font-style: normal;
    font-size: 13px;
    color: var(--text-muted);
    margin-top: 1rem;
    font-weight: 400;
}

.case-roi {
    display: flex;
    align-items: center;
    gap: 0;
    padding: 2rem 2.5rem;
}

.roi-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding-right: 3rem;
}

.roi-label {
    font-size: 12px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.roi-num {
    font-family: var(--serif);
    font-size: 32px;
    letter-spacing: -0.5px;
    color: var(--text-primary);
}

.roi-num.roi-green { color: var(--green-dark); }

.roi-divider {
    width: 0.5px;
    height: 48px;
    background: var(--border);
    margin-right: 3rem;
}

/* ===========================
   WHO WE SERVE
   =========================== */

.who-we-serve { background: var(--bg-secondary); }

.serve-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: start;
    margin-top: 2rem;
}

.serve-text p {
    font-size: 16px;
    line-height: 1.75;
    color: var(--text-secondary);
    margin-top: 1.25rem;
}

.serve-criteria {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding-top: 0.5rem;
}

.criterion {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 15px;
    color: var(--text-secondary);
}

.criterion-check {
    color: var(--green);
    font-size: 14px;
    font-weight: 500;
    flex-shrink: 0;
    margin-top: 3px;
}

/* ===========================
   ABOUT / TEAM
   =========================== */

.about { background: var(--bg); }

.team-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-top: 3rem;
}

.team-card {
    border: 0.5px solid var(--border-light);
    border-radius: var(--radius-lg);
    padding: 2rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.team-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--green-light);
    color: var(--green-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.team-card h3 {
    font-family: var(--serif);
    font-size: 20px;
    font-weight: 400;
    letter-spacing: -0.2px;
}

.team-role {
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--green);
}

.team-card p {
    font-size: 14px;
    line-height: 1.7;
    color: var(--text-secondary);
}

/* ===========================
   CTA SECTION
   =========================== */

.cta-section {
    background: var(--bg-dark);
    padding: 6rem 2rem;
}

.cta-inner {
    max-width: 640px;
    margin: 0 auto;
    text-align: center;
}

.cta-section .eyebrow { margin-bottom: 1.25rem; }

.cta-section h2 {
    font-family: var(--serif);
    font-size: clamp(26px, 3.5vw, 42px);
    line-height: 1.15;
    letter-spacing: -1px;
    color: #fff;
    margin-bottom: 1.5rem;
}

.cta-section p {
    font-size: 16px;
    line-height: 1.75;
    color: rgba(255,255,255,0.55);
    margin-bottom: 2.5rem;
    font-weight: 300;
}

.cta-sub {
    margin-top: 1.25rem !important;
    font-size: 13px !important;
    color: rgba(255,255,255,0.3) !important;
}

/* ===========================
   FOOTER
   =========================== */

.site-footer {
    background: var(--bg-dark);
    border-top: 0.5px solid rgba(255,255,255,0.06);
    padding: 3rem 2rem 0;
}

.footer-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 3rem;
    border-bottom: 0.5px solid rgba(255,255,255,0.06);
    flex-wrap: wrap;
    gap: 2rem;
}

.footer-logo {
    font-family: var(--serif);
    font-size: 20px;
    color: #fff;
    display: block;
    margin-bottom: 0.75rem;
}

.footer-logo span { color: var(--green); }

.footer-left p {
    font-size: 14px;
    color: rgba(255,255,255,0.4);
    line-height: 1.6;
}

.footer-bottom {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 1.5rem 0;
}

.footer-bottom p {
    font-size: 13px;
    color: rgba(255,255,255,0.25);
}

/* ===========================
   RESPONSIVE
   =========================== */

@media (max-width: 900px) {
    .pillars-grid { grid-template-columns: 1fr; }
    .results-grid { grid-template-columns: repeat(2, 1fr); }
    .team-grid { grid-template-columns: 1fr; }
    .serve-layout { grid-template-columns: 1fr; gap: 2.5rem; }
    .hero-stat-bar { flex-wrap: wrap; gap: 1.5rem; }
    .stat-divider { display: none; }
    .roi-item { padding-right: 2rem; }
}

@media (max-width: 680px) {
    .nav-links { display: none; flex-direction: column; position: absolute; top: 68px; left: 0; right: 0; background: #fff; padding: 1.5rem 2rem; border-bottom: 0.5px solid var(--border-light); gap: 1.25rem; }
    .nav-links.open { display: flex; }
    .nav-toggle { display: flex; }
    .hero { padding-top: 3rem; }
    .results-grid { grid-template-columns: 1fr 1fr; }
    .case-roi { flex-direction: column; gap: 1.5rem; }
    .roi-divider { display: none; }
    .section-inner { padding: 3.5rem 1.5rem; }
    nav .nav-inner { padding: 0 1.5rem; }
}

.serve-pain {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.pain-label {
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--text-muted);
}

.pain-card {
    border-left: 2px solid var(--green);
    padding: 1rem 1.25rem;
    background: var(--bg);
    border-radius: 0 var(--radius) var(--radius) 0;
}

.pain-card p {
    font-size: 15px;
    line-height: 1.7;
    color: var(--text-secondary);
    margin: 0;
}

/* ===========================
   ANIMATIONS
   =========================== */

@keyframes fadeUp {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
}

.hero-inner { animation: fadeUp 0.6s ease both; }
.hero-stat-bar { animation: fadeUp 0.6s 0.15s ease both; }
.problem-text { animation: fadeUp 0.6s ease both; }
