/* ============================================
   AnthroSync v1 — Final
   IBM Plex Sans · Engineered · Confident
   ============================================ */

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

:root {
    --charcoal:     #2B2B2B;
    --copper:       #B35C2E;
    --copper-hover: #9E4F26;
    --off-white:    #F5F3EF;
    --warm-gray:    #D9D6CF;
    --slate:        #3F464A;
    --steel:        #55606A;
    --border:       #C9C3B9;
    --white:        #FFFFFF;
    --r:            10px;
}

html { scroll-behavior: smooth; }

/* Fixed nav offset for in-page links */
#problem,
#services,
#how,
#worth,
#direct,
#contact,
[id^="svc-"] {
    scroll-margin-top: 76px;
}

body {
    font-family: 'IBM Plex Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-weight: 400;
    color: var(--charcoal);
    line-height: 1.7;
    background: var(--off-white);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

/* ---------- Layout ---------- */

.w {
    max-width: 1060px;
    margin: 0 auto;
    padding-left: 32px;
    padding-right: 32px;
}

.tc { text-align: center; }

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

.nav {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 200;
    background: rgba(245, 243, 239, 0.96);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-bottom: 1px solid rgba(43, 43, 43, 0.1);
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.65) inset;
}

.nav-bar {
    max-width: 1060px;
    margin: 0 auto;
    padding: 16px 32px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.35rem;
    font-family: 'IBM Plex Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    text-decoration: none;
}
.logo-a {
    font-weight: 500;
    letter-spacing: -0.02em;
    color: #2B2B2B;
}
.logo-s {
    font-weight: 400;
    letter-spacing: -0.06em;
    margin-left: -0.06em;
    color: #B35C2E;
}

.nav-btn {
    font-size: 0.8125rem;
    font-weight: 500;
    letter-spacing: 0.2px;
    text-transform: uppercase;
    color: var(--copper);
    text-decoration: none;
    padding: 9px 22px;
    border: 1.5px solid var(--copper);
    border-radius: 6px;
    transition: all 0.2s;
}
.nav-btn:hover {
    background: var(--copper);
    color: var(--white);
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 8px;
    list-style: none;
}

.nav-item {
    position: relative;
}

.nav-link {
    display: block;
    padding: 8px 12px;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--charcoal);
    text-decoration: none;
    border-radius: 6px;
    transition: color 0.2s, background 0.2s;
}

.nav-link:hover {
    color: var(--copper);
    background: rgba(179, 92, 46, 0.08);
}

.nav-arrow {
    display: inline-block;
    margin-left: 4px;
    width: 0;
    height: 0;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-top: 5px solid currentColor;
    vertical-align: middle;
}

.nav-dropdown {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    margin-top: 4px;
    min-width: 200px;
    padding: 8px 0;
    background: var(--white);
    border: 1px solid rgba(43, 43, 43, 0.12);
    border-radius: var(--r);
    box-shadow: 0 4px 20px rgba(43, 43, 43, 0.1), 0 0 0 1px rgba(43, 43, 43, 0.04);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, visibility 0.2s ease;
    z-index: 100;
}

.nav-item:hover .nav-dropdown {
    opacity: 1;
    visibility: visible;
}

.nav-dropdown-link {
    display: block;
    padding: 10px 16px;
    font-size: 0.8125rem;
    color: var(--charcoal);
    text-decoration: none;
    transition: color 0.2s, background 0.2s;
}

.nav-dropdown-link:hover {
    color: var(--copper);
    background: rgba(179, 92, 46, 0.06);
}

.nav-dropdown-link[data-contact]:hover {
    color: var(--copper);
    background: rgba(179, 92, 46, 0.06);
}

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

.btn {
    display: inline-block;
    font-family: inherit;
    font-weight: 500;
    font-size: 0.9375rem;
    text-decoration: none;
    padding: 16px 36px;
    border-radius: 8px;
    transition: all 0.25s;
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: var(--copper);
    color: var(--white);
    box-shadow: 0 2px 12px rgba(179, 92, 46, 0.2);
}
.btn-primary:hover {
    background: var(--copper-hover);
    box-shadow: 0 6px 24px rgba(179, 92, 46, 0.3);
    transform: translateY(-2px);
}

.btn-ghost {
    background: transparent;
    color: var(--warm-gray);
    border: 1.5px solid rgba(217, 214, 207, 0.35);
}
.btn-ghost:hover {
    border-color: var(--warm-gray);
    color: var(--off-white);
}

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

.hero {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 140px 32px 72px;
    background: var(--charcoal);
}

.hero h1 {
    font-size: clamp(1.875rem, 4vw, 2.5rem);
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: -0.75px;
    color: #F0EDE8;
    margin-bottom: 16px;
    max-width: 560px;
    margin-left: auto;
    margin-right: auto;
}

.copper {
    color: var(--copper);
}

.hero-p {
    font-size: 1.0625rem;
    line-height: 1.7;
    color: var(--warm-gray);
    max-width: 640px;
    margin: 0 auto 32px;
}

.hero-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ================================
   SECTIONS
   ================================ */

.s { padding: 72px 0; }

.s-white { background: var(--white); }

.s-dark {
    background: var(--slate);
}

.s-intro {
    max-width: 640px;
    margin: 0 auto 40px;
    text-align: center;
}

.s h2 {
    font-size: clamp(1.625rem, 3vw, 2.125rem);
    font-weight: 600;
    line-height: 1.28;
    letter-spacing: -0.6px;
    color: var(--charcoal);
    margin-bottom: 16px;
}

.s-intro > p {
    font-size: 1.0625rem;
    line-height: 1.75;
    color: var(--steel);
    margin-bottom: 12px;
}

.s-intro > p:last-child { margin-bottom: 0; }

/* ================================
   EXPAND / COLLAPSE
   ================================ */

.expand {
    margin-top: -8px;
}

.expand-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: inherit;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--copper);
    cursor: pointer;
    list-style: none;
    padding: 8px 0;
    text-align: center;
    width: 100%;
    justify-content: center;
}

.expand-btn::-webkit-details-marker { display: none; }

.expand-btn:hover { color: var(--copper-hover); }

.expand-icon {
    display: inline-block;
    width: 0;
    height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 5px solid currentColor;
    transition: transform 0.2s;
}

.expand[open] .expand-icon {
    transform: rotate(180deg);
}

.expand-content {
    padding-top: 24px;
}

/* ================================
   TRIO — problem cards
   ================================ */

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

.trio-card {
    padding: 28px 24px;
    background: var(--off-white);
    border: 1px solid rgba(43, 43, 43, 0.1);
    border-radius: var(--r);
    transition: all 0.3s;
    box-shadow: 0 1px 2px rgba(43, 43, 43, 0.035);
}

.trio-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(43, 43, 43, 0.06);
}

.trio-card h3 {
    font-size: 1.0625rem;
    font-weight: 500;
    color: var(--charcoal);
    margin-bottom: 8px;
}

.trio-card p {
    font-size: 0.9375rem;
    color: var(--steel);
    line-height: 1.7;
}

/* Service cards: balanced 2×2, then one row of four on wide viewports */
.svc-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
    max-width: 440px;
    margin: 0 auto;
    width: 100%;
}

@media (min-width: 640px) {
    .svc-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        max-width: 840px;
        gap: 20px;
    }
}

@media (min-width: 1100px) {
    .svc-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        max-width: none;
        gap: 18px;
    }
}

/* ================================
   SERVICE CARDS
   ================================ */

.svc-card {
    padding: 28px 24px;
    background: var(--white);
    border: 1px solid rgba(43, 43, 43, 0.1);
    border-left: 3px solid var(--copper);
    border-radius: var(--r);
    text-align: left;
    transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
    box-shadow: 0 1px 2px rgba(43, 43, 43, 0.04), 0 4px 14px rgba(43, 43, 43, 0.04);
}

.svc-card:hover {
    border-color: rgba(179, 92, 46, 0.45);
    border-left-color: var(--copper);
    box-shadow: 0 2px 4px rgba(43, 43, 43, 0.06), 0 12px 28px rgba(43, 43, 43, 0.08);
    transform: translateY(-2px);
}

.svc-label {
    display: inline-block;
    font-size: 0.6875rem;
    font-weight: 600;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    color: var(--copper);
    margin-bottom: 12px;
}

.svc-card h3 {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--charcoal);
    margin-bottom: 8px;
    letter-spacing: -0.25px;
}

.svc-card p {
    font-size: 0.9375rem;
    color: var(--steel);
    line-height: 1.7;
}


/* ================================
   VALUE GRID
   ================================ */

.value-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.value-card {
    padding: 28px 24px;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--r);
    text-align: center;
    transition: all 0.3s;
}

.value-card:hover {
    border-color: var(--copper);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(43, 43, 43, 0.06);
}

.value-card h3 {
    font-size: 1.0625rem;
    font-weight: 500;
    color: var(--charcoal);
    margin-bottom: 8px;
}

.value-card p {
    font-size: 0.9375rem;
    color: var(--steel);
    line-height: 1.7;
}

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

.process {
    display: flex;
    flex-direction: column;
    gap: 0;
    max-width: 600px;
    margin: 0 auto;
}

.process-static {
    padding-top: 24px;
}

.proc-step {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    position: relative;
    padding-bottom: 32px;
}

.proc-step:last-child { padding-bottom: 0; }

.proc-step:not(:last-child)::after {
    content: '';
    position: absolute;
    left: 19px;
    top: 40px;
    bottom: 0;
    width: 2px;
    background: var(--border);
}

.proc-n {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    min-width: 40px;
    border-radius: 50%;
    border: 2px solid var(--copper);
    color: var(--copper);
    font-weight: 600;
    font-size: 0.8125rem;
    letter-spacing: 0.5px;
    background: var(--white);
    position: relative;
    z-index: 1;
}

.proc-body {
    padding-top: 6px;
}

.proc-step h3 {
    font-size: 1rem;
    font-weight: 500;
    color: var(--charcoal);
    margin-bottom: 4px;
}

.proc-step p {
    font-size: 0.875rem;
    color: var(--steel);
    line-height: 1.65;
}

/* ================================
   DIRECT (dark band)
   ================================ */

.direct-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: start;
}

.direct-left h2 {
    color: var(--off-white);
    margin-bottom: 0;
    position: sticky;
    top: 120px;
}

.direct-right p {
    font-size: 1rem;
    line-height: 1.75;
    color: var(--warm-gray);
    margin-bottom: 16px;
}

.direct-right p:last-child { margin-bottom: 0; }

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

.s-cta {
    padding: 80px 0;
}

.s-cta .w {
    text-align: center;
}

.s-cta h2 {
    font-size: clamp(1.75rem, 3.5vw, 2.25rem);
    margin-bottom: 16px;
}

.cta-headline {
    font-size: clamp(1.875rem, 4vw, 2.5rem);
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: -0.75px;
}

.cta-headline .copper {
    color: var(--copper);
}

.cta-p {
    font-size: 1.0625rem;
    line-height: 1.75;
    color: var(--steel);
    max-width: 520px;
    margin: 0 auto 32px;
}

/* ================================
   CONTACT MODAL
   ================================ */

.modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(43, 43, 43, 0.6);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal-overlay.open { display: flex; }

.modal {
    background: var(--white);
    border-radius: 14px;
    padding: 40px;
    width: 100%;
    max-width: 480px;
    position: relative;
    box-shadow: 0 24px 80px rgba(43, 43, 43, 0.24);
    animation: modal-in 0.22s ease;
}

@keyframes modal-in {
    from { opacity: 0; transform: translateY(16px) scale(0.98); }
    to   { opacity: 1; transform: translateY(0)    scale(1);    }
}

.modal-close {
    position: absolute;
    top: 16px; right: 16px;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--steel);
    font-size: 1.125rem;
    padding: 6px 8px;
    line-height: 1;
    border-radius: 6px;
    transition: color 0.2s, background 0.2s;
}
.modal-close:hover {
    color: var(--charcoal);
    background: var(--off-white);
}

.modal h2 {
    font-size: 1.375rem;
    font-weight: 600;
    color: var(--charcoal);
    letter-spacing: -0.4px;
    margin-bottom: 6px;
}

.modal-sub {
    font-size: 0.9375rem;
    color: var(--steel);
    margin-bottom: 28px;
    line-height: 1.6;
}

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

.form-group label {
    display: block;
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--charcoal);
    margin-bottom: 6px;
    letter-spacing: 0.1px;
}

.form-group label .opt {
    font-weight: 400;
    color: var(--steel);
}

.form-group input,
.form-group textarea {
    width: 100%;
    font-family: inherit;
    font-size: 0.9375rem;
    color: var(--charcoal);
    background: var(--off-white);
    border: 1.5px solid var(--border);
    border-radius: 8px;
    padding: 11px 14px;
    transition: border-color 0.2s, background 0.2s;
    outline: none;
    resize: none;
}

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

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--copper);
    background: var(--white);
}

.form-group textarea { height: 110px; }

.modal-submit {
    width: 100%;
    padding: 14px;
    font-size: 0.9375rem;
    margin-top: 4px;
}
.modal-submit:disabled {
    opacity: 0.65;
    cursor: not-allowed;
    transform: none !important;
    box-shadow: none !important;
}

.modal-error {
    font-size: 0.875rem;
    color: #c0392b;
    margin-top: 12px;
    text-align: center;
    display: none;
    line-height: 1.5;
}

.modal-success {
    text-align: center;
    padding: 16px 0;
}

.modal-success .success-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    background: #f0fdf4;
    border: 2px solid #bbf7d0;
    border-radius: 50%;
    margin-bottom: 20px;
    font-size: 1.375rem;
    color: #16a34a;
}

.modal-success h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--charcoal);
    margin-bottom: 10px;
    letter-spacing: -0.3px;
}

.modal-success p {
    font-size: 0.9375rem;
    color: var(--steel);
    margin-bottom: 28px;
    line-height: 1.65;
}

@media (max-width: 560px) {
    .modal { padding: 28px 20px; border-radius: 12px; }
}

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

.footer {
    padding: 32px;
    border-top: 1px solid var(--border);
    text-align: center;
}

.footer p {
    font-size: 0.8125rem;
    color: var(--steel);
}

.footer-follow {
    margin-top: 12px;
    margin-bottom: 8px;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--steel);
}

.footer-social {
    display: flex;
    justify-content: center;
    gap: 16px;
}

.footer-social a {
    color: var(--steel);
    transition: color 0.2s ease;
}

.footer-social a:hover {
    color: var(--copper);
}

.footer-icon {
    width: 24px;
    height: 24px;
    display: block;
}

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

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

    .direct-left h2 { position: static; }
}

@media (max-width: 768px) {
    .trio {
        grid-template-columns: 1fr;
        max-width: 440px;
        margin-left: auto;
        margin-right: auto;
    }

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


    .s { padding: 56px 0; }
    .s-cta { padding: 64px 0; }
}

@media (max-width: 560px) {
    .hero {
        padding: 110px 24px 56px;
    }

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

    .hero-actions {
        flex-direction: column;
        align-items: center;
    }
    .hero-actions .btn {
        width: 100%;
        max-width: 280px;
        text-align: center;
    }


    .s { padding: 48px 0; }
    .s-cta { padding: 56px 0; }

    .w { padding-left: 20px; padding-right: 20px; }
    .nav-bar { padding: 12px 20px; }

    .s-intro { margin-bottom: 32px; }

    .nav-menu { display: none; }
    .nav-btn { display: none; }
}
