﻿/* ============================================================================
   TEAMLIX – MARKETING / SEO SHARED STYLES
   ============================================================================ */

:root {
    --primary:      #3b82f6;
    --primary-dark: #2563eb;
    --secondary:    #6366f1;
    --success:      #10b981;
    --danger:       #ef4444;
    --warning:      #f59e0b;
    --text-dark:    #1e293b;
    --text-light:   #64748b;
    --bg-light:     #f8fafc;
    --white:        #ffffff;
    --border:       #e2e8f0;
}

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

html { scroll-behavior: smooth; }

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background: var(--white);
}

img { max-width: 100%; height: auto; }

/* ── Navigation ──────────────────────────────────────────────────────────── */

.site-nav {
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--white);
    border-bottom: 1px solid var(--border);
    padding: 0 20px;
}

.site-nav .inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
}

.nav-logo {
    font-size: 22px;
    font-weight: 800;
    text-decoration: none;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 32px;
    list-style: none;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-light);
    font-weight: 500;
    font-size: 15px;
    transition: color 0.2s;
}

.nav-links a:hover { color: var(--primary); }

.nav-cta {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: var(--white) !important;
    padding: 10px 22px;
    border-radius: 8px;
    font-weight: 600 !important;
    transition: opacity 0.2s, transform 0.2s !important;
}

.nav-cta:hover { opacity: 0.9; transform: translateY(-1px); }

/* Dropdown */
.has-dropdown { position: relative; }
.has-dropdown > a::after { content: ' ▾'; font-size: 11px; }

.dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 6px);
    left: 50%;
    transform: translateX(-50%);
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 10px;
    box-shadow: 0 8px 28px rgba(0,0,0,0.12);
    min-width: 210px;
    padding: 6px 0;
    list-style: none;
    z-index: 200;
    white-space: nowrap;
}

.has-dropdown:hover .dropdown { display: block; }

.dropdown li { margin: 0; }
.dropdown a {
    display: block;
    padding: 9px 18px;
    color: var(--text-dark) !important;
    font-size: 14px;
    font-weight: 500;
    transition: background 0.15s;
}
.dropdown a:hover { background: var(--bg-light); color: var(--primary) !important; }

/* ── Container ────────────────────────────────────────────────────────────── */

.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* ── Hero ─────────────────────────────────────────────────────────────────── */

.hero {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: var(--white);
    padding: 100px 20px 80px;
    text-align: center;
}

.hero .badge {
    display: inline-block;
    background: rgba(255,255,255,0.2);
    color: var(--white);
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    margin-bottom: 24px;
}

.hero h1 {
    font-size: clamp(32px, 5vw, 54px);
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 20px;
}

.hero p.lead {
    font-size: clamp(16px, 2vw, 20px);
    opacity: 0.92;
    max-width: 680px;
    margin: 0 auto 40px;
}

.hero-sport-icon {
    font-size: 80px;
    margin-bottom: 24px;
    display: block;
}

/* ── Buttons ──────────────────────────────────────────────────────────────── */

.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 30px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-white {
    background: var(--white);
    color: var(--primary);
}
.btn-white:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(0,0,0,0.15); }

.btn-outline-white {
    background: rgba(255,255,255,0.12);
    color: var(--white);
    border: 2px solid rgba(255,255,255,0.6);
}
.btn-outline-white:hover { background: rgba(255,255,255,0.22); }

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: var(--white);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(102,126,234,0.35); }

.btn-group { display: flex; gap: 16px; flex-wrap: wrap; justify-content: center; }

/* ── Sections ─────────────────────────────────────────────────────────────── */

section { padding: 80px 20px; }
.section-alt { background: var(--bg-light); }

.section-header { text-align: center; margin-bottom: 56px; }
.section-header .badge {
    display: inline-block;
    background: linear-gradient(135deg, rgba(102,126,234,0.12), rgba(118,75,162,0.12));
    color: var(--primary);
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 14px;
}
.section-header h2 { font-size: clamp(26px, 4vw, 38px); font-weight: 700; margin-bottom: 12px; }
.section-header p  { font-size: 18px; color: var(--text-light); max-width: 640px; margin: 0 auto; }

/* ── Cards ────────────────────────────────────────────────────────────────── */

.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 28px;
}

.card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 32px 28px;
    transition: all 0.3s;
}
.card:hover { transform: translateY(-4px); box-shadow: 0 12px 32px rgba(0,0,0,0.09); }

.card-icon { font-size: 40px; margin-bottom: 16px; display: block; }
.card h3 { font-size: 18px; font-weight: 700; margin-bottom: 10px; color: var(--text-dark); }
.card p  { color: var(--text-light); font-size: 15px; line-height: 1.7; }

.card ul {
    list-style: none;
    margin-top: 14px;
}
.card ul li {
    padding: 6px 0;
    color: var(--text-light);
    font-size: 14px;
    display: flex;
    align-items: flex-start;
    gap: 8px;
}
.card ul li::before { content: "✓"; color: var(--success); font-weight: 700; flex-shrink: 0; }

/* ── Steps / How-it-works ─────────────────────────────────────────────────── */

.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 24px; }

.step {
    text-align: center;
    padding: 32px 20px;
}
.step-num {
    width: 52px; height: 52px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: var(--white);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 20px; font-weight: 800;
    margin: 0 auto 18px;
}
.step h3 { font-size: 17px; font-weight: 700; margin-bottom: 8px; }
.step p  { color: var(--text-light); font-size: 14px; }

/* ── FAQ ──────────────────────────────────────────────────────────────────── */

.faq-list { max-width: 760px; margin: 0 auto; }

.faq-item {
    border: 1px solid var(--border);
    border-radius: 10px;
    margin-bottom: 12px;
    overflow: hidden;
}

.faq-question {
    width: 100%; text-align: left;
    padding: 18px 24px;
    background: var(--white);
    border: none; cursor: pointer;
    font-size: 16px; font-weight: 600;
    color: var(--text-dark);
    display: flex; align-items: center; justify-content: space-between;
    gap: 12px;
    transition: background 0.2s;
}
.faq-question:hover { background: var(--bg-light); }
.faq-question .chevron { transition: transform 0.3s; flex-shrink: 0; }
.faq-item.open .faq-question .chevron { transform: rotate(180deg); }

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease, padding 0.2s;
    padding: 0 24px;
    color: var(--text-light);
    font-size: 15px;
    line-height: 1.7;
}
.faq-item.open .faq-answer { max-height: 400px; padding: 0 24px 20px; }

/* ── CTA Section ──────────────────────────────────────────────────────────── */

.cta-section {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: var(--white);
    text-align: center;
    padding: 80px 20px;
}
.cta-section h2 { font-size: clamp(26px, 4vw, 40px); font-weight: 800; margin-bottom: 16px; }
.cta-section p  { font-size: 18px; opacity: 0.9; margin-bottom: 36px; max-width: 560px; margin-left: auto; margin-right: auto; }

/* ── Breadcrumb ───────────────────────────────────────────────────────────── */

.breadcrumb {
    padding: 12px 20px;
    background: var(--bg-light);
    border-bottom: 1px solid var(--border);
    font-size: 13px;
    color: var(--text-light);
}
.breadcrumb .inner { max-width: 1200px; margin: 0 auto; display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.breadcrumb a { color: var(--primary); text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb span { opacity: 0.5; }

/* ── Testimonials ─────────────────────────────────────────────────────────── */

.testimonials { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; }

.testimonial {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 28px;
}
.testimonial .stars { color: var(--warning); margin-bottom: 12px; font-size: 16px; }
.testimonial blockquote { font-size: 15px; color: var(--text-light); line-height: 1.7; margin-bottom: 16px; font-style: italic; }
.testimonial .author { font-weight: 700; font-size: 14px; color: var(--text-dark); }
.testimonial .org    { font-size: 13px; color: var(--text-light); }

/* ── Blog Cards ───────────────────────────────────────────────────────────── */

.blog-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 28px; }

.blog-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 14px;
    overflow: hidden;
    transition: all 0.3s;
    text-decoration: none;
    color: var(--text-dark);
    display: flex;
    flex-direction: column;
}
.blog-card:hover { transform: translateY(-4px); box-shadow: 0 12px 32px rgba(0,0,0,0.09); }

.blog-card-img {
    height: 160px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 64px;
    background: linear-gradient(135deg, rgba(102,126,234,0.1), rgba(118,75,162,0.1));
}
.blog-card-body { padding: 24px; flex: 1; display: flex; flex-direction: column; }
.blog-card .tag { font-size: 12px; font-weight: 700; color: var(--primary); text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 8px; }
.blog-card h3 { font-size: 17px; font-weight: 700; margin-bottom: 10px; line-height: 1.4; }
.blog-card p  { color: var(--text-light); font-size: 14px; line-height: 1.6; flex: 1; }
.blog-card .meta { font-size: 13px; color: var(--text-light); margin-top: 16px; display: flex; gap: 12px; }

/* ── Article (Blog post) ─────────────────────────────────────────────────── */

.article { max-width: 760px; margin: 0 auto; padding: 60px 20px; }
.article h1 { font-size: clamp(28px, 4vw, 44px); font-weight: 800; margin-bottom: 16px; line-height: 1.2; }
.article .meta { color: var(--text-light); font-size: 14px; margin-bottom: 32px; display: flex; gap: 16px; flex-wrap: wrap; }
.article h2 { font-size: 24px; font-weight: 700; margin: 36px 0 14px; }
.article h3 { font-size: 19px; font-weight: 700; margin: 28px 0 10px; }
.article p  { color: var(--text-light); font-size: 16px; line-height: 1.8; margin-bottom: 18px; }
.article ul, .article ol { margin: 0 0 18px 24px; color: var(--text-light); font-size: 16px; line-height: 1.8; }
.article li { margin-bottom: 8px; }
.article .callout {
    background: linear-gradient(135deg, rgba(102,126,234,0.08), rgba(118,75,162,0.08));
    border-left: 4px solid var(--primary);
    border-radius: 0 10px 10px 0;
    padding: 20px 24px;
    margin: 28px 0;
    font-size: 15px;
    color: var(--text-dark);
    font-style: italic;
}

/* ── Footer ───────────────────────────────────────────────────────────────── */

.site-footer {
    background: var(--text-dark);
    color: rgba(255,255,255,0.7);
    padding: 56px 20px 32px;
}

.footer-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr repeat(3, 1fr);
    gap: 40px;
    margin-bottom: 48px;
}

.footer-brand .logo { font-size: 22px; font-weight: 800; color: var(--white); }
.footer-brand p { margin-top: 10px; font-size: 14px; line-height: 1.7; }

.footer-col h4, .footer-col .footer-col-title { font-size: 13px; font-weight: 700; color: var(--white); text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 16px; }
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul li a { color: rgba(255,255,255,0.65); text-decoration: none; font-size: 14px; transition: color 0.2s; }
.footer-col ul li a:hover { color: var(--white); }

.footer-bottom {
    max-width: 1200px;
    margin: 0 auto;
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    font-size: 13px;
}

.footer-bottom a { color: rgba(255,255,255,0.65); text-decoration: none; }
.footer-bottom a:hover { color: var(--white); }

/* ── Nav mobile toggle button ─────────────────────────────────────────────── */

.nav-mobile-btn {
    display: none;
    background: none;
    border: 1.5px solid var(--border);
    border-radius: 8px;
    padding: 6px 12px;
    font-size: 20px;
    cursor: pointer;
    color: var(--text-dark);
    line-height: 1;
}

/* ── Nav: iPad Portrait + Landscape (≤1200px) ────────────────────────────── */

@media (max-width: 1200px) {
    .nav-mobile-btn { display: flex; align-items: center; }
    .site-nav { position: sticky; }
    .site-nav .inner { position: relative; }

    .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 64px;
        left: -20px;
        right: -20px;
        background: var(--white);
        border-bottom: 1px solid var(--border);
        padding: 12px 20px;
        gap: 2px;
        z-index: 200;
        box-shadow: 0 8px 24px rgba(0,0,0,0.1);
    }
    .nav-links.open { display: flex; }
    .nav-links a { padding: 10px 8px; font-size: 15px; }
    .nav-cta { text-align: center; margin-top: 4px; }

    /* Dropdowns → flat list in mobile nav */
    .has-dropdown > a::after { content: ''; }
    .dropdown {
        display: block !important;
        position: static;
        transform: none;
        border: none;
        box-shadow: none;
        padding: 0 0 0 16px;
        min-width: unset;
        background: transparent;
    }
    .dropdown a { color: var(--text-light) !important; font-size: 14px; padding: 7px 8px; }
}

/* ── Layout: iPad (≤1024px) ──────────────────────────────────────────────── */

@media (max-width: 1024px) {
    /* Cards → 2 columns max */
    .cards-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; }

    /* Steps → 2 columns */
    .steps { grid-template-columns: repeat(2, 1fr); }

    /* Footer → 2×2 */
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 24px; }

    section { padding: 64px 20px; }
    .hero   { padding: 72px 20px 60px; }
}

/* ── Smartphone (≤640px) ──────────────────────────────────────────────────── */

@media (max-width: 640px) {
    .cards-grid { grid-template-columns: 1fr; }
    .steps      { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; }
    .btn-group { flex-direction: column; align-items: center; }
    .btn { width: 100%; justify-content: center; }
    section { padding: 48px 16px; }
    .hero   { padding: 56px 16px 48px; }
}


