:root {
    --color-primary: #1d7b72;
    --color-primary-light: #2ea796;
    --color-dark: #1f2b2d;
    --color-muted: #677075;
    --color-light: #f5f7f6;
    --radius-large: 22px;
    --radius-medium: 16px;
    --radius-small: 10px;
    --shadow-soft: 0 12px 30px rgba(15, 31, 36, 0.12);
    --shadow-card: 0 18px 45px rgba(15, 31, 36, 0.16);
    font-size: 16px;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: 'Inter', sans-serif;
    color: var(--color-dark);
    background: #ffffff;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

a {
    color: var(--color-primary);
    text-decoration: none;
}

a:hover,
a:focus-visible {
    color: var(--color-primary-light);
}

img {
    max-width: 100%;
    display: block;
}

button {
    font-family: inherit;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

.top {
    position: sticky;
    top: 0;
    z-index: 20;
    background: rgba(255, 255, 255, 0.95);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    backdrop-filter: blur(8px);
}

.top__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: min(100% - 3rem, 1120px);
    margin: 0 auto;
    padding: 1.1rem 0;
}

.brand {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--color-dark);
}

.nav {
    display: flex;
    gap: 1.6rem;
    align-items: center;
}

.nav a {
    font-weight: 500;
    color: var(--color-dark);
}

.nav__cta {
    padding: 0.55rem 1.4rem;
    border-radius: 999px;
    background: var(--color-primary);
    color: #ffffff !important;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 0.25rem;
    background: transparent;
    border: none;
    padding: 0.25rem;
    cursor: pointer;
}

.nav-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--color-dark);
}

.hero {
    background: linear-gradient(135deg, #18685f, #249986);
    color: #ffffff;
    padding: clamp(3.5rem, 6vw, 6.5rem) 0;
}

.hero__content {
    width: min(100% - 3rem, 1120px);
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: clamp(2rem, 5vw, 4rem);
    align-items: center;
}

.hero__text {
    grid-column: span 7;
}

.hero__media {
    grid-column: span 5;
    border-radius: var(--radius-large);
    overflow: hidden;
    box-shadow: var(--shadow-soft);
}

.hero__media img {
    height: 100%;
    object-fit: cover;
}

.eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.18em;
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.75);
    margin-bottom: 0.75rem;
}

.hero h1 {
    font-size: clamp(2.3rem, 5vw, 3.4rem);
    line-height: 1.2;
    margin: 0 0 1.1rem;
}

.hero__lead {
    margin: 0 0 1.6rem;
    color: rgba(255, 255, 255, 0.9);
}

.hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.9rem;
    margin-bottom: 1.6rem;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    border-radius: 999px;
    padding: 0.85rem 1.8rem;
    border: 1px solid transparent;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn-primary {
    background: #ffffff;
    color: var(--color-primary);
    box-shadow: 0 12px 28px rgba(255, 255, 255, 0.22);
}

.btn-outline {
    border: 1px solid rgba(255, 255, 255, 0.55);
    color: #ffffff;
    background: transparent;
}

.btn:hover,
.btn:focus-visible {
    transform: translateY(-2px);
}

.hero__list {
    margin: 0;
    padding-left: 1.1rem;
    color: rgba(255, 255, 255, 0.85);
}

.hero__list li + li {
    margin-top: 0.35rem;
}

.about {
    padding: clamp(3.5rem, 6vw, 6rem) 0;
}

.about__layout {
    width: min(100% - 3rem, 1120px);
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: clamp(2rem, 5vw, 4rem);
    align-items: center;
}

.about__image {
    grid-column: span 5;
    border-radius: var(--radius-large);
    overflow: hidden;
    box-shadow: var(--shadow-soft);
}

.about__text {
    grid-column: span 7;
}

.about__text h2 {
    margin: 0 0 1.2rem;
    font-size: clamp(2rem, 4vw, 2.7rem);
}

.section-heading {
    width: min(100% - 3rem, 1120px);
    margin: 0 auto clamp(2rem, 5vw, 3rem);
    text-align: center;
}

.section-heading h2 {
    margin: 0 0 0.6rem;
    font-size: clamp(2rem, 4vw, 2.6rem);
}

.section-heading p {
    margin: 0;
    color: var(--color-muted);
}

.services {
    background: var(--color-light);
    padding: clamp(3.5rem, 6vw, 6rem) 0;
}

.services__grid {
    width: min(100% - 3rem, 1120px);
    margin: 0 auto;
    display: grid;
    gap: 1.5rem;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.card {
    background: #ffffff;
    border-radius: var(--radius-medium);
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    display: flex;
    flex-direction: column;
}

.card img {
    height: 200px;
    object-fit: cover;
}

.card__body {
    padding: 1.5rem;
}

.card__body h3 {
    margin: 0 0 0.6rem;
    font-size: 1.1rem;
}

.card__body p {
    margin: 0;
    color: var(--color-muted);
}

.projects {
    padding: clamp(3.5rem, 6vw, 6rem) 0;
}

.projects__grid {
    width: min(100% - 3rem, 1120px);
    margin: 0 auto;
    display: grid;
    gap: 1.5rem;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.project-card {
    border: none;
    border-radius: var(--radius-medium);
    overflow: hidden;
    background: #ffffff;
    box-shadow: var(--shadow-soft);
    cursor: pointer;
    text-align: left;
    padding: 0;
    display: flex;
    flex-direction: column;
}

.project-card:focus-visible {
    outline: 3px solid var(--color-primary-light);
    outline-offset: 3px;
}

.project-card__image {
    width: 100%;
    height: 220px;
    background-size: cover;
    background-position: center;
}

.project-card__content {
    padding: 1.6rem;
}

.project-card__content h3 {
    margin: 0 0 0.55rem;
    font-size: 1.15rem;
}

.project-card__content p {
    margin: 0;
    color: var(--color-muted);
}

.cta {
    background: radial-gradient(circle at top left, rgba(46, 167, 150, 0.18), transparent 55%),
                radial-gradient(circle at bottom right, rgba(29, 123, 114, 0.18), transparent 50%),
                #ffffff;
    padding: clamp(3rem, 5vw, 5rem) 1.5rem;
}

.cta__content {
    width: min(100% - 3rem, 720px);
    margin: 0 auto;
    text-align: center;
    display: grid;
    gap: 1.2rem;
}

.cta__content h2 {
    margin: 0;
    font-size: clamp(2rem, 4vw, 2.6rem);
}

.contact {
    background: var(--color-light);
    padding: clamp(3.5rem, 6vw, 6rem) 0;
}

.contact__layout {
    width: min(100% - 3rem, 1120px);
    margin: 0 auto;
    display: grid;
    gap: 2rem;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    align-items: start;
}

.contact__list,
.contact__links ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 0.5rem;
}

.contact__info h2,
.contact__links h3,
.contact__cta h3 {
    margin: 0 0 0.8rem;
}

.contact__cta p {
    margin: 0 0 1rem;
    color: var(--color-muted);
}

.site-footer {
    text-align: center;
    padding: 1.8rem 1rem;
    font-size: 0.95rem;
    color: var(--color-muted);
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

/* Lightbox */
.lightbox {
    position: fixed;
    inset: 0;
    background: rgba(12, 24, 27, 0.84);
    display: none;
    align-items: center;
    justify-content: center;
    padding: clamp(1.5rem, 5vw, 3rem);
    z-index: 40;
}

.lightbox.is-open {
    display: flex;
}

.lightbox__dialog {
    position: relative;
    width: min(900px, 100%);
    background: rgba(255, 255, 255, 0.96);
    border-radius: var(--radius-large);
    box-shadow: var(--shadow-card);
    padding: clamp(1.4rem, 4vw, 2.4rem);
}

.lightbox__close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    border: none;
    background: rgba(12, 24, 27, 0.75);
    color: #ffffff;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    font-size: 1.4rem;
    cursor: pointer;
}

.lightbox__body {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.lightbox__image-wrapper {
    width: 100%;
    border-radius: var(--radius-medium);
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    background: #0f1f24;
}

.lightbox__image {
    width: 100%;
    height: clamp(260px, 50vh, 460px);
    object-fit: cover;
}

.lightbox__nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    border: none;
    background: rgba(12, 24, 27, 0.75);
    color: #ffffff;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    cursor: pointer;
}

.lightbox__nav:hover,
.lightbox__nav:focus-visible {
    background: rgba(29, 123, 114, 0.85);
}

.lightbox__nav:disabled {
    opacity: 0;
    pointer-events: none;
}

.lightbox__nav--prev {
    left: clamp(0.6rem, 2vw, 1.4rem);
}

.lightbox__nav--next {
    right: clamp(0.6rem, 2vw, 1.4rem);
}

.lightbox__info {
    margin-top: 1.5rem;
    display: grid;
    gap: 0.4rem;
}

.lightbox__title {
    margin: 0;
    font-size: 1.35rem;
    color: var(--color-dark);
}

.lightbox__description,
.lightbox__count {
    margin: 0;
    color: var(--color-muted);
}

.lightbox__count {
    font-size: 0.9rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

@media (max-width: 960px) {
    .hero__content,
    .about__layout {
        grid-template-columns: 1fr;
    }

    .hero__media,
    .about__image {
        order: -1;
    }
}

@media (max-width: 720px) {
    .top__inner {
        padding-inline: 1.2rem;
    }

    .nav-toggle {
        display: flex;
    }

    .nav {
        position: absolute;
        top: 70px;
        right: 20px;
        background: #ffffff;
        border-radius: var(--radius-medium);
        box-shadow: var(--shadow-card);
        padding: 1.25rem 1.5rem;
        display: none;
        flex-direction: column;
        gap: 1rem;
        min-width: 200px;
    }

    .nav.is-open {
        display: flex;
    }

    .hero__media img {
        height: auto;
    }
}

@media (max-width: 540px) {
    .btn {
        width: 100%;
        text-align: center;
    }

    .hero__actions {
        flex-direction: column;
    }

    .lightbox__image {
        height: clamp(220px, 45vh, 340px);
    }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        transition: none !important;
        animation: none !important;
    }
}
