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

/* Smidig skrollning */
html {
    scroll-behavior: smooth;
}

/* Body Styling */
body {
    font-family: 'Helvetica';
    color: #172e23; /* Mörkgrön text */
    background-color: #FFFFFF; /* Vit bakgrund */
}

/* Navbar */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    background-color: rgba(255, 255, 255, 0); /* Genomskinlig bakgrund som standard */
    transition: background-color 0.3s ease-in-out;
}

.navbar.scrolled {
    background-color: rgba(255, 255, 255, 1); /* Vit bakgrund efter skroll */
}

.navbar .logo {
    text-decoration: none;
    color: #172e23; /* Mörkgrön logotext */
    font-size: 24px;
    font-weight: normal;
    margin-left: 20px; /* Ökad marginal för desktop */
    margin-top:10px
}

/* Logo styling */
.logo img {
    height: 40px; /* Justera höjden på loggan */
    width: auto;  /* Bibehåller bildens proportioner */
    transition: all 0.3s ease-in-out;
}

.nav-menu {
    display: flex;
    list-style: none;
    margin: 0;
    flex-grow: 1;
    justify-content: center;
}

.nav-menu li {
    margin-right: 20px;
}

.nav-menu li a {
    text-decoration: none;
    color: #FFFFFF; /* Vit text i menyn */
    font-size: 18px;
    font-weight: normal;
}

/* "Felanmälan"-knapp i navbar */
.nav-button.right {
    background-color: #00352F; /* Mörkgrön bakgrund */
    border: 2px solid #00352F;
    color: #FFFFFF; /* Vit text */
    padding: 10px 20px;
    text-decoration: none;
    font-size: 18px;
    font-weight: normal;
    border-radius: 0px;
    transition: background-color 0.3s, color 0.3s, border 0.3s;
    margin-right: 20px; /* Ökad marginal till höger i desktopläge */
}

.nav-button.right:hover {
    background-color: #FFFFFF;
    color: #172e23; /* Mörkgrön text vid hover */
    border: 2px solid #00352F;
}

/* Mobile Menu */
.menu-icon {
    display: none;
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
}

.menu-icon .bar {
    width: 25px;
    height: 3px;
    background-color: #00352F;
    border-radius: 0px;
}

.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%; /* Justerat till höger */
    background-color: #ffffff;
    width: 100%;
    height: 100%;
    z-index: 1001;
    padding: 20px;
    text-align: center;
    overflow-y: auto;
    transition: right 0.3s ease-in-out; /* Flytta ut från höger */
}

.mobile-menu.active {
    right: 0;
}

.close-menu {
    font-size: 36px;
    font-weight: normal;
    color: #172e23;
    position: absolute;
    top: 20px;
    right: 20px;
    cursor: pointer;
}

.mobile-menu ul {
    list-style: none;
    padding: 0;
    margin-top: 50px; /* Justerat för att ge plats åt close-menu */
}

.mobile-menu ul li {
    margin: 20px 0;
}

.mobile-menu ul li a {
    color: #172e23;
    font-size: 24px;
    text-decoration: none;
    font-weight: normal;
}

.nav-button.mobile {
    display: block;
    margin-top: 20px;
    background-color: #00352F;
    color: #FFFFFF;
    border-radius: 0px;
    padding: 10px 20px;
    text-decoration: none;
    font-size: 24px; /* Samma storlek som menyalternativen */
    font-weight: normal;
    border: 2px solid #00352F;
}

.nav-button.mobile:hover {
    background-color: #FFFFFF;
    color: #172e23; /* Mörkgrön text vid hover */
    border: 2px solid #00352F;
}

/* Hero Section */
.hero {
    height: 100vh;
    background: url('hero-background.jpg') no-repeat center center/cover;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 53, 47, 0.3);
    z-index: 1;
}

.hero-text {
    position: relative;
    text-align: center;
    z-index: 2;
}

.hero-text h1 {
    font-size: 48px;
    margin-bottom: 40px;
    font-weight: normal;
    color: #FFFFFF; /* Vit text för rubriken */
}

/* "Ställ dig i vår bostadskö"-knapp i hero-sektionen */
.hero-button {
    background-color: #00352F; /* Mörkgrön bakgrund */
    border: 2px solid #00352F;
    color: #FFFFFF; /* Vit text */
    padding: 10px 20px;
    text-decoration: none;
    font-size: 18px;
    font-weight: normal;
    border-radius: 0px;
    transition: background-color 0.3s, color 0.3s, border 0.3s;
}

.hero-button:hover {
    background-color: #FFFFFF;
    color: #172e23; /* Mörkgrön text vid hover */
    border: 2px solid #00352F;
}

/* White Section */
.white-section {
    padding: 160px 120px;
    background-color: #FFFFFF; /* Vit bakgrund */
    color: #172e23; /* Mörkgrön text */
    text-align: left;
}

.white-section h2 {
    font-size: 36px;
    margin-bottom: 20px;
    font-weight: normal;
}

.white-section p {
    font-size: 18px;
    font-weight: normal;
    margin-bottom: 20px;
    line-height: 1.6;
}

/* Bildsektioner */
.image-section {
    height: 50vh; /* Hälften av höjden av herobilden */
    background-size: cover;
    background-position: center;
    position: relative;
}

#image-section-1 {
    background-image: url('image-1.jpg'); /* Första bildens URL */
}

#image-section-2 {
    background-image: url('image-2.jpg'); /* Andra bildens URL */
}

#image-section-3 {
    background-image: url('image-3.jpg'); /* Tredje bildens URL */
}

.image-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1;
}

/* Footer Styling */
.footer {
    background-color: #00352F; /* Mörkgrön bakgrund */
    color: #FFFFFF;
    padding: 60px 20px 20px;
    text-align: left;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    padding-bottom: 40px;
}

.footer-left,
.footer-middle,
.footer-right {
    flex: 0 1 auto;
    margin: 0 40px;
    text-align: left;
}

.footer-logo-img {
    height: 50px; /* Justera höjden på loggan i footern */
    width: auto;  /* Bibehåller bildens proportioner */
    margin-bottom: 20px;
}

.footer-left p {
    margin: 5px 0;
    line-height: 1.6;
    font-weight: normal;
}

.footer-left a {
    color: #FFFFFF;
    text-decoration: none;
}

.footer-middle h2,
.footer-right ul li:first-child {
    margin-bottom: 10px; /* Ökat radavstånd nedåt från rubriker */
    font-weight: normal;
}

.footer-middle ul,
.footer-right ul {
    list-style: none;
    padding: 0;
}

.footer-middle ul li,
.footer-right ul li {
    margin-bottom: 10px;
}

.footer-middle ul li a,
.footer-right ul li a {
    color: #FFFFFF;
    text-decoration: none;
    font-weight: normal;
}

/* "Journummer" styling */
.footer-right ul li:first-child {
    font-size: 24px;
    font-weight: normal;
    margin-bottom: 5px;
}

.footer-right ul li:last-child {
    font-size: 18px;
    font-weight: normal;
    margin-top: 0;
}

/* Footer bottom */
.footer-bottom {
    text-align: center;
    border-top: 1px solid #FFFFFF; /* Vit linje */
    padding-top: 20px;
    margin-top: 40px;
    font-size: 14px;
}

/* Kundservice link styling */
.link {
    color: #172e23;
    text-decoration: underline;
}

/* Våra Fastigheter Section */
.properties-section {
    background-color: #fff; /* Vit bakgrund */
    padding: 160px 120px;
    text-align: left;
}

.properties-section h2 {
    font-size: 36px;
    margin-bottom: 20px;
    font-weight: normal;
    color: #172e23; /* Mörkgrön text */
}

.properties-section p {
    font-size: 18px;
    font-weight: normal;
    margin-bottom: 40px;
    line-height: 1.6;
    color: #172e23; /* Mörkgrön text */
}

.properties-gallery {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.property-item {
    flex: 0 1 calc(25% - 20px); /* Anpassa bredden på varje fastighetsblock */
    background-color: #FFFFFF; /* Vit bakgrund */
    border-radius: 0px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.property-item img {
    width: 100%;
    height: 260px;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    display: block;
}

.property-item p {
    padding: 10px;
    font-size: 16px;
    color: #172e23; /* Mörkgrön text */
}

/* Kundservice Section */
.service-section {
    background-color: #FFFFFF; /* Vit bakgrund */
    color: #172e23; /* Mörkgrön text */
    padding: 160px 120px;
    text-align: left;
}

.service-section h2 {
    font-size: 36px;
    margin-bottom: 20px;
    font-weight: normal;
    color: #172e23; /* Mörkgrön text */
}

.service-section h3 {
    font-size: 28px;
    margin-bottom: 15px;
    font-weight: normal;
    color: #172e23; /* Mörkgrön text */
}

.service-section h4 {
    font-size: 22px;
    margin-top: 20px;
    margin-bottom: 10px;
    font-weight: normal;
    color: #172e23; /* Mörkgrön text */
}

.service-section p {
    font-size: 18px;
    font-weight: normal;
    margin-bottom: 20px;
    line-height: 1.6;
    color: #172e23; /* Mörkgrön text */
}

/* "Ställ dig i vår bostadskö"-knapp i vita sektionen */
.cta-button {
    display: inline-block;
    padding: 15px 30px;
    border: 2px solid #00352F; /* Mörkgrön kant */
    color: #FFFFFF; /* Vit text */
    background-color: #00352F; /* Mörkgrön bakgrund */
    text-decoration: none;
    font-size: 18px;
    font-weight: normal;
    margin-top: 40px;
    border-radius: 0px;
    transition: background-color 0.3s, color 0.3s, border 0.3s;
    margin-bottom: 60px;
}

.cta-button:hover {
    background-color: #FFFFFF; /* Vit bakgrund vid hover */
    color: #172e23; /* Mörkgrön text vid hover */
    border: 2px solid #00352F;
}

/* Om grnbck home Section */
.about-section {
    padding: 160px 120px;
    background-color: #FFFFFF;
    color: #172e23; /* Mörkgrön text */
    text-align: center;
}

.about-section h2 {
    font-size: 36px;
    font-weight: normal;
    margin-bottom: 20px;
}

.about-section p {
    font-size: 18px;
    font-weight: normal;
    margin-bottom: 40px;
    line-height: 1.6;
}

.about-image {
    width: 100%;
    height: 50vh; /* Justerad höjd */
    background-image: url('about-image.jpg');
    background-size: cover;
    background-position: center;
    position: relative;
    border-radius: 0px;
}

.about-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5); /* Samma filter som tidigare bilder */
    z-index: 1;
    border-radius: 0px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .logo {
        margin-left: 20px; /* Minskad marginal till vänster för loggan i mobilmode */
    }

    .white-section,
    .properties-section,
    .service-section,
    .about-section {
        padding: 140px 40px; /* Minskad padding för mobilversionen */}

    .nav-menu {
        display: none; /* Dölj den vanliga menyn */
    }

    .nav-button.right {
        display: none; /* Dölj "Felanmälan Sidor"-knappen i mobilversionen */
    }

    .menu-icon {
        display: flex; /* Visa hamburgermenyn */
        margin-right: 20px
    }

    .properties-gallery {
        flex-direction: column;
    }

    .property-item {
        flex: 1 1 100%;
    }

    .footer-content {
        flex-direction: column;
        align-items: center;
    }

    .footer-left,
    .footer-middle,
    .footer-right {
        margin: 20px 0;
        text-align: center;
    }

    .footer-left h2,
    .footer-middle h2,
    .footer-right ul li:first-child {
        margin-bottom: 10px; /* Minska radavstånd för mobilversionen */
    }
}
/* Specifik stil för klickbara telefonnummer */
.no-style-phone {
    color: inherit; /* Matchar textfärgen med omgivande text */
}

.no-style-phone:hover,
.no-style-phone:focus,
.no-style-phone:active {
    color: inherit; /* Behåll samma färg vid hover, fokus och aktivt tillstånd */
}
/* Anpassning av HomeQ-widgeten */

/* Bakgrundsfärg för hela widgeten */
#homeq-web-widget,
#homeq-web-widget > div,
#homeq-web-widget > div > div,
#homeq-web-widget .widget-bg-color {
    background-color: #FFFFFF !important; /* Vit bakgrund för hela widgeten */
}

/* Stil för etiketten "Kommun" med ökad marginal nedåt */
#homeq-web-widget .widget-label {
    font-family: 'Helvetica' !important;
    color: #172e23 !important;
    font-weight: normal !important;
    font-size: 18px !important;
    margin-bottom: 40px !important; /* Ökat radavstånd nedåt */
    padding-left: 10px !important;
}

/* Stil för dropdown-menyn, inklusive "Alla" */
#homeq-web-widget .homeq-select,
#homeq-web-widget select {
    font-family: 'Helvetica', sans-serif !important;
    font-weight: normal !important;
    font-size: 18px !important;
    color: #FFF !important; /* Vit text */
    background-color: #00352F !important; /* Mörkgrön bakgrund */
    border-radius: 0px !important; /* Rundade kanter */
    padding-left: 10px !important;
    text-align: left !important; /* Texten "Alla" centrerad till vänster */
    border: 2px solid #00352F !important; /* Grön kant */
    margin-top: 10px !important; /* Ökat avstånd från etiketten "Kommun" */
}

/* Stil för slider-rail (bakgrunden för sliden) */
#homeq-web-widget .rc-slider-rail {
    background-color: #dddddd !important; /* Ljusgrå färg för sliderbakgrunden */
}

/* Stil för slider-track (framstegen på sliden) */
#homeq-web-widget .rc-slider-track {
    background-color: #00352F !important; /* Mörkgrön färg för sliderns framsteg */
}

/* Stil för slider-handle (handtaget för sliden) */
#homeq-web-widget .rc-slider-handle {
    border: solid 2px #00352F !important; /* Grön kant */
    background-color: #FFFFFF !important; /* Vit färg för sliderhandtaget */
    border-radius: 50%; /* Rundat handtag */
}

/* Stil för pagineringsknapparna */
#homeq-web-widget .pagination-button {
    background-color: #ffffff !important;
    border: solid 1px #00352F !important; /* Grön kant */
    border-radius: 0px !important; /* Rundade hörn */
}

/* Stil för aktiv pagineringsknapp */
#homeq-web-widget .pagination-button-active {
    background-color: #00352F !important;
    border: none !important;
}

/* Stil för texten i pagineringsknapparna */
#homeq-web-widget .pagination-button-text {
    color: #172e23 !important;
}

/* Stil för aktiv text i pagineringsknapparna */
#homeq-web-widget .pagination-button-text-active {
    color: #ffffff !important;
}

/* Stil för pagineringspunkterna */
#homeq-web-widget .pagination-dots-container {
    background-color: #ffffff !important;
    border: solid 1px #dddddd !important;
    border-radius: 0px !important; /* Rundade hörn */
}

/* Stil för pagineringspunkter */
#homeq-web-widget .pagination-dots {
    color: #172e23 !important;
}

/* Skarpa hörn på lägenhetsbilder istället för rundade */
#homeq-web-widget img,
#homeq-web-widget [class*="image" i],
#homeq-web-widget [class*="card" i],
#homeq-web-widget [class*="listing" i],
#homeq-web-widget [class*="thumbnail" i] {
    border-radius: 0 !important;
}
