:root {
    --primary: #ea2e2e;
    --primary-dark: #ea2e2e;
    --text-dark: #1a1a1a;
    --text-light: #ffffff;
    --bg-dark: #000000;
    --bg-light: #ffffff;
}

::selection {
    background: var(--primary);
    color: var(--text-light);
}

::-moz-selection {
    background: var(--primary);
    color: var(--text-light);
}

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

body {
    font-family: 'Poppins', system-ui, -apple-system, sans-serif;
    color: var(--text-dark);
    line-height: 1.4;
    letter-spacing: 0.01em;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body.is-loading .site-logo,
body.is-loading #fp-nav {
    opacity: 0;
    transform: translateY(20px);
}

body.is-loading .hero-title {
    opacity: 0;
    transform: translateY(40px);
}

body.is-loading .hero-subtitle {
    opacity: 0;
    transform: translateY(30px);
}

body.is-loading .hero-content .btn {
    opacity: 0;
    transform: translateY(20px);
}

body.is-loading .scroll-indicator {
    opacity: 0;
}

body:not(.is-loading) .site-logo {
    transition: opacity 0.6s ease 0.1s, transform 0.6s ease 0.1s;
}

body:not(.is-loading) #fp-nav {
    transition: opacity 0.6s ease 0.8s, transform 0.6s ease 0.8s;
}

body:not(.is-loading) .hero-title {
    transition: opacity 0.8s ease 0.2s, transform 0.8s ease 0.2s;
}

body:not(.is-loading) .hero-subtitle {
    transition: opacity 0.8s ease 0.4s, transform 0.8s ease 0.4s;
}

body:not(.is-loading) .hero-content .btn {
    transition: opacity 0.6s ease 0.6s, transform 0.6s ease 0.6s;
}

body:not(.is-loading) .scroll-indicator {
    transition: opacity 0.6s ease 1s;
}

.site-logo {
    position: fixed;
    top: 2rem;
    left: 2rem;
    z-index: 1000;
    width: 180px;
    height: auto;
    transition: transform 0.3s ease;
}

.site-logo img {
    height: 100%;
    width: auto;
    object-fit: contain;
}

.site-logo:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 4px;
}

.header-contact {
    position: fixed;
    top: 2rem;
    right: 2rem;
    z-index: 1000;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.header-contact a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 1rem;
    font-weight: 400;
    letter-spacing: 0.02em;
    transition: color 0.3s ease;
}

.header-contact a:hover {
    color: var(--text-light);
}

.header-contact-divider {
    color: rgba(255, 255, 255, 0.3);
    font-size: 1rem;
}

#fp-nav ul li a span,
.fp-slidesNav ul li a span {
    background: rgba(255, 255, 255, 0.4) !important;
    width: 10px !important;
    height: 10px !important;
    margin: -5px 0 0 -5px !important;
}

#fp-nav ul li a.active span,
.fp-slidesNav ul li a.active span {
    background: var(--primary) !important;
    width: 12px !important;
    height: 12px !important;
    margin: -6px 0 0 -6px !important;
}

#fp-nav ul li a:hover span {
    background: rgba(255, 255, 255, 0.7) !important;
}

.section {
    position: relative;
    overflow: hidden;
}

.section-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 10, 10, 0.65);
    z-index: 2;
}

.section-hero {
    background: transparent;
}

.hero-overlay {
    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0.3) 0%,
        rgba(0, 0, 0, 0.5) 50%,
        rgba(0, 0, 0, 0.7) 100%
    );
}

.hero-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}

.hero-content {
    position: absolute;
    bottom: 4rem;
    left: 4rem;
    z-index: 3;
    text-align: left;
    max-width: 900px;
}

.hero-title {
    font-size: clamp(2rem, 6vw, 5rem);
    font-weight: 800;
    color: var(--text-light);
    line-height: 1.1;
    margin-bottom: 0.75rem;
    letter-spacing: -0.02em;
}

.hero-subtitle {
    font-size: clamp(1rem, 2vw, 1.25rem);
    font-weight: 400;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 2rem;
    letter-spacing: 0.02em;
}

.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.scroll-indicator:hover {
    opacity: 1;
}

.scroll-indicator span {
    font-size: 0.65rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--text-light);
}

.scroll-indicator .arrow {
    width: 24px;
    height: 24px;
    border-right: 2px solid var(--text-light);
    border-bottom: 2px solid var(--text-light);
    transform: rotate(45deg);
    animation: scrollBounce 2s ease-in-out infinite;
}

@keyframes scrollBounce {
    0%, 100% { transform: translateY(0) rotate(45deg); }
    50% { transform: translateY(6px) rotate(45deg); }
}

.section-text {
    background: transparent;
}

.video-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

.video-bg .main-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.text-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 10, 10, 0.7);
    z-index: 1;
    opacity: 0;
    pointer-events: none;
}

#fullpage {
    position: relative;
    z-index: 2;
}

.section-text .fp-overflow {
    min-height: 100vh;
}

.text-content {
    position: relative;
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    width: 100%;
    min-height: 100vh;
    padding: 4rem;
    padding-left: calc(15vw + 50vh / tan(70deg) + 10rem);
}

.text-content h2 {
    font-size: clamp(1.8rem, 4vw, 3.5rem);
    font-weight: 700;
    font-style: italic;
    color: var(--text-light);
    line-height: 1.3;
    text-align: left;
    max-width: 700px;
}

/* === FIXED DIAGONAL STRIPE === */
.text-stripe {
    position: fixed;
    left: 0;
    top: 0;
    width: calc(15vw + 100vh / tan(70deg));
    height: 100%;
    background: #ea2e2e;
    clip-path: polygon(
        0 0,
        15vw 0,
        calc(15vw + 100vh / tan(70deg)) 100%,
        0 100%
    );
    z-index: 100;
    pointer-events: none;
    opacity: 0;
    transform: translateX(-100%);
}

.stripe-logo {
    position: fixed;
    top: 50%;
    left: calc(15vw + 50vh / tan(70deg) - 450px);
    transform: translateY(-50%);
    width: 500px;
    height: auto;
    z-index: 101;
    pointer-events: none;
    opacity: 0;
}

.stripe-text {
    position: fixed;
    bottom: 4rem;
    left: 2rem;
    width: 180px;
    height: auto;
    z-index: 101;
    pointer-events: none;
    opacity: 0;
}

.split-text .word {
    display: inline-block;
    will-change: transform, opacity, filter;
}

.section-services {
    background: var(--bg-dark);
}

.section-services .section-overlay {
    background: rgba(10, 10, 10, 0.75);
}

.services-heading {
    font-size: clamp(1.2rem, 2vw, 1.6rem);
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 1rem;
    letter-spacing: -0.01em;
}

.services-list {
    list-style: none;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.services-list li {
    font-size: clamp(0.85rem, 1.2vw, 1rem);
    font-weight: 400;
    color: rgba(255, 255, 255, 0.8);
    padding-left: 0.75rem;
    border-left: 2px solid var(--primary);
    transition: color 0.3s ease;
}

.btn {
    display: inline-block;
    padding: 1rem 2.5rem;
    font-family: 'Poppins', sans-serif;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    text-decoration: none;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-primary {
    background: var(--primary);
    color: var(--text-light);
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(255, 0, 0, 0.3);
}

.btn-primary:focus-visible {
    outline: 2px solid var(--text-light);
    outline-offset: 3px;
}

.btn .btn-arrow {
    display: inline-block;
    margin-left: 0.5rem;
    transition: transform 0.3s ease;
}

.btn:hover .btn-arrow {
    transform: translateX(4px);
}

.section-contact {
    background: var(--bg-dark);
    background-image: 
        radial-gradient(ellipse 80% 50% at 50% 100%, rgba(255, 0, 0, 0.08) 0%, transparent 60%),
        linear-gradient(to top, rgba(255, 0, 0, 0.03) 0%, transparent 30%);
    color: var(--text-light);
}

.section-contact .fp-overflow {
    display: flex;
    flex-direction: column;
    min-height: 100%;
}

.section-contact .container {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 4rem 2rem 2rem;
    width: 100%;
    flex: 1;
}

.contact-main {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
}

.contact-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    width: 100%;
    align-items: center;
}

.contact-services {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.contact-side {
    text-align: center;
}

.contact-title {
    font-size: clamp(1.5rem, 3vw, 2.5rem);
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.contact-subtitle {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 2rem;
    letter-spacing: 0.02em;
}

.contact-form {
    width: 100%;
    max-width: 500px;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.contact-form[hidden] {
    display: none;
}

.form-group {
    width: 100%;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem 1.5rem;
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    color: var(--text-light);
    transition: all 0.3s ease;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    background: rgba(255, 255, 255, 0.15);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.contact-form .btn {
    margin-top: 0.5rem;
    width: 100%;
}

.toggle-group {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.toggle-label {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.5);
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding-left: 0.25rem;
}

.toggle-track {
    position: relative;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    padding: 4px;
    gap: 0;
}

.toggle-btn {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.65rem 0.5rem;
    font-family: 'Poppins', sans-serif;
    font-size: 0.85rem;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.5);
    background: none;
    border: none;
    border-radius: 7px;
    cursor: pointer;
    transition: color 0.25s ease;
    white-space: nowrap;
}

.toggle-btn.active {
    color: var(--text-light);
    font-weight: 600;
}

.toggle-btn:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

.toggle-slider {
    position: absolute;
    top: 4px;
    left: 4px;
    width: calc((100% - 8px) / 3);
    height: calc(100% - 8px);
    background: var(--primary);
    border-radius: 7px;
    transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
    z-index: 1;
}

.contact-info {
    margin-top: 3rem;
}

.contact-info p {
    color: rgba(255, 255, 255, 0.6);
}

.contact-info a {
    color: var(--primary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-info a:hover {
    color: var(--text-light);
}

.site-footer {
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    width: 100%;
    max-width: 600px;
}

.form-success {
    text-align: center;
    padding: 2rem 0;
}

.form-success-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-light);
    margin-bottom: 0.5rem;
}

.form-success-text {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.6);
}

.footer-legal {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.4);
}

.footer-legal a {
    color: rgba(255, 255, 255, 0.4);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-legal a:hover {
    color: var(--text-light);
}

.footer-copyright {
    margin-top: 1rem;
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.3);
    text-align: center;
}

#fp-nav ul li .fp-tooltip {
    font-family: 'Poppins', sans-serif;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    background: var(--bg-dark);
    color: var(--text-light);
    padding: 0.4rem 0.75rem;
    border-radius: 4px;
    top: -2px;
}

/* Tablet and below */
@media (max-width: 768px) {
    .site-logo {
        top: 1rem;
        left: 1rem;
        width: 120px;
        height: auto;
    }

    .header-contact {
        display: none;
    }

    #fp-nav {
        display: none !important;
    }

    .hero-content {
        bottom: 6rem;
        left: 1.5rem;
        right: 1.5rem;
    }

    .hero-title {
        font-size: clamp(1.8rem, 8vw, 3rem);
    }

    .hero-subtitle {
        font-size: clamp(0.9rem, 3.5vw, 1.1rem);
        margin-bottom: 1.5rem;
    }

    .scroll-indicator {
        bottom: 1.5rem;
    }

    .text-stripe {
        width: calc(10vw + 100vh / tan(70deg));
        clip-path: polygon(
            0 0,
            10vw 0,
            calc(10vw + 100vh / tan(70deg)) 100%,
            0 100%
        );
    }

    .text-content {
        padding: 2rem;
        padding-left: calc(10vw + 50vh / tan(70deg) + 3rem);
    }

    .text-content h2 {
        font-size: clamp(1.3rem, 5vw, 2rem);
    }

    .stripe-logo {
        left: calc(10vw + 50vh / tan(70deg) - 180px);
        width: 180px;
    }

    .stripe-text {
        bottom: 2rem;
        left: 1rem;
        width: 100px;
    }

    .section-contact .container {
        padding: 6rem 1.5rem 1.5rem;
    }

    .contact-main {
        align-items: flex-start;
    }

    .contact-layout {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .contact-services {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 1.5rem;
    }

    .contact-side {
        text-align: center;
    }

    .contact-form {
        margin: 0 auto;
        gap: 1rem;
    }

    .contact-title {
        font-size: 1.5rem;
        margin-bottom: 0.5rem;
    }

    .form-group input,
    .form-group textarea {
        padding: 0.8rem 1rem;
        font-size: 0.9rem;
    }

    .form-group textarea {
        min-height: 80px;
    }

    .toggle-btn {
        padding: 0.5rem 0.25rem;
        font-size: 0.78rem;
    }

    .btn {
        padding: 0.8rem 1.5rem;
        font-size: 0.8rem;
    }

    .contact-form .btn {
        margin-top: 0.25rem;
    }

    .site-footer {
        padding-top: 1.5rem;
        margin-top: 1.5rem;
        max-width: 100%;
    }

    .footer-legal {
        gap: 1rem;
    }

    .footer-copyright {
        margin-top: 0.5rem;
    }
}

/* Small phones */
@media (max-width: 480px) {
    .site-logo {
        width: 100px;
    }

    .hero-content {
        bottom: 5rem;
        left: 1rem;
        right: 1rem;
    }

    .hero-title {
        font-size: clamp(1.5rem, 9vw, 2.5rem);
    }

    /* On small screens, hide stripe entirely — too narrow */
    .text-stripe,
    .stripe-logo,
    .stripe-text {
        display: none !important;
    }

    .text-content {
        padding: 2rem 1.5rem;
        padding-left: 1.5rem;
        align-items: center;
        justify-content: center;
        position: relative;
    }

    /* Subtle logo watermark behind text */
    .text-content::before {
        content: '';
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        width: 60vw;
        height: 60vw;
        background: url('../images/allasone_sym_white.svg') no-repeat center / contain;
        opacity: 0.04;
        pointer-events: none;
        z-index: -1;
    }

    /* Red accent bar above heading */
    .text-content h2::before {
        content: '';
        display: block;
        width: 40px;
        height: 3px;
        background: var(--primary);
        margin: 0 auto 1.5rem;
        border-radius: 2px;
    }

    .text-content h2 {
        font-size: clamp(1.2rem, 5.5vw, 1.8rem);
        text-align: center;
    }

    .contact-services {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .toggle-btn {
        font-size: 0.72rem;
        padding: 0.45rem 0.2rem;
    }

    .toggle-label {
        font-size: 0.7rem;
    }
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

/* Privacy consent checkbox */
.form-group-consent {
    display: flex;
    align-items: flex-start;
}

.consent-label {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    line-height: 1.4;
}

.consent-label input[type="checkbox"] {
    width: 16px;
    height: 16px;
    margin-top: 1px;
    flex-shrink: 0;
    accent-color: var(--primary);
    cursor: pointer;
}

.consent-label a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: underline;
    transition: color 0.3s ease;
}

.consent-label a:hover {
    color: var(--text-light);
}

/* Cookie consent banner */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 10000;
    background: rgba(20, 20, 20, 0.95);
    backdrop-filter: blur(10px);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1.25rem 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.cookie-banner[hidden] {
    display: none;
}

.cookie-banner p {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.7);
    margin: 0;
}

.cookie-banner a {
    color: var(--text-light);
    text-decoration: underline;
}

.cookie-actions {
    display: flex;
    gap: 0.75rem;
    flex-shrink: 0;
}

.btn-cookie {
    font-family: 'Poppins', sans-serif;
    font-size: 0.8rem;
    font-weight: 600;
    padding: 0.5rem 1.25rem;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-cookie-accept {
    background: var(--primary);
    color: var(--text-light);
}

.btn-cookie-accept:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(255, 0, 0, 0.3);
}

.btn-cookie-decline {
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-cookie-decline:hover {
    background: rgba(255, 255, 255, 0.15);
    color: var(--text-light);
}
