/* 
* Skoveng Events - Main Stylesheet
* Author: Claude
* Version: 1.0
*/

/* ==================
   Table of Contents
   ==================
   1. Base
   2. Typography
   3. Layout & Grid
   4. Header & Navigation
   5. Hero Section
   6. Section Styles
   7. Components
   8. Forms
   9. Footer
   10. Animations
   11. Utilities
   ==================
*/

/* ==================
   1. Base
   ================== */
:root {
    /* Primary colors */
    --primary: #e83e8c; /* Rosa som matcher logoen */
    --primary-light: #f06ea5;
    --primary-dark: #c4246e;
    
    /* Secondary colors */
    --secondary: #343a40;
    --secondary-light: #495057;
    --secondary-dark: #212529;
    
    /* Neutral colors */
    --white: #ffffff;
    --light: #f8f9fa;
    --gray: #6c757d;
    --dark: #343a40;
    
    /* Accent colors */
    --accent: #7b29de; /* Lilla som komplimenterer rosa */
    --success: #28a745;
    --info: #17a2b8;
    --warning: #ffc107;
    --danger: #dc3545;
    
    /* Fonts */
    --font-primary: 'Montserrat', sans-serif;
    --font-secondary: 'Open Sans', sans-serif;
    
    /* Sizes */
    --container-width: 1200px;
    --header-height: 80px;
    --border-radius: 5px;
    
    /* Z-index levels */
    --z-back: -1;
    --z-normal: 1;
    --z-nav: 100;
    --z-modal: 200;
}

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

html {
    font-size: 62.5%; /* Makes 1rem = 10px for easier calculations */
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-secondary);
    font-size: 1.6rem;
    line-height: 1.6;
    color: var(--secondary);
    background-color: var(--white);
    overflow-x: hidden;
}

/* ==================
   2. Typography
   ================== */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-primary);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 2rem;
    color: var(--secondary-dark);
}

h1 {
    font-size: 4.8rem;
}

h2 {
    font-size: 3.6rem;
}

h3 {
    font-size: 2.4rem;
}

h4 {
    font-size: 2rem;
}

p {
    margin-bottom: 1.6rem;
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: all 0.3s ease;
}

a:hover {
    color: var(--primary-dark);
    text-decoration: none;
}

ul {
    list-style: none;
}

/* ==================
   3. Layout & Grid
   ================== */
.container {
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 2rem;
}

.section {
    padding: 8rem 0;
}

.section-header {
    text-align: center;
    margin-bottom: 6rem;
}

.section-header p {
    font-size: 1.8rem;
    color: var(--gray);
    max-width: 60rem;
    margin: 0 auto;
}

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

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

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

/* ==================
   4. Header & Navigation - Forenklet design
   ================== */
#header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 70px;
    background-color: var(--white);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    z-index: var(--z-nav);
    transition: all 0.3s ease;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
    padding: 0 2rem;
}

.logo {
    height: 100%;
    display: flex;
    align-items: center;
}

.header-logo {
    height: 30px;
    max-width: 120px;
    transition: all 0.3s ease;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-link {
    font-family: var(--font-primary);
    font-weight: 500;
    font-size: 1.6rem;
    color: var(--secondary-dark);
    text-decoration: none;
    padding: 0.5rem 0;
    transition: all 0.3s ease;
}

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

.nav-link.cta {
    background-color: var(--primary);
    color: var(--white);
    padding: 0.8rem 1.5rem;
    border-radius: 4px;
    margin-left: 1rem;
}

.nav-link.cta:hover {
    background-color: var(--primary-dark);
    color: var(--white);
    transform: translateY(-2px);
}

.nav-toggle {
    display: none;
    font-size: 2.4rem;
    cursor: pointer;
    color: var(--secondary-dark);
}

/* Responsive navigation */
@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        top: 70px;
        right: -100%;
        width: 80%;
        max-width: 300px;
        height: calc(100vh - 70px);
        background-color: var(--white);
        flex-direction: column;
        align-items: flex-start;
        padding: 3rem 2rem;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
        transition: right 0.3s ease;
        overflow-y: auto;
        gap: 2rem;
    }
    
    .nav-menu.active {
        right: 0;
    }
    
    .nav-menu li {
        width: 100%;
    }
    
    .nav-link {
        display: block;
        padding: 1rem 0;
    }
    
    .nav-link.cta {
        margin-left: 0;
        text-align: center;
        margin-top: 1rem;
    }
    
    .nav-toggle {
        display: block;
    }
}

/* ==================
   5. Hero Section
   ================== */
#hero {
    height: 100vh;
    min-height: 600px;
    background-image: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('../img/hero-bg.jpg');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    position: relative;
}

.hero-content {
    text-align: center;
    color: var(--white);
    max-width: 80rem;
    margin: 0 auto;
    padding: 0 2rem;
}

.hero-content h1 {
    color: var(--white);
    margin-bottom: 2rem;
    font-size: 5.2rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-content p {
    font-size: 2rem;
    margin-bottom: 4rem;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 2rem;
}

/* ==================
   6. Section Styles
   ================== */
/* Om Oss Section - Oppdatert stil */
.about-content {
    display: flex;
    gap: 5rem;
    align-items: center;
    margin-top: 2rem;
}

.about-image {
    flex: 1;
    position: relative;
}

.about-img {
    width: 100%;
    border-radius: var(--border-radius);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.logo-display {
    text-align: center;
    margin-top: 2rem;
}

.logo-img {
    max-width: 80%;
    height: auto;
}

.about-text {
    flex: 1;
}

.about-text p {
    margin-bottom: 1.5rem;
    line-height: 1.7;
}

/* Service Cards - Oppdatert stil for å matche bildet */
.service-card {
    background-color: var(--white);
    padding: 2.5rem 2rem;
    border-radius: var(--border-radius);
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
    text-align: center;
    transition: all 0.3s ease;
    margin-bottom: 2rem;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.service-icon {
    font-size: 3.5rem;
    color: var(--primary);
    margin-bottom: 1.5rem;
}

.service-card h3 {
    margin-bottom: 1rem;
    font-size: 2rem;
}

.service-card p {
    color: var(--gray);
    font-size: 1.5rem;
    line-height: 1.5;
}

/* Utstyr Section */
.equipment-tabs {
    margin-top: 4rem;
}

.tab-buttons {
    display: flex;
    justify-content: center;
    margin-bottom: 4rem;
}

.tab-btn {
    background-color: transparent;
    border: none;
    font-family: var(--font-primary);
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--gray);
    padding: 1rem 2rem;
    cursor: pointer;
    position: relative;
    transition: all 0.3s ease;
}

.tab-btn::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary);
    transition: width 0.3s ease;
}

.tab-btn:hover {
    color: var(--primary);
}

.tab-btn.active {
    color: var(--primary);
}

.tab-btn.active::after {
    width: 100%;
}

.tab-content {
    position: relative;
}

.tab-pane {
    display: none;
}

.tab-pane.active {
    display: block;
    animation: fadeIn 0.5s ease;
}

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

.equipment-item {
    background-color: var(--white);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.equipment-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.equipment-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.equipment-item h4 {
    padding: 1.5rem 1.5rem 0.5rem 1.5rem;
    color: var(--secondary-dark);
}

.equipment-item p {
    padding: 0 1.5rem 1.5rem 1.5rem;
    color: var(--gray);
}

/* Prosjekter Section */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
    margin-bottom: 4rem;
}

.project-card {
    background-color: var(--white);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

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

.project-image img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.project-card:hover .project-image img {
    transform: scale(1.1);
}

.project-info {
    padding: 2rem;
}

.project-info h3 {
    margin-bottom: 0.5rem;
}

.project-category {
    color: var(--primary);
    font-weight: 600;
    margin-bottom: 1rem;
}

.projects-cta {
    text-align: center;
    margin-top: 4rem;
}

/* Testimonials Section - Uten bilder */
.testimonial-slider {
    position: relative;
    overflow: hidden;
    max-width: 900px;
    margin: 0 auto;
}

.testimonial-slide {
    display: none;
}

.testimonial-slide.active {
    display: block;
    animation: fadeIn 0.5s ease;
}

.testimonial-content {
    background-color: var(--white);
    padding: 4rem;
    border-radius: var(--border-radius);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    text-align: center;
}

.testimonial-text {
    position: relative;
    margin-bottom: 2.5rem;
}

.testimonial-text::before {
    content: '\201C';
    font-family: Georgia, serif;
    position: absolute;
    top: -40px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 8rem;
    color: var(--primary-light);
    opacity: 0.3;
}

.testimonial-text p {
    font-size: 1.8rem;
    line-height: 1.6;
    font-style: italic;
}

.testimonial-author {
    display: flex;
    justify-content: center;
    margin-top: 2rem;
}

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

.author-info h4 {
    margin-bottom: 0.5rem;
    color: var(--primary);
}

.author-info p {
    color: var(--gray);
    margin-bottom: 0;
}

.testimonial-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 3rem;
}

.testimonial-prev,
.testimonial-next {
    background-color: var(--white);
    border: none;
    width: 4rem;
    height: 4rem;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.6rem;
    color: var(--secondary);
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    transition: all 0.3s ease;
}

.testimonial-prev:hover,
.testimonial-next:hover {
    background-color: var(--primary);
    color: var(--white);
}

.testimonial-dots {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 2rem;
}

.dot {
    width: 1rem;
    height: 1rem;
    border-radius: 50%;
    background-color: var(--light);
    margin: 0 0.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.dot.active {
    background-color: var(--primary);
}

/* Kontakt Section */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

.contact-info {
    background-color: var(--white);
    padding: 3rem;
    border-radius: var(--border-radius);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

.info-item {
    display: flex;
    margin-bottom: 2rem;
}

.info-icon {
    font-size: 2.4rem;
    color: var(--primary);
    margin-right: 2rem;
    min-width: 4rem;
    height: 4rem;
    background-color: rgba(232, 62, 140, 0.1);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.info-content h4 {
    margin-bottom: 0.5rem;
}

.info-content p {
    margin-bottom: 0.5rem;
}

.contact-form-container {
    background-color: var(--white);
    padding: 3rem;
    border-radius: var(--border-radius);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.contact-form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

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

.form-group.full-width {
    grid-column: span 2;
}

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

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 1.2rem;
    border: 1px solid #e5e5e5;
    border-radius: var(--border-radius);
    font-family: var(--font-secondary);
    font-size: 1.6rem;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 2px rgba(232, 62, 140, 0.2);
}

/* Responsive kontaktinformasjon */
@media (max-width: 992px) {
    .contact-grid {
        grid-template-columns: 1fr;
    }
    
    .contact-info {
        margin-bottom: 2rem;
    }
}

/* Kontaktskjema - Feilmeldinger og suksess */
.error-message {
    color: #e74c3c;
    font-size: 1.4rem;
    margin-top: 0.5rem;
    font-weight: 500;
}

.error-field {
    border-color: #e74c3c !important;
    background-color: rgba(231, 76, 60, 0.05);
}

.success-message {
    text-align: center;
    padding: 3rem 2rem;
}

.success-message i {
    font-size: 5rem;
    color: #2ecc71;
    margin-bottom: 2rem;
}

.success-message h3 {
    font-size: 2.4rem;
    color: #2ecc71;
    margin-bottom: 1.5rem;
}

.success-message p {
    font-size: 1.6rem;
    margin-bottom: 1rem;
}

.map-container {
    height: 450px;
    width: 100%;
}

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

/* ==================
   7. Components
   ================== */
.btn {
    display: inline-block;
    font-family: var(--font-primary);
    font-weight: 600;
    font-size: 1.6rem;
    padding: 1.2rem 3rem;
    border-radius: var(--border-radius);
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
}

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

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

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

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

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

.btn-dark:hover {
    background-color: var(--secondary);
}

.btn-full {
    width: 100%;
}

.back-to-top {
    position: fixed;
    bottom: 3rem;
    right: 3rem;
    width: 5rem;
    height: 5rem;
    background-color: var(--primary);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 2rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: var(--z-nav);
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background-color: var(--primary-dark);
    color: var(--white);
}

/* ==================
   8. Forms
   ================== */
.contact-form-container {
    background-color: var(--white);
    padding: 3rem;
    border-radius: var(--border-radius);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.contact-form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

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

.form-group.full-width {
    grid-column: span 2;
}

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

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 1.2rem;
    border: 1px solid #e5e5e5;
    border-radius: var(--border-radius);
    font-family: var(--font-secondary);
    font-size: 1.6rem;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 2px rgba(232, 62, 140, 0.2);
}

.newsletter-form {
    display: flex;
    margin-top: 2rem;
}

.newsletter-form input {
    flex: 1;
    padding: 1.2rem;
    border: none;
    border-radius: var(--border-radius) 0 0 var(--border-radius);
    font-family: var(--font-secondary);
    font-size: 1.6rem;
}

.newsletter-form input:focus {
    outline: none;
}

.newsletter-form button {
    background-color: var(--primary);
    color: var(--white);
    border: none;
    padding: 0 2rem;
    border-radius: 0 var(--border-radius) var(--border-radius) 0;
    cursor: pointer;
    transition: all 0.3s ease;
}

.newsletter-form button:hover {
    background-color: var(--primary-dark);
}

/* ==================
   9. Footer
   ================== */
#footer {
    background-color: var(--secondary-dark);
    color: var(--light);
    padding: 8rem 0 2rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 4rem;
    margin-bottom: 5rem;
}

.footer-logo {
    margin-bottom: 2rem;
}

.footer-logo img {
    height: 60px;
}

.social-links {
    display: flex;
    gap: 1.5rem;
    margin-top: 2rem;
}

.social-links a {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 4rem;
    height: 4rem;
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--white);
    border-radius: 50%;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background-color: var(--primary);
    color: var(--white);
}

.footer-col h4 {
    color: var(--white);
    margin-bottom: 2rem;
    position: relative;
    padding-bottom: 1rem;
}

.footer-col h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 5rem;
    height: 2px;
    background-color: var(--primary);
}

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

.footer-links a {
    color: var(--light);
    transition: all 0.3s ease;
}

.footer-links a:hover {
    color: var(--primary);
    padding-left: 5px;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 2rem;
}

.footer-legal {
    display: flex;
    gap: 2rem;
}

.footer-legal a {
    color: var(--light);
    font-size: 1.4rem;
}

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

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

/* ==================
   11. Utilities
   ================== */
.text-center {
    text-align: center;
}

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

.mb-1 {
    margin-bottom: 1rem;
}

.mb-2 {
    margin-bottom: 2rem;
}

.mb-3 {
    margin-bottom: 3rem;
}

.mb-4 {
    margin-bottom: 4rem;
}

.mb-5 {
    margin-bottom: 5rem;
}

.mt-1 {
    margin-top: 1rem;
}

.mt-2 {
    margin-top: 2rem;
}

.mt-3 {
    margin-top: 3rem;
}

.mt-4 {
    margin-top: 4rem;
}

.mt-5 {
    margin-top: 5rem;
}

/* ==================
   12. Media Queries
   ================== */
@media (max-width: 1200px) {
    html {
        font-size: 60%;
    }
}

@media (max-width: 992px) {
    html {
        font-size: 58%;
    }
    
    .about-content {
        flex-direction: column;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    html {
        font-size: 56%;
    }
    
    .nav-menu {
        position: fixed;
        top: var(--header-height);
        right: -100%;
        width: 80%;
        max-width: 400px;
        height: calc(100vh - var(--header-height));
        background-color: var(--white);
        flex-direction: column;
        align-items: flex-start;
        padding: 4rem 2rem;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
        transition: right 0.3s ease;
        overflow-y: auto;
    }
    
    .nav-menu.active {
        right: 0;
    }
    
    .nav-menu li {
        margin: 0 0 2rem 0;
        width: 100%;
    }
    
    .nav-link {
        display: block;
        font-size: 1.8rem;
        padding: 1rem 0;
    }
    
    .nav-link.cta {
        margin-left: 0;
        text-align: center;
        margin-top: 2rem;
    }
    
    .nav-toggle {
        display: block;
    }
    
    .hero-content h1 {
        font-size: 4.2rem;
    }
    
    .hero-buttons {
        flex-direction: column;
    }
    
    .hero-buttons .btn {
        margin-bottom: 1rem;
    }
    
    .section-header h2 {
        font-size: 3rem;
    }
    
    .contact-form {
        grid-template-columns: 1fr;
    }
    
    .form-group.full-width {
        grid-column: span 1;
    }
}

@media (max-width: 576px) {
    html {
        font-size: 54%;
    }
    
    .section {
        padding: 6rem 0;
    }
    
    .section-header {
        margin-bottom: 4rem;
    }
    
    .testimonial-content {
        padding: 3rem 2rem;
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-legal {
        justify-content: center;
        flex-wrap: wrap;
    }
}