:root {
    --color-primary: #17b3bb;
    --color-primary-dark: #1098a0;
    --color-secondary: #757574;
    --color-secondary-dark: #4d4d4d;
    --color-text: #1e2528;
    --color-muted: #69777d;
    --color-surface: #ffffff;
    --color-surface-alt: #f4f8f8;
    --color-border: rgba(17, 179, 187, 0.14);
    --color-shadow: rgba(25, 42, 46, 0.12);
    --gradient-soft: linear-gradient(135deg, rgba(23, 179, 187, 0.12), rgba(117, 117, 116, 0.08));
    --radius-lg: 28px;
    --radius-md: 20px;
    --radius-sm: 14px;
    --container: 1180px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: 'Open Sans', sans-serif;
    color: var(--color-text);
    background:
        radial-gradient(circle at top left, rgba(23, 179, 187, 0.14), transparent 24%),
        radial-gradient(circle at bottom right, rgba(117, 117, 116, 0.12), transparent 28%),
        #fbfdfd;
}

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

a {
    color: inherit;
    text-decoration: none;
}

main {
    overflow: hidden;
}

.container {
    width: min(calc(100% - 2rem), var(--container));
    margin: 0 auto;
}

.section,
.page-intro {
    padding: 4.5rem 0;
}

.section-heading {
    max-width: 760px;
    margin-bottom: 2.5rem;
}

.section-heading h2,
.page-intro h1,
.hero-copy h1,
.cta-box h2 {
    margin: 0;
    line-height: 1.08;
    letter-spacing: -0.03em;
}

.eyebrow {
    margin: 0 0 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--color-primary-dark);
}

.section-heading p:last-child,
.hero-text,
.page-intro p,
.legal-copy p {
    color: var(--color-muted);
    line-height: 1.7;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 30;
    backdrop-filter: blur(18px);
    background: rgba(251, 253, 253, 0.88);
    border-bottom: 1px solid rgba(17, 179, 187, 0.08);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    padding: 1rem 0;
}

.brand {
    display: inline-flex;
    align-items: center;
    min-width: 0;
    flex-shrink: 1;
}

.brand img {
    width: 240px;
    max-width: 100%;
    height: auto;
    background: transparent;
}

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

.site-nav a {
    position: relative;
    font-weight: 600;
    color: var(--color-secondary-dark);
}

.site-nav a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -0.35rem;
    width: 100%;
    height: 2px;
    background: var(--color-primary);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 180ms ease;
}

.site-nav a:hover::after,
.site-nav a.is-active::after {
    transform: scaleX(1);
}

.nav-toggle {
    display: none;
    border: 0;
    background: transparent;
    padding: 0;
}

.nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    margin: 5px 0;
    background: var(--color-secondary-dark);
}

.hero {
    padding: 4rem 0 3rem;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 2rem;
    align-items: stretch;
}

.hero-copy {
    padding: 3rem;
    border-radius: var(--radius-lg);
    background: rgba(255, 255, 255, 0.82);
    box-shadow: 0 22px 70px -38px var(--color-shadow);
    border: 1px solid rgba(17, 179, 187, 0.09);
}

.hero-copy h1 {
    font-size: clamp(2.4rem, 5vw, 4.6rem);
    margin-bottom: 1.2rem;
}

.hero-actions,
.centered-action {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.centered-action {
    justify-content: center;
    margin-top: 2.2rem;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 52px;
    padding: 0.9rem 1.35rem;
    border-radius: 999px;
    font-weight: 700;
    transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.button:hover {
    transform: translateY(-1px);
}

.button-primary {
    color: #fff;
    background: linear-gradient(135deg, var(--color-primary), #0fc4ce);
    box-shadow: 0 18px 35px -24px rgba(23, 179, 187, 0.75);
}

.button-secondary {
    color: var(--color-secondary-dark);
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(117, 117, 116, 0.18);
}

.hero-visual {
    position: relative;
    min-height: 520px;
    padding: 1.25rem;
    border-radius: 34px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.72)),
        linear-gradient(150deg, rgba(23, 179, 187, 0.95), rgba(117, 117, 116, 0.88));
    overflow: hidden;
}

.hero-visual::before,
.hero-visual::after {
    content: '';
    position: absolute;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.18);
}

.hero-visual::before {
    width: 280px;
    height: 280px;
    right: -70px;
    top: -50px;
}

.hero-visual::after {
    width: 220px;
    height: 220px;
    left: -50px;
    bottom: -40px;
}

.hero-card {
    position: absolute;
    right: 1.5rem;
    width: 220px;
    padding: 1.3rem;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.86);
    box-shadow: 0 24px 50px -35px rgba(0, 0, 0, 0.45);
    animation: heroFloat 8.5s ease-in-out infinite;
    will-change: transform;
}

.hero-card span {
    display: block;
    margin-bottom: 0.45rem;
    font-size: 0.88rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--color-primary-dark);
}

.hero-card strong {
    font-size: 1.15rem;
}

.hero-card-large {
    left: 1.5rem;
    right: auto;
    top: 3rem;
    width: 280px;
    animation-duration: 9.5s;
    animation-delay: -1.4s;
}

.hero-card:nth-child(2) {
    bottom: 8.5rem;
    animation-duration: 7.8s;
    animation-delay: -3.2s;
}

.hero-card:nth-child(3) {
    bottom: 2rem;
    animation-duration: 8.8s;
    animation-delay: -5.1s;
}

@keyframes heroFloat {
    0% {
        transform: translate3d(0, 0, 0);
    }

    25% {
        transform: translate3d(0, -8px, 0);
    }

    50% {
        transform: translate3d(-6px, -14px, 0);
    }

    75% {
        transform: translate3d(4px, -6px, 0);
    }

    100% {
        transform: translate3d(0, 0, 0);
    }
}

.services-grid.compact {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.4rem;
}

.service-card,
.project-card,
.testimonial-card,
.contact-card,
.service-detail-card,
.cta-box {
    border: 1px solid var(--color-border);
    background: rgba(255, 255, 255, 0.88);
    box-shadow: 0 24px 60px -42px var(--color-shadow);
}

.service-card {
    position: relative;
    padding: 1.6rem;
    border-radius: 24px;
    min-height: 220px;
}

.service-index {
    width: 56px;
    height: 56px;
    margin-bottom: 1.2rem;
    border-radius: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(23, 179, 187, 0.16), rgba(117, 117, 116, 0.08));
    color: var(--color-primary-dark);
}

.service-index svg,
.service-detail-icon svg {
    width: 28px;
    height: 28px;
    fill: none;
    stroke: currentColor;
}

.service-card h3,
.project-card h3,
.testimonial-name,
.service-detail-content h2,
.contact-card h2,
.legal-copy h2 {
    margin: 0 0 0.75rem;
}

.service-card p,
.project-card p,
.testimonial-card blockquote,
.service-detail-content p {
    margin: 0;
    color: var(--color-muted);
    line-height: 1.7;
}

.accent-section {
    background: linear-gradient(180deg, rgba(23, 179, 187, 0.05), rgba(23, 179, 187, 0.01));
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.5rem;
}

.project-card {
    border-radius: 26px;
    overflow: hidden;
}

.project-card img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    background: #eef5f5;
}

.project-card-content {
    padding: 1.35rem;
}

.project-location {
    margin-bottom: 0.35rem;
    color: var(--color-primary-dark);
    font-size: 0.92rem;
    font-weight: 700;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1.4rem;
}

.testimonial-card {
    padding: 1.5rem;
    border-radius: 24px;
}

.testimonial-avatar {
    width: 74px;
    height: 74px;
    margin-bottom: 0.9rem;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    letter-spacing: 0.04em;
    color: var(--color-secondary-dark);
    background: linear-gradient(135deg, rgba(23, 179, 187, 0.2), rgba(117, 117, 116, 0.12));
}

.testimonial-stars {
    margin-bottom: 0.8rem;
    font-size: 1rem;
    letter-spacing: 0.14em;
    color: #f0b94b;
}

.testimonial-card blockquote {
    min-height: 168px;
    font-style: normal;
}

.testimonial-name {
    margin-top: 1rem;
    font-weight: 700;
    color: var(--color-secondary-dark);
}

.cta-section {
    padding-top: 0;
}

.cta-box {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    padding: 2rem 2.2rem;
    border-radius: 28px;
}

.page-intro {
    padding-bottom: 2rem;
}

.services-grid.detailed {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.5rem;
}

.service-detail-card {
    display: grid;
    grid-template-columns: 210px 1fr;
    gap: 1.4rem;
    align-items: stretch;
    padding: 1rem;
    border-radius: 28px;
}

.service-detail-card img {
    width: 100%;
    height: 100%;
    min-height: 220px;
    object-fit: cover;
    border-radius: 20px;
}

.service-detail-content {
    padding: 0.6rem 0.2rem;
}

.service-detail-icon {
    width: 54px;
    height: 54px;
    margin-bottom: 1rem;
    border-radius: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--color-primary-dark);
    background: linear-gradient(135deg, rgba(23, 179, 187, 0.16), rgba(117, 117, 116, 0.08));
}

.contact-intro {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 2rem;
    align-items: start;
}

.contact-details {
    display: grid;
    gap: 1rem;
    margin-top: 2rem;
}

.contact-card {
    padding: 1.8rem;
    border-radius: 28px;
}

.contact-form {
    display: grid;
    gap: 1rem;
}

.contact-form label {
    display: grid;
    gap: 0.45rem;
    font-weight: 600;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    border: 1px solid rgba(117, 117, 116, 0.2);
    border-radius: 16px;
    padding: 0.95rem 1rem;
    font: inherit;
    background: #fff;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: 2px solid rgba(23, 179, 187, 0.22);
    border-color: var(--color-primary);
}

.hidden-field {
    position: absolute;
    left: -9999px;
}

.form-message {
    padding: 0.95rem 1rem;
    border-radius: 14px;
    line-height: 1.55;
}

.form-message.success {
    color: #0f6a5d;
    background: rgba(12, 180, 138, 0.12);
}

.form-message.error {
    color: #9f3d3d;
    background: rgba(214, 63, 63, 0.11);
}

.legal-page {
    padding-top: 4rem;
}

.legal-copy {
    max-width: 860px;
}

.site-footer {
    padding: 2rem 0 2.5rem;
    border-top: 1px solid rgba(17, 179, 187, 0.08);
}

.footer-grid,
.footer-bottom {
    display: flex;
    justify-content: space-between;
    gap: 1.5rem;
}

.footer-grid {
    margin-bottom: 1rem;
}

.footer-grid p,
.footer-bottom p,
.footer-links a {
    color: var(--color-muted);
}

.footer-links {
    display: flex;
    gap: 1rem;
}

@media (max-width: 1080px) {
    .hero-grid,
    .contact-intro,
    .services-grid.detailed,
    .projects-grid,
    .testimonials-grid {
        grid-template-columns: 1fr 1fr;
    }

    .hero-visual {
        min-height: 420px;
    }

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

@media (max-width: 820px) {
    .header-inner {
        gap: 1rem;
        padding: 0.8rem 0;
    }

    .brand img {
        width: min(44vw, 190px);
    }

    .nav-toggle {
        display: block;
        flex-shrink: 0;
    }

    .site-nav {
        position: absolute;
        top: 100%;
        right: 1rem;
        left: 1rem;
        display: none;
        flex-direction: column;
        align-items: flex-start;
        padding: 1rem;
        border-radius: 20px;
        background: rgba(255, 255, 255, 0.98);
        box-shadow: 0 24px 60px -44px rgba(0, 0, 0, 0.48);
    }

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

    .hero-grid,
    .contact-intro,
    .services-grid.detailed,
    .projects-grid,
    .testimonials-grid,
    .services-grid.compact,
    .footer-grid,
    .footer-bottom,
    .cta-box {
        grid-template-columns: 1fr;
        flex-direction: column;
        align-items: flex-start;
    }

    .hero-copy,
    .hero-visual {
        padding: 1.5rem;
    }

    .hero-visual {
        min-height: auto;
        display: grid;
        gap: 0.9rem;
        padding: 1.2rem;
    }

    .hero-card,
    .hero-card-large {
        position: static;
        width: 100%;
        margin-bottom: 0;
        box-shadow: 0 18px 36px -30px rgba(0, 0, 0, 0.28);
        animation: none;
        will-change: auto;
    }

    .hero-card strong {
        display: block;
    }

    .hero-card:nth-child(2),
    .hero-card:nth-child(3) {
        bottom: auto;
    }

    .hero-card-large {
        width: 100%;
    }

    .service-detail-card {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 560px) {
    .site-header {
        backdrop-filter: blur(10px);
    }

    .section,
    .page-intro,
    .hero {
        padding: 3.5rem 0;
    }

    .container {
        width: min(calc(100% - 1.2rem), var(--container));
    }

    .hero-copy h1,
    .page-intro h1,
    .section-heading h2,
    .cta-box h2 {
        font-size: clamp(2rem, 9vw, 2.8rem);
    }

    .hero-copy {
        padding: 2rem 1.35rem;
    }

    .hero-text {
        font-size: 1.05rem;
    }

    .brand img {
        width: min(52vw, 176px);
    }

    .nav-toggle span {
        width: 22px;
    }

    .hero-actions,
    .centered-action {
        width: 100%;
        flex-direction: column;
        align-items: stretch;
    }

    .button {
        width: 100%;
    }

    .hero-visual {
        gap: 0.75rem;
        border-radius: 28px;
    }

    .hero-card,
    .hero-card-large {
        padding: 1rem 1.1rem;
        border-radius: 20px;
    }

    .testimonial-card blockquote {
        min-height: 0;
    }

    .site-footer {
        padding-top: 1rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .hero-card,
    .hero-card-large {
        animation: none;
        will-change: auto;
    }

    .button,
    .site-nav a::after {
        transition: none;
    }
}
