/* AstroTech Insights - Main Stylesheet */

/* ==================== */
/* CSS VARIABLES */
/* ==================== */
:root {
    --primary-dark-blue: #0a1628;
    --secondary-blue: #1a2e4a;
    --accent-green: #28a745;
    --accent-green-hover: #1e7e34;
    --silver-white: #f4f6f8;
    --text-dark: #212529;
    --text-light: #6c757d;
    --border-color: #dee2e6;
    --max-width: 1200px;
}

/* ==================== */
/* GLOBAL RESET & BASE */
/* ==================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

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

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

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

/* ==================== */
/* TYPOGRAPHY */
/* ==================== */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 1rem;
}

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 2rem;
}

h3 {
    font-size: 1.5rem;
}

p {
    margin-bottom: 1rem;
    font-weight: 300;
}

/* ==================== */
/* LAYOUT UTILITIES */
/* ==================== */
.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 20px;
}

.section {
    padding: 60px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
    color: var(--primary-dark-blue);
}

.section-subtitle {
    text-align: center;
    color: var(--text-light);
    max-width: 700px;
    margin: 0 auto 3rem;
}

/* ==================== */
/* HEADER & NAVIGATION */
/* ==================== */
header {
    background-color: var(--primary-dark-blue);
    color: white;
    padding: 20px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

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

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

nav ul {
    display: flex;
    list-style: none;
    gap: 30px;
}

nav ul li a {
    color: white;
    font-weight: 300;
    padding: 5px 0;
    border-bottom: 2px solid transparent;
}

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

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
}

/* ==================== */
/* HERO SECTION */
/* ==================== */
.hero {
    background: linear-gradient(135deg, var(--primary-dark-blue), var(--secondary-blue));
    color: white;
    padding: 100px 0;
    text-align: center;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
}

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

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

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

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

/* ==================== */
/* BUTTONS */
/* ==================== */
.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 5px;
    font-weight: 400;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    font-size: 1rem;
}

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

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

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

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

/* ==================== */
/* GRID SYSTEMS */
/* ==================== */
.grid {
    display: grid;
    gap: 30px;
}

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

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

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

/* ==================== */
/* FEATURE CARDS */
/* ==================== */
.feature-card {
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

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

.feature-card h3 {
    color: var(--primary-dark-blue);
    margin-bottom: 1rem;
}

.feature-card p {
    color: var(--text-light);
    font-size: 0.95rem;
}

/* ==================== */
/* STATISTICS SECTION */
/* ==================== */
.statistics {
    background-color: var(--primary-dark-blue);
    color: white;
    text-align: center;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

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

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

/* ==================== */
/* ABOUT SECTION */
/* ==================== */
.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.about-image {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.about-text h2 {
    color: var(--primary-dark-blue);
}

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

/* ==================== */
/* CTA SECTION */
/* ==================== */
.cta {
    background: linear-gradient(135deg, var(--secondary-blue), var(--primary-dark-blue));
    color: white;
    text-align: center;
    padding: 80px 0;
}

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

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

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px 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: 25px;
}

.blog-card-content h3 {
    color: var(--primary-dark-blue);
    margin-bottom: 1rem;
}

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

.blog-card-meta {
    color: var(--text-light);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

/* ==================== */
/* BLOG ARTICLE */
/* ==================== */
.article-header {
    background: var(--primary-dark-blue);
    color: white;
    padding: 80px 0 40px;
    text-align: center;
}

.article-header h1 {
    font-size: 2.8rem;
    margin-bottom: 1rem;
}

.article-meta {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.95rem;
}

.article-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 60px 20px;
}

.article-content h2 {
    color: var(--primary-dark-blue);
    margin-top: 2.5rem;
    margin-bottom: 1rem;
}

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

.article-image {
    margin: 3rem 0;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

/* ==================== */
/* CONTACT FORM */
/* ==================== */
.contact-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
}

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

.contact-info h3 {
    color: var(--primary-dark-blue);
    margin-bottom: 2rem;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 2rem;
    gap: 15px;
}

.contact-item-icon {
    font-size: 1.5rem;
    color: var(--accent-green);
}

.contact-form {
    background: white;
    padding: 40px;
    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: 500;
    color: var(--primary-dark-blue);
}

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

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

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

.map-container {
    margin-top: 3rem;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.map-container iframe {
    width: 100%;
    height: 400px;
    border: none;
}

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

.social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    background-color: var(--accent-green);
    color: white;
    border-radius: 50%;
    font-size: 1.3rem;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.social-link:hover {
    background-color: var(--accent-green-hover);
    transform: translateY(-3px);
}

/* ==================== */
/* FAQ SECTION */
/* ==================== */
.faq-list {
    max-width: 800px;
    margin: 0 auto;
}

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

.faq-question {
    width: 100%;
    padding: 20px 25px;
    background: none;
    border: none;
    text-align: left;
    font-family: 'Poppins', sans-serif;
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--primary-dark-blue);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background-color 0.3s ease;
}

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

.faq-question::after {
    content: '+';
    font-size: 1.5rem;
    color: var(--accent-green);
    transition: transform 0.3s ease;
}

.faq-question.active::after {
    transform: rotate(45deg);
}

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

.faq-answer-content {
    padding: 0 25px 20px;
    color: var(--text-light);
}

.faq-answer.active {
    max-height: 500px;
}

/* ==================== */
/* LEGAL PAGES */
/* ==================== */
.legal-content {
    max-width: 900px;
    margin: 0 auto;
    background: white;
    padding: 50px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.legal-content h2 {
    color: var(--primary-dark-blue);
    margin-top: 2.5rem;
    margin-bottom: 1rem;
}

.legal-content h3 {
    color: var(--secondary-blue);
    margin-top: 2rem;
    margin-bottom: 0.75rem;
}

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

.legal-content ul {
    padding-left: 2rem;
}

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

/* ==================== */
/* FOOTER */
/* ==================== */
footer {
    background-color: var(--primary-dark-blue);
    color: white;
    padding: 60px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 50px;
    margin-bottom: 3rem;
}

.footer-section h3 {
    margin-bottom: 1.5rem;
}

.footer-logo {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.footer-tagline {
    font-weight: 300;
    opacity: 0.8;
    margin-bottom: 1.5rem;
}

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

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.8);
    font-weight: 300;
    transition: color 0.3s ease;
}

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

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    font-weight: 300;
}

/* ==================== */
/* COOKIE BANNER */
/* ==================== */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: var(--primary-dark-blue);
    color: white;
    padding: 20px;
    display: none;
    z-index: 2000;
    box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.3);
}

.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: 20px;
    flex-wrap: wrap;
}

.cookie-text {
    flex: 1;
    font-weight: 300;
}

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

.cookie-actions {
    display: flex;
    gap: 15px;
}

/* ==================== */
/* DISCLAIMER BANNER */
/* ==================== */
.disclaimer-banner {
    background-color: #fff3cd;
    border-left: 5px solid #ffc107;
    padding: 20px 25px;
    margin: 30px 0;
    border-radius: 5px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

.disclaimer-banner h4 {
    color: #856404;
    margin-bottom: 0.75rem;
    font-size: 1.1rem;
}

.disclaimer-banner p {
    color: #856404;
    margin-bottom: 0;
    line-height: 1.6;
    font-size: 0.95rem;
}

/* ==================== */
/* EXPERTISE GRID */
/* ==================== */
.expertise-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.expertise-item {
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: transform 0.3s ease;
}

.expertise-item:hover {
    transform: translateY(-5px);
}

.expertise-item h3 {
    color: var(--primary-dark-blue);
    margin-bottom: 1rem;
}

.expertise-item p {
    color: var(--text-light);
    font-size: 0.95rem;
}

/* ==================== */
/* RESOURCES SECTION */
/* ==================== */
.resource-item {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    margin-bottom: 2rem;
}

.resource-content {
    display: grid;
    grid-template-columns: 350px 1fr;
    gap: 0;
}

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

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

.resource-text {
    padding: 30px;
}

.resource-text h3 {
    color: var(--primary-dark-blue);
    margin-bottom: 1rem;
}

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

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

/* Tablet (768px and below) */
@media (max-width: 768px) {
    /* Typography adjustments */
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.75rem;
    }
    
    .hero h1 {
        font-size: 2.2rem;
    }
    
    .hero-tagline {
        font-size: 1.1rem;
    }
    
    /* Navigation */
    nav ul {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 70px;
        left: 0;
        right: 0;
        background-color: var(--primary-dark-blue);
        padding: 20px;
        gap: 15px;
    }
    
    nav ul.active {
        display: flex;
    }
    
    .mobile-menu-toggle {
        display: block;
    }
    
    /* Grid adjustments - 2 columns */
    .grid-3,
    .grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .expertise-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    /* Layout adjustments */
    .about-content,
    .contact-section,
    .footer-content {
        grid-template-columns: 1fr;
    }
    
    .resource-content {
        grid-template-columns: 1fr;
    }
    
    .resource-image {
        height: 200px;
    }
    
    /* Section padding */
    .section {
        padding: 40px 0;
    }
    
    .hero {
        padding: 60px 0;
    }
    
    .cta {
        padding: 50px 0;
    }
}

/* Mobile (480px and below) */
@media (max-width: 480px) {
    /* Typography */
    h1 {
        font-size: 1.75rem;
    }
    
    h2 {
        font-size: 1.5rem;
    }
    
    .hero h1 {
        font-size: 1.8rem;
    }
    
    /* Single column layout */
    .grid-2,
    .grid-3,
    .grid-4 {
        grid-template-columns: 1fr;
    }
    
    .stats-grid,
    .expertise-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
    }
    
    /* Button adjustments */
    .hero-buttons {
        flex-direction: column;
        align-items: stretch;
    }
    
    .btn {
        width: 100%;
    }
    
    /* Section padding */
    .section {
        padding: 30px 0;
    }
    
    .hero {
        padding: 40px 0;
    }
    
    .legal-content {
        padding: 30px 20px;
    }
    
    /* Cookie banner */
    .cookie-content {
        flex-direction: column;
        align-items: stretch;
    }
    
    .cookie-actions {
        flex-direction: column;
    }
}
