/* Grundläggande inställningar */
:root {
    --primary-colorx: #212529;
    --primary-color: #c4cbd1;
    --background-color: #3c3c3c;
    --text-colorx: #212529;
    --text-color: #c4cbd1;
    --white-color: #ffffff;
    --black-color: #000000;
    --light-blue-bg: #ddeeff;
    --TEST-light-blue-bg: #a6c8ff;
    --secondary-color: #e7f5ff;
    --hero-button-color: #5c636a;
    --footer-bgx: #e7f5ff;
    --footer-bg: #3c3c3c;
}

body {
    margin: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--background-color);
    color: var(--text-color);
    line-height: 1.6;
}

h1, h2, h3 {
    color: var(--primary-color);
}

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

a:hover {
    text-decoration: underline;
}

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

.container {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Header / Navigation */
header {
    background-color: var(--background-color);
    padding: 15px 0;
    border-bottom: 1px solid var(--secondary-color);
    position: sticky;
    top: 0;
    z-index: 100;
}

header nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

header .logo img {
    max-height: 40px;
}

header nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
}

header nav ul li {
    margin-left: 25px;
}

header nav ul li a {
    font-weight: bold;
}

/* Hero Sektion (Huvudsida) */
#hero {
    position: relative;
    color: var(--text-color);
    padding: 160px 0; /* ÄNDRAT FRÅN 300px - Detta gör att du ser mer av bilden */
    text-align: center;
    overflow: hidden;
    background-color: var(--secondary-color);
    
    /* Lägg till min-height för att garantera att den inte blir för liten på stora skärmar */
    min-height: 50vh; 
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../images/hero-background.jpg');
    background-size: cover;
    background-position: center;
    opacity: 0.8;
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    background-color: rgba(220, 220, 220, 0.35); /* Vit bakgrund med 70% opacitet */
    padding: 30px;
    border-radius: 8px; /* Mjuka, rundade hörn */
    display: inline-block;
}

#hero h1 {
    font-size: 2.8em;
    margin-bottom: 20px;
    color: var(--background-color);
}

#hero p {
    font-size: 1.2em;
    margin-bottom: 30px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    color: var(--background-color);
}

.cta-button {
    display: inline-block;
    background-color: var(--hero-button-color);
    color: var(--text-color);
    padding: 12px 25px;
    border-radius: 5px;
    font-weight: bold;
    text-decoration: none;
    transition: background-color 0.3s ease;
}

.cta-button:hover {
    background-color: #495057;
    color: var(--text-color);
    text-decoration: none;
}

/* =========================
     MEDIA QUERIES (mobil)
   ========================= */

@media (max-width: 600px) {
    #hero {
        padding: 80px 0;
        min-height: 400px;
    }

    .hero-background {
        background-size: cover;
        background-repeat: no-repeat;
        background-position: center center; /* eller center top eller 50% 20% */
    }
}

.logo-section {
    padding: 60px 0;
    background-color: var(--background-color);
}
.logo-section:nth-of-type(odd) {
     background-color: var(--background-color);
}

.logo-section h2 {
    text-align: center;
    margin-bottom: 40px;
}

.logo-carousel-container {
    width: 100%;
    overflow: hidden; 
    mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent); 
    -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

.logo-track {
    display: flex; 
    align-items: center; 
    width: max-content;
    will-change: transform;
}

.logo-track > * {
    flex-shrink: 0;
    margin: 0 40px;
}

.logo-track img {
    height: 50px; 
    opacity: 0.7; 
    transition: opacity 0.3s ease;
    display: block;
}
.logo-track img:hover {
    opacity: 1;
}

@keyframes scroll-left {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

@keyframes scroll-right {
  0% {
    transform: translateX(-50%);
  }
  100% {
    transform: translateX(0);
  }
}

.logo-track.clients {
    animation: scroll-right 40s linear infinite;
}

.logo-track.partners {
    animation: scroll-left 50s linear infinite;
}

.logo-carousel-container:hover .logo-track {
    animation-play-state: paused;
}


/* Om Oss Sida (Team Grid) */
.page-padding {
    padding-top: 40px;
    padding-bottom: 60px;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.team-member {
    position: relative;
    overflow: hidden;
    cursor: pointer;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.team-member img {
    display: block;
    width: 100%;
    height: 450px; /* Sätt en fast höjd */
    object-fit: cover; /* Ser till att bilden täcker ytan utan att förvrängas */
}

.hover-infozz, .hover-info {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    color: var(--white-color);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 20px;
    opacity: 0;
    transition: opacity 0.4s ease;
    box-sizing: border-box;
}

.hover-infozz {
    background-color: rgba(0, 123, 255, 0.8);
}

.hover-info {
    background-color: rgba(255, 255, 255, 0.3);
}

.team-member:hover .hover-info {
    opacity: 1;
}

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

.hover-infozz h3, .hover-info h3 {
    margin-top: 0;
    margin-bottom: 5px;
    color: var(--white-color);
    font-size: 1.3em;
}

.hover-infozz p, .hover-info p {
    margin: 5px 0;
    font-size: 0.95em;
    color: var(--white-color);
}

.hover-info.text-white h3,
.hover-info.text-white p {
    color: var(--white-color);
}

.hover-info.text-black h3,
.hover-info.text-black p {
    color: var(--black-color);
}

/* Justering för ljusare overlay för svart text, om så önskas */
.hover-info.text-black {
    background-color: rgba(255, 255, 255, 0.45);
}

/* === NY STYLING FÖR SYNLIG INFORMATION === */
.team-member-info {
    padding: 20px 15px;
}

.team-member-info h3 {
    margin: 0 0 8px 0;
    font-size: 1.2em;
}

.team-member-info p {
    margin: 0;
    font-size: 0.9em;
}

.team-member-info a {
    color: var(--primary-color);
    word-break: break-all; /* Förhindrar overflow från långa e-postadresser */
}

.team-member-info a:hover {
    color: var(--primary-color);
}
/* === SLUT PÅ NY STYLING === */

/* === NY STYLING FÖR KONTAKTSEKTION === */
hr {
    border: 0;
    height: 1px;
    background-color: #ccc;
    margin: 60px auto;
    max-width: 80%;
}

.contact-info {
    text-align: center;
    padding: 30px;
    background-color: var(--footer-bg);
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    max-width: 600px;
    margin: 0 auto;
}

.contact-info h2 {
    margin-top: 0;
    margin-bottom: 20px;
}

.contact-info p {
    margin: 10px 0;
    font-size: 1.1em;
}
/* === SLUT PÅ NY STYLING === */


/* Footer */
footer {
    background-color: var(--footer-bg);
    color: #6c757d;
    padding: 20px 0;
    margin-top: 60px;
    text-align: center;
    font-size: 0.9em;
    border-top: 1px solid var(--secondary-color);
}

footer .logo img {
    max-height: 100px;
}

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




/* =========================
   OFFICE GALLERY (Services)
   ========================= */

.office-gallery {
    display: grid;
    /* På dator: 4 kolumner med lika bredd */
    grid-template-columns: repeat(4, 1fr); 
    gap: 15px; /* Mellanrum mellan bilderna */
    margin-top: 40px;
    margin-bottom: 20px;
    opacity: 0.8; /* Hela galleriet är lite diskret */
}

.gallery-img {
    width: 100%;
    height: 170px; /* En låg fast höjd så de blir som en "bård" */
    object-fit: cover; /* VIKTIGT: Detta gör att bilderna fyller rutan snyggt utan att sträckas, oavsett om de är stående/liggande */
    border-radius: 6px;
    
    /* Effekter för "fade" looken */
    opacity: 0.6; 
    filter: grayscale(100%); /* Gör dem svartvita för att inte störa */
    transition: all 0.4s ease;
}

/* När man för musen över en bild */
.gallery-img:hover {
    opacity: 1;
    filter: grayscale(0%); /* Färgen kommer tillbaka */
    transform: scale(1.02); /* Liten, liten förstoring */
}

/* Mobilanpassning för galleriet */
@media (max-width: 768px) {
    .office-gallery {
        /* På mobil/platta: 2 kolumner (2x2 rutnät) */
        grid-template-columns: repeat(2, 1fr);
    }
    
    .gallery-img {
        height: 120px; /* Lite lägre på mobil */
    }
}
