/*
Theme Name: HydroVakka
Theme URI: https://wdf.fi
Author: Digitoimisto WDF
Author URI: https://wdf.fi
Description: HydroVakan oma lohkoteema (WDF-startterista)
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 8.0
Text Domain: wdf-theme
*/

/* =========================================
   Globaalit muuttujat — osioiden spacing
   ========================================= */

:root {
    --wdf-padding-x: 64px;
    --wdf-padding-y: 96px;
}

@media (max-width: 1366px) {
    :root {
        --wdf-padding-x: 48px;
        --wdf-padding-y: 80px;
    }
}

@media (max-width: 1024px) {
    :root {
        --wdf-padding-x: 32px;
        --wdf-padding-y: 64px;
    }
}

@media (max-width: 767px) {
    :root {
        --wdf-padding-x: 16px;
        --wdf-padding-y: 64px;
    }
}

/* =========================================
   Perustyylit
   ========================================= */

html {
    overflow-x: hidden;
    /* Mobiiliselaimen overscroll näyttää html-taustan — sama väri kuin bodylla */
    background-color: #f9f9f9;
}

body {
    line-height: 1.6;
}

p {
    margin: 0 0 16px 0;
}

a {
    color: var(--wp--preset--color--text);
}

/* Otsikot */
h1 { font-size: 2.986rem; }
h2 { font-size: 2.488rem; }
h3 { font-size: 2.074rem; }
h4 { font-size: 1.728rem; }
h5 { font-size: 1.44rem; }
h6 { font-size: 1.2rem; }

h1, h2, h3, h4, h5, h6 {
    font-family: 'Manrope', sans-serif;
    line-height: 1.1;
    font-weight: 800;
    letter-spacing: -0.01em;
    text-wrap: balance;
}

@media (max-width: 767px) {
    h1 { font-size: 2.027rem; }
    h2 { font-size: 1.802rem; }
    h3 { font-size: 1.602rem; }
    h4 { font-size: 1.424rem; }
    h5 { font-size: 1.266rem; }
    h6 { font-size: 1.125rem; }
}

/* Sivun sisältöalue */
.wp-block-post-content {
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
    padding-left: var(--wdf-padding-x);
    padding-right: var(--wdf-padding-x);
    box-sizing: border-box;
}

/* =========================================
   Globaalit painikkeet
   ========================================= */

.wdf-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 16px 32px;
    font-family: inherit;
    font-size: 0.8125rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    text-decoration: none;
    cursor: pointer;
    border-radius: 999px;
    line-height: 1;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.wdf-btn:hover {
    text-decoration: none;
}

.wdf-btn--primary {
    background: var(--wp--preset--color--text);
    color: #f9f9f9;
    border: 1px solid var(--wp--preset--color--text);
}

.wdf-btn--primary:hover {
    background: transparent;
    color: var(--wp--preset--color--text);
}

.wdf-btn--outline {
    background: transparent;
    color: var(--wp--preset--color--text);
    border: 1px solid var(--wp--preset--color--text);
}

.wdf-btn--outline:hover {
    background: var(--wp--preset--color--text);
    color: #f9f9f9;
}

/* =========================================
   Footer
   ========================================= */

.wdf-footer-credit {
    padding: 64px var(--wdf-padding-x);
    margin: 0;
    font-size: 0.6875rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.wdf-footer-credit a {
    text-decoration: none;
}

.wdf-footer-credit a:hover {
    text-decoration: underline;
}

/* =========================================
   404-virhesivu
   ========================================= */

.wdf-404 {
    max-width: 1400px;
    margin-inline: auto;
    padding: var(--wdf-padding-y) var(--wdf-padding-x);
    text-align: center;
    box-sizing: border-box;
}

.wdf-404__numero {
    line-height: 1;
}

.wdf-404__painike {
    margin-top: 32px;
}
