/* =========================================================
   Sofía García — Portfolio — Category Page
   Original layout preserved.
   Supports horizontal 16:9 and vertical 9:16 videos.
   ========================================================= */

:root {
    --paper: #FAF7F1;
    --paper-warm: #FDEEE1;
    --paper-cool: #E9F5F1;
    --ink: #1E2129;
    --ink-soft: #5B5F6B;
    --coral: #FF5B4C;
    --coral-dark: #E14535;
    --teal: #15978A;
    --teal-soft: rgba(21, 151, 138, 0.1);
    --gold: #FFC94A;
    --card: #FFFFFF;
    --border: rgba(30, 33, 41, 0.1);
    --shadow: 0 10px 30px rgba(30, 33, 41, 0.08);
    --shadow-lift: 0 20px 40px rgba(255, 91, 76, 0.18);
}


/* =========================================================
   Reset
   ========================================================= */

*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    width: 100%;

    /*
       Prevents mobile browsers from automatically enlarging
       text and changing the scale of the layout.
    */
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

body {
    width: 100%;
    min-width: 0;
    min-height: 100vh;

    overflow-x: hidden;

    font-family:
        'Montserrat',
        -apple-system,
        BlinkMacSystemFont,
        'Segoe UI',
        Roboto,
        Oxygen,
        Ubuntu,
        Cantarell,
        sans-serif;

    background: var(--paper);
    color: var(--ink);
    line-height: 1.6;
}

main,
section,
article,
div,
nav {
    min-width: 0;
}

img,
video,
iframe {
    display: block;
    max-width: 100%;
}

h1,
h2,
h3 {
    font-family: 'Gasoek One', 'Montserrat', sans-serif;
    font-weight: 400;
    letter-spacing: 0.5px;
}


/* =========================================================
   Eyebrow labels
   ========================================================= */

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;

    margin-bottom: 0.75rem;

    font-family: 'Montserrat', sans-serif;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 3px;
    line-height: 1.2;
    text-transform: uppercase;

    color: var(--teal);
}

.eyebrow::before {
    content: '';

    display: inline-block;
    flex-shrink: 0;

    width: 18px;
    height: 2px;

    background: var(--coral);
}


/* =========================================================
   Back button + Language switch
   ========================================================= */

.back-button {
    position: fixed;
    top: 2rem;
    left: 2rem;
    z-index: 1000;

    padding: 0.75rem 1.5rem;

    border: 1px solid var(--border);
    border-radius: 50px;

    background: var(--card);
    color: var(--ink);
    box-shadow: var(--shadow);

    font-size: 0.85rem;
    font-weight: 600;
    line-height: 1.2;
    text-decoration: none;
    white-space: nowrap;

    transition:
        background 0.3s ease,
        color 0.3s ease,
        transform 0.3s ease;
}

.back-button:hover {
    background: var(--ink);
    color: var(--paper);

    transform: translateY(-2px);
}

.language-switch {
    position: fixed;
    top: 2rem;
    right: 2rem;
    z-index: 1000;

    padding: 0.75rem 1.5rem;

    border: 1px solid var(--border);
    border-radius: 50px;

    background: var(--card);
    color: var(--ink);
    box-shadow: var(--shadow);

    font-size: 0.85rem;
    font-weight: 600;
    line-height: 1.2;
    text-decoration: none;
    white-space: nowrap;

    transition:
        background 0.3s ease,
        color 0.3s ease,
        transform 0.3s ease;
}

.language-switch:hover {
    background: var(--ink);
    color: var(--paper);

    transform: translateY(-2px);
}


/* =========================================================
   Category Header
   ========================================================= */

.category-header {
    position: relative;

    overflow: hidden;

    padding: 8rem 2rem 4rem;

    background:
        linear-gradient(
            135deg,
            var(--paper-warm) 0%,
            var(--paper) 45%,
            var(--paper-cool) 100%
        );

    text-align: center;
}

.category-header::before {
    content: '';

    position: absolute;
    inset: 0;
    z-index: 0;

    background:
        radial-gradient(
            circle at 15% 20%,
            rgba(255, 91, 76, 0.12) 0%,
            transparent 45%
        ),
        radial-gradient(
            circle at 85% 85%,
            rgba(21, 151, 138, 0.14) 0%,
            transparent 50%
        );

    pointer-events: none;
}

.category-header p.eyebrow,
.category-header h1,
.category-header p.category-description {
    position: relative;
    z-index: 1;
}

.category-header .eyebrow {
    justify-content: center;
}

.category-header h1 {
    margin-bottom: 1rem;

    color: var(--ink);

    font-size: 3.5rem;
    line-height: 1.15;

    overflow-wrap: anywhere;
}

.category-header .category-description {
    max-width: 600px;

    margin: 0 auto;

    color: var(--ink-soft);

    font-size: 1.15rem;
}


/* =========================================================
   Corner-frame signature motif
   ========================================================= */

.corner-frame {
    position: relative;
}

.corner-frame::before {
    content: '';

    position: absolute;
    inset: 10px;
    z-index: 2;

    opacity: 0.9;
    pointer-events: none;

    background:
        linear-gradient(var(--coral), var(--coral))
            top left / 22px 3px no-repeat,
        linear-gradient(var(--coral), var(--coral))
            top left / 3px 22px no-repeat,

        linear-gradient(var(--coral), var(--coral))
            top right / 22px 3px no-repeat,
        linear-gradient(var(--coral), var(--coral))
            top right / 3px 22px no-repeat,

        linear-gradient(var(--coral), var(--coral))
            bottom left / 22px 3px no-repeat,
        linear-gradient(var(--coral), var(--coral))
            bottom left / 3px 22px no-repeat,

        linear-gradient(var(--coral), var(--coral))
            bottom right / 22px 3px no-repeat,
        linear-gradient(var(--coral), var(--coral))
            bottom right / 3px 22px no-repeat;

    transition:
        inset 0.3s ease,
        opacity 0.3s ease;
}

.corner-frame:hover::before {
    inset: 16px;
    opacity: 1;
}


/* =========================================================
   Videos Section
   ========================================================= */

.videos-section {
    display: flex;
    flex-direction: column;
    gap: 4rem;

    max-width: 900px;

    margin: 0 auto;
    padding: 2rem 2rem 6rem;
}

.video-block {
    display: flex;
    flex-direction: column;
    gap: 1rem;

    width: 100%;
    min-width: 0;
}


/*
   Optional class for vertical video blocks.

   Add video-block--portrait to the article or div containing
   the eyebrow, video and information.
*/
.video-block--portrait {
    width: min(100%, 430px);

    margin-right: auto;
    margin-left: auto;
}


/* =========================================================
   Video containers
   ========================================================= */

.video-container {
    position: relative;

    width: 100%;

    /*
       Default ratio for all existing videos.
    */
    aspect-ratio: 16 / 9;

    overflow: hidden;
    isolation: isolate;

/*     border: 1px solid var(--border);
    border-radius: 16px;

    background: #000;
    box-shadow: var(--shadow); */
}


/*
   Add this class only to vertical Reels, Shorts or TikToks.
*/
.video-container--portrait {
    aspect-ratio: 9 / 16;
}


/*
   Optional explicit landscape class.
   Existing videos do not require this because 16:9 is default.
*/
.video-container--landscape {
    aspect-ratio: 16 / 9;
}


/*
   Optional square format.
*/
.video-container--square {
    aspect-ratio: 1 / 1;
}


/* =========================================================
   Embedded video
   ========================================================= */

.video-embed {
    position: absolute;
    inset: 0;

    display: block;

    width: 100%;
    height: 100%;
    max-width: none;
    min-width: 0;
    min-height: 0;

    margin: 0;
    padding: 0;
    border: 0;
    border-radius: inherit;

    background: #000;
}


/* =========================================================
   Video information
   ========================================================= */

.video-info {
    min-width: 0;

    padding: 0 0.25rem;
}

.video-info .eyebrow {
    margin-bottom: 0.5rem;
}

.video-info h3 {
    margin-bottom: 0.4rem;

    color: var(--ink);

    font-size: 1.5rem;
    line-height: 1.3;

    overflow-wrap: anywhere;
}

.video-info p {
    color: var(--ink-soft);

    font-size: 0.95rem;

    overflow-wrap: anywhere;
}


/* =========================================================
   Category CTA
   ========================================================= */

.category-cta {
    max-width: 900px;

    margin: 0 auto;
    padding: 0 2rem 6rem;
}

.category-cta-inner {
    position: relative;

    overflow: hidden;

    padding: 3.5rem 2rem;

    border-radius: 20px;

    background:
        linear-gradient(
            135deg,
            var(--ink) 0%,
            #2B2F3B 100%
        );

    text-align: center;
}

.category-cta-inner::before {
    content: '';

    position: absolute;
    inset: 0;
    z-index: 0;

    background:
        radial-gradient(
            circle at 15% 20%,
            rgba(255, 91, 76, 0.25) 0%,
            transparent 45%
        ),
        radial-gradient(
            circle at 85% 85%,
            rgba(21, 151, 138, 0.25) 0%,
            transparent 50%
        ),
        radial-gradient(
            circle at 90% 10%,
            rgba(255, 201, 74, 0.18) 0%,
            transparent 40%
        );

    pointer-events: none;
}

.category-cta-inner > * {
    position: relative;
    z-index: 1;
}

.category-cta-inner .eyebrow {
    justify-content: center;

    color: var(--gold);
}

.category-cta-inner .eyebrow::before {
    background: var(--gold);
}

.category-cta-inner h2 {
    margin-bottom: 0.75rem;

    color: var(--paper);

    font-size: 2.4rem;
    line-height: 1.2;

    overflow-wrap: anywhere;
}

.category-cta-inner p {
    max-width: 480px;

    margin: 0 auto 2rem;

    color: rgba(250, 247, 241, 0.75);

    font-size: 1.05rem;
}


/* =========================================================
   CTA button
   ========================================================= */

.category-cta-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;

    padding: 1.1rem 2.75rem;

    border-radius: 50px;

    background: var(--coral);
    color: #fff;

    box-shadow: 0 8px 24px rgba(255, 91, 76, 0.35);

    font-family: 'Montserrat', sans-serif;
    font-size: 1.05rem;
    font-weight: 700;
    line-height: 1.2;
    text-decoration: none;

    animation: ctaPulse 2.4s ease-in-out infinite;

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

.category-cta-button:hover {
    background: var(--coral-dark);

    box-shadow: 0 14px 34px rgba(255, 91, 76, 0.5);

    transform: scale(1.06);
}

.category-cta-button .arrow {
    display: inline-block;

    transition: transform 0.3s ease;
}

.category-cta-button:hover .arrow {
    transform: translateX(4px);
}


/* =========================================================
   CTA animation
   ========================================================= */

@keyframes ctaPulse {
    0%,
    100% {
        box-shadow: 0 8px 24px rgba(255, 91, 76, 0.35);
    }

    50% {
        box-shadow: 0 8px 34px rgba(255, 91, 76, 0.55);
    }
}


/* =========================================================
   Tablet
   ========================================================= */

@media (max-width: 768px) {
    .back-button,
    .language-switch {
        top: 1rem;

        max-width: calc(50vw - 1.5rem);

        overflow: hidden;

        padding: 0.6rem 1rem;

        font-size: 0.8rem;
        text-overflow: ellipsis;
    }

    .back-button {
        left: 1rem;
    }

    .language-switch {
        right: 1rem;
    }

    .category-header {
        padding: 6rem 1.5rem 3rem;
    }

    .category-header h1 {
        font-size: 2.3rem;
        line-height: 1.1;
    }

    .category-header .category-description {
        font-size: 1rem;
    }

    .videos-section {
        width: 100%;

        padding: 1.5rem 1.25rem 4rem;

        gap: 2.5rem;
    }

    .video-block {
        width: 100%;
    }

    .video-block--portrait {
        width: min(100%, 430px);
    }

    .video-container {
        min-width: 0;
        min-height: 0;
    }

    .video-embed {
        min-width: 0;
        min-height: 0;
    }

    .video-info h3 {
        font-size: 1.2rem;
    }

    .category-cta {
        width: 100%;

        padding: 0 1.25rem 4rem;
    }

    .category-cta-inner {
        padding: 2.5rem 1.5rem;
    }

    .category-cta-inner h2 {
        font-size: 1.8rem;
    }
}


/* =========================================================
   Mobile
   ========================================================= */

@media (max-width: 480px) {
    .back-button,
    .language-switch {
        padding: 0.6rem 0.8rem;

        font-size: 0.72rem;
    }

    .back-button {
        max-width: calc(100vw - 7.5rem);
    }

    .language-switch {
        flex-shrink: 0;
    }

    .category-header {
        padding: 5.75rem 1rem 2.75rem;
    }

    .category-header h1 {
        font-size: clamp(1.85rem, 10vw, 2.3rem);
    }

    .videos-section {
        padding: 1.5rem 1rem 4rem;
    }

    .video-container {
        border-radius: 14px;
    }

    .video-block--portrait {
        width: min(100%, 430px);
    }

    .corner-frame::before {
        inset: 8px;
    }

    .category-cta {
        padding: 0 1rem 4rem;
    }

    .category-cta-inner {
        padding: 2.25rem 1.25rem;
    }
}


/* =========================================================
   Very narrow mobile screens
   ========================================================= */

@media (max-width: 375px) {
    .back-button,
    .language-switch {
        padding: 0.55rem 0.7rem;

        font-size: 0.68rem;
    }

    .back-button {
        left: 0.65rem;

        max-width: calc(100vw - 6.75rem);
    }

    .language-switch {
        right: 0.65rem;
    }

    .category-header h1 {
        font-size: 1.9rem;
    }

    .videos-section {
        padding-right: 0.75rem;
        padding-left: 0.75rem;
    }

    .category-cta {
        padding-right: 0.75rem;
        padding-left: 0.75rem;
    }
}


/* =========================================================
   Touch devices
   ========================================================= */

@media (hover: none) {
    .back-button:hover,
    .language-switch:hover {
        transform: none;
    }

    .corner-frame:hover::before {
        inset: 8px;
    }

    .category-cta-button:hover {
        transform: none;
    }

    .category-cta-button:hover .arrow {
        transform: none;
    }
}


/* =========================================================
   Reduced motion accessibility
   ========================================================= */

@media (prefers-reduced-motion: reduce) {
    .category-cta-button {
        animation: none;
    }

    .back-button,
    .language-switch,
    .corner-frame::before,
    .category-cta-button,
    .category-cta-button .arrow {
        transition: none;
    }
}