:root {
    --cafes-ink: #171717;
    --cafes-muted: #68717c;
    --cafes-orange: #f47721;
    --cafes-red: #ed1c24;
    --cafes-border: #eee4db;
    --cafes-paper: #fdfbf8;
}

.cafes-page {
    margin: 0;
    color: var(--cafes-ink);
    background:
        radial-gradient(ellipse at 10% 12%, rgba(247, 119, 33, 0.055), transparent 28rem),
        var(--cafes-paper);
    font-family: Inter, Arial, sans-serif;
}

.cafes-main {
    padding: 28px 18px 40px;
}

.cafes-content {
    box-sizing: border-box;
    width: min(100%, 1120px);
    margin: 0 auto;
    padding: 32px;
    border: 1px solid #eee8e2;
    border-radius: 20px;
    background: #fff;
    box-shadow: 0 12px 36px rgba(50, 37, 25, 0.08);
}

.cafes-intro {
    max-width: 850px;
    margin: 0 auto 24px;
    text-align: center;
}

.cafes-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 11px;
    border: 1px solid #ffd0ac;
    border-radius: 999px;
    color: #b84e12;
    background: #fffaf6;
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.035em;
    text-transform: uppercase;
}

.cafes-intro h1 {
    max-width: 760px;
    margin: 16px auto 11px;
    font-family: Montserrat, Inter, sans-serif;
    font-size: clamp(1.55rem, 3vw, 2.05rem);
    font-weight: 800;
    line-height: 1.17;
}

.cafes-intro p {
    max-width: 790px;
    margin: 0 auto;
    color: var(--cafes-muted);
    font-size: 0.9rem;
    line-height: 1.65;
}

.cafes-origins {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}

.cafe-origin-card {
    display: flex;
    min-height: 154px;
    flex-direction: column;
    align-items: flex-start;
    padding: 15px 16px 13px;
    border: 1px solid var(--cafes-border);
    border-radius: 14px;
    color: inherit;
    background: #fffdfb;
    text-decoration: none;
    transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.cafe-origin-card:hover,
.cafe-origin-card:focus-visible {
    transform: translateY(-2px);
    border-color: #f7a36c;
    outline: none;
    box-shadow: 0 7px 18px rgba(93, 55, 24, 0.09);
}

.cafe-origin-heading {
    display: flex;
    width: 100%;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 11px;
}

.cafe-origin-heading strong {
    font-size: 0.92rem;
    font-weight: 800;
}

.cafe-origin-heading span {
    padding: 4px 6px;
    border-radius: 4px;
    color: #7a7068;
    background: #f7f2ed;
    font-size: 0.61rem;
    font-weight: 700;
    white-space: nowrap;
}

.cafe-origin-description {
    color: #707780;
    font-size: 0.74rem;
    line-height: 1.5;
}

.cafe-origin-profile {
    margin-top: auto;
    padding-top: 10px;
    color: #bd5e1b;
    font-size: 0.61rem;
    font-weight: 800;
    letter-spacing: 0.025em;
    text-transform: uppercase;
}

.cafes-services {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    margin-top: 18px;
}

.cafe-service-card {
    min-height: 208px;
    padding: 18px;
    border: 1px solid var(--cafes-border);
    border-radius: 14px;
    background: #fcfaf8;
}

.cafe-service-icon {
    display: grid;
    width: 34px;
    height: 34px;
    place-items: center;
    border: 1px solid #ffd8be;
    border-radius: 9px;
    color: var(--cafes-orange);
    background: #fffaf6;
}

.cafe-service-icon svg {
    width: 19px;
    height: 19px;
}

.cafe-service-card h2 {
    margin: 14px 0 9px;
    font-family: Montserrat, Inter, sans-serif;
    font-size: 0.93rem;
    font-weight: 800;
    line-height: 1.3;
}

.cafe-service-card p {
    margin: 0;
    color: var(--cafes-muted);
    font-size: 0.75rem;
    line-height: 1.55;
}

.cafe-service-card > strong {
    display: block;
    margin-top: 12px;
    color: #bd5e1b;
    font-size: 0.65rem;
    font-weight: 800;
}

.cafes-feature {
    display: grid;
    grid-template-columns: minmax(250px, 0.78fr) minmax(0, 1fr);
    align-items: center;
    gap: 24px;
    margin-top: 18px;
    padding: 18px;
    border: 1px solid #ff8c3c;
    border-radius: 16px;
    background: #fff;
}

.cafes-feature-image {
    overflow: hidden;
    min-height: 220px;
    border: 1px solid #eadfd6;
    border-radius: 12px;
    background: #f7f1ea;
}

.cafes-feature-image img {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 220px;
    object-fit: cover;
}

.cafes-feature-copy {
    padding: 3px 5px;
}

.cafes-feature-eyebrow {
    color: #ce641d;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.045em;
    text-transform: uppercase;
}

.cafes-feature-copy h2 {
    margin: 9px 0;
    font-family: Montserrat, Inter, sans-serif;
    font-size: clamp(1.25rem, 2.3vw, 1.65rem);
    font-weight: 800;
    line-height: 1.2;
}

.cafes-feature-copy p {
    margin: 0;
    color: var(--cafes-muted);
    font-size: 0.82rem;
    line-height: 1.65;
}

.cafes-feature-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 16px;
}

.cafes-button {
    display: inline-flex;
    min-height: 42px;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 15px;
    border: 1px solid transparent;
    border-radius: 10px;
    font-size: 0.76rem;
    font-weight: 800;
    text-align: center;
    text-decoration: none;
    transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.cafes-button:hover,
.cafes-button:focus-visible {
    transform: translateY(-1px);
    outline: 3px solid rgba(237, 28, 36, 0.16);
    outline-offset: 2px;
}

.cafes-button-primary {
    color: #fff;
    background: linear-gradient(110deg, #f32628, #dc101d);
    box-shadow: 0 5px 12px rgba(223, 18, 31, 0.19);
}

.cafes-button-primary:hover {
    background: #cf101b;
}

.cafes-button-primary svg {
    width: 16px;
    height: 16px;
    flex: 0 0 auto;
}

.cafes-button-secondary {
    border-color: #e8ddd4;
    color: #292522;
    background: #fff;
}

.cafes-button-secondary:hover {
    background: #fffaf6;
}

@media (max-width: 850px) {
    .cafes-content {
        padding: 25px;
    }

    .cafes-origins {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .cafes-services {
        grid-template-columns: 1fr;
    }

    .cafe-service-card {
        min-height: 0;
    }

    .cafes-feature {
        grid-template-columns: minmax(190px, 0.8fr) minmax(0, 1fr);
        gap: 18px;
    }
}

@media (max-width: 600px) {
    .cafes-main {
        padding: 16px 12px 28px;
    }

    .cafes-content {
        padding: 21px 15px;
        border-radius: 15px;
    }

    .cafes-intro {
        margin-bottom: 20px;
    }

    .cafes-intro h1 {
        font-size: 1.45rem;
    }

    .cafes-intro p {
        font-size: 0.82rem;
    }

    .cafes-origins {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .cafe-origin-card {
        min-height: 138px;
    }

    .cafes-services {
        gap: 10px;
        margin-top: 12px;
    }

    .cafes-feature {
        grid-template-columns: 1fr;
        gap: 16px;
        margin-top: 12px;
        padding: 13px;
    }

    .cafes-feature-image,
    .cafes-feature-image img {
        min-height: 0;
        aspect-ratio: 1.2;
    }

    .cafes-feature-copy {
        padding: 0 2px 2px;
    }

    .cafes-feature-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .cafes-button {
        width: 100%;
        min-height: 46px;
        font-size: 0.82rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .cafe-origin-card,
    .cafes-button {
        transition: none;
    }
}
