/*
Theme Name: CalmTab Single Page
Theme URI: https://calmtab.co
Description: A modern single-page WooCommerce theme for CalmTab with Momentum-inspired design. Works with any payment gateway including WooCommerce Payments.
Version: 6.2
Author: CalmTab
Author URI: https://calmtab.co
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: calmtab-single-page
*/

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.7;
    color: #3d4f5f;
    overflow-x: hidden;
    background: #fff;
}

.container {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ================================
   HEADER
   ================================ */
.site-header {
    background: #fff;
    padding: 16px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid #eef1f5;
}

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

.site-title {
    font-size: 22px;
    font-weight: 700;
    color: #667eea;
    text-decoration: none;
    letter-spacing: -0.5px;
}

.header-nav {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-link {
    color: #5a6a7a;
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    transition: color 0.2s;
}

.nav-link:hover {
    color: #667eea;
}

.header-cta {
    background: #667eea;
    color: #fff;
    padding: 10px 24px;
    border-radius: 24px;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.2s;
}

.header-cta:hover {
    background: #5568d3;
    transform: translateY(-1px);
}

/* ================================
   HERO SECTION
   ================================ */
.hero-section {
    background: #fff;
    padding: 80px 0 60px;
}

.hero-container {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 60px;
    align-items: center;
}

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

.hero-content h1 {
    font-size: 42px;
    font-weight: 700;
    color: #2d3e50;
    line-height: 1.2;
    margin-bottom: 20px;
    letter-spacing: -1px;
}

.hero-subtitle {
    font-size: 17px;
    color: #5a6a7a;
    margin-bottom: 32px;
    line-height: 1.7;
}

.hero-image img {
    width: 100%;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(102, 126, 234, 0.2);
}

/* ================================
   BROWSER BUTTONS
   ================================ */
.browser-buttons {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.browser-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 28px;
    border-radius: 28px;
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
    transition: all 0.2s;
    background: #667eea;
    color: #fff;
    border: none;
}

.browser-btn:hover {
    background: #5568d3;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(102, 126, 234, 0.35);
}

.browser-btn svg {
    flex-shrink: 0;
    opacity: 0.9;
}

.browser-btn-text {
    font-weight: 600;
}

.browser-btn-free {
    opacity: 0.8;
    font-weight: 400;
}

/* CTA section buttons - white on purple background */
.cta-section .browser-btn {
    background: #fff !important;
    color: #667eea !important;
}

.cta-section .browser-btn:hover {
    background: #f0f0ff !important;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.cta-section .browser-btn svg {
    fill: #667eea;
}

.cta-section .browser-btn-free {
    color: #667eea;
    opacity: 0.7;
}

/* ================================
   INTRO SECTION
   ================================ */
.intro-section {
    padding: 80px 0;
    background: #f8fafc;
    text-align: center;
}

.intro-section h2 {
    font-size: 32px;
    font-weight: 600;
    color: #2d3e50;
    max-width: 700px;
    margin: 0 auto 12px;
    line-height: 1.4;
}

.intro-highlight {
    font-size: 32px;
    font-weight: 600;
    color: #667eea;
}

/* ================================
   FEATURES SECTION
   ================================ */
.features-section {
    padding: 60px 0;
    background: #fff;
}

.feature-row {
    display: grid;
    grid-template-columns: 1fr 1.3fr;
    gap: 60px;
    align-items: center;
    padding: 60px 0;
    border-bottom: 1px solid #eef1f5;
}

.feature-row:last-child {
    border-bottom: none;
}

.feature-row.reverse {
    grid-template-columns: 1.3fr 1fr;
}

.feature-row.reverse .feature-text {
    order: 2;
}

.feature-row.reverse .feature-image {
    order: 1;
}

.feature-text h3 {
    font-size: 26px;
    font-weight: 600;
    color: #2d3e50;
    margin-bottom: 16px;
    letter-spacing: -0.5px;
}

.feature-text p {
    font-size: 16px;
    color: #5a6a7a;
    line-height: 1.8;
}

.feature-image img {
    width: 100%;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
}

/* ================================
   REVIEWS SECTION
   ================================ */
.reviews-section {
    padding: 80px 0;
    background: #f8fafc;
}

.reviews-section h2 {
    text-align: center;
    font-size: 32px;
    font-weight: 600;
    color: #2d3e50;
    margin-bottom: 50px;
}

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

.review-card {
    background: #fff;
    padding: 32px;
    border-radius: 12px;
    border: 1px solid #eef1f5;
    transition: all 0.2s;
}

.review-card:hover {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
    transform: translateY(-4px);
}

.review-rating {
    color: #667eea;
    margin-bottom: 16px;
    font-size: 18px;
    letter-spacing: 2px;
}

.review-text {
    font-size: 15px;
    color: #5a6a7a;
    line-height: 1.7;
    margin-bottom: 20px;
    font-style: italic;
}

.review-author {
    font-weight: 600;
    color: #2d3e50;
    font-size: 14px;
}

/* Reviews Embed Container */
.reviews-embed {
    max-width: 100%;
    margin: 0 auto;
}

.reviews-embed iframe {
    max-width: 100%;
}

/* ================================
   GALLERY SECTION
   ================================ */
.gallery-section {
    padding: 80px 0;
    background: #fff;
}

.gallery-section h2 {
    text-align: center;
    font-size: 32px;
    font-weight: 600;
    color: #2d3e50;
    margin-bottom: 50px;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.gallery-item img {
    width: 100%;
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
    transition: all 0.3s;
}

.gallery-item img:hover {
    transform: scale(1.02);
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.12);
}

/* ================================
   CTA SECTION
   ================================ */
.cta-section {
    padding: 80px 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    text-align: center;
}

.cta-section h2 {
    font-size: 36px;
    font-weight: 600;
    color: #fff;
    margin-bottom: 32px;
}

.cta-buttons {
    justify-content: center;
}

/* ================================
   CHECKOUT SECTION
   ================================ */
.checkout-section {
    padding: 80px 0;
    background: #f8fafc;
}

.checkout-section h2 {
    text-align: center;
    font-size: 32px;
    font-weight: 600;
    color: #2d3e50;
    margin-bottom: 12px;
}

.checkout-subtitle {
    text-align: center;
    font-size: 17px;
    color: #5a6a7a;
    margin-bottom: 50px;
}

.checkout-wrapper {
    background: #fff;
    border-radius: 16px;
    padding: 48px;
    max-width: 800px;
    margin: 0 auto;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.06);
    border: 1px solid #eef1f5;
}

.checkout-notice {
    text-align: center;
    padding: 40px;
    background: #fff3cd;
    border-radius: 12px;
}

.checkout-notice h3 {
    color: #856404;
    margin-bottom: 12px;
}

.checkout-notice p {
    color: #856404;
}

/* Product Display */
.single-page-product {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
    align-items: start;
}

.single-page-product img {
    width: 100%;
    border-radius: 12px;
}

.product-info h3 {
    font-size: 28px;
    font-weight: 600;
    margin-bottom: 16px;
    color: #2d3e50;
}

.product-price {
    font-size: 36px;
    color: #667eea;
    font-weight: 700;
    margin-bottom: 20px;
}

.product-description {
    color: #5a6a7a;
    margin-bottom: 24px;
    line-height: 1.8;
}

/* ================================
   WOOCOMMERCE OVERRIDES
   ================================ */
.woocommerce,
.woocommerce-page,
.woocommerce-checkout {
    color: #3d4f5f;
}

.woocommerce form .form-row {
    margin-bottom: 20px;
}

.woocommerce form .form-row label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #2d3e50;
    font-size: 14px;
}

.woocommerce form input.input-text,
.woocommerce form select,
.woocommerce form textarea {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid #e5e9ef;
    border-radius: 8px;
    font-size: 15px;
    transition: all 0.2s;
    background: #fff;
}

.woocommerce form input.input-text:focus,
.woocommerce form select:focus,
.woocommerce form textarea:focus {
    border-color: #667eea;
    outline: none;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.woocommerce #payment {
    background: #f8fafc;
    border-radius: 12px;
    padding: 24px;
    margin-top: 30px;
}

.woocommerce-checkout #payment ul.payment_methods {
    border: none;
    padding: 0;
    margin: 0 0 20px 0;
    list-style: none;
}

.woocommerce-checkout #payment div.payment_box {
    background: #fff;
    border-radius: 8px;
    margin-top: 15px;
    padding: 20px;
}

.woocommerce #place_order,
.woocommerce-page #place_order {
    background: #667eea;
    color: #fff;
    border: none;
    padding: 16px 40px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 28px;
    cursor: pointer;
    width: 100%;
    transition: all 0.2s;
    margin-top: 20px;
}

.woocommerce #place_order:hover,
.woocommerce-page #place_order:hover {
    background: #5568d3;
    transform: translateY(-1px);
    box-shadow: 0 8px 24px rgba(102, 126, 234, 0.35);
}

.woocommerce-billing-fields h3,
.woocommerce-additional-fields h3 {
    color: #2d3e50;
    margin-bottom: 20px;
    font-size: 20px;
    font-weight: 600;
}

.woocommerce table.shop_table {
    border: none;
    margin-bottom: 24px;
}

.woocommerce table.shop_table th,
.woocommerce table.shop_table td {
    border: none;
    padding: 14px;
}

.woocommerce table.shop_table thead {
    background: #f8fafc;
}

.woocommerce-checkout-review-order {
    background: #f8fafc;
    padding: 24px;
    border-radius: 12px;
    margin-bottom: 20px;
}

/* ================================
   FOOTER
   ================================ */
.site-footer {
    background: #2d3e50;
    color: #fff;
    padding: 60px 0 30px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 30px;
}

.footer-brand {
    max-width: 300px;
}

.footer-logo {
    font-size: 22px;
    font-weight: 700;
    color: #fff;
    display: block;
    margin-bottom: 12px;
}

.footer-tagline {
    color: rgba(255, 255, 255, 0.6);
    font-size: 14px;
    line-height: 1.6;
    margin: 0;
}

.footer-links {
    display: flex;
    gap: 32px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: #fff;
}

.footer-bottom {
    text-align: center;
}

.footer-bottom p {
    margin: 0;
    opacity: 0.5;
    font-size: 13px;
}

/* Logo styling */
.site-logo {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.site-logo img {
    height: 32px;
    width: auto;
}

/* ================================
   THANK YOU MODAL
   ================================ */
.calmtab-modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.5);
    animation: fadeIn 0.3s;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.calmtab-modal-content {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    margin: 10% auto;
    padding: 48px;
    border-radius: 16px;
    max-width: 500px;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.3);
    position: relative;
    animation: slideIn 0.4s;
}

@keyframes slideIn {
    from {
        transform: translateY(-30px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.calmtab-modal-content h2 {
    margin-top: 0;
    font-size: 26px;
    margin-bottom: 16px;
    font-weight: 600;
}

.calmtab-modal-content p {
    font-size: 15px;
    line-height: 1.7;
    opacity: 0.95;
    margin-bottom: 12px;
}

.calmtab-modal-order-details {
    background: rgba(255, 255, 255, 0.15);
    padding: 20px;
    border-radius: 12px;
    margin: 24px 0;
}

.calmtab-modal-close {
    position: absolute;
    right: 20px;
    top: 20px;
    color: #fff;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    opacity: 0.7;
    transition: opacity 0.2s;
    line-height: 1;
}

.calmtab-modal-close:hover {
    opacity: 1;
}

.calmtab-modal-button {
    background: #fff;
    color: #667eea;
    border: none;
    padding: 14px 36px;
    font-size: 15px;
    font-weight: 600;
    border-radius: 28px;
    cursor: pointer;
    margin-top: 16px;
    transition: all 0.2s;
}

.calmtab-modal-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

/* License Key Display */
.calmtab-modal-license-keys {
    background: rgba(255, 255, 255, 0.2);
    padding: 20px;
    border-radius: 12px;
    margin: 24px 0;
}

.calmtab-license-key {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.calmtab-license-key:last-child {
    margin-bottom: 0;
}

.calmtab-license-key code {
    flex: 1;
    background: rgba(0, 0, 0, 0.2);
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 14px;
    font-family: 'SF Mono', 'Courier New', monospace;
    color: #fff;
    word-break: break-all;
    user-select: all;
}

.calmtab-copy-button {
    background: rgba(255, 255, 255, 0.25);
    color: #fff;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.2s;
}

.calmtab-copy-button:hover {
    background: rgba(255, 255, 255, 0.35);
}

/* ================================
   RESPONSIVE
   ================================ */
@media (max-width: 992px) {
    .hero-container {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .hero-content {
        max-width: 100%;
        text-align: center;
    }

    .browser-buttons {
        justify-content: center;
    }

    .feature-row,
    .feature-row.reverse {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .feature-row.reverse .feature-text,
    .feature-row.reverse .feature-image {
        order: unset;
    }

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

    .reviews-grid,
    .gallery-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .site-header .container {
        flex-direction: column;
        gap: 16px;
    }

    .header-nav {
        gap: 16px;
        flex-wrap: wrap;
        justify-content: center;
    }

    .hero-content h1 {
        font-size: 32px;
    }

    .hero-subtitle {
        font-size: 16px;
    }

    .intro-section h2,
    .intro-highlight {
        font-size: 24px;
    }

    .feature-text h3 {
        font-size: 22px;
    }

    .reviews-section h2,
    .gallery-section h2,
    .checkout-section h2 {
        font-size: 26px;
    }

    .cta-section h2 {
        font-size: 28px;
    }

    .single-page-product {
        grid-template-columns: 1fr;
    }

    .checkout-wrapper {
        padding: 24px;
    }

    .product-price {
        font-size: 28px;
    }

    .calmtab-modal-content {
        margin: 20% 16px;
        padding: 32px 24px;
    }

    .calmtab-license-key {
        flex-direction: column;
        align-items: stretch;
    }

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

    .footer-brand {
        max-width: 100%;
    }

    .footer-links {
        flex-direction: column;
        gap: 16px;
    }
}

/* Smooth scroll */
html {
    scroll-behavior: smooth;
}

/* Page content styling */
.page-content {
    background: #fff;
}

.page-content h1 {
    font-size: 36px;
    font-weight: 600;
    color: #2d3e50;
}

.page-content .entry-content {
    color: #5a6a7a;
    line-height: 1.8;
}

.page-content .entry-content h2,
.page-content .entry-content h3,
.page-content .entry-content h4 {
    color: #2d3e50;
    margin-top: 32px;
    margin-bottom: 16px;
}

.page-content .entry-content p {
    margin-bottom: 16px;
}

.page-content .entry-content a {
    color: #667eea;
}

.page-content .entry-content a:hover {
    text-decoration: underline;
}
