/* Outflink Design System */

/* Fonts */
@font-face {
    font-family: 'Gotham';
    src: url('../fonts/GOTHAM-LIGHT.TTF') format('truetype');
    font-weight: 300;
    font-style: normal;
}
@font-face {
    font-family: 'Gotham';
    src: url('../fonts/GOTHAM-MEDIUM.TTF') format('truetype');
    font-weight: 500;
    font-style: normal;
}
@font-face {
    font-family: 'Gotham';
    src: url('../fonts/GOTHAM-BOLD.TTF') format('truetype');
    font-weight: 700;
    font-style: normal;
}

:root {
    /* Colors */
    --outflink-yellow: #fcc100;
    --outflink-navy: #1d334c;
    --outflink-blue: #3b6bb5;
    --grey-lilac: #f5f5fa;
    --go-green: #17bc9d;
    --crimson: #ff5e4d;
    --white: #ffffff;
    
    /* Spacing */
    --section-padding: 100px;
    --container-width: 1280px;
}

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

body {
    font-family: 'Open Sans', sans-serif;
    color: var(--outflink-navy);
    line-height: 1.6;
    background-color: var(--white);
    font-size: 18px; /* Accessible base size */
    overflow-x: hidden; /* Prevent horizontal scroll */
    width: 100%;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Gotham', sans-serif;
    color: var(--outflink-navy);
    line-height: 1.2;
    margin-bottom: 1rem;
}

a { text-decoration: none; color: inherit; transition: all 0.3s ease; }
ul { list-style: none; }
img { max-width: 100%; display: block; }

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 24px;
    width: 100%;
    box-sizing: border-box;
}

/* Typography Utility Classes */
.text-center { text-align: center; }
.text-white { color: var(--white); }
.text-navy { color: var(--outflink-navy); }
.text-blue { color: var(--outflink-blue); }

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 16px 32px;
    font-family: 'Gotham', sans-serif;
    font-weight: 500;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
    border: 2px solid transparent;
    white-space: nowrap;
}

.btn-primary {
    background: var(--outflink-yellow);
    color: var(--outflink-navy);
    border-color: var(--outflink-yellow);
}
.btn-primary:hover {
    background: #e5b000;
    border-color: #e5b000;
    transform: translateY(-1px);
}

.btn-secondary {
    background: transparent;
    color: var(--outflink-yellow);
    border-color: var(--outflink-yellow);
}
.btn-secondary:hover {
    background: rgba(252, 193, 0, 0.1);
}

.btn-ghost-white {
    background: transparent;
    color: var(--white);
    border-color: var(--white);
}
.btn-ghost-white:hover {
    background: rgba(255, 255, 255, 0.1);
}

.btn-link {
    padding: 0;
    color: var(--outflink-blue);
    text-decoration: underline;
    font-weight: 600;
    background: none;
    border: none;
}
.btn-link:hover {
    color: var(--outflink-navy);
}

/* Section Styles */
section { 
    padding: var(--section-padding) 0; 
    width: 100%;
    overflow-x: hidden;
    box-sizing: border-box;
}
.bg-navy { background-color: var(--outflink-navy); color: var(--white); }
.bg-lilac { background-color: var(--grey-lilac); }

/* Header */
header {
    background: var(--outflink-navy);
    padding: 20px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}
header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.logo img { height: 32px; }
.nav-links { display: flex; gap: 32px; align-items: center; }
.nav-links a { color: var(--white); font-weight: 600; font-size: 0.9rem; }
.nav-links a:hover { color: var(--outflink-yellow); }

/* Footer */
footer {
    background: #111;
    color: #999;
    padding: 80px 0 40px;
    font-size: 0.9rem;
}
.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 60px;
    margin-bottom: 60px;
}
.footer-col h4 { color: var(--white); margin-bottom: 24px; font-size: 1rem; }
.footer-col ul li { margin-bottom: 12px; }
.footer-col a:hover { color: var(--white); }
.footer-cta {
    text-align: center;
    padding-top: 40px;
    border-top: 1px solid #333;
    margin-top: 40px;
}
.footer-cta a { color: var(--outflink-yellow); font-weight: bold; font-size: 1.2rem; }

/* Table Styles */
table {
    width: 100%;
    border-collapse: collapse;
}
table th, table td {
    padding: 20px;
    text-align: left;
}
table thead th {
    background: var(--outflink-navy);
    color: #fff;
    font-family: 'Gotham', sans-serif;
    font-weight: 700;
    border-left: 1px solid rgba(255,255,255,0.2);
}
table thead th:first-child {
    border-left: none;
}
table tbody tr {
    border-bottom: 1px solid #eee;
}
table tbody tr:nth-child(even) {
    background: #fafafa;
}
table tbody td {
    border-left: 1px solid #eee;
}
table tbody td:first-child {
    border-left: none;
    font-weight: 600;
}

/* Trusted Logos & Carousel */
.logo-carousel-container {
    overflow: hidden;
    width: 100%;
    mask-image: linear-gradient(to right, transparent, black 5%, black 95%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 5%, black 95%, transparent);
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-carousel-track {
    display: flex;
    width: max-content;
    animation: scroll 60s linear infinite;
    padding: 20px 0;
    align-items: center; /* Center alignment for visual balance */
    justify-content: flex-start;
    will-change: transform; /* Optimize animation performance */
    /* Ensure seamless loop - no gap between sets */
    transform: translateX(0);
}

.logo-carousel-track .trusted-logo {
    margin-right: 80px; /* Consistent gap between ALL logos including between sets */
}

.logo-carousel-track:hover {
    animation-play-state: paused;
}

@keyframes scroll {
    0% { 
        transform: translateX(0); 
    }
    100% { 
        transform: translateX(calc(-1 * var(--set-width, 50%))); /* Use JS-calculated width for perfect loop */
    }
}

.trusted-logo {
    max-width: 140px;
    width: auto;
    height: 30px; /* Standard baseline height */
    object-fit: contain;
    object-position: center; /* Center alignment */
    
    /* Make logos white */
    filter: brightness(0) invert(1);
    
    opacity: 0.8;
    transition: all 0.3s ease;
    flex-shrink: 0;
    display: block;
}
.trusted-logo:hover {
    opacity: 1;
}

/* Standardized heights - tighter range (27-33px) */
/* Wide wordmarks - reduced to balance their horizontal width */
.trusted-logo[alt="PokerStars"] {
    height: 31px;
}
.trusted-logo[alt="Catena Media"] {
    height: 31px;
}
.trusted-logo[alt="Play Alberta"] {
    height: 27px;
}
.trusted-logo[alt="William Hill"] {
    height: 28px;
}

/* Compact/square logos - increased to match visual weight */
.trusted-logo[alt="GAN"] {
    height: 33px;
}
.trusted-logo[alt="Codere"] {
    height: 29px;
}

/* Standard logos - baseline sizing */
.trusted-logo[alt="Aristocrat"] {
    height: 30px;
}
.trusted-logo[alt="BigBola"] {
    height: 30px;
}
.trusted-logo[alt="SkyBet"] {
    height: 30px;
}
.trusted-logo[alt="Casumo"] {
    height: 30px;
}

/* WVL - balanced for visibility */
.trusted-logo[alt="WVL"] {
    height: 52px;
}

/* Mobile Menu */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--white);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 5px;
}

.mobile-menu {
    display: none;
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    background: var(--outflink-navy);
    padding: 20px;
    z-index: 999;
    border-top: 1px solid rgba(255,255,255,0.1);
}

.mobile-menu.active {
    display: block;
}

.mobile-menu a {
    display: block;
    color: var(--white);
    padding: 15px 0;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    font-weight: 600;
}

.mobile-menu a:last-child {
    border-bottom: none;
    margin-top: 10px;
}

.mobile-menu .btn {
    width: 100%;
    margin-top: 10px;
}

/* Responsive */
@media (max-width: 1024px) {
    .container {
        padding: 0 20px;
    }
    
    section {
        padding: 80px 0;
    }
    
    h1 {
        font-size: 2.8rem;
    }
    
    h2 {
        font-size: 2rem;
    }
}

@media (max-width: 768px) {
    /* Prevent horizontal overflow */
    html, body {
        overflow-x: hidden;
        width: 100%;
        max-width: 100%;
    }
    
    * {
        max-width: 100%;
        box-sizing: border-box;
    }
    
    /* Typography */
    body {
        font-size: 16px;
    }
    
    h1 {
        font-size: 2rem !important;
        line-height: 1.2;
        word-wrap: break-word;
    }
    
    /* Hero section h1 - maintain desktop size on mobile */
    .hero-section h1 {
        font-size: 4.4rem !important;
        line-height: 1.1 !important;
    }
    
    h2 {
        font-size: 1.75rem !important;
        word-wrap: break-word;
    }
    
    h3 {
        font-size: 1.5rem !important;
        word-wrap: break-word;
    }
    
    h4 {
        font-size: 1.25rem !important;
        word-wrap: break-word;
    }
    
    /* Header & Navigation */
    header {
        padding: 15px 0;
        width: 100%;
        position: relative;
    }
    
    header .container {
        width: 100%;
        padding: 0 16px;
    }
    
    .logo img {
        height: 28px;
    }
    
    .nav-links {
        display: none;
    }
    
    .mobile-menu-toggle {
        display: block;
    }
    
    /* Sections */
    section {
        padding: 50px 0;
        width: 100%;
        overflow-x: hidden;
    }
    
    .container {
        padding: 0 16px;
        width: 100%;
        max-width: 100%;
    }
    
    /* Hero section fixes */
    .hero {
        min-height: auto !important;
        padding: 60px 0 !important;
    }
    
    .hero h1 {
        font-size: 1.75rem !important;
        padding: 0 10px;
    }
    
    .hero p {
        font-size: 1rem !important;
        padding: 0 10px;
    }
    
    /* Buttons */
    .btn {
        padding: 14px 24px;
        font-size: 0.95rem;
        width: 100%;
        max-width: 100%;
    }
    
    /* Grids - Stack on mobile */
    [style*="grid-template-columns"] {
        grid-template-columns: 1fr !important;
        gap: 30px !important;
    }
    
    /* Hero sections */
    .bg-navy.text-center,
    .bg-lilac.text-center {
        padding: 60px 0 !important;
    }
    
    /* Footer */
    .footer-grid {
        grid-template-columns: 1fr !important;
        gap: 40px;
    }
    
    footer {
        padding: 60px 0 30px;
    }
    
    /* Tables */
    table {
        font-size: 0.85rem;
        display: block;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    table th,
    table td {
        padding: 12px 8px;
        min-width: 100px;
    }
    
    /* Logo Carousel */
    .logo-carousel-container {
        width: 100%;
        overflow: hidden;
        mask-image: linear-gradient(to right, transparent, black 2%, black 98%, transparent);
        -webkit-mask-image: linear-gradient(to right, transparent, black 2%, black 98%, transparent);
    }
    
    .logo-carousel-track .trusted-logo {
        margin-right: 30px !important;
    }
    
    .social-proof-strip {
        width: 100%;
        overflow: hidden;
    }
    
    /* Testimonials */
    [style*="grid-template-columns: repeat(3"] {
        grid-template-columns: 1fr !important;
    }
    
    /* Two column layouts */
    [style*="grid-template-columns: 1fr 1fr"] {
        grid-template-columns: 1fr !important;
    }
    
    /* Image adjustments */
    img {
        max-width: 100%;
        height: auto;
    }
    
    /* Spacing adjustments */
    [style*="margin-bottom: 60px"] {
        margin-bottom: 40px !important;
    }
    
    [style*="margin-bottom: 40px"] {
        margin-bottom: 30px !important;
    }
    
    [style*="gap: 40px"] {
        gap: 30px !important;
    }
    
    [style*="gap: 60px"] {
        gap: 40px !important;
    }
    
    /* Padding adjustments */
    [style*="padding: 48px"] {
        padding: 32px !important;
    }
    
    [style*="padding: 32px"] {
        padding: 24px !important;
    }
    
    /* Flex adjustments */
    [style*="display: flex"][style*="gap: 20px"],
    [style*="display: flex"][style*="gap: 40px"] {
        flex-direction: column !important;
        gap: 15px !important;
    }
    
    /* Text alignment */
    .text-center {
        text-align: center !important;
    }
    
    /* Hero sections */
    [style*="padding: 120px"],
    [style*="padding: 100px"] {
        padding: 60px 0 !important;
    }
    
    /* Specific section adjustments */
    .choose-path [style*="grid-template-columns: 1fr 1fr"] {
        grid-template-columns: 1fr !important;
    }
    
    .social-proof [style*="grid-template-columns: repeat(3"] {
        grid-template-columns: 1fr !important;
    }
    
    /* Button adjustments */
    .btn {
        width: 100%;
        max-width: 100%;
    }
    
    /* Logo carousel adjustments */
    .logo-carousel-track .trusted-logo {
        margin-right: 30px !important;
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 1.75rem !important;
        line-height: 1.2;
    }
    
    h2 {
        font-size: 1.5rem !important;
    }
    
    section {
        padding: 40px 0;
    }
    
    .hero {
        min-height: auto !important;
        padding: 40px 0 !important;
    }
    
    .btn {
        padding: 12px 20px;
        font-size: 0.9rem;
        width: 100%;
    }
    
    .container {
        padding: 0 12px;
    }
    
    /* Ensure no element causes overflow */
    * {
        max-width: 100%;
    }
    
    /* Fix any inline styles that might cause issues */
    [style*="max-width"] {
        max-width: 100% !important;
    }
}
