.ag-wrap {
    max-width: 1160px;
    margin-inline: auto;
    padding-inline: clamp(16px, 4vw, 40px);
    box-sizing: content-box;
}

.ag-header, .ag-contact, .ag-actions, .ag-call .ag-wrap, .ag-footer {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px 24px;
}

.ag-header, .ag-call .ag-wrap, .ag-footer {
    justify-content: space-between;
}

.ag-header {
    min-height: 94px;
    padding-block: 8px;
}

.ag-logo img {
    width: auto;
    height: 76px;
    display: block;
}

.ag-contact a {
    color: #233740;
    font-weight: 700;
    overflow-wrap: anywhere;
}

.ag-contact .ag-whatsapp, #ag-main a.ag-button {
    display: inline-block;
    padding: 10px 18px;
    border: 2px solid transparent;
    border-radius: 3px;
    color: #fff;
    background: #32683c;
    font-weight: 700;
    text-decoration: none;
}

.ag-contact .ag-whatsapp:hover, #ag-main a.ag-button:hover {
    background: #285232;
    color: #fff;
}

.ag-hero {
    position: relative;
    isolation: isolate;
    display: grid;
    place-items: center;
    min-height: clamp(340px, 45vw, 475px);
    background-color: #1d4049;
    color: #fff;
    text-align: center;
}

.ag-hero > img, .ag-hero::after {
    position: absolute;
    inset: 0;
    height: 100%;
    width: 100%;
    z-index: -1;
}

.ag-hero > img {
    object-fit: cover;
    object-position: center 32%;
}

.ag-hero::after {
    content: "";
    background: rgba(15, 32, 38, .77);
}

.ag-hero-content { padding-block: 48px; }
.ag-hero-content h1, .ag-hero-content p { color: #fff; }
.ag-hero-content h1 {
    margin: 0 0 16px;
    font-size: clamp(2.15rem, 5vw, 3.75rem);
    line-height: 1.12;
    font-weight: 800;
}

.ag-hero-content p {
    max-width: 690px;
    margin: 0 auto 24px;
    font-size: clamp(1.05rem, 2vw, 1.3rem);
    line-height: 1.55;
}

.ag-actions { justify-content: center; }

#ag-main a.ag-button-light {
    background: transparent;
    border-color: #fff;
}

.ag-band { padding-block: clamp(32px, 5.5vw, 66px); }
.ag-band-muted { background-color: #f3f6f5; }
.ag-reading { max-width: 820px; }
.ag-card-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
}

.ag-card {
    border: 1px solid #d5dfda;
    border-top: 3px solid #32683c;
    padding: 17px;
    background: #f9fbfa;
}

.ag-card h3 {
    font-size: 1.15rem;
    line-height: 1.35;
    margin: 0 0 10px;
}

.ag-card p, .ag-call p { margin: 0; }
.ag-more { margin: 16px 0 0; }
#ag-main a:not(.ag-button) { color: #23572e; text-decoration: underline; }
#ag-main a:not(.ag-button):hover { color: #153a1d; }
#ag-main a:focus-visible, .ag-header a:focus-visible, .ag-footer a:focus-visible {
    outline: 3px solid currentColor;
    outline-offset: 3px;
}

.ag-jump { display: flex; gap: 12px 22px; flex-wrap: wrap; }
.ag-guide > section { padding-block: 28px; scroll-margin-top: 84px; }
.ag-guide > section + section { border-top: 1px solid #d5dfda; }
.ag-call { background: #1d4049; color: #fff; }
.ag-call h2 { color: #fff; margin-top: 0; }
.ag-footer { align-items: flex-start; padding-block: 24px; }
.ag-footer p { margin: 0 0 8px; }
.ag-footer-brand { font-size: 1.1rem; font-weight: 700; }
.ag-footer nav { display: grid; gap: 8px; }
.ag-footer a { color: inherit; text-decoration: underline; }

@media (max-width: 900px) {
    .ag-card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 650px) {
    .ag-header { align-items: flex-start; padding-inline-end: 50px; }
    .ag-contact { column-gap: 12px; }
    .ag-card-grid { grid-template-columns: minmax(0, 1fr); }
    .ag-logo img { height: 64px; }
}

@media (max-width: 340px) {
    .ag-header { padding-inline-end: 45px; }
    .ag-contact .ag-whatsapp { padding-inline: 8px; }
}

/* The six areas fit into two balanced rows on desktop. */
@media (min-width: 901px) {
    .ag-card-grid-six { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
