/*
Homepage only
*/

.hero {
    min-height: 100vh;
    height: auto;
    background-image: url('img/background-mobile.png');
    background-size: cover;
    background-position: center top;
    background-repeat: no-repeat;
    display: flex;
    align-items: flex-start;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    pointer-events: none;
}

.hero > * {
    position: relative;
    z-index: 1;
}

.hero-wrapper {
    padding-top: 200px;
    padding-bottom: 56px;
    width: min(1200px, calc(100% - 80px));
    margin: 0 auto;
}

.hero-content h1 {
    font-family: 'Montserrat';
    font-size: 46px;
    max-width: 610px;
    line-height: 1.1;
    margin-bottom: 20px;
}

.hero-content p {
    max-width: 500px;
    margin-bottom: 30px;
    opacity: 0.9;
}

.hero-btns {
    display: flex;
    gap: 15px;
}

.about {
    background: var(--dark-green);
    padding: 100px 0;
}

.about p {
    font-size: 20px;
}

.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    gap: 80px;
    align-items: center;
}

.stats {
    display: flex;
    gap: 50px;
    margin-top: 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding-top: 20px;
}

.stat-item strong {
    font-size: 32px;
    display: block;
    letter-spacing: 0.1cm;
}

.stat-item span {
    font-size: 12px;
    opacity: 0.7;
}

.about-gallery img {
    width: 100%;
    border-radius: 20px;
    object-fit: cover;
}

.about-gallery {
    --about-main-image-width: 590px;
    --about-main-image-height: 438px;
    width: 100%;
}

.gallery-preview {
    width: min(var(--about-main-image-width), 100%);
    height: var(--about-main-image-height);
    border-radius: 20px;
    overflow: hidden;
}

.gallery-preview img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.thumb-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin-top: 15px;
    width: min(var(--about-main-image-width), 100%);
}

.thumb {
    cursor: pointer;
    width: 100%;
    height: 80px;
    display: block;
    object-fit: cover;
    border-radius: 20px;
    opacity: 0.5;
    transition: 0.3s;
}

.thumb.active {
    opacity: 1;
    outline: 2px solid var(--bg-bege);
    outline-offset: 0;
}

.services {
    padding: 100px 0;
    background: #fff;
    color: var(--brand-brown);
}

.services h2,
.services .subtitle {
    color: var(--brand-brown);
}

.service-grid {
    display: flex;
    gap: 20px;
    height: 430px;
    margin-top: 40px;
}

.service-card {
    flex: 1;
    background-size: cover;
    background-position: center;
    border-radius: 25px;
    position: relative;
    transition: flex-grow 0.28s ease, transform 0.18s ease, box-shadow 0.2s ease;
    cursor: pointer;
    overflow: hidden;
    min-height: 430px;
    will-change: flex-grow, transform;
    transform: translateZ(0);
}

.service-card.active {
    flex-grow: 1.45;
}

.card-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 30px;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    color: var(--white);
}

.service-card p {
    display: none;
    margin-top: 10px;
    font-size: 14px;
    opacity: 0.8;
}

.service-card.active p {
    display: block;
}

.card-overlay .btn-link,
.card-overlay .btn-lnik {
    color: var(--bg-bege);
    margin-top: 14px;
    text-decoration: none;
    display: inline-block;
    border-bottom: none;
}

.card-overlay .btn-link:hover,
.card-overlay .btn-lnik:hover {
    opacity: 0.85;
}

.service-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 24px rgba(0, 0, 0, 0.28);
}

.coffee-section {
    background-color: var(--bg-bege);
    padding: 90px 0;
    color: var(--brand-brown);
}

.coffee-grid {
    display: grid;
    grid-template-columns: 300px minmax(0, 1fr);
    align-items: start;
    gap: 42px;
    width: min(1200px, calc(100% - 80px));
    margin: 0 auto;
}

.coffee-intro .subtitle {
    display: block;
    margin-bottom: 8px;
    color: #6a4c37;
    font-size: 14px;
    letter-spacing: 0;
    font-weight: 500;
}

.coffee-intro h2 {
    margin: 0 0 18px;
    color: #411f0e;
    font-family: 'Montserrat', sans-serif;
    font-size: 52px;
    font-weight: 700;
    line-height: 0.98;
    letter-spacing: 0.03em;
}

.coffee-intro p {
    margin: 0;
    color: #513525;
    font-size: 17px;
    line-height: 1.2;
    max-width: 280px;
}

.coffee-cards {
    display: flex;
    align-items: stretch;
    justify-content: flex-end;
    gap: 28px;
}

.coffee-card {
    width: 206px;
    position: relative;
    display: flex;
    flex-direction: column;
}

.coffee-card img {
    width: 206px;
    height: 206px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #e4ddd2;
    position: relative;
    z-index: 2;
    margin: 0 auto -54px;
    display: block;
}

.coffee-card .card-body {
    background: var(--white);
    width: 100%;
    min-height: 170px;
    flex: 1;
    border-radius: 18px;
    padding: 64px 14px 14px;
    box-shadow: 0 2px 4px rgba(33, 18, 10, 0.35);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
}

.coffee-card .card-body h3 {
    margin: 0;
    font-family: 'Montserrat', sans-serif;
    font-size: 20px;
    font-weight: 700;
    line-height: 1.05;
    letter-spacing: 0.04em;
    color: #411f0e;
}

.coffee-card .card-body p {
    margin: 0;
    font-family: 'Helvetica LT Pro', 'Helvetica Neue', Arial, sans-serif;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: 0.04em;
    color: #676565;
}

.btn-link,
.btn-lnik {
    text-decoration: none;
    color: #411f0e;
    font-weight: 700;
    font-size: 15px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    margin-top: auto;
    transition: opacity 0.25s ease, transform 0.2s ease, letter-spacing 0.25s ease;
}

.btn-link:hover {
    opacity: 0.7;
}

.contact-section {
    background: #fff;
    padding: 72px 0 64px;
}

.contact-wrap {
    width: min(1200px, calc(100% - 80px));
    margin: 0 auto;
    display: grid;
    grid-template-columns: 430px 629px;
    gap: 52px;
    align-items: center;
    justify-content: space-between;
}

.contact-kicker {
    display: block;
    font-size: 14px;
    font-family: 'Inter', sans-serif;
    color: var(--brand-brown);
    letter-spacing: 0;
    margin-bottom: 6px;
}

.contact-copy h2 {
    color: var(--brand-brown);
    font-family: 'Montserrat', sans-serif;
    font-size: 46px;
    line-height: 1.02;
    letter-spacing: 0.5px;
    margin: 0 0 20px;
}

.contact-copy p {
    color: #4f3324;
    font-size: 17px;
    line-height: 1.25;
    margin: 0 0 10px;
    max-width: 430px;
}

.contact-image {
    width: 629px;
    max-width: 100%;
    justify-self: end;
}

.contact-image img {
    width: 100%;
    height: 390px;
    object-fit: cover;
    display: block;
}

@media (max-width: 1200px) {
    .coffee-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .coffee-intro p {
        max-width: 640px;
    }

    .coffee-cards {
        flex-wrap: wrap;
        gap: 20px;
    }
}

@media (max-width: 700px) {
    .coffee-section {
        padding: 64px 0;
    }

    .coffee-grid {
        width: min(1200px, calc(100% - 30px));
        gap: 24px;
    }

    .coffee-intro h2 {
        font-size: 40px;
    }

    .coffee-card {
        width: 100%;
        max-width: 280px;
    }

    .coffee-card img {
        width: 180px;
        height: 180px;
        margin-bottom: -50px;
    }

    .coffee-card .card-body {
        padding-top: 60px;
    }
}
