/* AstroTech Insights - Main Stylesheet */

/* ============================================
   GLOBAL STYLES & RESET
   ============================================ */

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

:root {
    --primary-dark: #1a2332;
    --primary-light: #f5f7fa;
    --accent-green: #28a745;
    --accent-green-hover: #1e7e34;
    --disclaimer-bg: #8B1A1A;
    --text-dark: #333;
    --text-light: #666;
    --border-color: #ddd;
    --max-width: 1200px;
}

body {
    font-family: 'Poppins', sans-serif;
    font-weight: 400;
    line-height: 1.6;
    color: var(--text-dark);
    background: var(--primary-light);
}

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

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

ul {
    list-style: none;
}

/* ============================================
   DISCLAIMER BANNER (STICKY AT TOP)
   ============================================ */

.disclaimer-banner {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: var(--disclaimer-bg);
    color: white;
    padding: 12px 20px;
    text-align: center;
    font-size: 13px;
    line-height: 1.5;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.disclaimer-banner strong {
    font-weight: 600;
}

/* ============================================
   HEADER & NAVIGATION
   ============================================ */

header {
    background: var(--primary-dark);
    color: white;
    position: sticky;
    top: 0;
    z-index: 999;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.navbar {
    max-width: var(--max-width);
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
}

.logo {
    font-size: 1.5rem;
    font-weight: 600;
    color: white;
}

.nav-menu {
    display: flex;
    gap: 2rem;
}

.nav-menu a {
    color: white;
    font-weight: 300;
    padding: 0.5rem 0;
    border-bottom: 2px solid transparent;
}

.nav-menu a:hover,
.nav-menu a.active {
    border-bottom-color: var(--accent-green);
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 4px;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: white;
    transition: all 0.3s ease;
}

/* ============================================
   HERO SECTION
   ============================================ */

.hero {
    background: linear-gradient(135deg, var(--primary-dark) 0%, #2d3e50 100%);
    color: white;
    padding: 4rem 2rem;
    text-align: center;
}

.hero-content {
    max-width: var(--max-width);
    margin: 0 auto;
}

.hero h1 {
    font-size: 3rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.hero p {
    font-size: 1.3rem;
    font-weight: 300;
    margin-bottom: 2rem;
}

.hero-image {
    max-width: 800px;
    margin: 2rem auto;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    padding: 0.8rem 2rem;
    border-radius: 5px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    display: inline-block;
}

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

.btn-primary:hover {
    background: var(--accent-green-hover);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(40, 167, 69, 0.3);
}

.btn-secondary {
    background: transparent;
    color: white;
    border: 2px solid white;
}

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

/* ============================================
   CONTAINER & SECTIONS
   ============================================ */

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 4rem 2rem;
}

.section {
    margin-bottom: 4rem;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 600;
    text-align: center;
    margin-bottom: 3rem;
    color: var(--primary-dark);
}

.section-subtitle {
    font-size: 1.2rem;
    font-weight: 300;
    text-align: center;
    color: var(--text-light);
    margin-bottom: 3rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* ============================================
   GRID LAYOUTS
   ============================================ */

.grid {
    display: grid;
    gap: 2rem;
}

.grid-1 {
    grid-template-columns: 1fr;
}

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

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

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

/* ============================================
   CARDS
   ============================================ */

.card {
    background: white;
    border-radius: 10px;
    padding: 2rem;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

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

.card-image {
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 1.5rem;
    height: 200px;
}

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

.card h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--primary-dark);
}

.card p {
    color: var(--text-light);
    margin-bottom: 1rem;
}

.card-icon {
    font-size: 3rem;
    color: var(--accent-green);
    margin-bottom: 1rem;
}

/* ============================================
   STATISTICS SECTION
   ============================================ */

.stats {
    background: var(--primary-dark);
    color: white;
    padding: 4rem 2rem;
    text-align: center;
}

.stats-grid {
    max-width: var(--max-width);
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

.stat-item h3 {
    font-size: 3rem;
    font-weight: 600;
    color: var(--accent-green);
    margin-bottom: 0.5rem;
}

.stat-item p {
    font-size: 1.1rem;
    font-weight: 300;
}

/* ============================================
   CALL TO ACTION
   ============================================ */

.cta {
    background: linear-gradient(135deg, var(--accent-green) 0%, #20833a 100%);
    color: white;
    padding: 4rem 2rem;
    text-align: center;
}

.cta h2 {
    font-size: 2.5rem;
    font-weight: 600;
    margin-bottom: 2rem;
}

.cta .btn {
    background: white;
    color: var(--accent-green);
    font-size: 1.1rem;
}

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

/* ============================================
   BLOG PREVIEW CARDS
   ============================================ */

.blog-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.blog-card-image {
    height: 250px;
    overflow: hidden;
}

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

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

.blog-card-content {
    padding: 2rem;
}

.blog-card-content h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--primary-dark);
}

.blog-card-content p {
    color: var(--text-light);
    margin-bottom: 1.5rem;
}

.read-more {
    color: var(--accent-green);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.read-more:hover {
    color: var(--accent-green-hover);
}

/* ============================================
   BLOG ARTICLE PAGE
   ============================================ */

.article-header {
    background: var(--primary-dark);
    color: white;
    padding: 4rem 2rem 2rem;
    text-align: center;
}

.article-title {
    font-size: 2.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.article-subtitle {
    font-size: 1.3rem;
    font-weight: 300;
    color: rgba(255,255,255,0.9);
}

.article-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 3rem 2rem;
    background: white;
    line-height: 1.8;
}

.article-content h2 {
    font-size: 2rem;
    font-weight: 600;
    margin-top: 2rem;
    margin-bottom: 1rem;
    color: var(--primary-dark);
}

.article-content h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-top: 1.5rem;
    margin-bottom: 1rem;
    color: var(--primary-dark);
}

.article-content p {
    margin-bottom: 1.5rem;
    color: var(--text-dark);
}

.article-image {
    margin: 2rem 0;
    border-radius: 10px;
    overflow: hidden;
}

.article-links {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 2px solid var(--border-color);
}

.article-links h4 {
    margin-bottom: 1rem;
}

.article-links a {
    color: var(--accent-green);
    font-weight: 600;
}

.article-links a:hover {
    color: var(--accent-green-hover);
    text-decoration: underline;
}

/* ============================================
   CONTACT FORM
   ============================================ */

.contact-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

.contact-form {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--primary-dark);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
}

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

.contact-info {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.contact-info h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--primary-dark);
}

.contact-item {
    margin-bottom: 1.5rem;
    display: flex;
    align-items: start;
    gap: 1rem;
}

.contact-item i {
    color: var(--accent-green);
    font-size: 1.5rem;
    margin-top: 0.2rem;
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

.social-links a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--accent-green);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.social-links a:hover {
    background: var(--accent-green-hover);
}

.map-container {
    margin-top: 2rem;
    border-radius: 10px;
    overflow: hidden;
    height: 300px;
}

/* ============================================
   FAQ SECTION
   ============================================ */

.faq-item {
    background: white;
    border-radius: 10px;
    margin-bottom: 1rem;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    overflow: hidden;
}

.faq-question {
    padding: 1.5rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
    color: var(--primary-dark);
    transition: background 0.3s ease;
}

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

.faq-question i {
    color: var(--accent-green);
    transition: transform 0.3s ease;
}

.faq-question.active i {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.faq-answer-content {
    padding: 0 1.5rem 1.5rem;
    color: var(--text-light);
}

/* ============================================
   LEGAL PAGES (PRIVACY, TERMS)
   ============================================ */

.legal-content {
    max-width: 900px;
    margin: 0 auto;
    background: white;
    padding: 3rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.legal-content h2 {
    font-size: 2rem;
    font-weight: 600;
    margin-top: 2rem;
    margin-bottom: 1rem;
    color: var(--primary-dark);
}

.legal-content h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-top: 1.5rem;
    margin-bottom: 0.8rem;
    color: var(--primary-dark);
}

.legal-content p {
    margin-bottom: 1rem;
    line-height: 1.8;
}

.legal-content ul {
    list-style: disc;
    margin-left: 2rem;
    margin-bottom: 1rem;
}

.legal-content ul li {
    margin-bottom: 0.5rem;
}

/* ============================================
   FOOTER
   ============================================ */

footer {
    background: var(--primary-dark);
    color: white;
    padding: 3rem 2rem 1rem;
}

.footer-content {
    max-width: var(--max-width);
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
    margin-bottom: 2rem;
}

.footer-section h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.footer-section p,
.footer-section a {
    color: rgba(255,255,255,0.8);
    font-weight: 300;
    line-height: 1.8;
}

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

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.footer-bottom {
    max-width: var(--max-width);
    margin: 0 auto;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.1);
    text-align: center;
    color: rgba(255,255,255,0.6);
    font-weight: 300;
}

/* ============================================
   COOKIE BANNER
   ============================================ */

.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--primary-dark);
    color: white;
    padding: 1.5rem;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.2);
    z-index: 1001;
    display: none;
}

.cookie-banner.show {
    display: block;
}

.cookie-content {
    max-width: var(--max-width);
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
}

.cookie-content p {
    flex: 1;
    font-size: 0.95rem;
}

.cookie-content a {
    color: var(--accent-green);
    text-decoration: underline;
}

.cookie-buttons {
    display: flex;
    gap: 1rem;
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

/* Tablet (2 columns) */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2rem;
    }
    
    .hero p {
        font-size: 1.1rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .grid-3,
    .grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-content {
        grid-template-columns: 1fr;
    }
    
    .contact-section {
        grid-template-columns: 1fr;
    }
    
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background: var(--primary-dark);
        width: 100%;
        padding: 2rem;
        transition: left 0.3s ease;
        gap: 0;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .nav-menu a {
        padding: 1rem 0;
        border-bottom: 1px solid rgba(255,255,255,0.1);
    }
    
    .hamburger {
        display: flex;
    }
    
    .cookie-content {
        flex-direction: column;
        text-align: center;
    }
}

/* Mobile (1 column) */
@media (max-width: 480px) {
    .hero h1 {
        font-size: 1.8rem;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .grid-2,
    .grid-3,
    .grid-4 {
        grid-template-columns: 1fr;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .stat-item h3 {
        font-size: 2.5rem;
    }
    
    .navbar {
        padding: 1rem;
    }
    
    .container {
        padding: 2rem 1rem;
    }
    
    .disclaimer-banner {
        font-size: 12px;
        padding: 10px 15px;
    }
    
    .hero-buttons {
        flex-direction: column;
    }
    
    .btn {
        width: 100%;
        text-align: center;
    }
}
