html {
    scroll-behavior: smooth;
    /* pehmeä vieritys */
}

/* Perustypografia */
body {
    font-family: "Inter", "Helvetica Neue", Arial, sans-serif;
    color: var(--wp--preset--color--text-main);
    background-color: var(--wp--preset--color--background);
    line-height: 1.6;
    margin: 0;
    padding: 0;
    padding-top: 80px;
    /* headerin korkeus */
    word-break: break-word;
}

/* Otsikot */
h1,
h2,
h3 {
    font-weight: 700;
    margin-bottom: 0.5em;
    color: var(--wp--preset--color--heading);
}

h1 {
    font-size: 3rem;
}

h2 {
    font-size: 2.2rem;
}

h3 {
    font-size: 1.6rem;
}

/* Hero-osio */
.section.hero {
    background: linear-gradient(135deg,
            var(--wp--preset--color--hero-start) 0%,
            var(--wp--preset--color--hero-end) 100%);
    color: var(--wp--preset--color--light);
    text-align: center;
    padding: 120px 20px;
}

.section.hero h1,
.section.hero p {
    color: var(--wp--preset--color--light);
}

.section.hero .wp-block-button__link {
    color: var(--wp--preset--color--light);
    border-radius: 8px;
    padding: 14px 32px;
    font-weight: 700;
    transition: all 0.3s ease;
}

.section.hero .wp-block-button__link:hover {
    transform: translateY(-3px);
}

/* Meistä */
.section.about {
    padding: 80px 20px;
    background: var(--wp--preset--color--background-alt);
    text-align: center;
}

/* Palvelut */
.section.services {
    padding: 80px 20px;
    text-align: center;
}

.section.services ul {
    list-style: none;
    padding: 0;
}

.section.services li {
    display: inline-block;
    margin: 0 20px;
    font-weight: 600;
    color: var(--wp--preset--color--primary);
}

/* Portfolio */
.section.portfolio {
    padding: 80px 20px;
    background: var(--wp--preset--color--background-alt);
    text-align: center;
}

.section.portfolio img {
    border-radius: 8px;
    box-shadow: 0 4px 12px var(--wp--preset--color--border);
    transition: transform 0.3s ease;
}

.section.portfolio img:hover {
    transform: scale(1.05);
}

/* Yhteystiedot */
.section.contact {
    padding: 80px 20px;
    text-align: center;
}

.section.contact p {
    font-size: 1.2rem;
    font-weight: 500;
    color: var(--wp--preset--color--primary);
}

/* Fixed Header */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 999;
    background: var(--wp--preset--color--background);
    border-bottom: 1px solid var(--wp--preset--color--border);
    padding: 20px 40px;
}

.site-header .wp-block-site-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--wp--preset--color--primary);
}

.site-header .wp-block-navigation {
    font-weight: 600;
}

.site-header .wp-block-navigation a {
    color: var(--wp--preset--color--link);
    padding: 8px 16px;
    transition: color 0.3s ease;
}

.site-header .wp-block-navigation a:hover {
    color: var(--wp--preset--color--link-hover);
}

.header-inner {
    width: 1280px;
    margin: 0 auto;
    padding: 0 1rem;
    display: flex;
    justify-content: space-between;
    flex-direction: row;
    align-items: center;
}

/* Footer */
.site-footer {
    background: var(--wp--preset--color--primary);
    color: var(--wp--preset--color--light);
    text-align: center;
    padding: 30px 20px;
    font-size: 0.95rem;
}

.site-footer p {
    margin: 0;
}

.site-footer a {
    color: var(--wp--preset--color--light);
    font-weight: 600;
    text-decoration: none;
}

.site-footer a:hover {
    text-decoration: underline;
}

.site-footer .wp-block-site-title {
    all: unset;
    font-size: inherit;
    font-weight: normal;
    font-family: inherit;
    color: inherit;
    display: inline;
}

.footer-main {
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: large;
    gap: 6px;
}

.footer-main p {
    margin: 0;
    line-height: 1.6;
    color: var(--wp--preset--color--text-muted);
}

.footer-backtotop p {
    margin-top: 0.5em;
    opacity: 0.8;
}

.footer-backtotop a:hover {
    opacity: 1;
}

/* Lomake */
.wpcf7-form {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.wpcf7-form-control {
    width: 375px;
    max-width: 375px;
    border-radius: 6px;
    border-color: var(--wp--preset--color--dark);
    border-style: solid;
    min-height: 25px;
}

.wpcf7-submit.has-spinner {
    width: 120px;
    background-color: var(--wp--preset--color--dark);
    color: var(--wp--preset--color--secondary);
    border: none;
    height: 40px;
    border-radius: 6px;
    font-weight: bold;
    font-size: medium;
}

.wpcf7-response-output {
    max-width: 375px;
    border-radius: 6px;
    margin: 0;
    padding: inherit;
}

/* Responsiivisuus */
@media screen and (max-width: 525px) {
    .footer-main {
        flex-direction: column;
    }

    .wpcf7-form-control {
        max-width: 80%;
    }

    * {
        max-width: 100%;
    }
}
