:root {
    --thorstorp-primary: #99CC66;
    --thorstorp-secondary: #D5EDB3;
    --thorstorp-light: #F4FFE4;
    --thorstorp-dark: #6B8E3D;
    --transition: all 0.3s ease;
}

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

body {
    font-family: 'Inter', sans-serif;
    background-color: #f9f9f6;
    color: #374151;
}

.header-offset {
    padding-top: 0;
}

.nav-link {
    position: relative;
    transition: var(--transition);
    padding: 0.5rem 0.75rem;
    color: #4b5563;
    font-weight: 500;
    font-size: 0.875rem;
    border-radius: 0.375rem;
}

.nav-link:hover {
    color: var(--thorstorp-dark);
    background-color: rgba(153, 204, 102, 0.1);
}

.nav-link.active {
    color: var(--thorstorp-dark);
    background-color: rgba(153, 204, 102, 0.15);
    font-weight: 600;
}

.menu-toggle span {
    transition: all 0.3s ease;
    transform-origin: center;
}

header.scrolled {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    background-color: rgba(255, 255, 255, 0.97);
}

header {
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

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

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

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

.hero-section {
    min-height: 580px;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.55), rgba(0, 0, 0, 0.35));
    z-index: 0;
}

.hero-section > * {
    position: relative;
    z-index: 1;
}

.cta-button {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.cta-button:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 16px rgba(107, 142, 61, 0.25);
}

.custom-shadow {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--header-offset, 120px) + 20px);
}

@media (max-width: 768px) {
    .hero-section {
        min-height: 440px;
    }

    .nav-link {
        padding: 0.5rem 0.9rem;
    }
}

@media (max-width: 640px) {
    .hero-section {
        min-height: 360px;
    }

    header.scrolled {
        box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
    }
}

.hover-scale {
    transition: transform 0.4s ease;
}

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

.hover-lift {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hover-lift:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
}

a {
    transition: var(--transition);
}

.mobile-menu {
    transition: max-height 0.3s ease;
    overflow: hidden;
}

.mobile-menu.hidden {
    max-height: 0;
}

.mobile-menu:not(.hidden) {
    max-height: 500px;
}

input:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: var(--thorstorp-primary);
    box-shadow: 0 0 0 3px rgba(153, 204, 102, 0.1);
}

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

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

.hero-section .hero-content {
    padding-top: calc(var(--header-offset, 120px) + 2.5rem);
    padding-bottom: 4rem;
}

@media (min-width: 768px) {
    .hero-section .hero-content {
        padding-top: calc(var(--header-offset, 120px) + 4rem);
        padding-bottom: 7rem;
    }
}

.tracking-wide-custom {
    letter-spacing: 0.2em;
}

.tracking-wider-custom {
    letter-spacing: 0.25em;
}

.tracking-widest-custom {
    letter-spacing: 0.3em;
}

.grid-custom-11-09 {
    grid-template-columns: 1.1fr 0.9fr;
}

.grid-custom-12-08 {
    grid-template-columns: 1.2fr 0.8fr;
}

.grid-custom-115-085 {
    grid-template-columns: 1.15fr 0.85fr;
}

.hero-bg-kontakt {
    background-image: url('images/100_0809.webp');
}

.hero-bg-omoss {
    background-image: url('images/bed1.webp');
}

.hero-bg-hastar {
    background-image: url('images/image1.webp');
}

.hero-bg-bb {
    background-image: url('images/image3.webp');
}

.hero-bg-stallet {
    background-image: url('images/Viggodressyrframrljusare.webp');
}

.hero-bg-butik {
    background-image: url('images/butik1.webp');
}

.hero-bg-index {
    background-image: url('https://images.pexels.com/photos/1996333/pexels-photo-1996333.jpeg?auto=compress&cs=tinysrgb&w=1920');
}
