/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #dad7d2;
    background-image: url('https://www.servicehuset.dk/wp-content/uploads/2025/09/blank-wall-light.webp');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    background-repeat: no-repeat;
}

/* Desktop background image */
@media (min-width: 1024px) {
    body {
        background-image:
            linear-gradient(rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.3)),
            url('https://www.servicehuset.dk/wp-content/uploads/2024/11/pexels-andrea-piacquadio-3756036-1.jpg');
        background-size: cover;
        background-position: center;
        background-attachment: fixed;
        background-repeat: no-repeat;
    }
}

.page-wrapper {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Header */
.header {
    background: transparent;
    padding: 25px 15px;
    text-align: left;
}

.logo {
    display: flex;
    justify-content: flex-start;
    align-items: center;
}

.logo-link {
    display: inline-block;
    text-decoration: none;
}

.logo-img {
    max-width: 250px;
    width: 100%;
    height: auto;
    display: block;
}

/* Content Grid */
.content-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 15px;
    padding: 0 15px 15px 15px;
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
}

/* Content Grid */
.content-grid2 {
    display: grid;
    grid-template-columns: 1fr;
    gap: 15px;
    padding: 0 15px 15px 15px;
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
}

/* Content Boxes - All have margins on mobile */
.content-box {
    background: #000000a3 !important;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

/* Hero Image */
.hero-image {
    width: 100%;
}

.hero-image img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    max-height: 250px;
}

/* Pricing Section */
.pricing-section {
    padding: 0;
    background: #000000a3 !important;
}

.pricing-table-wrapper {
    overflow-x: visible;
}

.pricing-table {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
}

.pricing-table thead {
    background: rgba(88, 89, 91, 0.8);
}

.pricing-table th {
    color: white;
    padding: 12px 8px;
    text-align: left;
    font-weight: 600;
    font-size: 0.65rem;
    letter-spacing: 0.3px;
    text-transform: uppercase;
    word-wrap: break-word;
}

.pricing-table tbody tr {
    background: rgba(88, 89, 91, 0.8);
    color: white;
}

.pricing-table tbody tr:nth-child(even) {
    background: rgba(107, 108, 110, 0.8);
}

.pricing-table td {
    padding: 12px 8px;
    font-size: 0.8rem;
    border: none;
    word-wrap: break-word;
}

.pricing-table .extra-info-row {
    background: rgba(88, 89, 91, 0.8) !important;
    font-size: 0.7rem;
    line-height: 1.5;
}

.pricing-table .extra-info-row td {
    padding: 14px 8px;
}

.quote-link {
    color: white;
    text-decoration: underline;
    font-weight: normal;
}

.quote-link:hover {
    color: #b89968;
}

/* Image Section */
.image-section {
    width: 100%;
}

.image-section img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    max-height: 250px;
}

/* CTA Wrapper */
.cta-wrapper {
    text-align: center;
    padding: 0;
    margin-top: 1.5rem;
}

/* Secondary CTA Wrapper */
.cta-wrapper-secondary {
    text-align: center;
    padding: 0;
    margin-top: 0.8rem;
}

.btn-cta {
    display: block;
    background: #000000a3 !important;
    color: white;
    padding: 16px 45px;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.95rem;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
    width: 100%;
    box-sizing: border-box;
}

.btn-cta:hover {
    background: #000000c8 !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 8px rgba(0, 0, 0, 0.3);
}

/* Service Details */
.service-details {
    background: #000000a3 !important;
    color: white;
    padding: 35px 25px;
}

.service-details h2 {
    font-size: 1.6rem;
    margin-bottom: 20px;
    font-weight: 400;
    color: white;
}

.service-intro {
    font-size: 1rem;
    margin-bottom: 18px;
    color: white;
    font-weight: 600;
}

.service-list {
    margin-bottom: 22px;
    padding-left: 20px;
    list-style-type: disc;
}

.service-list li {
    margin-bottom: 10px;
    font-size: 0.9rem;
    line-height: 1.6;
    color: white;
}

.service-details p {
    margin-bottom: 14px;
    font-size: 0.9rem;
    line-height: 1.7;
    color: white;
}

.service-details p:last-child {
    margin-bottom: 0;
}

.read-more {
    color: white;
    text-decoration: none;
}

.read-more:hover {
    color: #b89968;
    text-decoration: underline;
}

/* Footer */
.footer {
    background: #2c2c2c;
    color: #999;
    padding: 30px 15px;
    margin-top: auto;
}

/* Desktop footer styling */
@media (min-width: 1024px) {
    .footer {
        background: rgba(44, 44, 44, 0.95);
        backdrop-filter: blur(10px);
    }
}

.footer-container {
    max-width: 1400px;
    margin: 0 auto;
    text-align: center;
}

.copyright {
    margin-bottom: 20px;
    font-size: 0.85rem;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    row-gap: 8px;
}

.footer-links a {
    color: #999;
    text-decoration: none;
    font-size: 0.8rem;
}

.footer-links a:hover {
    color: #b89968;
    text-decoration: underline;
}

/* Tablet Styles */
@media (min-width: 768px) {
    .header {
        padding: 30px 30px;
    }

    .logo-img {
        max-width: 300px;
    }

    .content-grid {
        gap: 20px;
        padding: 0 20px 20px 20px;
    }

    .hero-image img {
        max-height: 350px;
    }

    .image-section img {
        max-height: 350px;
    }

    .pricing-table th,
    .pricing-table td {
        padding: 16px 14px;
        font-size: 0.9rem;
    }

    .pricing-table th {
        font-size: 0.8rem;
    }

    .service-details {
        padding: 45px 35px;
    }

    .service-details h2 {
        font-size: 1.85rem;
    }

    .service-intro {
        font-size: 1.05rem;
    }

    .service-list li {
        font-size: 0.95rem;
    }

    .service-details p {
        font-size: 0.95rem;
    }

    .footer-links {
        gap: 20px;
    }
}

/* Desktop Styles - 2 Column Grid Layout */
@media (min-width: 1024px) {
    .header {
        padding: 35px 40px;
        background: transparent;
    }

    .logo-img {
        max-width: 350px;
    }

    .content-grid {
        grid-template-columns: 1fr 400px;
        gap: 0 30px;
        padding: 0 40px 40px 40px;
        max-width: 1300px;
        align-items: start;
        margin: 0 auto;
    }

    /* Hide images on desktop */
    .hero-image,
    .image-section {
        display: none;
    }

    /* Group text + CTA together so they move as one */
    .text-cta-group {
        grid-column: 1;
        grid-row: 1;
        display: grid;
        grid-template-rows: auto auto;
        row-gap: 1.2rem;
        /* ~1-2 rem spacing between text and button */
    }

    /* Remove margin on desktop since gap handles it */
    .cta-wrapper {
        margin-top: 0;
    }

    /* Secondary CTA wrapper - appears below pricing table */
    .cta-wrapper-secondary {
        grid-column: 2;
        grid-row: 2;
        margin-top: 1.5rem;
    }

    /* Service details in center (left column) */
    .service-details {
        padding: 45px 40px;
        background: #000000a3 !important;
        backdrop-filter: blur(15px);
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    }

    /* CTA wrapper below service details */
    .cta-wrapper {
        padding: 0;
    }

    /* Pricing table on the right */
    .pricing-section {
        grid-column: 2;
        grid-row: 1;
        align-self: start;
        /* keep aligned with the group */
        background: #000000a3 !important;
        backdrop-filter: blur(15px);
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    }

    .pricing-table {
        width: 100%;
        table-layout: fixed;
    }

    .pricing-table th,
    .pricing-table td {
        padding: 16px 12px;
        font-size: 0.85rem;
    }

    .pricing-table th {
        font-size: 0.75rem;
    }

    .cta-wrapper {
        padding: 0;
    }

    .btn-cta {
        padding: 18px 55px;
        font-size: 1.05rem;
    }

    .service-details h2 {
        font-size: 2.1rem;
    }

    .service-intro {
        font-size: 1.1rem;
    }

    .service-list li {
        font-size: 1rem;
    }

    .service-details p {
        font-size: 1rem;
    }
}

/* Extra Large Desktop */
@media (min-width: 1400px) {
    .logo-img {
        max-width: 400px;
    }

    .content-grid {
        gap: 0 40px;
        padding: 0 50px 50px 50px;
        grid-template-columns: 1fr 450px;
        max-width: 1400px;
    }

    .service-details {
        padding: 55px 50px;
    }

    .pricing-section {
        max-width: 450px;
    }

    .pricing-table th,
    .pricing-table td {
        padding: 18px 14px;
        font-size: 0.95rem;
    }

    .pricing-table th {
        font-size: 0.85rem;
    }

    .pricing-table .extra-info-row {
        font-size: 0.85rem;
    }


}