/* Ekipa 65+ Coming Soon Stylesheet */

/* Design Tokens */
:root {
    --color-bg-light: #ebebeb;
    --color-primary: #9f276b;      /* Magenta/purple brand color */
    --color-primary-hover: #801354;
    --color-text-dark: #18181B;     /* Zinc-900 */
    --color-text-muted: #52525B;    /* Zinc-600 */
    --color-white: #FFFFFF;
    
    --font-main: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Base Styles */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html, body {
    width: 100%;
    min-height: 100%;
    font-family: var(--font-main);
    background-color: var(--color-bg-light);
    color: var(--color-text-dark);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

/* Custom Scrollbar for premium feel */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: var(--color-bg-light);
}
::-webkit-scrollbar-thumb {
    background: #D4D4D8;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #A1A1AA;
}

/* Page Layout */
.page-wrapper {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    position: relative;
    background-color: var(--color-bg-light);
}

.header {
    z-index: 10;
}

.logo {
    height: 48px;
    width: auto;
    object-fit: contain;
    transition: var(--transition-smooth);
    display: block;
}

.logo:hover {
    transform: scale(1.03);
}

/* Main typography and headings */
.main-content {
    max-width: 600px;
    z-index: 10;
}

.tagline {
    font-size: clamp(1.1rem, 3.5vw, 1.35rem);
    font-weight: 500;
    color: var(--color-text-dark);
    letter-spacing: -0.01em;
    margin-bottom: 0.5rem;
    opacity: 0.9;
}

.main-heading {
    font-size: clamp(2.4rem, 8vw, 4.2rem);
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: -0.03em;
    color: var(--color-text-dark);
    margin-bottom: 1rem;
}

.slogan {
    font-size: clamp(2.8rem, 9.5vw, 5.2rem);
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: -0.03em;
    color: var(--color-primary);
}

/* Image Side & Mockup */
.image-side {
    position: relative;
    width: 100%;
    background-color: var(--color-primary);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 5;
}

.hero-picture {
    display: block;
    width: 100%;
    height: 100%;
}

.hero-img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    object-position: center;
}

/* Footer Section */
.footer {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    font-size: 0.95rem;
    z-index: 10;
}

.footer-col {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.footer-label {
    font-weight: 700;
    color: var(--color-text-dark);
}

.footer-sublabel {
    color: var(--color-text-muted);
    font-size: 0.85rem;
}

.footer-link {
    color: var(--color-text-dark);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition-smooth);
    width: fit-content;
    position: relative;
    padding-bottom: 2px;
}

.footer-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--color-primary);
    transition: var(--transition-smooth);
}

.footer-link:hover {
    color: var(--color-primary);
}

.footer-link:hover::after {
    width: 100%;
}

/* Desktop Styles (Diagonal Slant via Background) */
@media (min-width: 1024px) {
    .page-wrapper {
        height: 100vh;
        overflow: hidden;
        z-index: 1;
    }
    
    /* Create the diagonal magenta background behind everything */
    .page-wrapper::before {
        content: '';
        position: absolute;
        top: 0;
        right: 0;
        bottom: 0;
        width: 60%; /* Spans from x=40% to x=100% */
        background-color: var(--color-primary);
        clip-path: polygon(16.67% 0, 100% 0, 100% 100%, 0 100%);
        z-index: -1;
        animation: fadeIn 1s var(--transition-slow) both;
    }
    
    .header {
        position: absolute;
        top: 5rem;
        left: 6.5rem;
        animation: fadeIn 0.8s var(--transition-slow) 0.1s both;
        z-index: 2;
    }
    
    .logo {
        height: 54px;
    }
    
    .main-content {
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        left: 6.5rem;
        max-width: 600px;
        animation: fadeIn 0.8s var(--transition-slow) 0.2s both;
        z-index: 2;
    }
    
    .footer {
        position: absolute;
        bottom: 5rem;
        left: 6.5rem;
        width: 32vw;
        flex-direction: row;
        justify-content: space-between;
        align-items: flex-end;
        animation: fadeIn 0.8s var(--transition-slow) 0.3s both;
        z-index: 2;
    }
    
    .image-side {
        position: absolute;
        top: 0;
        right: 0;
        width: 50%; /* Right half of the screen */
        height: 100%;
        background-color: transparent; /* Remove magenta background so it uses the page background */
        /* NO clip-path here so the image is NOT cut */
        animation: slideInRight 1s var(--transition-slow) both;
        z-index: 1;
    }
    
    .hero-img {
        object-fit: contain; /* Ensure the image is fully visible and not cut */
        object-position: right center;
    }
}

/* Mobile & Tablet Styles (Stacked Layout with Custom Order) */
@media (max-width: 1023px) {
    .page-wrapper {
        height: auto;
        overflow-y: auto;
    }
    
    .header {
        order: 1;
        padding: 3rem 2.5rem 1.5rem;
    }
    
    .image-side {
        order: 2;
        height: auto;
        min-height: auto;
        max-height: none;
    }
    
    .hero-picture {
        height: auto;
    }
    
    .hero-img {
        height: auto;
        object-fit: contain;
    }
    
    .main-content {
        order: 3;
        padding: 3rem 2.5rem 2rem;
    }
    
    .footer {
        order: 4;
        padding: 2rem 2.5rem 4rem;
        border-top: 1px solid #D4D4D8;
        flex-direction: column;
        gap: 1.5rem;
    }
}

/* Extra small viewport polish */
@media (max-width: 480px) {
    .header {
        padding: 2rem 1.5rem 1rem;
    }
    
    .image-side {
        height: auto;
        padding: 0;
    }
    
    .main-content {
        padding: 2rem 1.5rem 1.5rem;
    }
    
    .footer {
        padding: 1.5rem 1.5rem 3rem;
    }
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(15px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(40px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}
