/*
 * Hieronta-Siru
 * Mobile first, saavutettava perusulkoasu.
 */

:root {
    --bg: #fbfaf6;
    --surface: #ffffff;
    --surface-soft: #f1f5ef;
    --surface-accent: #e5efe9;
    --text: #17201d;
    --muted: #4e5d57;
    --primary: #173d35;
    --primary-hover: #0f2e28;
    --accent: #9cb5a7;
    --border: #ced9d3;
    --focus: #7a2e00;
    --max-width: 74rem;
    --radius: 1rem;
    --shadow: 0 0.4rem 1.4rem rgba(23, 61, 53, 0.10);
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 6.5rem;
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family:
        system-ui,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;
    font-size: 1rem;
    line-height: 1.65;
}

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

a {
    color: var(--primary);
    text-underline-offset: 0.2em;
    text-decoration-thickness: 0.1em;
}

a:hover {
    text-decoration-thickness: 0.16em;
}

button,
a {
    -webkit-tap-highlight-color: transparent;
}

:focus-visible {
    outline: 0.2rem solid var(--focus);
    outline-offset: 0.2rem;
}

.container {
    width: min(100% - 2rem, var(--max-width));
    margin-inline: auto;
}

.narrow {
    max-width: 48rem;
}

.centered {
    text-align: center;
}

.skip-link {
    position: fixed;
    z-index: 1000;
    top: 0.75rem;
    left: 0.75rem;
    padding: 0.75rem 1rem;
    transform: translateY(-180%);
    background: var(--surface);
    color: var(--text);
    border: 0.15rem solid var(--primary);
    border-radius: 0.5rem;
    font-weight: 700;
}

.skip-link:focus {
    transform: translateY(0);
}

.site-header {
    position: sticky;
    z-index: 100;
    top: 0;
    background: rgba(251, 250, 246, 0.98);
    border-bottom: 1px solid var(--border);
}

.header-inner {
    min-height: 4.75rem;
    display: grid;
    grid-template-columns: 1fr auto auto;
    align-items: center;
    gap: 0.75rem;
}

.brand {
    display: inline-flex;
    flex-direction: column;
    width: fit-content;
    color: var(--text);
    text-decoration: none;
}

.brand-logo {
    display: block;
    width: auto;
    max-width: min(11.25rem, 42vw);
    height: auto;
    max-height: 3rem;
    object-fit: contain;
}

.brand-name {
    font-weight: 800;
    font-size: 1.15rem;
    line-height: 1.1;
}

.brand-tagline {
    color: var(--muted);
    font-size: 0.82rem;
}

.menu-button {
    min-height: 2.75rem;
    min-width: 2.75rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    padding: 0.6rem 0.75rem;
    border: 1px solid var(--border);
    border-radius: 0.6rem;
    background: var(--surface);
    color: var(--text);
    font: inherit;
    font-weight: 700;
    cursor: pointer;
}

.primary-navigation {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    padding: 0.75rem 1rem 1rem;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow);
}

.primary-navigation.is-open {
    display: grid;
}

.primary-navigation a {
    min-height: 2.75rem;
    display: flex;
    align-items: center;
    padding: 0.45rem 0.25rem;
    color: var(--text);
    font-weight: 700;
    text-decoration: none;
}

.header-booking {
    white-space: nowrap;
}

.button {
    min-height: 2.75rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.7rem 1rem;
    border: 2px solid transparent;
    border-radius: 0.65rem;
    font-weight: 800;
    line-height: 1.2;
    text-decoration: none;
}

.button-primary {
    background: var(--primary);
    color: #fff;
}

.button-primary:hover {
    background: var(--primary-hover);
}

.button-secondary {
    border-color: var(--primary);
    background: transparent;
    color: var(--primary);
}

.hero {
    padding: 3rem 0;
    background:
        linear-gradient(180deg, var(--surface-soft), var(--bg));
}

.hero-grid,
.about-grid,
.two-column,
.split-callout {
    display: grid;
    gap: 2rem;
}

.hero-copy {
    align-self: center;
}

.eyebrow {
    margin: 0 0 0.5rem;
    color: var(--primary);
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    font-size: 0.82rem;
}

h1,
h2,
h3 {
    line-height: 1.15;
    text-wrap: balance;
}

h1 {
    margin: 0;
    font-size: clamp(2.2rem, 8vw, 4.6rem);
    max-width: 12ch;
}

h2 {
    margin: 0;
    font-size: clamp(1.8rem, 6vw, 3rem);
}

h3 {
    font-size: 1.35rem;
}

.lead {
    font-size: clamp(1.1rem, 3vw, 1.35rem);
    max-width: 42rem;
}

.button-row {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0.75rem;
    margin: 1.5rem 0;
}

.centered-row {
    justify-content: center;
}

.location-note {
    color: var(--muted);
    font-weight: 650;
}

.image-placeholder {
    min-height: 20rem;
    display: grid;
    place-content: center;
    gap: 0.35rem;
    padding: 2rem;
    text-align: center;
    background:
        linear-gradient(135deg, #dfe9e3, #f7f1e7);
    border: 2px dashed var(--accent);
    border-radius: var(--radius);
    color: var(--primary);
}

.image-placeholder span {
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.12em;
}

.image-placeholder strong {
    font-size: 1.5rem;
}

.section {
    padding: 3.75rem 0;
}

.section-soft {
    background: var(--surface-soft);
}

.section-accent {
    background: var(--surface-accent);
}

.section-intro {
    max-width: 48rem;
    margin-bottom: 2rem;
}

.service-grid {
    display: grid;
    gap: 1rem;
}

.service-card {
    padding: 1.25rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.service-card h3 {
    margin-top: 0;
}

.price-list {
    margin: 1.25rem 0;
    border-top: 1px solid var(--border);
}

.price-list div {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 1rem;
    padding: 0.65rem 0;
    border-bottom: 1px solid var(--border);
}

.price-list dt,
.price-list dd {
    margin: 0;
}

.price-list dd {
    font-weight: 850;
    white-space: nowrap;
}

details {
    margin: 1rem 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

summary {
    min-height: 2.75rem;
    display: flex;
    align-items: center;
    padding: 0.65rem 0;
    cursor: pointer;
    color: var(--primary);
    font-weight: 800;
}

.details-content {
    padding-bottom: 0.8rem;
}

.text-link {
    display: inline-block;
    min-height: 2.75rem;
    padding: 0.55rem 0;
    font-weight: 800;
}

.price-note {
    margin-top: 1.5rem;
    color: var(--muted);
    font-size: 0.95rem;
}

.portrait-placeholder {
    min-height: 24rem;
}

.notice,
.info-card {
    margin-top: 1.5rem;
    padding: 1rem;
    background: var(--surface);
    border-left: 0.3rem solid var(--primary);
    border-radius: 0.4rem;
}

.notice p {
    margin-bottom: 0;
}

.split-callout {
    align-items: center;
}

.booking-section {
    background: var(--primary);
    color: #fff;
}

.booking-section .eyebrow,
.booking-section a:not(.button) {
    color: #fff;
}

.booking-section .button-primary {
    background: #fff;
    color: var(--primary);
}

.booking-section .button-secondary {
    border-color: #fff;
    color: #fff;
}

address {
    font-style: normal;
    font-weight: 700;
}

.contact-list {
    margin-top: 1.5rem;
}

.contact-list a {
    font-weight: 800;
}

.site-footer {
    padding: 2.5rem 0;
    background: #102a25;
    color: #fff;
}

.site-footer a {
    color: #fff;
}

.footer-grid {
    display: grid;
    gap: 1.5rem;
}

.footer-title {
    font-size: 1.25rem;
    font-weight: 850;
}

.footer-links {
    margin: 0;
    padding-left: 1.2rem;
}

/* Asiakirjasivut */

.document-page {
    padding: 2rem 0 4rem;
}

.document-container {
    max-width: 52rem;
    padding: 1.25rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 0.5rem;
}

.document-header {
    padding-bottom: 1.5rem;
    margin-bottom: 2rem;
    border-bottom: 0.2rem solid var(--primary);
}

.document-header h1 {
    max-width: none;
    font-size: clamp(2rem, 7vw, 3.25rem);
}

.document-meta {
    color: var(--muted);
}

.document-warning {
    padding: 1rem;
    margin-bottom: 2rem;
    background: #fff5d6;
    border: 1px solid #8a6a00;
    border-radius: 0.4rem;
}

.document-page section {
    margin: 2rem 0;
}

.document-page section h2 {
    font-size: 1.45rem;
}

.document-data {
    margin: 0;
}

.document-data div {
    padding: 0.55rem 0;
    border-bottom: 1px solid var(--border);
}

.document-data dt {
    font-weight: 800;
}

.document-data dd {
    margin: 0.15rem 0 0;
}

.document-footer {
    margin-top: 3rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border);
    color: var(--muted);
    font-size: 0.9rem;
}

@media (min-width: 48rem) {
    .button-row {
        flex-direction: row;
        align-items: center;
    }

    .hero {
        padding: 5rem 0;
    }

    .hero-grid {
        grid-template-columns: 1.1fr 0.9fr;
        align-items: center;
    }

    .service-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .about-grid,
    .two-column {
        grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
        align-items: start;
    }

    .split-callout {
        grid-template-columns: 1.5fr auto;
    }

    .footer-grid {
        grid-template-columns: 1.5fr 1fr 1fr;
    }

    .document-container {
        padding: 3rem;
    }
}

@media (min-width: 68rem) {
    .header-inner {
        grid-template-columns: auto 1fr auto;
    }

    .menu-button {
        display: none;
    }

    .primary-navigation {
        position: static;
        display: flex;
        justify-content: flex-end;
        gap: 0.9rem;
        padding: 0;
        background: transparent;
        border: 0;
        box-shadow: none;
    }

    .primary-navigation a {
        padding-inline: 0.35rem;
    }

    .service-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
    }
}

@media print {
    .site-header,
    .site-footer,
    .skip-link,
    .document-warning {
        display: none !important;
    }

    body {
        background: #fff;
        color: #000;
        font-size: 11pt;
    }

    .document-page {
        padding: 0;
    }

    .document-container {
        width: 100%;
        max-width: none;
        padding: 0;
        border: 0;
    }

    a {
        color: #000;
        text-decoration: none;
    }
}


/* CMS / hallintanäkymät */

.settings-list {
    display: grid;
    gap: 1rem;
    margin: 2rem 0;
}

.form-field {
    padding: 1rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 0.6rem;
}

.form-field label {
    display: block;
    margin-bottom: 0.35rem;
    font-weight: 800;
}

.form-field input[type="text"],
.form-field input[type="email"],
.form-field input[type="url"],
.form-field textarea,
.form-field select {
    width: 100%;
    min-height: 2.75rem;
    padding: 0.65rem 0.75rem;
    border: 2px solid var(--border);
    border-radius: 0.45rem;
    background: var(--surface);
    color: var(--text);
    font: inherit;
}

.form-field textarea {
    min-height: 8rem;
    resize: vertical;
}

.field-description,
.color-current {
    margin: 0.25rem 0 0.5rem;
    color: var(--muted);
}

.field-error {
    margin-bottom: 0;
    font-weight: 800;
}

.error-summary {
    margin: 1.5rem 0;
    padding: 1rem;
    border: 2px solid #8B0000;
    border-radius: 0.5rem;
    background: #FFF2F2;
    color: #300;
}

.status-message {
    margin: 1.5rem 0;
    padding: 1rem;
    border: 2px solid var(--primary);
    border-radius: 0.5rem;
    background: var(--surface-accent);
    font-weight: 800;
}

code {
    font-family: ui-monospace, "Cascadia Code", Consolas, monospace;
}


/* Hieras CMS */

.admin-header {
    padding: 1rem 0;
    background: #102a25;
    color: #fff;
}

.admin-product-name {
    margin: 0 0 0.75rem;
    font-size: 1.25rem;
    font-weight: 850;
}

.admin-navigation {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1.25rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.admin-navigation a {
    min-height: 2.75rem;
    display: inline-flex;
    align-items: center;
    color: #fff;
    font-weight: 800;
}

.admin-main h1 {
    max-width: none;
    font-size: clamp(2rem, 6vw, 3rem);
}

.admin-service-list {
    display: grid;
    gap: 1rem;
    margin: 2rem 0;
    padding-left: 1.5rem;
}

.admin-service-card {
    padding: 1.25rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
}

.admin-service-card h2 {
    font-size: 1.5rem;
}

.checkbox-field {
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: center;
    gap: 0.75rem;
}

.checkbox-field input {
    width: 1.4rem;
    height: 1.4rem;
}

.checkbox-field label {
    margin: 0;
}

.admin-separator {
    margin: 3rem 0;
    border: 0;
    border-top: 2px solid var(--border);
}

.price-edit-form {
    margin: 1.5rem 0 0.75rem;
    padding: 1rem;
    border: 1px solid var(--border);
    border-radius: 0.6rem;
    background: var(--surface);
}

.delete-form {
    margin-bottom: 2rem;
}

.button-danger {
    background: #8b1e1e;
    color: #fff;
}

.button-danger:hover {
    background: #681616;
}

.contrast-list {
    padding-left: 1.4rem;
}

.contrast-list li {
    margin-bottom: 0.75rem;
}


/* Palvelukortin yksittäiset kesto- ja hintavaihtoehdot */

.price-options {
    margin: 1.25rem 0;
    border-top: 1px solid var(--border);
}

.price-option {
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border);
}

.price-option-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: baseline;
    gap: 1rem;
}

.price-option h4 {
    margin: 0;
    font-size: 1rem;
    line-height: 1.4;
}

.price-option-price {
    margin: 0;
    font-weight: 850;
    white-space: nowrap;
}

.price-option details {
    margin: 0.5rem 0 0;
    border: 0;
}

.price-option summary {
    padding: 0.4rem 0;
    justify-content: space-between;
    gap: 0.75rem;
    list-style: none;
}

.price-option summary::-webkit-details-marker {
    display: none;
}

.price-option summary::marker {
    content: "";
}

.details-chevron {
    flex: 0 0 auto;
    font-size: 1.25rem;
    line-height: 1;
    transition: transform 0.15s ease-in-out;
}

.price-option details[open] .details-chevron {
    transform: rotate(180deg);
}


.admin-fieldset {
    margin: 2rem 0;
    padding: 1rem;
    border: 2px solid var(--border);
    border-radius: 0.75rem;
}

.admin-fieldset legend {
    padding: 0 0.5rem;
    font-size: 1.25rem;
    font-weight: 850;
}


.site-figure {
    margin: 0;
}

.site-figure img {
    width: 100%;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.site-figure figcaption {
    margin-top: 0.6rem;
    color: var(--muted);
    font-size: 0.95rem;
}

.hero-figure img {
    aspect-ratio: 4 / 3;
    object-fit: cover;
}

.portrait-figure img {
    aspect-ratio: 4 / 5;
    object-fit: cover;
}


.admin-document-list {
    display: grid;
    gap: 1rem;
    margin: 2rem 0;
    padding: 0;
    list-style: none;
}

.document-dates {
    margin: 1.5rem 0 0;
}

.document-dates div {
    margin-bottom: 0.75rem;
}

.document-dates dt {
    font-weight: 800;
}

.document-dates dd {
    margin: 0.1rem 0 0;
}

.document-body {
    white-space: normal;
}


.dashboard-grid {
    display: grid;
    gap: 1rem;
    margin-top: 2rem;
}

.dashboard-card {
    padding: 1.25rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.dashboard-card h2 {
    font-size: 1.4rem;
}

.preview-banner {
    padding: 0.8rem 1rem;
    background: #fff5d6;
    color: #2b2100;
    border-bottom: 2px solid #8a6a00;
    font-weight: 800;
    text-align: center;
}

.admin-product-name a {
    color: #fff;
    text-decoration: none;
}

@media (min-width: 48rem) {
    .dashboard-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 68rem) {
    .dashboard-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

/* Luonnos- ja julkaisutiedot */
.draft-status {
    margin: 1rem 0 1.5rem;
    padding: 0.9rem 1rem;
    border: 2px solid #8a6a00;
    border-radius: 0.5rem;
    background: #fff5d6;
    color: #2b2100;
    font-weight: 800;
}

.draft-status-clean {
    border-color: var(--primary);
    background: var(--surface-accent);
    color: var(--text);
}

button:disabled,
.button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}
