/* ==========================================================================
   CSS Variables & Reset
   ========================================================================== */
:root {
    /* Nordic Color Palette */
    --fjord-blue: #102A36;
    --pine-green: #2C4233;
    --off-white: #F9F8F6;
    --stone-grey: #757A77;
    --clay: #A67C65;
    --text-dark: #1A1A1A;
    --text-muted: #555555;
    --border-color: #E2E0DA;
    --white: #FFFFFF;

    /* Typography */
    --font-heading: 'Georgia', 'Playfair Display', serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    
    /* Spacing */
    --section-pad-y: 6rem;
    --container-width: 1280px;
    --radius-sm: 4px;
    --radius-lg: 8px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

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

body {
    font-family: var(--font-body);
    color: var(--text-dark);
    background-color: var(--off-white);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5 {
    font-family: var(--font-heading);
    font-weight: 400;
    line-height: 1.2;
    color: var(--fjord-blue);
}

a {
    color: inherit;
    text-decoration: none;
}

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

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

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn-primary, .btn-secondary, .btn-outline {
    display: inline-block;
    padding: 0.8rem 1.5rem;
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    text-align: center;
}

.btn-primary {
    background-color: var(--fjord-blue);
    color: var(--white);
}

.btn-primary:hover {
    background-color: var(--pine-green);
}

.btn-secondary {
    background-color: var(--clay);
    color: var(--white);
}

.btn-secondary:hover {
    background-color: #8c6753;
}

.btn-outline {
    background-color: transparent;
    color: var(--fjord-blue);
    border: 1px solid var(--fjord-blue);
}

.btn-outline:hover {
    background-color: var(--fjord-blue);
    color: var(--white);
}

/* ==========================================================================
   Header & Navigation
   ========================================================================== */
.site-header {
    position: fixed;
    top: 0;
    width: 100%;
    background-color: rgba(249, 248, 246, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    z-index: 1000;
}

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

.brand-logo {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--fjord-blue);
    letter-spacing: -0.5px;
}

.desktop-nav {
    display: flex;
    gap: 2.5rem;
}

.desktop-nav a {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-dark);
    transition: color 0.2s ease;
}

.desktop-nav a:hover {
    color: var(--clay);
}

.header-right {
    display: flex;
    align-items: center;
    gap: 1rem;
}

/* Mobile Menu Button */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 1001;
}

.hamburger {
    display: block;
    width: 24px;
    height: 2px;
    background-color: var(--fjord-blue);
    position: relative;
    transition: all 0.3s;
}

.hamburger::before, .hamburger::after {
    content: '';
    position: absolute;
    width: 24px;
    height: 2px;
    background-color: var(--fjord-blue);
    transition: all 0.3s;
}

.hamburger::before { top: -6px; }
.hamburger::after { top: 6px; }

/* Mobile Menu Overlay */
.mobile-nav-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 0;
    background-color: var(--off-white);
    overflow: hidden;
    transition: height 0.4s ease;
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mobile-nav-overlay.open {
    height: 100vh;
}

.mobile-nav {
    display: flex;
    flex-direction: column;
    text-align: center;
    gap: 2rem;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.4s ease 0.2s;
}

.mobile-nav-overlay.open .mobile-nav {
    opacity: 1;
    transform: translateY(0);
}

.mobile-nav a {
    font-family: var(--font-heading);
    font-size: 2rem;
    color: var(--fjord-blue);
}

/* ==========================================================================
   Breadcrumb
   ========================================================================== */
.breadcrumb {
    max-width: var(--container-width);
    margin: 80px auto 0; /* offset for fixed header */
    padding: 2rem 2rem 0;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.breadcrumb a {
    color: var(--fjord-blue);
    text-decoration: underline;
    text-decoration-color: transparent;
    transition: text-decoration-color 0.3s ease;
}

.breadcrumb a:hover {
    text-decoration-color: var(--fjord-blue);
}

/* ==========================================================================
   Hero Sections
   ========================================================================== */
.hero {
    position: relative;
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    padding: 0 2rem;
    margin-top: 60px; /* Offset for header */
}

.hero-subpage {
    position: relative;
    height: 50vh;
    min-height: 400px;
    display: flex;
    align-items: center;
    padding: 0 2rem;
    margin-top: 1rem;
}

.hero-image-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-image-container::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(16, 42, 54, 0.8) 0%, rgba(16, 42, 54, 0.2) 100%);
}

.hero-bg-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: var(--container-width);
    margin: 0 auto;
    width: 100%;
    color: var(--white);
}

.hero-content h1 {
    color: var(--white);
    font-size: 4rem;
    margin-bottom: 1.5rem;
    max-width: 800px;
}

.hero-subpage .hero-content h1 {
    font-size: 3.5rem;
}

.hero-content p {
    font-size: 1.25rem;
    max-width: 600px;
    margin-bottom: 2.5rem;
    color: rgba(255, 255, 255, 0.9);
}

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

/* ==========================================================================
   Editorial Sections (Cards)
   ========================================================================== */
.editorial-section {
    padding: var(--section-pad-y) 2rem;
    max-width: var(--container-width);
    margin: 0 auto;
}

.section-header {
    margin-bottom: 3rem;
    max-width: 600px;
}

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.section-header p {
    font-size: 1.1rem;
    color: var(--text-muted);
}

.editorial-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 3rem;
}

.editorial-card {
    cursor: pointer;
    display: flex;
    flex-direction: column;
}

.card-image-wrap {
    overflow: hidden;
    margin-bottom: 1.5rem;
    aspect-ratio: 4/3;
}

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

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

.card-content .category {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--stone-grey);
    display: block;
    margin-bottom: 0.5rem;
}

.card-content h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    transition: color 0.3s;
}

.editorial-card:hover h3 {
    color: var(--clay);
}

.card-content .excerpt {
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

.read-more {
    display: inline-block;
    background: none;
    border: none;
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--fjord-blue);
    cursor: pointer;
    padding: 0 0 2px 0;
    border-bottom: 1px solid var(--fjord-blue);
    align-self: flex-start;
}

a.read-more:hover {
    color: var(--clay);
    border-color: var(--clay);
}

/* ==========================================================================
   Architecture Deep Dive
   ========================================================================== */
.architecture-section {
    padding: var(--section-pad-y) 2rem;
    background-color: var(--pine-green);
    color: var(--white);
}

.architecture-container {
    max-width: var(--container-width);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.arch-text h2 {
    color: var(--white);
    font-size: 3rem;
    margin-bottom: 1.5rem;
}

.arch-text p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
}

.arch-text .btn-primary {
    background-color: var(--white);
    color: var(--pine-green);
    margin-top: 1rem;
}

.arch-image {
    position: relative;
    aspect-ratio: 3/4;
}

.featured-arch-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ==========================================================================
   Seasons Interactive Tabs
   ========================================================================== */
.seasons-section {
    padding: var(--section-pad-y) 2rem;
    max-width: var(--container-width);
    margin: 0 auto;
}

.text-center {
    text-align: center;
    margin: 0 auto 3rem auto;
}

.seasons-tabs {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 1rem;
}

.season-tab {
    background: none;
    border: none;
    font-family: var(--font-heading);
    font-size: 1.25rem;
    color: var(--stone-grey);
    cursor: pointer;
    padding: 0.5rem 1rem;
    transition: color 0.3s;
    position: relative;
}

.season-tab.active {
    color: var(--fjord-blue);
}

.season-tab.active::after {
    content: '';
    position: absolute;
    bottom: -1rem;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--fjord-blue);
}

.season-pane {
    display: none;
    grid-template-columns: 3fr 2fr;
    gap: 3rem;
    align-items: center;
    animation: fadeIn 0.5s ease;
}

.season-pane.active {
    display: grid;
}

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

.season-img {
    width: 100%;
    aspect-ratio: 16/9;
    object-fit: cover;
}

.season-text h3 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.season-text p {
    color: var(--text-muted);
}

/* ==========================================================================
   Editorial Long Form Guide
   ========================================================================== */
.guide-section {
    padding: var(--section-pad-y) 2rem;
    background-color: var(--white);
    border-top: 1px solid var(--border-color);
}

.guide-content {
    max-width: 800px;
    margin: 0 auto;
}

.category-label {
    display: block;
    text-align: center;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--clay);
    margin-bottom: 1rem;
}

.guide-content h2 {
    text-align: center;
    font-size: 3rem;
    margin-bottom: 3rem;
}

.guide-text p {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
    color: var(--text-muted);
}

.guide-text h3 {
    font-size: 1.5rem;
    margin: 2.5rem 0 1rem 0;
}

/* ==========================================================================
   FAQ Accordion
   ========================================================================== */
.faq-section {
    padding: var(--section-pad-y) 2rem;
}

.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-container h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
}

details {
    border-bottom: 1px solid var(--border-color);
    padding: 1.5rem 0;
}

summary {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    color: var(--fjord-blue);
    cursor: pointer;
    list-style: none;
    position: relative;
    padding-right: 2rem;
}

summary::-webkit-details-marker {
    display: none;
}

summary::after {
    content: '+';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.5rem;
    font-weight: 300;
}

details[open] summary::after {
    content: '−';
}

.faq-content {
    padding-top: 1rem;
    color: var(--text-muted);
    animation: fadeIn 0.3s ease;
}

/* ==========================================================================
   Subpages (About, Contact, Legal)
   ========================================================================== */
.subpage {
    background-color: var(--white);
}

.text-page-layout {
    padding: calc(var(--section-pad-y) + 60px) 2rem var(--section-pad-y);
    max-width: 800px;
    margin: 0 auto;
}

.text-page-layout h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    text-align: center;
}

.text-page-layout > p {
    text-align: center;
    color: var(--stone-grey);
    margin-bottom: 3rem;
}

.page-featured-img {
    width: 100%;
    aspect-ratio: 16/9;
    object-fit: cover;
    margin-bottom: 3rem;
}

.editorial-body h2 {
    font-size: 1.8rem;
    margin: 2.5rem 0 1rem;
}

.editorial-body p {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
    color: var(--text-muted);
}

.editorial-body ul {
    margin-bottom: 1.5rem;
    padding-left: 1.5rem;
    color: var(--text-muted);
}

.editorial-body li {
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

/* Contact Page specific */
.contact-page-layout {
    padding: calc(var(--section-pad-y) + 60px) 2rem var(--section-pad-y);
    max-width: var(--container-width);
    margin: 0 auto;
}

.contact-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.contact-text h1 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
}

.contact-text p {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
}

.contact-details-box {
    background-color: var(--off-white);
    padding: 2rem;
    border: 1px solid var(--border-color);
}

.contact-details-box h3 {
    margin-bottom: 1rem;
}

.contact-details-box p {
    margin-bottom: 0.5rem;
    font-size: 1rem;
    color: var(--text-dark);
}

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

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    border: 1px solid var(--border-color);
    background-color: var(--off-white);
    font-family: var(--font-body);
    font-size: 1rem;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--fjord-blue);
}

.form-submit {
    width: 100%;
}

/* ==========================================================================
   Modals
   ========================================================================== */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(16, 42, 54, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    padding: 2rem;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background-color: var(--white);
    width: 100%;
    max-width: 900px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    transform: translateY(20px);
    transition: transform 0.3s ease;
}

.modal-overlay.active .modal-content {
    transform: translateY(0);
}

.modal-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: var(--white);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    z-index: 2;
    color: var(--fjord-blue);
}

.modal-body {
    padding: 3rem;
}

.modal-img {
    width: 100%;
    aspect-ratio: 16/9;
    object-fit: cover;
    margin-bottom: 2rem;
}

.modal-body .category {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--clay);
    display: block;
    margin-bottom: 1rem;
}

.modal-body h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.modal-body p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

/* ==========================================================================
   Cookie Banner
   ========================================================================== */
.cookie-banner {
    position: fixed;
    bottom: 2rem;
    left: 2rem;
    max-width: 450px;
    background-color: var(--white);
    border: 1px solid var(--border-color);
    padding: 2rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    z-index: 3000;
    display: none;
    transform: translateY(20px);
    opacity: 0;
    transition: all 0.4s ease;
}

.cookie-banner.show {
    display: block;
    transform: translateY(0);
    opacity: 1;
}

.cookie-content h4 {
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
}

.cookie-content p {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

.cookie-content a {
    text-decoration: underline;
    color: var(--fjord-blue);
}

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

.cookie-actions button {
    flex: 1;
    padding: 0.6rem;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
    background-color: var(--fjord-blue);
    color: var(--white);
    padding: 5rem 2rem 2rem;
}

.footer-grid {
    max-width: var(--container-width);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 4rem;
}

.footer-logo {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: bold;
    color: var(--white);
    display: block;
    margin-bottom: 1rem;
}

.footer-tagline {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.95rem;
    max-width: 250px;
}

.footer-column h4 {
    color: var(--clay);
    font-family: var(--font-body);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 1.5rem;
}

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

.footer-column ul li {
    margin-bottom: 0.8rem;
}

.footer-column ul a {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.95rem;
    transition: color 0.2s;
}

.footer-column ul a:hover {
    color: var(--white);
}

.footer-address {
    margin-top: 2rem;
}

.footer-address p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.95rem;
    line-height: 1.5;
}

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

/* ==========================================================================
   Responsive Design
   ========================================================================== */
@media (max-width: 1024px) {
    .hero-content h1 { font-size: 3rem; }
    .hero-subpage .hero-content h1 { font-size: 2.8rem; }
    
    .architecture-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    .arch-image { aspect-ratio: 16/9; }
    .season-pane {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

@media (max-width: 768px) {
    .desktop-nav, .header-right .btn-outline { display: none; }
    .mobile-menu-btn { display: block; }
    
    .hero-content h1 { font-size: 2.5rem; }
    .hero-subpage .hero-content h1 { font-size: 2.2rem; }
    .hero-buttons { flex-direction: column; }
    
    .editorial-grid { grid-template-columns: 1fr; }
    
    .seasons-tabs {
        flex-wrap: wrap;
        border-bottom: none;
    }
    .season-tab { width: 45%; text-align: center; }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .contact-container {
        grid-template-columns: 1fr;
    }
    
    .modal-body { padding: 1.5rem; }
    .modal-content { max-height: 100vh; height: 100vh; border-radius: 0; }
    .modal-close { top: 1rem; right: 1rem; }
    
    .cookie-banner {
        left: 1rem;
        right: 1rem;
        bottom: 1rem;
        max-width: none;
        padding: 1.5rem;
    }
}