/**
 * Centre Films - Custom Styles
 * Ergänzend zu Tailwind und theme.json
 */

/* ========================================
   Fluid Typography (clamp)
   Desktop: 1440px, Mobile: 390px
   ======================================== */

.cf-h1 {
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: clamp(2.5rem, 1.5rem + 4.17vw, 5rem);
    line-height: 1;
    letter-spacing: -3px;
}

.cf-h2 {
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: clamp(2rem, 1.33rem + 2.78vw, 3rem);
    line-height: 1.1;
}

.cf-h3 {
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: clamp(1.5rem, 1.17rem + 1.39vw, 2rem);
    line-height: 1.2;
    letter-spacing: -3px;
}

.cf-body {
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    font-size: 1rem;
    line-height: 1.3;
}

.cf-sub {
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    font-size: 0.875rem;
    line-height: 1.3;
    color: #666666;
}

/* ========================================
   Layout
   ======================================== */

.cf-container {
    width: 100%;
    max-width: 1440px;
    margin-left: auto;
    margin-right: auto;
    padding-left: clamp(1.25rem, 2.78vw, 2.5rem);
    padding-right: clamp(1.25rem, 2.78vw, 2.5rem);
}

/* ========================================
   Buttons
   ======================================== */

.cf-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    transition: all 0.3s ease;
}

.cf-btn-primary {
    background-color: #F9E62B;
    color: #000000;
}

.cf-btn-primary:hover {
    background-color: #e0cf27;
}

.cf-btn-outline {
    background-color: transparent;
    color: #FFFFFF;
    border: 1px solid #FFFFFF;
}

.cf-btn-outline:hover {
    background-color: #FFFFFF;
    color: #000000;
}

/* --- CTA Buttons (Primary + Secondary with Corner Triangle) --- */

.cf-btn-cta-pri,
.cf-btn-cta-sec {
    display: inline-flex;
    align-items: center;
    position: relative;
    padding: 0 61px 0 24px;
    height: 56px;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 1rem;
    line-height: 1.3;
    letter-spacing: 0.01em;
    text-decoration: none;
    overflow: hidden;
    cursor: pointer;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.cf-btn-cta__label {
    position: relative;
    z-index: 1;
    white-space: nowrap;
}

.cf-btn-cta__icon {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
}

.cf-btn-cta__icon svg {
    width: 24px;
    height: 24px;
    transition: fill 0.3s ease;
}

/* Corner shape (shape from assets/img/rectangle.svg) */
.cf-btn-cta-pri::after,
.cf-btn-cta-sec::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 61px;
    height: 100%;
    -webkit-mask-image: url('../img/rectangle.svg');
    -webkit-mask-size: 100% 100%;
    -webkit-mask-repeat: no-repeat;
    mask-image: url('../img/rectangle.svg');
    mask-size: 100% 100%;
    mask-repeat: no-repeat;
    z-index: 0;
    pointer-events: none;
    transition: background-color 0.3s ease, opacity 0.3s ease;
}

/* --- Secondary (outline, yellow triangle) --- */
.cf-btn-cta-sec {
    border: 1px solid #F9E62B;
    background: transparent;
    color: #F9E62B;
    padding-right: 65px;
}

.cf-btn-cta-sec::after {
    background: #F9E62B;
    top: -1px;
    right: -1px;
    height: calc(100% + 2px);
    width: 65px;
}

.cf-btn-cta-sec .cf-btn-cta__icon svg {
    fill: #000000;
}

.cf-btn-cta-sec:hover {
    background-color: #F9E62B;
    color: #000000;
    text-decoration: none;
}

.cf-btn-cta-sec:hover::after {
    opacity: 0;
}

.cf-btn-cta-sec:hover .cf-btn-cta__icon svg {
    fill: #000000;
}

/* --- Primary (yellow bg, black triangle) --- */
.cf-btn-cta-pri {
    border: none;
    background: #F9E62B;
    color: #000000;
}

.cf-btn-cta-pri::after {
    background: #000000;
}

.cf-btn-cta-pri .cf-btn-cta__icon svg {
    fill: #F9E62B;
}

.cf-btn-cta-pri:hover {
    background-color: #e0cf27;
    color: #000000;
    text-decoration: none;
}

.cf-btn-cta-pri:hover::after {
    background: #1A1A1A;
}

/* --- Arrow Button (black chevron shape) --- */
.cf-btn-cta-arrow {
    display: inline-flex;
    align-items: stretch;
    text-decoration: none;
    flex-shrink: 0;
    height: 52px;
    cursor: pointer;
    border: none;
    background: transparent;
    padding: 0;
    transition: opacity 0.3s ease;
}

.cf-btn-cta-arrow:hover {
    opacity: 0.85;
}

.cf-btn-cta-arrow__edge {
    flex-shrink: 0;
    background-color: #000000;
    width: 31px;
    -webkit-mask-image: url('../img/rectangle-small.svg');
    -webkit-mask-size: 100% 100%;
    -webkit-mask-repeat: no-repeat;
    mask-image: url('../img/rectangle-small.svg');
    mask-size: 100% 100%;
    mask-repeat: no-repeat;
}

.cf-btn-cta-arrow__edge--left {
    transform: rotate(180deg);
    margin-right: -1px;
}

.cf-btn-cta-arrow__edge--right {
    margin-left: -1px;
}

.cf-btn-cta-arrow__label {
    background-color: #000000;
    color: #FFFFFF;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 1rem;
    line-height: 1.3;
    letter-spacing: 0.01em;
    display: flex;
    align-items: center;
    padding: 0 12px;
    white-space: nowrap;
}

@media (max-width: 767px) {
    .cf-btn-cta-arrow {
        width: 100%;
    }

    .cf-btn-cta-arrow__label {
        flex: 1;
        text-align: center;
        justify-content: center;
    }
}

/* ========================================
   Section Spacing
   ======================================== */

.cf-section {
    padding-top: clamp(3.75rem, 8vw, 7.5rem);
    padding-bottom: clamp(3.75rem, 8vw, 7.5rem);
}

/* ========================================
   Overrides TT3
   ======================================== */

body {
    background-color: #000000;
    color: #FFFFFF;
}

.wp-site-blocks {
    padding-top: 0 !important;
}

/* ========================================
   Mobile: genereller Seitenrand 12px
   (überschreibt TT3-Root-Padding via WP CSS-Var)
   ======================================== */

@media (max-width: 767px) {
    body {
        --wp--style--root--padding-left: 12px;
        --wp--style--root--padding-right: 12px;
    }
}
