:root {
    --color-bg: #d8d8d8;
    --color-ink: #070707;
    --color-muted: #616161;
    --color-accent: #ff5a1f;
    --color-accent-dark: #d94613;
    --color-soft: #f3f0e9;
    --color-line: rgba(0, 0, 0, 0.18);
    --font-display: "Playfair Display", Georgia, serif;
    --font-body: "Lato", Arial, sans-serif;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--color-bg);
    color: var(--color-ink);
    font-family: var(--font-body);
    line-height: 1.55;
}

a {
    color: inherit;
}

img {
    max-width: 100%;
    height: auto;
}

.screen-reader-text {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
}

.site-header {
    position: fixed;
    inset: 0 0 auto;
    z-index: 20;
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
    gap: 28px;
    padding: 24px clamp(20px, 4vw, 72px);
    color: #fff;
    transition: background 180ms ease, color 180ms ease, box-shadow 180ms ease;
}

.site-header.is-scrolled {
    background: rgba(216, 216, 216, 0.94);
    color: var(--color-ink);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    backdrop-filter: blur(12px);
}

.brand {
    display: inline-flex;
    align-items: center;
    flex: 0 0 auto;
    text-decoration: none;
}

.brand a {
    display: inline-flex;
    align-items: center;
}

.custom-logo {
    display: block;
    max-width: clamp(150px, 16vw, 240px);
    max-height: 58px;
    width: auto;
    height: auto;
    background: #fff;
}

.brand-text {
    font-family: var(--font-display);
    font-size: 30px;
    color: inherit;
    text-decoration: none;
}

.primary-nav {
    flex: 1 1 auto;
    min-width: 0;
}

.primary-nav ul,
.site-footer nav {
    display: flex;
    gap: 28px;
    padding: 0;
    margin: 0;
    list-style: none;
}

.primary-nav a,
.site-footer a {
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
}

.header-actions {
    display: flex;
    align-items: center;
    flex: 0 0 auto;
    gap: 14px;
}

.icon-link {
    display: inline-grid;
    width: 36px;
    height: 36px;
    place-items: center;
    border-radius: 50%;
    font-size: 12px;
    font-weight: 700;
    text-decoration: none;
}

.icon-link svg {
    width: 25px;
    height: 25px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.icon-link[aria-label="Facebook"] svg {
    fill: currentColor;
    stroke: none;
}

.whatsapp {
    background: #1fa855;
    color: #fff;
}

.whatsapp svg {
    fill: white;
    transform: translateX(6px);
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 45px;
    padding: 0 34px;
    border: 0;
    border-radius: 10px;
    background: #ff5a1fc4;
    color: #fff;
    font: 500 16px/1 var(--font-body);
    text-decoration: none;
    cursor: pointer;
}

.button:hover {
    background: var(--color-accent-dark);
}

.button-small {
    min-height: 45px;
    padding-inline: 34px;
}

.button-wide {
    width: 100%;
}

.nav-toggle {
    display: none;
    width: 44px;
    height: 44px;
    border: 0;
    background: transparent;
}

.nav-toggle span:not(.screen-reader-text) {
    display: block;
    width: 24px;
    height: 2px;
    margin: 5px auto;
    background: currentColor;
}

.hero {
    position: relative;
    overflow: hidden;
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 150px 20px 100px;
    color: #fff;
    text-align: center;
}

.hero::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    background: rgba(0, 0, 0, 0.42);
}

.hero-slides,
.hero-slide {
    position: absolute;
    inset: 0;
}

.hero-slides {
    z-index: 0;
    background: linear-gradient(135deg, #a49e94, #5b554d);
}

.hero-slide {
    opacity: 0;
    background-size: cover;
    background-position: center;
    transition: opacity 900ms ease;
}

.hero-slide.is-active {
    opacity: 1;
}

.hero-slide-fallback {
    background: linear-gradient(135deg, #a49e94, #5b554d);
}

.hero-content {
    position: relative;
    z-index: 2;
    width: min(980px, 100%);
}

.eyebrow {
    margin: 0 0 12px;
    color: var(--color-accent);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0;
}

.hero .eyebrow {
    color: #fff;
}

h1,
h2,
h3,
p {
    margin-top: 0;
}

h1,
h2 {
    font-family: var(--font-display);
    line-height: 0.98;
    letter-spacing: 0;
}

h1 {
    margin-bottom: 20px;
    font-size: clamp(46px, 6vw, 85px);
}

h2 {
    margin-bottom: 18px;
    font-size: clamp(36px, 4.5vw, 60px);
}

h3 {
    margin-bottom: 4px;
    font-size: 24px;
}

.services h3 {
    font-size: 20px;
}

.hero p:not(.eyebrow) {
    max-width: 720px;
    margin: 0 auto 64px;
    font-weight: 500;
}

.section {
    padding: 88px clamp(20px, 4vw, 64px);
}

.narrow {
    max-width: 980px;
    margin-inline: auto;
}

.intro {
    display: grid;
    grid-template-columns: none;
    gap: 48px;
    align-items: end;
}

.intro p:last-child {
    font-size: 20px;
}

.section-heading {
    max-width: 860px;
    margin-bottom: 40px;
}

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

.service-card {
    display: flex;
    min-height: 100%;
    flex-direction: column;
}

.service-image,
.project-image,
.project-modal-image,
.contact-image {
    background:
        radial-gradient(circle at 70% 30%, rgba(255, 255, 255, 0.72), transparent 28%),
        linear-gradient(135deg, #efe7db, #9f9487 48%, #f8f4ec);
}

.service-image {
    aspect-ratio: 1 / 1;
    margin-bottom: 20px;
    background-size: cover;
    background-position: center;
}

.service-price {
    color: var(--color-muted);
    font-size: small;
    font-weight: 400;
}

.service-card p:last-of-type {
    flex: 1;
}

.work {
    background: #ece8df;
}

.work-grid,
.testimonial-grid {
    display: grid;
    gap: 18px;
}

.work-grid {
    grid-template-columns: repeat(6, minmax(0, 1fr));
}

.testimonial-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.project-card {
    display: grid;
    gap: 14px;
    padding: 0;
    border: 0;
    background: transparent;
    color: inherit;
    text-align: left;
    cursor: pointer;
}

.project-image {
    display: block;
    aspect-ratio: 4 / 3;
    background-size: cover;
    background-position: center;
}

.project-image-2 {
    background:
        radial-gradient(circle at 34% 34%, rgba(255, 255, 255, 0.82), transparent 24%),
        linear-gradient(135deg, #6d6255, #f0e5d5);
}

.project-image-3 {
    background:
        radial-gradient(circle at 60% 62%, rgba(0, 0, 0, 0.18), transparent 30%),
        linear-gradient(135deg, #f5efe6, #b5a997);
}

.project-image.has-image {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.project-card strong,
.project-card small {
    display: block;
}

.project-card small {
    color: var(--color-muted);
}

.testimonial-grid figure {
    margin: 0;
    padding: 28px;
    border-top: 1px solid var(--color-line);
    background: rgba(255, 255, 255, 0.18);
}

.testimonial-grid blockquote {
    margin: 0 0 18px;
    font-family: var(--font-display);
    font-size: 22px;
    font-style: italic;
    line-height: 1.25;
}

.testimonial-grid blockquote::before {
    content: "\"";
}

.testimonial-grid blockquote::after {
    content: "\"";
}

.testimonial-grid figcaption {
    color: var(--color-muted);
    font-weight: 700;
}

.contact {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 780px;
}

.contact h2 {
    font-size: clamp(36px, 4.5vw, 45px);
}

.contact-form {
    padding: clamp(32px, 5vw, 72px);
}

.contact form {
    display: grid;
    gap: 26px;
    max-width: 720px;
}

.formlayer-embed {
    max-width: 720px;
}

.field-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

label {
    display: grid;
    gap: 8px;
    font-weight: 500;
}

input,
textarea {
    width: 100%;
    border: 0;
    border-bottom: 1px solid #777;
    border-radius: 0;
    background: transparent;
    color: inherit;
    font: inherit;
    outline: none;
}

textarea {
    resize: vertical;
}

.contact-image {
    min-height: 420px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.site-footer {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1.2fr;
    gap: 48px;
    padding: 48px clamp(20px, 4vw, 64px) 78px;
    background-color: #ff5a1f26;
    border-bottom: 6px solid #291329;
}

.footer-title {
    font-family: var(--font-display);
    font-size: 20px;
}

.site-footer nav,
.site-footer div:last-child {
    display: grid;
    gap: 4px;
    line-height: 1.25;
}

.site-footer nav ul {
    display: grid;
    gap: 4px;
    padding: 0;
    margin: 0;
    list-style: none;
    line-height: 1.25;
}

.site-footer a {
    color: var(--color-accent);
    text-decoration: underline;
}

.project-modal {
    width: min(1120px, calc(100% - 32px));
    border: 0;
    padding: 0;
    background: var(--color-soft);
    color: var(--color-ink);
}

.project-modal::backdrop {
    background: rgba(0, 0, 0, 0.55);
}

.project-modal.is-open {
    position: fixed;
    inset: 50% auto auto 50%;
    transform: translate(-50%, -50%);
    z-index: 100;
    display: block;
}

.modal-close {
    position: absolute;
    top: 14px;
    right: 14px;
    z-index: 2;
    display: grid;
    width: 42px;
    height: 42px;
    place-items: center;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.86);
    font-size: 24px;
    cursor: pointer;
}

.project-modal-image {
    aspect-ratio: 16 / 9;
    width: 100%;
    min-height: 360px;
    background-size: cover;
    background-position: center;
}

.project-modal-content {
    padding: clamp(24px, 4vw, 44px);
}

.project-modal-content h2 {
    margin-bottom: 10px;
    font-size: clamp(32px, 4vw, 38px);
}

.project-modal-content .eyebrow {
    font-size: medium;
}

.project-modal-content > p:not(.eyebrow) {
    max-width: 760px;
    color: var(--color-muted);
}

@media (max-width: 1060px) {
    .site-header {
        flex-wrap: wrap;
    }

    .nav-toggle {
        display: block;
        margin-left: auto;
    }

    .primary-nav,
    .header-actions {
        display: none;
    }

    .site-header.is-open .primary-nav,
    .site-header.is-open .header-actions {
        display: flex;
        flex-basis: 100%;
        flex-wrap: wrap;
        align-items: center;
    }

    .site-header.is-open {
        background: rgba(216, 216, 216, 0.98);
        color: var(--color-ink);
    }

    .primary-nav ul {
        flex-direction: column;
        gap: 16px;
    }
}

@media (max-width: 1180px) {
    .card-grid,
    .testimonial-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

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

@media (max-width: 820px) {
    .hero {
        min-height: 84vh;
        padding-top: 130px;
    }

    .intro,
    .card-grid,
    .work-grid,
    .testimonial-grid,
    .contact,
    .site-footer,
    .field-row {
        grid-template-columns: 1fr;
    }

    .section {
        padding-block: 64px;
    }

    .contact {
        min-height: 0;
    }

    .contact-image {
        order: -1;
    }

    .project-modal-image {
        min-height: 260px;
    }
}

@media (max-width: 520px) {
    .site-header {
        padding: 18px;
    }

    .brand {
        min-width: 0;
    }

    .custom-logo {
        max-width: 168px;
    }

    h1 {
        font-size: 42px;
    }

    h2 {
        font-size: 36px;
    }

    .button {
        width: 100%;
    }
}
