/* ===== MAIN CONTAINER / HERO ===== */
.maincontainer {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
    margin-top: 0;
    padding-bottom: 50px;
}

.main_img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.main_text {
    position: absolute;
    top: 35%;
    left: 8%;
    transform: translateY(-50%);

    display: flex;
    flex-direction: column;
    gap: 20px;

    color: white;
    font-size: 3rem;
    font-weight: bold;

    text-shadow: 0 4px 15px rgba(0, 0, 0, 0.8);
    z-index: 10;
}

.main_text h1 {
    margin: 0;
    line-height: 1.2;
}

.subtext button {
    width: fit-content;
    padding: 16px 32px;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 6px;
    border: none;
    outline: none;
    background: rgba(1, 42, 158, 0.95);
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
}

.subtext button:hover {
    background: rgba(1, 42, 158, 1);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.subtext {
    position: absolute;
    top: 42%;
    left: 8%;

    display: flex;
    flex-direction: column;
    gap: 14px;

    max-width: 700px;

    color: white;
    font-size: 1.3rem;
    font-weight: 500;
    line-height: 1.6;

    text-shadow: 0 4px 15px rgba(0, 0, 0, 0.8);
    z-index: 10;
}

.subtext p {
    margin: 0;
}

.offer_text {
    align-items: center;
}

.service-container {
    position: relative;
    text-align: center;
    background: linear-gradient(135deg, #f5f7fa 0%, #e8ecf1 100%);
    overflow: hidden;
}


.sessional_video {
    position: relative;
    width: 100%;
    height: 520px;
}

.sessional_video img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.sessional_video h1 {
    position: absolute;
    top: 25%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 3.8rem;
    font-weight: bold;
    text-shadow: 0 4px 15px rgba(0, 0, 0, 0.8);
    z-index: 10;
    margin: 0;
}

.service-container p {
    position: absolute;
    bottom: 20%;
    left: 50%;
    transform: translateX(-50%);

    color: white;
    font-size: 1.5rem;
    max-width: 800px;
    padding: 20px;

    text-shadow: 0 4px 15px rgba(0, 0, 0, 0.8);
    z-index: 10;
}

.subtext_sessional {
    position: absolute;
    top: 35%;
    left: 8%;

    display: flex;
    flex-direction: column;
    gap: 14px;

    max-width: 700px;

    color: white;
    font-size: 1.3rem;
    font-weight: 500;
    line-height: 1.6;

    text-shadow: 0 4px 15px rgba(0, 0, 0, 0.8);
    z-index: 10;
}

/* ===== SEASONAL TOGGLE ===== */
.season-toggle-container {
    position: absolute;
    bottom: 250px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 20;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 40px;
    padding: 0;
    white-space: nowrap;
}

.season-toggle {
    padding: 20px 40px;
    font-size: 1.2rem;
    font-weight: 600;
    border-radius: 25px;
    border: 2px solid #012a9e;
    background: white;
    color: #012a9e;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 62px;
}

.season-toggle:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(1, 42, 158, 0.3);
}

.season-toggle.active {
    background: #012a9e;
    color: white;
    box-shadow: 0 4px 15px rgba(1, 42, 158, 0.4);
}

.season-toggle:first-child {
    position: relative;
}

.season-toggle:first-child::after {
    content: '';
    position: absolute;
    right: -22px;
    top: -65%;
    height: 230%;
    width: 2px;
    background: linear-gradient(
        to bottom,
        transparent,
        #012a9e 35%,
        #012a9e 65%,
        transparent
    );
}

.hero-phone-btn {
    position: absolute;
    bottom: 125px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 20;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 22px;
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    border-radius: 50px;
    background: rgba(1, 42, 158, 0.82);
    border: 1.5px solid rgba(1, 42, 158, 0.6);
    color: white;
    text-decoration: none;
    white-space: nowrap;
    box-shadow: 0 4px 16px rgba(1, 42, 158, 0.35);
    backdrop-filter: blur(6px);
    transition: all 0.2s ease;
}

.hero-phone-btn:hover {
    background: rgba(1, 42, 158, 0.95);
    box-shadow: 0 6px 22px rgba(1, 42, 158, 0.5);
    transform: translateX(-50%) translateY(-1px);
}

.season-icon {
    font-size: 1.3rem;
}

/* ===== SERVICES GRID ===== */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.services-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    padding: 50px 20px;
    max-width: 1400px;
    margin: 0 auto;
    justify-content: center;
}

a.service-card {
    text-decoration: none;
    display: block;
    color: white;
}

.service-card {
    background: linear-gradient(135deg, #012a9e 0%, #0142c8 100%);
    color: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    width: calc(33.333% - 20px);
    min-width: 280px;
    max-width: 400px;
}

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

.service-card img {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.service-card h3 {
    margin: 20px 20px 10px 20px;
    font-size: 1.65rem;
    color: white;
    line-height: 1.3;
}

.service-card p {
    margin: 0 20px 20px 20px;
    color: rgba(255, 255, 255, 0.92);
    font-size: 1.08rem;
    line-height: 1.6;
}

@media screen and (max-width: 1200px) {
    .service-card {
        width: calc(50% - 15px);
    }
}

@media screen and (max-width: 768px) {
    .service-card {
        width: 100%;
        max-width: 400px;
    }

    /* Clamp every major section to viewport width */
    .maincontainer,
    .service-container,
    .values_container,
    .pakkatilbod-section,
    .services-grid,
    .values-text-section {
        max-width: 100vw;
        overflow-x: hidden;
    }

    /* Hero — pure absolute positioning, no flex */
    .maincontainer {
        display: block;
        padding-bottom: 0;
    }
    .maincontainer::after {
        content: '';
        position: absolute;
        inset: 0;
        background: linear-gradient(to bottom, rgba(0,0,0,0.15), rgba(1,42,158,0.65));
        z-index: 1;
        pointer-events: none;
    }
    .main_img, .main_video {
        position: absolute;
        inset: 0;
        width: 100%;
        height: 100%;
        object-fit: cover;
        z-index: 0;
    }
    .main_text {
        position: absolute;
        top: 90px;
        left: 20px;
        right: 20px;
        transform: none;
        z-index: 2;
        padding: 0;
        font-size: 1rem;
    }
    .main_text h1 {
        font-size: 2.1rem;
        margin: 0 0 10px;
    }
    .subtext {
        position: absolute;
        top: 200px;
        left: 20px;
        right: 20px;
        bottom: auto;
        max-width: 100%;
        font-size: 0.88rem;
        z-index: 2;
        gap: 10px;
    }
    .subtext p {
        font-size: 0.85rem;
        margin: 0 0 12px;
    }
    .subtext button {
        padding: 10px 20px;
        font-size: 0.88rem;
        width: fit-content;
    }
    .season-toggle-container {
        position: absolute;
        bottom: 180px;
        left: 20px;
        right: 20px;
        transform: none;
        white-space: normal;
        align-items: center;
        gap: 10px;
        z-index: 2;
        padding: 0;
    }
    .season-toggle {
        padding: 10px 20px;
        font-size: 0.9rem;
        min-height: 44px;
    }
    /* Re-centre the divider for the 10px mobile gap (desktop uses 40px gap → right:-22px) */
    .season-toggle:first-child::after {
        right: -6px;
        top: -14px;
        height: calc(100% + 28px);
    }
    .hero-phone-btn {
        bottom: 120px;
        font-size: 0.88rem;
    }

    /* Services intro — stack vertically instead of overlaying on image */
    div.sessional_video {
        height: auto;
        display: flex;
        flex-direction: column;
    }
    div.sessional_video > img {
        height: 200px;
        width: 100%;
        object-fit: cover;
        position: relative;
        order: 2;
    }
    .sessional_video h1 {
        position: relative;
        top: auto;
        left: auto;
        transform: none;
        order: 1;
        font-size: 1.6rem;
        color: #012a9e;
        text-shadow: none;
        padding: 24px 16px 8px;
        text-align: center;
        white-space: normal;
    }
    /* Higher specificity (0,2,0) beats .service-container p (0,1,1) */
    .service-container .subtext_sessional {
        position: relative;
        top: auto;
        bottom: auto;
        left: auto;
        right: auto;
        transform: none;
        order: 3;
        font-size: 0.88rem;
        color: #444;
        text-shadow: none;
        padding: 8px 16px 24px;
        max-width: 100%;
        text-align: center;
        display: block;
        line-height: 1.6;
        white-space: normal;
    }
}

/* ===== BEFORE/AFTER HOVER CARD (values section) ===== */
.values-transform-card {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
    cursor: crosshair;
}

.values-transform-card .img-before {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.values-transform-card .img-after {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 0.45s ease;
}

.values-transform-card:hover .img-after {
    opacity: 1;
}

/* ===== VALUES SECTION ===== */
.values_container {
    background: linear-gradient(135deg, #f5f7fa 0%, #e8ecf1 100%);
    padding-bottom: 80px;
}

.values_main {
    position: relative;
    width: 100%;
    height: 480px;
    display: flex;
    gap: 0;
}

.values_main_img {
    width: 50%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.values_main h1 {
    position: absolute;
    top: 70%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 3.6rem;
    font-weight: bold;
    text-shadow: 0 4px 15px rgba(0, 0, 0, 0.8);
    z-index: 10;
    margin: 0;
}

.values-heading {
    text-align: center;
    padding: 40px 20px 20px 20px;
    font-size: 4rem;
    color: #012a9e;
    margin: 0 auto;
    position: relative;
    display: inline-block;
    width: 100%;
    box-sizing: border-box;
}

.values-heading::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60%;
    height: 3.5px;
    background-color: #012a9e;
}

.values-text-section {
    padding: 50px 20px 60px 20px;
    max-width: 1400px;
    margin: 0 auto;
}

.values-text-grid {
    display: flex;
    gap: 30px;
    justify-content: center;
    align-items: stretch;
}

.values-text-grid .values-text-card {
    flex: 1;
    max-width: 350px;
    min-height: 400px;
}

.values-text-card {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    padding: 30px 20px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    cursor: pointer;
}

.values-text-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.values-text-icon {
    width: 120px;
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: 3px dashed #012a9e;
    padding: 20px;
    background: white;
}

.values-text-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.values-text-card h2 {
    color: #1a1a1a;
    font-size: 2rem;
    font-weight: 700;
    margin: 0;
}

.values-text-card p {
    color: #666;
    font-size: 1.1rem;
    line-height: 1.8;
    margin: 0;
    max-width: 400px;
}

.values-grid-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

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

.value-card {
    text-align: center;
    padding: 40px 30px;
    position: relative;
    background-color: white;
}

.value-card:not(:last-child)::after {
    content: '';
    position: absolute;
    right: -20px;
    top: 50%;
    transform: translateY(-50%);
    width: 1px;
    height: 200px;
    background-color: #131974;
}

.value-icon {
    width: 140px;
    height: 140px;
    margin: 0 auto 30px;
    background-color: white;
    border: 2px dashed #131974;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #131974;
    font-size: 0.9rem;
    border-radius: 50%;
}

.value-icon img {
    width: 80%;
    height: 80%;
    max-width: 80%;
    max-height: 80%;
    object-fit: contain;
    display: block;
}

.value-icon img.values_main_img {
    width: 75%;
    height: 75%;
    max-width: 80%;
    max-height: 80%;
    object-fit: contain;
    object-position: center;
    display: block;
}

.value-card h2 {
    font-size: 2.5rem;
    font-weight: 600;
    margin-bottom: 20px;
    letter-spacing: 0.05em;
    color: #131974;
}

.value-card p {
    font-size: 1.3rem;
    line-height: 1.6;
    color: black;
    max-width: 350px;
    margin: 0 auto;
}

/* ===== PACKAGE DEAL (PAKKATILBOÐ) ===== */
.pakkatilbod-section {
    background: #f8f9fa;
    padding: 100px 20px;
    margin-top: 0;
}

.pakkatilbod-container {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    align-items: stretch;
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.08);
}

.pakkatilbod-image {
    position: relative;
    min-height: 500px;
    overflow: hidden;
    background: #e8ecf1;
}

.package-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.pakkatilbod-content {
    padding: 60px 50px;
    display: flex;
    flex-direction: column;
    gap: 30px;
    background: white;
}

.pakkatilbod-badge {
    display: inline-block;
    width: fit-content;
    padding: 8px 20px;
    background: linear-gradient(135deg, #012a9e 0%, #0341d4 100%);
    color: white;
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    border-radius: 50px;
    text-transform: uppercase;
}

.pakkatilbod-heading {
    font-size: 2.9rem;
    font-weight: 700;
    color: #1a1a1a;
    line-height: 1.2;
    margin: 0;
}

.pakkatilbod-discount-box {
    display: inline-flex;
    align-items: baseline;
    gap: 10px;
    padding: 20px 30px;
    background: linear-gradient(135deg, #012a9e15 0%, #0341d410 100%);
    border-left: 4px solid #012a9e;
    border-radius: 8px;
    width: fit-content;
}

.discount-label {
    font-size: 2.6rem;
    font-weight: 600;
    color: #333;
}

.discount-amount {
    font-size: 2.9rem;
    font-weight: 900;
    color: #012a9e;
}

.pakkatilbod-details {
    margin-top: 10px;
}

.pakkatilbod-details h3 {
    font-size: 1.4rem;
    font-weight: 600;
    color: #666;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.pakkatilbod-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.pakkatilbod-list li {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 1.15rem;
    color: #333;
    font-weight: 500;
}

.check-icon {
    width: 24px;
    height: 24px;
    color: white;
    flex-shrink: 0;
    background: #012a9e;
    border-radius: 50%;
    padding: 4px;
}

.pakkatilbod-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    width: fit-content;
    padding: 18px 35px;
    font-size: 1.1rem;
    font-weight: 700;
    border-radius: 50px;
    border: none;
    background: linear-gradient(135deg, #012a9e 0%, #0341d4 100%);
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 10px;
    box-shadow: 0 8px 20px rgba(1, 42, 158, 0.25);
}

.pakkatilbod-btn svg {
    transition: transform 0.3s ease;
}

.pakkatilbod-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(1, 42, 158, 0.35);
}

.pakkatilbod-btn:hover svg {
    transform: translateX(4px);
}

.pakkatilbod-btn:active {
    transform: translateY(0);
}

/* ===== VALUES RESPONSIVE ===== */
@media screen and (max-width: 968px) {
    .values-text-grid {
        flex-direction: column;
        align-items: center;
        gap: 50px;
    }

    .values_main h1 {
        font-size: 2.8rem;
    }

    .value-card:not(:last-child)::after {
        display: none;
    }
}

@media screen and (max-width: 768px) {
    .values-text-section {
        padding: 60px 20px 40px 20px;
    }

    .values-text-icon {
        width: 100px;
        height: 100px;
        padding: 15px;
    }

    .values-text-card h2 {
        font-size: 1.7rem;
    }

    .values-text-card p {
        font-size: 1rem;
    }

    .values_main h1 {
        font-size: 2.2rem;
    }

    .values-heading {
        font-size: 2.2rem;
    }

    .value-card h2 {
        font-size: 1.5rem;
    }

    .value-card p {
        font-size: 0.95rem;
    }

    .season-icon {
        font-size: 1.1rem;
    }
}

@media screen and (max-width: 480px) {
    .values-text-section {
        padding: 50px 15px 30px 15px;
    }

    .values-text-grid {
        gap: 40px;
    }

    .values-text-icon {
        width: 80px;
        height: 80px;
        padding: 12px;
    }

    .values-text-card h2 {
        font-size: 1.5rem;
    }

    .values-text-card p {
        font-size: 0.95rem;
    }

    .values_main h1 {
        font-size: 1.8rem;
    }

    .values-heading {
        font-size: 1.8rem;
    }

    .season-toggle-container {
        gap: 10px;
    }

    .season-toggle {
        width: 100%;
        max-width: 250px;
        justify-content: center;
        padding: 12px 24px;
        font-size: 1rem;
    }

    .hero-phone-btn {
        font-size: 0.85rem;
    }
}

/* ===== PAKKATILBOÐ RESPONSIVE ===== */
@media screen and (max-width: 1024px) {
    .pakkatilbod-container {
        gap: 0;
    }

    .pakkatilbod-content {
        padding: 50px 40px;
    }

    .pakkatilbod-heading {
        font-size: 2.2rem;
    }

    .discount-amount {
        font-size: 2.5rem;
    }
}

@media screen and (max-width: 768px) {
    .pakkatilbod-section {
        padding: 60px 15px;
    }

    .pakkatilbod-container {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .pakkatilbod-image {
        min-height: 350px;
        order: 1;
    }

    .pakkatilbod-content {
        padding: 40px 30px;
        order: 2;
    }

    .pakkatilbod-heading {
        font-size: 1.9rem;
    }

    .discount-amount {
        font-size: 2.2rem;
    }

    .pakkatilbod-details h3 {
        font-size: 1.1rem;
    }

    .pakkatilbod-list li {
        font-size: 1.05rem;
    }

    .pakkatilbod-btn {
        width: 100%;
        justify-content: center;
        padding: 16px 30px;
        font-size: 1.1rem;
    }
}

@media screen and (max-width: 480px) {
    .pakkatilbod-section {
        padding: 50px 15px;
    }

    .pakkatilbod-content {
        padding: 35px 20px;
        gap: 25px;
    }

    .pakkatilbod-heading {
        font-size: 1.6rem;
    }

    .pakkatilbod-discount-box {
        padding: 15px 20px;
    }

    .discount-label {
        font-size: 1rem;
    }

    .discount-amount {
        font-size: 2rem;
    }

    .pakkatilbod-image {
        min-height: 280px;
    }

    .pakkatilbod-list li {
        font-size: 1rem;
    }

    .check-icon {
        width: 20px;
        height: 20px;
    }
}
