/* GolfMax Golf Fitting Website Styles */
/* Based on existing GolfMax branding with colors #f6f7f9 (light blue-grey) and black */

:root {
    --primary-color: #f6f7f9; /* Light blue-grey from existing site */
    --contrast-color: #000000; /* Black from existing site */
    --accent-color: #ffffff; /* White */
    --text-color: #333333; /* Dark grey for better readability */
    --border-color: #e0e0e0; /* Light border color */
}

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

body {
    font-family: 'Work Sans', Arial, sans-serif; /* Matching existing site font */
    background-color: #2c3e50; /* Dark navy grey fallback */
    background-image: url('./background.png'); /* Use the pattern image */
    background-repeat: repeat;
    color: var(--text-color);
    line-height: 1.6;
    margin: 0;
    padding-top: 80px; /* Original navbar offset */
}

html { scroll-behavior: smooth; }

/* Navigation Bar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background-color: var(--contrast-color);
    padding: 1rem 0; /* Original spacing */
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0 2rem;
    position: relative;
    --nav-height: 80px; /* control brand height */
    height: var(--nav-height); /* Header height */
}

/* Dropdown Menu */
.nav-menu {
    position: absolute;
    left: 2rem;
    top: 50%;
    transform: translateY(-50%);
}

.menu-trigger {
    background-color: var(--accent-color);
    color: var(--contrast-color);
    border: 2px solid var(--accent-color);
    padding: 0.75rem 1.5rem; /* match .shop-btn */
    text-decoration: none;
    font-weight: 600; /* match .shop-btn */
    font-size: 1rem; /* match .shop-btn */
    border-radius: 0; /* match .shop-btn */
    transition: all 0.3s ease; /* match .shop-btn */
    cursor: pointer;
}

.nav-menu:hover .menu-trigger {
    background: transparent;
    color: var(--accent-color);
}

.menu-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    background: #fff;
    border: 1px solid var(--border-color);
    box-shadow: 0 8px 20px rgba(0,0,0,0.12);
    border-radius: 8px;
    padding: 0.5rem;
    min-width: 200px;
    display: none;
    z-index: 1100;
}

.nav-menu:hover .menu-dropdown { display: block; }

.menu-item {
    display: block;
    padding: 0.6rem 0.75rem;
    color: #111;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 600;
}

.menu-item:hover { background: #f2f3f5; }

.nav-logo {
    height: calc(var(--nav-height) * 0.95); /* Slightly smaller than header */
    max-height: none;
    width: auto; /* maintain aspect ratio */
    display: block;
}

/* Brand lockup: logo + stacked text */
.nav-brand {
    display: flex;
    align-items: center;
    gap: 16px;
}

/* Right-side image next to the logo */
.nav-ofs {
    height: calc(var(--nav-height) * 0.95);
    width: auto;
    display: block;
}

.shop-btn {
    position: absolute;
    right: 2rem;
    top: 50%;
    transform: translateY(-50%);
    background-color: var(--accent-color);
    color: var(--contrast-color);
    padding: 0.75rem 1.5rem;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    border-radius: 0;
    transition: all 0.3s ease;
    border: 2px solid var(--accent-color);
}

.shop-btn:hover {
    background-color: transparent;
    color: var(--accent-color);
    border-color: var(--accent-color);
}

/* Globe CTA button in hero */
.globe-btn {
    display: inline-block;
    background-color: var(--accent-color);
    color: var(--contrast-color);
    padding: 0.6rem 1.2rem;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.95rem;
    border-radius: 8px;
    border: 2px solid var(--accent-color);
    transition: all 0.25s ease;
}
.globe-btn:hover {
    background: transparent;
    color: var(--accent-color);
}

/* Scrolling Reviews Banner */
.reviews-banner {
    background-color: rgba(255, 255, 255, 0.5); /* Reduced opacity */
    padding: 1rem 0;
    overflow: hidden;
    border-bottom: 2px solid var(--border-color);
}

.reviews-scroll {
    display: flex;
    animation: scroll 30s linear infinite;
    white-space: nowrap;
}

.review-item {
    flex: 0 0 auto;
    padding: 0 2rem;
    text-align: center;
    min-width: 400px;
}

.stars {
    color: #ffd700;
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.review-item p {
    font-size: 0.9rem;
    color: var(--text-color);
    font-style: italic;
    margin: 0;
}

@keyframes scroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

header {
    background-color: var(--contrast-color);
    color: var(--accent-color);
    padding: 2rem 0;
    text-align: center;
}

header img {
    max-height: 80px;
    margin-bottom: 1rem;
}

header h1 {
    font-size: 2.5rem;
    font-weight: 800; /* Bold header matching existing site */
    font-family: 'Recoleta', serif; /* Title font from existing site */
    margin-bottom: 0.5rem;
}

.header-subtitle {
    font-size: 1.1rem;
    font-weight: 400;
    color: #cccccc;
    margin-top: 0.5rem;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Hero Section */
.hero-section {
    background-color: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 6rem 2rem 4rem;
    text-align: center;
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-content {
    max-width: 800px;
}

.hero-title {
    font-size: 4rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    margin-bottom: 1rem;
    font-family: 'Work Sans', sans-serif;
}

.hero-subtitle {
    font-size: 1.5rem;
    margin-bottom: 3rem;
    color: #cccccc;
    font-weight: 300;
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 3rem;
}

.stat-item {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 3rem;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 0.9rem;
    color: #cccccc;
    font-weight: 300;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Video and Process Section */
.video-process-section {
    background-color: rgba(255, 255, 255, 0.95);
    padding: 6rem 2rem;
}

.video-process-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}

/* Video Section */
.video-section {
    position: relative;
}

.video-content {
    position: sticky;
    top: 2rem;
}

.video-description {
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 2rem;
    line-height: 1.6;
}

.video-wrapper {
    position: relative;
    width: 100%;
    height: 0;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    margin-bottom: 2rem;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0,0,0,0.15);
}

.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.video-highlights {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

.highlight-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: white;
    padding: 1rem 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    transition: transform 0.3s ease;
}

.highlight-item:hover {
    transform: translateX(5px);
}

.highlight-icon {
    font-size: 1.5rem;
    width: 40px;
    text-align: center;
}

.highlight-item span:last-child {
    font-weight: 600;
    color: var(--contrast-color);
}

/* How It Works Section (Now in Grid) */
.how-it-works {
    /* Remove background and padding since it's now part of video-process-section */
}

.section-title {
    font-size: 2.5rem;
    font-weight: 800;
    text-align: center;
    margin-bottom: 3rem;
    color: var(--contrast-color);
    letter-spacing: 0.05em;
    font-family: 'Work Sans', sans-serif;
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin-top: 3rem;
}

.step-card {
    background: white;
    padding: 1.5rem;
    text-align: center;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.step-card:hover {
    transform: translateY(-5px);
}

.step-number {
    width: 50px;
    height: 50px;
    background-color: var(--contrast-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    font-weight: 800;
    margin: 0 auto 1rem;
}

.step-card h3 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: var(--contrast-color);
    letter-spacing: 0.05em;
}

.step-card p {
    color: #666;
    line-height: 1.6;
    font-size: 0.85rem;
}

/* Fitter Bio Section */
.fitter-bio {
    background-color: rgba(246, 247, 249, 0.5);
    padding: 6rem 2rem;
}

.bio-content {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 4rem;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.bio-text h3 {
    font-size: 1.5rem;
    color: var(--contrast-color);
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.bio-text p {
    font-size: 1.1rem;
    line-height: 1.7;
    color: #555;
    margin-bottom: 2rem;
}

.credentials {
    space-y: 1rem;
}

.credential-item {
    background: white;
    padding: 1rem 1.5rem;
    border-radius: 6px;
    margin-bottom: 0.75rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    font-size: 0.95rem;
}

.credential-item strong {
    color: var(--contrast-color);
}

.bio-image {
    position: relative;
}

.fitter-photo {
    width: 100%;
    height: 500px;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.15);
}

/* Form Section */
.fitting-form-section {
    background-color: rgba(255, 255, 255, 0.95);
    padding: 6rem 2rem;
}

.form-header {
    text-align: center;
    margin-bottom: 3rem;
}

.form-description {
    font-size: 1.1rem;
    color: #666;
    max-width: 600px;
    margin: 0 auto;
}

.remote-fitting-form {
    max-width: 800px;
    margin: 0 auto;
    background: white;
    padding: 3rem;
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.1);
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group.full-width {
    grid-column: 1 / -1;
}

.form-group label {
    font-weight: 600;
    color: var(--contrast-color);
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 1rem;
    border: 2px solid #e0e0e0;
    border-radius: 6px;
    font-size: 1rem;
    font-family: 'Work Sans', sans-serif;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--contrast-color);
    box-shadow: 0 0 0 3px rgba(0,0,0,0.1);
}

.video-upload-section {
    background: #f8f9fa;
    padding: 2rem;
    border-radius: 8px;
    margin-bottom: 2rem;
    text-align: center;
}

.video-upload-section h3 {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--contrast-color);
    margin-bottom: 1rem;
}

.upload-instructions {
    color: #666;
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}

.upload-area {
    position: relative;
    display: inline-block;
}

.upload-area input[type="file"] {
    position: absolute;
    opacity: 0;
    width: 100%;
    height: 100%;
    cursor: pointer;
}

.upload-label {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: var(--contrast-color);
    color: white;
    padding: 1rem 2rem;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
}

.upload-label:hover {
    background: #333;
    transform: translateY(-2px);
}

.upload-icon {
    font-size: 1.2rem;
}

.submit-btn {
    background: var(--contrast-color);
    color: white;
    border: none;
    padding: 1.25rem 3rem;
    font-size: 1.1rem;
    font-weight: 700;
    border-radius: 6px;
    cursor: pointer;
    width: 100%;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: all 0.3s ease;
}

.submit-btn:hover {
    background: #333;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

footer {
    background-color: var(--contrast-color);
    color: var(--accent-color);
    text-align: center;
    padding: 2rem 0;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 0 1rem;
    }
    
    .nav-container {
        padding: 0 1rem;
        --nav-height: 60px;
        height: var(--nav-height);
    }
    
    body { padding-top: 60px; }
    
    .nav-logo { height: calc(var(--nav-height) * 0.95); }
    .nav-ofs { height: calc(var(--nav-height) * 0.95); }
    
    .shop-btn {
        right: 1rem;
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
    }

    .nav-menu { left: 1rem; }
    .menu-dropdown { min-width: 180px; }
    .menu-trigger {
        padding: 0.5rem 1rem; /* match mobile .shop-btn */
        font-size: 0.9rem; /* match mobile .shop-btn */
    }
    
    .review-item {
        min-width: 300px;
        padding: 0 1rem;
    }
    
    /* Hero Section Mobile */
    .hero-section {
        padding: 4rem 1rem 3rem;
        min-height: 50vh;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.2rem;
        margin-bottom: 2rem;
    }
    
    .hero-stats {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        margin-top: 2rem;
    }
    
    .stat-number {
        font-size: 2.5rem;
    }
    
    /* Video Process Section Mobile */
    .video-process-section {
        padding: 4rem 1rem;
    }
    
    .video-process-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .video-content {
        position: static;
    }
    
    .video-section {
        order: -1; /* Show video first on mobile */
    }
    
    .section-title {
        font-size: 2rem;
        margin-bottom: 2rem;
    }
    
    .steps-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    /* Bio Section Mobile */
    .fitter-bio {
        padding: 4rem 1rem;
    }
    
    .bio-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    
    .bio-image {
        order: -1;
    }
    
    .fitter-photo {
        height: 400px;
    }
    
    /* Form Section Mobile */
    .fitting-form-section {
        padding: 4rem 1rem;
    }
    
    .remote-fitting-form {
        padding: 2rem 1.5rem;
    }
    
    .form-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .video-upload-section {
        padding: 1.5rem;
    }
    
    .upload-label {
        justify-content: center;
        width: 100%;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-stats {
        margin-top: 1.5rem;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    .section-title {
        font-size: 1.75rem;
    }
    
    .step-card {
        padding: 1.5rem;
    }
    
    .fitter-photo {
        height: 300px;
    }
    
    .bio-text h3 {
        font-size: 1.25rem;
    }
    
    .remote-fitting-form {
        padding: 1.5rem 1rem;
    }
}

/* Load Google Fonts to match existing site */
@import url('https://fonts.googleapis.com/css2?family=Work+Sans:wght@400;600;800&display=swap');
/* Live Google Reviews */
.reviews-live {
    background: rgba(255,255,255,0.6);
    padding: 4rem 0;
}

.reviews-attrib {
    text-align: center;
    color: #666;
    font-size: 0.9rem;
    margin-top: -1.5rem;
    margin-bottom: 1.5rem;
}

.reviews-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
}

.review-card {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.review-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.review-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #eee;
}

.review-name { font-weight: 600; }
.review-stars { color: #ffd700; letter-spacing: 2px; }
.review-text { color: #333; font-size: 0.95rem; }
.review-time { color: #666; font-size: 0.8rem; }

.google-link {
    display: inline-block;
    margin-top: 1rem;
    color: var(--contrast-color);
    font-weight: 600;
    text-decoration: underline;
}

@media (max-width: 900px) {
    .reviews-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 600px) {
    .reviews-grid { grid-template-columns: 1fr; }
}

/* Side-by-Side Showcase Navigation */
.showcase-nav {
    position: relative;
    z-index: 1;
    padding: 1rem 0 2rem;
}
.showcase-track {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(220px, 1fr);
    gap: 1rem;
    overflow-x: auto;
    padding: 0 2rem;
    scroll-snap-type: x mandatory;
}
.showcase-card {
    background: rgba(255,255,255,0.92);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.1);
    scroll-snap-align: start;
    display: block;
    text-decoration: none;
    color: #111;
    min-height: 160px;
}
.showcase-thumb {
    height: 100px;
    border-top-left-radius: 12px;
    border-top-right-radius: 12px;
    background: linear-gradient(135deg,#eaf0ff,#ffffff);
    border-bottom: 1px solid var(--border-color);
}
.showcase-title {
    padding: 10px 12px;
    font-weight: 700;
    text-align: center;
}

/* 3D Background Sphere + Orbiting Previews */
#bg3d {
    position: fixed;
    inset: 0;
    z-index: 0; /* behind content */
    overflow: hidden;
    pointer-events: none; /* allow clicks to pass except previews */
}
#bg3d-canvas {
    width: 100%;
    height: 100%;
    display: block;
}
#orbit-previews {
    position: absolute;
    inset: 0;
}
.orbit-preview {
    position: absolute;
    transform: translate(-50%, -50%);
    background: rgba(255,255,255,0.9);
    border: 1px solid rgba(0,0,0,0.08);
    border-radius: 10px;
    box-shadow: 0 6px 18px rgba(0,0,0,0.15);
    width: 140px;
    pointer-events: auto; /* clickable */
    text-decoration: none;
    color: #111;
    backdrop-filter: blur(6px);
}
.orbit-preview .thumb {
    height: 74px;
    background: linear-gradient(135deg,#f6f7f9,#dbe1f1);
    border-bottom: 1px solid rgba(0,0,0,0.06);
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
}
.orbit-preview .label {
    padding: 8px 10px;
    font-size: 12px;
    font-weight: 600;
    text-align: center;
}

/* Ensure main content sits above bg */
.navbar, .reviews-banner, .hero-section, .video-process-section, .reviews-live, .fitter-bio, .fitting-form-section, footer {
    position: relative;
    z-index: 1;
}
