/* =========================================================
   CaffeeMandala'D – Horgolmányok kategória oldal
   Külön CSS a horgolmanyok.html oldalhoz
   ========================================================= */

/* HERO */

.horg-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;
}

.horg-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%);
}

.horg-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;
}

.horg-hero-grid {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1.02fr 0.98fr;
    gap: 74px;
    align-items: center;
}

.horg-title {
    max-width: 800px;
    margin-bottom: 24px;
    color: #2f2118;
    font-family: var(--font-serif);
    font-size: clamp(54px, 5.6vw, 84px);
    line-height: 1.02;
    letter-spacing: 0.1px;
    text-shadow: 0 12px 34px rgba(255, 255, 255, 0.72);
}

.horg-lead {
    max-width: 700px;
    margin-bottom: 34px;
    color: rgba(58, 39, 25, 0.82);
    font-size: 19px;
    line-height: 1.8;
    font-weight: 600;
}

.horg-hero-actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.horg-hero-visual {
    position: relative;
}

.horg-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;
}

.horg-photo-card::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, transparent 58%, rgba(80, 48, 23, 0.18));
    pointer-events: none;
}

.horg-photo-card img {
    width: 100%;
    aspect-ratio: 4 / 4.75;
    object-fit: cover;
    filter: saturate(1.12) contrast(1.04) brightness(1.03);
    transition: transform 0.75s var(--ease);
}

.horg-photo-card:hover img {
    transform: scale(1.045);
}

.horg-floating-note {
    position: absolute;
    left: -42px;
    bottom: 42px;
    max-width: 280px;
    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);
}

.horg-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;
}

.horg-floating-note strong {
    display: block;
    font-family: var(--font-serif);
    font-size: 28px;
    line-height: 1.05;
    color: #2f2118;
}

/* CATEGORY SECTION */

.horg-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;
}

.horg-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;
}

.horg-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;
}

.horg-category-section > .container {
    position: relative;
    z-index: 2;
}

.horg-category-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 24px;
}

/* CATEGORY CARD */

.horg-category-card {
    position: relative;
    overflow: hidden;
    min-height: 350px;
    display: flex;
    flex-direction: column;
    padding: 32px 26px 30px;
    border-radius: 34px;
    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);
}

.horg-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;
}

.horg-category-card::after {
    content: "";
    position: absolute;
    right: -85px;
    bottom: -90px;
    z-index: -1;
    width: 250px;
    height: 250px;
    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);
}

.horg-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);
}

.horg-category-card:hover::after {
    transform: rotate(18deg) scale(1.14);
    opacity: 0.78;
}

.category-number {
    position: absolute;
    top: 24px;
    right: 26px;
    color: rgba(75, 51, 34, 0.20);
    font-size: 36px;
    line-height: 1;
    font-weight: 900;
}

.category-icon {
    display: inline-flex;
    width: 64px;
    height: 64px;
    align-items: center;
    justify-content: center;
    margin-bottom: 26px;
    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: 27px;
    transition:
        transform 0.45s var(--ease),
        box-shadow 0.45s var(--ease);
}

.horg-category-card:hover .category-icon {
    transform: translateY(-4px) rotate(8deg) scale(1.06);
    box-shadow: 0 22px 44px rgba(228, 154, 53, 0.38);
}

.horg-category-card h3 {
    margin-bottom: 16px;
    color: #2f2118;
    font-size: 32px;
    line-height: 1.04;
}

.horg-category-card p {
    margin-bottom: 28px;
    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);
}

.horg-category-card:hover .category-link {
    transform: translateX(6px);
    color: #9b4f1f;
}

/* CARD COLORS */

.card-diy {
    background: linear-gradient(180deg, rgba(255,250,242,0.95), rgba(255,226,186,0.88));
}

.card-tricotin {
    background: linear-gradient(180deg, rgba(255,250,242,0.95), rgba(255,211,208,0.86));
}

.card-cords {
    background: linear-gradient(180deg, rgba(255,250,242,0.95), rgba(220,236,203,0.88));
}

.card-crochet {
    background: linear-gradient(180deg, rgba(255,250,242,0.95), rgba(226,213,255,0.78));
}

/* WHY SECTION */

.horg-why {
    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;
}

.horg-why-grid {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 54px;
    align-items: center;
}

.horg-why-content .section-lead {
    margin-inline: 0;
}

.horg-why-cards {
    display: grid;
    gap: 22px;
}

.horg-mini-card {
    display: grid;
    grid-template-columns: 74px 1fr;
    gap: 22px;
    align-items: start;
    padding: 32px 34px;
    border-radius: 30px;
    background: rgba(255, 250, 242, 0.90);
    border: 1px solid rgba(228, 154, 53, 0.22);
    box-shadow:
        0 22px 58px rgba(130, 79, 31, 0.16),
        inset 0 1px 0 rgba(255, 255, 255, 0.78);
    transition:
        transform 0.4s var(--ease),
        box-shadow 0.4s var(--ease),
        border-color 0.4s var(--ease);
}

.horg-mini-card:nth-child(1) {
    background:
        radial-gradient(circle at 88% 18%, rgba(255, 201, 95, 0.22), transparent 34%),
        linear-gradient(145deg, rgba(255,250,242,0.94), rgba(255,226,186,0.86));
}

.horg-mini-card:nth-child(2) {
    background:
        radial-gradient(circle at 88% 18%, rgba(255, 154, 108, 0.18), transparent 34%),
        linear-gradient(145deg, rgba(255,250,242,0.94), rgba(255,211,208,0.86));
}

.horg-mini-card:nth-child(3) {
    background:
        radial-gradient(circle at 88% 18%, rgba(143, 183, 131, 0.20), transparent 34%),
        linear-gradient(145deg, rgba(255,250,242,0.94), rgba(220,236,203,0.86));
}

.horg-mini-card:hover {
    transform: translateY(-7px);
    border-color: rgba(212, 108, 47, 0.36);
    box-shadow:
        0 34px 82px rgba(130, 79, 31, 0.24),
        inset 0 1px 0 rgba(255, 255, 255, 0.82);
}

.horg-mini-card span {
    display: flex;
    width: 62px;
    height: 62px;
    align-items: center;
    justify-content: center;
    margin: 0;
    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;
    line-height: 1;
    flex-shrink: 0;
}

.horg-mini-card h3 {
    margin: 0 0 8px;
    color: #2f2118;
    font-family: var(--font-serif);
    font-size: 31px;
    line-height: 1.08;
}

.horg-mini-card p {
    margin: 0;
    color: rgba(75, 51, 34, 0.76);
    font-size: 16px;
    line-height: 1.72;
    font-weight: 600;
}

/* PROCESS */

.horg-process {
    background:
        linear-gradient(135deg, rgba(255, 248, 236, 0.96), rgba(255, 236, 213, 0.84), rgba(232, 239, 213, 0.74));
}

.horg-process-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 22px;
}

.horg-process-card {
    min-height: 300px;
    padding: 34px 28px;
    border-radius: 30px;
    background: rgba(255, 250, 242, 0.88);
    border: 1px solid rgba(228, 154, 53, 0.22);
    box-shadow:
        0 22px 58px rgba(130, 79, 31, 0.16),
        inset 0 1px 0 rgba(255, 255, 255, 0.78);
    transition:
        transform 0.4s var(--ease),
        box-shadow 0.4s var(--ease),
        border-color 0.4s var(--ease);
}

.horg-process-card:nth-child(1) {
    background: linear-gradient(180deg, rgba(255,250,242,0.92), rgba(255,226,186,0.84));
}

.horg-process-card:nth-child(2) {
    background: linear-gradient(180deg, rgba(255,250,242,0.92), rgba(255,211,208,0.84));
}

.horg-process-card:nth-child(3) {
    background: linear-gradient(180deg, rgba(255,250,242,0.92), rgba(220,236,203,0.84));
}

.horg-process-card:nth-child(4) {
    background: linear-gradient(180deg, rgba(255,250,242,0.92), rgba(226,213,255,0.78));
}

.horg-process-card:hover {
    transform: translateY(-9px);
    border-color: rgba(212, 108, 47, 0.38);
    box-shadow: 0 34px 82px rgba(130, 79, 31, 0.24);
}

.horg-process-card span {
    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-weight: 900;
}

.horg-process-card h3 {
    margin-bottom: 12px;
    color: #2f2118;
    font-size: 29px;
}

.horg-process-card p {
    color: rgba(75, 51, 34, 0.76);
    font-weight: 600;
}

/* FINAL CTA */

.horg-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;
}

.horg-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);
}

.horg-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;
}

.horg-final-card > * {
    position: relative;
    z-index: 2;
}

.horg-final-card h2 {
    max-width: 850px;
    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);
}

.horg-final-card p {
    max-width: 740px;
    margin: 0 auto 32px;
    color: rgba(58, 39, 25, 0.82);
    font-size: 18px;
    line-height: 1.8;
    font-weight: 600;
}

.horg-final-buttons {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

/* ACTIVE NAV */

.main-nav .active-link {
    color: #d46c2f !important;
}

/* ENTRANCE ANIMATION */

@keyframes horgCardIn {
    from {
        opacity: 0;
        transform: translateY(26px) scale(0.98);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.horg-category-card {
    animation: horgCardIn 0.7s var(--ease) both;
}

.horg-category-card:nth-child(1) { animation-delay: 0.04s; }
.horg-category-card:nth-child(2) { animation-delay: 0.10s; }
.horg-category-card:nth-child(3) { animation-delay: 0.16s; }
.horg-category-card:nth-child(4) { animation-delay: 0.22s; }

/* RESPONSIVE */

@media (max-width: 1150px) {
    .horg-hero-grid,
    .horg-why-grid {
        grid-template-columns: 1fr;
        gap: 46px;
    }

    .horg-hero-content,
    .horg-why-content {
        text-align: center;
    }

    .horg-lead,
    .horg-why-content .section-lead {
        margin-inline: auto;
    }

    .horg-hero-actions,
    .horg-final-buttons {
        justify-content: center;
    }

    .horg-photo-card {
        margin-inline: auto;
    }

    .horg-floating-note {
        left: 50%;
        bottom: -28px;
        transform: translateX(-50%);
        width: calc(100% - 40px);
        max-width: 390px;
        text-align: center;
    }

    .horg-category-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .horg-process-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 900px) {
    .horg-hero {
        min-height: auto;
        padding: 64px 0 92px;
    }

    .horg-title {
        font-size: clamp(44px, 9vw, 64px);
    }

    .horg-lead {
        font-size: 17px;
    }

    .horg-photo-card {
        width: min(100%, 430px);
    }

    .horg-category-section,
    .horg-why,
    .horg-final {
        background-attachment: scroll;
    }

    .horg-mini-card {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .horg-mini-card span {
        margin-inline: auto;
    }

    .horg-final-card {
        padding: 56px 32px;
    }
}

@media (max-width: 650px) {
    .horg-hero {
        padding: 52px 0 88px;
    }

    .horg-title {
        font-size: clamp(39px, 12vw, 52px);
    }

    .horg-lead {
        font-size: 16px;
        line-height: 1.72;
    }

    .horg-hero-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .horg-photo-card {
        border-width: 7px;
        border-radius: 28px;
    }

    .horg-floating-note {
        padding: 17px 18px;
    }

    .horg-floating-note strong {
        font-size: 24px;
    }

    .horg-category-grid {
        grid-template-columns: 1fr;
    }

    .horg-category-card {
        min-height: auto;
        padding: 30px 24px 28px;
    }

    .horg-category-card h3 {
        font-size: 31px;
    }

    .category-number {
        font-size: 30px;
    }

    .horg-process-grid {
        grid-template-columns: 1fr;
    }

    .horg-process-card {
        min-height: auto;
        text-align: center;
    }

    .horg-final-card {
        padding: 48px 24px;
        border-radius: 30px;
    }

    .horg-final-card h2 {
        font-size: clamp(38px, 11vw, 52px);
    }

    .horg-final-card p {
        font-size: 16px;
    }

    .horg-final-buttons {
        flex-direction: column;
        align-items: stretch;
    }
}