@font-face {
    font-family: 'Niconne';
    src: url('../fonts/Niconne-Regular.eot');
    src: url('../fonts/Niconne-Regular.eot?#iefix') format('embedded-opentype'),
        url('../fonts/Niconne-Regular.woff2') format('woff2'),
        url('../fonts/Niconne-Regular.woff') format('woff'),
        url('../fonts/Niconne-Regular.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Lato';
    src: url('../fonts/Lato-Regular.woff2') format('woff2'),
        url('../fonts/Lato-Regular.woff') format('woff'),
        url('../fonts/Lato-Regular.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Lato Light';
    src: url('../fonts/Lato-Light.woff2') format('woff2'),
        url('../fonts/Lato-Light.woff') format('woff'),
        url('../fonts/Lato-Light.ttf') format('truetype');
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Lato Bold';
    src: url('../fonts/Lato-Bold.woff2') format('woff2'),
        url('../fonts/Lato-Bold.woff') format('woff'),
        url('../fonts/Lato-Bold.ttf') format('truetype');
    font-weight: bold;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Bodoni Moda';
    src: url('../fonts/BodoniModa-Regular.woff2') format('woff2'),
        url('../fonts/BodoniModa-Regular.woff') format('woff');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}





/* GENERAL */
:root {
    --max-content-width: 1200px;
    --container-padding-width: 3rem;
    --container-padding-height: 7.5rem;
    --ValoVoimaa_RED: #dd2309;
    --ValoVoimaa_ORANGE: #fdb350;
    --ValoVoimaa_ORANGE_dark: #7b4106;
    --ValoVoimaa_ORANGE_darker: #5a2f03;
    --ValoVoimaa_YELLOW: #ffcc01;
    --ValoVoimaa_SAND: #fdcd95;
    /* --ValoVoimaa_BEIGE: #eed9c4; */
    --ValoVoimaa_BEIGE: #f6e2b5;
    --ValoVoimaa_SUN: #d49709;
    /* circle size used for overlapping images on mobile */
    --circle-size: 240px;

    /* header height used for scroll offset */
    --header-height: 6.25rem;
}

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


html,
body {
    font-family: Lato, Sans-Serif;
    font-size: 16px;
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
}

html {
    scroll-behavior: smooth;
    /* Navbar height */
    scroll-padding-top: var(--header-height);
}

h1 {
    font-family: Niconne, Sans-Serif;
}

h2,
h3,
h4,
h5 {
    font-family: Bodoni Moda, Serif;
}

.container {
    max-width: var(--max-content-width);
    margin: 0 auto;
    /* padding: var(--container-padding-height) var(--container-padding); */
    width: 100%;
}

footer {
    font-size: 0.75rem;
    text-align: center;
    padding: 0.3125rem 0;
}





/* NAVIGATION BAR */
header {
    position: fixed;
    /* position: sticky; */
    top: 0;
    left: 0;
    width: 100%;
    z-index: 175;
    background-color: var(--ValoVoimaa_SUN);
    /* Background spans full width */
}

nav {
    /* allow the bar to grow if content wraps instead of forcing exact height */
    min-height: 6.25rem;
    /* was height: 6.25rem; */
    display: flex;
    align-items: center;
    position: relative;
    /* Reserve space for the circular logo on the left (logo width + gap) */
    padding-left: calc(12.5rem + 2rem);
    /* Optional small right padding so links don't touch the edge */
    padding-right: 2rem;
    /* allow children (ul) to control wrapping behavior */
    flex-wrap: nowrap;
}

nav ul {
    font-family: Bodoni Moda, Serif;
    list-style-type: none;
    display: flex;
    justify-content: space-between;
    gap: clamp(1.5rem, 5vw, 3rem);
    margin: 0;
    width: 100%;
    flex: 1 1 auto;
    /* prevent the UL from wrapping its items to multiple lines */
    flex-wrap: nowrap;
}

/* Simplified: let the UL fill the available space and distribute links */
nav ul {
    font-family: Bodoni Moda, Serif;
    list-style-type: none;
    display: flex;
    justify-content: space-between;
    gap: clamp(1.5rem, 5vw, 3rem);
    margin: 0;
    width: 100%;
    flex: 1 1 auto;
}

nav a {
    /* color: black; */
    color: white;
    text-decoration: none;
    font-size: 1rem;
    transition: color 0.3s ease;
    /* padding: 0.625rem 1rem; */
    /* prevent the link text from breaking into multiple lines (avoids vertical cropping) */
    white-space: nowrap;
    display: inline-block;
    /* preserve padding and allow precise layout */
}

nav a:hover,
nav a.active {
    /* color: var(--ValoVoimaa_RED); */
    color: var(--ValoVoimaa_ORANGE_darker);
    text-decoration: solid underline 2px;
    text-underline-offset: 5px;
}

nav a:visited {
    text-decoration: none;
}

#nav_logo {
    height: 12.5rem;
    position: absolute;
    /* Changed from fixed to absolute */
    top: 1.5625rem;
    /* Negative to overlap above navbar */
    left: 0;
    /* Positioned at container start */
    background-color: var(--ValoVoimaa_RED);
    border: 3px solid white;
    border-radius: 50%;
    z-index: 200;
    box-shadow: 0 0.25rem 0.625rem rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    transform-origin: top left;
}

#nav_logo.scrolled {
    transform: scale(0.75);
    /* 9.375 ÷ 12.5 = 0.75 */
}





/* HAMBURGER MENU */
.nav_links {
    display: flex;
    flex-direction: row;
    list-style-type: none;
    margin: 0;
    padding: 0;
}

.nav_links>li {
    /* margin: 0 1rem; */
    overflow: hidden;
}

.menu-button-container {
    display: none;
    height: 100%;
    width: 30px;
    cursor: pointer;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    /* ensure label is positioned for click area */
}

#menu-toggle {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.menu-button {
    position: relative;
    /* needed for pseudo-elements to be positioned absolutely inside */
}

.menu-button,
.menu-button::before,
.menu-button::after {
    display: block;
    background-color: #fff;
    position: absolute;
    height: 4px;
    width: 30px;
    transition: transform 400ms cubic-bezier(0.23, 1, 0.32, 1);
    border-radius: 2px;
}

.menu-button::before {
    content: '';
    margin-top: -8px;
}

.menu-button::after {
    content: '';
    margin-top: 8px;
}

#menu-toggle:checked~.container nav .menu-button-container .menu-button::before {
    margin-top: 0px;
    transform: rotate(405deg);
}

#menu-toggle:checked~.container nav .menu-button-container .menu-button {
    background: rgba(255, 255, 255, 0);
}

#menu-toggle:checked~.container nav .menu-button-container .menu-button::after {
    margin-top: 0px;
    transform: rotate(-405deg);
}

#menu-toggle:checked~.mobile-nav {
    display: block;
}

/* Full-width dropdown bar under the fixed header */
/* NOTE: make mobile-nav part of the header's flow so it pushes content down when visible */
.mobile-nav {
    display: none;
    /* in-flow positioning so it takes up space when shown */
    position: static;
    background-color: var(--ValoVoimaa_SUN);
    z-index: 300;
    /* remove absolute/top/left/right from this rule so it grows header height */
}

.mobile-nav ul {
    list-style: none;
    margin: 0;
    padding: .5rem 0;
    /* vertical padding for the bar */
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    /* right-align links inside the container */
    gap: .5rem;
}

.mobile-nav a {
    font-family: Bodoni Moda, Serif;
    font-size: .9rem;
    /* smaller text */
    line-height: 1.2;
    /* tighter line-height */
    color: white;
    text-decoration: none;
}

.mobile-nav a:hover {
    color: var(--ValoVoimaa_ORANGE_darker);
}





/* HERO SECTION */
header {
    font-family: Lato, sans-serif;
}

#hero_content {
    width: 100%;
    /* Removed padding-top that compensated for a fixed header.
       Header is now sticky and occupies flow space, so no extra offset needed. */
    padding-top: 6.25rem;
    /* Same as navbar height (no longer needed) */
}

#hero_img {
    height: calc(100vh - 6.25rem);
    /* Subtract navbar height from full viewport */
    width: 100%;
    background-image: url(../images/aurinko-maisema.jpg);
    background-position: center;
    /* Position from bottom + 5rem downward */
    background-repeat: no-repeat;
    background-size: cover;
    position: relative;
}

.hero_txt {
    font-size: 2.25rem;
    line-height: 0.925;
    color: white;
    /* Higher than hero-img but lower than navbar*/
    z-index: 150;
    max-width: var(--max-content-width);
    position: absolute;
    width: 100%;
    height: 100%;
    /* Space between text and button */
}

.hero_txt h1 {
    vertical-align: top;
    text-align: center;
    position: absolute;
    /* Position h1 3rem from top of hero area (which is already below navbar) */
    top: 3rem;
    /* Center between logo and right edge of container */
    /* Logo is 12.5rem wide, so start after it with some padding */
    left: calc(12.5rem + 2rem);
    /* Logo width + padding */
    right: 2rem;
    /* Padding from right edge */
    transform: none;
    /* Remove the translateX transform */
    margin: 0;
}

.CTA_button_link {
    text-decoration: none;
    background-color: var(--ValoVoimaa_SUN);
    color: white;
    font-family: Bodoni Moda, Serif;
    font-size: 1.25rem;
    padding: 1.5rem 1.25rem;
    border-radius: 12px;
    transition: background-color 0.3s ease;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
    /* Position at bottom-left of hero area */
    position: absolute;
    bottom: 3rem;
    right: 3rem;
    border: solid white 2px;
}

.CTA_button_link:hover {
    color: var(--ValoVoimaa_ORANGE_dark);
    background-color: white;
}





/* SECTIONS */
section {
    width: 100%;
    min-height: 100vh;
    scroll-margin-top: var(--header-height);
}

section .container {
    /* Content constrained within container */
    text-align: center;
    color: white;
    font-size: clamp(1.25rem, 3vw, 2rem);
    /* padding: calc(6.25rem + 20px) 20px 20px 20px; */
    padding: 6.25rem;
}


#yritys {
    background: linear-gradient(45deg, #f6e2b5 0%, var(--ValoVoimaa_SUN) 100%);
}

#yritys .container {
    display: flex;
    align-items: stretch;
    gap: 1.25em;
    max-width: 1200px;
    margin: 0 auto;
    /* padding: 0 20px 20px 20px; */
}

.about_txt h2 {
    font-size: 1.75rem;
}

#yritys .container h2 {
    text-align: center;
    margin-bottom: 1rem;
    flex: 0 0 100%;
    font-size: 1.75rem;
    color: var(--ValoVoimaa_ORANGE_darker);
}

.about_txt {
    flex: 1;
    font-size: 1.15rem;
    line-height: 1.6;
    color: var(--ValoVoimaa_ORANGE_darker);
    /* keep text first visually on desktop even though DOM has image first */
    order: 1;
}

.about_txt p {
    text-align: left;
}

.about_img {
    width: 44%;
    align-items: center;
    /* keep image after text on desktop */
    order: 2;
}

.about_img img {
    width: 100%;
    height: 100%;
    /* border-radius: 50%; */
    border-radius: 12px;
    object-fit: cover;
    border: 4px solid #e8e8e8;
    box-shadow: 0 0.25rem 0.625rem rgba(0, 0, 0, 0.2);
}



#ajanvaraus {
    /* background: linear-gradient(135deg, #fdb350 0%, #f6e3c7 100%); */
    /* background: #fcf4e6; */
    background: var(--ValoVoimaa_BEIGE);
}

#nettivaraus6-container {
    width: 80%;
    margin: auto;
}

#ajanvaraus h2 {
    font-size: 1.75rem;
    color: var(--ValoVoimaa_ORANGE_darker);
    /* margin-top: 0;
    margin-bottom: 20px; */
}

.GDPR_tx_ajanvaraus {
    font-size: 1rem;
    text-align: right;
    color: var(--ValoVoimaa_ORANGE_darker);
    text-decoration: underline;
    margin-top: 10px;
    margin-right: 10%;
}



#palvelut {
    /* background: linear-gradient(135deg, #f6e2b5 0%, #fdb350 100%); */
    background: linear-gradient(135deg, #f6e2b5 0%, var(--ValoVoimaa_SUN) 100%);
    /* padding-bottom: 20px; */
}

#palvelut h2 {
    text-align: center;
    width: 100%;
    font-size: 1.75rem;
    color: var(--ValoVoimaa_ORANGE_darker);
    /* margin-top: 0;
    margin-bottom: 20px; */

}

#palvelut h3 {
    text-decoration: solid underline 2px;
    text-underline-offset: 5px;
    margin-bottom: 20px;
}

.content-row {
    display: flex;
    align-items: stretch;
    min-height: 400px;
    margin-bottom: 60px;
    position: relative;
    width: 100%;
    /* overflow: hidden;
    Prevent images from showing outside container */
}

.text-box {
    background-color: #f9f9f9;
    color: var(--ValoVoimaa_ORANGE_darker);
    padding: 50px;
    border-radius: 12px;
    box-shadow: 0 0.25rem 0.625rem rgba(0, 0, 0, 0.2);
    flex: 1;
    font-size: 1.15rem;
    line-height: 1.6;
    position: relative;
    z-index: 1;
    min-height: 300px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-left: 250px;
    padding-right: 50px;
    margin-left: 200px;
    /* Push text box inward by half image width */
}

.image-circle {
    width: 400px;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 5px solid white;
    box-shadow: 0 0.25rem 0.625rem rgba(0, 0, 0, 0.2);
    position: absolute;
    z-index: 2;
    left: 0;
    /* Position at container edge */
    top: 0;
}

.content-row:nth-of-type(even) .text-box {
    padding-left: 50px;
    padding-right: 250px;
    margin-left: 0;
    margin-right: 200px;
    /* Push text box inward from right */
}

.content-row:nth-of-type(even) .image-circle {
    right: 0;
    /* Position at container edge */
    left: auto;
}



#hinnasto {
    /* background: #fcf4e6; */
    background: var(--ValoVoimaa_BEIGE);
    /* padding-top: 0; */
}

#hinnasto .container {
    color: var(--ValoVoimaa_ORANGE_darker);
}

#hinnasto h2 {
    text-align: center;
    width: 100%;
    font-size: 1.75rem;
    color: var(--ValoVoimaa_ORANGE_darker);
    /* padding-top: 160px; */
    margin-bottom: 40px;
    margin-top: 0;
}

#hinnasto h3 {
    text-align: center;
    width: 100%;
    font-size: 1.5rem;
    color: var(--ValoVoimaa_ORANGE_darker);
    /* margin-top: 20px; */
    margin-bottom: 10px;
    text-decoration: solid underline 2px;
    text-underline-offset: 5px;
}

#hinnasto h4 {
    font-size: 1.5rem;
    text-decoration: solid underline 2px;
    text-underline-offset: 5px;
    margin-bottom: 40px;
}

.price_box_container {
    display: flex;
    column-gap: 5rem;
}

.mobileBreak {
    display: none;
}

.price_box {
    flex: 1;
    font-size: 1.15rem;
    line-height: 1.6;
    background-color: #f9f9f9;
    color: var(--ValoVoimaa_ORANGE_darker);
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 0.25rem 0.625rem rgba(0, 0, 0, 0.2);
    /* margin-top: 50px; */
    width: 100%;
}

.price_txt_addition {
    margin: auto;
    margin-top: 40px;
    /* Total of 60px since section has padding of 20px */
    font-size: 1.15rem;
    line-height: 2;
    width: 75%;
}


#otayhteytta {
    /* background: linear-gradient(135deg, #f6e3c7 0%, #fdb350 100%); */
    /* background: linear-gradient(135deg, #f6e2b5 0%, #fdb350 100%); */
    background: linear-gradient(135deg, #f6e2b5 0%, var(--ValoVoimaa_SUN) 100%);
}

#otayhteytta h2 {
    text-align: center;
    width: 100%;
    font-size: 1.75rem;
    color: var(--ValoVoimaa_ORANGE_darker);
    /* margin-top: 0;
    margin-bottom: 60px; */
}

#otayhteytta h3 {
    /* margin-bottom: 10px; */
    background-color: (--ValoVoimaa_ORANGE_darker)
}

.yhteystiedot_container {
    display: flex;
    column-gap: 2.5rem;
    font-size: 1.15rem;
    line-height: 1.6;
    color: var(--ValoVoimaa_ORANGE_darker);
}

.yhteystiedot_map {
    width: 100%;
    margin-top: 60px;
    padding: 15px;
    background-color: #f9f9f9;
    border-radius: 12px;
    box-shadow: 0 0.25rem 0.625rem rgba(0, 0, 0, 0.2);
    min-height: 400px;
    /* Set height for the map row */
}

.yhteystiedot_txt {
    flex: 1;
}

.yhteystiedot_txt a {
    text-decoration: none;
    color: var(--ValoVoimaa_ORANGE_darker);
}

.break {
    margin-top: 10px;
}

.GDPR_txt {
    margin-top: 10px;
    text-decoration: underline;
}

.yhteystiedot_map {
    padding: 15px;
    background-color: #f9f9f9;
    border-radius: 12px;
    box-shadow: 0 0.25rem 0.625rem rgba(0, 0, 0, 0.2);
}

.massage_room_img_container {
    flex: 2;
    /* Same as the old map flex value */
    padding: 15px;
    background-color: #f9f9f9;
    border-radius: 12px;
    box-shadow: 0 0.25rem 0.625rem rgba(0, 0, 0, 0.2);
    width: 100%;
    margin: 80px auto 0;
}

.massage_room_img {
    width: 100%;
    border-radius: 8px;
    object-fit: cover;
}

#ajanvaraus h2,
#palvelut h2,
#otayhteytta h2 {
    margin-top: 0;
    /* Remove any existing top margin */
    margin-bottom: 60px;
}







/* NEWS/ANNOUNCEMENT BOX */
#yritys .container {
    flex-wrap: wrap;
}

.news-box {
    background-color: #f9f9f9;
    color: var(--ValoVoimaa_ORANGE_darker);
    padding: 30px 40px;
    border-radius: 12px;
    box-shadow: 0 0.25rem 0.625rem rgba(0, 0, 0, 0.2);
    margin-bottom: 40px;
    width: 100%;
    text-align: center;
    border-left: 5px solid var(--ValoVoimaa_SUN);
    flex: 0 0 100%;
}

.news-box h3 {
    font-family: Bodoni Moda, Serif;
    font-size: 1.5rem;
    margin-bottom: 15px;
    text-decoration: underline;
    text-underline-offset: 5px;
}

.news-box p {
    font-size: 1.15rem;
    line-height: 1.6;
    margin: 0;
}








/* The Modal Button */
#lawTextBtn {
    cursor: pointer;
}

#lawTextBtn2 {
    cursor: pointer;
}


/* The Modal (background) */
.modal {
    display: none;
    /* Hidden by default */
    position: fixed;
    /* Stay in place */
    z-index: 1000;
    /* Sit on top */
    left: 0;
    top: 0;
    width: 100%;
    /* Full width */
    height: 100%;
    /* Full height */
    overflow: auto;
    /* Enable scroll if needed */
    background-color: rgb(0, 0, 0);
    /* Fallback color */
    background-color: rgba(0, 0, 0, 0.4);
    /* Black w/ opacity */
}

/* Modal Content/Box */
.modal-content {
    color: var(--ValoVoimaa_ORANGE_darker);
    background-color: #fff;
    margin: 15% auto;
    /* 15% from the top and centered */
    padding: 3rem;
    border: 2px solid var(--ValoVoimaa_ORANGE_dark);
    max-width: calc(var(--max-content-width) - 4rem);
    /* Constrained width */
    width: 70%;
    text-align: left;
}

.modal p {
    font-family: Lato, sans-serif;
}

p.lawTitle {
    font-family: Lato Bold, sans-serif;
    font-size: 1.75rem;
}

p.lawHeadline {
    font-family: Lato Bold, sans-serif;
    margin-top: 20px;
}

/* The Close Button */
.close {
    color: var(--ValoVoimaa_ORANGE_dark);
    float: right;
    font-size: 4rem;
    font-weight: bold;
}

.close:hover,
.close:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}





/* === First breakpoint: 1250px (78.125rem) === */
@media (max-width: 78.125rem) {
    section .container {
        padding: 3rem;
    }

    nav {
        display: flex;
        align-items: center;
        justify-content: space-between;
    }

    #nav_logo {
        left: 2rem;
        /* logo aligned left */
    }

    #nav_logo,
    #nav_logo.scrolled {
        transform: scale(0.75);
        /* 9.375 ÷ 12.5 = 0.75 */
    }

    nav ul {
        display: flex;
        justify-content: space-evenly;
        gap: clamp(1rem, 3vw, 3rem);
        /* Space for logo */
        flex: 1;
    }

    #hero_img {
        background-position: center;
    }

    #nettivaraus6-container {
        width: 100%;
    }
}


/* === Second breakpoint: 950px (59.375rem) === */
@media (max-width: 59.375rem) {

    /* Show hamburger button */
    .menu-button-container {
        display: flex;
        width: 48px;
        /* increase clickable area for better UX */
        height: 48px;
        justify-content: center;
        align-items: center;
    }

    /* Hide desktop links on mobile; use the dropdown instead */
    .nav_links {
        display: none;
    }

    /* Mobile dropdown nav should remain in flow (not absolute) so it pushes content down */
    .mobile-nav {
        display: none;
        background-color: var(--ValoVoimaa_SUN);
        position: static;
        width: 100%;
        z-index: 150;
        padding-right: 3rem;
        padding-bottom: 2rem;
    }

    .mobile-nav ul {
        list-style: none;
        margin: 0;
        padding: 0;
        display: flex;
        flex-direction: column;
        /* align-items: flex-end; */
        /* align right */
        gap: 0.5rem;
    }

    .mobile-nav a {
        font-family: Bodoni Moda, Serif;
        font-size: 1rem;
        /* smaller text */
        line-height: 1.3;
        /* tighter spacing */
        color: white;
        text-decoration: none;
        transition: color 0.3s ease;
    }

    .mobile-nav a:hover {
        color: var(--ValoVoimaa_ORANGE_darker);
    }

    /* When menu is open */
    #menu-toggle:checked~.mobile-nav {
        display: block;
    }

    /* Stack all flex layouts */
    #yritys .container,
    #palvelut .container,
    #hinnasto .price_box_container,
    #otayhteytta .yhteystiedot_container,
    .content-row {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .about_img,
    .massage_room_img_container,
    .price_box,
    .content-row img:not(.image-circle) {
        width: 100%;
        max-width: 100%;
        margin: 0 auto;
    }

    .massage_room_img_container {
        margin-top: 60px;
    }

    /* Consolidated mobile overrides (no !important): make selectors more specific so they override desktop rules */
    .content-row {
        flex-direction: column;
        align-items: stretch;
        /* full-width text-box */
        position: relative;
    }

    .content-row .text-box {
        width: 100%;
        padding: 1.5rem;
        padding-left: 1.5rem;
        padding-right: 1.5rem;
        margin: 0;
        min-height: auto;
        box-sizing: border-box;
        /* reserve space for half the circle plus a small gap */
        padding-bottom: calc(25% + 1rem);
    }

    /* Circle images: 50% of container width, square, centered, overlap bottom by half height.
       Use .content-row .image-circle (more specific) so it overrides the desktop .image-circle rules. */
    .content-row .image-circle {
        position: static;
        /* keep in-flow so following sections are pushed down */
        width: 50%;
        max-width: 400px;
        aspect-ratio: 1 / 1;
        height: auto;
        border-radius: 50%;
        object-fit: cover;
        display: block;
        margin: -25% auto 0 auto;
        /* pull up by half its height and center */
        box-shadow: 0 0.25rem 0.625rem rgba(0, 0, 0, 0.2);
        border: 5px solid white;
        z-index: 2;
        transform: none;
    }

    /* Even .content-row entries: same centered overlap and sizing */
    .content-row:nth-of-type(even) .text-box {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
        margin: 0;
    }

    .content-row:nth-of-type(odd) {
        margin-bottom: 60px;
    }

    .content-row:nth-of-type(even) {
        margin-bottom: 0;
    }

    .content-row:nth-of-type(even) .image-circle {
        position: static;
        width: 50%;
        aspect-ratio: 1 / 1;
        margin: -25% auto 0 auto;
        transform: none;
        left: auto;
        right: auto;
    }

    /* Stack price boxes and add 60px spacing when layout changes to one column */
    .price_box_container {
        flex-direction: column;
        gap: 60px;
    }

    .hero_txt h1 {
        font-size: 3.5rem;
        left: 0;
        right: 0;
        top: 10rem;
    }
}


/* === Third breakpoint: 700px (43.75rem) === */
@media (max-width: 43.75rem) {
    .CTA_button_link {
        width: 90vw;
        right: 5vw;
        left: 5vw;
        text-align: center;
        line-height: 1.3;
    }

    .hero_txt h1 {
        font-size: 3.25rem;
    }

    #hinnasto h4,
    #hinnasto h3 {
        font-size: 1.25rem;
    }

    .price_box,
    .price_txt_addition,
    .yhteystiedot_txt,
    .text-box,
    .about_txt {
        font-size: 1rem;
    }

    .price_txt_addition {
        width: 100%;
    }

    .mobileBreak {
        display: block;
    }
}