/* ============================================
   Event Horizon Review - Main Stylesheet
   ============================================ */

/* Import Poppins Font */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600&display=swap');

/* ============================================
   CSS Variables & Root Styles
   ============================================ */
:root {
    --color-black: #000000;
    --color-white: #ffffff;
    --color-deep-blue-grey: #2c3e50;
    --color-accent-green: #27ae60;
    --color-accent-green-dark: #1e8449;
    --color-light-grey: #ecf0f1;
    --color-medium-grey: #95a5a6;
    --font-family: 'Poppins', sans-serif;
    --font-light: 300;
    --font-regular: 400;
    --font-semibold: 600;
    --max-content-width: 700px;
    --max-container-width: 1200px;
    --line-height: 1.6;
}

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

body {
    font-family: var(--font-family);
    font-weight: var(--font-light);
    line-height: var(--line-height);
    color: var(--color-deep-blue-grey);
    background-color: var(--color-white);
    overflow-x: hidden;
}

html {
    scroll-behavior: smooth;
}

/* ============================================
   Typography
   ============================================ */
h1, h2, h3, h4, h5, h6 {
    font-weight: var(--font-semibold);
    color: var(--color-black);
    margin-bottom: 1rem;
}

h1 {
    font-size: 2.5rem;
    line-height: 1.2;
}

h2 {
    font-size: 2rem;
    line-height: 1.3;
}

h3 {
    font-size: 1.5rem;
    line-height: 1.4;
}

h4 {
    font-size: 1.25rem;
}

p {
    max-width: var(--max-content-width);
    font-weight: var(--font-regular);
    margin-bottom: 1rem;
}

a {
    color: var(--color-accent-green);
    text-decoration: none;
    transition: color 0.3s ease;
}

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

/* ============================================
   Header & Navigation
   ============================================ */
.site-header {
    background-color: var(--color-white);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 1rem 0;
}

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

.navbar-brand {
    font-size: 1.5rem;
    font-weight: var(--font-semibold);
    color: var(--color-black);
}

.navbar-brand:hover {
    color: var(--color-black);
}

.nav-link {
    color: var(--color-deep-blue-grey);
    font-weight: var(--font-regular);
    padding: 0.5rem 1rem;
    transition: color 0.3s ease;
}

.nav-link:hover,
.nav-link.active {
    color: var(--color-accent-green);
}

/* Mobile Navigation Toggle */
.navbar-toggler {
    border: none;
    background-color: var(--color-accent-green);
}

.navbar-toggler:focus {
    box-shadow: none;
}

/* ============================================
   Hero Section
   ============================================ */
.hero-section {
    position: relative;
    height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-white);
    text-align: center;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -2;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.7), rgba(44, 62, 80, 0.6));
    z-index: -1;
}

.hero-content {
    max-width: 800px;
    padding: 2rem;
    z-index: 1;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: var(--font-semibold);
    color: var(--color-white);
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.hero-subtitle {
    font-size: 1.25rem;
    font-weight: var(--font-light);
    color: var(--color-light-grey);
    margin-bottom: 2rem;
}

/* ============================================
   Buttons
   ============================================ */
.btn-primary {
    background-color: var(--color-accent-green);
    color: var(--color-white);
    border: none;
    padding: 0.75rem 2rem;
    font-size: 1rem;
    font-weight: var(--font-regular);
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
    display: inline-block;
}

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

.btn-secondary {
    background-color: transparent;
    color: var(--color-white);
    border: 2px solid var(--color-white);
    padding: 0.75rem 2rem;
    font-size: 1rem;
    font-weight: var(--font-regular);
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease, color 0.3s ease;
    display: inline-block;
}

.btn-secondary:hover {
    background-color: var(--color-white);
    color: var(--color-deep-blue-grey);
}

.btn-group {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
}

/* ============================================
   Sections
   ============================================ */
.section {
    padding: 4rem 2rem;
}

.section-light {
    background-color: var(--color-white);
}

.section-grey {
    background-color: var(--color-light-grey);
}

.section-dark {
    background-color: var(--color-deep-blue-grey);
    color: var(--color-white);
}

.section-dark h2,
.section-dark h3,
.section-dark h4 {
    color: var(--color-white);
}

.container-custom {
    max-width: var(--max-container-width);
    margin: 0 auto;
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title h2 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.section-title p {
    font-size: 1.1rem;
    color: var(--color-medium-grey);
    max-width: 100%;
}

/* ============================================
   Feature Cards
   ============================================ */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.feature-card {
    background-color: var(--color-white);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 4px 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 6px 20px rgba(0, 0, 0, 0.15);
}

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

.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.feature-card p {
    color: var(--color-medium-grey);
    max-width: 100%;
}

/* ============================================
   Statistics Section
   ============================================ */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.stat-item {
    text-align: center;
    padding: 2rem 1rem;
}

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

.stat-label {
    font-size: 1.1rem;
    color: var(--color-white);
}

/* ============================================
   Content Section with Image
   ============================================ */
.content-with-image {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.content-image img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

/* ============================================
   Call to Action
   ============================================ */
.cta-section {
    background: linear-gradient(135deg, var(--color-deep-blue-grey), #34495e);
    color: var(--color-white);
    text-align: center;
    padding: 4rem 2rem;
}

.cta-section h2 {
    color: var(--color-white);
    font-size: 2.5rem;
    margin-bottom: 2rem;
}

/* ============================================
   Blog Grid
   ============================================ */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.blog-card {
    background-color: var(--color-white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 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 6px 20px rgba(0, 0, 0, 0.15);
}

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

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

.blog-card-title {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.blog-card-title a {
    color: var(--color-black);
    transition: color 0.3s ease;
}

.blog-card-title a:hover {
    color: var(--color-accent-green);
}

.blog-card-excerpt {
    color: var(--color-medium-grey);
    margin-bottom: 1rem;
}

/* ============================================
   Blog Article Page
   ============================================ */
.article-header {
    text-align: center;
    padding: 3rem 2rem;
    background-color: var(--color-light-grey);
}

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

.article-meta {
    color: var(--color-medium-grey);
    font-size: 1rem;
}

.article-content {
    max-width: 800px;
    margin: 3rem auto;
    padding: 0 2rem;
}

.article-content img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    margin: 2rem 0;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.article-content h2 {
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.article-content h3 {
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
}

.article-content p {
    max-width: 100%;
    margin-bottom: 1.5rem;
}

/* ============================================
   Team Section
   ============================================ */
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.team-member {
    text-align: center;
    background-color: var(--color-white);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.team-member:hover {
    transform: translateY(-5px);
}

.team-member-photo {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 1rem;
    border: 3px solid var(--color-accent-green);
}

.team-member-name {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.team-member-role {
    color: var(--color-accent-green);
    font-weight: var(--font-regular);
    margin-bottom: 1rem;
}

.team-member-bio {
    color: var(--color-medium-grey);
    font-size: 0.95rem;
}

/* ============================================
   Timeline
   ============================================ */
.timeline {
    position: relative;
    max-width: 800px;
    margin: 3rem auto;
    padding: 0 2rem;
}

.timeline::after {
    content: '';
    position: absolute;
    width: 3px;
    background-color: var(--color-accent-green);
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -1.5px;
}

.timeline-item {
    padding: 1rem 2rem;
    position: relative;
    background-color: inherit;
    width: 50%;
}

.timeline-item::after {
    content: '';
    position: absolute;
    width: 15px;
    height: 15px;
    right: -8px;
    background-color: var(--color-accent-green);
    border: 3px solid var(--color-white);
    top: 1.5rem;
    border-radius: 50%;
    z-index: 1;
}

.timeline-item-left {
    left: 0;
}

.timeline-item-right {
    left: 50%;
}

.timeline-item-right::after {
    left: -8px;
}

.timeline-content {
    padding: 1.5rem;
    background-color: var(--color-white);
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.timeline-year {
    font-size: 1.5rem;
    font-weight: var(--font-semibold);
    color: var(--color-accent-green);
    margin-bottom: 0.5rem;
}

/* ============================================
   Contact Form
   ============================================ */
.contact-section {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
}

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

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

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: var(--font-regular);
    color: var(--color-deep-blue-grey);
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--color-medium-grey);
    border-radius: 5px;
    font-family: var(--font-family);
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

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

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

.contact-info {
    background-color: var(--color-deep-blue-grey);
    color: var(--color-white);
    padding: 2rem;
    border-radius: 10px;
}

.contact-info h3 {
    color: var(--color-white);
    margin-bottom: 1.5rem;
}

.contact-info-item {
    margin-bottom: 1.5rem;
}

.contact-info-item i {
    color: var(--color-accent-green);
    margin-right: 0.5rem;
    font-size: 1.2rem;
}

.contact-info-item p {
    margin-bottom: 0.25rem;
    max-width: 100%;
}

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

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

/* ============================================
   FAQ Section
   ============================================ */
.faq-list {
    max-width: 900px;
    margin: 2rem auto;
}

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

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

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

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

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

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

.faq-answer.active {
    padding: 0 1.5rem 1.5rem;
    max-height: 500px;
}

.faq-answer p {
    color: var(--color-medium-grey);
    max-width: 100%;
}

/* ============================================
   Footer
   ============================================ */
.site-footer {
    background-color: var(--color-deep-blue-grey);
    color: var(--color-white);
    padding: 3rem 2rem 1.5rem;
}

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

.footer-section h3 {
    color: var(--color-white);
    margin-bottom: 1rem;
}

.footer-section p,
.footer-section ul {
    color: var(--color-light-grey);
    max-width: 100%;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section ul li a {
    color: var(--color-light-grey);
    transition: color 0.3s ease;
}

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

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

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

.social-links a {
    color: var(--color-light-grey);
    font-size: 1.5rem;
    transition: color 0.3s ease;
}

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

/* ============================================
   Cookie Consent Banner
   ============================================ */
.cookie-consent {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: var(--color-deep-blue-grey);
    color: var(--color-white);
    padding: 1.5rem 2rem;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.2);
    z-index: 9999;
    display: none;
}

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

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

.cookie-consent p {
    margin: 0;
    flex: 1;
    max-width: 100%;
}

.cookie-consent a {
    color: var(--color-accent-green);
}

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

/* ============================================
   Legal Pages
   ============================================ */
.legal-content {
    max-width: 900px;
    margin: 3rem auto;
    padding: 0 2rem;
}

.legal-content h2 {
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.legal-content p,
.legal-content ul {
    max-width: 100%;
    margin-bottom: 1.5rem;
}

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

/* ============================================
   Responsive Design - Tablet
   ============================================ */
@media (max-width: 992px) {
    h1 {
        font-size: 2rem;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .content-with-image {
        grid-template-columns: 1fr;
    }

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

    .timeline::after {
        left: 31px;
    }

    .timeline-item {
        width: 100%;
        padding-left: 70px;
        padding-right: 25px;
    }

    .timeline-item::after {
        left: 23px;
    }

    .timeline-item-right {
        left: 0%;
    }

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

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

/* ============================================
   Responsive Design - Mobile
   ============================================ */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .section {
        padding: 3rem 1rem;
    }

    .section-title h2 {
        font-size: 1.75rem;
    }

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

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

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

    .btn-group {
        flex-direction: column;
        align-items: center;
    }

    .cookie-consent-content {
        flex-direction: column;
        text-align: center;
    }

    .cookie-consent-buttons {
        width: 100%;
        justify-content: center;
    }

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

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

/* ============================================
   Utility Classes
   ============================================ */
.text-center {
    text-align: center;
}

.text-left {
    text-align: left;
}

.text-right {
    text-align: right;
}

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }

.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }

.hidden {
    display: none;
}
