/* ==========================================================================
   Modern layer. Loaded last. Changes layout, type and spacing only:
   the site's colours (green #4caf50, charcoal #212529, white, light grey)
   are unchanged.
   rem is fixed at 10px site-wide (62.5%), so sizes below use px / clamp().
   ========================================================================== */

:root {
    --green: #4caf50;
    --green-ink: #2e7d32;     /* same green, darker, for small text on white */
    --charcoal: #212529;
    --light: #f8f9fa;
    --line: #e6e9e7;
    --header-h: 118px;
    --wrap: 1120px;
}

html { font-size: 62.5% !important; scroll-behavior: smooth; }
body {
    font-family: Poppins, system-ui, sans-serif;
    font-size: 16px;
    line-height: 1.7;
    color: var(--charcoal);
    -webkit-font-smoothing: antialiased;
}
a { font-size: inherit; }
:focus-visible { outline: 3px solid var(--green); outline-offset: 2px; }
.dm-wrap { width: min(var(--wrap), 100% - 40px); margin-inline: auto; }

/* ---------- headings ---------- */
h1, h2, h3 { font-family: Montserrat, Poppins, sans-serif; letter-spacing: -.01em; color: var(--charcoal); }
h1 { display: block !important; font-size: clamp(30px, 4.4vw, 46px) !important; font-weight: 800; line-height: 1.15; position: static; color: var(--charcoal); }
h1::before { display: none !important; }
h2 { font-size: clamp(26px, 3.2vw, 36px); font-weight: 800; line-height: 1.2; }
.green-text { color: var(--green-ink); }

/* ---------- header ---------- */
header { box-shadow: 0 1px 0 var(--line); }
.logo-wrapper { height: 72px; }
.brand-logo { padding: 8px 0; }
.logo-wrapper img { height: 100%; width: auto; }
header .navbar { min-height: 46px; }
header .navbar .navbar-nav { gap: 2px; }
header .navbar .navbar-nav li { transition: background .2s; }
header .navbar .navbar-nav a {
    display: block; padding: 0 18px; font-size: 14px; line-height: 46px; letter-spacing: .02em; font-weight: 500;
}
header .navbar .navbar-nav li:hover { background: rgba(255,255,255,.08); }
header .navbar .navbar-nav .active { background: transparent; box-shadow: inset 0 -3px 0 var(--green); }
header .navbar .navbar-nav .active a { font-weight: 700; }
.navbar-toggler { color: #fff; font-size: 14px; }
.navbar-toggler > div:first-child { padding: 12px 8px !important; }
.header-padding { margin-top: var(--header-h) !important; }

/* ---------- hero slider ---------- */
.carousel-inner, .carousel-item { height: clamp(220px, 36vw, 560px) !important; }
.carousel-item::after { content: ""; position: absolute; inset: auto 0 0 0; height: 35%; background: linear-gradient(transparent, rgba(0,0,0,.28)); pointer-events: none; }
.carousel-control-prev, .carousel-control-next { width: 64px; z-index: 3; }
.slider-text { top: 36%; border-radius: 14px; padding: 14px 18px; box-shadow: 0 10px 30px rgba(0,0,0,.22); }
.slider-text img { width: clamp(120px, 22vw, 280px); max-height: 150px; object-fit: contain; }

/* ---------- facts bar under the slider ---------- */
.dm-facts { position: relative; z-index: 4; margin-top: -42px; }
.dm-facts-grid {
    display: grid; grid-template-columns: repeat(4, 1fr); background: #fff; border-radius: 14px;
    box-shadow: 0 12px 34px rgba(33,37,41,.14); overflow: hidden;
}
.dm-fact { display: flex; gap: 14px; align-items: center; padding: 20px 22px; }
.dm-fact + .dm-fact { border-left: 1px solid var(--line); }
.dm-fact i { font-size: 22px; color: var(--green); width: 28px; text-align: center; flex: none; }
.dm-fact strong { display: block; font-size: 14px; line-height: 1.3; }
.dm-fact span { display: block; font-size: 13px; color: #5c6670; line-height: 1.4; overflow-wrap: anywhere; }

/* ---------- sections ---------- */
.dm-section { padding: clamp(56px, 8vw, 104px) 0; }
.dm-section-light { background: var(--light); }
.dm-head { margin-bottom: clamp(28px, 4vw, 48px); max-width: 640px; }
.dm-head h2::after { content: ""; display: block; width: 56px; height: 4px; border-radius: 2px; background: var(--green); margin-top: 16px; }
.dm-about { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(24px, 6vw, 80px); align-items: start; }
.dm-about .dm-head { margin-bottom: 0; }
.dm-about p { font-size: 17px; max-width: 62ch; }
.dm-link { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: 15px; text-decoration: none; margin-top: 8px; }

.btn-primary, .btn-lg { border-radius: 10px; }
a.btn-lg, .btn-lg.btn-primary {
    display: inline-block; font-size: 15px !important; font-weight: 600; padding: 12px 26px; line-height: 1.4; color: #fff; text-decoration: none; margin-top: 8px !important;
}
.btn-primary { font-size: 15px; font-weight: 600; padding: 12px 26px; line-height: 1.4; }

/* ---------- team cards ---------- */
.dm-team { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 28px; }
.dm-team .col { margin: 0 !important; width: auto; max-width: none; padding: 0; }
.card-pink { border-radius: 16px !important; box-shadow: 0 6px 22px rgba(33,37,41,.09) !important; text-align: left; transition: box-shadow .25s; }
.card-pink:hover { box-shadow: 0 14px 34px rgba(33,37,41,.16) !important; }
.card-pink .card-shape { background: var(--light); }
.card-pink .card-img-top { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; padding: 0 !important; display: block; border-radius: 0; }
.custom-shape-divider-bottom-1634717805 svg { height: 34px; }
.card-pink .card-footer { padding: 6px 22px 22px !important; border-top: 0; background: #fff; }
.card-pink .card-footer p.fs-1 { font-size: 22px !important; font-weight: 700; font-family: Montserrat, sans-serif; margin: 0 0 2px; line-height: 1.3; }
.card-pink .card-footer p.text-muted { font-size: 14px; margin: 0; }
.line-bottom::after { display: none !important; }
.line-bottom { border: 0 !important; }

/* ---------- services band (charcoal) ---------- */
.dm-band { background: var(--charcoal); color: #dfe4e2; }
.dm-band h2 { color: #fff; }
.dm-band p { font-size: 17px; max-width: 60ch; }
.dm-band-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 6vw, 80px); align-items: center; }
.dm-chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.dm-chips li { margin: 0; padding: 9px 16px; border: 1px solid rgba(255,255,255,.22); border-radius: 999px; font-size: 14px; color: #fff; }
.dm-prose .dm-chips li, .dm-chips.is-light li { border-color: var(--line); background: #fff; color: var(--charcoal); }

/* ---------- inner pages ---------- */
.dm-pagehead { background: var(--light); border-bottom: 1px solid var(--line); padding: clamp(36px, 6vw, 64px) 0; }
.dm-pagehead p { margin: 10px 0 0; color: #5c6670; max-width: 60ch; }
.dm-prose { max-width: 70ch; }
.dm-prose p { font-size: 17px; margin: 0 0 1.3em; text-align: left; padding: 0 !important; }
.dm-prose p:first-child { font-size: 19px; }
.dm-split { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: clamp(28px, 6vw, 72px); align-items: start; }
.dm-split aside { position: sticky; top: calc(var(--header-h) + 24px); }

.dm-member { display: grid; grid-template-columns: 280px 1fr; gap: clamp(24px, 5vw, 64px); align-items: start; padding: clamp(36px, 5vw, 56px) 0; }
.dm-member + .dm-member { border-top: 1px solid var(--line); }
.dm-member h2 { font-size: clamp(22px, 2.6vw, 28px); margin: 0 0 14px; color: var(--green-ink); }
.dm-member p { font-size: 17px; max-width: 62ch; margin: 0; }

/* ---------- contact ---------- */
.dm-contact { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(24px, 5vw, 56px); align-items: start; }
.dm-card { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: clamp(22px, 3vw, 36px); box-shadow: 0 6px 22px rgba(33,37,41,.06); }
.dm-info { list-style: none; margin: 0; padding: 0; display: grid; gap: 22px; }
.dm-info li { display: flex; gap: 16px; align-items: flex-start; margin: 0; }
.dm-info i { width: 40px; height: 40px; border-radius: 10px; background: #e8f5e9; color: var(--green-ink); display: grid; place-items: center; font-size: 16px; flex: none; }
.dm-info small { display: block; font-size: 13px; color: #5c6670; line-height: 1.3; }
.dm-info a, .dm-info span.v { font-size: 16px; color: var(--charcoal); text-decoration: none; overflow-wrap: anywhere; font-weight: 500; }
.dm-info a:hover { color: var(--green-ink); text-decoration: underline; }
.dm-form .dm-field { margin-bottom: 18px; }
.dm-form label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 6px; }
.dm-form .form-control { font-size: 16px; padding: 12px 14px; border: 1px solid #c9d0cc; border-radius: 10px; background: #fff; min-height: 48px; box-shadow: none; width: 100%; }
.dm-form textarea.form-control { min-height: 150px; resize: vertical; }
.dm-form .form-control:focus { border-color: var(--green); box-shadow: 0 0 0 3px rgba(76,175,80,.28); outline: none; }
.dm-form .with-errors { font-size: 13px; margin-top: 6px; min-height: 0; }
.dm-form .btn-primary { min-height: 48px; padding: 0 30px; }

/* ---------- footer ---------- */
.dm-footer { background: var(--light); border-top: 1px solid var(--line); padding: clamp(40px, 6vw, 72px) 0 clamp(28px, 4vw, 44px); }
.dm-footer-grid { display: grid; grid-template-columns: 1.2fr 1fr 1.4fr; gap: clamp(28px, 5vw, 64px); }
.dm-footer h3 { font-size: 16px; font-weight: 700; margin: 0 0 16px; }
.dm-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.dm-footer li { margin: 0; }
.dm-footer a, .dm-footer .v { font-size: 15px; color: var(--charcoal); text-decoration: none; }
.dm-footer a:hover { color: var(--green-ink); text-decoration: underline; }
.dm-footer .dm-fcontact li { display: flex; gap: 12px; align-items: flex-start; }
.dm-footer .dm-fcontact i { color: var(--green-ink); width: 18px; text-align: center; margin-top: 5px; flex: none; }
.dm-footer p { font-size: 15px; max-width: 34ch; margin: 0; color: #5c6670; }
.dm-copy { background: var(--charcoal); padding: 18px 0; text-align: center; font-size: 14px; color: #fff; }
.dm-copy a { color: #9ad29d; font-size: inherit; }

/* ---------- responsive ---------- */
@media (max-width: 960px) {
    .dm-facts-grid { grid-template-columns: repeat(2, 1fr); }
    .dm-fact:nth-child(3) { border-left: 0; }
    .dm-fact:nth-child(n+3) { border-top: 1px solid var(--line); }
    .dm-about, .dm-band-grid, .dm-contact, .dm-split { grid-template-columns: 1fr; }
    .dm-split aside { position: static; max-width: 320px; }
    .dm-footer-grid { grid-template-columns: 1fr 1fr; }
    .dm-footer-grid > :first-child { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
    :root { --header-h: 108px; }
    .logo-wrapper { height: 48px; }
    .brand-logo { padding: 6px 0; }
    .navbar-toggler { margin: 0 !important; }
    header .navbar .navbar-nav a { line-height: 44px; }
    .dm-facts { margin-top: -28px; }
    .dm-facts-grid { grid-template-columns: 1fr; }
    .dm-fact + .dm-fact { border-left: 0; border-top: 1px solid var(--line); }
    .dm-fact { padding: 14px 18px; }
    .dm-member { grid-template-columns: 1fr; }
    .dm-member > :first-child { max-width: 260px; }
    .dm-footer-grid { grid-template-columns: 1fr; }
    .carousel-control-prev, .carousel-control-next { width: 40px; }
    .slider-text { top: 40%; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }

/* inner pages: tighter gap under the page title; readable form labels */
.dm-pagehead + .dm-section { padding-top: clamp(36px, 5vw, 64px); }
.dm-form label { color: var(--charcoal) !important; font-size: 14px !important; font-weight: 600 !important; line-height: 1.4 !important; margin: 0 0 6px !important; }
.dm-form .with-errors { color: #b3261e; }
