:root {
    --green-950: #0d3424;
    --green-900: #123f2c;
    --green-800: #174b35;
    --green-700: #286844;
    --green-100: #eaf1e7;
    --sage: #78915f;
    --leaf: #b7c789;
    --cream: #fffdf7;
    --paper: #f9f6ee;
    --sand: #efe6d2;
    --sand-2: #f5eddf;
    --line: rgba(32, 54, 43, 0.18);
    --ink: #102a20;
    --muted: #52635b;
    --shadow: 0 20px 48px rgba(18, 63, 44, 0.13);
    --serif: Georgia, "Times New Roman", serif;
    --sans: Arial, Helvetica, sans-serif;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--ink);
    background: var(--paper);
    font-family: var(--sans);
    line-height: 1.6;
}

img,
svg {
    display: block;
}

img {
    max-width: 100%;
}

a {
    color: inherit;
}

.section-inner {
    width: min(1110px, calc(100% - 40px));
    margin: 0 auto;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 30;
    background: rgba(249, 246, 238, 0.88);
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(12px);
}

.header-inner {
    width: min(1110px, calc(100% - 40px));
    min-height: 88px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 28px;
}

.brand,
.footer-brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: var(--green-900);
    font-family: var(--serif);
    font-size: 1.55rem;
    font-weight: 600;
    text-decoration: none;
    letter-spacing: 0;
}

.brand-mark {
    width: 58px;
    height: 58px;
    flex: 0 0 58px;
    color: var(--green-900);
}

.brand-mark.small {
    width: 42px;
    height: 42px;
    flex-basis: 42px;
    color: var(--cream);
}

.brand-mark svg {
    width: 100%;
    height: 100%;
}

.brand-mark circle,
.brand-mark path {
    fill: none;
    stroke: currentColor;
    stroke-width: 2.2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.main-nav,
.site-footer nav {
    display: flex;
    align-items: center;
    gap: clamp(18px, 3vw, 42px);
    font-size: 0.95rem;
    font-weight: 700;
}

.main-nav a,
.site-footer nav a {
    text-decoration: none;
}

.main-nav a:hover,
.main-nav a:focus-visible,
.site-footer nav a:hover,
.site-footer nav a:focus-visible {
    text-decoration: underline;
    text-underline-offset: 5px;
}

.header-button {
    justify-self: end;
}

.button {
    display: inline-flex;
    min-height: 50px;
    align-items: center;
    justify-content: center;
    padding: 13px 26px;
    border: 1px solid var(--green-900);
    border-radius: 999px;
    font-size: 0.94rem;
    font-weight: 800;
    text-decoration: none;
    cursor: pointer;
}

.button-primary,
.header-button {
    color: var(--cream);
    background: var(--green-800);
    box-shadow: 0 10px 22px rgba(18, 63, 44, 0.17);
}

.button-primary:hover,
.button-primary:focus-visible,
.header-button:hover,
.header-button:focus-visible {
    background: var(--green-950);
}

.button-outline {
    color: var(--green-900);
    background: transparent;
}

.button-outline:hover,
.button-outline:focus-visible {
    background: var(--green-100);
}

.hero {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    padding: clamp(34px, 4vw, 54px) 0 clamp(30px, 4vw, 50px);
    background:
        linear-gradient(90deg, rgba(249, 246, 238, 0.99) 0%, rgba(249, 246, 238, 0.95) 58%, rgba(249, 246, 238, 0.68) 82%, rgba(249, 246, 238, 0.34) 100%),
        url("assets/trepleie-sketch-background.webp") calc(100% + 24px) center / clamp(920px, 78vw, 1160px) auto no-repeat,
        var(--paper);
    border-bottom: 1px solid rgba(98, 83, 67, 0.14);
}

.hero-layout {
    display: grid;
    gap: clamp(24px, 3vw, 34px);
}

.hero-copy {
    max-width: 720px;
}

.hero-copy h1,
.center-heading h2,
.felling-copy h2,
.about-copy h2,
.contact-copy h2 {
    margin: 0;
    color: var(--green-900);
    font-family: var(--serif);
    font-weight: 500;
    line-height: 1.08;
    letter-spacing: 0;
}

.hero-copy h1 {
    max-width: 720px;
    font-size: 4.5rem;
}

.hero-copy > p {
    max-width: 570px;
    margin: 18px 0 0;
    color: #273a31;
    font-size: 1.08rem;
    line-height: 1.75;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-top: 28px;
}

.hero-services {
    display: grid;
    gap: 14px;
}

.services-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 18px;
    padding-right: min(16vw, 180px);
}

.services-heading h2 {
    margin: 0;
    color: var(--green-900);
    font-family: var(--serif);
    font-size: 2.15rem;
    font-weight: 500;
    letter-spacing: 0;
    line-height: 1.1;
}

.trust-strip {
    background: linear-gradient(90deg, #f1e7d1, #f7f1e6);
    border-top: 1px solid rgba(32, 54, 43, 0.1);
    border-bottom: 1px solid rgba(32, 54, 43, 0.12);
}

.trust-grid {
    min-height: 74px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    align-items: center;
    gap: 20px;
}

.trust-item {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    color: var(--green-900);
    font-weight: 700;
}

.line-icon,
.card-icon {
    display: inline-grid;
    place-items: center;
    flex: 0 0 auto;
}

.line-icon {
    width: 34px;
    height: 34px;
}

.line-icon svg,
.card-icon svg {
    width: 100%;
    height: 100%;
}

.line-icon path,
.line-icon circle,
.card-icon path,
.card-icon circle {
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.section {
    padding: clamp(58px, 7vw, 90px) 0;
}

.center-heading {
    margin-bottom: 36px;
    text-align: center;
}

.center-heading h2 {
    font-size: clamp(2.4rem, 4vw, 3.45rem);
}

.divider,
.small-divider {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 13px;
    color: var(--sage);
}

.divider::before,
.divider::after,
.small-divider::before,
.small-divider::after {
    content: "";
    width: 44px;
    height: 1px;
    background: rgba(18, 63, 44, 0.28);
}

.divider::before,
.small-divider::before {
    margin-right: 8px;
}

.divider::after,
.small-divider::after {
    margin-left: 8px;
}

.divider::marker,
.small-divider::marker {
    display: none;
}

.divider::before {
    box-shadow: 54px 0 0 -53px currentColor;
}

.service-list {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
}

.service-card {
    position: relative;
    min-height: 218px;
    overflow: hidden;
    padding: 25px 22px 22px;
    background: rgba(255, 253, 247, 0.78);
    border: 1px solid rgba(61, 73, 56, 0.2);
    border-radius: 8px;
    box-shadow: 0 14px 30px rgba(42, 54, 36, 0.08);
    backdrop-filter: blur(5px);
}

.card-icon {
    width: 50px;
    height: 50px;
    margin: 0 0 19px;
    color: var(--green-800);
    background: rgba(238, 232, 215, 0.88);
    border-radius: 50%;
}

.card-icon svg {
    width: 38px;
    height: 38px;
}

.service-card h3 {
    min-height: 48px;
    margin: 0 0 12px;
    color: var(--green-900);
    font-family: var(--serif);
    font-size: 1.35rem;
    font-weight: 500;
    line-height: 1.13;
}

.service-card p {
    margin: 0;
    color: #35473e;
    font-size: 0.92rem;
    line-height: 1.65;
}

.felling-section {
    background:
        linear-gradient(90deg, rgba(249, 246, 238, 0.99) 0%, rgba(249, 246, 238, 0.96) 45%, rgba(249, 246, 238, 0.58) 72%, rgba(249, 246, 238, 0.18) 100%),
        url("assets/tree-rings-background.webp") right center / cover no-repeat;
    border-bottom: 1px solid rgba(32, 54, 43, 0.1);
}

.felling-grid {
    min-height: 520px;
    display: grid;
    grid-template-columns: minmax(0, 660px) minmax(220px, 1fr);
    align-items: center;
}

.felling-copy h2 {
    font-size: clamp(2.35rem, 4vw, 3.4rem);
}

.felling-copy > p {
    max-width: 540px;
    margin: 18px 0 24px;
    color: #2f4038;
    font-size: 1.06rem;
}

.felling-points {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.felling-points article {
    min-height: 174px;
    padding: 21px 20px;
    color: var(--green-900);
    background: rgba(255, 253, 247, 0.8);
    border: 1px solid rgba(61, 73, 56, 0.18);
    border-radius: 8px;
    backdrop-filter: blur(4px);
}

.felling-points h3 {
    margin: 0 0 10px;
    color: var(--green-900);
    font-family: var(--serif);
    font-size: 1.3rem;
    font-weight: 500;
    line-height: 1.15;
}

.felling-points p {
    margin: 0;
    color: #405049;
    font-size: 0.92rem;
}

.felling-copy .button {
    margin-top: 24px;
}

.about-section {
    background:
        linear-gradient(90deg, rgba(255, 253, 247, 0.94), rgba(249, 246, 238, 0.88)),
        var(--paper);
}

.about-grid {
    display: grid;
    grid-template-columns: minmax(280px, 0.78fr) minmax(360px, 1.16fr);
    gap: clamp(34px, 7vw, 96px);
    align-items: center;
}

.about-copy h2,
.contact-copy h2 {
    font-size: clamp(2.35rem, 4vw, 3.35rem);
}

.small-divider {
    margin: 10px 0 18px;
}

.about-copy p {
    max-width: 470px;
    margin: 0 0 12px;
    color: #2f4038;
}

.text-link {
    display: inline-flex;
    margin-top: 14px;
    color: var(--green-900);
    font-weight: 800;
    text-decoration: none;
}

.text-link::after {
    content: "->";
    margin-left: 10px;
}

.text-link:hover,
.text-link:focus-visible {
    text-decoration: underline;
    text-underline-offset: 5px;
}

.services-heading .text-link {
    margin-top: 0;
    white-space: nowrap;
}

.about-image {
    display: block;
    overflow: hidden;
    border-radius: 18px;
    box-shadow: 0 16px 38px rgba(18, 63, 44, 0.1);
}

.about-image img {
    width: 100%;
    aspect-ratio: 1.85 / 1;
    object-fit: cover;
    object-position: 72% center;
}

.contact-section {
    padding: clamp(42px, 5vw, 68px) 0;
    background:
        linear-gradient(90deg, rgba(255, 253, 247, 0.28), rgba(255, 253, 247, 0.68)),
        var(--sand-2);
    border-top: 1px solid rgba(32, 54, 43, 0.1);
}

.contact-grid {
    display: grid;
    grid-template-columns: minmax(260px, 0.58fr) minmax(360px, 1.15fr);
    gap: clamp(32px, 6vw, 82px);
    align-items: start;
}

.contact-details {
    display: grid;
    gap: 16px;
    margin: 16px 0 0;
}

.contact-details div {
    display: grid;
    grid-template-columns: 96px minmax(0, 1fr);
    gap: 14px;
}

.contact-details dt {
    color: var(--green-800);
    font-weight: 800;
}

.contact-details dd {
    margin: 0;
    color: #1d3328;
}

.contact-form {
    display: grid;
    gap: 14px;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.contact-form label {
    display: grid;
    gap: 6px;
}

.contact-form label span {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    min-width: 0;
    padding: 13px 15px;
    color: var(--ink);
    background: rgba(255, 253, 247, 0.92);
    border: 1px solid rgba(32, 54, 43, 0.24);
    border-radius: 4px;
    font: inherit;
}

.contact-form textarea {
    resize: vertical;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: 3px solid rgba(183, 199, 137, 0.5);
    border-color: var(--green-800);
}

.contact-form button {
    width: fit-content;
    min-width: 210px;
}

.site-footer {
    padding: 24px 0;
    color: rgba(255, 253, 247, 0.9);
    background: linear-gradient(135deg, var(--green-950), var(--green-800));
}

.footer-inner {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 24px;
}

.footer-brand {
    color: var(--cream);
    font-size: 1.35rem;
}

.footer-inner > span {
    justify-self: end;
    color: rgba(255, 253, 247, 0.78);
}

@media (max-width: 940px) {
    .header-inner {
        grid-template-columns: 1fr auto;
    }

    .main-nav {
        grid-column: 1 / -1;
        grid-row: 2;
        justify-content: center;
        padding-bottom: 14px;
    }

    .header-button {
        grid-column: 2;
        grid-row: 1;
    }

    .felling-grid,
    .about-grid,
    .contact-grid {
        grid-template-columns: 1fr;
    }

    .felling-grid {
        min-height: 0;
    }

    .about-image {
        max-width: 680px;
    }

    .hero-copy h1 {
        font-size: 3.85rem;
    }

    .services-heading {
        padding-right: 0;
    }

    .service-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .footer-inner {
        grid-template-columns: 1fr;
        justify-items: start;
    }

    .footer-inner > span {
        justify-self: start;
    }
}

@media (max-width: 640px) {
    .section-inner,
    .header-inner {
        width: min(100% - 28px, 1110px);
    }

    .header-inner {
        min-height: 76px;
        grid-template-columns: 1fr;
        gap: 12px;
        padding: 13px 0 0;
    }

    .brand {
        font-size: 1.36rem;
    }

    .brand-mark {
        width: 48px;
        height: 48px;
        flex-basis: 48px;
    }

    .header-button {
        display: none;
    }

    .main-nav {
        width: 100%;
        justify-content: space-between;
        gap: 10px;
        padding-bottom: 13px;
    }

    .hero {
        padding: 28px 0 34px;
        background:
            linear-gradient(90deg, rgba(249, 246, 238, 0.99) 0%, rgba(249, 246, 238, 0.95) 70%, rgba(249, 246, 238, 0.64) 100%),
            url("assets/trepleie-sketch-background.webp") calc(100% + 135px) 8px / 520px auto no-repeat,
            var(--paper);
    }

    .hero-layout {
        gap: 24px;
    }

    .hero-copy h1 {
        font-size: 2.85rem;
    }

    .hero-copy > p {
        font-size: 1rem;
        line-height: 1.7;
    }

    .hero-actions {
        gap: 10px;
        margin-top: 22px;
    }

    .hero-actions .button {
        min-height: 46px;
        padding-inline: 19px;
    }

    .trust-grid {
        min-height: auto;
        grid-template-columns: 1fr;
        gap: 0;
        padding: 8px 0;
    }

    .trust-item {
        justify-content: flex-start;
        padding: 12px 0;
    }

    .section {
        padding: 52px 0;
    }

    .felling-points,
    .form-row {
        grid-template-columns: 1fr;
    }

    .felling-section {
        background:
            linear-gradient(90deg, rgba(249, 246, 238, 0.99) 0%, rgba(249, 246, 238, 0.92) 70%, rgba(249, 246, 238, 0.42) 100%),
            url("assets/tree-rings-background.webp") calc(100% + 130px) center / auto 100% no-repeat,
            var(--paper);
    }

    .felling-points article {
        min-height: 0;
    }

    .service-card {
        min-height: 0;
        padding: 20px 16px;
    }

    .card-icon {
        width: 44px;
        height: 44px;
        margin-bottom: 15px;
    }

    .card-icon svg {
        width: 32px;
        height: 32px;
    }

    .service-card h3 {
        min-height: 56px;
        margin-bottom: 9px;
        font-size: 1.15rem;
    }

    .service-card p {
        font-size: 0.84rem;
        line-height: 1.5;
    }

    .about-image img {
        aspect-ratio: 1.16 / 1;
    }

    .contact-details div {
        grid-template-columns: 1fr;
        gap: 2px;
    }

    .contact-form button {
        width: 100%;
    }

    .site-footer nav {
        gap: 20px;
        flex-wrap: wrap;
    }
}
