/* Värit ja perusasetukset */
:root {
    --ink: #302535;
    --muted: #675f69;
    --plum: #45334d;
    --paper: #fbfaf8;
    --soft: #eee8ef;
    --line: #d8d0da;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    background: var(--paper);
    color: var(--ink);
    font-family: Arial, Helvetica, sans-serif;
    font-size: 16px;
    line-height: 1.7;
}

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

h1, h2, h3, p, dl, dd {
    margin: 0;
}

h1, h2, h3 {
    line-height: 1.12;
    letter-spacing: -0.04em;
}

h1 {
    font-size: clamp(2.9rem, 5.3vw, 5.2rem);
    font-weight: 600;
}

h2 {
    font-size: clamp(2rem, 3.5vw, 3.3rem);
    font-weight: 600;
}

h3 {
    font-size: 1.65rem;
}

a {
    color: inherit;
    text-underline-offset: 5px;
}

a:hover {
    text-decoration-thickness: 2px;
}

button, input, textarea {
    font: inherit;
}

:focus-visible {
    outline: 3px solid #9c633d;
    outline-offset: 5px;
}

[hidden] {
    display: none !important;
}

.wrap {
    width: min(1180px, calc(100% - 96px));
    margin-inline: auto;
}

.section {
    padding-block: 100px;
}

section[id] {
    scroll-margin-top: 100px;
}

.eyebrow {
    margin-bottom: 22px;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.skip {
    position: absolute;
    top: -100px;
    left: 16px;
    z-index: 100;
    padding: 12px;
    background: white;
}

.skip:focus {
    top: 12px;
}

/* Ylävalikko ja painikkeet */
.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
}

.header-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
    min-height: 92px;
}

.brand img {
    width: 140px;
    height: 60px;
    object-fit: contain;
}

.site-header nav {
    display: flex;
    align-items: center;
    gap: 32px;
}

.site-header nav a {
    text-decoration: none;
    font-size: 0.9rem;
}

.site-header nav a:hover {
    text-decoration: underline;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 52px;
    padding: 13px 28px;
    border: 1px solid var(--plum);
    border-radius: 4px;
    background: var(--plum);
    color: white;
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    cursor: pointer;
}

.button:hover {
    background: #60466b;
    text-decoration: none;
}

.button:disabled {
    opacity: 0.65;
    cursor: wait;
}

.button-small {
    min-height: 44px;
    padding: 9px 22px;
}

.menu-toggle {
    display: none;
    min-height: 44px;
    padding: 8px 16px;
    border: 1px solid var(--line);
    background: transparent;
    color: var(--ink);
}

/* Etusivun aloitus */
.hero {
    padding-block: 110px 120px;
    background-color: #eee8e2;
    background-image: linear-gradient(90deg, rgba(251, 250, 248, 0.97), rgba(251, 250, 248, 0.86) 48%, rgba(251, 250, 248, 0.12)), url("tausta_3.jpg");
    background-position: center;
    background-size: cover;
}

.hero-text {
    margin-top: 30px;
    max-width: 580px;
    font-size: 1.15rem;
}

.actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 28px;
    margin-top: 36px;
}

.phone-link {
    font-weight: 600;
    text-decoration: none;
}

/* Palvelut */
.section-heading {
    margin-bottom: 44px;
}

.section-heading > p:last-child:not(.eyebrow) {
    margin-top: 24px;
    color: var(--muted);
}

.services {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 30px;
}

.service {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 38px;
    border-top: 1px solid var(--line);
}

.service p {
    margin-block: 20px 28px;
    color: var(--muted);
}

.service a {
    margin-top: auto;
    font-size: 0.85rem;
    font-weight: 600;
}

/* Pirjon esittely */
.about {
    background: var(--soft);
}

.about-grid {
    display: grid;
    grid-template-columns: 0.85fr 1.15fr;
    align-items: center;
    gap: 90px;
}

.portrait {
    width: 100%;
    aspect-ratio: 4 / 5;
    object-fit: cover;
    object-position: 60% center;
    border-radius: 4px;
}

.about-copy h2 {
    margin-bottom: 28px;
}

.about-copy p:not(.eyebrow) {
    margin-bottom: 20px;
    color: var(--muted);
}

.about-copy .button {
    margin-top: 12px;
}

/* Hinnasto */
.price-grid {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 80px;
}

.prices {
    border-top: 1px solid var(--line);
}

.prices > div {
    display: flex;
    justify-content: space-between;
    gap: 24px;
    padding-block: 22px;
    border-bottom: 1px solid var(--line);
}

.prices dt {
    font-weight: 600;
}

.prices small {
    display: block;
    color: var(--muted);
    font-weight: 400;
}

.prices dd {
    text-align: right;
    font-weight: 600;
}

.price-note {
    margin-top: 16px;
    color: var(--muted);
    font-size: 0.85rem;
}

/* Yhteystiedot ja lomake */
.contact {
    background: var(--plum);
    color: white;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 100px;
}

.contact h2 {
    margin-bottom: 28px;
}

.contact-grid > div > p:not(.eyebrow) {
    max-width: 440px;
    color: #e3dbe7;
}

.contact-phone {
    display: block;
    margin-top: 32px;
    font-size: 1.85rem;
    font-weight: 600;
    text-decoration: none;
}

.contact-email {
    display: inline-block;
    margin-top: 8px;
}

.area {
    margin-top: 24px;
    font-size: 0.85rem;
}

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

.contact-form label {
    margin-bottom: 6px;
    font-size: 0.9rem;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    min-width: 0;
    margin-bottom: 20px;
    padding: 12px 14px;
    border: 1px solid #cbbdce;
    border-radius: 3px;
    background: var(--paper);
    color: var(--ink);
}

.contact-form textarea {
    resize: vertical;
}

.contact-form .button {
    align-self: flex-start;
    background: white;
    color: var(--plum);
    border-color: white;
}

.contact-form .button:hover {
    background: var(--soft);
}

.privacy-note {
    margin-bottom: 20px;
    font-size: 0.8rem;
    color: #e3dbe7;
}

#formStatus {
    margin-top: 18px;
}

#formStatus:empty {
    display: none;
}

/* Alatunniste */
.site-footer {
    padding-block: 30px;
    font-size: 0.8rem;
    color: var(--muted);
}

.footer-row {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
}

/* Tabletit */
@media (max-width: 1000px) {
    .services {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 40px;
    }
    .about-grid,
    .price-grid,
    .contact-grid {
        gap: 40px;
    }
}

/* Puhelimet ja mobiilivalikko */
@media (max-width: 760px) {
    .wrap {
        width: calc(100% - 40px);
    }
    .section {
        padding-block: 60px;
    }
    .header-row {
        min-height: 76px;
        flex-wrap: wrap;
        gap: 0;
    }
    .brand img {
        width: 116px;
        height: 54px;
    }
    .menu-toggle:not([hidden]) {
        display: block;
    }
    .site-header nav {
        width: 100%;
        flex-direction: column;
        align-items: stretch;
        gap: 4px;
        padding-block: 12px 20px;
    }
    .site-header nav a {
        padding: 10px 14px;
    }
    .js-menu nav {
        display: none;
    }
    .js-menu nav.is-open {
        display: flex;
    }
    .hero {
        padding-block: 70px 80px;
        background-image: linear-gradient(rgba(251, 250, 248, 0.90), rgba(251, 250, 248, 0.84)), url("tausta_3.jpg");
    }
    h1 {
        font-size: clamp(2.45rem, 8.5vw, 4rem);
    }
    .hero-text {
        font-size: 1rem;
    }
    .hero-text br {
        display: none;
    }
    .about-grid,
    .price-grid,
    .contact-grid {
        grid-template-columns: 1fr;
    }
    .portrait {
        max-width: 380px;
    }
    .price-grid .section-heading {
        margin-bottom: 0;
    }
    .prices > div {
        gap: 16px;
        font-size: 0.9rem;
    }
    .prices dd {
        max-width: 45%;
        flex-shrink: 0;
    }
    .footer-row {
        flex-direction: column;
        gap: 12px;
    }
}

@media (max-width: 480px) {
    .services {
        grid-template-columns: 1fr;
        gap: 36px;
    }
    .service p {
        margin-block: 16px 20px;
    }
}

/* Palveluiden pinnat ja vahvemmat otsikot */
h1, h2, h3 {
    font-family: "Arial Black", "Segoe UI", Arial, sans-serif;
    font-weight: 800;
}

.service {
    border: 0;
    border-radius: 12px;
    background: #eee8ef;
    min-height: 240px;
}

.service:nth-child(2),
.service:nth-child(3) {
    background: #f0ebe1;
}

.service h3 {
    font-size: clamp(1.8rem, 3vw, 2.4rem);
}

/* Tekstiilipesujen ennen–jälkeenkuva */
.work-section {
    background: #f0ebe1;
}

.work-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.work-copy h2 {
    margin-bottom: 28px;
}

.work-copy p:not(.eyebrow) {
    margin-bottom: 20px;
    color: var(--muted);
}

.work-copy .button {
    margin-top: 12px;
}

.work-photo {
    margin: 0;
}

.work-photo img {
    width: 100%;
    border-radius: 12px;
}

.work-photo figcaption {
    display: grid;
    grid-template-columns: 1fr 1fr;
    padding-top: 16px;
    text-align: center;
    font-weight: 600;
}

/* Asiakaspalautteet ja Google-arvostelulinkki */
.feedback-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 40px;
}

.feedback-quote {
    margin: 0;
    padding-top: 26px;
    border-top: 2px solid var(--plum);
}

.feedback-quote blockquote {
    margin: 0 0 24px;
    font-size: 1.1rem;
}

.feedback-quote figcaption {
    color: var(--muted);
    font-size: 0.85rem;
}

.review-action {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
    margin-top: 50px;
}

.review-action p {
    max-width: 570px;
    color: var(--muted);
}

.review-action .button {
    flex-shrink: 0;
}

@media (max-width: 760px) {
    .work-grid,
    .feedback-grid {
        grid-template-columns: 1fr;
        gap: 36px;
    }
    .review-action {
        flex-direction: column;
        align-items: flex-start;
    }
    .service {
        padding: 28px;
    }
    .work-photo {
        max-width: 520px;
    }
}

/* Sulauta logokuvan valkoinen tausta yläpalkkiin. */
.brand img {
    mix-blend-mode: multiply;
}

/* Yhtenäinen alatunniste */
.site-footer {
    padding: 58px 0;
    border-top: 1px solid #77617f;
    background: #2c2032;
    color: #f7f3f8;
    font-size: 0.95rem;
    line-height: 1.7;
}

.site-footer .footer-row {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr;
    align-items: start;
    gap: 48px;
}

.site-footer .footer-brand strong {
    display: block;
    margin-bottom: 14px;
    font-size: 2rem;
    line-height: 1.1;
    color: white;
}

.site-footer p {
    margin: 0;
    color: #e0d5e5;
}

.site-footer .footer-label {
    margin-bottom: 10px;
    color: white;
    font-weight: 600;
}

.site-footer a {
    display: block;
    width: fit-content;
    margin-top: 8px;
    color: #f7f3f8;
    text-decoration-color: #a797ae;
    text-underline-offset: 5px;
}

.site-footer a:hover {
    color: white;
    text-decoration-color: white;
}

.site-footer .footer-details {
    padding-left: 28px;
    border-left: 1px solid #77617f;
    font-size: 0.85rem;
}

@media (max-width: 760px) {
    .site-footer {
        padding: 42px 0;
    }

    .site-footer .footer-row {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .site-footer .footer-details {
        padding: 22px 0 0;
        border-left: 0;
        border-top: 1px solid #77617f;
    }
}

/* Vaalea logo: valkoinen kuvatausta sulautuu tummaan alatunnisteeseen. */
.site-footer .footer-logo {
    display: block;
    width: 160px;
    margin: 0 0 16px;
}

.site-footer .footer-logo img {
    width: 160px;
    height: auto;
    filter: grayscale(1) invert(1);
    mix-blend-mode: screen;
}

