/* CG Bots - Main Stylesheet */
/* "Tools that work for you" */

/* ========== CSS Variables ========== */
:root {
    /* Brand Colors - Carolina Blue */
    --primary: #7BAFD4;
    --primary-dark: #5A9AC7;
    --primary-light: #9DC4E0;
    --accent: #5A9AC7;
    --accent-dark: #4A8AB7;
    --secondary: #7BAFD4;
    
    /* Neutrals */
    --dark: #212121;
    --gray: #666666;
    --light-gray: #E0E0E0;
    --lighter-gray: #F5F5F5;
    --white: #FFFFFF;
    
    /* Typography */
    --font-main: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-heading: 'Poppins', var(--font-main);
    
    /* Spacing */
    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 2rem;
    --space-lg: 4rem;
    --space-xl: 6rem;
    
    /* Border Radius */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 16px;
    --radius-full: 9999px;
    
    /* Shadows */
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.1);
    --shadow-md: 0 4px 6px rgba(0,0,0,0.1);
    --shadow-lg: 0 10px 25px rgba(0,0,0,0.15);
    
    /* Container */
    --container-max: 1200px;
}

/* ========== Reset & Base ========== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    font-size: 16px;
    line-height: 1.6;
    color: var(--dark);
    background: var(--white);
}

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

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

a:hover {
    color: var(--primary-dark);
}

/* ========== Typography ========== */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
    color: var(--dark);
}

h1 { font-size: 3rem; }
h2 { font-size: 2.25rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }

p {
    margin-bottom: var(--space-sm);
}

.text-center { text-align: center; }
.text-primary { color: var(--primary); }
.text-accent { color: var(--accent); }
.text-gray { color: var(--gray); }

/* ========== Layout ========== */
.container {
    width: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--space-md);
}

.section {
    padding: var(--space-xl) 0;
}

.section-sm {
    padding: var(--space-lg) 0;
}

/* Grid */
.grid {
    display: grid;
    gap: var(--space-md);
}

.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

@media (max-width: 768px) {
    .grid-2, .grid-3, .grid-4 {
        grid-template-columns: 1fr;
    }
}

/* Flexbox utilities */
.flex {
    display: flex;
}

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

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

.gap-sm { gap: var(--space-sm); }
.gap-md { gap: var(--space-md); }

/* ========== Buttons ========== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    font-family: var(--font-main);
    font-size: 1rem;
    font-weight: 600;
    border: none;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
}

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

.btn-primary:hover {
    background: var(--primary-dark);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

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

.btn-accent:hover {
    background: var(--accent-dark);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

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

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

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1.125rem;
}

/* ========== Site Header (Banner + Nav) ========== */
.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
}

/* ========== Launch Banner ========== */
.launch-banner {
    display: block;
    background: var(--primary);
    color: white;
    text-align: center;
    padding: 0.75rem 1rem;
    font-weight: 500;
    font-size: 0.9rem;
    text-decoration: none;
    transition: background 0.2s ease;
}

.launch-banner:hover {
    background: var(--primary-dark, #5A9AC7);
    color: white;
}

@media (max-width: 480px) {
    .launch-banner {
        font-size: 0.8rem;
        padding: 0.6rem 0.75rem;
    }
}

/* ========== Navigation ========== */
.navbar {
    position: relative;
    background: var(--white);
    box-shadow: var(--shadow-sm);
    padding: var(--space-sm) 0;
}

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

.logo {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
}

.logo img {
    height: 40px;
    width: auto;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    list-style: none;
}

.nav-links a {
    color: var(--dark);
    font-weight: 500;
    padding: 0.5rem;
    transition: color 0.2s ease;
}

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

/* Small "FREE" pill used next to the Faith Collection nav link */
.nav-badge {
    display: inline-block;
    background: var(--primary);
    color: white;
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    padding: 0.15rem 0.4rem;
    border-radius: var(--radius-full);
    margin-left: 0.35rem;
    vertical-align: middle;
    line-height: 1;
}
.nav-links a:hover .nav-badge {
    background: var(--primary-dark);
}

/* Mobile menu */
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.menu-toggle span {
    width: 25px;
    height: 3px;
    background: var(--dark);
    border-radius: 2px;
    transition: 0.3s;
}

@media (max-width: 768px) {
    .menu-toggle {
        display: flex;
    }

    /* Badge is a tall CGB stack — on narrow screens it sits above the wordmark */
    .logo img {
        display: none;
    }
    
    .nav-links {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        flex-direction: column;
        background: var(--white);
        padding: var(--space-md);
        box-shadow: var(--shadow-md);
        display: none;
    }
    
    .nav-links.active {
        display: flex;
    }
}

/* ========== Hero Section ========== */
.hero {
    padding: var(--space-xl) 0;
    background: linear-gradient(135deg, var(--lighter-gray) 0%, var(--white) 100%);
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-lg);
    align-items: center;
}

.hero-text h1 {
    margin-bottom: var(--space-sm);
}

.hero-text h1 span {
    color: var(--primary);
}

.hero-text p {
    font-size: 1.25rem;
    color: var(--gray);
    margin-bottom: var(--space-md);
}

.hero-buttons {
    display: flex;
    gap: var(--space-sm);
    flex-wrap: wrap;
}

.hero-image img {
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
}

@media (max-width: 768px) {
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    /* Don't stack the hero mockup above the headline on phones */
    .hero-image {
        display: none;
    }
}

/* ========== Features Section ========== */
.features {
    background: var(--white);
}

.feature-card {
    text-align: center;
    padding: var(--space-md);
    border-radius: var(--radius-lg);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.feature-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto var(--space-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--lighter-gray);
    border-radius: var(--radius-full);
    font-size: 2rem;
}

.feature-card h3 {
    margin-bottom: var(--space-xs);
}

.feature-card p {
    color: var(--gray);
    margin-bottom: 0;
}

/* ========== Products Section ========== */
.products {
    background: var(--lighter-gray);
}

.product-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.product-image {
    aspect-ratio: 16/10;
    overflow: hidden;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.product-card:hover .product-image img {
    transform: scale(1.05);
}

.product-info {
    padding: var(--space-md);
}

.product-info h3 {
    margin-bottom: var(--space-xs);
}

.product-info p {
    color: var(--gray);
    font-size: 0.9rem;
}

.product-price {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
    margin: var(--space-sm) 0;
}

/* ========== About Section ========== */
.about-content {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: var(--space-lg);
    align-items: center;
}

.about-image img {
    border-radius: var(--radius-lg);
}

@media (max-width: 768px) {
    .about-content {
        grid-template-columns: 1fr;
    }
}

/* ========== Blog Section ========== */
.blog-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.blog-card-image {
    aspect-ratio: 16/9;
    overflow: hidden;
    background: var(--lighter-gray);
}

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

.blog-card-content {
    padding: var(--space-md);
}

.blog-card-meta {
    font-size: 0.85rem;
    color: var(--gray);
    margin-bottom: var(--space-xs);
}

.blog-card h3 {
    margin-bottom: var(--space-xs);
}

.blog-card h3 a {
    color: var(--dark);
}

.blog-card h3 a:hover {
    color: var(--primary);
}

/* ========== Contact Section ========== */
.contact-form {
    max-width: 600px;
    margin: 0 auto;
}

.form-group {
    margin-bottom: var(--space-sm);
}

.form-group label {
    display: block;
    margin-bottom: var(--space-xs);
    font-weight: 500;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    font-family: var(--font-main);
    font-size: 1rem;
    border: 2px solid var(--light-gray);
    border-radius: var(--radius-md);
    transition: border-color 0.2s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
}

.form-group textarea {
    min-height: 150px;
    resize: vertical;
}

/* ========== Footer ========== */
.footer {
    background: var(--dark);
    color: var(--white);
    padding: var(--space-lg) 0 var(--space-md);
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: var(--space-lg);
    margin-bottom: var(--space-lg);
}

.footer-brand .logo {
    color: var(--white);
    margin-bottom: var(--space-sm);
}

.footer-brand p {
    color: var(--light-gray);
    font-size: 0.9rem;
}

.footer h4 {
    color: var(--white);
    margin-bottom: var(--space-sm);
    font-size: 1rem;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: var(--space-xs);
}

.footer-links a {
    color: var(--light-gray);
    font-size: 0.9rem;
}

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

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: var(--space-md);
    text-align: center;
    color: var(--gray);
    font-size: 0.85rem;
}

.footer-disclaimer {
    margin: 0.55rem auto 0;
    max-width: 40rem;
    line-height: 1.5;
    font-size: 0.78rem;
    color: var(--gray);
}

@media (max-width: 768px) {
    .footer-content {
        grid-template-columns: 1fr 1fr;
    }

    .footer-brand .logo img {
        display: none;
    }
}

@media (max-width: 480px) {
    .footer-content {
        grid-template-columns: 1fr;
    }
}

/* ========== Utility Classes ========== */
.mb-sm { margin-bottom: var(--space-sm); }
.mb-md { margin-bottom: var(--space-md); }
.mb-lg { margin-bottom: var(--space-lg); }
.mt-md { margin-top: var(--space-md); }

.bg-light { background: var(--lighter-gray); }
.bg-white { background: var(--white); }

/* ========== Page Header ========== */
.page-header {
    padding: var(--space-lg) 0;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: var(--white);
    text-align: center;
}

.page-header h1 {
    color: var(--white);
    margin-bottom: var(--space-xs);
}

.page-header p {
    color: rgba(255,255,255,0.8);
    font-size: 1.125rem;
    margin-bottom: 0;
}

/* ========== CTA Section ========== */
.cta {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: var(--white);
    text-align: center;
}

.cta h2 {
    color: var(--white);
    margin-bottom: var(--space-sm);
}

.cta p {
    color: rgba(255,255,255,0.9);
    font-size: 1.125rem;
    margin-bottom: var(--space-md);
}

.cta .btn-accent {
    background: var(--accent);
}

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

/* ========== Dark Mode ========== */
@media (prefers-color-scheme: dark) {
    :root {
        --dark: #E8E8E8;
        --gray: #A0A0A0;
        --light-gray: #3A3A3A;
        --lighter-gray: #2A2A2A;
        --white: #1A1A1A;
    }
    
    body {
        background: #121212;
        color: #E8E8E8;
    }
    
    .site-header {
        background: #1A1A1A;
    }
    
    .navbar {
        background: #1A1A1A;
        border-bottom: 1px solid #2A2A2A;
    }
    
    .logo {
        color: var(--primary);
    }
    
    .nav-links a {
        color: #E8E8E8;
    }
    
    .hero {
        background: linear-gradient(135deg, #1A1A1A 0%, #121212 100%);
    }
    
    .product-card {
        background: #1A1A1A;
        border: 1px solid #2A2A2A;
    }
    
    .blog-card {
        background: #1A1A1A;
        border: 1px solid #2A2A2A;
    }
    
    .feature-card {
        background: #1A1A1A;
    }
    
    .feature-icon {
        background: #2A2A2A;
    }
    
    .btn-outline {
        color: var(--primary);
        border-color: var(--primary);
    }
    
    .btn-outline:hover {
        background: var(--primary);
        color: #1A1A1A;
    }
    
    .form-group input,
    .form-group textarea {
        background: #2A2A2A;
        border-color: #3A3A3A;
        color: #E8E8E8;
    }
    
    .form-group input:focus,
    .form-group textarea:focus {
        border-color: var(--primary);
    }
    
    .footer {
        background: #0A0A0A;
    }
    
    .footer-bottom {
        border-top-color: rgba(255,255,255,0.1);
    }
    
    .bg-light {
        background: #1A1A1A;
    }
    
    .bg-white {
        background: #1A1A1A;
    }
    
    .comparison-table th {
        background: #2A2A2A;
    }
    
    .comparison-table td {
        border-color: #3A3A3A;
    }
    
    .blog-cta {
        background: #2A2A2A;
    }
    
    h1, h2, h3, h4, h5, h6 {
        color: #E8E8E8;
    }
    
    a {
        color: var(--primary-light);
    }
    
    a:hover {
        color: var(--primary);
    }
    
    .text-gray {
        color: #A0A0A0;
    }

    @media (max-width: 768px) {
        .nav-links {
            background: #1A1A1A;
        }
    }
}
