/* CIDES global typography — Quicksand, serious reading scale and strong contrast */
:root {
    --cides-font-sans: "Quicksand", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    --cides-text: #111111;
    --cides-muted: #303630;
    --df-ink: #101510;
    --df-muted: #343b35;
}

html,
body,
button,
input,
select,
textarea,
h1,
h2,
h3,
h4,
h5,
h6,
p,
a,
li,
label,
small,
strong,
blockquote,
figcaption,
table,
.cides-site-header,
.cides-site-footer,
.cides-btn,
.cides-button,
.cides-card,
.cides-article,
.cides-quote-form,
.cides-news-card,
.cides-product-card,
.cides-team-card,
.cides-testimonial,
.wp-block,
.wp-element-button {
    font-family: var(--cides-font-sans);
}

html { font-size: 16px; }

body {
    color: var(--cides-text);
    font-size: 18px;
    font-weight: 500;
    line-height: 1.75;
    letter-spacing: 0.003em;
}

p {
    margin-top: 0;
    margin-bottom: 1.35em;
}

li { line-height: 1.7; }

h1,
h2,
h3,
h4,
h5,
h6 {
    color: #101510;
    font-weight: 700;
}

strong,
b { font-weight: 700; }

/* Keep ordinary reading copy comfortably dark on light surfaces. */
.cides-home,
.cides-page,
.cides-article,
.cides-contact,
.cides-gallery-page,
.cides-news-page,
.cides-product-single,
.cides-team-single {
    color: var(--cides-text);
}

.cides-article p,
.cides-article li,
.cides-contact p,
.cides-contact li,
.cides-gallery-page p,
.cides-news-page p,
.cides-product-single p,
.cides-team-single p {
    font-size: 18px;
    font-weight: 500;
    line-height: 1.75;
}

input,
select,
textarea,
button {
    font-size: 17px;
    font-weight: 500;
}

label { font-weight: 600; }

/* Preserve high-contrast light text where the design intentionally uses dark panels. */
.cides-df-projects,
.cides-df-projects p,
.cides-df-projects a,
.cides-df-image-cta,
.cides-df-image-cta p,
.cides-df-brown-cta,
.cides-df-brown-cta p,
.cides-df-hero,
.cides-df-hero p {
    color: inherit;
}

/* The supplied full-colour logo remains untouched; a white plate keeps it legible in the dark footer. */
.cides-brand--footer {
    width: fit-content;
    padding: 10px 14px;
    border-radius: 12px;
    background: #ffffff;
}

.cides-brand--footer .cides-brand__image {
    width: auto;
    max-width: 285px;
    max-height: 82px;
    object-fit: contain;
}

/* Footer: explicit contrast, generous rhythm and icon-led navigation. */
body .cides-site-footer {
    position: relative;
    overflow: visible;
    background: #0c3f1c;
    color: #f7fff8;
    font-size: 17px;
    font-weight: 500;
}

body .cides-site-footer::before {
    content: "";
    position: absolute;
    top: -13px;
    left: 0;
    right: 0;
    height: 20px;
    background: #0c3f1c;
    clip-path: polygon(0 45%,5% 30%,10% 46%,15% 34%,20% 48%,25% 32%,30% 45%,35% 31%,40% 46%,45% 29%,50% 45%,55% 31%,60% 47%,65% 32%,70% 44%,75% 29%,80% 46%,85% 32%,90% 48%,95% 31%,100% 44%,100% 100%,0 100%);
}

body .cides-site-footer .cides-df-footer-cta {
    position: relative;
    z-index: 3;
    width: min(760px, calc(100% - 40px));
    min-height: 92px;
    margin: -46px auto 0;
    padding: 18px 22px;
    border-radius: 999px;
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 16px;
    background: #f7c52c;
    color: #12351c;
    box-shadow: 0 18px 45px rgba(0,0,0,.18);
}

.cides-df-footer-cta__icon,
.cides-footer-heading-icon,
.cides-footer-link-icon,
.cides-footer-service-icon,
.cides-footer-contact-icon,
.cides-footer-primary-action__icon {
    display: inline-grid;
    place-items: center;
    flex: 0 0 auto;
}

.cides-df-footer-cta__icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: #0c3f1c;
    color: #fff;
}

.cides-df-footer-cta__icon svg,
.cides-footer-heading-icon svg,
.cides-footer-link-icon svg,
.cides-footer-service-icon svg,
.cides-footer-contact-icon svg,
.cides-footer-primary-action__icon svg,
.cides-footer-primary-action__arrow svg,
.cides-footer-directions svg,
.cides-footer-bottom svg,
.cides-df-footer-cta button svg {
    width: 1em;
    height: 1em;
    fill: currentColor;
}

.cides-df-footer-cta__copy {
    display: grid;
    gap: 2px;
}

body .cides-site-footer .cides-df-footer-cta__copy small {
    color: #33513a;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
}

body .cides-site-footer .cides-df-footer-cta__copy strong {
    color: #12351c;
    font-size: 18px;
    line-height: 1.25;
}

body .cides-site-footer .cides-df-footer-cta button {
    min-height: 52px;
    padding: 12px 20px;
    border: 0;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    gap: 9px;
    background: #fff;
    color: #0c3f1c;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: transform .2s ease, background .2s ease;
}

body .cides-site-footer .cides-df-footer-cta button:hover,
body .cides-site-footer .cides-df-footer-cta button:focus-visible {
    transform: translateY(-2px);
    background: #f6fff8;
}

body .cides-site-footer .cides-footer-grid {
    display: grid;
    grid-template-columns: 1.2fr .85fr 1fr 1.2fr;
    gap: 52px;
    padding-top: 92px;
    padding-bottom: 64px;
}

body .cides-site-footer h2 {
    margin: 0 0 24px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: #ffffff;
    font-size: 19px;
    font-weight: 700;
    line-height: 1.25;
}

.cides-footer-heading-icon {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: #f7c52c;
    color: #0c3f1c;
    font-size: 16px;
}

body .cides-site-footer .cides-footer-brand > p {
    max-width: 340px;
    margin: 24px 0 26px;
    color: #dcecdf;
    font-size: 17px;
    font-weight: 500;
    line-height: 1.75;
}

.cides-footer-primary-action {
    width: fit-content;
    min-height: 52px;
    padding: 10px 16px 10px 10px;
    border: 1px solid rgba(255,255,255,.46);
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: transparent;
    color: #ffffff;
    font-weight: 700;
    cursor: pointer;
    transition: background .2s ease, border-color .2s ease, color .2s ease;
}

.cides-footer-primary-action__icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: #f7c52c;
    color: #0c3f1c;
}

.cides-footer-primary-action__arrow {
    display: inline-grid;
    place-items: center;
    margin-left: 3px;
    color: #f7c52c;
}

.cides-footer-primary-action:hover,
.cides-footer-primary-action:focus-visible {
    border-color: #f7c52c;
    background: #f7c52c;
    color: #0c3f1c;
}

.cides-footer-primary-action:hover .cides-footer-primary-action__icon,
.cides-footer-primary-action:focus-visible .cides-footer-primary-action__icon {
    background: #0c3f1c;
    color: #fff;
}

body .cides-site-footer .cides-footer-links,
body .cides-site-footer .cides-footer-contact {
    display: grid;
    gap: 13px;
    margin: 0;
    padding: 0;
    list-style: none;
}

body .cides-site-footer .cides-footer-links li,
body .cides-site-footer .cides-footer-contact li {
    margin: 0;
    color: #dcecdf;
    line-height: 1.55;
}

body .cides-site-footer .cides-footer-links a {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #eef9f0;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.45;
    text-decoration: none;
    transition: color .18s ease, transform .18s ease;
}

.cides-footer-link-icon {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: rgba(247,197,44,.14);
    color: #f7c52c;
    font-size: 12px;
}

.cides-footer-service-icon {
    width: 29px;
    height: 29px;
    border-radius: 8px;
    background: rgba(247,197,44,.13);
    color: #f7c52c;
    font-size: 15px;
}

body .cides-site-footer .cides-footer-links--solutions a {
    gap: 11px;
}

body .cides-site-footer .cides-footer-links a:hover,
body .cides-site-footer .cides-footer-links a:focus-visible {
    color: #f7c52c;
    transform: translateX(3px);
}

body .cides-site-footer .cides-footer-contact li {
    display: grid;
    grid-template-columns: 36px 1fr;
    align-items: start;
    gap: 11px;
    color: #dcecdf;
    font-size: 16px;
    font-weight: 500;
}

.cides-footer-contact-icon {
    width: 36px;
    height: 36px;
    margin-top: 1px;
    border-radius: 50%;
    background: #f7c52c;
    color: #0c3f1c;
    font-size: 16px;
}

body .cides-site-footer .cides-footer-contact a {
    color: #ffffff;
    font-weight: 600;
    text-decoration: none;
}

body .cides-site-footer .cides-footer-contact a:hover,
body .cides-site-footer .cides-footer-contact a:focus-visible {
    color: #f7c52c;
}

body .cides-site-footer .cides-footer-directions {
    width: fit-content;
    margin-top: 20px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #f7c52c;
    font-size: 16px;
    font-weight: 700;
    text-decoration: none;
}

body .cides-site-footer .cides-footer-directions:hover,
body .cides-site-footer .cides-footer-directions:focus-visible {
    color: #ffffff;
}

body .cides-site-footer .cides-footer-bottom {
    border-top: 1px solid rgba(255,255,255,.15);
    background: rgba(0,0,0,.08);
}

body .cides-site-footer .cides-footer-bottom__inner {
    min-height: 72px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

body .cides-site-footer .cides-footer-bottom p {
    margin: 0;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #cfe2d3;
    font-size: 15px;
    font-weight: 500;
}

body .cides-site-footer .cides-footer-bottom p:last-child {
    color: #e9f5eb;
}

body .cides-site-footer .cides-footer-bottom p:last-child svg {
    color: #f7c52c;
}

@media (max-width: 1100px) {
    body .cides-site-footer .cides-footer-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 42px 50px;
    }
}

@media (max-width: 760px) {
    body .cides-site-footer .cides-df-footer-cta {
        width: calc(100% - 28px);
        margin-top: -32px;
        padding: 18px;
        border-radius: 24px;
        grid-template-columns: auto 1fr;
    }

    body .cides-site-footer .cides-df-footer-cta button {
        grid-column: 1 / -1;
        width: 100%;
    }

    body .cides-site-footer .cides-footer-grid {
        grid-template-columns: 1fr;
        gap: 38px;
        padding-top: 72px;
        padding-bottom: 44px;
    }

    body .cides-site-footer .cides-footer-bottom__inner {
        padding: 20px 0;
        flex-direction: column;
        align-items: flex-start;
        justify-content: center;
    }
}

/* Preserve monospaced semantics for technical text. */
code,
pre,
kbd,
samp {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
    font-weight: 400;
}
