/* ============================================================
   HOMEPAGE SPECIFIC STYLES
   Styles unique to the homepage (index.html) including hero,
   provinces showcase, highlights, timeline, quotes, CTA, and
   newsletter sections.
   ============================================================ */

/* ============================================================
   HERO SECTION
   ============================================================ */
.hero-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(170deg, #061F14 0%, #0A3622 35%, #0F4A2D 65%, #061F14 100%);
    overflow: hidden;
    padding: var(--space-20) var(--space-6);
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        repeating-conic-gradient(rgba(176, 141, 59, 0.05) 0% 25%, transparent 0% 50%) 0 0 / 60px 60px,
        repeating-conic-gradient(rgba(176, 141, 59, 0.03) 0% 25%, transparent 0% 50%) 30px 30px / 60px 60px;
    z-index: 1;
}

.hero-particles {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2;
    overflow: hidden;
}

.hero-particle {
    position: absolute;
    width: 2px;
    height: 2px;
    background: rgba(176, 141, 59, 0.4);
    border-radius: 50%;
    animation: float var(--duration, 6s) ease-in-out infinite;
    animation-delay: var(--delay, 0s);
}

.hero-content {
    position: relative;
    z-index: 3;
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
}

.hero-badge {
    display: inline-block;
    font-family: var(--font-accent);
    font-size: var(--fs-sm);
    font-weight: var(--fw-regular);
    color: var(--color-accent-gold);
    background: transparent;
    border: 1px solid rgba(176, 141, 59, 0.3);
    border-top: none;
    border-bottom: none;
    padding: var(--space-2) var(--space-6);
    border-radius: 0;
    margin-bottom: var(--space-8);
    letter-spacing: var(--ls-widest);
    text-transform: uppercase;
    animation: fadeInDown 0.8s ease forwards;
    font-style: italic;
}

.hero-title {
    margin-bottom: var(--space-6);
    animation: fadeInUp 0.8s ease forwards;
    animation-delay: 0.2s;
    opacity: 0;
}

.title-line {
    display: block;
    color: var(--text-inverse);
}

.title-line-1 {
    font-size: var(--fs-lg);
    font-weight: var(--fw-light);
    letter-spacing: var(--ls-widest);
    font-family: var(--font-accent);
    text-transform: uppercase;
    opacity: 0.7;
    font-style: italic;
}

.title-line-2 {
    font-size: var(--fs-4xl);
    font-weight: var(--fw-light);
    font-family: var(--font-heading);
    letter-spacing: var(--ls-tight);
    color: var(--color-accent-gold);
    -webkit-text-fill-color: unset;
    background: none;
    background-clip: unset;
}

.hero-subtitle {
    font-family: var(--font-accent);
    font-size: var(--fs-md);
    color: rgba(250, 247, 242, 0.65);
    line-height: var(--lh-relaxed);
    max-width: 650px;
    margin: 0 auto var(--space-10);
    animation: fadeInUp 0.8s ease forwards;
    animation-delay: 0.4s;
    opacity: 0;
    font-style: italic;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: var(--space-10);
    margin-bottom: var(--space-10);
    animation: fadeInUp 0.8s ease forwards;
    animation-delay: 0.6s;
    opacity: 0;
}

.hero-stat {
    text-align: center;
}

.stat-number {
    font-family: var(--font-heading);
    font-size: var(--fs-2xl);
    font-weight: var(--fw-light);
    color: var(--color-accent-gold);
    display: inline;
}

.stat-suffix {
    font-family: var(--font-heading);
    font-size: var(--fs-lg);
    font-weight: var(--fw-light);
    color: var(--color-accent-gold);
}

.stat-label {
    display: block;
    font-size: var(--fs-xs);
    color: rgba(250, 247, 242, 0.45);
    text-transform: uppercase;
    letter-spacing: var(--ls-widest);
    margin-top: var(--space-2);
    font-family: var(--font-body);
}

.hero-cta-group {
    display: flex;
    justify-content: center;
    gap: var(--space-4);
    animation: fadeInUp 0.8s ease forwards;
    animation-delay: 0.8s;
    opacity: 0;
}

.hero-scroll-indicator {
    position: absolute;
    bottom: var(--space-8);
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    text-align: center;
    color: rgba(255, 255, 255, 0.5);
    font-size: var(--fs-xs);
    letter-spacing: var(--ls-wider);
    text-transform: uppercase;
    animation: fadeIn 1s ease forwards;
    animation-delay: 1.2s;
    opacity: 0;
}

.scroll-arrow {
    width: 24px;
    height: 24px;
    margin: var(--space-2) auto 0;
    border-right: 2px solid rgba(255, 255, 255, 0.5);
    border-bottom: 2px solid rgba(255, 255, 255, 0.5);
    transform: rotate(45deg);
    animation: bounce 2s ease infinite;
}

/* ============================================================
   INTRODUCTION SECTION
   ============================================================ */
.section-intro {
    background: var(--bg-primary);
}

.intro-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-6);
}

.intro-card {
    background: var(--bg-primary);
    border-radius: 0;
    padding: var(--space-8);
    border: 1px solid var(--color-neutral-200);
    transition: all var(--transition-base);
    position: relative;
    overflow: hidden;
}

.intro-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 3px;
    height: 0;
    background: var(--color-accent-gold);
    transition: height var(--transition-slow);
}

.intro-card:hover::before {
    height: 100%;
}

.intro-card:hover {
    transform: translateX(4px);
    box-shadow: -4px 0 20px rgba(10, 54, 34, 0.08);
    border-color: var(--color-neutral-300);
}

.intro-card-large {
    grid-column: span 2;
}

.intro-card-icon {
    font-size: 2rem;
    margin-bottom: var(--space-4);
    display: inline-block;
    padding: var(--space-3);
    background: transparent;
    border: 1px solid var(--color-neutral-200);
    border-radius: 0;
}

.intro-card h3 {
    font-size: var(--fs-lg);
    margin-bottom: var(--space-4);
    color: var(--color-primary);
}

.intro-card p {
    font-size: var(--fs-sm);
    color: var(--text-secondary);
    line-height: var(--lh-relaxed);
}

/* ============================================================
   PROVINCES SHOWCASE
   ============================================================ */
.section-provinces {
    background: var(--bg-secondary);
    position: relative;
}

.section-provinces::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        repeating-conic-gradient(rgba(10, 54, 34, 0.02) 0% 25%, transparent 0% 50%) 0 0 / 45px 45px;
    pointer-events: none;
}

.provinces-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-6);
}

.province-card {
    perspective: 1000px;
    height: 320px;
    cursor: pointer;
}

.province-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    transform-style: preserve-3d;
}

.province-card:hover .province-card-inner {
    transform: rotateY(180deg);
}

.province-card-front,
.province-card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    border-radius: 0;
    overflow: hidden;
}

.province-card-front {
    display: flex;
    align-items: flex-end;
    padding: var(--space-8);
}

.province-card-front::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7), transparent);
}

.province-card-content {
    position: relative;
    z-index: 1;
    color: var(--text-inverse);
}

.province-card-content h3 {
    font-size: var(--fs-xl);
    color: var(--text-inverse);
    margin-bottom: var(--space-2);
}

.province-tagline {
    font-family: var(--font-accent);
    font-size: var(--fs-sm);
    opacity: 0.8;
    margin-bottom: var(--space-2);
}

.province-capital {
    font-size: var(--fs-xs);
    opacity: 0.7;
    text-transform: uppercase;
    letter-spacing: var(--ls-wider);
}

.province-card-back {
    background: var(--bg-primary);
    transform: rotateY(180deg);
    padding: var(--space-6);
    display: flex;
    flex-direction: column;
    justify-content: center;
    border: 1px solid var(--color-neutral-200);
    border-top: 3px solid var(--color-accent-gold);
}

.province-card-back h4 {
    font-size: var(--fs-md);
    color: var(--color-primary);
    margin-bottom: var(--space-4);
}

.province-card-back ul {
    margin-bottom: var(--space-4);
}

.province-card-back li {
    font-size: var(--fs-xs);
    color: var(--text-secondary);
    padding: var(--space-1) 0;
    line-height: var(--lh-normal);
}

.province-card-back li strong {
    color: var(--text-primary);
}

/* ============================================================
   HIGHLIGHTS SECTION
   ============================================================ */
.section-highlights {
    background: var(--bg-primary);
}

.highlights-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-6);
}

.highlight-card {
    background: var(--bg-primary);
    border: 1px solid var(--color-neutral-200);
    border-radius: 0;
    padding: var(--space-8);
    transition: all var(--transition-base);
    position: relative;
    overflow: hidden;
}

.highlight-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, var(--color-primary), var(--color-accent-gold));
    transform: scaleX(0);
    transition: transform var(--transition-slow);
    transform-origin: left;
}

.highlight-card:hover {
    border-color: var(--color-accent-gold);
    box-shadow: 0 8px 30px rgba(10, 54, 34, 0.08);
}

.highlight-card:hover::after {
    transform: scaleX(1);
}

.highlight-number {
    font-family: var(--font-heading);
    font-size: var(--fs-4xl);
    font-weight: var(--fw-light);
    color: rgba(var(--color-primary-rgb), 0.04);
    position: absolute;
    top: var(--space-4);
    right: var(--space-6);
    line-height: 1;
}

.highlight-icon {
    font-size: 2.5rem;
    margin-bottom: var(--space-4);
    display: inline-block;
}

.highlight-card h3 {
    font-size: var(--fs-lg);
    color: var(--color-primary);
    margin-bottom: var(--space-4);
    position: relative;
    z-index: 1;
}

.highlight-card p {
    font-size: var(--fs-sm);
    color: var(--text-secondary);
    line-height: var(--lh-relaxed);
    position: relative;
    z-index: 1;
}

/* ============================================================
   TIMELINE SECTION
   ============================================================ */
.section-timeline {
    background: var(--bg-secondary);
    position: relative;
}

.section-timeline::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        repeating-conic-gradient(rgba(10, 54, 34, 0.015) 0% 25%, transparent 0% 50%) 0 0 / 35px 35px;
    pointer-events: none;
}

.timeline {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
    padding: var(--space-8) 0;
}

.timeline::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 3px;
    height: 100%;
    background: linear-gradient(to bottom, var(--color-primary), var(--color-accent-gold), var(--color-primary));
    border-radius: var(--radius-full);
}

.timeline-item {
    position: relative;
    width: 50%;
    padding: var(--space-4) var(--space-8);
    margin-bottom: var(--space-6);
}

.timeline-left {
    left: 0;
    padding-right: var(--space-12);
}

.timeline-right {
    left: 50%;
    padding-left: var(--space-12);
}

.timeline-item::before {
    content: '';
    position: absolute;
    top: var(--space-6);
    width: 16px;
    height: 16px;
    background: var(--color-accent-gold);
    border: 3px solid var(--color-primary);
    border-radius: 50%;
    z-index: 1;
}

.timeline-left::before {
    right: -8px;
}

.timeline-right::before {
    left: -8px;
}

.timeline-item::after {
    content: '';
    position: absolute;
    top: calc(var(--space-6) + 6px);
    width: 30px;
    height: 3px;
    background: var(--color-primary);
}

.timeline-left::after {
    right: 0;
}

.timeline-right::after {
    left: 0;
}

.timeline-content {
    background: var(--bg-primary);
    border-radius: 0;
    padding: var(--space-6);
    box-shadow: none;
    border: 1px solid var(--color-neutral-200);
    transition: all var(--transition-base);
}

.timeline-content:hover {
    border-color: var(--color-accent-gold);
    box-shadow: 0 4px 20px rgba(10, 54, 34, 0.06);
}

.timeline-date {
    display: inline-block;
    font-family: var(--font-heading);
    font-size: var(--fs-sm);
    font-weight: var(--fw-regular);
    color: var(--color-accent-gold-dark);
    background: transparent;
    padding: var(--space-1) 0;
    border-radius: 0;
    margin-bottom: var(--space-3);
    border-bottom: 1px solid var(--color-accent-gold);
}

.timeline-content h3 {
    font-size: var(--fs-md);
    color: var(--text-primary);
    margin-bottom: var(--space-3);
}

.timeline-content p {
    font-size: var(--fs-sm);
    color: var(--text-secondary);
    line-height: var(--lh-relaxed);
}

/* ============================================================
   QUOTES SECTION
   ============================================================ */
.section-quotes {
    background: linear-gradient(160deg, var(--color-primary-dark), var(--color-primary), #0F4A2D);
    color: var(--text-inverse);
    position: relative;
    overflow: hidden;
}

.section-quotes::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        repeating-conic-gradient(rgba(176, 141, 59, 0.04) 0% 25%, transparent 0% 50%) 0 0 / 50px 50px;
    pointer-events: none;
}

.section-quotes .section-badge {
    color: var(--color-accent-gold);
    background: transparent;
    border-color: rgba(176, 141, 59, 0.3);
}

.section-quotes .section-title {
    color: var(--text-inverse);
}

.section-quotes .section-divider {
    background: linear-gradient(90deg, var(--color-accent-gold), rgba(255, 255, 255, 0.5));
}

.quotes-slider {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    min-height: 200px;
}

.quote-slide {
    display: none;
    text-align: center;
    animation: fadeIn 0.5s ease forwards;
}

.quote-slide.active {
    display: block;
}

.quote-slide blockquote p {
    font-family: var(--font-accent);
    font-size: var(--fs-xl);
    line-height: var(--lh-relaxed);
    color: var(--text-inverse);
    margin-bottom: var(--space-6);
    font-style: italic;
}

.quote-slide blockquote p::before {
    content: '\201C';
    font-size: var(--fs-3xl);
    color: var(--color-accent-gold);
    display: block;
    margin-bottom: var(--space-2);
    line-height: 1;
    font-family: var(--font-heading);
}

.quote-slide cite {
    font-family: var(--font-body);
    font-style: normal;
    font-size: var(--fs-sm);
    color: var(--color-accent-gold);
    font-weight: var(--fw-medium);
}

.quotes-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-4);
    margin-top: var(--space-8);
}

.quote-nav-btn {
    width: 40px;
    height: 40px;
    border-radius: 0;
    background: rgba(176, 141, 59, 0.15);
    color: var(--color-accent-gold);
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all var(--transition-fast);
    border: 1px solid rgba(176, 141, 59, 0.3);
}

.quote-nav-btn:hover {
    background: var(--color-accent-gold);
    color: var(--bg-dark);
    transform: scale(1.05);
}

.quote-dots {
    display: flex;
    gap: var(--space-2);
}

.quote-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.quote-dot.active {
    background: var(--color-accent-gold);
    transform: scale(1.2);
}

/* ============================================================
   CTA SECTION
   ============================================================ */
.section-cta {
    background: linear-gradient(160deg, var(--bg-dark) 0%, #1E1C18 50%, #2A2520 100%);
    position: relative;
    overflow: hidden;
    padding: var(--space-20) 0;
}

.cta-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: repeating-conic-gradient(rgba(176, 141, 59, 0.03) 0% 25%, transparent 0% 50%) 0 0 / 40px 40px;
    opacity: 1;
}

.cta-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
}

.cta-content h2 {
    font-size: var(--fs-3xl);
    color: var(--text-inverse);
    margin-bottom: var(--space-6);
}

.cta-content p {
    font-size: var(--fs-md);
    color: rgba(255, 255, 255, 0.7);
    line-height: var(--lh-relaxed);
    margin-bottom: var(--space-8);
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: var(--space-4);
    flex-wrap: wrap;
}

/* ============================================================
   NEWSLETTER SECTION
   ============================================================ */
.section-newsletter {
    background: var(--bg-secondary);
    padding: var(--space-16) 0;
}

.newsletter-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-10);
    background: var(--bg-primary);
    padding: var(--space-10);
    border-radius: 0;
    box-shadow: none;
    border: 1px solid var(--color-neutral-200);
    border-top: 3px solid var(--color-accent-gold);
}

.newsletter-content {
    flex: 1;
}

.newsletter-content h3 {
    font-size: var(--fs-xl);
    color: var(--text-primary);
    margin-bottom: var(--space-3);
}

.newsletter-content p {
    font-size: var(--fs-sm);
    color: var(--text-secondary);
    line-height: var(--lh-relaxed);
}

.newsletter-form {
    flex: 1;
    max-width: 400px;
}

.newsletter-form .form-group {
    display: flex;
    gap: var(--space-3);
    margin-bottom: var(--space-2);
}

.newsletter-form .form-input {
    flex: 1;
}

.form-note {
    font-size: var(--fs-xs);
    color: var(--text-tertiary);
}

/* ============================================================
   HOMEPAGE RESPONSIVE STYLES
   ============================================================ */
@media (max-width: 1199px) {
    .highlights-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

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

    .hero-stats {
        gap: var(--space-6);
    }

    .newsletter-wrapper {
        flex-direction: column;
        text-align: center;
    }

    .newsletter-form {
        max-width: 100%;
        width: 100%;
    }
}

@media (max-width: 767px) {
    .hero-stats {
        flex-wrap: wrap;
        gap: var(--space-4);
    }

    .hero-stat {
        min-width: 120px;
    }

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

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

    .intro-card-large {
        grid-column: span 1;
    }

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

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

    .timeline::before {
        left: 20px;
    }

    .timeline-item {
        width: 100%;
        padding-left: var(--space-16);
        padding-right: var(--space-4);
    }

    .timeline-right {
        left: 0;
    }

    .timeline-item::before {
        left: 12px;
        right: auto;
    }

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

    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }

    .newsletter-form .form-group {
        flex-direction: column;
    }
}

@media (max-width: 575px) {
    .hero-section {
        min-height: 100svh;
    }

    .hero-stats {
        flex-direction: column;
        align-items: center;
    }

    .quote-slide blockquote p {
        font-size: var(--fs-lg);
    }
}
