/*
Theme Name: Rapukauppa GP Child Theme
Theme URI: https://rapukauppa.fi
Author: Codex
Author URI: https://rapukauppa.fi
Description: GeneratePress child theme shell for rapukauppa.fi.
Version: 0.3.15
Requires at least: 6.5
Tested up to: 6.9
Requires PHP: 8.1
Template: generatepress
Text Domain: rapukauppa-runtime-surface
License: GPL-2.0-or-later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
*/

:root {
    --rapu-primary: #102b4d;
    --rapu-primary-soft: rgba(16, 43, 77, 0.08);
    --rapu-primary-muted: #6e8fa3;
    --rapu-ink: #1e1d1b;
    --rapu-soft-ink: #334252;
    --rapu-muted-ink: #5e6d7a;
    --rapu-sand: #f3f1ec;
    --rapu-sand-deep: #e8e2da;
    --rapu-card: #fbfaf7;
    --rapu-card-strong: #fffdfb;
    --rapu-line: #cfc8be;
    --rapu-line-strong: #b8c3cd;
    --rapu-accent: #b9473e;
    --rapu-accent-dark: #92372f;
    --rapu-accent-soft: rgba(185, 71, 62, 0.1);
    --rapu-shadow: 0 18px 38px rgba(16, 43, 77, 0.08);
    --rapu-shell-max: 1180px;
    --rapu-reading-max: 760px;
    --rapu-radius-lg: 28px;
    --rapu-radius-md: 20px;
    --rapu-section-gap: 1.5rem;
}

body {
    background:
        radial-gradient(circle at top left, rgba(255, 255, 255, 0.46), transparent 32%),
        linear-gradient(180deg, #f6f3ee 0%, var(--rapu-sand) 58%, #e8eef4 100%);
    color: var(--rapu-ink);
    text-rendering: optimizeLegibility;
}

body .grid-container {
    max-width: var(--rapu-shell-max);
}

a {
    color: var(--rapu-primary);
}

a:hover,
a:focus {
    color: var(--rapu-accent);
}

.site,
.site-content,
.site-main,
.site-footer {
    background: transparent;
}

.inside-header,
.site-info,
.inside-article {
    max-width: var(--rapu-shell-max);
}

.site-header {
    padding-top: 1.2rem;
}

.site-header .inside-header {
    align-items: center;
    border: 1px solid rgba(207, 200, 190, 0.9);
    border-radius: 999px;
    box-shadow: 0 12px 28px rgba(16, 43, 77, 0.08);
    gap: 1rem;
    margin-inline: auto;
    padding: 0.95rem 1.2rem;
    backdrop-filter: blur(8px);
    background: rgba(251, 250, 247, 0.97);
}

.site-branding {
    flex-shrink: 0;
}

.site-branding .main-title {
    line-height: 0;
    margin: 0;
}

.site-branding .main-title a {
    background: url("assets/brand/runtime-set/logo/logo-light.svg") left center / contain no-repeat;
    color: transparent;
    display: block;
    overflow: hidden;
    text-indent: 100%;
    white-space: nowrap;
    width: clamp(11rem, 19vw, 15rem);
    aspect-ratio: 80 / 21;
}

.site-description {
    color: var(--rapu-muted-ink);
    font-size: 0.95rem;
    margin-top: 0.15rem;
}

.main-navigation {
    font-size: 0.92rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    text-transform: none;
}

.main-navigation .inside-navigation {
    background: rgba(255, 255, 255, 0.68);
    border: 1px solid rgba(207, 200, 190, 0.82);
    border-radius: 999px;
    padding-inline: 0.35rem;
}

.main-navigation .main-nav ul li a,
.main-navigation .menu-toggle,
.main-navigation .menu-bar-item > a {
    border-radius: 999px;
    color: var(--rapu-ink);
}

.main-navigation .main-nav ul li[class*="current-menu-"] > a {
    background: linear-gradient(180deg, #f2ece2 0%, var(--rapu-sand-deep) 100%);
    color: var(--rapu-primary);
    box-shadow: inset 0 0 0 1px rgba(16, 43, 77, 0.16), 0 10px 16px rgba(16, 43, 77, 0.12);
    text-decoration: none;
}

.main-navigation .main-nav ul li a:hover,
.main-navigation .main-nav ul li a:focus {
    background: rgba(185, 71, 62, 0.08);
    color: var(--rapu-accent);
}

.page .inside-right-sidebar,
.page .widget-area,
.page .sidebar {
    display: none;
}

.page .content-area {
    float: none;
    margin: 0;
    width: 100%;
}

.page .entry-header {
    display: none;
}

.site-main {
    padding-block: 2.25rem 4.5rem;
}

.separate-containers .inside-article,
.one-container .inside-article {
    background: transparent;
    box-shadow: none;
    padding: 0;
}

.entry-content > * + * {
    margin-top: var(--rapu-section-gap);
}

.entry-content > .gb-container + .gb-container {
    margin-top: var(--rapu-section-gap);
}

.entry-content p,
.entry-content li {
    color: var(--rapu-soft-ink);
    font-size: 1.06rem;
    line-height: 1.84;
}

.entry-content h1,
.entry-content h2,
.entry-content h3,
.entry-content h4 {
    letter-spacing: -0.03em;
    line-height: 1.1;
}

.entry-content h1 {
    color: var(--rapu-ink);
}

.entry-content h2,
.entry-content h3,
.entry-content h4 {
    color: var(--rapu-primary);
}
.entry-content h1 {
    font-size: clamp(2.45rem, 5vw, 4.1rem);
}

.entry-content h2 {
    font-size: clamp(1.8rem, 3vw, 2.55rem);
}

.entry-content h3 {
    font-size: clamp(1.18rem, 2vw, 1.52rem);
}

.shell-section,
.shell-card,
.site-shell-card,
.hero-shell {
    background: linear-gradient(180deg, var(--rapu-card-strong) 0%, var(--rapu-card) 100%);
    border: 1px solid rgba(207, 200, 190, 0.88);
    border-radius: var(--rapu-radius-lg);
    box-shadow: var(--rapu-shadow);
}

.shell-section,
.hero-shell {
    padding: 3rem 2.35rem;
}

.shell-section--hero,
.hero-shell {
    padding: 4rem 2.8rem 3.3rem;
}

.shell-section--muted {
    background: linear-gradient(180deg, rgba(255, 253, 251, 0.98) 0%, rgba(243, 241, 236, 0.98) 100%);
}

.shell-card,
.site-shell-card {
    padding: 1.6rem;
}

.shell-card-kicker {
    color: var(--rapu-accent);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    margin: 0 0 0.45rem;
    text-transform: uppercase;
}

.shell-stack > * + * {
    margin-top: 1rem;
}

.shell-section > .gb-headline,
.shell-section > h1,
.shell-section > h2 {
    max-width: 14ch;
}

.shell-card > .gb-headline,
.shell-card > h2,
.shell-card > h3 {
    max-width: 14ch;
}

.shell-card > .shell-contact-heading {
    font-size: clamp(1.1rem, 1.7vw, 1.34rem);
    max-width: none;
}

.shell-contact-heading a {
    overflow-wrap: anywhere;
}

.shell-eyebrow {
    color: var(--rapu-primary);
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    margin-bottom: 1rem;
    text-transform: uppercase;
}

.shell-section--hero h1,
.hero-shell h1,
.shell-section--hero .gb-headline,
.hero-shell .gb-headline {
    font-size: clamp(2.9rem, 6.2vw, 5.35rem);
    line-height: 0.98;
    margin-bottom: 0.85rem;
    max-width: 12ch;
}

.shell-lead,
.hero-shell p {
    color: var(--rapu-soft-ink);
    font-size: 1.08rem;
    line-height: 1.88;
    max-width: min(62ch, 100%);
}

.shell-card p,
.shell-card li {
    font-size: 1.01rem;
    line-height: 1.8;
}

.shell-grid,
.site-shell-grid {
    display: grid;
    gap: 1.25rem;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

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

.shell-process-grid {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.shell-step {
    background: rgba(255, 255, 255, 0.76);
    border: 1px solid rgba(207, 200, 190, 0.96);
    border-radius: var(--rapu-radius-md);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.75),
        0 10px 22px rgba(16, 43, 77, 0.05);
    min-height: 100%;
    padding: 1.3rem 1.15rem;
}

.shell-step__number {
    color: var(--rapu-accent);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    margin: 0;
    text-transform: uppercase;
}

.shell-step h3,
.shell-step .gb-headline {
    font-size: 1.18rem;
    line-height: 1.15;
}

.shell-step p {
    font-size: 0.98rem;
    line-height: 1.72;
}

.shell-grid > .shell-card,
.shell-grid > .gb-container.shell-card,
.shell-grid--three > .shell-card,
.shell-grid--three > .gb-container.shell-card {
    height: 100%;
}

.shell-link-row {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 0.85rem;
    margin-top: 1.5rem;
}

.shell-link-row p {
    margin: 0;
}

.shell-inline-link {
    color: var(--rapu-primary);
    font-weight: 600;
    text-decoration: underline;
    text-decoration-color: rgba(16, 43, 77, 0.25);
    text-underline-offset: 0.18em;
}

.shell-inline-link:hover,
.shell-inline-link:focus {
    color: var(--rapu-accent);
    text-decoration-color: rgba(185, 71, 62, 0.65);
}

.shell-link-row .shell-inline-link,
.shell-card > p:last-child .shell-inline-link {
    align-items: center;
    display: inline-flex;
    font-weight: 700;
    gap: 0.4rem;
    text-decoration-thickness: 2px;
}

.shell-link-row .shell-inline-link::after,
.shell-card > p:last-child .shell-inline-link::after {
    color: var(--rapu-accent);
    content: ">";
    font-size: 0.92em;
    line-height: 1;
    transition: transform 160ms ease;
}

.shell-link-row .shell-inline-link:hover::after,
.shell-link-row .shell-inline-link:focus::after,
.shell-card > p:last-child .shell-inline-link:hover::after,
.shell-card > p:last-child .shell-inline-link:focus::after {
    transform: translateX(2px);
}

.shell-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.shell-list li {
    border-top: 1px solid rgba(207, 200, 190, 0.95);
    margin: 0;
    padding: 0.95rem 0;
}

.shell-list li:first-child {
    border-top: 0;
    padding-top: 0;
}

.gb-button,
.gb-button:hover,
.gb-button:focus {
    align-items: center;
    background: linear-gradient(180deg, #17365d 0%, #102b4d 100%);
    border-radius: 999px;
    color: #fff;
    display: inline-flex;
    font-weight: 600;
    padding: 0.92rem 1.28rem;
    text-decoration: none;
}

.wp-block-button__link,
.wp-block-button__link:hover,
.wp-block-button__link:focus {
    border-radius: 999px;
    box-shadow:
        inset 0 0 0 1px rgba(255, 255, 255, 0.08),
        0 10px 20px rgba(16, 43, 77, 0.18);
    font-weight: 600;
}

.site-footer {
    margin-top: 3.4rem;
    padding-bottom: 1.25rem;
}

.site-footer .site-info {
    background: linear-gradient(180deg, #17365d 0%, #102b4d 100%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: calc(var(--rapu-radius-lg) - 4px);
    box-shadow: 0 16px 28px rgba(16, 43, 77, 0.16);
    color: rgba(251, 250, 247, 0.82);
    padding: 1.65rem 1.4rem 0.9rem;
}

.shell-footer {
    display: grid;
    gap: 1.85rem;
    grid-template-columns: 1.3fr 0.9fr 1fr;
}

.shell-footer__column {
    min-width: 0;
}

.shell-footer__logo-link {
    display: inline-block;
    margin-bottom: 1rem;
    max-width: min(100%, 17rem);
}

.shell-footer__logo {
    display: block;
    height: auto;
    width: 100%;
}

.shell-footer__eyebrow {
    color: var(--rapu-accent);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    margin: 0 0 0.65rem;
    text-transform: uppercase;
}

.shell-footer__title {
    color: #fff;
    font-size: 1.1rem;
    font-weight: 700;
    line-height: 1.25;
    margin: 0 0 0.55rem;
}

.shell-footer__copy {
    color: rgba(251, 250, 247, 0.88);
    font-size: 0.97rem;
    line-height: 1.7;
    margin: 0;
    max-width: 32ch;
}

.shell-footer__links {
    display: grid;
    gap: 0.5rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.shell-footer__links a {
    color: #fff;
    font-weight: 600;
    text-decoration: none;
}

.shell-footer__links a:hover,
.shell-footer__links a:focus {
    color: var(--rapu-accent);
}

.site-footer .shell-inline-link {
    color: #fff;
    text-decoration-color: rgba(255, 255, 255, 0.28);
}

.site-footer .shell-inline-link:hover,
.site-footer .shell-inline-link:focus {
    color: var(--rapu-accent);
    text-decoration-color: rgba(185, 71, 62, 0.7);
}

.shell-footer__meta {
    border-top: 1px solid rgba(255, 255, 255, 0.14);
    color: rgba(251, 250, 247, 0.74);
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem 1.5rem;
    justify-content: space-between;
    margin-top: 1.25rem;
    padding-top: 1rem;
}

.shell-card,
.site-shell-card,
.shell-step,
.site-footer .site-info {
    border-color: rgba(16, 43, 77, 0.18);
    box-shadow: 0 16px 30px rgba(16, 43, 77, 0.14);
}

@media (max-width: 1024px) {
    .shell-grid--three {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

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

@media (max-width: 768px) {
    .site-header .inside-header {
        border-radius: 30px;
        padding: 1rem;
    }

    .site-header.has-inline-mobile-toggle .inside-header {
        align-items: center;
        gap: 0.75rem;
        justify-content: space-between;
    }

    .site-header.has-inline-mobile-toggle .site-branding {
        flex: 1 1 auto;
        min-width: 0;
    }

    .site-header.has-inline-mobile-toggle .mobile-menu-control-wrapper {
        background: transparent;
        border: 0;
        box-shadow: none;
        flex: 0 0 auto;
        margin-left: auto;
    }

    .site-header.has-inline-mobile-toggle .mobile-menu-control-wrapper .menu-toggle,
    .site-header.has-inline-mobile-toggle .mobile-menu-control-wrapper .menu-toggle:hover,
    .site-header.has-inline-mobile-toggle .mobile-menu-control-wrapper .menu-toggle:focus {
        align-items: center;
        background: linear-gradient(180deg, #fffdfb 0%, #f3f1ec 100%);
        border: 1px solid rgba(16, 43, 77, 0.16);
        border-radius: 999px;
        box-shadow: 0 10px 20px rgba(16, 43, 77, 0.12);
        color: var(--rapu-primary);
        display: inline-flex;
        gap: 0.5rem;
        justify-content: center;
        min-height: 48px;
        min-width: 48px;
        padding: 0.65rem 0.9rem;
    }

    .site-header.has-inline-mobile-toggle .mobile-menu-control-wrapper .menu-toggle .gp-icon {
        align-items: center;
        display: inline-flex;
        font-size: 1rem;
        line-height: 1;
    }

    .site-header.has-inline-mobile-toggle .mobile-menu-control-wrapper .menu-toggle::after {
        color: currentColor;
        content: "Valikko";
        font-size: 0.78rem;
        font-weight: 700;
        letter-spacing: 0.05em;
        line-height: 1;
        text-transform: uppercase;
    }

    .site-header.has-inline-mobile-toggle .mobile-menu-control-wrapper .menu-toggle[aria-expanded="true"]::after {
        content: "Sulje";
    }

    .site-header.has-inline-mobile-toggle #site-navigation {
        margin-top: 0.45rem;
    }

    .site-header.has-inline-mobile-toggle #site-navigation .inside-navigation {
        background: transparent;
        border: 0;
        border-radius: 0;
        box-shadow: none;
        padding: 0;
    }

    .site-header.has-inline-mobile-toggle #site-navigation.toggled .main-nav {
        background: linear-gradient(180deg, rgba(255, 253, 251, 0.98) 0%, rgba(243, 241, 236, 0.98) 100%);
        border: 1px solid rgba(16, 43, 77, 0.14);
        border-radius: 24px;
        box-shadow: 0 16px 30px rgba(16, 43, 77, 0.12);
        margin-top: 0.7rem;
        overflow: hidden;
        padding: 0.4rem;
    }

    .site-header.has-inline-mobile-toggle #site-navigation.toggled .main-nav > ul {
        display: grid;
        gap: 0.2rem;
        margin: 0;
        padding: 0;
    }

    .site-header.has-inline-mobile-toggle #site-navigation.toggled .main-nav ul li {
        margin: 0;
    }

    .site-header.has-inline-mobile-toggle #site-navigation.toggled .main-nav ul li a {
        border-radius: 16px;
        display: block;
        line-height: 1.35;
        padding: 0.92rem 1rem;
    }

    .site-header.has-inline-mobile-toggle #site-navigation.toggled .main-nav ul li[class*="current-menu-"] > a {
        box-shadow: inset 0 0 0 1px rgba(16, 43, 77, 0.14);
    }

    .site-branding .main-title a {
        width: min(100%, 13.2rem);
    }

    .shell-section,
    .hero-shell {
        padding: 2.15rem 1.3rem;
    }

    .shell-section--hero,
    .hero-shell {
        padding: 2.8rem 1.4rem 2.35rem;
    }

    .shell-card,
    .site-shell-card {
        padding: 1.25rem;
    }

    .shell-grid,
    .shell-grid--three,
    .site-shell-grid,
    .shell-process-grid {
        grid-template-columns: 1fr;
    }

    .shell-section--hero h1,
    .hero-shell h1,
    .shell-section--hero .gb-headline,
    .hero-shell .gb-headline {
        max-width: none;
    }

    .shell-section > .gb-headline,
    .shell-section > h1,
    .shell-section > h2,
    .shell-card > .gb-headline,
    .shell-card > h2,
    .shell-card > h3 {
        max-width: none;
    }

    .site-description {
        font-size: 0.9rem;
    }

    .site-footer .site-info {
        padding: 1.35rem 1rem 0.85rem;
    }

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

    .shell-footer__meta {
        flex-direction: column;
        gap: 0.45rem;
    }
}
