/* ============================================
   Onni ja tasapaino
   Cool Summer palette, Scandinavian minimalism
   Luovttat-kivipainikkeet layout
   ============================================ */

:root {
    --primary: #9B8A7C; /* Soft taupe for buttons */
    --primary-dark: #817266;
    --text-dark: #3F3A38;
    --text-light: #F0EDE9;
    
    --bg-peach: #F6F1EA;
    --bg-purple: #E7E0EF;
    --bg-pink: #F1DFDD;
    --bg-green: #DCE8E0;
    --bg-blue: #D8E5EF;
    --bg-taupe: #70625E; /* For footer and dark wave */
    
    --surface: #FAFAF8;
    --on-surface: #68615E;
    --white: #ffffff;

    --font-headline: 'Playfair Display', serif;
    --font-body: 'DM Sans', sans-serif;

    --max-width: 1100px;
    --section-padding: 7rem;
    --radius: 20px;
}

/* ---- Reset & Base ---- */

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 100px;
    overflow-x: hidden;
}

body {
    font-family: var(--font-body);
    font-size: 1.0625rem;
    font-weight: 300;
    line-height: 1.7;
    color: var(--text-dark);
    background-color: var(--surface);
    -webkit-font-smoothing: antialiased;
    position: relative;
    overflow-x: hidden; /* Prevent horizontal scroll from large background blobs */
}

/* Radical Continuous Background Blobs */
body::before, body::after {
    content: '';
    position: fixed;
    border-radius: 50%;
    filter: blur(120px);
    z-index: -2;
    opacity: 0.6;
    pointer-events: none;
}

body::before {
    top: -10%;
    left: -10%;
    width: 60vw;
    height: 60vw;
    background: radial-gradient(circle, rgba(231, 224, 239, 1) 0%, rgba(231, 224, 239, 0) 70%);
}

body::after {
    top: 40%;
    right: -20%;
    width: 70vw;
    height: 70vw;
    background: radial-gradient(circle, rgba(220, 232, 224, 0.8) 0%, rgba(220, 232, 224, 0) 70%);
}

.bg-blob-3 {
    position: fixed;
    bottom: -10%;
    left: 20%;
    width: 80vw;
    height: 80vw;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(246, 241, 234, 0.9) 0%, rgba(246, 241, 234, 0) 70%);
    filter: blur(150px);
    z-index: -2;
    opacity: 0.7;
    pointer-events: none;
}

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

a {
    color: inherit;
    text-decoration: none;
}

ul {
    list-style: none;
}

::selection {
    background-color: rgba(196, 160, 168, 0.3);
}

.material-symbols-outlined {
    font-variation-settings: 'FILL' 0, 'wght' 300, 'GRAD' 0, 'opsz' 24;
    vertical-align: middle;
}

/* ---- Layout ---- */

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 1.5rem;
}

.container--narrow {
    max-width: 700px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.section {
    padding: var(--section-padding) 0;
    position: relative;
    z-index: 1; /* Sections sit below wave transitions */
}

.section--alt {
    background: #304A35;
    padding-top: 8rem;
    padding-bottom: 15rem; /* Increased padding to give room for the card shadows above wave-4 */
    position: relative;
    z-index: 21;
}

.section--alt .heading {
    color: var(--text-light);
}

.section--alt .section__divider {
    background-color: var(--text-light);
    opacity: 0.5;
}

.section--white {
    background: linear-gradient(to bottom, 
        rgba(255, 255, 255, 0) 0%, 
        var(--white) 150px, 
        var(--white) calc(100% - 150px), 
        rgba(255, 255, 255, 0) 100%
    );
}

.section--fresh-animated {
    background: linear-gradient(135deg, #FDFBF8 0%, #EAE4DA 100%); /* Lämmin ja rauhallinen hiekansävy */
    color: var(--text-main);
    padding: 13rem 0 10rem 0; /* Increased top padding to compensate for negative margin */
    margin-top: -5rem; /* Pull section up so the wave overlaps the section above */
    
    
    /* Cut top edge into a wave like palvelukortit */
    -webkit-mask-image: url('data:image/svg+xml;utf8,<svg viewBox="0 0 1000 120" preserveAspectRatio="none" xmlns="http://www.w3.org/2000/svg"><path d="M0,40 C400,99 600,0 1000,10 L1000,120 L0,120 Z" fill="%23000"/></svg>'), linear-gradient(#000, #000);
    -webkit-mask-size: 100% 120px, 100% calc(100% - 119px);
    -webkit-mask-position: top left, bottom left;
    -webkit-mask-repeat: no-repeat;
    
    mask-image: url('data:image/svg+xml;utf8,<svg viewBox="0 0 1000 120" preserveAspectRatio="none" xmlns="http://www.w3.org/2000/svg"><path d="M0,40 C400,99 600,0 1000,10 L1000,120 L0,120 Z" fill="%23000"/></svg>'), linear-gradient(#000, #000);
    mask-size: 100% 120px, 100% calc(100% - 119px);
    mask-position: top left, bottom left;
    mask-repeat: no-repeat;
}

@media (max-width: 768px) {
    .section--fresh-animated {
        margin-top: -1rem;
        padding-top: 6rem;
        -webkit-mask-size: 100% 60px, 100% calc(100% - 59px);
        mask-size: 100% 60px, 100% calc(100% - 59px);
    }
}

.section--fresh-animated .section__divider {
    background-color: var(--text-dark);
    opacity: 0.5;
}

/* Removed ambient glowing orbs since we use an image background now */

/* Ensure the container sits above the ambient glow */
.section--fresh-animated .container {
    position: relative;
    z-index: 1;
}


/* ---- Typography ---- */

.heading {
    font-family: var(--font-headline);
    font-weight: 500;
    color: var(--text-dark);
}

.heading--section {
    font-size: 1.5rem;
    line-height: 1.2;
    margin-bottom: 2rem;
}

.heading--center {
    text-align: center;
}

.text-primary { color: var(--primary); }
.text-muted { color: var(--on-surface); opacity: 0.8; }
.text-center { text-align: center; }

.section__header {
    text-align: center;
    margin-bottom: 4rem;
}

.section__divider {
    width: 3rem;
    height: 2px;
    background-color: var(--text-dark);
    opacity: 0.5;
    margin: 1.5rem auto 0;
}

/* ---- Buttons (stone/pebble shape) ---- */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-body);
    font-size: 0.8125rem;
    font-weight: 500;
    padding: 0 2.5rem;
    height: 50px;
    border: none;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-dark);
    
    /* Soft beige pebble gradient */
    background: radial-gradient(circle at 30% 30%, #FDFBF8 0%, #EFE5D8 100%);
    text-decoration: none;
    transition: all 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
    
    /* Pebble shadow (grounded like .root) */
    border: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 
        5px 15px 20px rgba(0, 0, 0, 0.05), 
        inset -5px -5px 15px rgba(0,0,0,0.03), 
        inset 5px 5px 15px rgba(255,255,255,0.8);
        
    /* Pill Shape (like email input) */
    border-radius: 9999px;
    position: relative;
    z-index: 1;
}

.btn--small {
    padding: 0 1.5rem;
    font-size: 0.75rem;
}

.btn::before {
    /* Texture overlay for the buttons, exactly like the roots */
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background-image: url('data:image/svg+xml;utf8,<svg viewBox="0 0 200 200" xmlns="http://www.w3.org/2000/svg"><filter id="noiseFilter"><feTurbulence type="fractalNoise" baseFrequency="0.65" numOctaves="3" stitchTiles="stitch"/></filter><rect width="100%" height="100%" filter="url(%23noiseFilter)"/></svg>');
    opacity: 0.22;
    pointer-events: none;
    mix-blend-mode: color-burn;
    transition: border-radius 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.btn:hover {
    transform: scale(1.02);
    box-shadow: 
        8px 20px 25px rgba(0, 0, 0, 0.07), 
        inset -5px -5px 15px rgba(0,0,0,0.03), 
        inset 5px 5px 15px rgba(255,255,255,0.9);
}



/* ---- Navigation ---- */

.nav {
    position: sticky;
    top: 0;
    z-index: 50;
    width: 100%;
    background-color: rgba(240, 238, 244, 0.9);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(122, 143, 163, 0.1);
}

.nav__inner {
    max-width: var(--max-width);
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem;
}

.nav__logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    min-height: 48px;
}

.nav__logo-text {
    font-family: var(--font-headline);
    color: var(--tertiary);
    font-size: 1.25rem;
}

.nav__logo-img {
    height: 1.75rem;
    width: 1.75rem;
    object-fit: contain;
    border-radius: 50%;
}

.nav__links {
    display: flex;
    align-items: center;
    gap: 2.5rem;
}

.nav__link {
    color: var(--on-surface);
    font-size: 1.0625rem;
    font-weight: 300;
    transition: color 0.3s;
    padding: 0.5rem 0;
    min-height: 48px;
    min-width: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.nav__link:hover,
.nav__link.active {
    color: var(--primary);
}

.nav__cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 1.75rem; /* Smaller padding for nav */
    height: 50px;
    color: var(--text-dark) !important;
    font-size: 0.8125rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    transition: all 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
    
    /* Soft beige pebble gradient */
    background: radial-gradient(circle at 30% 30%, #FDFBF8 0%, #EFE5D8 100%);
    
    /* Pebble shadow (smaller for nav) */
    border: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 
        3px 8px 12px rgba(0, 0, 0, 0.05), 
        inset -3px -3px 8px rgba(0,0,0,0.03), 
        inset 3px 3px 8px rgba(255,255,255,0.8);
        
    /* Pill Shape (like email input) */
    border-radius: 9999px;
    position: relative;
    z-index: 1;
}

.nav__cta::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background-image: url('data:image/svg+xml;utf8,<svg viewBox="0 0 200 200" xmlns="http://www.w3.org/2000/svg"><filter id="noiseFilter"><feTurbulence type="fractalNoise" baseFrequency="0.65" numOctaves="3" stitchTiles="stitch"/></filter><rect width="100%" height="100%" filter="url(%23noiseFilter)"/></svg>');
    opacity: 0.22;
    pointer-events: none;
    mix-blend-mode: color-burn;
    transition: border-radius 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.nav__cta:hover {
    transform: scale(1.02);
    box-shadow: 
        5px 8px 15px rgba(0, 0, 0, 0.08), 
        inset -3px -3px 8px rgba(0,0,0,0.04), 
        inset 3px 3px 8px rgba(255,255,255,0.9);
}

.nav__menu-btn {
    display: none;
    background: none;
    border: none;
    color: var(--primary);
    cursor: pointer;
    padding: 0.5rem;
    min-height: 48px;
    min-width: 48px;
}

@media (max-width: 768px) {
    .nav__links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        flex-direction: column;
        background-color: rgba(240, 238, 244, 0.98);
        backdrop-filter: blur(12px);
        padding: 1.5rem;
        gap: 1.5rem;
        border-bottom: 1px solid rgba(122, 143, 163, 0.1);
    }

    .nav__links.open {
        display: flex;
    }

    .nav__menu-btn {
        display: block;
    }

    .nav__cta {
        align-self: center;
    }
}

/* ---- Section Wave Transitions ---- */

.wave-transition {
    width: 100vw;
    height: 280px;
    margin-left: calc(-50vw + 50%);
    position: relative;
    z-index: 20;
    margin-top: -100px;
    margin-bottom: -100px;
    filter: blur(15px); /* Creates the soft watercolor edge */
    opacity: 0.85;
    -webkit-mask-size: 100% 100%;
    mask-size: 100% 100%;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
}

.wave-1 {
    background: linear-gradient(90deg, #E7E0EF 0%, #F1DFDD 50%, #DCE8E0 100%);
    -webkit-mask-image: url('data:image/svg+xml;utf8,<svg viewBox="0 0 1000 200" preserveAspectRatio="none" xmlns="http://www.w3.org/2000/svg"><path d="M0,20 C300,99 700,0 1000,30 L1000,130 C700,100 300,199 0,120 Z" fill="%23000"/></svg>');
    mask-image: url('data:image/svg+xml;utf8,<svg viewBox="0 0 1000 200" preserveAspectRatio="none" xmlns="http://www.w3.org/2000/svg"><path d="M0,20 C300,99 700,0 1000,30 L1000,130 C700,100 300,199 0,120 Z" fill="%23000"/></svg>');
}

.wave-2 {
    background: linear-gradient(90deg, #DCE8E0 0%, #F6F1EA 50%, #E7E0EF 100%);
    -webkit-mask-image: url('data:image/svg+xml;utf8,<svg viewBox="0 0 1000 200" preserveAspectRatio="none" xmlns="http://www.w3.org/2000/svg"><path d="M0,80 C300,0 700,99 1000,70 L1000,170 C700,199 300,100 0,180 Z" fill="%23000"/></svg>');
    mask-image: url('data:image/svg+xml;utf8,<svg viewBox="0 0 1000 200" preserveAspectRatio="none" xmlns="http://www.w3.org/2000/svg"><path d="M0,80 C300,0 700,99 1000,70 L1000,170 C700,199 300,100 0,180 Z" fill="%23000"/></svg>');
}

.wave-3 {
    background: #304A35;
    -webkit-mask-image: url('data:image/svg+xml;utf8,<svg viewBox="0 0 1000 200" preserveAspectRatio="none" xmlns="http://www.w3.org/2000/svg"><path d="M0,40 C400,99 600,0 1000,10 L1000,200 L0,200 Z" fill="%23000"/></svg>');
    mask-image: url('data:image/svg+xml;utf8,<svg viewBox="0 0 1000 200" preserveAspectRatio="none" xmlns="http://www.w3.org/2000/svg"><path d="M0,40 C400,99 600,0 1000,10 L1000,200 L0,200 Z" fill="%23000"/></svg>');
    filter: none;
    opacity: 1;
    margin-top: -140px;
    margin-bottom: -180px;
}

.wave-4 {
    background: #304A35;
    -webkit-mask-image: url('data:image/svg+xml;utf8,<svg viewBox="0 0 1000 200" preserveAspectRatio="none" xmlns="http://www.w3.org/2000/svg"><path d="M0,-2 L1000,-2 L1000,160 C600,199 400,100 0,140 Z" fill="%23000"/></svg>');
    mask-image: url('data:image/svg+xml;utf8,<svg viewBox="0 0 1000 200" preserveAspectRatio="none" xmlns="http://www.w3.org/2000/svg"><path d="M0,-2 L1000,-2 L1000,160 C600,199 400,100 0,140 Z" fill="%23000"/></svg>');
    filter: none;
    opacity: 1;
    z-index: 22;
    margin-top: -140px;
    margin-bottom: -60px;
}

@media (max-width: 768px) {
    .wave-transition {
        height: 120px;
        margin-top: -50px;
        margin-bottom: -50px;
    }
    .wave-2 {
        margin-top: 20px;
        margin-bottom: -100px;
    }
    .wave-3 {
        margin-top: -60px;
        margin-bottom: -40px;
    }
    .wave-4 {
        margin-top: -50px;
        margin-bottom: -60px;
    }
}

/* ---- Hero ---- */

.hero {
    position: relative;
    min-height: 65vh; /* Taller to push wave even lower */
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: visible; /* Let the blobs breathe */
    padding: 6rem 0; /* More padding to ensure it's tall enough */
    text-align: center;
    
    /* Sharp, gentle wave mask cutting the bottom of the hero section */
    -webkit-mask-image: url('data:image/svg+xml;utf8,<svg viewBox="0 0 1000 200" preserveAspectRatio="none" xmlns="http://www.w3.org/2000/svg"><path d="M0,0 L1000,0 L1000,140 C750,170 250,110 0,140 Z" fill="%23000"/></svg>');
    mask-image: url('data:image/svg+xml;utf8,<svg viewBox="0 0 1000 200" preserveAspectRatio="none" xmlns="http://www.w3.org/2000/svg"><path d="M0,0 L1000,0 L1000,140 C750,170 250,110 0,140 Z" fill="%23000"/></svg>');
    -webkit-mask-size: 100% 100%;
    mask-size: 100% 100%;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
}

.hero__watercolor {
    position: absolute;
    inset: -5%; /* Slightly larger to allow the blur to breathe */
    z-index: -1;
    background:
        /* Top left lavender */
        radial-gradient(circle at 20% 30%, rgba(223, 213, 234, 0.9) 0%, transparent 55%),
        /* Bottom right soft rose/pink */
        radial-gradient(circle at 80% 80%, rgba(238, 218, 225, 0.9) 0%, transparent 65%),
        /* Bottom left warm yellow/beige */
        radial-gradient(circle at 15% 90%, rgba(247, 241, 226, 0.9) 0%, transparent 60%),
        /* Top right subtle glow */
        radial-gradient(circle at 80% 20%, rgba(250, 248, 245, 0.8) 0%, transparent 50%),
        /* Solid creamy base since there's no image anymore */
        #FAFAF8;
    filter: blur(60px);
    transform: scale(1.1);
}

.hero__content {
    position: relative;
    z-index: 10;
    max-width: 800px;
    margin: 0 auto;
    margin-top: -24vh; /* Move text extremely high up */
    padding: 0 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hero__welcome {
    display: block;
    font-size: 1rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--primary-dark);
    margin-bottom: 1.5rem;
}

.hero__title {
    font-family: var(--font-headline);
    font-size: 3.5rem;
    font-weight: 400;
    line-height: 1.15;
    letter-spacing: -0.01em;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.hero__subtitle {
    font-family: var(--font-headline);
    font-style: italic;
    font-size: 1rem;
    color: var(--on-surface);
    opacity: 0.6;
    margin-bottom: 2.5rem;
}

@media (max-width: 768px) {
    .hero {
        min-height: 45vh;
        padding: 3rem 0 6rem;
    }

    .hero__content {
        margin-top: -8vh;
    }

    .hero__title {
        font-size: 2.25rem;
    }
}

/* ---- About ---- */

.about {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 5rem;
    align-items: center;
}

.about__image-wrap {
    position: relative;
}

.about__label {
    display: block;
    font-size: 0.6875rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--on-surface);
    opacity: 0.5;
    margin-bottom: 0.75rem;
}

.about__image {
    width: 100%;
    aspect-ratio: 4 / 5;
    object-fit: cover;
    border-radius: 4px; /* Less rounded corners for images */
}

.about__text {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    align-items: flex-start;
}

.about__text p {
    color: var(--on-surface);
}

@media (max-width: 768px) {
    .about {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .about__image-wrap {
        order: 2;
    }

    .about__text {
        order: 1;
    }
}

/* ---- Radical Roots (Textured Pebbles) ---- */

.roots {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    padding: 4rem 0;
}

.root-wrapper {
    perspective: 1000px;
    cursor: pointer; /* make it clear it's clickable */
}

.root-flipper {
    position: relative;
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
    -webkit-transform-style: preserve-3d;
    transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.root-wrapper.is-flipped .root-flipper {
    transform: rotateY(180deg);
    -webkit-transform: rotateY(180deg);
}

.root-wrapper:hover .root-flipper {
    transform: scale(1.02);
    -webkit-transform: scale(1.02);
}

.root-wrapper.is-flipped:hover .root-flipper {
    transform: rotateY(180deg) scale(1.02);
    -webkit-transform: rotateY(180deg) scale(1.02);
}

.root {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 4rem 2rem;
    position: relative;
    transition: all 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
    
    /* Crisp edge and grounded shadow */
    border: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 
        5px 15px 20px rgba(0, 0, 0, 0.05), 
        inset -5px -5px 15px rgba(0,0,0,0.03), 
        inset 5px 5px 15px rgba(255,255,255,0.8);
        
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    /* Force hardware acceleration to prevent Safari rendering bugs */
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
}

.root--back {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    transform: rotateY(180deg) translateZ(0);
    -webkit-transform: rotateY(180deg) translateZ(0);
}

.root::before {
    /* Strong texture overlay for the stones */
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background-image: url('data:image/svg+xml;utf8,<svg viewBox="0 0 200 200" xmlns="http://www.w3.org/2000/svg"><filter id="noiseFilter"><feTurbulence type="fractalNoise" baseFrequency="0.65" numOctaves="3" stitchTiles="stitch"/></filter><rect width="100%" height="100%" filter="url(%23noiseFilter)"/></svg>');
    opacity: 0.22;
    pointer-events: none;
    mix-blend-mode: color-burn;
}

.root-wrapper:hover .root {
    box-shadow: 
        8px 20px 25px rgba(0, 0, 0, 0.07), 
        inset -5px -5px 15px rgba(0,0,0,0.03), 
        inset 5px 5px 15px rgba(255,255,255,0.9);
}

/* Specific Pebble Shapes and Colors matching the image exactly */
.root--mieli {
    border-radius: 40% 60% 70% 30% / 50% 40% 60% 50%;
    background: radial-gradient(circle at 30% 30%, #FDFBF8 0%, #EFE5D8 100%);
}

.root--keho {
    border-radius: 50% 50% 40% 60% / 60% 40% 60% 40%;
    background: radial-gradient(circle at 30% 30%, #FDFBF8 0%, #F3E4E2 100%);
}

.root--ravinto {
    border-radius: 45% 55% 50% 50% / 55% 45% 50% 45%;
    background: radial-gradient(circle at 30% 30%, #FDFBF8 0%, #EFEBDC 100%);
}

.root--luonto {
    border-radius: 60% 40% 50% 50% / 40% 60% 40% 60%;
    background: radial-gradient(circle at 30% 30%, #FDFBF8 0%, #DCE9F0 100%);
}







.root__icon {
    font-size: 1.25rem;
    color: var(--text-dark);
    opacity: 0.6;
    margin-bottom: 1rem;
    
    /* Stamp-like circular border */
    width: 3rem;
    height: 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(0, 0, 0, 0.15);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    position: relative;
    z-index: 1;
}

.root__title {
    font-family: var(--font-headline);
    font-size: 1.5rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
    position: relative;
    z-index: 1;
}

.root__text {
    font-size: 0.8125rem;
    line-height: 1.6;
    color: var(--text-dark);
    position: relative;
    z-index: 1;
    font-weight: 500;
}

@media (max-width: 768px) {
    .roots {
        grid-template-columns: 1fr 1fr;
        gap: 1.5rem;
        padding-bottom: 0;
    }
}

@media (max-width: 480px) {
    .roots {
        grid-template-columns: 1fr;
    }
    .root {
        max-width: 280px;
        margin: 0 auto;
        padding: 3rem 1.5rem;
    }
}

/* ---- Radical Glassmorphism Services ---- */

.services {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
    margin-top: 5rem;
    position: relative;
    z-index: 25; /* Ensures card box-shadows aren't cut off by wave-4 below */
}

.service {
    position: relative;
    padding: 2.5rem 2.5rem;
    border-radius: 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: all 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);

    border: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow:
        5px 15px 20px rgba(0, 0, 0, 0.05),
        inset -5px -5px 15px rgba(0,0,0,0.03),
        inset 5px 5px 15px rgba(255,255,255,0.8);
}

.service::before {
    /* Pebble texture overlay */
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background-image: url('data:image/svg+xml;utf8,<svg viewBox="0 0 200 200" xmlns="http://www.w3.org/2000/svg"><filter id="noiseFilter"><feTurbulence type="fractalNoise" baseFrequency="0.65" numOctaves="3" stitchTiles="stitch"/></filter><rect width="100%" height="100%" filter="url(%23noiseFilter)"/></svg>');
    opacity: 0.22;
    pointer-events: none;
    mix-blend-mode: color-burn;
    z-index: 0;
}

/* Ensure content is above texture */
.service > * {
    position: relative;
    z-index: 1;
}

.service:hover {
    transform: scale(1.02);
    box-shadow:
        8px 20px 25px rgba(0, 0, 0, 0.07),
        inset -5px -5px 15px rgba(0,0,0,0.03),
        inset 5px 5px 15px rgba(255,255,255,0.9);
}

.service--yhteiso {
    background: radial-gradient(circle at 30% 30%, #FDFBF8 0%, #DCE9F0 100%);
}

.service--yksilollinen,
.service--itsehoito {
    background: radial-gradient(circle at 50% 50%, #FFFFFF 0%, #FDFBF8 20%, #F3E4E2 100%);
    box-shadow:
        0 0 50px rgba(243, 228, 226, 0.6),
        5px 15px 20px rgba(0, 0, 0, 0.05),
        inset -5px -5px 15px rgba(0,0,0,0.03),
        inset 5px 5px 15px rgba(255,255,255,0.9);
}

.service--yksilollinen:hover,
.service--itsehoito:hover {
    box-shadow:
        0 0 60px rgba(243, 228, 226, 0.8),
        8px 20px 25px rgba(0, 0, 0, 0.07),
        inset -5px -5px 15px rgba(0,0,0,0.03),
        inset 5px 5px 15px rgba(255,255,255,0.9);
}

a.service {
    cursor: pointer;
    text-decoration: none;
    color: inherit;
}

.service--coming-soon {
    opacity: 0.7;
    cursor: default;
}

.service--coming-soon:hover {
    transform: none;
}

.service__badge {
    position: absolute;
    bottom: 2rem;
    background-color: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(5px);
    color: var(--text-dark);
    font-size: 0.625rem;
    font-weight: 500;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    padding: 0.5rem 1.5rem;
    border-radius: 9999px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.service__label {
    font-size: 0.6875rem;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: var(--text-dark);
    margin-top: 1rem;
    margin-bottom: 1.5rem;
    opacity: 0.7;
}

.service__title {
    font-family: var(--font-headline);
    font-size: 2rem;
    font-weight: 400;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

.service__price {
    font-size: 1.5rem;
    font-weight: 300;
    margin-bottom: 2rem;
    color: var(--text-dark);
}

.service__unit {
    font-size: 1rem;
    opacity: 0.5;
}

.service__features {
    flex-grow: 1;
    margin-bottom: 2rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    color: var(--text-dark);
    font-size: 0.8125rem;
    font-weight: 500;
    line-height: 1.6;
    opacity: 1;
}

.service .btn {
    position: absolute;
    bottom: -2.5rem; /* Pulled down further because pebbles are taller */
    left: 50%;
    transform: translateX(-50%);
    /* Keep the pebble shadow, override the generic pull-down shadow */
    box-shadow: 
        5px 10px 20px rgba(0, 0, 0, 0.08), 
        inset -5px -5px 15px rgba(0,0,0,0.04), 
        inset 5px 5px 15px rgba(255,255,255,0.8);
}

.service:hover .btn {
    transform: translateX(-50%) scale(1.02);
    box-shadow: 
        8px 15px 30px rgba(0, 0, 0, 0.1), 
        inset -5px -5px 15px rgba(0,0,0,0.04), 
        inset 5px 5px 15px rgba(255,255,255,0.9);
}

@media (max-width: 768px) {
    .services {
        grid-template-columns: 1fr;
        max-width: 340px;
        margin: 1rem auto 0 auto;
        width: 100%;
    }
}

@media (max-width: 480px) {
    .service {
        padding: 2rem 1.25rem;
        width: 100%;
        box-sizing: border-box;
        min-width: 0;
    }
    .service__title {
        font-size: 1.6rem;
    }
}

/* ---- Quote Banner ---- */

.quote-banner {
    position: relative;
    text-align: center;
    padding: 4rem 0;
    overflow: hidden;
    background: transparent;
}

.quote-banner__mark {
    font-family: var(--font-headline);
    font-size: 2rem;
    line-height: 1;
    color: var(--text-dark);
    opacity: 0.8;
    display: block;
    margin-bottom: 1.5rem;
}

.quote-banner__text {
    font-family: var(--font-headline);
    font-size: 1.5rem;
    line-height: 1.3;
    max-width: 800px;
    margin: 0 auto;
    color: var(--text-dark);
}

/* ---- Instagram ---- */

.instagram__header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 3rem;
}

.instagram__link {
    color: var(--text-dark);
    font-weight: 400;
    font-size: 0.875rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: opacity 0.3s;
    opacity: 0.8;
    min-height: 48px;
}

.instagram__link:hover {
    opacity: 0.7;
}

.instagram__link .material-symbols-outlined {
    font-size: 0.875rem;
}

.instagram__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.instagram__img {
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: var(--radius);
    transition: opacity 0.3s;
}

.instagram__img:hover {
    opacity: 0.9;
}

@media (max-width: 768px) {
    .instagram__grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    .instagram__header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
}

/* ---- Clean Bottom Wrapper (Professional Waves) ---- */

.bottom-wrapper {
    position: relative;
    background-color: #584D49; /* Deep, rich taupe */
    color: var(--text-light);
    margin-top: 0; /* Waves removed */
    padding-top: 4rem;
}

/* ---- Newsletter ---- */

.newsletter {
    position: relative;
    padding: 2rem 0 4rem;
    z-index: 1;
}

.newsletter__inner {
    position: relative;
    z-index: 1;
    text-align: center;
}

.newsletter .heading {
    color: var(--text-light);
    margin-bottom: 1rem;
}

.newsletter p {
    margin-bottom: 1.5rem;
    color: var(--text-light);
}

.newsletter__form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-width: 500px;
    margin: 0 auto;
}

@media (min-width: 480px) {
    .newsletter__form {
        flex-direction: row;
    }
}

.newsletter__form .btn {
    align-self: center;
}

.newsletter__form .input {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--white);
    border-radius: 9999px;
}

.newsletter__form .input::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.newsletter__form .input:focus {
    border-color: rgba(255, 255, 255, 0.5);
    background: rgba(255, 255, 255, 0.15);
}

/* ---- Contact ---- */

.section--contact {
    position: relative;
    z-index: 1;
    padding-bottom: 6rem;
}

.contact {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
}

.contact__info .heading {
    color: var(--text-light);
}

.contact__info .text-muted {
    margin-bottom: 3rem;
    color: var(--text-light);
    opacity: 0.8;
}

.contact__details {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact__detail {
    display: flex;
    align-items: center;
    gap: 1rem;
    color: var(--text-light);
}

.contact__detail .material-symbols-outlined {
    color: var(--text-light);
    opacity: 0.7;
}

.contact__form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact__form .btn {
    align-self: flex-start;
}

@media (max-width: 768px) {
    .contact {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
}

/* ---- Forms ---- */

.form-group {
    display: flex;
    flex-direction: column;
}

.label {
    font-family: var(--font-body);
    font-size: 0.8125rem;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-light);
    margin-bottom: 0.5rem;
    opacity: 0.8;
}

.input {
    font-family: var(--font-body);
    font-size: 1.0625rem;
    font-weight: 300;
    width: 100%;
    padding: 0 1.25rem;
    height: 50px;
    border: none;
    border-radius: 9999px;
    background-color: var(--surface);
    color: var(--text-dark);
    transition: all 0.3s;
    outline: none;
}

.input:focus {
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.3);
}

.input--textarea {
    resize: vertical;
    min-height: 120px;
    height: auto;
    padding: 1.25rem;
    border-radius: 25px; /* Matches the curve of a 50px pill */
}

/* ---- Footer ---- */

.footer {
    position: relative;
    z-index: 1;
    border-top: none;
    padding: 2rem 0;
}

.footer__inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.footer__brand {
    flex: 1 1 300px;
}

.footer__logo {
    font-family: var(--font-headline);
    font-size: 1.25rem;
    display: block;
    margin-bottom: 0.25rem;
    color: var(--text-light);
}

.footer__copy {
    font-size: 1.0625rem;
    font-weight: 300;
    opacity: 0.8;
    color: var(--text-light);
}

.footer__links {
    display: none;
}

.footer__links a {
    font-size: 0.75rem;
    letter-spacing: 0.05em;
    opacity: 0.8;
    color: var(--text-light);
    transition: opacity 0.3s;
    padding: 0.5rem 0;
    min-height: 48px;
    display: inline-flex;
    align-items: center;
}

.footer__links a:hover {
    opacity: 1;
}

@media (max-width: 768px) {
    .footer__inner {
        flex-direction: column;
        text-align: center;
        gap: 2rem;
    }
    
    .footer__links {
        justify-content: center;
    }
}

.footer__social a {
    opacity: 0.6;
    transition: opacity 0.3s;
}

.footer__social a:hover {
    opacity: 1;
}

@media (max-width: 768px) {
    :root {
        --section-padding: 4rem;
    }

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

@media (max-width: 480px) {
    :root {
        --section-padding: 2.5rem;
    }
}

.footer__disclaimer {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    font-size: 0.85rem;
    color: var(--text-light);
    opacity: 0.7;
    text-align: center;
}
