/*
 * Custom Captain WordPress Theme Styles
 * Comprehensive CSS for Home, Product, and How It Works pages
 */

/* ==========================================================================
   GLOBAL STYLES
   ========================================================================== */

:root {
    --primary-color: #0A2540;
    --secondary-color: #00A8E8;
    --accent-color: #FF6B35;
    --text-dark: #2C3E50;
    --text-light: #6C757D;
    --border-color: #E0E0E0;
    --background-light: #F8F9FA;
    --white: #FFFFFF;
    --success: #28A745;
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-heading: 'Poppins', sans-serif;
    --transition: all 0.3s ease;
}

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

body {
    font-family: var(--font-primary);
    color: var(--text-dark);
    line-height: 1.6;
    font-size: 16px;
}

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

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 1rem;
}

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

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--secondary-color);
}

/* ==========================================================================
   BUTTONS
   ========================================================================== */

.btn {
    display: inline-block;
    padding: 14px 32px;
    font-size: 16px;
    font-weight: 600;
    text-align: center;
    border-radius: 6px;
    cursor: pointer;
    transition: var(--transition);
    border: 2px solid transparent;
    text-decoration: none;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--white);
    border-color: var(--primary-color);
}

.btn-primary:hover {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
    color: var(--white);
}

.btn-secondary {
    background-color: transparent;
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-secondary:hover {
    background-color: var(--primary-color);
    color: var(--white);
}

.btn-outline {
    background-color: transparent;
    color: var(--text-dark);
    border-color: var(--border-color);
}

.btn-outline:hover {
    background-color: var(--background-light);
    border-color: var(--text-dark);
}

.btn-light {
    background-color: var(--white);
    color: var(--primary-color);
}

.btn-light:hover {
    background-color: var(--background-light);
}

.btn-large {
    padding: 18px 40px;
    font-size: 18px;
}

/* ==========================================================================
   HOME PAGE STYLES
   ========================================================================== */

/* Hero Section */
.hero-section {
    position: relative;
    height: 600px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    overflow: hidden;
}

.hero-content {
    text-align: center;
    z-index: 2;
}

.hero-title {
    font-size: 56px;
    margin-bottom: 16px;
    font-weight: 700;
}

.hero-subtitle {
    font-size: 24px;
    margin-bottom: 32px;
    font-weight: 400;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Features Bar */
.features-bar {
    background-color: var(--white);
    padding: 40px 0;
    border-bottom: 1px solid var(--border-color);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    text-align: center;
}

.feature-item h3 {
    font-size: 36px;
    color: var(--secondary-color);
    margin-bottom: 8px;
}

.feature-item p {
    font-size: 16px;
    color: var(--text-light);
}

/* Section Titles */
.section-title {
    font-size: 36px;
    text-align: center;
    margin-bottom: 16px;
    color: var(--text-dark);
}

.section-subtitle {
    font-size: 18px;
    text-align: center;
    margin-bottom: 48px;
    color: var(--text-light);
}

/* Brand Partners */
.brand-partners {
    padding: 80px 0;
    background-color: var(--background-light);
}

.brands-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 32px;
    margin-top: 48px;
}

.brand-item {
    background-color: var(--white);
    padding: 32px;
    border-radius: 12px;
    text-align: center;
    transition: var(--transition);
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.brand-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 16px rgba(0,0,0,0.12);
}

.brand-image {
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.brand-link {
    display: inline-block;
    color: var(--secondary-color);
    font-weight: 600;
}

/* Style Section */
.style-section {
    padding: 80px 0;
}

.style-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 40px;
    margin-top: 48px;
}

.style-card {
    background-color: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 32px;
    text-align: center;
    transition: var(--transition);
}

.style-card:hover {
    box-shadow: 0 8px 24px rgba(0,0,0,0.1);
}

.style-image {
    height: 250px;
    margin-bottom: 24px;
    overflow: hidden;
    border-radius: 8px;
}

.style-card h3 {
    font-size: 24px;
    margin-bottom: 16px;
}

.style-card p {
    color: var(--text-light);
    margin-bottom: 24px;
}

/* How It Works Section */
.how-it-works {
    padding: 80px 0;
    background-color: var(--background-light);
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    margin-top: 48px;
}

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

.step-image {
    height: 300px;
    margin-bottom: 24px;
    border-radius: 12px;
    overflow: hidden;
}

.step-number {
    display: inline-block;
    width: 60px;
    height: 60px;
    line-height: 60px;
    background-color: var(--secondary-color);
    color: var(--white);
    font-size: 24px;
    font-weight: 700;
    border-radius: 50%;
    margin-bottom: 16px;
}

.step-item h3 {
    font-size: 20px;
    color: var(--text-dark);
}

.cta-center {
    text-align: center;
    margin-top: 48px;
}

/* Before/After and Content Sections */
.before-after-section,
.printing-section {
    padding: 80px 0;
}

.content-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 60px;
    align-items: center;
}

.content-grid.reverse {
    direction: rtl;
}

.content-grid.reverse > * {
    direction: ltr;
}

.content-text h2 {
    font-size: 36px;
    margin-bottom: 24px;
}

.content-text p {
    font-size: 18px;
    color: var(--text-light);
    margin-bottom: 24px;
}

.image-comparison,
.content-image {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(0,0,0,0.1);
}

/* Boat Name Gear Banner */
.boat-name-gear {
    padding: 80px 0;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: var(--white);
}

.gear-banner {
    text-align: center;
}

.gear-banner h2 {
    font-size: 42px;
    margin-bottom: 16px;
}

.gear-banner p {
    font-size: 20px;
    margin-bottom: 32px;
}

/* Partners Section */
.partners-section {
    padding: 80px 0;
    background-color: var(--background-light);
    text-align: center;
}

.partners-logos {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 40px;
    margin: 48px 0;
    flex-wrap: wrap;
}

.partners-logos img {
    height: 60px;
    width: auto;
    filter: grayscale(100%);
    opacity: 0.7;
    transition: var(--transition);
}

.partners-logos img:hover {
    filter: grayscale(0%);
    opacity: 1;
}

/* Collections Grid */
.top-collections {
    padding: 80px 0;
}

.collections-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 32px;
    margin-top: 48px;
}

.collection-card {
    position: relative;
    height: 400px;
    border-radius: 12px;
    overflow: hidden;
    transition: var(--transition);
}

.collection-card:hover {
    transform: scale(1.02);
}

.collection-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.collection-card h3 {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 24px;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    color: var(--white);
    margin: 0;
}

/* FAQ Section */
.faq-section {
    padding: 80px 0;
    background-color: var(--background-light);
}

.faq-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 32px;
    margin-top: 48px;
}

.faq-item {
    background-color: var(--white);
    padding: 32px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.faq-item h3 {
    font-size: 20px;
    margin-bottom: 16px;
    color: var(--primary-color);
}

.faq-item p {
    color: var(--text-light);
}

/* Boat Types */
.boat-types-section {
    padding: 80px 0;
}

.boat-types-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 32px;
    margin-top: 48px;
}

.boat-type-item {
    text-align: center;
}

.boat-type-images {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-bottom: 16px;
}

.boat-type-images img {
    border-radius: 8px;
}

/* Reviews Carousel */
.reviews-carousel {
    padding: 80px 0;
    background-color: var(--background-light);
}

.reviews-slider {
    display: flex;
    gap: 32px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding: 32px 0;
    margin-top: 48px;
}

.review-card {
    flex: 0 0 350px;
    background-color: var(--white);
    padding: 32px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    scroll-snap-align: start;
}

.review-text {
    font-size: 16px;
    color: var(--text-dark);
    margin-bottom: 20px;
    font-style: italic;
}

.review-image {
    width: 100%;
    height: 200px;
    margin-bottom: 16px;
    border-radius: 8px;
    overflow: hidden;
}

.review-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.review-author {
    font-weight: 600;
    color: var(--primary-color);
}

/* ==========================================================================
   PRODUCT PAGE STYLES
   ========================================================================== */

.product-page-wrapper {
    padding: 60px 0;
}

.product-main-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    margin-bottom: 60px;
}

/* Product Gallery */
.product-gallery {
    position: sticky;
    top: 100px;
    height: fit-content;
}

.main-image {
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 16px;
    border: 1px solid var(--border-color);
}

.thumbnail-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
    gap: 8px;
}

.thumbnail-item {
    cursor: pointer;
    border-radius: 8px;
    overflow: hidden;
    border: 2px solid transparent;
    transition: var(--transition);
}

.thumbnail-item:hover,
.thumbnail-item.active {
    border-color: var(--secondary-color);
}

.mockup-note {
    margin-top: 16px;
    padding: 16px;
    background-color: var(--background-light);
    border-radius: 8px;
    font-size: 14px;
    color: var(--text-light);
}

/* Product Info */
.product-info {
    position: relative;
}

.product-title {
    font-size: 32px;
    margin-bottom: 16px;
}

.product-price {
    font-size: 28px;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 32px;
}

.product-options {
    margin-bottom: 32px;
}

.product-options h4 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 12px;
}

.size-chart-link {
    font-size: 14px;
    color: var(--secondary-color);
    margin-left: 8px;
}

/* Color Swatches */
.color-swatches {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.color-swatch {
    width: 60px;
    height: 60px;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    border: 3px solid transparent;
    transition: var(--transition);
}

.color-swatch:hover,
.color-swatch.active {
    border-color: var(--secondary-color);
}

.color-swatch img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Size Options */
.size-options {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.size-btn {
    padding: 12px 20px;
    border: 2px solid var(--border-color);
    background-color: var(--white);
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    transition: var(--transition);
}

.size-btn:hover,
.size-btn.active {
    border-color: var(--primary-color);
    background-color: var(--primary-color);
    color: var(--white);
}

/* Artwork Lookup */
.artwork-lookup {
    margin-bottom: 32px;
    padding: 24px;
    background-color: var(--background-light);
    border-radius: 12px;
}

.artwork-lookup label {
    display: block;
    font-weight: 600;
    margin-bottom: 12px;
}

.artwork-lookup input[type="text"] {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    margin-bottom: 12px;
    font-size: 16px;
}

/* Design Selection */
.design-selection {
    margin-bottom: 32px;
}

.design-option {
    margin-bottom: 24px;
}

.design-choices {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.design-choices label {
    display: flex;
    align-items: center;
    cursor: pointer;
}

.design-choices input[type="radio"] {
    margin-right: 8px;
}

/* Quantity and Cart */
.quantity-cart {
    display: flex;
    gap: 16px;
    align-items: center;
    margin-bottom: 24px;
}

.quantity-cart input[type="number"] {
    width: 80px;
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-size: 16px;
}

.add-to-cart {
    flex: 1;
}

/* Product Details Tabs */
.product-details-section {
    margin: 60px 0;
}

.product-tabs {
    display: flex;
    gap: 16px;
    border-bottom: 2px solid var(--border-color);
    margin-bottom: 32px;
    flex-wrap: wrap;
}

.tab-btn {
    padding: 12px 24px;
    background: none;
    border: none;
    border-bottom: 3px solid transparent;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    color: var(--text-light);
    transition: var(--transition);
}

.tab-btn:hover,
.tab-btn.active {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
}

.tab-content {
    display: none;
    padding: 32px 0;
}

.tab-content.active {
    display: block;
}

/* As Seen In */
.as-seen-in {
    margin: 60px 0;
    text-align: center;
}

.press-logos {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 32px;
    margin-top: 32px;
    flex-wrap: wrap;
}

.press-logos img {
    height: 40px;
    filter: grayscale(100%);
    opacity: 0.6;
}

/* Product Features Grid */
.product-features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    margin: 60px 0;
}

.feature-highlight {
    text-align: center;
}

.feature-highlight img {
    border-radius: 12px;
    margin-bottom: 24px;
}

.feature-highlight h3 {
    font-size: 22px;
    margin-bottom: 16px;
}

.feature-highlight p {
    color: var(--text-light);
}

/* Product Reviews */
.product-reviews {
    margin: 60px 0;
}

.reviews-subtitle {
    text-align: center;
    font-size: 18px;
    color: var(--text-light);
    margin-bottom: 40px;
}

.reviews-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 24px;
}

.review-item {
    padding: 24px;
    background-color: var(--background-light);
    border-radius: 12px;
}

.review-author {
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 8px;
}

.review-text {
    color: var(--text-light);
    font-size: 14px;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.7);
}

.modal-content {
    background-color: var(--white);
    margin: 5% auto;
    padding: 40px;
    width: 90%;
    max-width: 800px;
    border-radius: 12px;
    position: relative;
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 32px;
    cursor: pointer;
    color: var(--text-light);
}

/* ==========================================================================
   HOW IT WORKS PAGE STYLES
   ========================================================================== */

.how-it-works-page {
    padding-bottom: 60px;
}

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

.page-title {
    font-size: 48px;
    margin-bottom: 16px;
}

.page-subtitle {
    font-size: 20px;
    font-weight: 400;
}

/* HIW Steps */
.hiw-step {
    padding: 80px 0;
}

.hiw-step:nth-child(even) {
    background-color: var(--background-light);
}

.step-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.step-content.reverse {
    direction: rtl;
}

.step-content.reverse > * {
    direction: ltr;
}

.step-badge {
    margin-bottom: 24px;
}

.step-text h2 {
    font-size: 36px;
    margin-bottom: 24px;
}

.step-text p {
    font-size: 18px;
    color: var(--text-light);
    margin-bottom: 16px;
}

.design-features {
    margin-top: 32px;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.feature-icon {
    color: var(--success);
}

/* HIW Social Proof */
.hiw-social-proof {
    padding: 80px 0;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: var(--white);
    text-align: center;
}

.proof-content h2 {
    font-size: 32px;
    margin-bottom: 32px;
}

/* HIW Benefits */
.hiw-benefits {
    padding: 80px 0;
    background-color: var(--background-light);
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    margin-top: 48px;
}

.benefit-card {
    background-color: var(--white);
    padding: 40px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    transition: var(--transition);
}

.benefit-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}

.benefit-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 24px;
    color: var(--secondary-color);
}

.benefit-card h3 {
    font-size: 24px;
    margin-bottom: 16px;
}

.benefit-card p {
    color: var(--text-light);
}

/* HIW FAQ */
.hiw-faq {
    padding: 80px 0;
}

.faq-accordion {
    max-width: 800px;
    margin: 48px auto 0;
}

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

.faq-question {
    width: 100%;
    padding: 24px;
    background-color: var(--white);
    border: none;
    text-align: left;
    cursor: pointer;
    font-size: 18px;
    font-weight: 600;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: var(--transition);
}

.faq-question:hover {
    background-color: var(--background-light);
}

.faq-icon {
    transition: transform 0.3s ease;
}

.faq-item.active .faq-icon {
    transform: rotate(180deg);
}

.faq-answer {
    display: none;
    padding: 0 24px 24px;
    background-color: var(--white);
}

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

/* HIW CTA */
.hiw-cta {
    padding: 80px 0;
    background-color: var(--background-light);
}

.cta-box {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    background-color: var(--white);
    padding: 60px 40px;
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.1);
}

.cta-box h2 {
    font-size: 36px;
    margin-bottom: 16px;
}

.cta-box p {
    font-size: 18px;
    color: var(--text-light);
    margin-bottom: 32px;
}

/* ==========================================================================
   RESPONSIVE STYLES
   ========================================================================== */

@media (max-width: 1024px) {
    .product-main-content,
    .content-grid,
    .step-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .step-content.reverse {
        direction: ltr;
    }
    
    .product-gallery {
        position: relative;
        top: 0;
    }
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 36px;
    }
    
    .hero-subtitle {
        font-size: 18px;
    }
    
    .section-title {
        font-size: 28px;
    }
    
    .style-grid,
    .collections-grid {
        grid-template-columns: 1fr;
    }
    
    .steps-grid,
    .benefits-grid,
    .boat-types-grid {
        grid-template-columns: 1fr;
    }
    
    .page-title {
        font-size: 32px;
    }
    
    .step-text h2 {
        font-size: 28px;
    }
    
    .cta-box h2 {
        font-size: 28px;
    }
}

@media (max-width: 480px) {
    .hero-buttons {
        flex-direction: column;
        width: 100%;
    }
    
    .btn {
        width: 100%;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .reviews-slider {
        padding: 16px 0;
    }
    
    .review-card {
        flex: 0 0 280px;
    }
}
