/* Maple Solar - Main Stylesheet */
/* The Light that Powers the North */

/* =========================
   Google Fonts Import
========================= */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;500;600;700&family=Lato:wght@300;400;700&display=swap');

/* =========================
   CSS Variables
========================= */
:root {
    --color-golden: #FFD166;
    --color-sand: #FAF3DD;
    --color-sky-blue: #A3CEF1;
    --color-white: #FFFFFF;
    --color-silver: #D9E2EC;
    --color-dark: #2C3E50;
    --color-text: #34495E;
    
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Lato', sans-serif;
    
    --transition-smooth: all 0.4s ease;
    --shadow-soft: 0 5px 20px rgba(0, 0, 0, 0.08);
    --shadow-hover: 0 10px 30px rgba(0, 0, 0, 0.15);
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    line-height: 1.6;
    color: var(--color-text);
    background-color: var(--color-sand);
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 1rem;
    color: var(--color-dark);
}

h1 { font-size: 3rem; }
h2 { font-size: 2.5rem; }
h3 { font-size: 2rem; }
h4 { font-size: 1.5rem; }

p {
    max-width: 700px;
    margin: 0 auto 1.5rem;
    line-height: 1.6;
    font-weight: 300;
    letter-spacing: 0.3px;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-smooth);
}

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

/* =========================
   Container & Layout
========================= */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 3px;
    background: linear-gradient(to right, var(--color-golden), var(--color-sky-blue));
    margin: 20px auto 0;
    border-radius: 2px;
}

/* =========================
   Header & Navigation
========================= */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.05);
    transition: var(--transition-smooth);
}

.header.scrolled {
    box-shadow: var(--shadow-soft);
    background-color: rgba(255, 255, 255, 0.98);
}

.nav-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--color-dark);
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-icon {
    font-size: 2rem;
    color: var(--color-golden);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 40px;
    align-items: center;
}

.nav-menu a {
    font-weight: 400;
    color: var(--color-text);
    position: relative;
    padding: 5px 0;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--color-golden);
    transition: width 0.3s ease;
}

.nav-menu a:hover::after,
.nav-menu a.active::after {
    width: 100%;
}

.nav-menu a:hover,
.nav-menu a.active {
    color: var(--color-dark);
}

.mobile-toggle {
    display: none;
    font-size: 1.8rem;
    background: none;
    border: none;
    color: var(--color-dark);
    cursor: pointer;
}

/* =========================
   Hero Section
========================= */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    padding-top: 80px;
}

.hero-video {
    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(255, 209, 102, 0.3), rgba(163, 206, 241, 0.4));
    z-index: -1;
}

.hero-content {
    position: relative;
    z-index: 1;
    color: var(--color-white);
    text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.3);
    animation: fadeInUp 1s ease-out;
}

.hero-content h1 {
    font-size: 4rem;
    font-weight: 700;
    color: var(--color-white);
    margin-bottom: 20px;
    letter-spacing: 1px;
}

.hero-content p {
    font-size: 1.5rem;
    margin-bottom: 40px;
    max-width: 600px;
    font-weight: 300;
}

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

/* =========================
   Buttons
========================= */
.btn {
    display: inline-block;
    padding: 15px 40px;
    border-radius: 50px;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: var(--transition-smooth);
    cursor: pointer;
    border: 2px solid transparent;
    font-size: 0.95rem;
}

.btn-primary {
    background-color: var(--color-golden);
    color: var(--color-dark);
    border-color: var(--color-golden);
}

.btn-primary:hover {
    background-color: transparent;
    color: var(--color-white);
    border-color: var(--color-white);
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(255, 209, 102, 0.4);
}

.btn-outline {
    background-color: transparent;
    color: var(--color-white);
    border-color: var(--color-white);
}

.btn-outline:hover {
    background-color: var(--color-white);
    color: var(--color-dark);
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(255, 255, 255, 0.3);
}

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

.btn-dark:hover {
    background-color: var(--color-golden);
    border-color: var(--color-golden);
    color: var(--color-dark);
    transform: translateY(-3px);
}

/* =========================
   Cards & Grid
========================= */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.card {
    background: var(--color-white);
    border-radius: 12px;
    padding: 40px 30px;
    text-align: center;
    box-shadow: var(--shadow-soft);
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(to right, var(--color-golden), var(--color-sky-blue));
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

.card:hover::before {
    transform: scaleX(1);
}

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

.card-icon {
    font-size: 3rem;
    color: var(--color-golden);
    margin-bottom: 20px;
}

.card h3 {
    margin-bottom: 15px;
    font-size: 1.5rem;
}

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

/* =========================
   Stats Section
========================= */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-top: 50px;
}

.stat-item {
    text-align: center;
    padding: 30px;
    background: var(--color-white);
    border-radius: 12px;
    box-shadow: var(--shadow-soft);
    transition: var(--transition-smooth);
}

.stat-item:hover {
    transform: scale(1.05);
    box-shadow: var(--shadow-hover);
}

.stat-number {
    font-size: 3rem;
    font-weight: 700;
    color: var(--color-golden);
    font-family: var(--font-heading);
    margin-bottom: 10px;
}

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

/* =========================
   Image Block
========================= */
.image-block {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
    margin: 50px 0;
}

.image-block img {
    border-radius: 12px;
    box-shadow: var(--shadow-soft);
    width: 100%;
    height: 400px;
    object-fit: cover;
}

.image-block-content h3 {
    margin-bottom: 20px;
}

.image-block-content p {
    margin-left: 0;
}

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

.blog-card {
    background: var(--color-white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    transition: var(--transition-smooth);
}

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

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

.blog-card-content {
    padding: 30px;
}

.blog-card-content h3 {
    margin-bottom: 15px;
    font-size: 1.4rem;
}

.blog-card-content p {
    margin: 0 0 20px 0;
    font-size: 0.95rem;
}

.blog-meta {
    font-size: 0.85rem;
    color: var(--color-silver);
    margin-bottom: 15px;
}

/* =========================
   Forms
========================= */
.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 400;
    color: var(--color-dark);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 15px;
    border: 2px solid var(--color-silver);
    border-radius: 8px;
    font-family: var(--font-body);
    font-size: 1rem;
    transition: var(--transition-smooth);
    background-color: var(--color-white);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--color-golden);
    box-shadow: 0 0 0 3px rgba(255, 209, 102, 0.1);
}

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

/* =========================
   Footer
========================= */
.footer {
    background-color: var(--color-dark);
    color: var(--color-white);
    padding: 60px 0 30px;
    margin-top: 80px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h3 {
    color: var(--color-golden);
    margin-bottom: 20px;
}

.footer-section p,
.footer-section a {
    color: var(--color-silver);
    font-size: 0.95rem;
    margin-bottom: 10px;
}

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

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

.footer-links li {
    margin-bottom: 10px;
}

.footer-bottom {
    border-top: 1px solid rgba(217, 226, 236, 0.2);
    padding-top: 30px;
    text-align: center;
    color: var(--color-silver);
    font-size: 0.9rem;
}

/* =========================
   Cookie Banner
========================= */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: rgba(44, 62, 80, 0.98);
    color: var(--color-white);
    padding: 20px;
    z-index: 10000;
    display: none;
    animation: slideUp 0.5s ease;
}

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

.cookie-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.cookie-banner p {
    margin: 0;
    font-size: 0.95rem;
}

.cookie-banner a {
    color: var(--color-golden);
    text-decoration: underline;
}

.cookie-banner .btn {
    padding: 10px 30px;
    font-size: 0.9rem;
}

/* =========================
   Animations
========================= */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideUp {
    from {
        transform: translateY(100%);
    }
    to {
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeInUp 0.8s ease-out;
}

/* Light ray animation */
.light-ray {
    position: absolute;
    width: 2px;
    height: 100px;
    background: linear-gradient(to bottom, transparent, var(--color-golden), transparent);
    opacity: 0.3;
    animation: lightRay 3s infinite;
}

@keyframes lightRay {
    0% {
        transform: translateY(-100px) rotate(45deg);
        opacity: 0;
    }
    50% {
        opacity: 0.6;
    }
    100% {
        transform: translateY(100vh) rotate(45deg);
        opacity: 0;
    }
}

/* =========================
   Responsive Design
========================= */

/* Tablet (768px - 1024px) */
@media (max-width: 1024px) {
    h1 { font-size: 2.5rem; }
    h2 { font-size: 2rem; }
    h3 { font-size: 1.6rem; }
    
    .hero-content h1 {
        font-size: 3rem;
    }
    
    .image-block {
        grid-template-columns: 1fr;
    }
    
    .cards-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Mobile (max 768px) */
@media (max-width: 768px) {
    .mobile-toggle {
        display: block;
    }
    
    .nav-menu {
        position: fixed;
        top: 80px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 80px);
        background-color: var(--color-white);
        flex-direction: column;
        justify-content: flex-start;
        padding: 40px 20px;
        gap: 20px;
        transition: left 0.4s ease;
        box-shadow: var(--shadow-soft);
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .hero-content h1 {
        font-size: 2.2rem;
    }
    
    .hero-content p {
        font-size: 1.1rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .btn {
        width: 100%;
        max-width: 300px;
    }
    
    .cards-grid,
    .blog-grid,
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .section {
        padding: 50px 0;
    }
    
    .image-block {
        gap: 30px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .cookie-content {
        flex-direction: column;
        text-align: center;
    }
    
    h1 { font-size: 2rem; }
    h2 { font-size: 1.8rem; }
    h3 { font-size: 1.4rem; }
}

/* Small mobile (max 480px) */
@media (max-width: 480px) {
    .hero-content h1 {
        font-size: 1.8rem;
    }
    
    .logo {
        font-size: 1.4rem;
    }
    
    .card {
        padding: 30px 20px;
    }
}
