/* =========================================================
   CaffeeMandala'D – Mandala kategória oldal
   Külön CSS a mandala.html oldalhoz
   ========================================================= */

/* HERO */

.mandala-hero {
    position: relative;
    min-height: calc(100vh - 74px);
    display: flex;
    align-items: center;
    overflow: hidden;
    isolation: isolate;
    padding: 48px 0 70px;
    background:
        linear-gradient(90deg, rgba(255, 248, 236, 0.95) 0%, rgba(255, 238, 204, 0.82) 38%, rgba(255, 222, 194, 0.50) 72%, rgba(255, 212, 194, 0.38) 100%),
        url("../assets/og2.jpg");
    background-size: cover;
    background-position: center center;
}

.mandala-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background:
        radial-gradient(circle at 12% 18%, rgba(255, 211, 111, 0.42), transparent 34%),
        radial-gradient(circle at 82% 20%, rgba(255, 154, 108, 0.22), transparent 32%),
        radial-gradient(circle at 18% 82%, rgba(143, 183, 131, 0.20), transparent 38%);
}

.mandala-hero::after {
    content: "";
    position: absolute;
    left: -110px;
    top: 60px;
    width: 420px;
    height: 420px;
    border-radius: 50%;
    background:
        repeating-radial-gradient(circle, rgba(228, 154, 53, 0.12) 0 1px, transparent 1px 22px),
        radial-gradient(circle, rgba(255, 248, 236, 0.42), transparent 68%);
    pointer-events: none;
    z-index: 0;
}

.mandala-hero-grid {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1.02fr 0.98fr;
    gap: 74px;
    align-items: center;
}

.mandala-title {
    max-width: 780px;
    margin-bottom: 24px;
    color: #2f2118;
    font-family: var(--font-serif);
    font-size: clamp(54px, 5.7vw, 86px);
    line-height: 1.02;
    letter-spacing: 0.1px;
    text-shadow: 0 12px 34px rgba(255, 255, 255, 0.72);
}

.mandala-lead {
    max-width: 700px;
    margin-bottom: 34px;
    color: rgba(58, 39, 25, 0.82);
    font-size: 19px;
    line-height: 1.8;
    font-weight: 600;
}

.mandala-hero-actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.mandala-hero-visual {
    position: relative;
}

.mandala-photo-card {
    position: relative;
    overflow: hidden;
    width: min(100%, 500px);
    margin-left: auto;
    border: 10px solid rgba(255, 250, 242, 0.9);
    border-radius: 34px;
    box-shadow:
        0 34px 90px rgba(130, 79, 31, 0.28),
        0 0 0 1px rgba(228, 154, 53, 0.22);
    background: #fff4e4;
}

.mandala-photo-card::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, transparent 58%, rgba(80, 48, 23, 0.18));
    pointer-events: none;
}

.mandala-photo-card img {
    width: 100%;
    aspect-ratio: 4 / 4.75;
    object-fit: cover;
    filter: saturate(1.10) contrast(1.04);
    transition: transform 0.75s var(--ease);
}

.mandala-photo-card:hover img {
    transform: scale(1.045);
}

.mandala-floating-note {
    position: absolute;
    left: -42px;
    bottom: 42px;
    max-width: 260px;
    padding: 18px 22px;
    border-radius: 24px;
    color: #382414;
    background: rgba(255, 250, 242, 0.92);
    border: 1px solid rgba(228, 154, 53, 0.22);
    box-shadow: 0 24px 56px rgba(130, 79, 31, 0.22);
    backdrop-filter: blur(16px);
}

.mandala-floating-note span {
    display: block;
    margin-bottom: 4px;
    color: #c26b25;
    font-size: 12px;
    line-height: 1;
    font-weight: 900;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.mandala-floating-note strong {
    display: block;
    font-family: var(--font-serif);
    font-size: 28px;
    line-height: 1.05;
    color: #2f2118;
}

/* CATEGORY SECTION */

.mandala-category-section {
    position: relative;
    background:
        linear-gradient(180deg, rgba(255, 247, 232, 0.93), rgba(255, 232, 199, 0.78)),
        url("../assets/og1.jpg");
    background-size: cover;
    background-position: center top;
    background-attachment: fixed;
}

.mandala-category-section::before {
    content: "";
    position: absolute;
    left: -120px;
    top: 110px;
    width: 360px;
    height: 360px;
    border-radius: 50%;
    background:
        repeating-radial-gradient(circle, rgba(228, 154, 53, 0.12) 0 1px, transparent 1px 22px),
        radial-gradient(circle, rgba(255, 211, 111, 0.22), transparent 70%);
    pointer-events: none;
}

.mandala-category-section::after {
    content: "";
    position: absolute;
    right: -140px;
    bottom: 120px;
    width: 420px;
    height: 420px;
    border-radius: 50%;
    background:
        radial-gradient(circle, rgba(255, 154, 108, 0.20), transparent 62%),
        radial-gradient(circle at 70% 30%, rgba(189, 167, 239, 0.18), transparent 44%);
    pointer-events: none;
}

.mandala-category-section > .container {
    position: relative;
    z-index: 2;
}

.mandala-category-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 24px;
}

/* CATEGORY CARD */

.mandala-category-card {
    position: relative;
    overflow: hidden;
    min-height: 330px;
    display: flex;
    flex-direction: column;
    padding: 30px 26px 28px;
    border-radius: 32px;
    color: #2f2118;
    background:
        linear-gradient(180deg, rgba(255, 250, 242, 0.92), rgba(255, 236, 213, 0.84));
    border: 1px solid rgba(228, 154, 53, 0.22);
    box-shadow:
        0 22px 58px rgba(130, 79, 31, 0.17),
        inset 0 1px 0 rgba(255, 255, 255, 0.78);
    isolation: isolate;
    transition:
        transform 0.45s var(--ease),
        box-shadow 0.45s var(--ease),
        border-color 0.45s var(--ease),
        background 0.45s var(--ease);
}

.mandala-category-card::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -2;
    background:
        radial-gradient(circle at 20% 8%, rgba(255, 255, 255, 0.62), transparent 32%),
        radial-gradient(circle at 90% 90%, rgba(255, 201, 95, 0.24), transparent 42%);
    opacity: 0.92;
}

.mandala-category-card::after {
    content: "";
    position: absolute;
    right: -85px;
    bottom: -90px;
    z-index: -1;
    width: 230px;
    height: 230px;
    border-radius: 50%;
    background:
        repeating-radial-gradient(circle, rgba(75, 51, 34, 0.10) 0 1px, transparent 1px 18px),
        radial-gradient(circle, rgba(255, 255, 255, 0.28), transparent 68%);
    opacity: 0.58;
    transform: rotate(0deg) scale(1);
    transition:
        transform 0.65s var(--ease),
        opacity 0.45s var(--ease);
}

.mandala-category-card:hover {
    transform: translateY(-12px);
    border-color: rgba(212, 108, 47, 0.42);
    box-shadow:
        0 36px 88px rgba(130, 79, 31, 0.28),
        inset 0 1px 0 rgba(255, 255, 255, 0.84);
}

.mandala-category-card:hover::after {
    transform: rotate(18deg) scale(1.14);
    opacity: 0.78;
}

.category-number {
    position: absolute;
    top: 22px;
    right: 24px;
    color: rgba(75, 51, 34, 0.20);
    font-size: 34px;
    line-height: 1;
    font-weight: 900;
}

.category-icon {
    display: inline-flex;
    width: 58px;
    height: 58px;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    border-radius: 50%;
    color: #392414;
    background: linear-gradient(135deg, #ffc95f, #ffe7a8 52%, #ff9a6c);
    box-shadow: 0 16px 34px rgba(228, 154, 53, 0.28);
    font-size: 24px;
    transition:
        transform 0.45s var(--ease),
        box-shadow 0.45s var(--ease);
}

.mandala-category-card:hover .category-icon {
    transform: translateY(-4px) rotate(8deg) scale(1.06);
    box-shadow: 0 22px 44px rgba(228, 154, 53, 0.38);
}

.mandala-category-card h3 {
    min-height: 72px;
    margin-bottom: 14px;
    color: #2f2118;
    font-size: 31px;
    line-height: 1.05;
}

.mandala-category-card p {
    margin-bottom: 26px;
    color: rgba(75, 51, 34, 0.76);
    font-size: 15px;
    line-height: 1.72;
    font-weight: 600;
}

.category-link {
    display: inline-flex;
    margin-top: auto;
    color: #c26b25;
    font-size: 15px;
    font-weight: 900;
    transition:
        transform 0.35s var(--ease),
        color 0.35s var(--ease);
}

.mandala-category-card:hover .category-link {
    transform: translateX(6px);
    color: #9b4f1f;
}

/* INDIVIDUAL CARD COLORS */

.card-seasonal {
    background: linear-gradient(180deg, rgba(255,250,242,0.94), rgba(255,226,186,0.86));
}

.card-wind {
    background: linear-gradient(180deg, rgba(255,250,242,0.94), rgba(210,237,235,0.84));
}

.card-calendar {
    background: linear-gradient(180deg, rgba(255,250,242,0.94), rgba(220,236,203,0.86));
}

.card-holder {
    background: linear-gradient(180deg, rgba(255,250,242,0.94), rgba(255,211,208,0.86));
}

.card-mirror {
    background: linear-gradient(180deg, rgba(255,250,242,0.94), rgba(232,226,214,0.88));
}

.card-clock {
    background: linear-gradient(180deg, rgba(255,250,242,0.94), rgba(255,224,168,0.88));
}

.card-picture {
    background: linear-gradient(180deg, rgba(255,250,242,0.94), rgba(226,213,255,0.80));
}

.card-hungarian {
    background: linear-gradient(180deg, rgba(255,250,242,0.94), rgba(255,207,176,0.86));
}

.card-oil {
    background: linear-gradient(180deg, rgba(255,250,242,0.94), rgba(215,235,202,0.86));
}

.card-decor {
    background: linear-gradient(180deg, rgba(255,250,242,0.94), rgba(255,232,199,0.88));
}

.card-lamp {
    background: linear-gradient(180deg, rgba(255,250,242,0.94), rgba(255,218,176,0.88));
}

.card-small {
    background: linear-gradient(180deg, rgba(255,250,242,0.94), rgba(241,214,222,0.84));
}

/* HIGHLIGHT */

.mandala-highlight {
    background:
        linear-gradient(90deg, rgba(255, 248, 236, 0.92), rgba(255, 238, 213, 0.80), rgba(232, 239, 213, 0.72)),
        url("../assets/og3.jpg");
    background-size: cover;
    background-position: center center;
    background-attachment: fixed;
}

.mandala-highlight-grid {
    display: grid;
    grid-template-columns: 1fr 0.85fr;
    gap: 54px;
    align-items: center;
}

.highlight-content .section-lead {
    margin-inline: 0;
}

.highlight-card {
    position: relative;
    overflow: hidden;
    padding: 42px 38px;
    border-radius: 34px;
    background:
        linear-gradient(145deg, rgba(255,250,242,0.93), rgba(255,226,186,0.84));
    border: 1px solid rgba(228, 154, 53, 0.22);
    box-shadow:
        0 28px 76px rgba(130, 79, 31, 0.20),
        inset 0 1px 0 rgba(255, 255, 255, 0.78);
}

.highlight-card::after {
    content: "";
    position: absolute;
    right: -100px;
    bottom: -120px;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background:
        repeating-radial-gradient(circle, rgba(75, 51, 34, 0.10) 0 1px, transparent 1px 20px),
        radial-gradient(circle, rgba(255, 255, 255, 0.28), transparent 68%);
    pointer-events: none;
}

.highlight-card > * {
    position: relative;
    z-index: 2;
}

.highlight-card h3 {
    margin-bottom: 14px;
    color: #2f2118;
    font-size: 38px;
}

.highlight-card p {
    margin-bottom: 26px;
    color: rgba(75, 51, 34, 0.78);
    font-size: 17px;
    line-height: 1.75;
    font-weight: 600;
}

/* FINAL CTA */

.mandala-final {
    padding-bottom: 90px;
    background:
        linear-gradient(180deg, rgba(255, 244, 226, 0.66), rgba(255, 226, 206, 0.60)),
        url("../assets/og2.jpg");
    background-size: cover;
    background-position: center center;
    background-attachment: fixed;
}

.mandala-final-card {
    position: relative;
    overflow: hidden;
    max-width: 1120px;
    margin-inline: auto;
    padding: 78px 72px;
    border-radius: 40px;
    text-align: center;
    background:
        linear-gradient(135deg, rgba(255, 246, 226, 0.90) 0%, rgba(255, 204, 111, 0.82) 34%, rgba(255, 154, 108, 0.74) 68%, rgba(189, 167, 239, 0.58) 100%),
        url("../assets/og1.jpg");
    background-size: cover;
    background-position: center center;
    border: 1px solid rgba(255,255,255,0.72);
    box-shadow:
        0 36px 96px rgba(130, 79, 31, 0.30),
        inset 0 1px 0 rgba(255,255,255,0.62);
}

.mandala-final-card::after {
    content: "";
    position: absolute;
    right: -120px;
    bottom: -140px;
    width: 430px;
    height: 430px;
    border-radius: 50%;
    background:
        repeating-radial-gradient(circle, rgba(75, 51, 34, 0.12) 0 1px, transparent 1px 22px),
        radial-gradient(circle, rgba(255, 255, 255, 0.28), transparent 68%);
    pointer-events: none;
}

.mandala-final-card > * {
    position: relative;
    z-index: 2;
}

.mandala-final-card h2 {
    max-width: 820px;
    margin: 0 auto 22px;
    color: #2f2118;
    font-family: var(--font-serif);
    font-size: clamp(44px, 5vw, 72px);
    line-height: 1.05;
    text-shadow: 0 8px 26px rgba(255,255,255,0.52);
}

.mandala-final-card p {
    max-width: 720px;
    margin: 0 auto 32px;
    color: rgba(58, 39, 25, 0.82);
    font-size: 18px;
    line-height: 1.8;
    font-weight: 600;
}

.mandala-final-buttons {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

/* ACTIVE NAV */

.main-nav .active-link {
    color: #d46c2f !important;
}

/* ENTRANCE ANIMATION */

@keyframes mandalaCardIn {
    from {
        opacity: 0;
        transform: translateY(26px) scale(0.98);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.mandala-category-card {
    animation: mandalaCardIn 0.7s var(--ease) both;
}

.mandala-category-card:nth-child(1) { animation-delay: 0.03s; }
.mandala-category-card:nth-child(2) { animation-delay: 0.06s; }
.mandala-category-card:nth-child(3) { animation-delay: 0.09s; }
.mandala-category-card:nth-child(4) { animation-delay: 0.12s; }
.mandala-category-card:nth-child(5) { animation-delay: 0.15s; }
.mandala-category-card:nth-child(6) { animation-delay: 0.18s; }
.mandala-category-card:nth-child(7) { animation-delay: 0.21s; }
.mandala-category-card:nth-child(8) { animation-delay: 0.24s; }
.mandala-category-card:nth-child(9) { animation-delay: 0.27s; }
.mandala-category-card:nth-child(10) { animation-delay: 0.30s; }
.mandala-category-card:nth-child(11) { animation-delay: 0.33s; }
.mandala-category-card:nth-child(12) { animation-delay: 0.36s; }

/* RESPONSIVE */

@media (max-width: 1150px) {
    .mandala-hero-grid,
    .mandala-highlight-grid {
        grid-template-columns: 1fr;
        gap: 46px;
    }

    .mandala-hero-content,
    .highlight-content {
        text-align: center;
    }

    .mandala-lead,
    .highlight-content .section-lead {
        margin-inline: auto;
    }

    .mandala-hero-actions,
    .mandala-final-buttons {
        justify-content: center;
    }

    .mandala-photo-card {
        margin-inline: auto;
    }

    .mandala-floating-note {
        left: 50%;
        bottom: -28px;
        transform: translateX(-50%);
        width: calc(100% - 40px);
        max-width: 380px;
        text-align: center;
    }

    .mandala-category-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 900px) {
    .mandala-hero {
        min-height: auto;
        padding: 64px 0 92px;
    }

    .mandala-title {
        font-size: clamp(44px, 9vw, 64px);
    }

    .mandala-lead {
        font-size: 17px;
    }

    .mandala-photo-card {
        width: min(100%, 430px);
    }

    .mandala-category-section,
    .mandala-highlight,
    .mandala-final {
        background-attachment: scroll;
    }

    .mandala-category-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .highlight-card {
        text-align: center;
    }

    .mandala-final-card {
        padding: 56px 32px;
    }
}

@media (max-width: 650px) {
    .mandala-hero {
        padding: 52px 0 88px;
    }

    .mandala-title {
        font-size: clamp(39px, 12vw, 52px);
    }

    .mandala-lead {
        font-size: 16px;
        line-height: 1.72;
    }

    .mandala-hero-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .mandala-photo-card {
        border-width: 7px;
        border-radius: 28px;
    }

    .mandala-floating-note {
        padding: 17px 18px;
    }

    .mandala-floating-note strong {
        font-size: 24px;
    }

    .mandala-category-grid {
        grid-template-columns: 1fr;
    }

    .mandala-category-card {
        min-height: auto;
        padding: 30px 24px 28px;
    }

    .mandala-category-card h3 {
        min-height: auto;
        font-size: 30px;
    }

    .category-number {
        font-size: 30px;
    }

    .highlight-card {
        padding: 34px 24px;
        border-radius: 30px;
    }

    .highlight-card h3 {
        font-size: 34px;
    }

    .mandala-final-card {
        padding: 48px 24px;
        border-radius: 30px;
    }

    .mandala-final-card h2 {
        font-size: clamp(38px, 11vw, 52px);
    }

    .mandala-final-card p {
        font-size: 16px;
    }

    .mandala-final-buttons {
        flex-direction: column;
        align-items: stretch;
    }
}