/* ==========================================================================
   Ågård & Co - Modern Scandinavian Design
   ========================================================================== */

/* CSS Variables
   ========================================================================== */
:root {
    --color-primary: #2d3436;
    --color-secondary: #b17457;
    --color-accent: #636e72;
    --color-dark: #1a1a1a;
    --color-light: #f8f9fa;
    --color-white: #ffffff;
    --color-gray: #6c757d;
    --color-border: #dee2e6;

    --font-heading: 'Playfair Display', Georgia, serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

    --transition-base: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    --border-radius: 2px;
    --box-shadow: 0 2px 16px rgba(0, 0, 0, 0.08);
    --box-shadow-hover: 0 8px 24px rgba(0, 0, 0, 0.12);
}

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

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

body {
    font-family: var(--font-body);
    color: var(--color-dark);
    line-height: 1.8;
    background-color: var(--color-white);
    overflow-x: hidden;
    font-weight: 400;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

/* Svartvitt filter på alla content-bilder (ej logotyp) */
main img {
    filter: grayscale(100%);
    transition: filter var(--transition-base);
}

main img:hover {
    filter: grayscale(0%);
}

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

ul {
    list-style: none;
}

address {
    font-style: normal;
}

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

@media (max-width: 768px) {
    .container {
        padding: 0 20px;
    }
}

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

@media (max-width: 768px) {
    .section-padding {
        padding: 80px 0;
    }
}

/* Typography
   ========================================================================== */
h1,
h2 {
    font-family: var(--font-heading);
    font-weight: 500;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    color: var(--color-primary);
    letter-spacing: -0.02em;
}

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

h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
}

h2 {
    font-size: clamp(2rem, 4vw, 3rem);
}

h3 {
    font-size: clamp(1.25rem, 2.5vw, 1.5rem);
}

p {
    margin-bottom: 1.5rem;
}

.lead {
    font-size: clamp(1.125rem, 2vw, 1.375rem);
    color: var(--color-gray);
    font-weight: 400;
    line-height: 1.7;
}

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

.section-title {
    margin-bottom: 1rem;
}

.section-header {
    max-width: 700px;
    margin: 0 auto 80px;
}

.section-subtitle {
    font-size: 1.125rem;
    color: var(--color-gray);
    font-weight: 400;
}

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

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

/* Buttons
   ========================================================================== */
.btn {
    display: inline-block;
    padding: 16px 40px;
    font-family: var(--font-body);
    font-weight: 500;
    font-size: 0.9375rem;
    border-radius: var(--border-radius);
    transition: all var(--transition-base);
    cursor: pointer;
    text-align: center;
    border: 1px solid transparent;
    letter-spacing: 0.02em;
}

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

.btn-primary:hover {
    background-color: #a86548;
    border-color: #a86548;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(177, 116, 87, 0.4);
}

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

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

/* Header & Navigation
   ========================================================================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 9999;
    background-color: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--color-border);
    transition: all var(--transition-base);
    pointer-events: auto;
}

.header.scrolled {
    box-shadow: var(--box-shadow);
}

.navbar {
    padding: 1.5rem 0;
    position: relative;
    z-index: 10000;
}

.navbar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    height: 40px;
    width: auto;
    transition: opacity var(--transition-base);
}

.logo-link {
    display: block;
    z-index: 10001;
    position: relative;
}

.logo-link:hover .logo {
    opacity: 0.7;
}

.nav-menu {
    display: flex;
    gap: 3rem;
    align-items: center;
    position: relative;
    z-index: 10001;
}

.nav-menu a {
    color: var(--color-dark);
    font-weight: 500;
    position: relative;
    padding: 0.5rem 0;
    font-size: 0.9375rem;
    cursor: pointer;
    pointer-events: auto;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background-color: var(--color-primary);
    transition: width var(--transition-base);
}

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

.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
    z-index: 10001;
    position: relative;
}

.menu-toggle span {
    display: block;
    width: 28px;
    height: 2px;
    background-color: var(--color-dark);
    transition: all var(--transition-base);
}

/* Hero Section with Video - FÖRBÄTTRAD
   ========================================================================== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 120px 0 80px;
    overflow: hidden;
    background: linear-gradient(135deg, #2d3436 0%, #636e72 100%);
}

/* Video wrapper med bättre kompabilitet */
.hero-video-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 0;
    pointer-events: none;
}

.hero-video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 110%;
    min-height: 110%;
    width: 110%;
    height: auto;
    transform: translate(-50%, -50%) scale(1.15);
    object-fit: cover;
    opacity: 1;
    transition: opacity 0.5s ease;
    pointer-events: none;
}

/* Overlay över video */
.hero-video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(45, 52, 54, 0.75) 0%, rgba(45, 52, 54, 0.55) 100%);
    z-index: 1;
    pointer-events: none;
}

/* Content över video */
.hero-content {
    position: relative;
    z-index: 2;
    width: 100%;
}

.hero-text {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.hero-title {
    margin-bottom: 2rem;
    color: var(--color-white);
    text-shadow: 0 2px 30px rgba(0, 0, 0, 0.5);
}

.hero-lead {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 3rem;
    line-height: 1.6;
    text-shadow: 0 1px 15px rgba(0, 0, 0, 0.5);
}

.hero-cta {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
}


/* Mobile optimeringar för video */
@media (max-width: 768px) {
    .hero-video {
        /* Göm video på mycket små skärmar för bättre prestanda */
        display: block;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-lead {
        font-size: 1.125rem;
    }

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

    .hero-cta .btn {
        width: 100%;
        max-width: 300px;
    }
}

/* Förbättrad fallback för äldre enheter */
@supports not (object-fit: cover) {
    .hero-video {
        display: none;
    }
}

/* Page Hero - För undersidor
   ========================================================================== */
.page-hero {
    padding: 160px 0 80px;
    background: linear-gradient(135deg, #2d3436 0%, #636e72 100%);
    color: var(--color-white);
}

.page-hero-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.page-hero h1 {
    color: var(--color-white);
    margin-bottom: 1.5rem;
}

.page-hero .lead {
    color: rgba(255, 255, 255, 0.9);
}

/* Kontakt Hero med bakgrundsbild
   ========================================================================== */
.kontakt-hero {
    position: relative;
}

.kontakt-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('/img/agardco4.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    filter: grayscale(100%);
    z-index: 0;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(45, 52, 54, 0.6);
    z-index: 1;
}

.verksamhet-hero .hero-overlay {
    background: rgba(45, 52, 54, 0.7);
}

.kontakt-hero .container {
    position: relative;
    z-index: 2;
}

.kontakt-hero h1,
.kontakt-hero .lead {
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

@media (max-width: 768px) {
    .kontakt-hero::before {
        background-position: center center;
    }
}

/* Verksamhet Hero med bakgrundsbild
   ========================================================================== */
.verksamhet-hero {
    position: relative;
}

.verksamhet-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('/img/agardco5.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    filter: grayscale(100%);
    z-index: 0;
}

.verksamhet-hero .container {
    position: relative;
    z-index: 2;
}

.verksamhet-hero h1,
.verksamhet-hero .lead {
    color: #ffffff !important;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

@media (max-width: 768px) {
    .verksamhet-hero::before {
        background-position: center center;
    }
}

/* Verksamhet Detail Page
   ========================================================================== */
.verksamhet-detail .verksamhet-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 60px;
}

.verksamhet-card-large {
    padding: 60px;
    background-color: var(--color-white);
    border: 1px solid var(--color-border);
    transition: all var(--transition-base);
}

.verksamhet-card-large:hover {
    box-shadow: var(--box-shadow);
}

.verksamhet-card-large h2 {
    margin-bottom: 1rem;
    font-size: 2rem;
}

.verksamhet-card-large .lead {
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
}

.verksamhet-list {
    margin-top: 2rem;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.verksamhet-list li {
    padding-left: 1.5rem;
    position: relative;
}

.verksamhet-list li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--color-secondary);
    font-weight: 600;
}

@media (max-width: 768px) {
    .verksamhet-card-large {
        padding: 40px 32px;
    }

    .verksamhet-list {
        grid-template-columns: 1fr;
    }
}

/* Verksamhet Approach Section
   ========================================================================== */
.approach-content {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

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

.approach-item {
    text-align: left;
    padding: 40px;
    background-color: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: 4px;
    transition: all var(--transition-base);
    position: relative;
    overflow: hidden;
}

.approach-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 0;
    background: var(--color-secondary);
    transition: height var(--transition-base);
}

.approach-item:hover {
    transform: translateY(-4px);
    box-shadow: var(--box-shadow-hover);
    border-color: var(--color-secondary);
}

.approach-item:hover::before {
    height: 100%;
}

.approach-item h3 {
    margin-bottom: 1rem;
    color: var(--color-secondary);
    font-weight: 600;
    transition: color var(--transition-base);
}

.approach-item:hover h3 {
    color: var(--color-primary);
}

.approach-item p {
    line-height: 1.7;
    color: var(--color-dark);
}

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

/* Verksamhet CTA Section
   ========================================================================== */
.verksamhet-cta {
    background: linear-gradient(135deg, #2d3436 0%, #636e72 100%);
    color: var(--color-white);
}

.cta-content h2 {
    color: var(--color-white);
    margin-bottom: 1.5rem;
}

.cta-content .lead {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2.5rem;
}

/* Verksamhet Preview (homepage)
   ========================================================================== */
.verksamhet-preview .verksamhet-card p {
    font-size: 0.9375rem;
}

/* Intro Section
   ========================================================================== */
.intro-grid {
    display: grid;
    grid-template-columns: 45% 55%;
    gap: 80px;
    align-items: center;
}

.intro-image {
    position: relative;
    overflow: hidden;
}

/* Removed decorative border to avoid visual glitches */

.intro-image img {
    width: 100%;
    height: auto;
    object-fit: cover;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    /* Zoom in slightly to crop out watermark in bottom-right corner */
    transform: scale(1.08);
    transform-origin: top left;
}

.intro-content {
    padding-left: 40px;
}

@media (max-width: 992px) {
    .intro-grid {
        grid-template-columns: 1fr;
        gap: 60px;
    }

    .intro-content {
        padding-left: 0;
    }
}

/* Verksamhet Section
   ========================================================================== */
.verksamhet-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
}

.verksamhet-card {
    padding: 48px;
    background-color: var(--color-white);
    border: 1px solid var(--color-border);
    transition: all var(--transition-base);
}

.verksamhet-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--box-shadow-hover);
    border-color: var(--color-primary);
}

.verksamhet-icon {
    width: 56px;
    height: 56px;
    margin-bottom: 24px;
    color: var(--color-secondary);
}

.verksamhet-icon svg {
    width: 100%;
    height: 100%;
}

.verksamhet-card h3 {
    margin-bottom: 16px;
    font-weight: 600;
}

.verksamhet-card p {
    color: var(--color-gray);
    margin-bottom: 0;
    font-size: 0.9375rem;
    line-height: 1.7;
}

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

    .verksamhet-card {
        padding: 32px;
    }
}

/* Filosofi Section
   ========================================================================== */
.filosofi-grid {
    display: grid;
    grid-template-columns: 55% 45%;
    gap: 80px;
    align-items: center;
}

.filosofi-content {
    padding-right: 40px;
}

.filosofi-values {
    margin-top: 48px;
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.value-item {
    position: relative;
    padding-left: 80px;
}

.value-number {
    position: absolute;
    left: 0;
    top: 0;
    font-family: var(--font-heading);
    font-size: 3rem;
    font-weight: 400;
    color: var(--color-secondary);
    opacity: 0.3;
    line-height: 1;
}

.value-item h3 {
    margin-bottom: 8px;
    font-size: 1.125rem;
}

.value-item p {
    color: var(--color-gray);
    margin-bottom: 0;
    font-size: 0.9375rem;
}

.filosofi-image {
    position: relative;
}

/* Removed decorative border to avoid visual glitches */

.filosofi-image img {
    width: 100%;
    height: auto;
    object-fit: cover;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

@media (max-width: 992px) {
    .filosofi-grid {
        grid-template-columns: 1fr;
        gap: 60px;
    }

    .filosofi-content {
        padding-right: 0;
    }
}

/* Stats Section
   ========================================================================== */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 80px;
    text-align: center;
}

.stat-item {
    color: var(--color-white);
}

.stat-number {
    font-family: var(--font-heading);
    font-size: clamp(3rem, 6vw, 5rem);
    font-weight: 400;
    display: block;
    line-height: 1;
    margin-bottom: 0.5rem;
}

.stat-plus {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 4vw, 3rem);
}

.stat-label {
    font-size: 1rem;
    opacity: 0.8;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-size: 0.875rem;
    display: block;
    margin-top: 0.5rem;
}

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

/* Kontakt Section
   ========================================================================== */
.kontakt-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.kontakt-details {
    margin-top: 48px;
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.kontakt-item {
    display: flex;
    gap: 24px;
    align-items: start;
}

.kontakt-icon {
    width: 40px;
    height: 40px;
    color: var(--color-secondary);
    flex-shrink: 0;
}

.kontakt-icon svg {
    width: 100%;
    height: 100%;
}

.kontakt-text h4 {
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-gray);
    margin-bottom: 8px;
    font-weight: 600;
}

.kontakt-text a {
    color: var(--color-dark);
    font-weight: 500;
}

.kontakt-text a:hover {
    color: var(--color-secondary);
}

.kontakt-text p {
    margin-bottom: 0;
}

.kontakt-image img {
    width: 100%;
    height: auto;
    object-fit: cover;
}

/* Footer Credits */
.footer-credits {
    font-size: 0.8125rem;
    opacity: 0.7;
    margin-top: 8px;
}

.footer-credits a {
    color: inherit;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.footer-credits a:hover {
    color: var(--color-secondary);
}

/* Kontakt Card (ersätter foto) */
.kontakt-card {
    background: linear-gradient(145deg, var(--color-primary) 0%, #1f2527 100%);
    color: var(--color-white);
    position: relative;
    overflow: hidden;
}

.kontakt-card::before {
    content: '';
    position: absolute;
    top: -80px;
    right: -80px;
    width: 260px;
    height: 260px;
    border: 1px solid rgba(177, 116, 87, 0.35);
    border-radius: 50%;
    pointer-events: none;
}

.kontakt-card::after {
    content: '';
    position: absolute;
    bottom: -100px;
    left: -60px;
    width: 220px;
    height: 220px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 50%;
    pointer-events: none;
}

.kontakt-card-inner {
    position: relative;
    z-index: 1;
    padding: 64px 56px;
}

.kontakt-card-label {
    display: block;
    font-size: 0.8125rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--color-secondary);
    margin-bottom: 20px;
    font-weight: 600;
}

.kontakt-card-title {
    font-family: var(--font-heading);
    font-size: clamp(1.75rem, 3vw, 2.5rem);
    line-height: 1.2;
    margin-bottom: 20px;
    color: var(--color-white);
}

.kontakt-card-text {
    color: rgba(255, 255, 255, 0.75);
    line-height: 1.7;
    margin-bottom: 0;
}

.kontakt-card-divider {
    width: 48px;
    height: 2px;
    background-color: var(--color-secondary);
    margin: 32px 0;
}

.kontakt-card-facts {
    list-style: none;
    margin: 0 0 36px;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.kontakt-card-facts li {
    display: flex;
    align-items: baseline;
    gap: 16px;
    font-weight: 500;
    color: var(--color-white);
}

.kontakt-card-facts li span {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: rgba(255, 255, 255, 0.5);
    min-width: 90px;
    font-weight: 600;
}

.btn-light {
    display: inline-block;
    background-color: var(--color-white);
    color: var(--color-primary);
    padding: 14px 32px;
    font-weight: 600;
    letter-spacing: 0.02em;
    transition: all var(--transition-base);
    border: 1px solid var(--color-white);
}

.btn-light:hover {
    background-color: transparent;
    color: var(--color-white);
}

@media (max-width: 992px) {
    .kontakt-card-inner {
        padding: 48px 36px;
    }
}

@media (max-width: 992px) {
    .kontakt-grid {
        grid-template-columns: 1fr;
        gap: 60px;
    }
}

/* Kontakt Areas Section
   ========================================================================== */
.areas-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    margin-top: 60px;
}

.area-card {
    padding: 40px;
    background-color: var(--color-white);
    border: 1px solid var(--color-border);
    transition: all var(--transition-base);
}

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

.area-card h3 {
    margin-bottom: 1rem;
    font-size: 1.25rem;
    color: var(--color-secondary);
}

.area-card p {
    margin-bottom: 0;
    color: var(--color-gray);
    font-size: 0.9375rem;
}

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

/* Footer
   ========================================================================== */
.footer {
    background-color: var(--color-dark);
    color: rgba(255, 255, 255, 0.8);
    padding: 80px 0 40px;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 60px;
    margin-bottom: 60px;
}

.footer-brand {
    max-width: 320px;
}

.footer-logo {
    margin-bottom: 24px;
    filter: brightness(0) invert(1);
}

.footer-brand p {
    font-size: 0.9375rem;
    line-height: 1.7;
    margin-bottom: 0;
}

.footer-column h3 {
    color: var(--color-white);
    margin-bottom: 24px;
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9375rem;
    transition: color var(--transition-base);
}

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

.footer-bottom {
    text-align: center;
    padding-top: 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.875rem;
    margin-bottom: 0;
}

@media (max-width: 992px) {
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
        gap: 48px;
    }

    .footer-brand {
        grid-column: 1 / -1;
        max-width: 100%;
    }
}

@media (max-width: 768px) {
    .footer-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .footer {
        padding: 60px 0 32px;
    }
}

/* Responsive Navigation
   ========================================================================== */
@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        top: 88px;
        left: 0;
        right: 0;
        background-color: var(--color-white);
        flex-direction: column;
        padding: 2rem;
        gap: 1.5rem;
        transform: translateX(-100%);
        transition: transform var(--transition-base);
        border-top: 1px solid var(--color-border);
        box-shadow: var(--box-shadow);
        z-index: 9998;
        pointer-events: auto;
    }

    .nav-menu.active {
        transform: translateX(0);
    }

    .menu-toggle {
        display: flex;
    }

    .menu-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(8px, 8px);
    }

    .menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .menu-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -7px);
    }
}

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

.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

/* FAQ Section
   ========================================================================== */
.faq-list {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    border-bottom: 1px solid var(--color-border);
}

.faq-question {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 0;
    background: none;
    border: none;
    cursor: pointer;
    font-family: var(--font-body);
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--color-primary);
    text-align: left;
    gap: 1rem;
}

.faq-question svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    transition: transform var(--transition-base);
    color: var(--color-secondary);
}

.faq-item.open .faq-question svg {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height var(--transition-base), padding var(--transition-base);
}

.faq-item.open .faq-answer {
    max-height: 300px;
    padding-bottom: 1.5rem;
}

.faq-answer p {
    color: var(--color-gray);
    line-height: 1.8;
    margin-bottom: 0;
}

/* Stats Modern Section - FÖRBÄTTRAD DESIGN
   ========================================================================== */
.stats-modern {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    position: relative;
    overflow: hidden;
}

.stats-modern::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 60%;
    height: 200%;
    background: radial-gradient(circle, rgba(177, 116, 87, 0.05) 0%, transparent 70%);
    pointer-events: none;
}

.stats-intro {
    max-width: 700px;
    margin: 0 auto 80px;
    text-align: center;
}

.stats-intro .section-subtitle {
    font-size: 1rem;
    margin-top: 1rem;
}

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

.stat-modern-card {
    background: var(--color-white);
    padding: 48px 40px;
    border: 1px solid var(--color-border);
    border-radius: 4px;
    transition: all var(--transition-base);
    position: relative;
    overflow: hidden;
}

.stat-modern-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--color-secondary);
    transform: scaleY(0);
    transition: transform var(--transition-base);
}

.stat-modern-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--box-shadow-hover);
    border-color: var(--color-secondary);
}

.stat-modern-card:hover::before {
    transform: scaleY(1);
}

.stat-modern-icon {
    width: 56px;
    height: 56px;
    margin-bottom: 32px;
    color: var(--color-secondary);
    opacity: 0.9;
}

.stat-modern-icon svg {
    width: 100%;
    height: 100%;
}

.stat-modern-content {
    text-align: left;
}

.stat-modern-number-wrapper {
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
}

.stat-modern-number {
    font-family: var(--font-heading);
    font-size: clamp(3rem, 5vw, 4rem);
    font-weight: 500;
    color: var(--color-primary);
    line-height: 1;
    display: inline-block;
}

.stat-modern-plus {
    font-family: var(--font-heading);
    font-size: clamp(1.75rem, 3vw, 2.5rem);
    color: var(--color-secondary);
    font-weight: 400;
}

.stat-modern-label {
    display: block;
    font-size: 0.9375rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-gray);
    margin-top: 1rem;
    font-weight: 600;
}

.stat-modern-desc {
    margin-top: 0.75rem;
    font-size: 0.9375rem;
    color: var(--color-gray);
    line-height: 1.6;
    margin-bottom: 0;
}

@media (max-width: 992px) {
    .stats-modern-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .stat-modern-card {
        padding: 40px 32px;
    }
}

/* Sitemap Page Styles
   ========================================================================== */
.sitemap-content {
    max-width: 900px;
    margin: 0 auto;
}

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

.sitemap-section h2 {
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
    color: var(--color-secondary);
    font-weight: 600;
}

.sitemap-links {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.sitemap-links li {
    position: relative;
    padding-left: 0;
}

.sitemap-links a {
    color: var(--color-dark);
    font-size: 0.9375rem;
    transition: all var(--transition-base);
    display: inline-block;
    position: relative;
}

.sitemap-links a::before {
    content: '→';
    position: absolute;
    left: -24px;
    opacity: 0;
    transition: all var(--transition-base);
    color: var(--color-secondary);
}

.sitemap-links a:hover {
    color: var(--color-secondary);
    transform: translateX(8px);
}

.sitemap-links a:hover::before {
    opacity: 1;
    left: -20px;
}

.sitemap-xml-note {
    margin-top: 80px;
    text-align: center;
    padding: 32px;
    background: var(--color-light);
    border-radius: 4px;
}

.sitemap-xml-note p {
    margin-bottom: 0;
    font-size: 0.9375rem;
}

.sitemap-xml-note a {
    color: var(--color-secondary);
    font-weight: 600;
}

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

/* Policy Pages (AI-policy, Integritetspolicy)
   ========================================================================== */
.policy-content {
    background-color: var(--color-white);
}

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

.policy-section {
    margin-bottom: 3rem;
}

.policy-date {
    color: var(--color-gray);
    font-size: 0.9375rem;
    font-style: italic;
    margin-bottom: 2rem;
}

.policy-section h2 {
    margin-top: 3rem;
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--color-border);
    color: var(--color-primary);
    font-size: 1.75rem;
}

.policy-section h2:first-of-type {
    margin-top: 0;
}

.policy-section p {
    margin-bottom: 1.5rem;
    line-height: 1.8;
    color: var(--color-dark);
}

.policy-section ul {
    margin: 1.5rem 0 1.5rem 0;
    padding-left: 2rem;
}

.policy-section ul li {
    list-style: disc;
    margin-bottom: 0.75rem;
    line-height: 1.8;
    color: var(--color-dark);
}

.policy-section em {
    color: var(--color-gray);
    font-size: 0.9375rem;
}

.policy-section strong {
    font-weight: 600;
    color: var(--color-primary);
}

.policy-section a {
    color: var(--color-secondary);
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: all var(--transition-base);
}

.policy-section a:hover {
    color: var(--color-primary);
    border-bottom-color: var(--color-primary);
}

.policy-contact {
    background: var(--color-light);
    padding: 2rem;
    border-radius: 4px;
    margin: 1.5rem 0;
}

.policy-contact p {
    margin-bottom: 0.75rem;
}

.policy-contact p:last-child {
    margin-bottom: 0;
}

@media (max-width: 768px) {
    .policy-section h2 {
        font-size: 1.5rem;
        margin-top: 2rem;
    }

    .policy-section ul {
        padding-left: 1.5rem;
    }
}

/* Print styles
   ========================================================================== */
@media print {

    .header,
    .menu-toggle {
        display: none;
    }

    .hero {
        min-height: auto;
        padding: 2rem 0;
    }

    .hero-video-wrapper {
        display: none;
    }
}