:root {
    --primary: #2f5d50;
    --primary-variant: #39a78a;
    --surface: #ffffff;
    --surface-2: #f6faf9;
    --ink: #0d1f1a;
    --muted: #40524d;
    --ring: rgba(57, 167, 138, 0.35);
    --shadow: 0 10px 30px rgba(3, 30, 22, 0.12);
    --radius: 14px;
    --font-stack: "Roboto", sans-serif;
}

/* --- Reset & Base --- */
*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-stack);
    font-weight: 400;
    background: var(--surface-2);
    color: var(--ink);
    line-height: 1.65;
    margin: 0;
    overflow-x: hidden;
}

h1,
h2,
h3 {
    font-family: var(--font-stack);
    font-weight: 800;
    color: #000;
    letter-spacing: -0.015em;
    margin: 0 0 0.5rem;
}

h1 {
    font-size: clamp(32px, 4.6vw, 54px);
    line-height: 1.1;
}

h2 {
    font-size: clamp(24px, 3vw, 36px);
    line-height: 1.16;
    color: var(--ink);
}

h3 {
    font-size: clamp(18px, 2.2vw, 22px);
    line-height: 1.2;
    color: var(--ink);
}

p,
li,
input,
select,
textarea,
address,
a,
label {
    font-family: var(--font-stack);
    font-weight: 400;
}

p {
    margin: 0.25rem 0 1rem;
}

a {
    color: var(--primary-variant);
    text-decoration: none;
    transition: color 0.2s;
}

a:hover {
    text-decoration: underline;
}

.lead {
    color: var(--muted);
    font-size: clamp(16px, 2.2vw, 19px);
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

.mt-22 {
    margin-top: 22px;
}

/* --- Layout --- */
.container {
    width: 100%;
    max-width: 1120px;
    /* Replaced custom property with explicit value for robustness */
    margin: 0 auto;
    padding: 0 24px;
    /* Standardized padding */
}

@media (min-width: 980px) {
    .container {
        padding: 0 56px;
    }
}

.section {
    padding: 56px 0;
    background: var(--surface);
}

main.section {
    background: #659e8a2f !important;
}

/* --- Hero --- */
.hero {
    position: relative;
    background: radial-gradient(circle at 50% 0%, #f0fdf9 0%, #ffffff 70%);
    color: var(--ink);
    padding: clamp(80px, 10vw, 120px) 0 clamp(60px, 8vw, 80px);
    text-align: center;
    border-bottom: 1px solid rgba(47, 93, 80, 0.06);
}

.hero .container {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 860px;
}

.hero-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(47, 93, 80, 0.06);
    color: var(--primary);
    font-weight: 700;
    font-size: 0.875rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    padding: 8px 16px;
    border-radius: 100px;
    margin-bottom: 24px;
}

.hero h1 {
    background: linear-gradient(135deg, var(--ink) 0%, var(--primary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: var(--ink);
    margin-bottom: 20px;
}

.hero .lead {
    margin: 0;
    max-width: 680px;
}

/* --- Grid & Cards --- */
.contact-grid {
    display: grid;
    gap: 22px;
}

@media (min-width: 900px) {
    .contact-grid {
        grid-template-columns: 1.05fr 0.95fr;
    }
}

.card {
    background: linear-gradient(180deg, #fff 0%, #f6faf9 100%);
    border: 1px solid #e0ece7;
    border-radius: 20px;
    padding: 22px;
    box-shadow: var(--shadow);
}

@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }

    .card {
        padding: 16px;
    }
}

p,
a {
    overflow-wrap: break-word;
    /* Ensure long emails/urls break */
    word-wrap: break-word;
}

.row,
.info-item,
.contact-grid {
    min-width: 0;
    /* Prevent grid blowouts */
}

/* --- Info Items --- */
.info-item {
    display: grid;
    grid-template-columns: 44px 1fr;
    gap: 16px;
    align-items: center;
    margin: 16px 0;
}

.ico {
    width: 30px;
    height: 30px;
    display: grid;
    place-items: center;
    background: transparent;
    border-radius: 0;
    box-shadow: none;
}

.ico img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 5px 15px rgba(47, 93, 80, 0.15));
    transition: transform 0.3s ease;
}

.info-item:hover .ico img {
    transform: scale(1.1) translateY(-2px);
}

.info-title {
    font-weight: 800;
    color: var(--ink);
}

address {
    font-style: normal;
}

.stack {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 8px;
}

.chip {
    background: #659e8a2f;
    border: 1px solid #e0ece7;
    border-radius: 999px;
    padding: 6px 10px;
    font-size: 13px;
}

/* --- Forms --- */
form {
    display: grid;
    gap: 14px;
}

.row {
    display: grid;
    gap: 14px;
}

@media (min-width: 640px) {
    .row.two {
        grid-template-columns: 1fr 1fr;
    }
}

label {
    font-weight: 700;
    color: var(--ink);
    font-size: 14px;
}

input,
select,
textarea {
    width: 100%;
    padding: 12px 14px;
    border-radius: 12px;
    border: 1px solid #d5e7e1;
    background: #fff;
    box-shadow: var(--shadow);
    font-size: 15px;
    color: var(--ink);
}

textarea {
    min-height: 120px;
    resize: vertical;
}

input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 3px solid var(--ring);
    outline-offset: 2px;
}

.hint {
    color: var(--muted);
    font-size: 13px;
    margin-top: -6px;
}

/* --- Buttons --- */
.btn {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    padding: 14px 18px;
    border-radius: 12px;
    font-weight: 700;
    box-shadow: var(--shadow);
    transition: transform 0.2s ease, background 0.2s;
    border: none;
    cursor: pointer;
    width: 100%;
}

@media (min-width: 640px) {
    .btn {
        width: auto;
    }
}

.btn.primary {
    background: var(--primary);
    color: #fff;
}

.btn:hover {
    transform: translateY(-1px);
}

/* --- Map & Footer CTA --- */
.map {
    border: 0;
    width: 100%;
    height: 340px;
    border-radius: 16px;
    box-shadow: var(--shadow);
    background: #e0ece7;
    /* Placeholder color while loading */
}

.foot-cta {
    background: var(--primary);
    color: #0d1f1a;
    text-align: center;
    padding: 42px 22px;
    border-radius: 20px;
    box-shadow: var(--shadow);
}

.foot-cta h3 {
    color: #fff;
    margin: 0 0 8px;
}

.foot-cta p {
    color: #e0f7f0;
    margin: 0 0 14px;
}

.foot-cta a {
    color: #fff;
    text-decoration: underline;
}