/* ===== Design: Deep Teal + Soft Amber ===== */
/* Eastfield Consulting — Premium, authoritative editorial aesthetic */
/* Typography: Fraunces (display) + DM Sans (body) */
/* Palette: Deep teal, warm amber accents, cream backgrounds */

:root {
    /* Core palette */
    --primary: #1A3C40;
    --primary-deep: #0E2326;
    --primary-mid: #2A5A56;
    --primary-light: #3D7A75;
    --teal-muted: #9BB5B1;
    --teal-light: #C8D8D5;
    --teal-pale: #E4EDEC;
    --cream: #F9F6F1;
    --cream-dark: #F0EBE3;
    --accent: #C4883A;
    --accent-light: #D4A05E;
    --accent-pale: #E8D4B4;

    /* Text */
    --text: #2A2D26;
    --text-secondary: #555A4E;
    --text-muted: #878C7E;
    --text-on-dark: #F2F0EC;
    --text-on-dark-muted: rgba(242, 240, 236, 0.7);

    /* UI */
    --bg: #FFFFFF;
    --border: #DDD8D0;
    --border-light: #E8E4DC;

    /* Effects */
    --radius: 8px;
    --radius-lg: 16px;
    --shadow-sm: 0 1px 3px rgba(42, 45, 38, 0.06);
    --shadow: 0 4px 12px rgba(42, 45, 38, 0.08);
    --shadow-lg: 0 12px 32px rgba(42, 45, 38, 0.12);
    --shadow-xl: 0 24px 48px rgba(42, 45, 38, 0.16);

    /* Typography */
    --font-display: 'Fraunces', Georgia, serif;
    --font-body: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

    /* Spacing rhythm */
    --section-pad: 120px;
    --section-pad-sm: 80px;
}

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

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

body {
    font-family: var(--font-body);
    font-size: 16.5px;
    line-height: 1.7;
    color: var(--text);
    background: var(--cream);
}

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

/* ===== Container ===== */
.container {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 32px;
}

/* ===== Typography ===== */
h1, h2, h3 {
    line-height: 1.2;
    color: var(--text);
}

h1 {
    font-family: var(--font-display);
    font-size: 3.75rem;
    font-weight: 400;
    letter-spacing: -0.02em;
    font-optical-sizing: auto;
}

h2 {
    font-family: var(--font-display);
    font-size: 2.5rem;
    font-weight: 400;
    letter-spacing: -0.01em;
    margin-bottom: 1rem;
}

h3 {
    font-family: var(--font-body);
    font-size: 1.125rem;
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: 0.5rem;
}

p {
    margin-bottom: 1rem;
}

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

a:hover {
    color: var(--accent-light);
}

/* ===== Utilities ===== */
.highlight {
    color: var(--accent);
    font-style: italic;
}

.section-label {
    display: block;
    font-family: var(--font-body);
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 1rem;
}

/* ===== Button ===== */
.btn {
    display: inline-block;
    background: var(--accent);
    color: white;
    padding: 16px 40px;
    border-radius: var(--radius);
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.9375rem;
    letter-spacing: 0.02em;
    border: none;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: var(--shadow-sm);
}

.btn:hover {
    background: var(--accent-light);
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.btn-hero {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-on-dark);
    border: 1.5px solid rgba(255, 255, 255, 0.35);
    backdrop-filter: blur(4px);
    padding: 16px 44px;
}

.btn-hero:hover {
    background: rgba(255, 255, 255, 0.18);
    border-color: rgba(255, 255, 255, 0.55);
    color: white;
    transform: translateY(-2px);
}

/* ===== Header ===== */
.header {
    padding: 20px 0;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: transparent;
    z-index: 100;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.header.scrolled {
    background: rgba(249, 246, 241, 0.92);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border-light);
    padding: 14px 0;
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-mark-wrapper {
    display: grid;
    height: 38px;
}

.logo-mark {
    grid-area: 1 / 1;
    height: 38px;
    width: auto;
    transition: opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.logo-mark-white {
    opacity: 1;
}

.logo-mark-color {
    opacity: 0;
}

.logo:hover .logo-mark {
    opacity: 0.8;
}

.logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.logo-name {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 500;
    color: var(--text-on-dark);
    letter-spacing: 0.02em;
}

.logo-sub {
    font-family: var(--font-body);
    font-size: 0.625rem;
    font-weight: 500;
    color: var(--text-on-dark-muted);
    letter-spacing: 0.15em;
}

.header.scrolled .logo-mark-white {
    opacity: 0;
}

.header.scrolled .logo-mark-color {
    opacity: 1;
}

.header.scrolled .logo-name {
    color: var(--text);
}

.header.scrolled .logo-sub {
    color: var(--text-muted);
}

.nav-cta {
    font-weight: 600;
    font-size: 0.8125rem;
    color: var(--text-on-dark);
    padding: 10px 24px;
    border: 1.5px solid rgba(255, 255, 255, 0.35);
    border-radius: var(--radius);
    letter-spacing: 0.06em;
    text-transform: uppercase;
    transition: all 0.3s ease;
}

.header.scrolled .nav-cta {
    color: var(--primary);
    border-color: var(--primary);
}

.nav-cta:hover {
    background: rgba(255, 255, 255, 0.14);
    border-color: rgba(255, 255, 255, 0.55);
    text-decoration: none;
    color: white;
}

.header.scrolled .nav-cta:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

/* ===== Hero ===== */
.hero {
    position: relative;
    padding: 200px 0 160px;
    overflow: hidden;
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(170deg, rgba(14, 35, 38, 0.93) 0%, rgba(26, 60, 64, 0.88) 40%, rgba(20, 47, 51, 0.92) 100%),
        url('https://images.unsplash.com/photo-1500382017468-9049fed747ef?w=1920&q=80') center/cover no-repeat;
    z-index: -2;
}

/* Grain texture overlay */
.hero-bg::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 512 512' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.5'/%3E%3C/svg%3E");
    opacity: 0.07;
    mix-blend-mode: overlay;
    z-index: 1;
}

/* Bottom fade to cream */
.hero-bg::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 220px;
    background: linear-gradient(to top, var(--cream), transparent);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 920px;
}

.hero h1 {
    color: var(--text-on-dark);
    margin-bottom: 1.5rem;
    font-weight: 300;
    font-size: 4.5rem;
    line-height: 1.15;
}

.hero-sub {
    font-size: 1.1875rem;
    color: var(--text-on-dark-muted);
    max-width: 600px;
    line-height: 1.85;
    margin-bottom: 2.5rem;
}

/* ===== Proof Bar ===== */
.proof-bar {
    padding: 56px 0;
    background: var(--teal-pale);
}

.proof-bar-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
}

.proof-stat {
    text-align: center;
    padding: 8px 16px;
    position: relative;
}

.proof-stat:not(:last-child)::after {
    content: '';
    position: absolute;
    right: 0;
    top: 15%;
    height: 70%;
    width: 1px;
    background: var(--teal-light);
}

.proof-number {
    display: block;
    font-family: var(--font-display);
    font-size: 2.75rem;
    font-weight: 400;
    color: var(--primary);
    line-height: 1.1;
    margin-bottom: 6px;
    letter-spacing: -0.02em;
}

.proof-label {
    display: block;
    font-size: 0.8125rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-weight: 500;
}

/* ===== Problem Section ===== */
.problem {
    padding: var(--section-pad) 0;
    background: var(--cream);
}

.problem h2 {
    text-align: center;
    margin-bottom: 3.5rem;
}

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

.problem-card {
    background: var(--bg);
    padding: 40px 32px 32px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-light);
    position: relative;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.problem-card::before {
    content: '\201C';
    font-family: var(--font-display);
    font-size: 4.5rem;
    line-height: 1;
    color: var(--teal-light);
    position: absolute;
    top: 12px;
    left: 28px;
    transition: color 0.3s ease;
}

.problem-card:hover {
    border-color: var(--teal-muted);
    box-shadow: var(--shadow);
    transform: translateY(-3px);
}

.problem-card:hover::before {
    color: var(--teal-muted);
}

.problem-card p {
    margin: 0;
    padding-top: 24px;
    font-family: var(--font-display);
    font-style: italic;
    font-size: 1.0625rem;
    font-weight: 300;
    color: var(--text-secondary);
    line-height: 1.75;
}

.problem-conclusion {
    text-align: center;
    font-size: 1.25rem;
    font-family: var(--font-display);
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
    font-weight: 400;
    line-height: 1.65;
}

/* ===== Services Section ===== */
.services {
    padding: var(--section-pad) 0;
    background: var(--teal-pale);
}

.services h2 {
    text-align: center;
    margin-bottom: 3.5rem;
}

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

.service-card {
    background: var(--bg);
    padding: 40px 32px;
    border-radius: var(--radius-lg);
    border: 1px solid transparent;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: var(--shadow-sm);
}

.service-card:hover {
    border-color: var(--teal-muted);
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
}

/* Primary service card */
.service-card.primary {
    grid-column: 1 / -1;
    text-align: center;
    padding: 48px 48px;
    border-top: 3px solid var(--accent);
}

.service-card.primary .service-icon {
    margin: 0 auto 24px;
}

.service-card.primary h3 {
    font-size: 1.375rem;
}

.service-card.primary p {
    max-width: 680px;
    margin: 0 auto;
}

.service-icon {
    width: 52px;
    height: 52px;
    background: var(--teal-pale);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    transition: all 0.3s ease;
}

.service-card:hover .service-icon {
    background: var(--accent-pale);
}

.service-icon svg {
    width: 26px;
    height: 26px;
    stroke: var(--primary);
    transition: stroke 0.3s ease;
}

.service-card:hover .service-icon svg {
    stroke: var(--accent);
}

.service-card h3 {
    color: var(--text);
    font-size: 1.1875rem;
    margin-bottom: 0.75rem;
}

.service-card p {
    color: var(--text-secondary);
    margin: 0;
    line-height: 1.7;
    font-size: 0.9375rem;
}

/* ===== Case Study Section ===== */
.case-study {
    padding: var(--section-pad) 0;
    background: var(--primary-deep);
    position: relative;
    overflow: hidden;
}

/* Grain texture */
.case-study::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 512 512' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.5'/%3E%3C/svg%3E");
    opacity: 0.05;
    mix-blend-mode: overlay;
    pointer-events: none;
}

.case-study .container {
    position: relative;
    z-index: 1;
}

.case-study .section-label {
    text-align: center;
}

.case-study h2 {
    color: var(--text-on-dark);
    text-align: center;
    font-size: 2.75rem;
    margin-bottom: 3.5rem;
    font-weight: 300;
}

.case-study-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    margin-bottom: 4rem;
}

.case-study-block h3 {
    font-family: var(--font-body);
    color: var(--accent);
    font-size: 0.8125rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 1.25rem;
    padding-bottom: 1.25rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.case-study-block p {
    color: var(--text-on-dark-muted);
    font-size: 0.9375rem;
    line-height: 1.85;
    margin: 0;
}

.case-study-block .case-study-subhead {
    color: var(--accent-light);
    font-weight: 600;
    font-size: 0.8125rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-top: 1.25rem;
    margin-bottom: 0.5rem;
}

.case-study-block .case-study-subhead:first-of-type {
    margin-top: 0;
}

.case-study-block ul {
    list-style: none;
    padding: 0;
    margin: 0 0 0.5rem;
}

.case-study-block ul li {
    color: var(--text-on-dark-muted);
    font-size: 0.9375rem;
    line-height: 1.85;
    padding-left: 1.25rem;
    position: relative;
    margin-bottom: 0.5rem;
}

.case-study-block ul li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.65em;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent);
}

.case-study-quote {
    max-width: 720px;
    margin: 0 auto;
    text-align: center;
    padding-top: 4rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
}

.case-study-quote::before {
    content: '\201C';
    font-family: var(--font-display);
    font-size: 6rem;
    line-height: 1;
    color: var(--primary-mid);
    position: absolute;
    top: 2rem;
    left: 50%;
    transform: translateX(-50%);
    opacity: 0.5;
}

.case-study-quote p {
    font-family: var(--font-display);
    font-style: italic;
    font-size: 1.3125rem;
    color: var(--text-on-dark);
    line-height: 1.75;
    margin-bottom: 1.5rem;
    padding-top: 2.5rem;
    font-weight: 300;
}

.case-study-quote cite {
    color: var(--text-on-dark-muted);
    font-size: 0.875rem;
    font-style: normal;
    font-weight: 500;
    letter-spacing: 0.02em;
}

/* ===== About Section ===== */
.about {
    padding: var(--section-pad) 0;
    background: var(--cream);
}

.about-header {
    text-align: center;
    margin-bottom: 4rem;
}

.about-intro {
    font-size: 1.1875rem;
    color: var(--text-secondary);
    max-width: 550px;
    margin: 0.75rem auto 0;
    line-height: 1.7;
}

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

.about-card {
    padding: 36px 32px;
    border-radius: var(--radius-lg);
    background: var(--bg);
    border: 1px solid var(--border-light);
    position: relative;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
}

.about-card:hover {
    border-color: var(--teal-muted);
    box-shadow: var(--shadow);
}

.about-number {
    font-size: 4.5rem;
    font-weight: 300;
    color: var(--teal-pale);
    line-height: 1;
    margin-bottom: 16px;
    font-family: var(--font-display);
    transition: color 0.3s ease;
}

.about-card:hover .about-number {
    color: var(--teal-light);
}

.about-card h3 {
    color: var(--text);
    font-size: 1.0625rem;
    margin-bottom: 0.75rem;
}

.about-card p {
    color: var(--text-secondary);
    margin: 0;
    font-size: 0.9375rem;
    line-height: 1.7;
}

/* ===== Contact Section ===== */
.contact {
    padding: var(--section-pad) 0;
    background: var(--primary-deep);
    position: relative;
    overflow: hidden;
}

/* Grain texture on contact section */
.contact::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 512 512' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.5'/%3E%3C/svg%3E");
    opacity: 0.05;
    mix-blend-mode: overlay;
    pointer-events: none;
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    gap: 80px;
    align-items: start;
    position: relative;
    z-index: 1;
}

.contact-text {
    color: var(--text-on-dark);
}

.contact-text h2 {
    color: var(--text-on-dark);
    font-size: 2.75rem;
    margin-bottom: 1rem;
    font-weight: 300;
}

.contact-text > p {
    font-size: 1.0625rem;
    color: var(--text-on-dark-muted);
    line-height: 1.85;
}

.contact-alt {
    margin-top: 2.5rem;
    padding-top: 2.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.contact-alt p {
    margin: 0;
    color: var(--text-on-dark-muted);
    font-size: 0.9375rem;
}

.contact-alt a {
    color: var(--accent-light);
    font-weight: 600;
    text-decoration: underline;
    text-decoration-color: rgba(212, 160, 94, 0.35);
    text-underline-offset: 3px;
    transition: all 0.2s ease;
}

.contact-alt a:hover {
    color: var(--accent-pale);
    text-decoration-color: var(--accent-pale);
}

/* Form */
.contact-form {
    background: var(--bg);
    padding: 44px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
}

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

.form-group label {
    display: block;
    font-weight: 500;
    margin-bottom: 8px;
    font-size: 0.875rem;
    color: var(--text-secondary);
    letter-spacing: 0.01em;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-family: var(--font-body);
    font-size: 0.9375rem;
    color: var(--text);
    background: var(--cream);
    transition: all 0.2s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-mid);
    background: var(--bg);
    box-shadow: 0 0 0 3px rgba(42, 90, 86, 0.1);
}

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

.contact-form .btn {
    width: 100%;
    padding: 16px;
    font-size: 0.9375rem;
}

/* ===== How It Works Section ===== */
.how-it-works {
    padding: var(--section-pad) 0;
    background: var(--teal-pale);
}

.how-it-works h2 {
    text-align: center;
    margin-bottom: 3.5rem;
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    max-width: 900px;
    margin: 0 auto;
}

.step {
    text-align: center;
    padding: 40px 28px;
    background: var(--bg);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-light);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.step:hover {
    border-color: var(--teal-muted);
    box-shadow: var(--shadow);
    transform: translateY(-3px);
}

.step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--primary);
    color: var(--text-on-dark);
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 400;
    margin-bottom: 20px;
}

.step h3 {
    font-size: 1.125rem;
    margin-bottom: 0.75rem;
}

.step p {
    color: var(--text-secondary);
    margin: 0;
    font-size: 0.9375rem;
    line-height: 1.7;
}

/* ===== Image Divider ===== */
.image-divider {
    height: 280px;
    background:
        linear-gradient(170deg, rgba(14, 35, 38, 0.7) 0%, rgba(26, 60, 64, 0.55) 100%),
        url('https://images.unsplash.com/photo-1500382017468-9049fed747ef?w=1920&q=80') center/cover no-repeat;
}

/* ===== Case Study Stats ===== */
.case-study-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
    margin-bottom: 4rem;
    padding: 32px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.case-study-stat {
    text-align: center;
    padding: 8px 16px;
    position: relative;
}

.case-study-stat:not(:last-child)::after {
    content: '';
    position: absolute;
    right: 0;
    top: 15%;
    height: 70%;
    width: 1px;
    background: rgba(255, 255, 255, 0.1);
}

.case-study-stat-number {
    display: block;
    font-family: var(--font-display);
    font-size: 2.25rem;
    font-weight: 400;
    color: var(--accent);
    line-height: 1.1;
    margin-bottom: 6px;
    letter-spacing: -0.02em;
}

.case-study-stat:last-child .case-study-stat-number {
    font-size: 1.5rem;
}

.case-study-stat-label {
    display: block;
    font-size: 0.75rem;
    color: var(--text-on-dark-muted);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-weight: 500;
}

/* Section label icon */
.section-label-icon {
    width: 18px;
    height: 18px;
    vertical-align: -3px;
    margin-right: 6px;
    stroke: var(--accent);
}

/* ===== Footer ===== */
.footer {
    padding: 44px 0;
    text-align: center;
    background: var(--cream);
    border-top: 1px solid var(--border-light);
}

.footer p {
    margin: 0;
    color: var(--text-muted);
    font-size: 0.875rem;
    letter-spacing: 0.01em;
}

/* ===== Scroll Reveal Animations ===== */
.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1),
                transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }

/* ===== Responsive ===== */
@media (max-width: 1000px) {
    .problem-grid {
        grid-template-columns: 1fr;
        max-width: 560px;
        margin-left: auto;
        margin-right: auto;
        margin-bottom: 3rem;
    }

    .services-grid {
        grid-template-columns: 1fr;
        max-width: 560px;
        margin-left: auto;
        margin-right: auto;
    }

    .service-card.primary {
        text-align: left;
        padding: 40px 32px;
    }

    .service-card.primary .service-icon {
        margin: 0 0 24px;
    }

    .service-card.primary p {
        max-width: none;
    }

    .case-study-grid {
        grid-template-columns: 1fr;
        gap: 32px;
        max-width: 640px;
        margin-left: auto;
        margin-right: auto;
    }

    .case-study-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px 0;
    }

    .case-study-stat:nth-child(2)::after {
        display: none;
    }

    .steps-grid {
        grid-template-columns: 1fr;
        max-width: 400px;
        margin-left: auto;
        margin-right: auto;
    }
}

@media (max-width: 900px) {
    :root {
        --section-pad: 88px;
        --section-pad-sm: 64px;
    }

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

    .contact-text {
        text-align: center;
    }

    .about-grid {
        grid-template-columns: 1fr;
        max-width: 560px;
        margin-left: auto;
        margin-right: auto;
    }

    .case-study h2 {
        font-size: 2.25rem;
    }
}

@media (max-width: 768px) {
    :root {
        --section-pad: 72px;
        --section-pad-sm: 56px;
    }

    h1 {
        font-size: 2.5rem;
    }

    h2 {
        font-size: 2rem;
    }

    .container {
        padding: 0 24px;
    }

    .hero {
        padding: 160px 0 100px;
        min-height: auto;
    }

    .hero h1 {
        font-size: 2.75rem;
    }

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

    /* Proof bar: 2x2 grid on tablet/phone */
    .proof-bar {
        padding: 40px 0;
    }

    .proof-bar-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 32px 0;
    }

    .proof-stat:not(:last-child)::after {
        display: none;
    }

    .proof-stat:nth-child(odd):not(:last-child)::after {
        display: block;
    }

    /* Only show vertical divider between columns, not rows */
    .proof-stat:nth-child(1)::after,
    .proof-stat:nth-child(3)::after {
        display: block;
    }

    .proof-stat:nth-child(2)::after,
    .proof-stat:nth-child(4)::after {
        display: none;
    }

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

    .proof-label {
        font-size: 0.75rem;
    }

    .contact-text h2 {
        font-size: 2.25rem;
    }

    .contact-form {
        padding: 28px;
    }

    .service-card {
        padding: 28px 24px;
    }

    .service-card.primary {
        padding: 28px 24px;
    }

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

    .problem-card {
        padding: 28px 24px;
    }

    .problem-card::before {
        left: 20px;
        top: 8px;
    }

    .about-number {
        font-size: 3.5rem;
    }

    .case-study h2 {
        font-size: 2rem;
    }

    .case-study-quote p {
        font-size: 1.125rem;
    }

    .case-study-stat-number {
        font-size: 1.75rem;
    }

    .image-divider {
        height: 200px;
    }

    .logo-mark-wrapper {
        height: 30px;
    }

    .logo-mark {
        height: 30px;
    }

    .logo-name {
        font-size: 1.0625rem;
    }

    .logo-sub {
        font-size: 0.5625rem;
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.75rem;
    }

    .hero {
        padding: 140px 0 80px;
    }

    .hero h1 {
        font-size: 2.125rem;
    }

    .proof-number {
        font-size: 1.875rem;
    }

    .btn {
        padding: 14px 32px;
    }

    .contact-form {
        padding: 24px 20px;
    }

    .case-study h2 {
        font-size: 1.75rem;
    }

    .case-study-quote::before {
        font-size: 4rem;
        top: 1.5rem;
    }
}
