/* =========================
   Home Page
   ========================= */

.home-page {
    width: 100%;
    overflow: hidden;
    background: linear-gradient(
            180deg,
            #f7f3eb 0%,
            #f6f4ee 34%,
            #f3f3eb 68%,
            #eef2e9 100%
    );
}

.home-container {
    width: min(1180px, calc(100% - 48px));
    margin: 0 auto;
}


/* =========================
   Shared Section Title
   ========================= */

.home-page .section-title {
    margin: 0;
    color: #202521;
    font-size: clamp(2rem, 3vw, 2.8rem);
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.025em;
}


/* =========================
   Hero Section
   ========================= */

.home-hero {
    position: relative;
    padding: 92px 0 108px;
    background: transparent;
}

.home-hero-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(420px, 0.95fr);
    gap: 72px;
    align-items: center;
}

.home-hero-content {
    max-width: 660px;
}

.home-hero-eyebrow {
    margin: 0 0 20px;
    color: #1d817e;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.16em;
}

.home-hero-content h1 {
    margin: 0;
    color: #202521;
    font-size: clamp(3rem, 5vw, 5.25rem);
    font-weight: 700;
    line-height: 0.98;
    letter-spacing: -0.045em;
}

.home-hero-description {
    max-width: 560px;
    margin: 30px 0 0;
    color: #565b57;
    font-size: 1.12rem;
    line-height: 1.75;
}

.home-hero-actions {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-top: 36px;
}

.home-hero-primary,
.home-hero-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 22px;
    border-radius: 9px;
    font-weight: 700;
    text-decoration: none;
    transition:
            transform 0.2s ease,
            box-shadow 0.2s ease,
            background 0.2s ease,
            border-color 0.2s ease;
}

.home-hero-primary {
    background: var(--accent);
    color: #ffffff;
    box-shadow: 0 8px 22px rgba(23, 184, 181, 0.2);
}

.home-hero-primary:hover {
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(23, 184, 181, 0.28);
}

.home-hero-secondary {
    background: rgba(255, 255, 255, 0.28);
    color: #315c4b;
    border: 1px solid #9ea99f;
}

.home-hero-secondary:hover {
    background: rgba(255, 255, 255, 0.65);
    color: #254c3d;
    border-color: #78887a;
    transform: translateY(-2px);
}

.home-hero-image-wrapper {
    position: relative;
    overflow: hidden;
    min-height: 500px;
    border-radius: 4px 72px 4px 72px;
    box-shadow: 0 24px 50px rgba(31, 51, 40, 0.16);
}

.home-hero-image {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 500px;
    margin: 0;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.home-hero-image-wrapper:hover .home-hero-image {
    transform: scale(1.025);
}


/* =========================
   Featured Tea Section
   ========================= */

.tea-feature-section {
    position: relative;
    padding: 34px 0 112px;
    background: transparent;
}

.collection-header {
    max-width: 700px;
    margin-bottom: 48px;
}

.collection-eyebrow {
    margin: 0 0 12px;
    color: #1d817e;
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.15em;
}

.collection-header .section-title {
    margin-bottom: 14px;
}

.collection-description {
    margin: 0;
    color: #65615b;
    font-size: 1.05rem;
    line-height: 1.65;
}

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

.tea-card {
    overflow: hidden;
    display: flex;
    flex-direction: column;
    min-width: 0;

    background: rgba(255, 255, 255, 0.46);
    border: 1px solid rgba(65, 79, 69, 0.10);
    border-radius: 18px;

    box-shadow: 0 8px 28px rgba(31, 51, 40, 0.055);
    backdrop-filter: blur(2px);

    transition:
            transform 0.25s ease,
            box-shadow 0.25s ease,
            background 0.25s ease;
}

.tea-card:hover {
    transform: translateY(-6px);
    background: rgba(255, 255, 255, 0.68);
    box-shadow: 0 18px 36px rgba(31, 51, 40, 0.10);
}

.tea-card-image {
    display: block;
    width: 100%;
    height: 255px;
    margin: 0;
    object-fit: cover;
    transition: transform 0.45s ease;
}

.tea-card:hover .tea-card-image {
    transform: scale(1.025);
}

.tea-card-content {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: 26px 26px 28px;
}

.tea-card-content h2 {
    margin: 0 0 12px;
    color: #263029;
    font-size: 1.28rem;
    line-height: 1.3;
}

.tea-card-content p {
    margin: 0 0 24px;
    color: #5e625e;
    line-height: 1.68;
}

.tea-card-link {
    margin-top: auto;
    color: #1d817e;
    font-weight: 700;
    text-decoration: none;
}

.tea-card-link:hover {
    text-decoration: underline;
}


/* =========================
   Letter Section
   ========================= */

.letter-section {
    position: relative;
    padding: 34px 0 110px;
    background: transparent;
}

.letter-section .section-title {
    margin-bottom: 42px;
}

.letter-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(360px, 0.95fr);
    gap: 72px;
    align-items: center;
}

.letter-content {
    max-width: 610px;
    color: #4f5550;
    font-size: 1.08rem;
    line-height: 1.85;
}

.letter-content p {
    margin: 0 0 20px;
}

.letter-content p:last-of-type {
    margin-bottom: 0;
}

.letter-contact-link {
    display: inline-flex;
    align-items: center;
    width: fit-content;

    margin-top: 24px;
    padding: 12px 19px;

    background: var(--accent);
    color: #ffffff;

    border-radius: 10px;

    font-weight: 700;
    text-decoration: none;

    box-shadow: 0 8px 20px rgba(23, 184, 181, 0.18);

    transition:
            transform 0.2s ease,
            box-shadow 0.2s ease,
            opacity 0.2s ease;
}

.letter-contact-link:hover {
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 12px 24px rgba(23, 184, 181, 0.24);
    opacity: 0.95;
}

.letter-contact-link:active {
    transform: translateY(0);
}

.letter-image-wrapper {
    position: relative;
    overflow: hidden;

    border-radius: 4px 54px 4px 54px;

    box-shadow: 0 20px 42px rgba(31, 51, 40, 0.11);
}

.letter-image {
    display: block;
    width: 100%;
    height: 390px;
    margin: 0;
    object-fit: cover;

    transition: transform 0.5s ease;
}

.letter-image-wrapper:hover .letter-image {
    transform: scale(1.025);
}


/* =========================
   Responsive
   ========================= */

@media (max-width: 900px) {

    .home-hero {
        padding: 72px 0 86px;
    }

    .home-hero-layout {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    .home-hero-content {
        max-width: 720px;
    }

    .home-hero-image-wrapper,
    .home-hero-image {
        min-height: 410px;
    }

    .tea-feature-section {
        padding: 28px 0 88px;
    }

    .tea-card-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .letter-section {
        padding: 28px 0 90px;
    }

    .letter-layout {
        grid-template-columns: 1fr;
        gap: 42px;
    }

    .letter-image {
        height: 340px;
    }
}


@media (max-width: 640px) {

    .home-container {
        width: min(100% - 32px, 1180px);
    }

    .home-hero {
        padding: 54px 0 64px;
    }

    .home-hero-content h1 {
        font-size: clamp(2.7rem, 13vw, 4rem);
    }

    .home-hero-description {
        margin-top: 22px;
        font-size: 1rem;
    }

    .home-hero-actions {
        flex-direction: column;
        align-items: stretch;
        margin-top: 28px;
    }

    .home-hero-primary,
    .home-hero-secondary {
        width: 100%;
        box-sizing: border-box;
    }

    .home-hero-image-wrapper,
    .home-hero-image {
        min-height: 300px;
    }

    .home-hero-image-wrapper {
        border-radius: 4px 42px 4px 42px;
    }

    .tea-feature-section {
        padding: 24px 0 64px;
    }

    .collection-header {
        margin-bottom: 32px;
    }

    .home-page .section-title {
        font-size: 1.8rem;
    }

    .tea-card-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .tea-card-image {
        height: 230px;
    }

    .letter-section {
        padding: 24px 0 68px;
    }

    .letter-section .section-title {
        margin-bottom: 30px;
    }

    .letter-layout {
        gap: 34px;
    }

    .letter-image-wrapper {
        border-radius: 4px 38px 4px 38px;
    }

    .letter-image {
        height: 280px;
    }
}