/**
 * Helikopterpiloten.se - Front Page Styles
 * Only loaded on the static front page (Startsida).
 * Aviation "Sky & Freedom" design with hero, roadmap, pillar cards,
 * featured guides, stats, latest articles, about, and CTA sections.
 */

/* ==========================================================================
   Front Page Body Override
   ========================================================================== */

body.front-page {
    padding-top: 0; /* Hero is full viewport, header overlays it */
}

/* ==========================================================================
   Keyframe Animations
   ========================================================================== */

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

@keyframes bounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(8px); }
}

@keyframes twinkle {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 0.8; }
}

@keyframes pulse-glow {
    0%, 100% { box-shadow: 0 0 20px rgba(255, 255, 255, 0.2); }
    50% { box-shadow: 0 0 40px rgba(255, 255, 255, 0.4); }
}

/* ==========================================================================
   Hero Section
   ========================================================================== */

.hero-section {
    min-height: 100vh;
    min-height: 100svh;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #4A90D9 0%, #87CEEB 35%, #B8D8F0 60%, #E8F4FD 100%);
    color: #fff;
}

/* Hero Content - Frosted glass card */
.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    max-width: 700px;
    padding: 3rem;
}

.hero-eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.15em;
    font-size: 0.875rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 1rem;
}

.hero-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
    line-height: 1.1;
    color: #fff;
    margin-bottom: 1rem;
}

.hero-subtitle {
    font-size: clamp(1.1rem, 2vw, 1.35rem);
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.9);
    max-width: 540px;
    margin: 0 auto 2rem;
}

.hero-cta {
    display: inline-block;
    background: #F5A623;
    color: #1B3A5C;
    padding: 1rem 2.5rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1.1rem;
    font-family: 'DM Sans', sans-serif;
    text-decoration: none;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hero-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(245, 166, 35, 0.4);
    color: #1B3A5C;
}

.hero-cta:active {
    transform: translateY(0);
}

/* Hero Helicopter */
.hero-helicopter {
    position: absolute;
    z-index: 1;
    width: clamp(100px, 15vw, 180px);
    opacity: 0.25;
    animation: float 6s ease-in-out infinite;
    right: 10%;
    top: 20%;
}

@media (max-width: 768px) {
    .hero-helicopter {
        display: none;
    }
}

/* Cloud Wrapper */
.hero-clouds {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
}

/* Cloud Layers */
.cloud-layer {
    position: absolute;
    left: 0;
    right: 0;
    width: 100%;
    pointer-events: none;
    display: block;
}

.cloud-layer--1 {
    bottom: 35%;
    height: 30%;
    opacity: 0.4;
    z-index: 0;
}

.cloud-layer--2 {
    bottom: 15%;
    height: 35%;
    opacity: 0.6;
    z-index: 0;
}

.cloud-layer--3 {
    bottom: 0;
    height: 45%;
    opacity: 1;
    z-index: 1;
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    animation: bounce 2s ease-in-out infinite;
    opacity: 0.7;
    z-index: 2;
    color: #fff;
}

/* ==========================================================================
   Section Titles (shared pattern)
   ========================================================================== */

.section-title {
    font-family: 'DM Sans', sans-serif;
    font-weight: 700;
    font-size: clamp(1.75rem, 3vw, 2.5rem);
    color: #2D3748;
    text-align: center;
    margin-bottom: 1rem;
}

.section-subtitle {
    text-align: center;
    color: #5A6B7F;
    font-size: 1.1rem;
    line-height: 1.6;
    max-width: 640px;
    margin: 0 auto 3rem;
}

/* ==========================================================================
   Roadmap Section
   ========================================================================== */

.roadmap-section {
    padding: 6rem 1.5rem;
    background: #fff;
    position: relative;
}

.roadmap-timeline {
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    padding-left: 0;
}

/* Vertical line */
.roadmap-line {
    position: absolute;
    left: 50%;
    width: 3px;
    background: linear-gradient(to bottom, #4A90D9, #87CEEB);
    top: 0;
    bottom: 0;
    transform-origin: top;
}

/* Step */
.roadmap-step {
    position: relative;
    display: flex;
    align-items: flex-start;
    margin-bottom: 3rem;
}

.roadmap-step:nth-child(odd) {
    flex-direction: row;
}

.roadmap-step:nth-child(even) {
    flex-direction: row-reverse;
}

/* Step number */
.roadmap-number {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: #4A90D9;
    color: #fff;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    left: calc(50% - 24px);
    z-index: 2;
    font-family: 'DM Sans', sans-serif;
    flex-shrink: 0;
}

/* Roadmap card */
.roadmap-card {
    background: #fff;
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08),
                0 4px 12px rgba(0, 0, 0, 0.04);
    width: calc(50% - 60px);
}

.roadmap-card h3 {
    font-family: 'DM Sans', sans-serif;
    font-weight: 700;
    font-size: 1.15rem;
    color: #2D3748;
    margin-bottom: 0.5rem;
}

.roadmap-card p {
    color: #5A6B7F;
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0;
}

/* Roadmap mobile */
@media (max-width: 768px) {
    .roadmap-line {
        left: 24px;
    }

    .roadmap-step,
    .roadmap-step:nth-child(odd),
    .roadmap-step:nth-child(even) {
        flex-direction: row;
        padding-left: 60px;
    }

    .roadmap-number {
        left: 0;
    }

    .roadmap-card {
        width: 100%;
    }
}

/* ==========================================================================
   Pillar Cards Section
   ========================================================================== */

.pillar-cards-section {
    padding: 6rem 1.5rem;
    background: #F7F9FC;
}

.pillar-cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    max-width: 1100px;
    margin: 0 auto;
    gap: 2rem;
}

@media (max-width: 1024px) {
    .pillar-cards-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .pillar-cards-grid {
        grid-template-columns: 1fr;
    }
}

/* Pillar Card */
.pillar-card {
    background: #fff;
    border-radius: 16px;
    padding: 2rem;
    border-top: 4px solid #4A90D9;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08),
                0 4px 12px rgba(0, 0, 0, 0.04);
    cursor: pointer;
    text-decoration: none;
    display: block;
}

.pillar-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12),
                0 4px 12px rgba(0, 0, 0, 0.06);
}

/* Per-card border-top colors */
.pillar-card:nth-child(1) { border-top-color: #4A90D9; }
.pillar-card:nth-child(2) { border-top-color: #F5A623; }
.pillar-card:nth-child(3) { border-top-color: #E8734A; }
.pillar-card:nth-child(4) { border-top-color: #87CEEB; }
.pillar-card:nth-child(5) { border-top-color: #2C5F8A; }

.pillar-card__icon {
    width: 48px;
    height: 48px;
    margin-bottom: 1rem;
}

.pillar-card:nth-child(1) .pillar-card__icon { color: #4A90D9; }
.pillar-card:nth-child(2) .pillar-card__icon { color: #F5A623; }
.pillar-card:nth-child(3) .pillar-card__icon { color: #E8734A; }
.pillar-card:nth-child(4) .pillar-card__icon { color: #87CEEB; }
.pillar-card:nth-child(5) .pillar-card__icon { color: #2C5F8A; }

.pillar-card__title {
    font-family: 'DM Sans', sans-serif;
    font-weight: 700;
    font-size: 1.25rem;
    color: #2D3748;
    margin-bottom: 0.5rem;
}

.pillar-card__desc {
    color: #5A6B7F;
    font-size: 0.95rem;
    line-height: 1.6;
}

.pillar-card__link {
    color: #2C5F8A;
    font-weight: 600;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    margin-top: 1rem;
    text-decoration: none;
}

.pillar-card__link:hover {
    color: #2C5F8A;
}

/* ==========================================================================
   Featured Guides Section
   ========================================================================== */

.featured-guides-section {
    padding: 6rem 1.5rem;
    background: #fff;
}

.featured-guides-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    max-width: 1100px;
    margin: 0 auto;
    gap: 2rem;
}

@media (max-width: 1024px) {
    .featured-guides-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .featured-guides-grid {
        grid-template-columns: 1fr;
    }
}

/* Featured Card */
.featured-card {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08),
                0 4px 12px rgba(0, 0, 0, 0.04);
    text-decoration: none;
    display: block;
}

.featured-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12),
                0 4px 12px rgba(0, 0, 0, 0.06);
}

.featured-card__image {
    height: 200px;
    overflow: hidden;
    background: linear-gradient(135deg, #4A90D9, #87CEEB);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.4s ease;
}

.featured-card:hover .featured-card__image {
    transform: scale(1.05);
}

/* Unique gradients per card */
.featured-card:nth-child(1) .featured-card__image {
    background: linear-gradient(135deg, #4A90D9, #87CEEB);
}

.featured-card:nth-child(2) .featured-card__image {
    background: linear-gradient(135deg, #F5A623, #E8734A);
}

.featured-card:nth-child(3) .featured-card__image {
    background: linear-gradient(135deg, #2C5F8A, #4A90D9);
}

.featured-card__image-inner {
    overflow: hidden;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.featured-card__content {
    padding: 1.5rem;
}

.featured-card__content h3 {
    font-family: 'DM Sans', sans-serif;
    font-weight: 700;
    font-size: 1.15rem;
    color: #2D3748;
    margin-bottom: 0.5rem;
}

.featured-card__content p {
    color: #5A6B7F;
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0;
}

/* ==========================================================================
   Stats Section
   ========================================================================== */

.stats-section {
    padding: 6rem 1.5rem;
    background: linear-gradient(180deg, #1B3A5C 0%, #2C5F8A 100%);
    color: #fff;
    position: relative;
    overflow: hidden;
}

/* Stars background effect */
.stats-stars {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.stats-stars::before,
.stats-stars::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    background: #fff;
}

.stats-stars::before {
    width: 2px;
    height: 2px;
    top: 15%;
    left: 20%;
    box-shadow:
        40px 80px 0 0 rgba(255, 255, 255, 0.4),
        120px 30px 0 0 rgba(255, 255, 255, 0.3),
        200px 90px 0 0 rgba(255, 255, 255, 0.5),
        300px 20px 0 0 rgba(255, 255, 255, 0.3),
        400px 70px 0 0 rgba(255, 255, 255, 0.4),
        500px 40px 0 0 rgba(255, 255, 255, 0.3),
        600px 85px 0 0 rgba(255, 255, 255, 0.5),
        700px 15px 0 0 rgba(255, 255, 255, 0.4),
        800px 60px 0 0 rgba(255, 255, 255, 0.3),
        900px 35px 0 0 rgba(255, 255, 255, 0.5);
    animation: twinkle 4s ease-in-out infinite;
}

.stats-stars::after {
    width: 1px;
    height: 1px;
    top: 40%;
    left: 10%;
    box-shadow:
        60px 40px 0 0 rgba(255, 255, 255, 0.3),
        150px 80px 0 0 rgba(255, 255, 255, 0.5),
        250px 20px 0 0 rgba(255, 255, 255, 0.4),
        350px 60px 0 0 rgba(255, 255, 255, 0.3),
        450px 30px 0 0 rgba(255, 255, 255, 0.5),
        550px 75px 0 0 rgba(255, 255, 255, 0.4),
        650px 10px 0 0 rgba(255, 255, 255, 0.3),
        750px 55px 0 0 rgba(255, 255, 255, 0.5),
        850px 40px 0 0 rgba(255, 255, 255, 0.4),
        950px 70px 0 0 rgba(255, 255, 255, 0.3);
    animation: twinkle 5s ease-in-out infinite 1s;
}

@media (max-width: 768px) {
    .stats-stars {
        display: none;
    }
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    max-width: 1000px;
    margin: 0 auto;
    gap: 2rem;
    position: relative;
    z-index: 1;
}

@media (max-width: 768px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
}

@media (max-width: 480px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }
}

/* Stat Tile */
.stat-tile {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 16px;
    padding: 2rem;
    text-align: center;
}

.stat-number {
    font-family: 'DM Sans', sans-serif;
    font-weight: 700;
    font-size: clamp(2rem, 4vw, 3rem);
    color: #F5A623;
}

.stat-label {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
    margin-top: 0.5rem;
}

/* ==========================================================================
   Latest Articles Section
   ========================================================================== */

.latest-articles-section {
    padding: 6rem 1.5rem;
    background: #fff;
}

.articles-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    max-width: 1100px;
    margin: 0 auto;
    gap: 2rem;
}

@media (max-width: 1024px) {
    .articles-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .articles-grid {
        grid-template-columns: 1fr;
    }
}

/* Article Card */
.article-card {
    background: #fff;
    border-radius: 12px;
    padding: 1.5rem;
    border-left: 4px solid #E8F4FD;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08),
                0 4px 12px rgba(0, 0, 0, 0.04);
    text-decoration: none;
    display: block;
    transition: border-color 0.3s ease, transform 0.3s ease,
                box-shadow 0.3s ease;
}

.article-card:hover {
    border-left-color: #4A90D9;
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1),
                0 4px 12px rgba(0, 0, 0, 0.05);
}

.article-card__date {
    font-size: 0.8rem;
    color: #5A6B7F;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.article-card__title {
    font-family: 'DM Sans', sans-serif;
    font-weight: 700;
    font-size: 1.1rem;
    color: #2D3748;
    margin-bottom: 0.5rem;
    line-height: 1.4;
}

.article-card__excerpt {
    color: #5A6B7F;
    font-size: 0.9rem;
    line-height: 1.6;
}

.article-card__read-more {
    color: #2C5F8A;
    font-weight: 600;
    font-size: 0.85rem;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    margin-top: 0.75rem;
}

/* ==========================================================================
   About Section
   ========================================================================== */

.about-section {
    padding: 6rem 1.5rem;
    background: #F7F9FC;
}

.about-inner {
    display: grid;
    grid-template-columns: 3fr 2fr;
    gap: 4rem;
    max-width: 1100px;
    margin: 0 auto;
    align-items: center;
}

@media (max-width: 768px) {
    .about-inner {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

.about-text h2 {
    font-family: 'DM Sans', sans-serif;
    font-weight: 700;
    font-size: clamp(1.5rem, 3vw, 2rem);
    color: #2D3748;
    margin-bottom: 1rem;
}

.about-text p {
    color: #5A6B7F;
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: 1rem;
}

/* Trust Badges */
.trust-badges {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.trust-badge {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: #fff;
    padding: 1.25rem;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08),
                0 4px 12px rgba(0, 0, 0, 0.04);
}

.trust-badge__icon {
    width: 40px;
    height: 40px;
    flex-shrink: 0;
    color: #4A90D9;
}

.trust-badge__text {
    font-size: 0.95rem;
    color: #2D3748;
    font-weight: 500;
    line-height: 1.4;
}

/* ==========================================================================
   CTA Banner Section
   ========================================================================== */

.cta-banner-section {
    padding: 5rem 1.5rem;
    background: linear-gradient(135deg, #F5A623 0%, #E8734A 100%);
    text-align: center;
    color: #fff;
}

.cta-banner__title {
    font-family: 'DM Sans', sans-serif;
    font-weight: 700;
    font-size: clamp(1.75rem, 3vw, 2.5rem);
    color: #fff;
    margin-bottom: 1rem;
}

.cta-banner__text {
    font-size: 1.15rem;
    color: rgba(255, 255, 255, 0.95);
    max-width: 600px;
    margin: 0 auto 2rem;
    line-height: 1.6;
}

.cta-banner__button {
    display: inline-block;
    background: #fff;
    color: #E8734A;
    padding: 1rem 2.5rem;
    border-radius: 8px;
    font-weight: 700;
    font-size: 1.1rem;
    font-family: 'DM Sans', sans-serif;
    text-decoration: none;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    animation: pulse-glow 3s ease-in-out infinite;
}

.cta-banner__button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
    color: #E8734A;
}

.cta-banner__button:active {
    transform: translateY(0);
}

/* ==========================================================================
   Responsive Fine-tuning
   ========================================================================== */

@media (max-width: 480px) {
    .hero-content {
        padding: 2rem 1.5rem;
        margin: 0 1rem;
    }

    .hero-cta {
        padding: 0.875rem 2rem;
        font-size: 1rem;
    }

    .roadmap-section,
    .pillar-cards-section,
    .featured-guides-section,
    .stats-section,
    .latest-articles-section,
    .about-section,
    .cta-banner-section {
        padding: 4rem 1rem;
    }

    .stat-tile {
        padding: 1.5rem;
    }

    .cta-banner__button {
        padding: 0.875rem 2rem;
        font-size: 1rem;
    }
}
