/* ==========================================================================
   Public CSS — Cannabis Finance Public Pages
   ========================================================================== */

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

body {
    font-family: var(--font-family);
    line-height: var(--line-height);
    color: var(--text-primary);
    background: var(--bg-body);
    min-height: 100vh;
}

/* ==========================================================================
   Header
   ========================================================================== */
.header {
    background: var(--bg-header);
    padding: 1rem 2rem;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid var(--border-color-medium);
}
.header-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.logo {
    color: var(--text-heading);
    text-decoration: none;
    font-size: 1.5rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.logo-icon { width: 32px; height: 32px; flex-shrink: 0; color: var(--color-accent); }
.nav {
    display: flex;
    gap: 2rem;
    align-items: center;
}
.nav a {
    color: var(--text-link);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}
.nav a:hover { color: var(--color-accent); }
.btn-login {
    background: linear-gradient(135deg, var(--color-accent), var(--color-accent-light));
    color: white !important;
    padding: 0.5rem 1.25rem;
    border-radius: var(--btn-radius);
}

/* ==========================================================================
   Hamburger (Mobile)
   ========================================================================== */
.hamburger-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    color: var(--text-heading);
}
.hamburger-btn svg {
    display: block;
}

/* ==========================================================================
   Theme Toggle (Public)
   ========================================================================== */
.theme-toggle {
    background: none;
    border: 1px solid var(--border-color-strong);
    border-radius: var(--btn-radius);
    cursor: pointer;
    padding: 0.4rem 0.75rem;
    line-height: 1;
    color: var(--text-heading);
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}
.theme-toggle:hover { background: var(--color-primary-lightest); }
.theme-icon { display: inline-flex; align-items: center; }
.theme-icon svg { display: block; }
.theme-label {
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.02em;
}

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
    background: var(--bg-header);
    padding: 10rem 2rem 5rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.hero-canvas {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    opacity: 0.5;
}
.hero-content {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}
.hero h1 {
    font-size: 3rem;
    color: var(--text-heading);
    margin-bottom: 1rem;
    font-weight: 700;
}
.hero p {
    font-size: 1.25rem;
    color: var(--text-link);
    margin-bottom: 2rem;
    opacity: 0.9;
}
.cta-buttons { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }
.cta-primary {
    background: linear-gradient(135deg, var(--color-accent), var(--color-accent-light));
    color: white;
    padding: 1rem 2rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
}
.cta-primary:hover { transform: translateY(-2px); box-shadow: 0 10px 20px rgba(46, 204, 113, 0.3); }
.cta-secondary {
    background: var(--bg-card);
    color: var(--text-link);
    padding: 1rem 2rem;
    border: 2px solid var(--color-primary-light);
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
}
.cta-secondary:hover { background: var(--color-primary-light); color: white; }

/* ==========================================================================
   Stats Section
   ========================================================================== */
.stats {
    background: var(--bg-card);
    padding: 4rem 2rem;
    box-shadow: var(--shadow-card);
}
.stats-grid {
    max-width: 1000px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 3rem;
    text-align: center;
}
.stat-item h3 { font-size: 2.5rem; color: var(--color-accent); margin-bottom: 0.5rem; }
.stat-item p { color: var(--text-muted); }

/* ==========================================================================
   Sections
   ========================================================================== */
.container { max-width: 1200px; margin: 0 auto; }
.section-header { text-align: center; margin-bottom: 3rem; }
.section-header h2 { font-size: 2.5rem; margin-bottom: 1rem; color: var(--text-heading); }
.section-header p {
    font-size: 1.1rem;
    color: var(--text-link);
    max-width: 600px;
    margin: 0 auto;
}

/* ==========================================================================
   Opportunities
   ========================================================================== */
.opportunities {
    padding: 5rem 2rem;
    background: var(--bg-body);
}
.opportunity-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}
.opportunity-card {
    background: var(--bg-card);
    border-radius: var(--card-radius);
    padding: 2rem;
    box-shadow: var(--shadow-card);
    border: 1px solid var(--border-color);
    transition: all 0.3s;
}
.opportunity-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-hover); }
.opportunity-icon {
    width: 60px; height: 60px;
    background: var(--bg-header);
    border-radius: var(--card-radius);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    color: var(--color-accent);
}
.opportunity-card h3 { font-size: 1.5rem; margin-bottom: 1rem; color: var(--text-heading); }
.opportunity-card p { color: var(--text-muted); margin-bottom: 1.5rem; }
.opportunity-card a {
    color: var(--color-accent);
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: gap 0.3s;
}
.opportunity-card a:hover { gap: 1rem; }

/* ==========================================================================
   Insights / Blog
   ========================================================================== */
.insights { padding: 5rem 2rem; background: var(--bg-card); }
.insight-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}
.insight-card {
    border: 1px solid var(--border-color-medium);
    border-radius: var(--card-radius);
    overflow: hidden;
    transition: all 0.3s;
    background: var(--bg-card);
}
.insight-card:hover { box-shadow: var(--shadow-hover); }
.insight-image {
    height: 200px;
    background: var(--bg-header);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-accent);
}
.insight-content { padding: 1.5rem; }
.insight-content h3 { font-size: 1.25rem; margin-bottom: 0.5rem; color: var(--text-heading); }
.insight-content p { color: var(--text-muted); font-size: var(--font-size-base); }

/* Blog page specific */
.blog-categories { background: var(--bg-card); padding: 1.5rem 2rem; box-shadow: var(--shadow-header); }
.categories-container {
    max-width: 1200px; margin: 0 auto;
    display: flex; gap: 1rem; overflow-x: auto; flex-wrap: wrap; justify-content: center;
}
.category-tag {
    padding: 0.5rem 1rem;
    background: var(--bg-body);
    border: 1px solid var(--border-color-medium);
    border-radius: 20px;
    text-decoration: none;
    color: var(--text-link);
    font-weight: 500;
    transition: all 0.3s;
    white-space: nowrap;
}
.category-tag:hover, .category-tag.active {
    background: linear-gradient(135deg, var(--color-accent), var(--color-accent-light));
    color: white;
    border-color: transparent;
}
.blog-content { padding: 3rem 2rem; max-width: 1200px; margin: 0 auto; }
.featured-post {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    background: var(--bg-card);
    border-radius: var(--card-radius);
    overflow: hidden;
    box-shadow: var(--shadow-card);
    border: 1px solid var(--border-color);
    margin-bottom: 3rem;
}
.featured-image {
    height: 400px;
    background: var(--bg-header);
    display: flex; align-items: center; justify-content: center;
    color: var(--color-accent);
}
.featured-content { padding: 3rem; }
.featured-tag {
    display: inline-block;
    background: linear-gradient(135deg, var(--color-accent), var(--color-accent-light));
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 4px;
    font-size: var(--font-size-base);
    margin-bottom: 1rem;
}
.featured-content h2 { font-size: 2rem; margin-bottom: 1rem; color: var(--text-heading); }
.featured-content h2 a { color: inherit; text-decoration: none; }
.featured-content h2 a:hover { color: var(--color-accent); }
.featured-content .blog-excerpt { color: var(--text-muted); margin-bottom: 1rem; line-height: 1.6; }

.blog-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(350px, 1fr)); gap: 2rem; }
.blog-post {
    background: var(--bg-card);
    border-radius: var(--card-radius);
    overflow: hidden;
    box-shadow: var(--shadow-card);
    border: 1px solid var(--border-color);
    transition: all 0.3s;
}
.blog-post:hover { transform: translateY(-5px); box-shadow: var(--shadow-hover); }
.blog-image {
    height: 200px;
    background: var(--bg-header);
    display: flex; align-items: center; justify-content: center;
    color: var(--color-accent);
}
.blog-content-inner { padding: 1.5rem; }
.blog-meta { display: flex; gap: 1rem; margin-bottom: 1rem; font-size: var(--font-size-base); color: var(--text-muted); }
.blog-category { color: var(--color-accent); font-weight: 600; }
.blog-post h3 { font-size: 1.25rem; margin-bottom: 0.75rem; color: var(--text-heading); }
.blog-post h3 a { color: inherit; text-decoration: none; }
.blog-post h3 a:hover { color: var(--color-accent); }
.blog-excerpt { color: var(--text-muted); margin-bottom: 1rem; line-height: 1.5; }
.read-more {
    color: var(--color-accent);
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: gap 0.3s;
}
.read-more:hover { gap: 1rem; }

/* Newsletter */
.newsletter-cta {
    background: var(--bg-header);
    padding: 4rem 2rem;
    text-align: center;
    margin: 3rem 0;
    position: relative;
    overflow: hidden;
}
.newsletter-canvas { position: absolute; top: 0; left: 0; width: 100%; height: 100%; opacity: 0.5; }
.newsletter-content { max-width: 600px; margin: 0 auto; position: relative; z-index: 1; }
.newsletter-content h2 { font-size: 2rem; margin-bottom: 1rem; color: var(--text-heading); }
.newsletter-content p { color: var(--text-link); margin-bottom: 1.5rem; }
.newsletter-form { display: flex; gap: 1rem; max-width: 500px; margin: 0 auto; }
.newsletter-form input {
    flex: 1;
    padding: 0.75rem 1rem;
    border: 1px solid var(--border-color-strong);
    border-radius: var(--btn-radius);
    font-size: 1rem;
    background: var(--bg-input);
    color: var(--text-primary);
}
.newsletter-form input:focus { outline: none; border-color: var(--color-accent); }
.newsletter-form button {
    padding: 0.75rem 1.5rem;
    background: linear-gradient(135deg, var(--color-accent), var(--color-accent-light));
    color: white;
    border: none;
    border-radius: var(--btn-radius);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}
.newsletter-form button:hover { transform: translateY(-2px); box-shadow: 0 5px 15px rgba(39, 174, 96, 0.3); }

/* ==========================================================================
   AI Technology Section
   ========================================================================== */
.ai-technology {
    padding: 5rem 2rem;
    background: var(--ai-bg);
    color: white;
    position: relative;
    overflow: hidden;
}
.ai-technology::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: radial-gradient(circle at 20% 50%, rgba(39, 174, 96, 0.15) 0%, transparent 50%),
                radial-gradient(circle at 80% 50%, rgba(46, 204, 113, 0.1) 0%, transparent 50%);
}
.ai-technology .container { position: relative; z-index: 1; }
.ai-technology .section-header h2 { color: white; }
.ai-technology .section-header p { color: rgba(255, 255, 255, 0.85); }
.ai-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
    margin-top: 3rem;
}
.ai-description h3 { font-size: 1.75rem; margin-bottom: 1rem; color: var(--ai-heading); }
.ai-description p {
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--ai-text);
    margin-bottom: 1.5rem;
}
.ai-features { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.ai-feature {
    background: var(--ai-feature-bg);
    border: 1px solid var(--ai-feature-border);
    border-radius: var(--card-radius);
    padding: 1.5rem;
    backdrop-filter: blur(10px);
    transition: all 0.3s;
}
.ai-feature:hover { background: rgba(255, 255, 255, 0.12); transform: translateY(-3px); }
.ai-feature-icon { margin-bottom: 0.75rem; color: var(--ai-heading); }
.ai-feature-icon svg { display: block; }
.ai-feature h4 { font-size: 1rem; margin-bottom: 0.5rem; color: var(--ai-heading); }
.ai-feature p { font-size: 0.85rem; color: var(--ai-feature-text); line-height: 1.5; }

/* ==========================================================================
   Contact Page
   ========================================================================== */
.contact-content {
    padding: 3rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}
.contact-form-section {
    background: var(--bg-card);
    padding: 2.5rem;
    border-radius: var(--card-radius);
    box-shadow: var(--shadow-card);
    border: 1px solid var(--border-color);
}
.contact-form-section h2 { font-size: 1.5rem; margin-bottom: 1.5rem; color: var(--text-heading); }
.form-group { margin-bottom: 1.5rem; }
.form-group label { display: block; margin-bottom: 0.5rem; font-weight: 500; color: var(--text-heading); }
.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--border-input);
    border-radius: var(--btn-radius);
    font-family: inherit;
    font-size: 1rem;
    transition: border-color 0.3s;
    background: var(--bg-input);
    color: var(--text-primary);
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus { outline: none; border-color: var(--color-accent); }
.form-group textarea { resize: vertical; min-height: 120px; }
.submit-btn {
    background: linear-gradient(135deg, var(--color-accent), var(--color-accent-light));
    color: white;
    padding: 0.75rem 2rem;
    border: none;
    border-radius: var(--btn-radius);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}
.submit-btn:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(39, 174, 96, 0.4); }
.submit-btn:disabled { opacity: 0.6; cursor: not-allowed; }
.contact-info { display: flex; flex-direction: column; gap: 1.5rem; }
.info-card {
    background: var(--bg-card);
    padding: 1.5rem;
    border-radius: var(--card-radius);
    box-shadow: var(--shadow-card);
    border: 1px solid var(--border-color);
}
.info-card h3 { font-size: 1.1rem; margin-bottom: 0.75rem; color: var(--text-heading); }
.info-card p { color: var(--text-secondary); margin-bottom: 0.25rem; font-size: 0.95rem; }
.info-card a { color: var(--text-link); text-decoration: none; }
.info-card a:hover { color: var(--color-accent); }

/* Alerts */
.alert { padding: 1rem 1.25rem; border-radius: 8px; margin-bottom: 1.5rem; }
.alert-success { background: var(--alert-success-bg); color: var(--alert-success-text); border: 1px solid var(--alert-success-border); }
.alert-error   { background: var(--alert-error-bg);   color: var(--alert-error-text);   border: 1px solid var(--alert-error-border); }

/* reCAPTCHA */
.g-recaptcha { margin-bottom: 1.5rem; }

/* ==========================================================================
   About Page
   ========================================================================== */
.section { padding: 5rem 2rem; max-width: 1200px; margin: 0 auto; }
.section-alt { background: var(--bg-body); }
.section h2 { font-size: 2rem; color: var(--text-heading); margin-bottom: 1.5rem; text-align: center; }
.section-intro { text-align: center; max-width: 800px; margin: 0 auto 3rem; font-size: 1.1rem; color: var(--text-secondary); }
.values-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 2rem; margin-top: 2rem; }
.value-card {
    background: var(--bg-card);
    padding: 2rem;
    border-radius: var(--card-radius);
    box-shadow: var(--shadow-card);
    text-align: center;
    border: 1px solid var(--border-color);
}
.value-icon { font-size: 3rem; margin-bottom: 1rem; }
.value-card h3 { font-size: 1.25rem; color: var(--text-heading); margin-bottom: 0.75rem; }
.value-card p { color: var(--text-muted); }
.story-content { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; }
.story-text h3 { font-size: 1.5rem; color: var(--text-heading); margin-bottom: 1rem; }
.story-text p { color: var(--text-secondary); margin-bottom: 1rem; }
.story-image {
    background: linear-gradient(135deg, var(--color-accent), var(--color-accent-light));
    border-radius: var(--card-radius);
    padding: 3rem;
    color: white;
    text-align: center;
}
.story-image .stat { font-size: 3rem; font-weight: 700; }
.story-image .stat-label { font-size: 1rem; opacity: 0.9; }
.about-stats-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; margin-top: 2rem; }
.services-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 1.5rem; }
.service-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.5rem;
    background: var(--bg-card);
    border-radius: 8px;
    box-shadow: var(--shadow-header);
    border: 1px solid var(--border-color);
}
.service-icon { font-size: 1.5rem; flex-shrink: 0; }
.service-item h4 { color: var(--text-heading); margin-bottom: 0.25rem; }
.service-item p { color: var(--text-muted); font-size: var(--font-size-base); }
.cta-section {
    background: var(--bg-header);
    padding: 5rem 2rem;
    text-align: center;
    color: var(--text-heading);
    position: relative;
    overflow: hidden;
}
.cta-canvas { position: absolute; top: 0; left: 0; width: 100%; height: 100%; opacity: 0.4; }
.cta-content { position: relative; z-index: 1; }
.cta-section h2 { color: var(--text-heading); margin-bottom: 1rem; }
.cta-section p { opacity: 0.85; max-width: 600px; margin: 0 auto 2rem; }
.btn {
    display: inline-block;
    padding: 0.875rem 2rem;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s;
}
.btn-primary {
    background: linear-gradient(135deg, var(--color-accent), var(--color-accent-light));
    color: white;
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(39, 174, 96, 0.4); }
.btn-outline {
    border: 2px solid var(--color-primary-light);
    color: var(--color-primary-light);
    background: var(--bg-card);
}
.btn-outline:hover { background: var(--color-primary-light); color: white; }

/* ==========================================================================
   Spinner
   ========================================================================== */
.spinner {
    display: inline-block;
    width: 16px; height: 16px;
    border: 2px solid rgba(255,255,255,0.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 0.6s linear infinite;
    vertical-align: middle;
    margin-right: 0.5rem;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ==========================================================================
   Footer
   ========================================================================== */
.footer {
    background: var(--bg-footer);
    color: var(--footer-text);
    padding: 3rem 2rem;
}
.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
}
.footer h4 { color: white; margin-bottom: 1rem; font-size: 1rem; }
.footer p { font-size: 0.9rem; margin: 0; color: var(--footer-link); }
.footer a {
    color: var(--footer-link);
    text-decoration: none;
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    transition: color 0.3s;
}
.footer a:hover { color: var(--color-accent-light); }
.footer-bottom {
    max-width: 1200px;
    margin: 2rem auto 0;
    padding-top: 2rem;
    border-top: 1px solid var(--footer-border);
    text-align: center;
    font-size: 0.9rem;
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 768px) {
    .nav { display: none; }
    .nav.mobile-open { display: flex; flex-direction: column; position: absolute; top: 100%; left: 0; right: 0; background: var(--bg-card); padding: 1rem 2rem; box-shadow: var(--shadow-card); gap: 1rem; z-index: 999; }
    .hamburger-btn { display: block; }
    .hero h1 { font-size: 2rem; }
    .hero p { font-size: 1rem; }
    .hero { padding: 8rem 2rem 3rem; }
    .opportunity-grid, .insight-cards { grid-template-columns: 1fr; }
    .ai-content { grid-template-columns: 1fr; }
    .ai-features { grid-template-columns: 1fr; }
    .contact-content { grid-template-columns: 1fr; gap: 2rem; }
    .contact-form-section { padding: 1.5rem; }
    .featured-post { grid-template-columns: 1fr; }
    .featured-image { height: 200px; }
    .featured-content { padding: 1.5rem; }
    .blog-grid { grid-template-columns: 1fr; }
    .newsletter-form { flex-direction: column; }
    .story-content { grid-template-columns: 1fr; }
    .about-stats-grid { grid-template-columns: 1fr; }
}
