/*
Theme Name: Dartmeister
Theme URI: https://dartmeister.nl
Author: Dartmeister
Author URI: https://dartmeister.nl
Description: Custom WordPress theme for Dartmeister Autodarts scoring systems
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: dartmeister
*/

:root {
    --color-bg: #ffffff;
    --color-surface: #f0f7ff;
    --color-accent-blue: #0066ff;
    --color-accent-blue-dark: #0052cc;
    --color-accent-light: #e0edff;
    --color-text: #0a1628;
    --color-text-dim: #4a5568;
    --font-display: 'Archivo Black', sans-serif;
    --font-body: 'DM Sans', sans-serif;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background: var(--color-bg);
    color: var(--color-text);
    overflow-x: hidden;
    line-height: 1.6;
}

/* Animated background grid */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        linear-gradient(rgba(0, 102, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 102, 255, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    pointer-events: none;
    z-index: 0;
}

/* Container */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    position: relative;
    z-index: 1;
}

.container-narrow {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    position: relative;
    z-index: 1;
}

/* Header */
header {
    padding: 1.5rem 0;
    position: sticky;
    top: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid rgba(0, 102, 255, 0.1);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: var(--font-display);
    font-size: 2rem;
    letter-spacing: -0.02em;
    color: var(--color-accent-blue);
    text-decoration: none;
}

nav ul {
    display: flex;
    gap: 2.5rem;
    list-style: none;
    align-items: center;
}

nav a {
    color: var(--color-text);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.3s;
    position: relative;
}

nav a:hover {
    color: var(--color-accent-blue);
}

.nav-cta {
    background: var(--color-accent-blue);
    color: white !important;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 700;
    transition: all 0.3s;
}

.nav-cta:hover {
    background: var(--color-accent-blue-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 102, 255, 0.3);
}

/* Hero Section */
.hero {
    min-height: 90vh;
    display: flex;
    align-items: center;
    position: relative;
    padding: 6rem 0 4rem;
    background: linear-gradient(180deg, var(--color-surface) 0%, var(--color-bg) 100%);
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6rem;
    align-items: center;
}

.hero-content {
    animation: fade-in-up 1s ease-out;
}

@keyframes fade-in-up {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1.25rem;
    background: var(--color-accent-light);
    border-radius: 50px;
    color: var(--color-accent-blue);
    font-size: 0.9rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    animation: fade-in-up 1s ease-out 0.2s backwards;
}

h1 {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 6vw, 5rem);
    line-height: 1.1;
    letter-spacing: -0.02em;
    margin-bottom: 1.5rem;
    animation: fade-in-up 1s ease-out 0.4s backwards;
}

.hero-highlight {
    color: var(--color-accent-blue);
    display: block;
}

.hero-description {
    font-size: 1.25rem;
    color: var(--color-text-dim);
    margin-bottom: 2rem;
    font-weight: 400;
    line-height: 1.7;
    animation: fade-in-up 1s ease-out 0.6s backwards;
}

.hero-features {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    margin-bottom: 2.5rem;
    animation: fade-in-up 1s ease-out 0.7s backwards;
}

.hero-feature-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 500;
    color: var(--color-text);
}

.hero-feature-item::before {
    content: '✓';
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    background: var(--color-accent-blue);
    color: white;
    border-radius: 50%;
    font-weight: 700;
    font-size: 0.85rem;
}

.cta-group {
    display: flex;
    gap: 1.5rem;
    align-items: center;
    animation: fade-in-up 1s ease-out 0.8s backwards;
}

.btn {
    padding: 1.1rem 2.5rem;
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 700;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all 0.3s;
    border-radius: 10px;
    display: inline-block;
}

.btn-primary {
    background: var(--color-accent-blue);
    color: white;
    box-shadow: 0 4px 14px rgba(0, 102, 255, 0.2);
}

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

.btn-secondary {
    background: transparent;
    color: var(--color-text);
    border: 2px solid var(--color-text);
}

.btn-secondary:hover {
    background: var(--color-text);
    color: white;
    transform: translateY(-3px);
}

.price-tag {
    font-size: 1rem;
    color: var(--color-text-dim);
    margin-top: 1rem;
    animation: fade-in-up 1s ease-out 0.9s backwards;
}

.price-tag strong {
    color: var(--color-accent-blue);
    font-size: 1.25rem;
    font-weight: 900;
}

/* Hero Visual */
.hero-visual {
    position: relative;
    height: 600px;
    animation: fade-in-up 1s ease-out 0.6s backwards;
}

.hero-visual img {
    width: 100%;
    height: 100%;
    object-fit: contain; /* Shows full image without cropping */
    object-position: center;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 102, 255, 0.2);
    padding: 1rem; /* Add padding to prevent edge cropping */
}

/* Badges Section */
.badges-section {
    padding: 3rem 0;
    background: var(--color-surface);
}

.badges-content {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.badge-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 2rem;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 102, 255, 0.1);
    font-weight: 500;
}

.badge-icon {
    font-size: 1.5rem;
}

/* Intro Section */
.intro-section {
    padding: 8rem 0;
}

.intro-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6rem;
    align-items: center;
}

.intro-content h2 {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 3.5rem);
    line-height: 1.2;
    letter-spacing: -0.02em;
    margin-bottom: 1.5rem;
}

.intro-content p {
    font-size: 1.15rem;
    color: var(--color-text-dim);
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.intro-image {
    width: 100%;
    height: 500px;
    background: linear-gradient(135deg, var(--color-accent-light) 0%, var(--color-surface) 100%);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 20px 60px rgba(0, 102, 255, 0.15);
    overflow: hidden;
}

.intro-image img {
    width: 100%;
    height: 100%;
    object-fit: contain; /* Changed from 'cover' to 'contain' to show full image */
    object-position: center;
    border-radius: 20px;
    padding: 1rem; /* Add some padding around the image */
}

/* Features Section */
.features {
    padding: 8rem 0;
    background: var(--color-surface);
}

.section-header {
    text-align: center;
    margin-bottom: 5rem;
}

.section-subtitle {
    color: var(--color-accent-blue);
    font-size: 0.95rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 1rem;
}

.section-title {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 4vw, 3.5rem);
    letter-spacing: -0.02em;
}

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

.feature-card {
    background: white;
    padding: 2.5rem;
    border-radius: 16px;
    transition: all 0.4s;
    border: 2px solid transparent;
}

.feature-card:hover {
    transform: translateY(-8px);
    border-color: var(--color-accent-blue);
    box-shadow: 0 20px 50px rgba(0, 102, 255, 0.15);
}

.feature-icon {
    width: 60px;
    height: 60px;
    background: var(--color-accent-light);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin-bottom: 1.5rem;
}

.feature-title {
    font-family: var(--font-display);
    font-size: 1.5rem;
    letter-spacing: -0.01em;
    margin-bottom: 1rem;
}

.feature-description {
    color: var(--color-text-dim);
    line-height: 1.7;
}

/* Gallery Section */
.gallery-section {
    padding: 6rem 0;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: 4rem;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 102, 255, 0.15);
    transition: transform 0.3s;
}

.gallery-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 102, 255, 0.25);
}

.gallery-item img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    transition: transform 0.3s;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

.gallery-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1.5rem;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    color: white;
}

.gallery-caption h3 {
    font-family: var(--font-display);
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
}

.gallery-caption p {
    font-size: 0.9rem;
    opacity: 0.9;
}

/* Packages Section */
.packages {
    padding: 8rem 0;
}

.packages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 3rem;
    margin-top: 4rem;
}

.package-card {
    background: white;
    border: 3px solid var(--color-accent-blue);
    border-radius: 20px;
    padding: 3rem;
    position: relative;
    transition: all 0.4s;
}

.package-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 30px 60px rgba(0, 102, 255, 0.2);
}

.package-badge {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--color-accent-blue);
    color: white;
    padding: 0.5rem 1.5rem;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.9rem;
}

.package-title {
    font-family: var(--font-display);
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.package-price {
    font-family: var(--font-display);
    font-size: 3.5rem;
    color: var(--color-accent-blue);
    margin-bottom: 2rem;
}

.package-features {
    list-style: none;
    margin-bottom: 2rem;
}

.package-features li {
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(0, 102, 255, 0.1);
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.package-features li::before {
    content: '✓';
    color: var(--color-accent-blue);
    font-weight: 700;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.package-cta {
    width: 100%;
    text-align: center;
}

/* Specs Section */
.specs {
    padding: 8rem 0;
    background: var(--color-surface);
}

.specs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 4rem;
}

.spec-item {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    text-align: center;
}

.spec-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.spec-title {
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

/* Delivery Section */
.delivery {
    padding: 6rem 0;
}

.delivery-content {
    background: linear-gradient(135deg, var(--color-accent-blue) 0%, var(--color-accent-blue-dark) 100%);
    border-radius: 24px;
    padding: 4rem;
    color: white;
    text-align: center;
}

.delivery-content h2 {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: 1.5rem;
}

.delivery-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.95;
}

.cities-list {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
    margin-top: 2rem;
    font-size: 0.95rem;
    opacity: 0.9;
}

.cities-list span {
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 8px;
}

/* FAQ Section */
.faq {
    padding: 8rem 0;
    background: var(--color-surface);
}

.faq-list {
    max-width: 900px;
    margin: 4rem auto 0;
}

.faq-item {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 1.5rem;
    border: 2px solid transparent;
    transition: all 0.3s;
}

.faq-item:hover {
    border-color: var(--color-accent-blue);
}

.faq-question {
    font-family: var(--font-display);
    font-size: 1.3rem;
    margin-bottom: 1rem;
    letter-spacing: -0.01em;
}

.faq-answer {
    color: var(--color-text-dim);
    line-height: 1.8;
}

/* CTA Section */
.cta-section {
    padding: 8rem 0;
    text-align: center;
}

.cta-content h2 {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    letter-spacing: -0.02em;
    margin-bottom: 2rem;
}

.cta-content p {
    font-size: 1.25rem;
    color: var(--color-text-dim);
    margin-bottom: 3rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* Footer */
footer {
    padding: 3rem 0;
    border-top: 2px solid var(--color-surface);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 2rem;
}

.footer-text {
    color: var(--color-text-dim);
    font-size: 0.95rem;
}

.footer-links {
    display: flex;
    gap: 2rem;
}

.footer-links a {
    color: var(--color-text-dim);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: var(--color-accent-blue);
}

/* Responsive */
@media (max-width: 1024px) {
    .hero-grid,
    .intro-grid {
        grid-template-columns: 1fr;
        gap: 4rem;
    }

    .hero-visual {
        height: 400px;
    }

    .packages-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .container,
    .container-narrow {
        padding: 0 1.5rem;
    }

    nav ul {
        gap: 1rem;
        flex-wrap: wrap;
    }

    nav a {
        font-size: 0.85rem;
    }

    .cta-group {
        flex-direction: column;
        width: 100%;
    }

    .btn {
        width: 100%;
        text-align: center;
    }

    h1 {
        font-size: 2.5rem;
    }

    .hero-features {
        flex-direction: column;
        gap: 1rem;
    }

    .features-grid,
    .specs-grid {
        grid-template-columns: 1fr;
    }

    .packages-grid {
        grid-template-columns: 1fr;
    }

    .package-card {
        min-width: auto;
    }

    .delivery-content {
        padding: 2.5rem 2rem;
    }

    .cities-list {
        font-size: 0.85rem;
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
    }

    .gallery-item img {
        height: 300px;
    }
}
