/* --- VARIABLES & GRUNDLÆGGENDE STYLING --- */
:root {
    --bg-dark: #121826;
    --bg-medium: #1B2335;
    --bg-light: #2A334A;
    --text-primary: #F0F4F8;
    --text-secondary: #A4B2C1;
    --accent-primary: #38BDF8; /* Light Blue */
    --accent-secondary: #1E40AF; /* Darker Blue */
    --border-color: #353F57;
    --font-family: 'Poppins', sans-serif;
    --transition-speed: 0.3s;
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-primary);
    font-family: var(--font-family);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.section-title {
    font-size: clamp(2rem, 5vw, 2.5rem);
    font-weight: 600;
    text-align: center;
    margin-bottom: 3.5rem;
    color: var(--text-primary);
}

/* --- KNAPPER --- */
.cta-button {
    display: inline-block;
    padding: 0.75rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 500;
    transition: all var(--transition-speed) ease;
    border: 1px solid transparent;
    cursor: pointer;
    font-size: 0.95rem;
}

.cta-button.primary {
    background: var(--accent-primary);
    color: var(--bg-dark);
}

.cta-button.primary:hover {
    background: transparent;
    color: var(--accent-primary);
    border-color: var(--accent-primary);
    transform: translateY(-3px);
}

.cta-button.secondary {
    background: transparent;
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.cta-button.secondary:hover {
    background: var(--accent-primary);
    color: var(--bg-dark);
    border-color: var(--accent-primary);
    transform: translateY(-3px);
}

/* --- HEADER & NAVIGATION --- */
.header {
    position: sticky;
    top: 0;
    z-index: 1000;
    width: 100%;
    background-color: rgba(18, 24, 38, 0.8);
    backdrop-filter: blur(10px);
    padding: 1rem 0;
    border-bottom: 1px solid var(--border-color);
}

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

.nav-logo {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-primary);
    text-decoration: none;
}

.nav-logo span { color: var(--accent-primary); }

.nav-menu {
    display: flex;
    align-items: center;
    list-style: none;
    gap: 2.5rem;
}

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    transition: color var(--transition-speed) ease;
    position: relative;
    padding-bottom: 5px;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--accent-primary);
    transition: width var(--transition-speed) ease;
}

.nav-link:hover, .nav-link.active {
    color: var(--text-primary);
}

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

.hamburger { display: none; }

/* --- HERO SECTION --- */
.hero {
    position: relative;
    text-align: center;
    overflow: hidden;
    display: flex;
    align-items: center;
    min-height: 80vh; /* Increased height */
    background-color: var(--bg-dark); /* Fallback color */
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: linear-gradient(
        180deg,
        rgba(10,16,30,0.18) 0%,
        rgba(10,16,30,0.10) 35%,
        rgba(10,16,30,0.28) 100%
    ), url('/img/hero-lojt-land.jpg');
    background-size: cover;
    background-position: center 35%; /* Adjusted position */
    background-attachment: fixed;
    filter: brightness(1.08) contrast(1.08) saturate(1.12); /* Image enhancements */
    z-index: 1;
    transform: scale(1.05);
}

.hero-content {
    position: relative;
    z-index: 2;
    animation: fadeIn 1s ease-in-out;
}

.hero-local-identity {
    font-size: 0.85rem;
    font-weight: 600;
    color: #FFFFFF; /* Changed to white */
    text-shadow: 0 1px 4px rgba(0,0,0,.25);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 1rem;
    display: inline-block;
    padding: 0.5rem 1rem;
    border: 1px solid rgba(255, 255, 255, 0.25); /* Changed to white border */
    border-radius: 50px;
    background-color: rgba(18, 24, 38, 0.25); /* Slightly darker, more subtle background */
    backdrop-filter: blur(8px);
}

.hero-title {
    font-size: clamp(2.8rem, 6vw, 4rem);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    color: #FFFFFF;
    text-shadow: 0 4px 24px rgba(0,0,0,.45); /* Enhanced text shadow */
}

.hero-subtitle {
    font-size: clamp(1.1rem, 2vw, 1.25rem);
    max-width: 650px;
    margin: 0 auto 2.5rem;
    color: #E0E8F1; /* Slightly brighter for better contrast on the lighter image */
    text-shadow: 0 2px 12px rgba(0,0,0,.4); /* Enhanced text shadow */
}

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

/* --- SERVICES SECTION --- */
.services { padding: 6rem 0 4rem; }

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.service-card {
    background: var(--bg-medium);
    padding: 2.5rem 2rem;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    text-align: center;
    transition: transform var(--transition-speed) ease, box-shadow var(--transition-speed) ease;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 25px rgba(0, 0, 0, 0.2);
}

.service-icon svg {
    width: 48px;
    height: 48px;
    margin-bottom: 1.5rem;
    color: var(--accent-primary);
}

.service-title {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.service-description {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* --- AVAILABILITY SECTION --- */
.availability {
    padding: 4rem 0;
    background-color: var(--bg-medium);
    text-align: center;
}

.availability-content {
    max-width: 700px;
    margin: 0 auto;
}

.availability-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.availability-description {
    color: var(--text-secondary);
}

/* --- WHY US SECTION --- */
.why-us { padding: 6rem 0; }

.why-us-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.why-us-item {
    background-color: var(--bg-medium);
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid var(--border-color);
}

.why-us-item h4 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--accent-primary);
}

.why-us-item p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* --- CONTACT SECTION --- */
.contact {
    padding: 6rem 0;
    background-color: var(--bg-medium);
}

.contact-subtitle {
    max-width: 550px;
    margin: -3rem auto 3rem;
    text-align: center;
    color: var(--text-secondary);
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 4rem;
    align-items: center;
}

.contact-info p {
    margin-bottom: 1rem;
    font-size: 1.05rem;
}
.contact-info a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color var(--transition-speed) ease;
}
.contact-info a:hover {
    color: var(--accent-primary);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-form input, .contact-form textarea {
    width: 100%;
    padding: 1rem;
    background-color: var(--bg-dark);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-primary);
    font-family: inherit;
    transition: border-color var(--transition-speed) ease;
}

.contact-form input:focus, .contact-form textarea:focus {
    outline: none;
    border-color: var(--accent-primary);
}

/* --- FOOTER --- */
.footer {
    padding-top: 4rem;
    background-color: var(--bg-dark);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 2rem;
    padding-bottom: 3rem;
}

.footer-about p {
    max-width: 300px;
    color: var(--text-secondary);
    margin-top: 1rem;
}

.footer-links h4 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

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

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color var(--transition-speed) ease;
}

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

.footer-bottom {
    border-top: 1px solid var(--border-color);
    padding: 1.5rem 0;
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* --- RESPONSIVE & ANIMATIONS --- */
@media (max-width: 992px) {
    .contact-wrapper {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
}

@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 0;
        flex-direction: column;
        justify-content: center;
        width: 80%;
        height: 100vh;
        background-color: var(--bg-medium);
        transition: left 0.4s ease-in-out;
        gap: 2rem;
    }
    .nav-menu.active { left: 0; }
    .hamburger {
        display: block;
        cursor: pointer;
        z-index: 1001;
    }
    .bar {
        display: block;
        width: 25px;
        height: 3px;
        margin: 5px auto;
        background-color: var(--text-primary);
        transition: all 0.3s ease-in-out;
    }
    .hamburger.active .bar:nth-child(2) { opacity: 0; }
    .hamburger.active .bar:nth-child(1) { transform: translateY(8px) rotate(45deg); }
    .hamburger.active .bar:n-child(3) { transform: translateY(-8px) rotate(-45deg); }
}

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

.service-card, .why-us-item, .contact-wrapper {
    opacity: 0;
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
    transform: translateY(20px);
}

.service-card.visible, .why-us-item.visible, .contact-wrapper.visible {
    opacity: 1;
    transform: translateY(0);
}
