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

body {
    background-color: rgb(239, 239, 239);
    font-family: Arial, sans-serif;
    color: #333;
    line-height: 1.6;
}

#toppmeny {
    background-color: #CE8C2C;
    height: 600px;
}

.navbar {
    width: 100%;
    position: absolute;
    top: 0;
    transition: all 0.3s ease-in-out;
}

.nav-wrapper {
    width: 100%;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    position: relative;
}

.navbar.scrolled {
    background-color: #333;
    z-index: 1000;
    position: fixed;
    top: 0;
}

.navbar.scrolled .nav-button {
    color: white;
}

.navbar.scrolled .dropdown-label {
    color: white;
}

.navbar.scrolled .arrow {
    border-top: 5px solid white;
}

.navbar.scrolled .logo {
    color: white;
}

.nav-button:hover {
    color: white;
    transform: translateY(-2px);
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;      
    z-index: 20;
    margin-left: 10px;
    transition: all 0.3s ease;
    text-decoration: none;
    cursor: pointer;
    color: #252424;
}

.nav-items {
    display: flex;
    align-items: center;
    gap: 25px;
    padding-right: 25px;
}

.nav-button {
    padding: 8px 16px;
    border: none;
    background: none;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    color: #252424;
}

.nav-button:hover {
    color: white;
    transform: translateY(-2px);
}

.dropdown {
    position: relative;
}

.dropdown-label {
    color: #252424;
    display: flex;
    align-items: center;
    cursor: pointer;
    gap: 5px;
    padding: 8px 16px;
    transition: all 0.3s ease;
}

.dropdown-label:hover {
    color: white;
    transform: translateY(-2px);
}

.arrow {
    width: 0;
    height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 5px solid #252424;
    transition: transform 0.3s ease;
    margin-left: 5px;
}

.dropdown-label:hover .arrow {
    border-top-color: white;
}

.dropdown-toggle {
    display: none;
}

.dropdown-content {
    position: absolute;
    background-color: #444;
    min-width: 160px;
    box-shadow: 0 8px 16px rgba(0,0,0,0.2);
    z-index: 30;
    top: 100%;
    right: 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-20px);
    transition: all 0.3s ease;
    pointer-events: none;
    border-radius: 5px;
    overflow: hidden;
}

.dropdown-toggle:checked ~ .dropdown-content {
    opacity: 1;
    visibility: visible;
    transform: translateY(5px);
    pointer-events: auto;
}

.dropdown-toggle:checked ~ .dropdown-label .arrow {
    transform: rotate(180deg);
    border-top-color: white;
}

.dropdown-content a {
    color: white;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    transition: all 0.2s ease;
}

.dropdown-content a:hover {
    background-color: #555;
    color: #f8b400;
}

#menu-toggle {
    display: none;
}

.menu-icon {
    display: none;
    cursor: pointer;
    padding: 10px;
    z-index: 20;
}

.bar {
    width: 25px;
    height: 3px;
    background-color: #252424;
    margin: 3px 0;
    transition: all 0.3s ease;
}

.navbar.scrolled .bar {
    background-color: white;
}

@media screen and (max-width: 1100px) {

    .topp-boks p {
        font-size: 16px;
    }

    .menu-icon {
        display: block;
    }

    .nav-items {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: #333;
        padding: 0;
        box-shadow: 0 2px 5px rgba(0,0,0,0.1);
        gap: 0;
        z-index: 10;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease-in-out, padding 0.3s ease-in-out;
    }

    #menu-toggle:checked ~ .nav-items {
        max-height: 500px; 
        padding: 20px;
    }

    .dropdown-content {
        position: static;
        width: 100%;
        box-shadow: none;
        margin: 0;
        transform: none;
        max-height: 0;
        padding: 0;
        overflow: hidden;
        transition: max-height 0.3s ease-in-out, padding 0.3s ease-in-out;
    }

    .dropdown-toggle:checked ~ .dropdown-content {
        max-height: 200px; 
        padding: 10px 0;
        transform: none;
    }

    #menu-toggle:checked ~ .menu-icon .bar:nth-child(1) {
        transform: translateY(6px) rotate(45deg);
        transition: transform 0.3s ease;
    }

    #menu-toggle:checked ~ .menu-icon .bar:nth-child(2) {
        opacity: 0;
        transition: opacity 0.2s ease;
    }

    #menu-toggle:checked ~ .menu-icon .bar:nth-child(3) {
        transform: translateY(-6px) rotate(-45deg);
        transition: transform 0.3s ease;
    }

    .bar {
        transition: transform 0.3s ease, opacity 0.2s ease;
    }

    .nav-button, 
    .dropdown,
    .dropdown-label{
        width: 100%;
        margin: 5px 0;
    }

    .arrow {
        border-top-color: white;
    }

    .nav-button {
        text-align: center;
        padding: 12px 16px;
        color: white;
    }

    .dropdown {
        margin: 0;
    }

    .dropdown-label {
        justify-content: center;
        padding: 12px 16px;
        width: 100%;
        color: white;
    }

    .nav-button:hover,
    .dropdown-label:hover {
        transform: none;
    }
}

.hero-section-container {
  margin: 0;
  font-family: Arial, sans-serif;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 500px;
  padding-top: 100px;
}

.hero-section {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1400px;
  width: 90%;
  padding: 20px;
  box-sizing: border-box;
}

.content {
  max-width: 52%;
  margin-top: 20px;
}

.content h1 {
  font-size: 4rem;
  margin-bottom: 10px;
  font-weight: bold;
}

.content p {
  font-size: 1.5rem;
  line-height: 1.5;
  margin-bottom: 30px;
}

.content a {
  display: inline-block;
  padding: 10px 20px;
  background-color: #000;
  color: #fff;
  text-decoration: none;
  border-radius: 4px;
  font-size: 0.9rem;
  font-weight: bold;
}

.image {
  width: 44%;
  height: 500px;
  max-width: none;
  margin-bottom: 0;
  background-image: url(../Bilder/jamie-street-_94HLr_QXo8-unsplash.jpg);
  background-size: cover;
  background-position: center;
  border-radius: 8px;
  aspect-ratio: 3 / 3; 
  object-fit: cover;
  margin-top: auto;
  margin-right: -40px;
  margin-top: 100px;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    padding: 60px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.service-card {
    background: white;
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
}

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

.service-icon {
    font-size: 3rem;
    margin-bottom: 20px;
}

.service-card h2 {
    color: #333;
    margin-bottom: 15px;
    font-size: 1.5rem;
}

.service-card p {
    color: #666;
    margin-bottom: 20px;
    line-height: 1.6;
}

.service-btn {
    display: inline-block;
    padding: 12px 30px;
    background-color: #f8b400;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

.service-btn:hover {
    background-color: orange;
}

@media screen and (max-width: 768px) {
    .services-hero-content h1 {
        font-size: 2.5rem;
    }

    .services-grid {
        padding: 40px 20px;
    }

    .service-card {
        padding: 20px;
    }
}

footer {
    background-color: #333;
    color: white;
    padding: 40px 20px;
    clear: both;
    z-index: 1;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
}

.footer-section h3 {
    color: #f8b400;
    margin-bottom: 20px;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 10px;
}

.footer-section ul li a {
    color: white;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section ul li a:hover {
    color: #f8b400;
}

.social-icons {
    display: flex;
    gap: 20px;
    margin-top: 15px;
}

.social-link {
    color: white;
    transition: color 0.3s ease;
}

.social-link:hover {
    color: #CE8C2C;
}

.social-link svg {
    width: 24px;
    height: 24px;
}

@media screen and (max-width: 1250px) {
    .navbar {
        width: 100%;
    }

    #toppmeny {
        height: 400px;
    }

    .hero-section-container {
        height: auto;
        padding-top: 80px;
        margin-bottom: 20px;
    }

    .hero-section {
        flex-direction: column;
        align-items: center;
        text-align: center;
        width: 95%;
        padding: 10px;
    }

    .hero-section .content {
        max-width: 100%;
        margin-bottom: 20px;
    }

    .hero-section .content h1 {
        font-size: 2.5rem;
        margin-bottom: 15px;
    }

    .hero-section .content p {
        font-size: 1.2rem;
        margin-bottom: 20px;
    }

    .hero-section .image {
        display: none;
        width: 0;
        height: 0;
    }
}

.why-love-us {
    padding: 2rem;
}

.content1 {
    width: 1200px;
    margin: 0 auto;
    margin-top: 50px;
    display: flex;
    flex-direction: row;
}

.why-love-us h1 {
    font-size: 2.5rem;
    font-weight: bold;
    color: #CE8C2C;
    width: auto;
    white-space: nowrap;
    margin-right: 100px;
}

.content-text {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.why-love-us p {
    margin: 0;
    font-size: 1.7rem;
    line-height: 1.6;
}

@media screen and (max-width: 1250px) {
    .why-love-us {
        padding: 1rem;
    }

    .content1 {
        width: 100%;
        margin-top: 20px;
        flex-direction: column;
        text-align: center;
        align-items: center;
    }

    .why-love-us h1 {
        font-size: 2rem;
        margin-right: 0;
        margin-bottom: 15px;
    }

    .content-text {
        width: 90%;
        gap: 0.5rem;
    }

    .why-love-us p {
        font-size: 1.2rem;
        text-align: left;
    }
}