/* ============================================
   Sjoo Fabriksbolag AB - Static Site Stylesheet
   Based on Sydney theme by aThemes
   ============================================ */

/* RESET & BASE */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Crimson Text', Georgia, serif;
    font-size: 18px;
    line-height: 1.6;
    color: #767676;
    background: #fff;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Didact Gothic', Arial, Helvetica, sans-serif;
    color: #333;
    line-height: 1.3;
}

h2 { font-size: 42px; }
h3, h4 { font-size: 28px; }
h5, h6 { font-size: 24px; }

a {
    color: #0e5584;
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: #d65050;
}

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

.container {
    max-width: 1170px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ============================================
   HEADER
   ============================================ */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(0, 0, 0, 0.9);
    transition: background 0.3s ease, padding 0.3s ease;
    padding: 10px 0;
}

.site-header.scrolled {
    background: rgba(0, 0, 0, 0.95);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    padding: 5px 0;
}

.header-inner {
    max-width: 1170px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.site-branding {
    flex-shrink: 0;
}

.site-logo img {
    height: 50px;
    width: auto;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    flex-direction: column;
    gap: 5px;
}

.menu-toggle span {
    display: block;
    width: 25px;
    height: 2px;
    background: #fff;
    transition: transform 0.3s ease;
}

.main-navigation ul {
    list-style: none;
    display: flex;
    gap: 5px;
}

.main-navigation ul li a {
    color: #fff;
    font-family: 'Didact Gothic', Arial, sans-serif;
    font-size: 16px;
    padding: 10px 15px;
    display: block;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: color 0.3s ease;
}

.main-navigation ul li a:hover {
    color: #d65050;
}

/* ============================================
   HERO SLIDER
   ============================================ */
.hero-slider {
    position: relative;
    width: 100%;
    height: 100vh;
    min-height: 500px;
    overflow: hidden;
}

.slider-container {
    position: absolute;
    inset: 0;
}

.slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
}

.slide.active {
    opacity: 1;
}

.slider-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.3);
    z-index: 2;
}

.slider-text {
    color: #fff;
    font-family: 'Didact Gothic', Arial, sans-serif;
    font-size: 36px;
    text-align: center;
    max-width: 800px;
    padding: 0 30px;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.5);
}

/* ============================================
   SERVICES SECTION
   ============================================ */
.services-section {
    padding: 80px 0;
    background: #fff;
}

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

.service-card {
    text-align: center;
    padding: 20px;
}

.service-icon {
    width: 350px;
    max-width: 100%;
    height: auto;
    margin: 0 auto 20px;
}

.service-card h3 {
    font-size: 28px;
    margin-bottom: 15px;
    color: #333;
}

.service-card p {
    font-size: 18px;
    line-height: 1.7;
    color: #767676;
}

/* ============================================
   NEWS SECTION (AKTUELLT)
   ============================================ */
.news-section {
    padding: 80px 0;
    background: #f7f7f7;
}

.section-title {
    font-size: 42px;
    text-align: center;
    margin-bottom: 50px;
    color: #333;
    font-family: 'Didact Gothic', Arial, sans-serif;
}

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

.news-card {
    background: #fff;
    border-radius: 2px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    transition: box-shadow 0.3s ease;
}

.news-card:hover {
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.15);
}

.news-image img {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.news-content {
    padding: 25px;
}

.news-content h3 {
    font-size: 22px;
    margin-bottom: 10px;
    color: #333;
}

.news-content p {
    font-size: 16px;
    color: #767676;
    line-height: 1.6;
}

/* ============================================
   PROJECTS SECTION
   ============================================ */
.projects-section {
    padding: 80px 0;
    background: #fff;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 5px;
}

.project-card {
    position: relative;
    overflow: hidden;
    cursor: pointer;
    aspect-ratio: 480 / 320;
}

.project-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

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

.project-overlay {
    position: absolute;
    inset: 0;
    background: rgba(14, 85, 132, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.4s ease;
    padding: 15px;
}

.project-card:hover .project-overlay {
    opacity: 1;
}

.project-overlay h4 {
    color: #fff;
    font-size: 18px;
    text-align: center;
    font-family: 'Didact Gothic', Arial, sans-serif;
}

/* ============================================
   ABOUT SECTION (OM OSS)
   ============================================ */
.about-section {
    padding: 80px 0;
    background: #f7f7f7;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.about-text .section-title {
    text-align: left;
    margin-bottom: 25px;
}

.about-text p {
    margin-bottom: 15px;
    font-size: 18px;
    line-height: 1.7;
    color: #767676;
}

.about-image img {
    width: 100%;
    border-radius: 2px;
}

/* ============================================
   STAFF SECTION (MEDARBETARE)
   ============================================ */
.staff-section {
    padding: 80px 0;
    background: #fff;
}

.staff-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 30px;
}

.staff-card {
    text-align: center;
    padding: 25px 15px;
    background: #f9f9f9;
    border-radius: 2px;
    transition: box-shadow 0.3s ease;
}

.staff-card:hover {
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

.staff-card h4 {
    font-size: 20px;
    margin-bottom: 5px;
    color: #333;
    font-family: 'Didact Gothic', Arial, sans-serif;
}

.staff-title {
    font-style: italic;
    color: #999;
    margin-bottom: 10px;
    font-size: 16px;
}

.staff-phone {
    font-size: 15px;
    color: #767676;
    margin-bottom: 3px;
}

.staff-email a {
    font-size: 14px;
    color: #0e5584;
    word-break: break-all;
}

.staff-email a:hover {
    color: #d65050;
}

/* ============================================
   CONTACT SECTION (KONTAKT)
   ============================================ */
.contact-section {
    padding: 80px 0;
    background: #f7f7f7;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: start;
}

.contact-info .section-title {
    text-align: left;
    margin-bottom: 25px;
}

.contact-details p {
    font-size: 18px;
    line-height: 1.8;
    color: #767676;
}

.contact-details a {
    color: #0e5584;
}

.contact-details a:hover {
    color: #d65050;
}

.social-links {
    margin-top: 25px;
    display: flex;
    gap: 10px;
}

.social-links img {
    width: 40px;
    height: 40px;
    border-radius: 3px;
    transition: opacity 0.3s ease;
}

.social-links a:hover img {
    opacity: 0.7;
}

.contact-map iframe {
    width: 100%;
    border-radius: 2px;
}

/* ============================================
   FOOTER
   ============================================ */
.site-footer {
    background: #1c1c1c;
    padding: 30px 0;
    text-align: center;
}

.site-footer p {
    color: #666;
    font-size: 14px;
    font-family: 'Didact Gothic', Arial, sans-serif;
}

/* ============================================
   RESPONSIVE - TABLET (max 1024px)
   ============================================ */
@media (max-width: 1024px) {
    .services-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 25px;
    }

    .projects-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .staff-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .slider-text {
        font-size: 28px;
    }
}

/* ============================================
   RESPONSIVE - MOBILE (max 780px)
   ============================================ */
@media (max-width: 780px) {
    .menu-toggle {
        display: flex;
    }

    .main-navigation {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: rgba(0, 0, 0, 0.95);
        display: none;
    }

    .main-navigation.active {
        display: block;
    }

    .main-navigation ul {
        flex-direction: column;
        padding: 10px 0;
    }

    .main-navigation ul li a {
        padding: 12px 20px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    .hero-slider {
        height: 60vh;
        min-height: 350px;
    }

    .slider-text {
        font-size: 22px;
        padding: 0 20px;
    }

    .services-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .news-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .projects-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 3px;
    }

    .about-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .about-text .section-title {
        text-align: center;
    }

    .staff-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

    .contact-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .contact-info .section-title {
        text-align: center;
    }

    .section-title {
        font-size: 32px;
    }

    h2 {
        font-size: 32px;
    }

    .services-section,
    .news-section,
    .projects-section,
    .about-section,
    .staff-section,
    .contact-section {
        padding: 50px 0;
    }
}

/* ============================================
   RESPONSIVE - SMALL MOBILE (max 480px)
   ============================================ */
@media (max-width: 480px) {
    .projects-grid {
        grid-template-columns: 1fr;
    }

    .staff-grid {
        grid-template-columns: 1fr;
    }

    .slider-text {
        font-size: 18px;
    }

    .section-title {
        font-size: 28px;
    }
}
