:root {
    color-scheme: light;
    --ink: #17212b;
    --muted: #69727b;
    --red: #f20b32;
    --paper: #f7f6f2;
    --line: #deded8;
}

* {
    box-sizing: border-box;
}

img,
svg {
    max-width: 100%;
}

html {
    scroll-behavior: smooth;
}

body {
    min-width: 280px;
    width: 100%;
    overflow-x: clip;
    min-height: 100vh;
    margin: 0;
    background: var(--paper);
    color: var(--ink);
    font-family: "Segoe UI", Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
}

a {
    color: inherit;
    text-decoration: none;
}

a:hover {
    color: var(--red);
}

a:focus-visible {
    outline: 2px solid var(--red);
    outline-offset: 4px;
}

.page {
    display: flex;
    min-height: 100vh;
    flex-direction: column;
    width: 100%;
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 7.2%;
}

/* Header */
.topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 112px;
    border-bottom: 1px solid var(--line);
}

.brand {
    display: inline-flex;
    align-items: center;
}

.brand img {
    display: block;
    width: 162px;
    height: 80px;
    max-width: 100%;
    object-fit: cover;
    object-position: center;
    mix-blend-mode: multiply;
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 22px;
    margin-left: auto;
    padding: 0 32px;
    font-size: 13px;
    font-weight: 600;
}

.site-nav a[aria-current="page"] {
    color: var(--red);
}

.top-note {
    display: flex;
    align-items: center;
    gap: 11px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .13em;
    text-transform: uppercase;
}

.live-dot {
    width: 8px;
    height: 8px;
    flex: 0 0 8px;
    border-radius: 50%;
    background: var(--red);
    box-shadow: 0 0 0 4px rgb(242 11 50 / 10%);
}

/* Main content */
main {
    display: grid;
    flex: 1;
    grid-template-columns: minmax(0, 1.04fr) minmax(0, .96fr);
    align-items: center;
    gap: 7%;
    padding: 64px 0 70px;
}

.eyebrow {
    margin: 0 0 22px;
    color: var(--red);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .2em;
    text-transform: uppercase;
}

h1 {
    max-width: 620px;
    margin: 0;
    font-size: clamp(48px, 6vw, 82px);
    font-weight: 600;
    letter-spacing: -.065em;
    line-height: .99;
}

h1 span {
    color: var(--red);
}

.intro {
    max-width: 440px;
    margin: 25px 0 32px;
    color: var(--muted);
    font-size: 16px;
    line-height: 1.75;
}

.status {
    display: flex;
    align-items: center;
    gap: 14px;
    max-width: 390px;
    color: var(--ink);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.loader {
    position: relative;
    width: 88px;
    height: 3px;
    flex: 0 0 88px;
    overflow: hidden;
    background: #deded8;
}

.loader::after {
    position: absolute;
    inset: 0 auto 0 0;
    width: 38%;
    background: var(--red);
    content: "";
    animation: loading 1.8s ease-in-out infinite;
}

@keyframes loading {
    0% {
        transform: translateX(-110%);
    }

    55% {
        transform: translateX(165%);
    }

    100% {
        transform: translateX(265%);
    }
}

/* Architectural illustration */
.artwork {
    position: relative;
    display: grid;
    min-width: 0;
    min-height: 390px;
    place-items: center;
    overflow: hidden;
    background: #eeede7;
}

.artwork::before,
.artwork::after {
    position: absolute;
    background: #d9d8d1;
    content: "";
}

.artwork::before {
    right: 0;
    bottom: 58px;
    left: 0;
    height: 1px;
}

.artwork::after {
    right: 12%;
    bottom: 58px;
    width: 1px;
    height: 78%;
    opacity: .55;
}

.artwork svg {
    position: relative;
    z-index: 1;
    display: block;
    width: min(86%, 440px);
    height: auto;
    overflow: visible;
}

/* Home page */
.home-main {
    display: block;
    flex: 1;
    padding: 0 0 58px;
}

.home-hero {
    display: grid;
    min-height: 390px;
    grid-template-columns: minmax(0, 1fr) minmax(240px, 1fr);
    align-items: center;
    gap: 36px;
    padding: 62px 0 70px;
}

.home-hero .eyebrow span {
    padding: 0 4px;
}

.home-category-image {
    display: block;
    width: min(100%, 480px);
    height: auto;
    object-fit: contain;
}

.home-hero h1 {
    max-width: 620px;
    margin: 0;
    font-size: clamp(48px, 6vw, 82px);
    font-weight: 600;
    letter-spacing: -.065em;
    line-height: .99;
}

.home-hero h1 span {
    color: var(--red);
}

.home-intro {
    max-width: 490px;
    margin: 24px 0 28px;
    color: var(--muted);
    font-size: 15px;
    line-height: 1.75;
}

.home-contact-link {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding-bottom: 7px;
    border-bottom: 1px solid var(--red);
    color: var(--ink);
    font-size: 13px;
    font-weight: 700;
}

.home-contact-link span {
    color: var(--red);
    font-size: 18px;
}

.home-hero-art {
    position: relative;
    display: grid;
    aspect-ratio: 3 / 2;
    place-items: center;
    overflow: hidden;
}

.home-hero-logo {
    position: absolute;
    inset: 0;
    z-index: 1;
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    transition: filter .35s ease;
}

.home-hero-art:hover .home-hero-logo {
    filter: saturate(1.08);
}

.portfolio-section {
    padding-top: 30px;
    border-top: 1px solid var(--line);
}

.portfolio-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 24px;
}

.portfolio-heading .eyebrow {
    margin-bottom: 10px;
}

.portfolio-heading h2 {
    margin: 0;
    font-size: clamp(26px, 3.2vw, 38px);
    letter-spacing: -.045em;
}

.portfolio-heading > p {
    max-width: 260px;
    margin: 0 0 4px;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.6;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.portfolio-card {
    position: relative;
    display: flex;
    min-height: 168px;
    flex-direction: column;
    justify-content: space-between;
    padding: 22px;
    border: 1px solid var(--line);
    background: #fff;
    transition: border-color .2s ease, transform .2s ease;
}

a.portfolio-card:hover {
    transform: translateY(-3px);
    border-color: var(--red);
    color: var(--ink);
}

.portfolio-index {
    color: var(--red);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .14em;
}

.portfolio-logo {
    display: block;
    width: min(100%, 300px);
    height: 55px;
    margin: auto;
    object-fit: contain;
    object-position: center;
}

.portfolio-arrow {
    position: absolute;
    right: 20px;
    bottom: 20px;
    color: var(--red);
    font-size: 18px;
}

@media (max-width: 980px) {
    .page {
        padding-right: 5%;
        padding-left: 5%;
    }

    .topbar {
        gap: 12px;
    }

    .site-nav {
        gap: 16px;
        padding-right: 16px;
        padding-left: 16px;
    }

    .top-note {
        font-size: 10px;
        letter-spacing: .09em;
    }

    .home-hero {
        min-height: auto;
        grid-template-columns: minmax(0, 1fr);
        gap: 30px;
        padding: 50px 0;
    }

    .home-hero-copy {
        max-width: 720px;
    }

    .home-hero-art {
        width: calc(100% + 10vw);
        margin-inline: -5vw;
    }
}

/* Footer */
footer {
    padding: 30px 0 20px;
    border-top: 1px solid var(--line);
}

.footer-main {
    display: grid;
    grid-template-columns: 1.2fr 1fr 1fr .65fr;
    gap: 30px;
    padding-bottom: 26px;
}

.footer-company {
    min-width: 0;
}

.company-name {
    margin: 0 0 9px;
    font-size: 13px;
    font-weight: 700;
}

.footer-tagline {
    margin: 0 0 22px;
    color: var(--muted);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.footer-tagline span {
    padding: 0 3px;
    color: var(--red);
}

.footer-label {
    display: block;
    margin-bottom: 10px;
    color: var(--muted);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .16em;
    text-transform: uppercase;
}

.footer-brands,
.footer-contact {
    display: grid;
    justify-items: start;
    gap: 8px;
}

.footer-brands {
    color: var(--ink);
    font-size: 12px;
    font-weight: 600;
}

.footer-brands span {
    color: var(--muted);
}

.footer-contact a {
    display: block;
}

.footer-contact .footer-whatsapp {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: #168d45;
    font-weight: 600;
}

.footer-whatsapp svg {
    width: 16px;
    height: 16px;
    flex: 0 0 16px;
}

.footer-contact a,
.footer-brands a,
.footer-nav a,
.footer-legal a {
    overflow-wrap: anywhere;
}

.maps-link {
    color: var(--red);
    font-weight: 700;
}

.whatsapp-float {
    position: fixed;
    z-index: 1020;
    right: calc(24px + env(safe-area-inset-right));
    bottom: calc(24px + env(safe-area-inset-bottom));
    display: grid;
    width: 58px;
    height: 58px;
    place-items: center;
    border-radius: 50%;
    background: #25d366;
    color: #fff;
    --social-pulse-color: rgb(37 211 102 / 75%);
    box-shadow: 0 4px 16px rgb(0 0 0 / 25%);
    animation: social-pulse 2s ease-out infinite;
    transition: background-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

.whatsapp-float::before {
    position: absolute;
    inset: 0;
    border: 2px solid var(--social-pulse-color);
    border-radius: 50%;
    content: "";
    pointer-events: none;
    animation: social-ring 2s ease-out infinite;
}

.whatsapp-float:hover {
    transform: translateY(-3px);
    background: #1fb95a;
    box-shadow: 0 7px 20px rgb(0 0 0 / 30%);
    color: #fff;
}

.whatsapp-float:focus-visible {
    outline: 3px solid var(--ink);
    outline-offset: 3px;
}

.whatsapp-float svg {
    display: block;
    width: 34px;
    height: 34px;
    fill: currentColor;
}

@keyframes social-pulse {
    0%,
    100% {
        box-shadow: 0 4px 16px rgb(0 0 0 / 25%);
    }

    50% {
        box-shadow: 0 4px 20px rgb(37 211 102 / 42%);
    }
}

@keyframes social-ring {
    0% {
        transform: scale(1);
        opacity: .8;
    }

    100% {
        transform: scale(1.6);
        opacity: 0;
    }
}

.footer-copy address,
address.footer-copy {
    font-style: normal;
}

.footer-copy {
    margin: 0;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.8;
    overflow-wrap: anywhere;
}

.contact-links {
    display: flex;
    flex-wrap: wrap;
    gap: 7px 16px;
}

.footer-nav {
    display: grid;
    justify-items: start;
    gap: 7px;
}

.footer-legal {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 10px 24px;
    padding-top: 16px;
    border-top: 1px solid var(--line);
    color: var(--muted);
    font-size: 11px;
}

.footer-legal a {
    color: var(--red);
    font-weight: 700;
}

/* Bank-transfer payment page */
.payment-main {
    display: flex;
    flex: 1;
    min-width: 0;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 56px 0 64px;
}

.bank-card {
    min-width: 0;
    width: min(100%, 820px);
    margin-inline: auto;
    padding: clamp(24px, 5.7vw, 48px);
    border: 1px solid var(--line);
    background: transparent;
    text-align: left;
}

.payment-intro {
    width: 100%;
    margin-bottom: 30px;
    color: var(--ink);
    text-align: left;
}

.payment-intro h1 {
    max-width: 620px;
    margin: 0;
    font-size: clamp(48px, 6vw, 82px);
    font-weight: 600;
    letter-spacing: -.065em;
    line-height: .99;
}

.payment-intro h1 span {
    color: var(--red);
}

.payment-intro p:last-child {
    max-width: 490px;
    margin: 24px 0 28px;
    color: var(--muted);
    font-size: 15px;
    line-height: 1.75;
}

.payment-label {
    margin: 0 0 16px;
    color: var(--red);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .18em;
    text-transform: uppercase;
}

.bank-card h2 {
    margin: 0 0 24px;
    font-size: clamp(26px, 3.2vw, 38px);
    font-weight: 700;
    letter-spacing: -.045em;
}

.bank-details {
    min-width: 0;
    margin: 0;
    border-top: 1px solid var(--line);
}

.bank-detail {
    display: grid;
    grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr) 34px;
    align-items: center;
    gap: 8px 18px;
    padding: 15px 0;
    border-bottom: 1px solid var(--line);
}

.bank-detail dt {
    grid-column: 1;
    color: var(--muted);
    font-size: 13px;
    font-weight: 400;
}

.bank-detail dd {
    grid-column: 2;
    grid-row: 1;
    min-width: 0;
    margin: 0;
    color: var(--ink);
    font-size: 14px;
    font-weight: 600;
    line-height: 1.55;
    overflow-wrap: anywhere;
}

.copy-button {
    display: grid;
    grid-column: 3;
    grid-row: 1;
    width: 34px;
    height: 34px;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: 1px solid var(--line);
    border-radius: 0;
    background: transparent;
    color: var(--muted);
    font: inherit;
    cursor: pointer;
}

.copy-button:hover {
    border-color: var(--red);
    color: var(--red);
}

.copy-button:focus-visible {
    outline: 3px solid var(--red);
    outline-offset: 3px;
}

.copy-button svg {
    width: 16px;
    height: 16px;
}

.copy-status {
    grid-column: 1 / -1;
    color: var(--red);
    font-size: 11px;
    font-weight: 600;
}

.copy-status:empty {
    display: none;
}

.certificate-note {
    margin: 14px 0 0;
    color: var(--muted);
    font-size: 11px;
    line-height: 1.65;
}

.certificate-download {
    display: inline-flex;
    min-height: 48px;
    align-items: center;
    justify-content: center;
    gap: 14px;
    margin-top: 24px;
    padding: 0 20px;
    background: var(--red);
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.certificate-download:hover {
    background: #a91f25;
    color: #fff;
}

.certificate-download:focus-visible {
    outline: 3px solid var(--red);
    outline-offset: 3px;
}

.certificate-download svg {
    width: 15px;
    height: 15px;
}

/* Tablet and mobile */
@media (max-width: 760px) {
    .page {
        padding: 0 5%;
    }

    .topbar {
        display: grid;
        grid-template-columns: minmax(0, 1fr);
        gap: 12px;
        min-height: 88px;
        padding: 16px 0;
    }

    .brand {
        grid-column: 1;
        grid-row: 1;
        justify-self: center;
    }

    .brand img {
        width: min(190px, 60vw);
        height: 94px;
    }

    .site-nav {
        grid-column: 1;
        grid-row: 2;
        justify-self: center;
        gap: 20px;
        margin: 0;
        padding: 0;
    }

    .top-note {
        grid-column: 1;
        grid-row: 3;
        justify-self: center;
        font-size: 9px;
        letter-spacing: .1em;
    }

    main {
        grid-template-columns: minmax(0, 1fr);
        gap: 42px;
        padding: 55px 0 48px;
    }

    h1 {
        max-width: 560px;
        font-size: clamp(48px, 12vw, 72px);
    }

    .artwork {
        min-height: 300px;
    }

    .footer-main {
        grid-template-columns: 1fr 1fr;
        gap: 24px;
    }

    .footer-company {
        grid-column: 1 / -1;
    }

    .payment-main {
        display: flex;
        width: 100%;
        min-width: 0;
        gap: 0;
        padding: 40px 0 48px;
    }

    .bank-card {
        width: 100%;
        max-width: 820px;
        padding: 30px 26px;
    }

    .home-hero {
        gap: 26px;
        padding: 42px 0;
    }

    .portfolio-heading {
        align-items: flex-start;
        flex-direction: column;
        gap: 10px;
    }

    .portfolio-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .portfolio-card {
        min-height: 160px;
    }

    .home-main {
        padding-bottom: 42px;
    }
}

@media (max-width: 560px) {
    .payment-intro h1 {
        font-size: clamp(44px, 13vw, 58px);
    }

    .bank-card {
        padding: 22px 18px;
    }

    .bank-card h2 {
        font-size: 26px;
        overflow-wrap: anywhere;
        letter-spacing: -.045em;
    }

    .bank-detail {
        grid-template-columns: minmax(0, 1fr) 42px;
        gap: 4px 10px;
        padding: 12px 0;
    }

    .bank-detail dt {
        grid-column: 1;
        grid-row: 1;
        font-size: 10px;
    }

    .bank-detail dd {
        grid-column: 1;
        grid-row: 2;
        font-size: 12px;
    }

    .copy-button {
        grid-column: 2;
        grid-row: 1 / span 2;
        width: 42px;
        height: 42px;
    }

    .certificate-download {
        max-width: 100%;
    }
}

@media (max-width: 420px) {
    .whatsapp-float {
        right: calc(16px + env(safe-area-inset-right));
        bottom: calc(16px + env(safe-area-inset-bottom));
        width: 54px;
        height: 54px;
    }

    .whatsapp-float svg {
        width: 29px;
        height: 29px;
    }

    .top-note {
        max-width: 110px;
        line-height: 1.5;
    }

    .site-nav {
        gap: 18px;
        font-size: 11px;
    }

    .footer-main {
        grid-template-columns: minmax(0, 1fr);
        gap: 20px;
    }

    .footer-company {
        grid-column: auto;
    }

    .footer-legal {
        align-items: flex-start;
        flex-direction: column;
    }

    .payment-intro h1 {
        font-size: 50px;
    }

    .home-main {
        padding-bottom: 38px;
    }

    .home-hero h1 {
        font-size: clamp(44px, 13vw, 58px);
    }

    .home-hero .eyebrow {
        font-size: 10px;
        letter-spacing: .13em;
        line-height: 1.8;
    }

    .home-intro {
        font-size: 14px;
    }

    .portfolio-heading h2 {
        font-size: 26px;
    }

    .portfolio-card {
        min-height: 160px;
        padding: 18px;
    }

    .portfolio-arrow {
        right: 16px;
        bottom: 16px;
    }

    .copy-button {
        width: 42px;
        height: 42px;
    }
}

@media (max-width: 340px) {
    .page {
        padding-right: 16px;
        padding-left: 16px;
    }

    .topbar {
        column-gap: 8px;
    }

    .brand img {
        width: min(160px, 56vw);
        height: 80px;
    }

    .top-note {
        max-width: 96px;
        font-size: 8px;
    }

    .site-nav {
        gap: 14px;
        font-size: 10px;
    }

    .home-hero h1 {
        font-size: 42px;
    }

    .payment-intro h1 {
        font-size: 42px;
    }

    .bank-card {
        padding-right: 14px;
        padding-left: 14px;
    }

    .bank-intro,
    .certificate-note {
        font-size: 11px;
    }

    .whatsapp-float {
        right: calc(12px + env(safe-area-inset-right));
        bottom: calc(12px + env(safe-area-inset-bottom));
    }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
    }
}
