:root {
    --white: #ffffff;
    --black: #111111;
    --text: #333333;
    --muted: #5e5e5e;
    --line: #33e8d1;
    --soft: #f5f5f5;
    --soft-alt: #e9e9e9;
    --dark: #4a4a4a;
    --border: rgba(0, 0, 0, 0.08);
    --shadow: 0 18px 40px rgba(0, 0, 0, 0.08);
    --container: min(1360px, calc(100% - 3rem));
    --header-height: 90px;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-width: 320px;
    color: var(--text);
    background: var(--white);
    font-family: "Open Sans", sans-serif;
    line-height: 1.7;
}

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

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

button,
input,
textarea {
    font: inherit;
}

button {
    cursor: pointer;
}

.container {
    width: var(--container);
    margin: 0 auto;
}

.skip-link {
    position: absolute;
    top: -48px;
    left: 16px;
    z-index: 1000;
    padding: 0.8rem 1rem;
    background: #000;
    color: #fff;
    border-radius: 10px;
}

.skip-link:focus {
    top: 12px;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: #ffffff;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    transition: box-shadow 0.2s ease, background 0.2s ease;
}

.site-header.scrolled {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.header-shell {
    min-height: var(--header-height);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2.5rem;
}

.brand {
    order: 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.brand img {
    width: 190px;
    height: auto;
}

.site-nav {
    order: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2.5rem;
    flex: 1;
}

.site-nav a {
    font-family: "Open Sans", sans-serif;
    font-size: 0.96rem;
    color: #000;
    position: relative;
}

.site-nav a::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -0.75rem;
    width: 100%;
    height: 2px;
    background: var(--line);
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 0.2s ease;
}

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

.menu-toggle {
    display: none;
    order: 3;
    width: 52px;
    height: 52px;
    padding: 0;
    border: 1px solid rgba(0, 0, 0, 0.12);
    border-radius: 14px;
    background: transparent;
}

.menu-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    margin: 4px auto;
    border-radius: 999px;
    background: #111;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.menu-open .menu-toggle span:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
}

.menu-open .menu-toggle span:nth-child(2) {
    opacity: 0;
}

.menu-open .menu-toggle span:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
}

.hero-section {
    position: relative;
    min-height: 76vh;
    overflow: hidden;
    background: #2e2e2e;
}

.hero-media,
.hero-media::after {
    position: absolute;
    inset: 0;
}

.hero-media {
    z-index: 0;
}

.hero-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    filter: grayscale(8%);
}

.hero-media::after {
    content: "";
    background: rgba(0, 0, 0, 0.58);
}

.hero-layout {
    position: relative;
    z-index: 1;
    min-height: 76vh;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(360px, 0.8fr);
    align-items: start;
    align-content: start;
    gap: 2rem;
    padding-top: 4.25rem;
    padding-bottom: 2.5rem;
}

.hero-copy,
.hero-quote-block {
    color: var(--white);
}

.hero-copy {
    align-self: start;
}

.hero-title {
    margin: 0;
    font-family: "Playfair Display", serif;
    font-style: italic;
    font-weight: 700;
    font-size: clamp(3.6rem, 7.5vw, 6.3rem);
    line-height: 0.98;
    letter-spacing: -0.03em;
    text-shadow: 0 3px 12px rgba(0, 0, 0, 0.28);
}

.hero-title span {
    display: block;
    margin-bottom: 1.25rem;
}

.hero-divider,
.title-divider,
.clients-divider {
    width: 255px;
    height: 3px;
    background: var(--line);
}

.hero-divider {
    margin-top: 2rem;
}

.hero-quote-block {
    text-align: right;
    align-self: start;
    padding-top: 8.5rem;
}

.hero-quote {
    margin: 0;
    font-family: "Open Sans", sans-serif;
    font-size: clamp(1.5rem, 2.5vw, 2.1rem);
    line-height: 1.05;
    font-style: italic;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
}

.hero-quote-author {
    margin: 1.4rem 0 0;
    font-size: 1rem;
    font-weight: 600;
}

.section {
    padding: 5.5rem 0;
}

.section-heading {
    margin-bottom: 2.75rem;
}

.section-heading-centered {
    text-align: center;
    max-width: 1180px;
    margin-left: auto;
    margin-right: auto;
}

.section-heading h2,
.section-heading-contact h2 {
    margin: 0;
    font-family: "Playfair Display", serif;
    font-style: italic;
    font-weight: 700;
    font-size: clamp(3rem, 5vw, 4.9rem);
    line-height: 1;
    color: #3b3b3b;
}

.section-heading-light h2 {
    color: var(--white);
    text-shadow: 0 3px 12px rgba(0, 0, 0, 0.2);
}

.title-divider {
    margin: 1.15rem auto 0;
}

.section-heading p,
.contact-panel p {
    max-width: 1180px;
    margin: 1.35rem auto 0;
    font-size: 1.03rem;
    color: #454545;
}

.section-quote {
    font-size: 1rem;
    font-weight: 700;
    color: #333;
}

.section-services {
    padding-top: 4.25rem;
    padding-bottom: 0;
}

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

.service-card-reference {
    min-height: 330px;
    padding: 3.5rem 3.7rem;
    background: var(--soft);
}

.service-card-reference.is-alt {
    background: var(--soft-alt);
}

.service-card-shell {
    display: grid;
    grid-template-columns: 66px 1fr;
    gap: 1.35rem;
    align-items: start;
}

.service-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 66px;
    height: 66px;
    color: #404040;
}

.service-icon svg {
    width: 56px;
    height: 56px;
    fill: currentColor;
}

.service-copy h3 {
    margin: 0 0 1.1rem;
    color: #3e3e3e;
    font-family: "Poppins", sans-serif;
    font-weight: 600;
    font-size: 0.98rem;
    line-height: 1.5;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.service-copy p {
    margin: 0;
    color: #2f2f2f;
    font-size: 1rem;
}

.section-about {
    background: var(--white);
    padding-top: 4.75rem;
}

.team-grid-reference {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.team-card-reference {
    background: #fff;
    border-radius: 0;
    border: 0;
    box-shadow: none;
    text-align: center;
}

.team-photo {
    width: 251px;
    max-width: 100%;
    margin: 0 auto 1.3rem;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    border-radius: 999px;
    background: #f0f0f0;
}

.team-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.team-body {
    padding: 0 1rem;
}

.team-body h3 {
    margin: 0 0 0.35rem;
    font-family: "Poppins", sans-serif;
    font-size: 1.2rem;
    color: #2f2f2f;
}

.team-role {
    margin: 0 0 0.9rem;
    color: #5a5a5a;
    font-weight: 600;
    font-size: 0.95rem;
}

.team-body p {
    margin: 0;
    color: #4c4c4c;
    font-size: 0.96rem;
}

.social-links {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.8rem;
    margin-top: 1.15rem;
}

.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 999px;
    background: #4a4a4a;
    color: #fff;
    transition: transform 0.2s ease, background 0.2s ease;
}

.social-links a:hover,
.social-links a:focus-visible {
    transform: translateY(-2px);
    background: #2f2f2f;
}

.social-links svg,
.contact-card span svg,
.floating-whatsapp svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

.section-clients {
    background: #4c4c4c;
    padding-top: 6rem;
    padding-bottom: 4rem;
}

.clients-grid-reference {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 1rem;
    align-items: center;
    margin-top: 3rem;
}

.client-card {
    min-height: 118px;
    padding: 1.3rem;
    background: rgba(255, 255, 255, 0.95);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: none;
}

.client-card img {
    max-width: 100%;
    max-height: 72px;
    width: auto;
    height: auto;
}

.clients-divider {
    margin: 4.5rem auto 0;
}

.section-contact {
    background: #fff;
}

.contact-layout {
    display: grid;
    grid-template-columns: minmax(320px, 0.85fr) minmax(0, 1.15fr);
    gap: 3rem;
    align-items: start;
}

.contact-simple {
    max-width: 1160px;
}

.section-heading-contact-simple {
    margin-bottom: 2rem;
}

.section-heading-contact-simple .title-divider {
    margin-top: 1rem;
}

.contact-simple-layout {
    display: flex;
    justify-content: center;
}

.contact-simple-list {
    display: grid;
    gap: 1.35rem;
    width: fit-content;
    max-width: 100%;
    margin: 0 auto;
    justify-items: center;
}

.contact-simple-item {
    display: grid;
    grid-template-columns: auto auto;
    gap: 1.05rem;
    align-items: center;
    color: #666666;
    width: fit-content;
}

.contact-simple-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 54px;
    height: 54px;
    color: #4b4b4b;
}

.contact-simple-icon svg {
    width: 38px;
    height: 38px;
    fill: currentColor;
}

.contact-simple-text {
    font-size: clamp(1.02rem, 1.55vw, 1.25rem);
    line-height: 1.25;
}

.site-footer {
    background: linear-gradient(180deg, #545454, #444444);
    color: #fff;
    padding: 2.5rem 0 1.5rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr 0.8fr;
    gap: 1.5rem;
}

.footer-brand-block {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0;
}

.footer-label,
.footer-bottom p {
    color: rgba(255, 255, 255, 0.78);
}

.footer-label {
    margin: 0 0 0.8rem;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
}

.footer-logo {
    width: 180px;
    height: auto;
    filter: brightness(0) invert(1);
    opacity: 0.95;
}

.site-footer a,
.site-footer span {
    display: block;
    margin-bottom: 0.5rem;
}

.footer-socials {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    margin-top: 0.2rem;
}

.footer-socials a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #ffffff;
    margin-bottom: 0;
    transition: background 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
}

.footer-socials a:hover,
.footer-socials a:focus-visible {
    background: rgba(255, 255, 255, 0.16);
    border-color: rgba(255, 255, 255, 0.22);
    transform: translateY(-2px);
}

.footer-socials svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
}

.footer-bottom {
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.floating-whatsapp,
.back-to-top {
    position: fixed;
    right: 1rem;
    z-index: 45;
    width: 56px;
    height: 56px;
    border: 0;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    box-shadow: 0 16px 28px rgba(0, 0, 0, 0.18);
    transition: transform 0.2s ease, opacity 0.2s ease, visibility 0.2s ease;
}

.floating-whatsapp {
    bottom: 1rem;
    background: #18b76a;
}

.back-to-top {
    bottom: 5.2rem;
    background: #4a4a4a;
    opacity: 0;
    visibility: hidden;
    transform: translateY(12px);
}

.back-to-top.is-visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.floating-whatsapp:hover,
.floating-whatsapp:focus-visible,
.back-to-top:hover,
.back-to-top:focus-visible {
    transform: translateY(-2px);
}

[data-reveal] {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 1.35s ease, transform 1.35s ease;
}

[data-reveal="fade-left"] {
    transform: translateX(18px);
}

[data-reveal="fade-right"] {
    transform: translateX(-18px);
}

[data-reveal].is-visible {
    opacity: 1;
    transform: translate(0, 0);
}

code {
    padding: 0.08rem 0.35rem;
    background: rgba(0, 0, 0, 0.06);
}

@media (max-width: 1080px) {
    .hero-layout,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .hero-quote-block {
        text-align: left;
        padding-top: 1rem;
    }

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

    .contact-simple-layout {
        justify-content: center;
    }
}

@media (max-width: 820px) {
    :root {
        --header-height: 78px;
        --container: min(100%, calc(100% - 1.5rem));
    }

    .header-shell {
        justify-content: space-between;
        gap: 1rem;
    }

    .brand {
        order: 2;
        margin-left: auto;
        margin-right: auto;
    }

    .brand img {
        width: 150px;
    }

    .menu-toggle {
        display: inline-flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
    }

    .site-nav {
        position: absolute;
        top: calc(100% + 0.65rem);
        left: 0.75rem;
        right: 0.75rem;
        order: 4;
        display: grid;
        gap: 0;
        padding: 0.75rem;
        background: rgba(255, 255, 255, 0.98);
        border: 1px solid rgba(0, 0, 0, 0.08);
        box-shadow: 0 18px 36px rgba(0, 0, 0, 0.12);
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transform: translateY(-8px);
        transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
    }

    .site-nav a {
        padding: 0.85rem 0.7rem;
    }

    .site-nav a::after {
        bottom: 0.4rem;
    }

    .menu-open .site-nav {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        transform: translateY(0);
    }

    .hero-section,
    .hero-layout {
        min-height: 62vh;
    }

    .hero-layout {
        padding-top: 3.2rem;
        padding-bottom: 2rem;
    }

    .service-card-reference {
        min-height: auto;
    }
}

@media (max-width: 640px) {
    .section {
        padding: 4rem 0;
    }

    .hero-title {
        font-size: clamp(3rem, 16vw, 4.5rem);
    }

    .hero-quote {
        font-size: 1.3rem;
    }

    .hero-divider,
    .title-divider,
    .clients-divider {
        width: 180px;
    }

    .services-grid-reference,
    .team-grid-reference,
    .clients-grid-reference {
        grid-template-columns: 1fr;
    }

    .footer-brand-block {
        align-items: center;
        text-align: center;
    }

    .service-card-reference {
        padding: 2.25rem 1.4rem;
    }

    .service-card-shell {
        grid-template-columns: 56px 1fr;
        gap: 1rem;
    }

    .service-icon {
        width: 56px;
        height: 56px;
    }

    .service-icon svg {
        width: 44px;
        height: 44px;
    }

    .contact-simple-item {
        grid-template-columns: 42px 1fr;
        gap: 0.9rem;
    }

    .contact-simple-icon {
        width: 42px;
        height: 42px;
    }

    .contact-simple-icon svg {
        width: 30px;
        height: 30px;
    }

    .footer-socials {
        justify-content: center;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation: none !important;
        transition: none !important;
    }

    [data-reveal] {
        opacity: 1;
        transform: none;
    }
}
