/* CIDES header consolidation + serious readability pass */
:root {
    --cides-reading: #111111;
    --cides-reading-muted: #2f352f;
}

/* One clean header row: logo -> navigation -> contacts -> single quote CTA. */
.cides-df-header {
    position: sticky;
    top: 0;
    z-index: 999;
    background: #ffffff;
    border-bottom: 1px solid #e5e8e3;
    box-shadow: 0 8px 28px rgba(13, 64, 28, 0.07);
}
.admin-bar .cides-df-header { top: 32px; }
.cides-df-header .cides-topbar { border: 0; background: #fff; }
.cides-df-header .cides-container { width: min(1540px, calc(100% - 56px)); }
.cides-df-header .cides-topbar__inner {
    min-height: 112px;
    display: grid;
    grid-template-columns: minmax(245px, 285px) minmax(430px, 1fr) auto auto;
    align-items: center;
    gap: 30px;
}
.cides-df-header .cides-topbar__brand {
    min-width: 0;
    display: flex;
    align-items: center;
}
.cides-df-header .cides-topbar__brand .cides-brand__image {
    display: block;
    width: auto;
    height: 82px;
    max-width: 285px;
    object-fit: contain;
}
.cides-df-header .cides-primary-nav { margin: 0; min-width: 0; }
.cides-df-header .cides-menu {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: nowrap;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}
.cides-df-header .cides-menu a {
    display: block;
    padding: 16px 10px;
    color: #172018;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.25;
    letter-spacing: 0.005em;
    text-decoration: none;
    white-space: nowrap;
}
.cides-df-header .cides-menu a:hover,
.cides-df-header .cides-menu .current-menu-item > a,
.cides-df-header .cides-menu .current-menu-ancestor > a {
    color: #0f5a28;
}
.cides-df-header .cides-menu .sub-menu {
    top: calc(100% - 4px);
    min-width: 230px;
    padding: 10px;
    border: 1px solid #dfe5de;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 18px 45px rgba(13, 64, 28, .12);
}
.cides-df-header .cides-menu .sub-menu a {
    padding: 12px 14px;
    font-size: 15px;
    white-space: normal;
}
.cides-df-header .cides-topbar__contacts {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 20px;
    min-width: max-content;
}
.cides-df-header .cides-topbar__contacts a,
.cides-df-header .cides-topbar__contacts > span {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #151a15;
    text-decoration: none;
}
.cides-df-header .cides-topbar__contacts .cides-icon {
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    border-radius: 50%;
    background: #f7c52c;
    color: #0d401c;
}
.cides-df-header .cides-topbar__contacts .cides-icon svg { width: 18px; height: 18px; }
.cides-df-header .cides-topbar__contact-copy { display: grid; gap: 2px; }
.cides-df-header .cides-topbar__contact-copy small {
    color: #596259;
    font-size: 11px;
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: .07em;
    text-transform: uppercase;
}
.cides-df-header .cides-topbar__contact-copy strong {
    color: #111;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.25;
}
.cides-df-header .cides-topbar__quote {
    min-height: 48px;
    padding: 12px 18px;
    font-size: 15px;
    font-weight: 700;
    white-space: nowrap;
}
.cides-df-header .cides-menu-toggle { display: none; }

/* Header adaptation without bringing back a duplicate row. */
@media (max-width: 1400px) {
    .cides-df-header .cides-container { width: min(1320px, calc(100% - 40px)); }
    .cides-df-header .cides-topbar__inner {
        grid-template-columns: minmax(220px, 250px) minmax(390px, 1fr) auto auto;
        gap: 20px;
    }
    .cides-df-header .cides-topbar__brand .cides-brand__image { height: 72px; max-width: 250px; }
    .cides-df-header .cides-menu a { padding-inline: 7px; font-size: 15px; }
    .cides-df-header .cides-topbar__contacts { gap: 14px; }
    .cides-df-header .cides-topbar__contacts > span { display: none; }
}

@media (max-width: 1120px) {
    .cides-df-header .cides-topbar__inner {
        min-height: 94px;
        grid-template-columns: minmax(210px, 1fr) auto auto;
        gap: 14px;
        position: relative;
    }
    .cides-df-header .cides-topbar__brand .cides-brand__image { height: 70px; max-width: 235px; }
    .cides-df-header .cides-menu-toggle {
        display: grid;
        place-items: center;
        width: 48px;
        height: 48px;
        order: 2;
    }
    .cides-df-header .cides-primary-nav {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        display: none;
        padding: 12px;
        border: 1px solid #e1e6df;
        border-radius: 0 0 16px 16px;
        background: #fff;
        box-shadow: 0 20px 45px rgba(13, 64, 28, .12);
    }
    .cides-menu-open .cides-df-header .cides-primary-nav { display: block; }
    .cides-df-header .cides-menu { display: grid; gap: 2px; }
    .cides-df-header .cides-menu a { padding: 13px 14px; font-size: 16px; }
    .cides-df-header .cides-menu .sub-menu {
        position: static;
        visibility: visible;
        opacity: 1;
        transform: none;
        display: block;
        box-shadow: none;
        border: 0;
        padding: 0 0 0 16px;
    }
    .cides-df-header .cides-topbar__contacts { display: none; }
    .cides-df-header .cides-topbar__quote { order: 3; }
}

@media (max-width: 640px) {
    .admin-bar .cides-df-header { top: 46px; }
    .cides-df-header .cides-container { width: min(100% - 24px, 620px); }
    .cides-df-header .cides-topbar__inner {
        min-height: 86px;
        grid-template-columns: minmax(0, 1fr) auto auto;
        gap: 8px;
    }
    .cides-df-header .cides-topbar__brand .cides-brand__image { height: 62px; max-width: 205px; }
    .cides-df-header .cides-menu-toggle { width: 44px; height: 44px; }
    .cides-df-header .cides-topbar__quote {
        min-height: 44px;
        padding: 10px 13px;
        font-size: 14px;
    }
    .cides-df-header .cides-topbar__quote .cides-df-arrow { display: none; }
}

/* Readability overrides for the DonalFarm-inspired homepage. */
.cides-df-home { color: var(--cides-reading); }
.cides-df-home p,
.cides-df-home li,
.cides-df-home .cides-df-about__copy > p,
.cides-df-home .cides-df-services__intro p,
.cides-df-home .cides-df-heading p {
    color: var(--cides-reading-muted);
    font-size: 18px;
    font-weight: 500;
    line-height: 1.72;
}
.cides-df-home h1,
.cides-df-home h2,
.cides-df-home h3,
.cides-df-home h4 { font-weight: 700; }
.cides-df-home .cides-df-kicker {
    font-size: 14px;
    font-weight: 700;
    letter-spacing: .08em;
}
.cides-df-home .cides-df-hero__lead {
    font-size: 19px;
    font-weight: 500;
    line-height: 1.7;
}
.cides-df-home .cides-df-btn {
    min-height: 48px;
    padding: 12px 20px;
    font-size: 16px;
    font-weight: 700;
}
.cides-df-home .cides-df-feature h3 { font-size: 18px; font-weight: 700; }
.cides-df-home .cides-df-feature p {
    color: rgba(255,255,255,.9);
    font-size: 15px;
    font-weight: 500;
    line-height: 1.58;
}
.cides-df-home .cides-df-list span {
    color: #202820;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.5;
}
.cides-df-home .cides-df-impact-item span {
    color: #3f4a40;
    font-size: 13px;
    font-weight: 700;
}
.cides-df-home .cides-df-service-card h3 { font-size: 20px; font-weight: 700; }
.cides-df-home .cides-df-service-card p {
    color: rgba(255,255,255,.92);
    font-size: 15px;
    font-weight: 500;
    line-height: 1.58;
}
.cides-df-home .cides-df-service-card button {
    color: #fff;
    font-size: 15px;
    font-weight: 700;
}
.cides-df-home .cides-df-health__icon strong { font-size: 14px; font-weight: 700; }
.cides-df-home .cides-df-health__icon small { font-size: 13px; color: #555f56; font-weight: 500; }
.cides-df-home .cides-df-wide-cta__card p,
.cides-df-home .cides-df-projects p,
.cides-df-home .cides-df-brown-cta p,
.cides-df-home .cides-df-image-cta p {
    font-size: 16px;
    font-weight: 500;
    line-height: 1.65;
}

/* Footer logo gets the same larger treatment. */
.cides-site-footer .cides-brand--footer .cides-brand__image {
    width: auto;
    max-width: 285px;
    max-height: 82px;
}
.cides-site-footer p,
.cides-site-footer li,
.cides-site-footer a {
    font-size: 16px;
    line-height: 1.65;
}
