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

:root {
    --primary-green: #469171;
    --primary-dark: #2c7a5e;
    --light-green: rgba(70, 145, 113, 0.1);
    --text-dark: #2c3e50;
    --text-light: #34495e;
    --white: #ffffff;
    --light-gray: #f8f9fa;
    --overlay-dark: rgba(0, 0, 0, 0.4);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Lato', sans-serif;
    line-height: 1.7;
    color: var(--text-light);
    overflow-x: hidden;
}

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

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

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    color: var(--text-dark);
    line-height: 1.3;
}

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

/* Hero Section - Helt ny design */
.hero {
    min-height: 100vh;
    height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding-bottom: 8rem; /* Mer utrymme för scroll-pil */
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
}

.hero-image {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('images/0/7466914/scenic-view-of-mountain-and-hills.jpeg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg,
        rgba(44, 62, 80, 0.7) 0%,
        rgba(52, 73, 94, 0.6) 50%,
        rgba(70, 145, 113, 0.4) 100%
    );
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
    text-align: center;
    color: var(--white);
    max-width: 800px;
    width: 100%;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    flex-grow: 0;
}

.hero-text h1 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: clamp(2.5rem, 6vw, 4rem);
    margin-bottom: 2rem;
    color: var(--white);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    letter-spacing: -1px;
}

.hero-subtitle {
    font-size: clamp(1.2rem, 3vw, 1.6rem);
    font-weight: 400;
    margin-bottom: 3rem;
    color: var(--white);
    opacity: 0.95;
}

.hero-description {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    opacity: 0.9;
    line-height: 1.6;
}

/* Kontakt info i hero */
.hero-contact {
    display: inline-block;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    padding: 2rem 2.5rem;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    margin-top: 2rem;
}

.hero-contact-item {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.hero-contact-item:last-child {
    margin-bottom: 0;
}

.hero-contact-item strong {
    color: var(--white);
    font-weight: 600;
}

.hero-contact-item a {
    color: var(--white);
    font-weight: 500;
    transition: var(--transition);
}

.hero-contact-item a:hover {
    color: rgba(255, 255, 255, 0.8);
}

/* Hero CTA Button */
.hero-cta {
    margin-top: 2rem;
}

.cta-button {
    display: inline-block;
    background: var(--primary-green);
    color: var(--white);
    padding: 1rem 2.5rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1.1rem;
    transition: var(--transition);
    border: 2px solid var(--primary-green);
    text-shadow: none;
    box-shadow: 0 4px 15px rgba(70, 145, 113, 0.3);
}

.cta-button:hover {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(70, 145, 113, 0.4);
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 3rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 4;
}

.scroll-arrow {
    display: inline-block;
    animation: bounce 2s infinite;
    transition: var(--transition);
    opacity: 0.8;
}

.scroll-arrow:hover {
    opacity: 1;
    transform: translateX(-50%) translateY(5px);
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    40% {
        transform: translateX(-50%) translateY(-10px);
    }
    60% {
        transform: translateX(-50%) translateY(-5px);
    }
}

/* Content Sections */
.content-section {
    padding: 6rem 0;
    background: var(--white);
}

.content-section:nth-child(even) {
    background: var(--light-gray);
}

.content-section h2 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: clamp(2rem, 4vw, 2.8rem);
    margin-bottom: 1rem;
    text-align: center;
    color: var(--text-dark);
}

.content-section h2 a {
    color: var(--text-dark);
    transition: var(--transition);
}

.content-section h2 a:hover {
    color: var(--primary-green);
}

.section-subtitle {
    text-align: center;
    font-size: 1.2rem;
    color: var(--text-light);
    margin-bottom: 3rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.text-content {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-light);
    margin-bottom: 2rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

.text-content p {
    margin-bottom: 1.5rem;
}

.text-content a {
    color: var(--primary-green);
    font-weight: 600;
    transition: var(--transition);
}

.text-content a:hover {
    color: var(--primary-dark);
}

/* Certificates */
.certificates {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 3rem;
    margin: 4rem 0;
    flex-wrap: wrap;
}

.certificate {
    max-width: 300px;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    transition: var(--transition);
    background: var(--white);
    padding: 1rem;
}

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

/* Kairon Logo */
.kairon-logo {
    text-align: center;
    margin: 3rem 0;
}

.kairon-logo img {
    max-width: 250px;
    height: auto;
    opacity: 0.8;
    transition: var(--transition);
}

.kairon-logo img:hover {
    opacity: 1;
}

/* Shape Divider */
.shape-divider {
    width: 100%;
    overflow: hidden;
    line-height: 0;
    background: var(--white);
}

.shape-divider svg {
    position: relative;
    display: block;
    width: calc(100% + 1.3px);
    height: 100px;
}

.shape-divider.top svg {
    transform: rotateY(180deg);
}

/* Contact Section */
.contact-section {
    background: linear-gradient(135deg, var(--light-gray) 0%, var(--white) 100%);
    padding: 6rem 0;
    position: relative;
}

.contact-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 100px;
    background: var(--white);
    z-index: 1;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
    margin-top: 2rem;
    position: relative;
    z-index: 2;
}

/* Contact Form */
.contact-form {
    background: var(--white);
    padding: 3rem;
    border-radius: 20px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(70, 145, 113, 0.1);
}

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

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--text-dark);
    font-size: 0.95rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    border: 2px solid #e1e8ed;
    border-radius: 10px;
    font-size: 1rem;
    transition: var(--transition);
    background: var(--white);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-green);
    box-shadow: 0 0 0 3px rgba(70, 145, 113, 0.1);
}

.submit-btn {
    background: var(--primary-green);
    color: var(--white);
    padding: 1rem 2rem;
    border: none;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    width: 100%;
    box-shadow: 0 4px 12px rgba(70, 145, 113, 0.3);
}

.submit-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(70, 145, 113, 0.4);
}

.form-message {
    margin-top: 1rem;
    padding: 1rem;
    border-radius: 10px;
    text-align: center;
    display: none;
    font-weight: 500;
}

.form-message.success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.form-message.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Contact Info */
.contact-info-box {
    background: var(--white);
    padding: 3rem;
    border-radius: 20px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(70, 145, 113, 0.1);
    height: fit-content;
}

.contact-info-box h4 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: var(--text-dark);
    text-align: center;
}

.contact-info-details {
    text-align: center;
}

.contact-info-details p {
    margin-bottom: 1rem;
    font-size: 1.1rem;
    color: var(--text-light);
    line-height: 1.7;
}

.contact-info-details strong {
    color: var(--text-dark);
    display: block;
    margin-top: 1rem;
}

.contact-info-details a {
    color: var(--primary-green);
    font-weight: 600;
    transition: var(--transition);
}

.contact-info-details a:hover {
    color: var(--primary-dark);
}

/* Map */
.map-container {
    margin-top: 3rem;
    grid-column: 1 / -1;
}

.map-wrapper {
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
}

.map-iframe {
    width: 100%;
    height: 400px;
    border: none;
}

/* Footer Hero */
.footer-hero {
    min-height: 60vh;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.footer-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
}

.footer-image {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('images/0/7466914/scenic-view-of-mountain-and-hills.jpeg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
}

.footer-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg,
        rgba(44, 62, 80, 0.8) 0%,
        rgba(70, 145, 113, 0.6) 100%
    );
    z-index: 2;
}

.footer-content {
    position: relative;
    z-index: 3;
    text-align: center;
    color: var(--white);
    max-width: 800px;
    width: 100%;
    padding: 2rem;
}

.footer-content h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: 1.5rem;
    color: var(--white);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.footer-content h5 {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    color: var(--white);
    opacity: 0.9;
}

.footer-contact {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.footer-contact a {
    color: var(--white);
    font-weight: 600;
    font-size: 1.1rem;
    padding: 0.8rem 1.5rem;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border-radius: 50px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: var(--transition);
}

.footer-contact a:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-2px);
}

/* Utility Classes */
.center {
    text-align: center;
}

/* Responsive Design */
@media screen and (max-width: 975px) {
    .contact-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .hero-contact {
        padding: 1.5rem 2rem;
    }

    .certificates {
        gap: 2rem;
    }
}

@media screen and (max-width: 768px) {
    .container {
        padding: 0 1rem;
    }

    .hero-content {
        padding: 1rem;
    }

    .contact-form,
    .contact-info-box {
        padding: 2rem;
    }

    .content-section {
        padding: 4rem 0;
    }

    .footer-contact {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }

    .certificate {
        max-width: 250px;
    }
}

@media screen and (max-width: 575px) {
    .hero-text h1 {
        font-size: clamp(2rem, 8vw, 2.5rem);
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }

    .hero-contact {
        padding: 1.5rem;
    }

    .hero-contact-item {
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
    }

    .content-section {
        padding: 3rem 0;
    }

    .certificates {
        flex-direction: column;
        align-items: center;
        gap: 1.5rem;
    }

    .shape-divider svg {
        height: 60px;
    }

    .scroll-indicator {
        bottom: 2rem;
    }
}

/* Form validation styles */
.form-group input.error,
.form-group textarea.error {
    border-color: #dc3545;
    box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.1);
}

.field-error {
    color: #dc3545;
    font-size: 0.875rem;
    margin-top: 0.5rem;
    display: block;
}

.submit-btn:disabled {
    background-color: #6c757d;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}