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

:root {
    --primary-color: #00274b;
    --accent-color: #e4a534;
    --white: #ffffff;
    --light-gray: #f5f5f5;
    --text-dark: #333333;
    --text-light: #666666;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--white);
    overflow-x: hidden;
    width: 100%;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
}

/* Header / Navigation */
header {
    background-color: var(--primary-color);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.navbar {
    padding: 1rem 0;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

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

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

/* WhatsApp Floating Button */
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 30px;
    right: 30px;
    background-color: #25D366;
    color: #fff;
    border-radius: 50%;
    text-align: center;
    font-size: 30px;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.3s ease;
    animation: pulse 2s infinite;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 25px rgba(37, 211, 102, 0.6);
}

@keyframes pulse {
    0% {
        box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
    }
    50% {
        box-shadow: 0 4px 25px rgba(37, 211, 102, 0.7);
    }
    100% {
        box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
    }
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-menu a {
    color: var(--white);
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.3s;
    white-space: nowrap;
}

.nav-menu a:hover {
    color: var(--accent-color);
}

.burger {
    display: none;
    cursor: pointer;
}

.burger div {
    width: 25px;
    height: 3px;
    background-color: var(--white);
    margin: 5px;
    transition: all 0.3s;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    height: 100vh;
    background: linear-gradient(rgba(0, 39, 75, 0.7), rgba(0, 39, 75, 0.7)), 
                url('images/hero.jpg') center/cover;
    background-attachment: fixed;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    margin-top: 70px;
    width: 100%;
}

.hero-content {
    padding: 20px;
    max-width: 100%;
}

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

.hero-subtitle {
    color: var(--white);
    font-size: 1.5rem;
    margin-bottom: 2rem;
    word-wrap: break-word;
}

.cta-button {
    display: inline-block;
    background-color: var(--accent-color);
    color: var(--white);
    padding: 1rem 2.5rem;
    text-decoration: none;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: bold;
    transition: transform 0.3s, box-shadow 0.3s;
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(228, 165, 52, 0.3);
}

/* Section Styles */
.section {
    padding: 5rem 0;
    width: 100%;
    overflow-x: hidden;
}

.section-title {
    font-size: 2.5rem;
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
    word-wrap: break-word;
    padding: 0 15px;
}

.section-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background-color: var(--accent-color);
    margin: 1rem auto;
}

/* Services Grid (Hemstädning) */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    width: 100%;
}

.service-card {
    background: var(--white);
    padding: 2.5rem 2rem;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s;
    max-width: 100%;
}

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

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

.service-card h3 {
    color: var(--primary-color);
    font-size: 1.4rem;
    margin-bottom: 1rem;
    word-wrap: break-word;
    hyphens: auto;
}

.service-card p {
    color: var(--text-light);
    line-height: 1.8;
    word-wrap: break-word;
}

/* Split Layout (Kontorsstädning) */
.section-split {
    background-color: var(--light-gray);
}

.split-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.split-content .section-title {
    text-align: left;
}

.split-content .section-title::after {
    margin: 1rem 0;
}

.service-list {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.service-item {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
}

.service-icon-small {
    font-size: 2rem;
    color: var(--accent-color);
    min-width: 50px;
    flex-shrink: 0;
}

.service-item h3 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    font-size: 1.3rem;
    word-wrap: break-word;
    hyphens: auto;
}

.service-item p {
    color: var(--text-light);
    line-height: 1.8;
    word-wrap: break-word;
}

.split-image {
    height: 500px;
    border-radius: 15px;
    background-size: cover;
    background-position: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.office-image {
    background-image: url('images/office.jpg');
}

/* Dark Section (Miljövänlig) */
.section-dark {
    background-color: var(--primary-color);
}

.section-dark .section-title {
    color: var(--white);
}

.section-dark .section-title::after {
    background-color: var(--accent-color);
}

.eco-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.eco-card {
    background: var(--white);
    padding: 3rem 2rem;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    max-width: 100%;
}

.eco-card h3 {
    color: var(--primary-color);
    font-size: 1.4rem;
    margin-bottom: 1rem;
    word-wrap: break-word;
    hyphens: auto;
}

.eco-card p {
    color: var(--text-light);
    line-height: 1.8;
    word-wrap: break-word;
}

/* Timeline Layout (Renovering) */
.timeline-layout {
    max-width: 800px;
    margin: 0 auto;
}

.timeline-item {
    display: flex;
    gap: 2rem;
    margin-bottom: 3rem;
    align-items: flex-start;
}

.timeline-icon {
    font-size: 2.5rem;
    color: var(--accent-color);
    background: var(--light-gray);
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.timeline-content h3 {
    color: var(--primary-color);
    font-size: 1.4rem;
    margin-bottom: 0.5rem;
    word-wrap: break-word;
    hyphens: auto;
}

.timeline-content p {
    color: var(--text-light);
    line-height: 1.8;
    word-wrap: break-word;
}

/* Horizontal Cards (VVS) */
.section-light {
    background-color: var(--light-gray);
}

.horizontal-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.horizontal-card {
    background: var(--white);
    padding: 2.5rem 2rem;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    transition: transform 0.3s;
    max-width: 100%;
}

.horizontal-card:hover {
    transform: translateY(-5px);
}

.horizontal-card h3 {
    color: var(--primary-color);
    font-size: 1.3rem;
    margin-bottom: 1rem;
    word-wrap: break-word;
    hyphens: auto;
}

.horizontal-card p {
    color: var(--text-light);
    line-height: 1.8;
    word-wrap: break-word;
}

/* Image Grid (Extra tjänster) */
.image-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.grid-item {
    height: 350px;
    border-radius: 15px;
    background-size: cover;
    background-position: center;
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.grid-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 39, 75, 0.75);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 2rem;
    text-align: center;
    transition: background 0.3s;
}

.grid-item:hover .grid-overlay {
    background: rgba(228, 165, 52, 0.85);
}

.grid-icon {
    font-size: 3rem;
    color: var(--white);
    margin-bottom: 1.5rem;
}

.grid-overlay h3 {
    color: var(--white);
    font-size: 1.4rem;
    margin-bottom: 1rem;
    word-wrap: break-word;
    hyphens: auto;
}

.grid-overlay p {
    color: var(--white);
    line-height: 1.8;
    word-wrap: break-word;
}

.carpet-item {
    background-image: url('images/new_carpet.jpg');
}

.sofa-item {
    background-image: url('images/new_sofa.jpg');
}

.window-item {
    background-image: url('images/new_window.jpg');
}

/* Gallery Section */
.gallery-section {
    padding: 5rem 0;
    background-color: var(--light-gray);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.gallery-item {
    height: 300px;
    border-radius: 10px;
    background-size: cover;
    background-position: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s;
}

.gallery-item:hover {
    transform: scale(1.05);
}

.gallery-1 {
    background-image: url('images/new_carpet.jpg');
}

.gallery-2 {
    background-image: url('images/new_sofa.jpg');
}

.gallery-3 {
    background-image: url('images/new_window.jpg');
}

.gallery-4 {
    background-image: url('images/hero.jpg');
}

/* CTA Section */
.cta-section {
    padding: 5rem 0;
    background-color: var(--primary-color);
    text-align: center;
}

.cta-section h2 {
    color: var(--white);
    font-size: 2.5rem;
    margin-bottom: 1rem;
    word-wrap: break-word;
    padding: 0 15px;
}

.cta-section p {
    color: var(--white);
    font-size: 1.2rem;
    margin-bottom: 2rem;
    word-wrap: break-word;
    padding: 0 15px;
}

.cta-button-large {
    display: inline-block;
    background-color: var(--accent-color);
    color: var(--white);
    padding: 1.2rem 3rem;
    text-decoration: none;
    border-radius: 50px;
    font-size: 1.2rem;
    font-weight: bold;
    transition: transform 0.3s, box-shadow 0.3s;
}

.cta-button-large:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(228, 165, 52, 0.4);
}

/* Contact Section */
.contact-section {
    padding: 5rem 0;
}

.contact-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    max-width: 900px;
    margin: 0 auto;
}

.contact-item {
    display: flex;
    gap: 1.5rem;
    align-items: center;
    padding: 2rem;
    background: var(--light-gray);
    border-radius: 10px;
    max-width: 100%;
}

.contact-icon {
    font-size: 2.5rem;
    color: var(--accent-color);
    flex-shrink: 0;
}

.contact-item h3 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    font-size: 1.3rem;
    word-wrap: break-word;
}

.contact-item a {
    color: var(--text-light);
    text-decoration: none;
    font-size: 1.1rem;
    transition: color 0.3s;
    word-wrap: break-word;
    word-break: break-all;
}

.contact-item a:hover {
    color: var(--accent-color);
}

/* Footer */
footer {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 3rem 0 1.5rem;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    gap: 2rem;
}

.footer-logo h3 {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
}

.footer-logo p {
    color: rgba(255,255,255,0.8);
    word-wrap: break-word;
}

.footer-contact p {
    margin-bottom: 0.5rem;
    color: rgba(255,255,255,0.9);
    word-wrap: break-word;
}

.footer-contact img {
    margin-right: 0.5rem;
    width: 20px;
    height: 20px;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.1);
}

.footer-bottom p {
    color: rgba(255,255,255,0.7);
}

/* Icon image sizing */
.service-icon img {
    width: 100px;
    height: 100px;
    margin-bottom: 1.5rem;
    object-fit: contain;
}

.service-icon-small img {
    width: 70px;
    height: 70px;
    object-fit: contain;
}

.timeline-icon {
    background: var(--light-gray);
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.timeline-icon img {
    width: 60px;
    height: 60px;
    object-fit: contain;
}

.grid-icon img {
    width: 100px;
    height: 100px;
    margin-bottom: 1.5rem;
    object-fit: contain;
}

.contact-icon img {
    width: 80px;
    height: 80px;
    object-fit: contain;
}

.whatsapp-float img {
    width: 40px;
    height: 40px;
    object-fit: contain;
}

/* Features Section Styles */
.features-section {
    background-color: #002e5f;
    color: #f5c35c;
    padding: 5rem 0;
    text-align: center;
}

.features-section .section-title {
    color: #f5c35c;
    margin-bottom: 2rem;
}

.features-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 2rem;
    margin-top: 3rem;
}

.feature-item {
    flex: 1 1 30%;
    margin-bottom: 2rem;
    min-width: 250px;
}

.feature-item h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #f5c35c;
    word-wrap: break-word;
}

.feature-item p {
    font-size: 1rem;
    color: #f5c35c;
    word-wrap: break-word;
}

/* Responsive Design */
@media screen and (max-width: 768px) {
    .nav-menu {
        position: fixed;
        right: -100%;
        top: 70px;
        flex-direction: column;
        background-color: var(--primary-color);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        padding: 2rem 0;
        gap: 0;
    }

    .nav-menu li {
        padding: 1rem 0;
    }

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

    .burger {
        display: block;
    }

    .burger.active .line1 {
        transform: rotate(-45deg) translate(-5px, 6px);
    }

    .burger.active .line2 {
        opacity: 0;
    }

    .burger.active .line3 {
        transform: rotate(45deg) translate(-5px, -6px);
    }

    .hero {
        background-attachment: scroll;
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.2rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .split-layout {
        grid-template-columns: 1fr;
    }

    .split-image {
        height: 350px;
    }

    .split-content .section-title {
        text-align: center;
    }

    .split-content .section-title::after {
        margin: 1rem auto;
    }

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

    .services-grid,
    .eco-cards,
    .horizontal-cards,
    .image-grid {
        grid-template-columns: 1fr;
    }

    .service-icon img {
        width: 80px;
        height: 80px;
    }

    .service-icon-small img {
        width: 60px;
        height: 60px;
    }

    .timeline-icon img {
        width: 50px;
        height: 50px;
    }

    .grid-icon img {
        width: 80px;
        height: 80px;
    }

    .contact-icon img {
        width: 60px;
        height: 60px;
    }

    .whatsapp-float img {
        width: 36px;
        height: 36px;
    }

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

    .container {
        padding: 0 15px;
    }

    .contact-item {
        flex-direction: column;
        text-align: center;
    }
}

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

    .hero-subtitle {
        font-size: 1rem;
    }

    .section {
        padding: 3rem 0;
    }

    .section-title {
        font-size: 1.75rem;
    }

    .service-card,
    .eco-card,
    .horizontal-card {
        padding: 2rem 1.5rem;
    }

    .whatsapp-float {
        width: 55px;
        height: 55px;
        bottom: 20px;
        right: 20px;
        font-size: 26px;
    }

    .logo-img {
        height: 40px;
    }

    .cta-button,
    .cta-button-large {
        padding: 1rem 2rem;
        font-size: 1rem;
    }

    .service-card h3,
    .eco-card h3,
    .horizontal-card h3,
    .service-item h3 {
        font-size: 1.2rem;
    }

    .timeline-item {
        gap: 1rem;
    }

    .timeline-icon {
        width: 60px;
        height: 60px;
    }

    .timeline-icon img {
        width: 40px;
        height: 40px;
    }

    .grid-item {
        min-height: 300px;
    }

    .image-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .contact-info {
        grid-template-columns: 1fr;
    }
}

/* منع خروج النصوص والعناصر خارج الشاشة */
html, body {
    max-width: 100%;
    overflow-x: hidden;
}

* {
    max-width: 100%;
}

h1, h2, h3, h4, h5, h6, p, a {
    overflow-wrap: break-word;
    word-wrap: break-word;
    hyphens: auto;
}

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