/* ============================================
   FIM RALLY 2026 - Global Styles
   Color Palette: 
   Primary: #104451 (FJORD - deep teal)
   Secondary: #2b5a2c (SKOV - forest green)
   Accent: #ec8d45 (SOL - warm sunset orange)
   Light: #fdf0f4 (BÆR - soft pink cream)
   Neutral: #eae8e3 (FOG - misty gray)
   ============================================ */

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

@import url('https://fonts.googleapis.com/css2?family=Josefin+Sans:wght@300;400;700;900&display=swap');

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Josefin Sans', 'Futura', 'Trebuchet MS', sans-serif;
    color: #1a1a1a;
    line-height: 1.8;
    overflow-x: hidden;
    background-color: #fdf0f4;
}

p {
    margin-bottom: 16px;
}

/* --- Color Variables --- */
:root {
    --fjord: #104451;
    --skov: #2b5a2c;
    --sol: #ec8d45;
    --baer: #fdf0f4;
    --fog: #eae8e3;
    --gran: #4b7766;
    --rose: #eecfe3;
    --mursten: #ea654a;
    --text-dark: #1a1a1a;
    --text-light: #ffffff;
}

/* --- Container --- */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
}

/* --- Section Backgrounds --- */
.section-fjord { 
    background-color: var(--fjord); 
    color: var(--text-light);
}

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

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

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

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

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

/* --- Overlap Box (About Page) --- */
.overlap-box {
    background-color: var(--fjord);
    padding: 60px 80px;
    max-width: 900px;
    margin: -100px auto 0;
    position: relative;
    z-index: 10;
    color: #fdf0f4;
    box-shadow: 0 20px 60px rgba(16, 68, 81, 0.3);
}

/* --- Navigation --- */
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 60px;
    background-color: var(--fjord);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 30px rgba(16, 68, 81, 0.2);
}

nav.scrolled {
    padding: 15px 60px;
    background-color: rgba(16, 68, 81, 0.95);
    backdrop-filter: blur(10px);
}

.logo-placeholder {
    width: 120px;
    height: 60px;
}

.logo-placeholder img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.nav-links {
    display: flex;
    gap: 35px;
    background-color: transparent;
    padding: 10px 30px;
    border: 2px solid rgba(255,255,255,0.2);
    border-radius: 50px;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-light);
    font-size: 15px;
    font-weight: 500;
    position: relative;
    padding: 5px 0;
    transition: all 0.3s ease;
    letter-spacing: 0.5px;
}

.nav-links a:hover {
    color: var(--sol);
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 50%;
    background-color: var(--sol);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.nav-links a:hover::after {
    width: 100%;
}

/* --- Grid Layouts --- */
.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

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

/* --- Section Spacing --- */
.section {
    padding: 120px 0;
}

/* --- Image Container (with real images) --- */
.img-container {
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
}

.img-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.img-container:hover img {
    transform: scale(1.05);
}

/* Map image - no cropping */
.map-img {
    width: 100%;
    height: auto;
    display: block;
}

/* Square variant */
.img-container.square {
    aspect-ratio: 1 / 1;
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
}

/* --- Buttons --- */
.btn {
    display: inline-block;
    padding: 16px 40px;
    cursor: pointer;
    border: none;
    font-size: 16px;
    text-align: center;
    text-decoration: none;
    font-weight: 700;
    transition: all 0.3s ease;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.btn-sol { 
    background-color: var(--sol); 
    color: var(--text-light);
    box-shadow: 0 2px 8px rgba(236, 141, 69, 0.2);
}

.btn-sol:hover {
    background-color: var(--mursten);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(236, 141, 69, 0.25);
}

.btn-fjord { 
    background-color: var(--fjord); 
    color: var(--text-light);
    box-shadow: 0 2px 8px rgba(16, 68, 81, 0.2);
}

.btn-fjord:hover {
    background-color: var(--gran);
    transform: translateY(-2px);
}

.btn-white { 
    background-color: var(--text-light); 
    color: var(--fjord);
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.btn-white:hover {
    background-color: var(--baer);
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--text-light);
    color: var(--text-light);
}

.btn-outline:hover {
    background: var(--text-light);
    color: var(--fjord);
}

/* --- Typography --- */
.hero-title { 
    font-size: 72px; 
    font-weight: 900; 
    line-height: 1.1; 
    text-transform: uppercase; 
    color: var(--text-light);
    letter-spacing: 2px;
}

.hero-title.dark {
    color: var(--fjord);
}

.hero-sub { 
    font-size: 32px; 
    font-weight: 300; 
    margin-top: 15px; 
    color: var(--text-light);
    opacity: 0.9;
}

.hero-sub.dark {
    color: var(--fjord);
    opacity: 1;
}

.heading-xl { 
    font-size: 48px; 
    font-weight: 700; 
    margin-bottom: 25px; 
    color: var(--fjord);
    line-height: 1.2;
}

.heading-lg { 
    font-size: 36px; 
    font-weight: 700; 
    margin-bottom: 20px; 
    color: var(--fjord);
}

.heading-md { 
    font-size: 24px; 
    font-weight: 700; 
    margin-bottom: 15px; 
    color: var(--fjord);
}

.quote-text { 
    font-size: 22px; 
    margin-bottom: 35px; 
    color: var(--text-light);
    font-style: italic;
    font-weight: 300;
    line-height: 1.8;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* --- Card Component --- */
.card {
    background: var(--text-light);
    padding: 30px;
    box-shadow: 0 15px 50px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
}

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

.card h2,
.card h3 {
    color: var(--fjord);
}

.card p {
    color: #555;
    line-height: 1.7;
}

/* --- Text Content --- */
.text-content {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.text-content p {
    color: #444;
    font-size: 17px;
}

/* --- Image Stack --- */
.image-stack {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

/* --- Footer --- */
footer {
    background-color: var(--fjord);
    color: var(--text-light);
    padding: 80px 0;
    text-align: center;
}

footer .logo-placeholder {
    margin: 0 auto 30px auto;
    width: 120px;
    height: 60px;
}

footer p {
    opacity: 0.8;
    font-size: 14px;
    letter-spacing: 1px;
}

/* --- Hero Section with Background --- */
.hero-section {
    background: linear-gradient(135deg, rgba(16, 68, 81, 0.85) 0%, rgba(75, 119, 102, 0.85) 100%), url('mcpplads copy.jpg');
    background-size: cover;
    background-position: center;
    padding: 180px 0;
    text-align: center;
}

/* --- Tags/Labels --- */
.tag {
    display: inline-block;
    padding: 8px 20px;
    background-color: var(--sol);
    color: var(--text-light);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 20px;
}

/* --- Animations --- */
.fade-in {
    animation: fadeInUp 0.8s ease forwards;
    opacity: 0;
}

.fade-in-delay-1 { animation-delay: 0.15s; }
.fade-in-delay-2 { animation-delay: 0.3s; }
.fade-in-delay-3 { animation-delay: 0.45s; }

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

/* --- Mobile Responsive --- */
@media (max-width: 768px) {
    .hero-title { font-size: 42px; }
    .hero-sub { font-size: 22px; }
    .heading-xl { font-size: 32px; }
    .heading-lg { font-size: 26px; }
    .grid-2, .grid-3 { grid-template-columns: 1fr; gap: 40px; }
    nav { padding: 15px 20px; flex-direction: column; gap: 15px; }
    .nav-links { padding: 10px 20px; gap: 20px; flex-wrap: wrap; justify-content: center; }
    .container { padding: 0 20px; }
    .section { padding: 80px 0; }
    .overlap-box { padding: 40px 30px; margin-top: -60px; }
}

/* --- Scrollbar --- */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--fog);
}

::-webkit-scrollbar-thumb {
    background: var(--fjord);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--sol);
}

/* --- Lightbox --- */
.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 2000;
    justify-content: center;
    align-items: center;
}

.lightbox.active {
    display: flex;
}

.lightbox-img {
    max-width: 90%;
    max-height: 90%;
    border-radius: 8px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 40px;
    color: white;
    cursor: pointer;
    transition: color 0.3s;
}

.lightbox-close:hover {
    color: var(--sol);
}
