:root {
    --gs-navy: #102d45;
    --gs-navy-deep: #0b2033;
    --gs-green: #217a59;
    --gs-green-deep: #16583f;
    --gs-lime: #c8e58b;
    --gs-paper: #f6f8f5;
    --gs-ink: #172b3b;
    --gs-muted: #647483;
    --gs-line: #e0e7e5;
    --gs-white: #fff;
    --gs-container: 1180px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--gs-ink); background: #fff; font-family: Inter, "Segoe UI", Arial, sans-serif; line-height: 1.65; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; }
button, input, textarea, select { font: inherit; }
.site-container { width: min(var(--gs-container), calc(100% - 48px)); margin-inline: auto; }
.topbar { background: var(--gs-navy-deep); color: #dce7e9; font-size: 11px; letter-spacing: .035em; }
.topbar-inner { min-height: 36px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.topbar-note { color: #c8e58b; }
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.97); border-bottom: 1px solid var(--gs-line); backdrop-filter: blur(14px); }
.nav-wrap { min-height: 88px; display: flex; align-items: center; justify-content: space-between; gap: 30px; }
.brand { display: inline-flex; align-items: center; gap: 12px; min-width: 0; }
.brand img { display: block; width: 57px; height: 57px; object-fit: contain; }
.brand-copy { display: flex; flex-direction: column; line-height: 1.1; }
.brand-copy strong { color: var(--gs-navy); font-size: 22px; font-weight: 850; letter-spacing: -.055em; }
.brand-copy small { margin-top: 6px; color: var(--gs-green); font-size: 9px; font-weight: 800; letter-spacing: .13em; }
.nav-links { display: flex; align-items: center; gap: 29px; font-size: 13px; font-weight: 700; }
.nav-links > a:not(.button) { color: #445668; transition: color .18s ease; }
.nav-links > a:not(.button):hover { color: var(--gs-green); }
.button { min-height: 48px; display: inline-flex; justify-content: center; align-items: center; gap: 15px; padding: 12px 20px; border: 1px solid transparent; border-radius: 4px; font-size: 12px; font-weight: 800; letter-spacing: .01em; transition: transform .2s ease, background .2s ease, border-color .2s ease; }
.button:hover { transform: translateY(-2px); }
.button-primary { color: #fff; background: var(--gs-green); border-color: var(--gs-green); }
.button-primary:hover { background: var(--gs-green-deep); border-color: var(--gs-green-deep); }
.nav-cta { min-height: 43px; padding: 10px 16px; }
.button-lime { color: var(--gs-navy-deep); background: var(--gs-lime); border-color: var(--gs-lime); }
.button-lime:hover { background: #d7efa5; border-color: #d7efa5; }
.button-ghost { color: #fff; border-color: rgba(255,255,255,.36); background: rgba(255,255,255,.03); }
.button-ghost:hover { background: rgba(255,255,255,.1); }
.nav-toggle { display: none; }
.hero-section { position: relative; overflow: hidden; color: white; background: linear-gradient(115deg, #0b2033 0%, #102d45 54%, #174b48 100%); }
.hero-contours { position: absolute; inset: 0 0 0 35%; opacity: .17; pointer-events: none; background-image: repeating-radial-gradient(ellipse at 70% 44%, transparent 0 28px, #a8d3ad 29px 30px, transparent 31px 48px); mask-image: linear-gradient(90deg, transparent, #000 40%); }
.hero-layout { position: relative; display: grid; grid-template-columns: 1.05fr .95fr; align-items: center; gap: 56px; min-height: 610px; padding-block: 72px; }
.hero-copy { max-width: 620px; padding-block: 12px; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; color: #d0e4b4; font-size: 10px; font-weight: 800; letter-spacing: .15em; text-transform: uppercase; }
.eyebrow-dot { width: 7px; height: 7px; background: var(--gs-lime); border-radius: 50%; box-shadow: 0 0 0 5px #c8e58b20; }
.hero-copy h1 { max-width: 670px; margin: 23px 0 21px; color: #fff; font-size: clamp(43px, 5vw, 66px); font-weight: 760; letter-spacing: -.055em; line-height: 1.07; }
.hero-copy h1 span { color: var(--gs-lime); }
.hero-description { max-width: 555px; margin: 0; color: #d0dce3; font-size: 16px; line-height: 1.85; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 29px; }
.hero-assurance { display: flex; align-items: center; gap: 10px; margin-top: 34px; color: #c5d4dc; font-size: 11px; }
.assurance-mark { display: grid; place-items: center; width: 21px; height: 21px; color: var(--gs-lime); border: 1px solid #c8e58b7a; border-radius: 50%; font-size: 12px; }
.hero-art { min-width: 0; padding: 19px; border: 1px solid #ffffff26; border-radius: 7px; background: linear-gradient(135deg,#ffffff13,#ffffff04); box-shadow: 0 30px 80px #06172530; }
.art-topline, .art-footer { display: flex; justify-content: space-between; gap: 12px; color: #c1d2d7; font-size: 8px; font-weight: 800; letter-spacing: .14em; }
.art-topline { padding: 3px 2px 16px; }
.art-live { display: flex; align-items: center; gap: 7px; }
.art-live i { width: 6px; height: 6px; display: inline-block; background: var(--gs-lime); border-radius: 50%; }
.survey-plot { position: relative; overflow: hidden; min-height: 360px; background: #e8f0e8; border-radius: 3px; }
.plot-lines { display: block; width: 100%; height: 360px; }
.plot-tag { position: absolute; left: 14px; bottom: 14px; display: flex; align-items: center; gap: 10px; padding: 11px 14px; color: var(--gs-navy); background: rgba(255,255,255,.95); box-shadow: 0 5px 25px #102d4514; }
.plot-tag-icon { display: grid; place-items: center; width: 34px; height: 34px; background: #e4f0df; color: var(--gs-green); font-size: 23px; }
.plot-tag strong, .plot-tag small { display: block; }
.plot-tag strong { font-size: 10px; }
.plot-tag small { margin-top: 3px; color: #687c7a; font-size: 8px; }
.art-footer { padding: 15px 2px 2px; color: #afc3cc; }
.hero-bottom-rule { height: 4px; background: linear-gradient(90deg, var(--gs-lime) 0 22%, var(--gs-green) 22% 68%, #ffffff24 68%); }
.proof-strip { border-bottom: 1px solid var(--gs-line); background: #fff; }
.proof-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; align-items: center; gap: 25px; min-height: 128px; padding-block: 20px; }
.proof-heading strong { display: block; margin-top: 7px; color: var(--gs-navy); font-size: 15px; letter-spacing: -.02em; }
.section-label { display: inline-block; color: var(--gs-green); font-size: 9px; font-weight: 850; letter-spacing: .16em; }
.proof-item { display: flex; align-items: center; gap: 12px; }
.proof-icon { display: grid; place-items: center; flex: 0 0 38px; width: 38px; height: 38px; color: var(--gs-green); background: #edf4e7; font-size: 11px; font-weight: 850; }
.proof-item strong, .proof-item small { display: block; }
.proof-item strong { color: var(--gs-navy); font-size: 12px; }
.proof-item small { margin-top: 3px; color: var(--gs-muted); font-size: 10px; }
.section { padding-block: 92px; }
.services-section { background: #fff; }
.section-heading-row { display: flex; justify-content: space-between; align-items: end; gap: 40px; margin-bottom: 38px; }
.section-heading h2, .process-intro h2 { margin: 12px 0 0; color: var(--gs-navy); font-size: clamp(32px, 3.8vw, 46px); line-height: 1.15; letter-spacing: -.045em; }
.section-heading-side { max-width: 390px; }
.section-heading-side p, .process-intro > p { margin: 0 0 13px; color: var(--gs-muted); font-size: 13px; line-height: 1.85; }
.underlined-link { display: inline-flex; align-items: center; gap: 12px; padding-bottom: 5px; color: var(--gs-green); border-bottom: 1px solid #a9cbbb; font-size: 11px; font-weight: 850; }
.service-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--gs-line); border-left: 1px solid var(--gs-line); }
.service-card { min-height: 260px; display: flex; flex-direction: column; padding: 27px; border-right: 1px solid var(--gs-line); border-bottom: 1px solid var(--gs-line); background: #fff; transition: background .2s ease, box-shadow .2s ease; }
.service-card:hover { position: relative; z-index: 1; background: #fbfdf9; box-shadow: inset 0 3px 0 var(--gs-green), 0 8px 30px #102d450a; }
.service-card-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 23px; }
.service-number { color: #82918e; font-size: 9px; font-weight: 850; letter-spacing: .12em; }
.service-symbol { display: grid; place-items: center; width: 38px; height: 38px; color: var(--gs-green); background: #edf4e7; font-size: 23px; }
.service-card h3 { margin: 0 0 10px; color: var(--gs-navy); font-size: 17px; letter-spacing: -.025em; }
.service-card p { margin: 0 0 22px; color: var(--gs-muted); font-size: 11px; line-height: 1.85; }
.service-link { display: flex; justify-content: space-between; gap: 12px; margin-top: auto; color: var(--gs-green); font-size: 10px; font-weight: 850; }
.service-link b { font-size: 14px; }
.service-card-featured { background: var(--gs-paper); }
.process-section { background: var(--gs-paper); border-block: 1px solid var(--gs-line); }
.process-layout { display: grid; grid-template-columns: .78fr 1.22fr; gap: 90px; align-items: start; }
.process-intro > p { margin: 20px 0 24px; max-width: 380px; }
.process-steps { border-top: 1px solid #d7e0dc; }
.process-step { display: grid; grid-template-columns: 45px 1fr 24px; align-items: start; gap: 18px; padding: 23px 0; border-bottom: 1px solid #d7e0dc; }
.process-index { color: var(--gs-green); font-size: 11px; font-weight: 850; }
.process-step h3 { margin: 0 0 6px; color: var(--gs-navy); font-size: 15px; }
.process-step p { margin: 0; color: var(--gs-muted); font-size: 11px; line-height: 1.8; }
.step-arrow { color: #8ba29a; font-size: 17px; }
.closing-section { padding-block: 70px 85px; background: #fff; }
.closing-panel { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 35px; overflow: hidden; padding: 49px 54px; color: #fff; background: var(--gs-navy); }
.closing-decoration { position: absolute; top: -140px; right: 110px; width: 380px; height: 380px; border: 1px solid #ffffff16; border-radius: 50%; box-shadow: 0 0 0 45px #ffffff08, 0 0 0 90px #ffffff05; pointer-events: none; }
.closing-copy { position: relative; max-width: 650px; }
.section-label-light { color: var(--gs-lime); }
.closing-copy h2 { margin: 12px 0; font-size: clamp(29px, 3.5vw, 42px); line-height: 1.15; letter-spacing: -.045em; }
.closing-copy p { max-width: 570px; margin: 0; color: #d0dce3; font-size: 12px; }
.closing-panel > .button { position: relative; flex-shrink: 0; }
.site-footer { color: #d5e0e4; background: var(--gs-navy-deep); }
.footer-main { display: grid; grid-template-columns: 1.4fr .7fr 1fr; gap: 65px; padding-block: 55px 43px; }
.footer-brand .brand-copy strong { color: #fff; }
.footer-brand .brand-copy small { color: var(--gs-lime); }
.footer-brand img { width: 49px; height: 49px; }
.footer-about > p, .footer-main > div > p { max-width: 350px; margin: 17px 0 0; color: #aebfc8; font-size: 11px; line-height: 1.9; }
.footer-main h3 { margin: 5px 0 17px; color: #fff; font-size: 12px; }
.footer-main > div:not(:first-child) > a:not(.footer-cta) { display: block; margin: 10px 0; color: #bdcbd1; font-size: 11px; }
.footer-main a:hover { color: var(--gs-lime) !important; }
.footer-cta { display: inline-flex; align-items: center; gap: 14px; margin-top: 17px; color: var(--gs-lime); font-size: 11px; font-weight: 850; }
.footer-bottom { display: flex; justify-content: space-between; gap: 20px; padding-block: 19px; border-top: 1px solid #ffffff19; color: #8fa6b1; font-size: 9px; }
.site-messages { padding-top: 15px; }
.site-message { margin: 8px 0; padding: 13px 16px; border: 1px solid #cce5d3; background: #eff8f0; color: #16583f; font-size: 13px; }
.site-message.is-error { border-color: #f1c8c3; background: #fff2ef; color: #9c2d20; }

/* Shared styles for the existing Services, About and Contact pages. */
.page-hero { padding: 68px 0; color: #fff; background: linear-gradient(115deg, var(--gs-navy-deep), var(--gs-navy) 60%, #174b48); }
.page-hero .eyebrow { color: var(--gs-lime); }
.page-hero h1 { margin: 17px 0 12px; font-size: clamp(36px, 4.5vw, 52px); line-height: 1.1; letter-spacing: -.045em; }
.page-hero p { max-width: 700px; margin: 0; color: #d0dce3; font-size: 14px; }
.section-soft { background: var(--gs-paper); }
.section-head { max-width: 700px; margin-bottom: 35px; }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head h2, .split h2 { margin: 12px 0; color: var(--gs-navy); font-size: clamp(29px, 3.5vw, 42px); line-height: 1.2; letter-spacing: -.04em; }
.lead { color: var(--gs-muted); font-size: 14px; }
.cards { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 18px; }
.card { padding: 25px; border: 1px solid var(--gs-line); background: #fff; }
.card h3 { margin: 0 0 10px; color: var(--gs-navy); font-size: 17px; }
.card p { color: var(--gs-muted); font-size: 12px; }
.iconbox { display: grid; place-items: center; width: 44px; height: 44px; margin-bottom: 18px; color: var(--gs-green); background: #edf4e7; font-size: 21px; }
.text-link { color: var(--gs-green); font-size: 11px; font-weight: 850; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center; }
.feature-panel { display: flex; flex-direction: column; justify-content: space-between; min-height: 300px; padding: 30px; border: 1px solid var(--gs-line); background: var(--gs-paper); }
.feature-panel h3 { color: var(--gs-navy); }
.feature-panel .big { color: var(--gs-green); font-size: 45px; font-weight: 850; }
.checklist { padding-left: 0; list-style: none; }
.checklist li { margin: 11px 0; color: #445668; font-size: 12px; }
.checklist li::before { content: "âœ“"; margin-right: 10px; color: var(--gs-green); font-weight: 900; }
.cta { display: flex; justify-content: space-between; align-items: center; gap: 25px; padding: 36px; color: #fff; background: var(--gs-navy); }
.cta h2 { margin: 0 0 10px; font-size: 30px; }
.cta p { margin: 0; color: #d0dce3; font-size: 12px; }
.contact-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 35px; align-items: start; }
.contact-panel { margin-top: 20px; padding: 25px; background: var(--gs-paper); }
.contact-panel h3, .form-card h3 { color: var(--gs-navy); }
.form-card { padding: 28px; border: 1px solid var(--gs-line); background: #fff; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 17px; }
.field { display: flex; flex-direction: column; gap: 7px; }
.field.full { grid-column: 1 / -1; }
.field label { color: var(--gs-navy); font-size: 12px; font-weight: 750; }
.field input, .field select, .field textarea { width: 100%; min-height: 44px; padding: 11px 12px; border: 1px solid #d4dfda; border-radius: 3px; background: #fff; color: var(--gs-ink); }
.field textarea { min-height: 125px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid #c8e58b; border-color: var(--gs-green); }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; } }
@media (max-width: 950px) {
    .nav-wrap { min-height: 78px; }
    .nav-links { gap: 17px; }
    .hero-layout { grid-template-columns: 1fr .9fr; gap: 28px; min-height: 550px; }
    .hero-copy h1 { font-size: clamp(39px, 5vw, 55px); }
    .survey-plot, .plot-lines { min-height: 310px; height: 310px; }
    .proof-grid { grid-template-columns: repeat(2, minmax(0,1fr)); padding-block: 25px; }
    .process-layout { gap: 45px; }
    .footer-main { gap: 35px; }
}
@media (max-width: 720px) {
    .site-container { width: min(var(--gs-container), calc(100% - 32px)); }
    .topbar-inner { min-height: 34px; font-size: 9px; }
    .topbar-note { display: none; }
    .nav-wrap { position: relative; min-height: 76px; }
    .brand img { width: 48px; height: 48px; }
    .brand-copy strong { font-size: 19px; }
    .nav-toggle { display: flex; flex-direction: column; justify-content: center; gap: 5px; width: 43px; height: 43px; padding: 10px; border: 1px solid var(--gs-line); border-radius: 3px; background: #fff; cursor: pointer; }
    .nav-toggle span { display: block; width: 100%; height: 2px; background: var(--gs-navy); }
    .nav-links { position: absolute; top: calc(100% - 1px); left: -16px; right: -16px; display: none; align-items: stretch; gap: 0; padding: 10px 16px 18px; border-bottom: 1px solid var(--gs-line); background: #fff; box-shadow: 0 18px 25px #102d4510; }
    .nav-links.is-open { display: flex; flex-direction: column; }
    .nav-links > a:not(.button) { padding: 11px 4px; }
    .nav-links .nav-cta { margin-top: 8px; }
    .hero-layout { grid-template-columns: 1fr; gap: 35px; min-height: auto; padding-block: 55px 45px; }
    .hero-copy h1 { font-size: clamp(42px, 11vw, 60px); }
    .hero-description { font-size: 14px; }
    .hero-art { max-width: 550px; }
    .survey-plot, .plot-lines { min-height: 290px; height: 290px; }
    .proof-grid { gap: 22px 15px; }
    .proof-heading strong { font-size: 13px; }
    .proof-item { gap: 8px; }
    .proof-icon { flex-basis: 32px; width: 32px; height: 32px; }
    .proof-item small { font-size: 9px; }
    .section { padding-block: 62px; }
    .section-heading-row { display: block; margin-bottom: 28px; }
    .section-heading-side { margin-top: 20px; }
    .service-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
    .service-card { padding: 19px; min-height: 250px; }
    .service-card h3 { font-size: 15px; }
    .process-layout { grid-template-columns: 1fr; gap: 35px; }
    .closing-panel { align-items: flex-start; flex-direction: column; padding: 34px 26px; }
    .closing-decoration { right: -190px; }
    .footer-main { grid-template-columns: 1fr 1fr; gap: 28px; }
    .footer-about { grid-column: 1 / -1; }
    .contact-grid, .split { grid-template-columns: 1fr; }
    .cards { grid-template-columns: repeat(2, minmax(0,1fr)); }
}
@media (max-width: 460px) {
    .hero-copy h1 { font-size: 41px; }
    .hero-actions { align-items: stretch; flex-direction: column; }
    .hero-actions .button { width: 100%; }
    .hero-assurance { align-items: flex-start; font-size: 10px; }
    .hero-art { padding: 10px; }
    .survey-plot, .plot-lines { min-height: 245px; height: 245px; }
    .art-topline, .art-footer { font-size: 7px; }
    .plot-tag { left: 7px; bottom: 7px; padding: 7px 9px; }
    .plot-tag-icon { width: 27px; height: 27px; }
    .plot-tag strong { font-size: 9px; }
    .plot-tag small { font-size: 7px; }
    .proof-grid { grid-template-columns: 1fr 1fr; }
    .proof-heading { grid-column: 1 / -1; }
    .service-grid, .cards, .footer-main, .form-grid { grid-template-columns: 1fr; }
    .service-card { min-height: 220px; }
    .footer-about { grid-column: auto; }
    .footer-bottom { flex-direction: column; gap: 7px; }
    .page-hero { padding: 48px 0; }
    .cta { align-items: flex-start; flex-direction: column; padding: 25px; }
    .cta h2 { font-size: 25px; }
    .form-card { padding: 20px; }
    .field.full { grid-column: auto; }
}

/* GeoSurvey logo refinement */
.brand img {
    display: block;
    width: 62px;
    height: 62px;
    object-fit: contain;
    object-position: center;
    flex: 0 0 auto;
    background: transparent;
}

.footer-brand img {
    width: 54px;
    height: 54px;
}

@media (max-width: 720px) {
    .brand img {
        width: 50px;
        height: 50px;
    }
}


/* Fix public website edge-to-edge alignment */
html,
body {
    margin: 0;
    padding: 0;
    width: 100%;
    min-height: 100%;
}

body {
    overflow-x: hidden;
}

.site-header,
.site-topbar,
main,
footer {
    max-width: none;
}

/* Public-page layout repair: Services, About and Contact */
.page-hero > .site-container,
.section > .site-container,
.section-soft > .site-container {
    width: min(var(--gs-container), calc(100% - 48px));
    margin-inline: auto;
}

.page-hero {
    position: relative;
    isolation: isolate;
}

.page-hero h1,
.page-hero p {
    max-width: 820px;
}

.cards {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    align-items: stretch;
}

.cards > .card {
    min-width: 0;
    height: 100%;
    box-sizing: border-box;
}

.card p {
    color: var(--gs-muted);
    font-size: 12px;
    line-height: 1.85;
}

.split {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, .95fr);
    gap: 48px;
    align-items: center;
}

.contact-grid {
    display: grid;
    grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr);
    gap: 35px;
    align-items: start;
}

.form-card,
.contact-panel,
.feature-panel {
    min-width: 0;
    box-sizing: border-box;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px 16px;
}

.form-grid .full {
    grid-column: 1 / -1;
}

.field input,
.field select,
.field textarea {
    box-sizing: border-box;
    max-width: 100%;
}

@media (max-width: 900px) {
    .cards {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .split,
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 28px;
    }
}

@media (max-width: 600px) {
    .page-hero > .site-container,
    .section > .site-container,
    .section-soft > .site-container {
        width: calc(100% - 32px);
    }

    .cards,
    .form-grid {
        grid-template-columns: 1fr;
    }

    .form-grid .full {
        grid-column: auto;
    }
}

/* Final consistency pass for public inner pages */
.page-hero > .site-container,
.section > .site-container,
.section-soft > .site-container {
    max-width: var(--gs-container);
    margin-inline: auto;
}

.page-hero {
    padding-block: clamp(56px, 6vw, 82px);
}

.page-hero h1 {
    max-width: 850px;
    overflow-wrap: break-word;
}

.page-hero p {
    max-width: 700px;
}

.section > .site-container.split,
.section > .site-container.contact-grid {
    align-items: start;
}

.split > :first-child,
.contact-grid > :first-child {
    min-width: 0;
}

.split .feature-panel {
    align-self: stretch;
}

.contact-grid .form-card {
    width: 100%;
}

@media (max-width: 900px) {
    .page-hero {
        padding-block: 52px;
    }
}

/* Contact page polish */
.contact-grid {
    gap: clamp(28px, 4vw, 48px);
}

.contact-grid > :first-child > .lead {
    max-width: 54ch;
}

.contact-panel {
    border: 1px solid var(--gs-line);
    border-radius: 6px;
    line-height: 1.75;
}

.form-card {
    min-width: 0;
    border-radius: 6px;
    box-shadow: 0 12px 36px rgba(16, 45, 69, 0.055);
}

.form-card > h3 {
    margin-top: 0;
    margin-bottom: 6px;
}

.form-card .lead {
    margin-bottom: 24px;
}

.form-grid {
    align-items: start;
}

.field {
    min-width: 0;
}

.field input,
.field select,
.field textarea {
    min-width: 0;
    max-width: 100%;
    border-radius: 4px;
}

.field input::placeholder,
.field textarea::placeholder {
    color: #788795;
    opacity: 1;
}

.field input:focus-visible,
.field select:focus-visible,
.field textarea:focus-visible,
.field button:focus-visible {
    outline: 3px solid #c8e58b;
    outline-offset: 2px;
}

.field.full > button {
    width: 100%;
    justify-content: center;
    min-height: 50px;
}

@media (max-width: 600px) {
    .form-card {
        padding: 22px 18px;
    }

    .contact-panel {
        padding: 20px;
    }

    .contact-grid {
        gap: 28px;
    }
}

/* Footer logo contrast: preserve the original brand artwork */
.footer-brand img {
    padding: 4px;
    background: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 5px;
    object-fit: contain;
}

/* GeoSurvey public website: final responsive polish */
html {
    scroll-padding-top: 100px;
}

img,
svg,
video {
    max-width: 100%;
}

.site-container,
.site-container > *,
.hero-layout > *,
.contact-grid > *,
.split > * {
    min-width: 0;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 3px solid #c8e58b;
    outline-offset: 3px;
}

.service-card,
.cards > *,
.contact-panel,
.form-card {
    min-width: 0;
    overflow-wrap: anywhere;
}

.service-card,
.cards > * {
    height: 100%;
}

@media (max-width: 720px) {
    .site-container {
        width: calc(100% - 32px);
    }

    .section {
        padding-block: 48px;
    }

    .page-hero {
        padding-block: 44px;
    }

    .cards {
        gap: 14px;
    }

    .service-grid {
        gap: 14px;
    }

    .service-card {
        padding: 20px;
        min-height: 0;
    }

    .contact-grid,
    .split {
        gap: 24px;
    }

    .form-card {
        padding: 22px 18px;
    }

    .footer-main {
        row-gap: 24px;
    }

    .footer-bottom {
        gap: 10px;
        flex-wrap: wrap;
    }
}

@media (max-width: 460px) {
    .site-container {
        width: calc(100% - 28px);
    }

    .section {
        padding-block: 40px;
    }

    .page-hero {
        padding-block: 38px;
    }

    .service-card {
        padding: 18px;
    }

    .form-card {
        padding: 20px 15px;
    }

    .field input,
    .field select,
    .field textarea {
        font-size: 16px;
    }

    .footer-main {
        grid-template-columns: minmax(0, 1fr);
    }

    .footer-about {
        grid-column: auto;
    }

    .footer-bottom {
        align-items: flex-start;
        flex-direction: column;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
}


/* Homepage marketing upgrade: capabilities section */
.capabilities-section {
    background: var(--gs-paper);
}
.capability-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
    margin-top: 32px;
}
.capability-card {
    min-width: 0;
    padding: 22px;
    border: 1px solid var(--gs-line);
    background: #fff;
}
.capability-index {
    display: block;
    margin-bottom: 16px;
    color: var(--gs-green);
    font-size: 10px;
    font-weight: 850;
    letter-spacing: .12em;
}
.capability-visual {
    position: relative;
    overflow: hidden;
    height: 155px;
    margin-bottom: 21px;
    border: 1px solid #dbe5d8;
    background-color: #edf3e9;
}
.capability-field {
    background-image:
        repeating-radial-gradient(ellipse at 45% 50%, transparent 0 15px, #8eaf91 16px 17px, transparent 18px 28px);
}
.capability-contour {
    position: absolute;
    display: block;
    border: 1px solid #4b8b63;
    transform: rotate(-17deg);
}
.contour-one {
    left: 17%;
    top: 18%;
    width: 54%;
    height: 58%;
    border-radius: 42% 58% 35% 65%;
}
.contour-two {
    left: 31%;
    top: 30%;
    width: 34%;
    height: 35%;
    border-radius: 60% 40% 52% 48%;
}
.capability-point {
    position: absolute;
    width: 9px;
    height: 9px;
    border: 2px solid #fff;
    border-radius: 50%;
    background: var(--gs-green);
    box-shadow: 0 0 0 1px var(--gs-green);
}
.point-one { left: 17%; top: 23%; }
.point-two { left: 68%; top: 43%; }
.point-three { left: 45%; top: 76%; }
.capability-map {
    background-color: #eaf0e5;
    background-image:
        linear-gradient(30deg, transparent 47%, #b3c8ae 48%, #b3c8ae 49%, transparent 50%),
        linear-gradient(120deg, transparent 47%, #b3c8ae 48%, #b3c8ae 49%, transparent 50%);
    background-size: 48px 48px, 60px 60px;
}
.map-road {
    position: absolute;
    display: block;
    height: 9px;
    background: #fff;
    border: 1px solid #c3d0bf;
    transform-origin: center;
}
.road-one { width: 130%; left: -10%; top: 48%; transform: rotate(-22deg); }
.road-two { width: 115%; left: -8%; top: 55%; transform: rotate(36deg); }
.map-parcel {
    position: absolute;
    display: block;
    border: 2px solid #4d8a60;
    background: #bcd5b1a6;
    transform: rotate(-18deg);
}
.parcel-one { left: 22%; top: 18%; width: 28%; height: 42%; }
.parcel-two { left: 51%; top: 34%; width: 25%; height: 34%; }
.map-pin {
    position: absolute;
    left: 51%;
    top: 32%;
    width: 13px;
    height: 13px;
    border: 3px solid #fff;
    border-radius: 50% 50% 50% 0;
    background: var(--gs-green);
    transform: rotate(-45deg);
    box-shadow: 0 2px 8px #102d4533;
}
.capability-data {
    background-color: #102d45;
    background-image: linear-gradient(#ffffff0d 1px, transparent 1px), linear-gradient(90deg, #ffffff0d 1px, transparent 1px);
    background-size: 22px 22px;
}
.data-layer {
    position: absolute;
    display: block;
    width: 66%;
    height: 30%;
    left: 17%;
    border: 1px solid #b6d8a1;
    transform: skewY(-18deg) rotate(-8deg);
}
.layer-one { top: 19%; }
.layer-two { top: 35%; left: 22%; border-color: #6cb28b; }
.layer-three { top: 51%; left: 27%; border-color: #d3e7a2; }
.data-node {
    position: absolute;
    display: block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #d3e7a2;
}
.node-one { left: 29%; top: 28%; }
.node-two { left: 62%; top: 47%; }
.node-three { left: 44%; top: 67%; }
.capability-card h3 {
    margin: 0 0 9px;
    color: var(--gs-navy);
    font-size: 17px;
}
.capability-card p {
    margin: 0;
    color: var(--gs-muted);
    font-size: 12px;
    line-height: 1.8;
}
.capability-note {
    margin: 15px 0 0;
    color: var(--gs-muted);
    font-size: 11px;
}
.capability-cta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-top: 28px;
    padding-top: 22px;
    border-top: 1px solid var(--gs-line);
}
.capability-cta p {
    margin: 0;
    color: var(--gs-navy);
    font-size: 14px;
    font-weight: 700;
}
@media (max-width: 720px) {
    .capability-grid { grid-template-columns: 1fr; }
    .capability-visual { height: 175px; }
    .capability-cta { align-items: flex-start; flex-direction: column; gap: 10px; }
}


/* GeoSurvey portfolio-style capability showcase */
.showcase-section {
    padding: clamp(3.5rem, 7vw, 6.5rem) 1.25rem;
    background: #f5f8f7;
    color: #172c35;
}
.showcase-inner {
    width: min(1160px, 100%);
    margin-inline: auto;
}
.showcase-heading {
    max-width: 760px;
    margin: 0 auto 2.5rem;
    text-align: center;
}
.showcase-heading .section-eyebrow {
    display: inline-block;
    margin-bottom: .8rem;
    color: #16866d;
    font-size: .76rem;
    font-weight: 800;
    letter-spacing: .16em;
}
.showcase-heading h2 {
    margin: 0 0 1rem;
    font-size: clamp(1.9rem, 4vw, 3.1rem);
    line-height: 1.12;
    letter-spacing: -.035em;
}
.showcase-heading p {
    max-width: 650px;
    margin: 0 auto;
    color: #586b70;
    line-height: 1.8;
}
.showcase-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.35rem;
}
.showcase-card {
    min-width: 0;
    overflow: hidden;
    background: #fff;
    border: 1px solid #e1e9e6;
    border-radius: 18px;
    box-shadow: 0 12px 34px rgba(19, 48, 53, .055);
    transition: transform .2s ease, box-shadow .2s ease;
}
.showcase-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 40px rgba(19, 48, 53, .1);
}
.showcase-art {
    position: relative;
    display: grid;
    min-height: 210px;
    overflow: hidden;
    place-items: center;
    background: #102f3a;
}
.showcase-art svg {
    display: block;
    width: 100%;
    height: auto;
    max-height: 230px;
    padding: 1rem;
}
.showcase-art svg path {
    fill: none;
    stroke: #7fc8b3;
    stroke-width: 1.5;
    vector-effect: non-scaling-stroke;
}
.showcase-art svg text {
    fill: #f3fff9;
    font-size: 10px;
    font-weight: 700;
}
.showcase-art svg circle {
    fill: #f1c879;
    stroke: #102f3a;
    stroke-width: 1;
}
.showcase-art .cad-road {
    stroke: #476571;
    stroke-width: 9;
}
.showcase-art .cad-highlight {
    stroke: #f1c879;
    stroke-width: 2.5;
}
.showcase-topographic {
    background: #173e3e;
}
.showcase-topographic svg path {
    stroke: #80bda0;
    stroke-width: 1.2;
}
.showcase-topographic svg .topo-route {
    stroke: #f1c879;
    stroke-width: 2.5;
}
.showcase-topographic svg .topo-points circle {
    fill: #f1c879;
}
.showcase-gis {
    background: #173449;
}
.showcase-gis svg .gis-road {
    stroke: #718b98;
    stroke-width: 7;
}
.showcase-gis svg .gis-boundary {
    stroke: #88d4b6;
    stroke-width: 1.8;
}
.showcase-gis svg .gis-point {
    fill: #f1c879;
}
.showcase-art .art-label {
    position: absolute;
    z-index: 1;
    top: 1rem;
    left: 1rem;
    padding: .4rem .6rem;
    border: 1px solid rgba(255,255,255,.22);
    border-radius: 6px;
    background: rgba(8, 27, 35, .45);
    color: #fff;
    font-size: .65rem;
    font-weight: 800;
    letter-spacing: .12em;
}
.showcase-card-body {
    padding: 1.45rem;
}
.showcase-number {
    color: #16866d;
    font-size: .72rem;
    font-weight: 800;
    letter-spacing: .12em;
}
.showcase-card-body h3 {
    margin: .7rem 0;
    font-size: 1.2rem;
    line-height: 1.35;
}
.showcase-card-body p {
    margin: 0 0 1.2rem;
    color: #5c6d71;
    font-size: .94rem;
    line-height: 1.75;
}
.showcase-card-body a {
    color: #087c67;
    font-size: .9rem;
    font-weight: 750;
    text-decoration: none;
}
.showcase-card-body a:hover {
    text-decoration: underline;
    text-underline-offset: 4px;
}
.showcase-disclaimer {
    margin: 1.25rem auto 0;
    color: #697a7d;
    font-size: .82rem;
    line-height: 1.65;
    text-align: center;
}
.showcase-cta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    margin-top: 2.5rem;
    padding: clamp(1.4rem, 4vw, 2.5rem);
    border-radius: 16px;
    background: #103842;
    color: #fff;
}
.showcase-cta h3 {
    margin: 0 0 .5rem;
    font-size: clamp(1.2rem, 2.5vw, 1.65rem);
}
.showcase-cta p {
    margin: 0;
    color: #d2e3df;
    line-height: 1.7;
}
.showcase-cta-link {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    gap: .65rem;
    justify-content: center;
    padding: .9rem 1.15rem;
    border-radius: 8px;
    background: #8ed5b9;
    color: #10342f;
    font-weight: 800;
    text-decoration: none;
}
.showcase-cta-link:hover {
    background: #b0e5d0;
}
@media (max-width: 900px) {
    .showcase-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .showcase-card:last-child {
        grid-column: 1 / -1;
    }
    .showcase-card:last-child .showcase-art svg {
        max-height: 210px;
    }
}
@media (max-width: 600px) {
    .showcase-grid {
        grid-template-columns: minmax(0, 1fr);
    }
    .showcase-card:last-child {
        grid-column: auto;
    }
    .showcase-art {
        min-height: 185px;
    }
    .showcase-cta {
        align-items: stretch;
        flex-direction: column;
    }
    .showcase-cta-link {
        width: 100%;
        box-sizing: border-box;
    }
}
@media (prefers-reduced-motion: reduce) {
    .showcase-card {
        transition: none;
    }
    .showcase-card:hover {
        transform: none;
    }
}

/* Mobile header overlap fix - GeoSurvey */
@media (max-width: 720px) {
    .site-header {
        position: relative;
        top: auto;
        z-index: 50;
    }

    .nav-wrap {
        position: relative;
    }

    .nav-links {
        z-index: 60;
    }
}
/* Mobile hero proportions refinement - GeoSurvey */
@media (max-width: 720px) {
    .hero-layout {
        gap: 28px;
        padding-block: 40px 34px;
    }

    .hero-copy h1 {
        font-size: clamp(38px, 9.5vw, 52px);
        line-height: 1.08;
        margin-top: 18px;
        margin-bottom: 16px;
    }

    .hero-actions {
        margin-top: 22px;
    }

    .hero-assurance {
        margin-top: 24px;
    }
}
/* =========================================================
   GeoSurvey portfolio refinement
   ========================================================= */

.portfolio-projects {
    padding-top: clamp(42px, 6vw, 78px);
    padding-bottom: clamp(56px, 7vw, 96px);
}

.portfolio-projects .cards {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: stretch;
    gap: 28px;
    width: 100%;
}

.portfolio-projects .card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    padding: 0;
    overflow: hidden;
    border: 1px solid var(--gs-line);
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 8px 28px rgba(12, 35, 53, 0.06);
    transition: transform 180ms ease, box-shadow 180ms ease;
}

.portfolio-projects .card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 36px rgba(12, 35, 53, 0.12);
}

.portfolio-projects .card > img {
    display: block;
    width: 100%;
    height: 245px;
    object-fit: cover;
    object-position: center;
    background: #edf2ef;
}

.portfolio-card-body {
    display: flex;
    flex: 1;
    flex-direction: column;
    align-items: flex-start;
    padding: 24px;
}

.portfolio-card-body .section-label {
    margin-bottom: 10px;
    color: #16734f;
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.09em;
    text-transform: uppercase;
}

.portfolio-card-body h2,
.portfolio-card-body h3 {
    margin: 0 0 12px;
    color: #102c43;
    font-size: 1.25rem;
    line-height: 1.35;
}

.portfolio-card-body p {
    margin: 0 0 12px;
    color: #5d6e7c;
    line-height: 1.75;
    overflow-wrap: anywhere;
}

.portfolio-card-body .portfolio-location {
    color: #435968;
    font-size: 0.9rem;
    font-weight: 600;
}

.portfolio-card-body .underlined-link {
    margin-top: auto;
    padding-top: 12px;
    font-weight: 800;
}

.portfolio-empty {
    grid-column: 1 / -1;
    padding: 36px;
    border: 1px dashed var(--gs-line);
    border-radius: 12px;
    color: #536879;
    line-height: 1.8;
}

.project-detail-content {
    max-width: 1000px;
    margin-inline: auto;
}

.project-detail-image { display: block; width: 100%; max-width: 900px; max-height: 560px; height: auto; object-fit: contain; object-position: center; margin: 0 auto 30px; border-radius: 14px; background: #f1f5f3; }

.project-detail-description {
    max-width: 850px;
    margin: 0 auto 28px;
    color: #334b5d;
    font-size: 1.05rem;
    line-height: 1.9;
    overflow-wrap: anywhere;
}

.project-detail-meta {
    margin: 0 auto 24px;
    color: #334b5d;
    line-height: 1.8;
}

.project-back-link {
    display: inline-block;
    margin: 12px 0 8px;
    font-weight: 800;
}

@media (max-width: 960px) {
    .portfolio-projects .cards {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 22px;
    }
}

@media (max-width: 600px) {
    .portfolio-projects .cards {
        grid-template-columns: minmax(0, 1fr);
        gap: 20px;
    }

    .portfolio-projects .card > img {
        height: 230px;
    }

    .portfolio-card-body {
        padding: 20px;
    }

    .project-detail-image { display: block; width: 100%; max-width: 900px; max-height: 560px; height: auto; object-fit: contain; object-position: center; margin: 0 auto 30px; border-radius: 14px; background: #f1f5f3; }

    .project-detail-description {
        font-size: 1rem;
        line-height: 1.8;
    }
}

@media (prefers-reduced-motion: reduce) {
    .portfolio-projects .card {
        transition: none;
    }

    .portfolio-projects .card:hover {
        transform: none;
    }
}

/* GeoSurvey project detail page — consolidated layout */
.project-page-hero {
    padding-block: clamp(44px, 6vw, 76px);
}

.project-detail-section {
    padding-block: clamp(42px, 6vw, 84px);
    background: #f6f8f7;
}

.project-detail-layout {
    display: grid;
    grid-template-columns: minmax(0, 0.88fr) minmax(0, 1.12fr);
    align-items: center;
    gap: clamp(32px, 5vw, 76px);
}

.project-detail-copy {
    min-width: 0;
}

.project-detail-kicker {
    display: inline-block;
    margin-bottom: 16px;
    color: #167a58;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .15em;
}

.project-detail-copy h2 {
    margin: 0 0 22px;
    color: var(--gs-navy, #102b40);
    font-size: clamp(28px, 3.2vw, 42px);
    line-height: 1.15;
    letter-spacing: -.04em;
}

.project-detail-description {
    color: #455b69;
    font-size: 15px;
    line-height: 1.9;
}

.project-detail-description p {
    margin: 0 0 16px;
}

.project-detail-facts {
    display: grid;
    gap: 0;
    margin: 28px 0;
    border-top: 1px solid #dce5e1;
}

.project-detail-facts > div {
    display: grid;
    grid-template-columns: 100px minmax(0, 1fr);
    gap: 12px;
    padding: 13px 0;
    border-bottom: 1px solid #dce5e1;
}

.project-detail-facts dt {
    color: #71818a;
    font-size: 12px;
    font-weight: 700;
}

.project-detail-facts dd {
    margin: 0;
    color: var(--gs-navy, #102b40);
    font-size: 13px;
    font-weight: 700;
    overflow-wrap: anywhere;
}

.project-detail-back {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 13px 18px;
    border: 1px solid #176f53;
    border-radius: 5px;
    color: #176f53;
    font-size: 13px;
    font-weight: 800;
    text-decoration: none;
    transition: background .2s ease, color .2s ease;
}

.project-detail-back:hover {
    background: #176f53;
    color: #fff;
}

.project-detail-visual {
    min-width: 0;
    margin: 0;
    padding: 12px;
    border: 1px solid #e1e9e5;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 22px 55px rgba(16, 43, 64, .09);
}

.project-detail-image {
    display: block;
    width: 100%;
    height: clamp(360px, 42vw, 580px);
    max-height: 580px;
    object-fit: contain;
    object-position: center;
    border-radius: 8px;
    background: #edf2ef;
}

.project-detail-visual figcaption {
    padding: 14px 8px 5px;
    color: #647984;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .04em;
}

@media (max-width: 800px) {
    .project-detail-layout {
        grid-template-columns: minmax(0, 1fr);
        gap: 30px;
    }

    .project-detail-copy {
        order: 1;
    }

    .project-detail-visual {
        order: 2;
    }

    .project-detail-image {
        height: min(115vw, 540px);
    }
}

@media (max-width: 480px) {
    .project-detail-section {
        padding-block: 32px;
    }

    .project-detail-visual {
        padding: 7px;
        border-radius: 10px;
    }

    .project-detail-image {
        height: 105vw;
    }

    .project-detail-facts > div {
        grid-template-columns: 82px minmax(0, 1fr);
    }
}


/* Project detail: fill the media frame without side gutters */
.project-detail-content {
    min-width: 0;
}

.project-detail-image {
    display: block;
    width: 100% !important;
    max-width: none !important;
    height: auto !important;
    object-fit: cover;
    object-position: center;
    border-radius: 12px;
}

.project-detail-media,
.project-detail-image-frame {
    width: 100%;
    min-width: 0;
    overflow: hidden;
    background: transparent;
}

@media (max-width: 760px) {
    .project-detail-image {
        border-radius: 8px;
    }
}

/* GeoSurvey public portfolio workflow */
.portfolio-projects .portfolio-filters {
    display: grid;
    grid-template-columns: minmax(220px, 1.7fr) minmax(190px, 1fr) auto;
    align-items: end;
    gap: 16px;
    margin: 0 0 28px;
    padding: 22px;
    border: 1px solid var(--gs-line);
    border-radius: 16px;
    background: #fff;
}
.portfolio-search-field,
.portfolio-category-field {
    display: grid;
    gap: 8px;
    min-width: 0;
}
.portfolio-filters label {
    color: var(--gs-ink, #123047);
    font-size: .84rem;
    font-weight: 700;
}
.portfolio-filters input,
.portfolio-filters select {
    box-sizing: border-box;
    width: 100%;
    min-height: 48px;
    padding: 11px 13px;
    border: 1px solid var(--gs-line, #dce5e2);
    border-radius: 8px;
    background: #fff;
    color: var(--gs-ink, #123047);
    font: inherit;
}
.portfolio-filters input:focus,
.portfolio-filters select:focus {
    outline: 3px solid rgba(28, 125, 91, .17);
    border-color: #1c7d5b;
}
.portfolio-filter-button {
    min-height: 48px;
    white-space: nowrap;
    cursor: pointer;
}
.portfolio-reset {
    grid-column: 1 / -1;
    justify-self: start;
    color: #167454;
    font-size: .9rem;
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 4px;
}
.portfolio-results-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin: 0 0 22px;
    color: #607483;
    font-size: .9rem;
}
.portfolio-results-bar p { margin: 0; }
.portfolio-results-bar strong { color: #123047; }
.portfolio-grid {
    align-items: stretch;
    gap: 24px;
}
.portfolio-grid > .portfolio-card {
    min-width: 0;
    overflow: hidden;
    padding: 0;
    border: 1px solid var(--gs-line, #dce5e2);
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 8px 28px rgba(16, 43, 61, .045);
    transition: transform .18s ease, box-shadow .18s ease;
}
.portfolio-grid > .portfolio-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 14px 34px rgba(16, 43, 61, .10);
}
.portfolio-image-link {
    display: block;
    overflow: hidden;
    background: #edf3f0;
    text-decoration: none;
}
.portfolio-card-image {
    display: block;
    width: 100%;
    height: 235px;
    object-fit: cover;
    object-position: center;
}
.portfolio-image-placeholder {
    display: flex;
    min-height: 235px;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-end;
    gap: 8px;
    padding: 24px;
    background: linear-gradient(145deg, #e9f1ec, #d8e6e0 58%, #c5ddd2);
    color: #123047;
}
.portfolio-image-placeholder span {
    color: #167454;
    font-size: .72rem;
    font-weight: 800;
    letter-spacing: .12em;
    text-transform: uppercase;
}
.portfolio-image-placeholder strong { font-size: 1.7rem; }
.portfolio-image-placeholder small { color: #526d78; }
.portfolio-card-body { padding: 23px 24px 25px; }
.portfolio-card-body h2 {
    margin: 9px 0 10px;
    font-size: 1.2rem;
    line-height: 1.35;
}
.portfolio-card-body h2 a {
    color: inherit;
    text-decoration: none;
}
.portfolio-card-body h2 a:hover { color: #167454; }
.portfolio-card-body > p {
    color: #607483;
    font-size: .93rem;
    line-height: 1.7;
}
.portfolio-card-body .portfolio-location {
    margin: 0 0 8px;
    color: #167454;
    font-size: .85rem;
    font-weight: 700;
}
.portfolio-card-body .portfolio-completion {
    font-size: .82rem;
}
.portfolio-card-body .underlined-link {
    display: inline-flex;
    gap: 8px;
    margin-top: 8px;
}
.portfolio-empty {
    grid-column: 1 / -1;
    padding: 54px 24px;
    border: 1px dashed var(--gs-line, #dce5e2);
    border-radius: 16px;
    background: #f7faf8;
    text-align: center;
}
.portfolio-empty h2 { margin: 12px 0; color: #123047; }
.portfolio-empty p {
    max-width: 560px;
    margin: 0 auto 22px;
    color: #607483;
    line-height: 1.7;
}
.portfolio-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 42px;
}
.portfolio-page-numbers {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
}
.portfolio-page-link,
.portfolio-page-number {
    display: inline-flex;
    min-width: 42px;
    min-height: 42px;
    align-items: center;
    justify-content: center;
    padding: 0 12px;
    border: 1px solid var(--gs-line, #dce5e2);
    border-radius: 8px;
    background: #fff;
    color: #167454;
    font-size: .9rem;
    font-weight: 700;
    text-decoration: none;
}
.portfolio-page-link:hover,
.portfolio-page-number:hover {
    border-color: #167454;
}
.portfolio-page-number.is-current {
    border-color: #167454;
    background: #167454;
    color: #fff;
}
.portfolio-page-link.is-disabled {
    color: #a3b0b7;
    background: #f6f8f7;
}
@media (max-width: 760px) {
    .portfolio-projects .portfolio-filters {
        grid-template-columns: 1fr;
        gap: 14px;
        padding: 17px;
    }
    .portfolio-filter-button { width: 100%; }
    .portfolio-reset { grid-column: auto; }
    .portfolio-results-bar {
        align-items: flex-start;
        flex-direction: column;
        gap: 6px;
    }
    .portfolio-card-image,
    .portfolio-image-placeholder { height: 215px; min-height: 215px; }
    .portfolio-card-body { padding: 20px; }
    .portfolio-pagination { gap: 8px; }
}
@media (prefers-reduced-motion: reduce) {
    .portfolio-grid > .portfolio-card { transition: none; }
}

/* ==========================================================
   GeoSurvey portfolio consistency patch
   Keep card proportions consistent across all project entries.
   ========================================================== */

.portfolio-projects .portfolio-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: stretch;
    gap: 24px;
    width: 100%;
}

.portfolio-projects .portfolio-grid > .portfolio-card {
    display: flex;
    flex-direction: column;
    align-self: stretch;
    width: 100%;
    min-width: 0;
    height: 100%;
    margin: 0;
    padding: 0;
    overflow: hidden;
    box-sizing: border-box;
}

.portfolio-projects .portfolio-image-link {
    display: block;
    flex: 0 0 260px;
    width: 100%;
    height: 260px;
    min-height: 260px;
    overflow: hidden;
}

.portfolio-projects .portfolio-card-image {
    display: block;
    width: 100% !important;
    max-width: none;
    height: 260px !important;
    min-height: 260px;
    max-height: 260px;
    object-fit: cover;
    object-position: center;
}

.portfolio-projects .portfolio-image-placeholder {
    display: flex;
    width: 100%;
    height: 100%;
    min-height: 260px;
    box-sizing: border-box;
    align-items: center;
    justify-content: center;
}

.portfolio-projects .portfolio-card-body {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    align-items: flex-start;
    min-width: 0;
    padding: 24px;
    box-sizing: border-box;
}

.portfolio-projects .portfolio-card-body h2 {
    width: 100%;
    overflow-wrap: anywhere;
}

.portfolio-projects .portfolio-card-body .underlined-link {
    margin-top: auto;
    padding-top: 16px;
}

@media (max-width: 640px) {
    .portfolio-projects .portfolio-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 20px;
    }

    .portfolio-projects .portfolio-image-link,
    .portfolio-projects .portfolio-card-image {
        height: 230px !important;
        min-height: 230px;
        max-height: 230px;
    }

    .portfolio-projects .portfolio-card-body {
        padding: 20px;
    }
}


/* GeoSurvey portfolio: preserve desktop layout and fix mobile */
.portfolio-projects .portfolio-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: stretch;
    gap: 24px;
    width: 100%;
}

.portfolio-projects .portfolio-grid > .portfolio-card {
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
}

.portfolio-projects .portfolio-image-link {
    display: block;
    width: 100%;
    height: 260px;
    min-height: 0;
    overflow: hidden;
}

.portfolio-projects .portfolio-card-image {
    display: block;
    width: 100% !important;
    height: 260px !important;
    min-height: 0;
    max-height: none;
    object-fit: cover;
    object-position: center;
}

@media (max-width: 640px) {
    .portfolio-projects .portfolio-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 20px;
    }

    .portfolio-projects .portfolio-grid > .portfolio-card {
        width: 100%;
        max-width: 100%;
        min-width: 0;
    }

    .portfolio-projects .portfolio-image-link {
        height: 220px;
    }

    .portfolio-projects .portfolio-card-image {
        height: 220px !important;
    }

    .portfolio-projects .portfolio-card-body {
        padding: 20px;
        overflow-wrap: anywhere;
    }

    .portfolio-projects .portfolio-card h2 {
        font-size: 1.15rem;
        line-height: 1.4;
    }
}

/* GeoSurvey portfolio polish: simpler filters and better image framing */

/* Remove the oversized search panel appearance */
.portfolio-projects .portfolio-filters {
    background: transparent;
    border: none;
    box-shadow: none;
    border-radius: 0;
    padding: 0;
    margin: 0 0 28px;
}

/* Keep search controls aligned on wider screens */
.portfolio-projects .portfolio-filters {
    display: grid;
    grid-template-columns: minmax(0, 1.7fr) minmax(180px, 1fr) auto;
    align-items: end;
    gap: 14px;
}

/* Show more of the actual survey photographs */
.portfolio-projects .portfolio-image-link {
    width: 100%;
    aspect-ratio: 16 / 9;
    height: auto;
    min-height: 0;
    overflow: hidden;
    background: #f3f5f4;
}

.portfolio-projects .portfolio-card-image {
    display: block;
    width: 100% !important;
    height: 100% !important;
    min-height: 0;
    max-height: none;
    object-fit: cover;
    object-position: center 35%;
}

/* Phone layout */
@media (max-width: 640px) {
    .portfolio-projects .portfolio-filters {
        grid-template-columns: minmax(0, 1fr);
        gap: 12px;
        margin-bottom: 22px;
    }

    .portfolio-projects .portfolio-image-link {
        aspect-ratio: 16 / 10;
    }
}

/* Tablet layout */
@media (min-width: 641px) and (max-width: 960px) {
    .portfolio-projects .portfolio-filters {
        grid-template-columns: minmax(0, 1fr) minmax(160px, 0.8fr);
    }

    .portfolio-projects .portfolio-filters button,
    .portfolio-projects .portfolio-filters input[type="submit"] {
        grid-column: 1 / -1;
        justify-self: start;
    }
}

/* GeoSurvey portfolio: four cards per row on wide screens */
.portfolio-projects .portfolio-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    align-items: stretch;
    gap: 20px;
    width: 100%;
}

.portfolio-projects .portfolio-grid > .portfolio-card {
    display: flex;
    flex-direction: column;
    width: 100%;
    min-width: 0;
    height: 100%;
    box-sizing: border-box;
}

.portfolio-projects .portfolio-image-link {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 3;
    height: auto;
    min-height: 0;
    overflow: hidden;
    background: #f3f5f4;
}

.portfolio-projects .portfolio-card-image {
    display: block;
    width: 100% !important;
    height: 100% !important;
    min-height: 0;
    max-height: none;
    object-fit: cover;
    object-position: center;
}

.portfolio-projects .portfolio-card-body {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-width: 0;
}

.portfolio-projects .portfolio-card-body h2 {
    font-size: 1.05rem;
    line-height: 1.4;
    overflow-wrap: anywhere;
}

.portfolio-projects .portfolio-card-body > a:last-child {
    margin-top: auto;
}

@media (max-width: 1100px) {
    .portfolio-projects .portfolio-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 22px;
    }
}

@media (max-width: 640px) {
    .portfolio-projects .portfolio-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 20px;
    }

    .portfolio-projects .portfolio-image-link {
        aspect-ratio: 16 / 10;
    }

    .portfolio-projects .portfolio-card-body h2 {
        font-size: 1.15rem;
    }
}


/* Public project gallery */
.project-detail-gallery {
    width: 100%;
    min-width: 0;
}
.project-detail-main-image {
    margin: 0 0 1rem;
}
.project-detail-gallery .project-detail-image {
    display: block;
    width: 100%;
    height: auto;
    max-width: none;
    object-fit: cover;
    border-radius: 12px;
}
.project-gallery-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.85rem;
    margin-top: 1rem;
}
.project-gallery-item {
    min-width: 0;
    margin: 0;
    overflow: hidden;
    border-radius: 10px;
}
.project-gallery-item img {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
}
.project-gallery-item figcaption {
    padding: 0.65rem 0.75rem;
    font-size: 0.9rem;
    line-height: 1.45;
}
@media (max-width: 760px) {
    .project-gallery-grid {
        gap: 0.6rem;
    }
}
@media (max-width: 380px) {
    .project-gallery-grid {
        grid-template-columns: minmax(0, 1fr);
    }
}


/* Homepage Featured Projects: consistent four-card grid */
.showcase-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    align-items: stretch;
    gap: 20px;
    width: 100%;
}

.showcase-grid > .showcase-card {
    display: flex;
    flex-direction: column;
    align-self: stretch;
    width: 100%;
    min-width: 0;
    height: 100%;
    box-sizing: border-box;
}

.showcase-grid .showcase-art {
    width: 100%;
    min-width: 0;
    min-height: 0;
    aspect-ratio: 4 / 3;
    overflow: hidden;
}

.showcase-grid .showcase-art img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.showcase-grid .showcase-art svg {
    width: 100%;
    height: 100%;
    max-height: none;
    padding: 1rem;
    object-fit: contain;
}

.showcase-grid .showcase-card-body {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    align-items: stretch;
    min-width: 0;
}

.showcase-grid .showcase-card-body h3 {
    overflow-wrap: anywhere;
}

.showcase-grid .showcase-card-body > a {
    margin-top: auto;
    padding-top: 16px;
}

@media (max-width: 1100px) {
    .showcase-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 22px;
    }

    .showcase-grid > .showcase-card:last-child {
        grid-column: auto;
    }
}

@media (max-width: 600px) {
    .showcase-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 20px;
    }

    .showcase-grid > .showcase-card:last-child {
        grid-column: auto;
    }
}


/* About page repair — scoped to About Us only */
.about-page {
    overflow: clip;
}

.about-page .about-hero {
    padding-block: clamp(44px, 5vw, 66px);
}

.about-page .about-hero h1 {
    max-width: 760px;
    margin-block: 12px;
    font-size: clamp(34px, 4.2vw, 52px);
    line-height: 1.12;
}

.about-page .about-hero p {
    max-width: 680px;
    font-size: 15px;
    line-height: 1.8;
}

.about-page .about-intro,
.about-page .about-process,
.about-page .about-contact {
    padding-block: clamp(42px, 5vw, 68px);
}

.about-page .about-split {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
    align-items: stretch;
    gap: clamp(24px, 4vw, 52px);
}

.about-page .about-copy h2,
.about-page .about-contact-panel h2 {
    margin: 10px 0 16px;
    color: var(--gs-navy);
    font-size: clamp(28px, 3vw, 40px);
    line-height: 1.2;
    letter-spacing: -.035em;
}

.about-page .about-copy > p:not(.lead) {
    color: var(--gs-muted);
    font-size: 14px;
    line-height: 1.9;
}

.about-page .about-principles {
    align-self: stretch;
    padding: clamp(22px, 3vw, 34px);
    border: 1px solid #e0e9e5;
    border-radius: 20px;
    background: #fff;
    box-shadow: 0 12px 32px rgba(19, 48, 53, .06);
}

.about-page .about-principles h3 {
    margin: 8px 0 22px;
    color: var(--gs-navy);
    font-size: clamp(23px, 2.5vw, 29px);
    line-height: 1.25;
}

.about-page .about-principles-list {
    display: grid;
    gap: 0;
    margin: 0;
    padding: 0;
    list-style: none;
}

.about-page .about-principles-list li {
    display: grid;
    grid-template-columns: 38px minmax(0, 1fr);
    gap: 13px;
    align-items: start;
    padding: 15px 0;
    border-top: 1px solid #e8eeeb;
}

.about-page .about-principles-list li > span,
.about-page .about-step {
    display: inline-grid;
    width: 36px;
    height: 36px;
    place-items: center;
    border-radius: 10px;
    background: #edf4e5;
    color: #315b38;
    font-size: 12px;
    font-weight: 800;
}

.about-page .about-principles-list strong {
    display: block;
    margin: 1px 0 4px;
    color: var(--gs-navy);
    font-size: 14px;
}

.about-page .about-principles-list p {
    margin: 0;
    color: var(--gs-muted);
    font-size: 12px;
    line-height: 1.75;
}

.about-page .about-process .section-head {
    margin-bottom: 30px;
}

.about-page .about-process-cards {
    align-items: stretch;
}

.about-page .about-process-cards .card {
    padding: 24px;
    border: 1px solid #e2eae6;
    border-radius: 17px;
    background: #fff;
}

.about-page .about-process-cards h3 {
    margin: 17px 0 9px;
    color: var(--gs-navy);
    font-size: 18px;
    line-height: 1.4;
}

.about-page .about-process-cards p {
    margin-bottom: 0;
    font-size: 13px;
    line-height: 1.8;
}

.about-page .about-contact-panel {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    padding: clamp(24px, 4vw, 42px);
    border: 1px solid #e0e9e5;
    border-radius: 20px;
    background: #f5f8f5;
}

.about-page .about-contact-copy {
    max-width: 650px;
}

.about-page .about-contact-panel h2 {
    margin-top: 9px;
}

.about-page .about-contact-panel p {
    color: var(--gs-muted);
    font-size: 14px;
    line-height: 1.8;
}

.about-page .about-contact-panel .about-contact-note {
    margin-bottom: 0;
    font-size: 12px;
}

.about-page .about-contact-actions {
    display: flex;
    flex: 0 0 auto;
    flex-direction: column;
    align-items: flex-start;
    gap: 15px;
}

.about-page .about-contact-secondary {
    color: var(--gs-navy);
    font-size: 13px;
    font-weight: 750;
}

@media (max-width: 900px) {
    .about-page .about-split {
        grid-template-columns: minmax(0, 1fr);
    }

    .about-page .about-contact-panel {
        align-items: flex-start;
        flex-direction: column;
    }

    .about-page .about-contact-actions {
        width: 100%;
    }
}

@media (max-width: 600px) {
    .about-page .about-hero {
        padding-block: 40px;
    }

    .about-page .about-intro,
    .about-page .about-process,
    .about-page .about-contact {
        padding-block: 34px;
    }

    .about-page .about-process-cards {
        grid-template-columns: minmax(0, 1fr);
    }

    .about-page .about-principles {
        padding: 21px;
    }

    .about-page .about-contact-panel {
        padding: 22px;
    }

    .about-page .about-contact-actions .button {
        max-width: 100%;
        white-space: normal;
    }
}

/* Contact page visual repair */
.contact-hero {
    padding-block: clamp(42px, 5vw, 64px);
}

.contact-hero h1 {
    max-width: 780px;
    margin: 12px 0;
    font-size: clamp(36px, 4.5vw, 54px);
    line-height: 1.1;
    letter-spacing: -.04em;
}

.contact-hero p {
    max-width: 700px;
    font-size: 15px;
    line-height: 1.8;
}

.contact-grid {
    align-items: start;
    gap: clamp(26px, 4vw, 48px);
}

.contact-grid > div:first-child {
    padding-top: 8px;
}

.contact-grid > div:first-child h2 {
    margin: 10px 0 12px;
    font-size: clamp(25px, 3vw, 34px);
    line-height: 1.2;
}

.contact-panel {
    margin-top: 22px;
    padding: clamp(20px, 3vw, 28px);
    border: 1px solid #e1e9e5;
    border-radius: 16px;
    background: #f5f8f5;
}

.contact-panel h3 {
    margin-top: 0;
    font-size: 19px;
}

.contact-panel .checklist {
    padding-left: 0;
    list-style: none;
}

.contact-panel .checklist li {
    position: relative;
    margin: 12px 0;
    padding-left: 25px;
}

.contact-panel .checklist li::before {
    position: absolute;
    left: 0;
    color: #21815e;
    content: "\2713";
    font-weight: 800;
}

.contact-panel .checklist li {
    /* Keep checklist labels readable and consistently aligned. */
    line-height: 1.65;
}

.contact-grid .form-card {
    padding: clamp(22px, 3vw, 32px);
    border: 1px solid #e2eae6;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 14px 38px rgba(19, 48, 53, .07);
}

.contact-grid .form-card h3 {
    margin-top: 0;
    font-size: 22px;
}

.contact-grid .form-card input,
.contact-grid .form-card select,
.contact-grid .form-card textarea {
    width: 100%;
    min-width: 0;
    border-radius: 7px;
}

.contact-grid .form-card button {
    width: 100%;
}

@media (max-width: 900px) {
    .contact-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .contact-grid > div:first-child {
        padding-top: 0;
    }
}

@media (max-width: 600px) {
    .contact-hero {
        padding-block: 38px;
    }

    .contact-grid .form-card {
        padding: 20px;
    }
}

/* Header refinement: keep GeoSurvey branding and navigation aligned */
.site-header .nav-wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: clamp(16px, 2vw, 30px);
}

.site-header .brand {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 10px;
    min-width: max-content;
    text-decoration: none;
}

.site-header .brand img {
    display: block;
    flex: 0 0 54px;
    width: 54px;
    height: 54px;
    object-fit: contain;
}

.site-header .brand-copy {
    display: flex;
    flex: 0 0 auto;
    flex-direction: column;
    white-space: nowrap;
}

.site-header .brand-copy strong {
    font-size: 21px;
    line-height: 1.1;
    letter-spacing: -.045em;
}

.site-header .brand-copy small {
    font-size: 8px;
    line-height: 1.4;
    letter-spacing: .08em;
    white-space: nowrap;
}

.site-header .nav-links {
    display: flex;
    flex: 0 1 auto;
    align-items: center;
    justify-content: flex-end;
    gap: clamp(12px, 1.8vw, 25px);
    min-width: 0;
    white-space: nowrap;
}

.site-header .nav-links > a {
    flex-shrink: 0;
}

.site-header .nav-links .nav-cta {
    padding-inline: 14px;
}

@media (max-width: 1050px) and (min-width: 721px) {
    .site-header .nav-wrap {
        gap: 14px;
    }

    .site-header .brand img {
        flex-basis: 46px;
        width: 46px;
        height: 46px;
    }

    .site-header .brand-copy strong {
        font-size: 18px;
    }

    .site-header .brand-copy small {
        font-size: 7px;
        letter-spacing: .04em;
    }

    .site-header .nav-links {
        gap: 12px;
        font-size: 11px;
    }

    .site-header .nav-links .nav-cta {
        padding-inline: 10px;
    }
}

@media (max-width: 720px) {
    .site-header .brand {
        min-width: 0;
    }

    .site-header .brand img {
        flex-basis: 46px;
        width: 46px;
        height: 46px;
    }

    .site-header .brand-copy strong {
        font-size: 19px;
    }

    .site-header .brand-copy small {
        font-size: 7px;
        letter-spacing: .04em;
    }
}

/* Official GeoSurvey contact details in About section */
.about-page .about-contact-details {
    display: grid;
    gap: 12px;
    margin-top: 20px;
}

.about-page .about-contact-details p {
    margin: 0;
    color: var(--gs-muted);
    font-size: 13px;
    line-height: 1.75;
    overflow-wrap: anywhere;
}

.about-page .about-contact-details strong {
    display: inline-block;
    margin-bottom: 2px;
    color: var(--gs-navy);
}

.about-page .about-contact-details a {
    color: var(--gs-green);
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.about-page .about-contact-details a:hover {
    color: var(--gs-navy);
}

/* Official GeoSurvey contact information */
.contact-information {
    min-width: 0;
}

.contact-disclaimer {
    font-size: 13px;
    line-height: 1.7;
    color: var(--gs-muted);
}

.contact-details-panel {
    display: grid;
    gap: 16px;
}

.contact-details-panel h3 {
    margin-bottom: 0;
}

.contact-detail {
    min-width: 0;
}

.contact-detail strong {
    display: block;
    margin-bottom: 5px;
    color: var(--gs-navy);
    font-size: 13px;
}

.contact-detail p {
    margin: 0;
    color: var(--gs-muted);
    font-size: 14px;
    line-height: 1.7;
    overflow-wrap: anywhere;
}

.contact-detail a,
.footer-contact a {
    color: var(--gs-green);
    font-weight: 700;
    overflow-wrap: anywhere;
}

.contact-detail a {
    text-decoration: underline;
    text-underline-offset: 3px;
}

.site-footer .footer-contact {
    min-width: 0;
}

.site-footer .footer-contact p {
    font-size: 13px;
    line-height: 1.75;
    overflow-wrap: anywhere;
}

.site-footer .footer-contact a {
    display: block;
    margin-top: 10px;
    font-size: 13px;
}

@media (max-width: 900px) {
    .contact-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .site-footer .footer-main {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 600px) {
    .site-footer .footer-main {
        grid-template-columns: minmax(0, 1fr);
    }

    .contact-details-panel {
        padding: 20px;
    }
}

/* GeoSurvey: understated contact page and refined footer */
.contact-hero h1 {
    font-size: clamp(32px, 3.6vw, 44px);
    letter-spacing: -0.035em;
}

.contact-grid {
    align-items: start;
    gap: clamp(28px, 3.5vw, 44px);
}

.contact-information > h2 {
    font-size: clamp(24px, 2.6vw, 30px);
    letter-spacing: -0.025em;
}

.contact-panel {
    padding: 22px;
    border: 1px solid #e5ebe7;
    border-radius: 12px;
    background: #f8faf8;
    box-shadow: none;
}

.contact-panel h3 {
    font-size: 17px;
    font-weight: 700;
}

.contact-details-panel {
    gap: 0;
}

.contact-details-panel .contact-detail {
    display: grid;
    grid-template-columns: minmax(105px, 0.7fr) minmax(0, 1.3fr);
    gap: 12px;
    padding: 13px 0;
    border-bottom: 1px solid #e5ebe7;
}

.contact-details-panel .contact-detail:last-child {
    border-bottom: 0;
    padding-bottom: 0;
}

.contact-detail strong {
    margin: 0;
    font-size: 13px;
}

.contact-detail p {
    font-size: 13px;
}

.contact-detail a {
    text-decoration: none;
    font-weight: 650;
}

.contact-detail a:hover {
    text-decoration: underline;
    text-underline-offset: 3px;
}

/* Refined footer layout */
.site-footer .footer-main {
    grid-template-columns: minmax(0, 1.15fr) minmax(110px, 0.65fr)
        minmax(0, 1.2fr) minmax(0, 0.9fr);
    gap: clamp(22px, 3vw, 42px);
    padding-top: 48px;
    padding-bottom: 38px;
}

.site-footer .footer-main > div {
    min-width: 0;
}

.site-footer .footer-main h3 {
    margin: 0 0 17px;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0;
}

.site-footer .footer-about > p,
.site-footer .footer-main > div > p {
    font-size: 12px;
    line-height: 1.8;
}

.site-footer .footer-contact p {
    margin: 0 0 12px;
    color: #c0ccd5;
    font-size: 12px;
    line-height: 1.7;
}

.site-footer .footer-contact a {
    display: block;
    margin-top: 9px;
    color: #c0d8cc;
    font-size: 12px;
    font-weight: 600;
    text-decoration: none;
}

.site-footer .footer-contact a:hover {
    color: #ffffff;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.site-footer .footer-cta {
    font-size: 12px;
    font-weight: 700;
}

.site-footer .footer-bottom {
    font-size: 11px;
    color: #aebdc8;
}

/* Keep the four footer columns comfortable on tablets */
@media (max-width: 1000px) {
    .site-footer .footer-main {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 30px;
    }
}

/* Stack contact rows and footer columns on narrow screens */
@media (max-width: 600px) {
    .contact-panel {
        padding: 18px;
    }

    .contact-details-panel .contact-detail {
        grid-template-columns: minmax(0, 1fr);
        gap: 5px;
    }

    .site-footer .footer-main {
        grid-template-columns: minmax(0, 1fr);
        gap: 26px;
        padding-top: 36px;
        padding-bottom: 30px;
    }

    .site-footer .footer-bottom {
        gap: 10px;
        flex-wrap: wrap;
    }
}
