/* ArvokasArki — shared stylesheet.
 *
 * Extracted 30.7. Until then this exact block was inlined verbatim in four
 * pages (29,730 chars each, ~119 KB duplicated), which meant every change had
 * to be made four times and the browser could not cache any of it between
 * pages. Two of the four defects found on the PR #6 preview were drift between
 * those copies.
 *
 * /tietosuoja keeps its own small inline block on purpose: it is an
 * independent 2 KB stylesheet, not a copy of this one, so it duplicates
 * nothing.
 */

/* ============================================
           CSS Variables (Brand Colors)
           ============================================ */
        :root {
            /* --primary stays the brand blue: decorative fills, icons, borders
               on dark grounds. It is 2.38:1 on white, so it must NEVER carry
               text or form a control's edge on a light ground.
               --primary-action is the same hue/saturation darkened to 7.60:1
               on white (WCAG AAA) — use it for anything readable: link text,
               button fills, control borders. Audience is ikääntyneet, so AAA
               is the target, not AA. */
            --primary: #3bb1f7;
            --primary-action: #065889;
            --primary-action-hover: #04456c;
            --primary-dark: #2a9de0;
            --primary-light: #e8f6fe;
            --dark: #0a0c25;
            --warm-dark: #35302e;
            --white: #ffffff;
            --gray-50: #f8f9fa;
            --gray-100: #f1f3f5;
            --gray-200: #e9ecef;
            --gray-300: #dee2e6;
            --gray-500: #adb5bd;
            --gray-600: #5d666e;
            --accent-warm: #f5f0eb;
            
            --font-display: 'Montserrat', sans-serif;
            --font-body: 'Inter', sans-serif;
            
            --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
            --shadow-md: 0 4px 12px rgba(0,0,0,0.1);
            --shadow-lg: 0 10px 30px rgba(0,0,0,0.12);
            
            --radius-sm: 8px;
            --radius-md: 12px;
            --radius-lg: 20px;
            
            --transition: 0.3s ease;
        }

        /* ============================================
           Reset & Base Styles
           ============================================ */
        *, *::before, *::after {
            box-sizing: border-box;
            margin: 0;
            padding: 0;
        }

        html {
            scroll-behavior: smooth;
            font-size: 16px;
        }

        body {
            font-family: var(--font-body);
            font-size: 1.0625rem;
            line-height: 1.7;
            color: var(--warm-dark);
            background-color: var(--white);
            -webkit-font-smoothing: antialiased;
        }

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

        a {
            color: var(--primary-action);
            text-decoration: none;
            transition: color var(--transition);
        }

        a:hover {
            color: var(--primary-action-hover);
        }

        /* ============================================
           Typography
           ============================================ */
        h1, h2, h3, h4, h5, h6 {
            font-family: var(--font-display);
            color: var(--dark);
            line-height: 1.3;
            font-weight: 700;
            /* Finnish compounds routinely exceed a 320px content box, and
               Chromium ships no fi hyphenation dictionary, so hyphens: auto
               is a no-op here. Prefer a &shy; at the compound boundary for a
               correct break; this is the fallback that keeps the page from
               scrolling sideways when one is missing. */
            overflow-wrap: break-word;
        }

        h1 {
            font-size: clamp(2rem, 5vw, 3rem);
            font-weight: 800;
        }

        h2 {
            font-size: clamp(1.5rem, 4vw, 2.25rem);
        }

        h3 {
            font-size: clamp(1.25rem, 3vw, 1.5rem);
        }

        p {
            margin-bottom: 1rem;
        }

        .lead {
            font-size: 1.125rem;
            color: var(--gray-600);
        }

        .text-primary {
            color: var(--primary-action);
        }

        .text-center {
            text-align: center;
        }

        /* ============================================
           Layout
           ============================================ */
        .container {
            width: 100%;
            max-width: 1200px;
            margin: 0 auto;
            padding: 0 1.5rem;
        }

        section {
            padding: 4rem 0;
        }

        @media (min-width: 768px) {
            section {
                padding: 6rem 0;
            }
        }

        /* ============================================
           Header & Navigation
           ============================================ */
        .header {
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            z-index: 1000;
            background: var(--white);
            box-shadow: var(--shadow-sm);
            transition: box-shadow var(--transition);
        }

        .header.scrolled {
            box-shadow: var(--shadow-md);
        }

        .header-top {
            background: var(--dark);
            color: var(--white);
            padding: 0.5rem 0;
            font-size: 1rem;
        }

        .header-top .container {
            display: flex;
            justify-content: flex-end;
            align-items: center;
            flex-wrap: wrap;
            gap: 0.25rem 1.5rem;
        }

        .header-top a {
            color: var(--white);
            overflow-wrap: anywhere;
            display: flex;
            align-items: center;
            gap: 0.5rem;
        }

        .header-top a:hover {
            color: var(--primary);
        }

        .header-main {
            padding: 1rem 0;
        }

        .header-main .container {
            display: flex;
            justify-content: space-between;
            align-items: center;
        }

        .logo {
            height: 45px;
            width: auto;
        }

        .nav {
            display: none;
        }

        @media (min-width: 768px) {
            .nav {
                display: flex;
                gap: 2rem;
                align-items: center;
            }
        }

        .nav a:not(.btn) {
            color: var(--dark);
            font-weight: 500;
            position: relative;
        }

        .nav a::after {
            content: '';
            position: absolute;
            bottom: 0;
            left: 0;
            width: 0;
            height: 2px;
            background: var(--primary);
            transition: width var(--transition);
        }

        .nav a:hover::after {
            width: 100%;
        }

        .mobile-toggle {
            display: flex;
            flex-direction: column;
            gap: 5px;
            background: none;
            border: none;
            cursor: pointer;
            padding: 0.5rem;
            min-width: 48px;
            min-height: 48px;
            align-items: center;
            justify-content: center;
        }

        @media (min-width: 768px) {
            .mobile-toggle {
                display: none;
            }
        }

        .mobile-toggle span {
            width: 24px;
            height: 2px;
            background: var(--dark);
            transition: var(--transition);
        }

        .mobile-nav {
            display: none;
            position: absolute;
            top: 100%;
            left: 0;
            right: 0;
            background: var(--white);
            box-shadow: var(--shadow-md);
            padding: 1rem;
        }

        .mobile-nav.active {
            display: block;
        }

        .mobile-nav a:not(.btn) {
            display: block;
            padding: 1rem;
            color: var(--dark);
            border-bottom: 1px solid var(--gray-200);
        }

        .mobile-nav a:last-child {
            border-bottom: none;
        }

        /* ============================================
           Buttons
           ============================================ */
        .btn {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            gap: 0.5rem;
            padding: 0.875rem 1.75rem;
            min-height: 48px; /* WCAG 2.5.5 target size (AAA is 44px) */
            font-family: var(--font-body);
            font-size: 1.0625rem;
            font-weight: 600;
            border-radius: var(--radius-md);
            border: none;
            cursor: pointer;
            transition: all var(--transition);
            text-decoration: none;
        }

        .btn-primary {
            background: var(--primary-action);
            color: var(--white);
        }

        .btn-primary:hover {
            background: var(--primary-action-hover);
            color: var(--white);
            transform: translateY(-2px);
            box-shadow: var(--shadow-md);
        }

        .btn-secondary {
            background: transparent;
            color: var(--primary-action);
            border: 2px solid var(--primary-action);
        }

        .btn-secondary:hover {
            background: var(--primary-action);
            color: var(--white);
        }

        .btn-white {
            background: var(--white);
            color: var(--primary-action);
        }

        .btn-white:hover {
            background: var(--gray-50);
            color: var(--primary-action-hover);
        }

        .btn-lg {
            font-size: 1.125rem;
        }

        /* ============================================
           Hero Section
           ============================================ */
        .hero {
            padding-top: 140px;
            padding-bottom: 4rem;
            background: linear-gradient(135deg, var(--primary-light) 0%, var(--white) 100%);
            min-height: 80vh;
            display: flex;
            align-items: center;
        }

        @media (min-width: 768px) {
            .hero {
                padding-top: 160px;
                padding-bottom: 6rem;
            }
        }

        .hero .container {
            display: grid;
            gap: 3rem;
            align-items: center;
        }

        @media (min-width: 768px) {
            .hero .container {
                grid-template-columns: 1fr 1fr;
            }
        }

        /* Service-page heroes carry no image, so the two-column split does not
           apply — one column, constrained to a readable measure. Declared after
           the media query above: same specificity, so source order decides. */
        .hero--text .container {
            grid-template-columns: 1fr;
            max-width: 820px;
        }

        .hero-content {
            text-align: center;
        }

        @media (min-width: 768px) {
            .hero-content {
                text-align: left;
            }
        }

        .hero-badge {
            display: inline-flex;
            align-items: center;
            gap: 0.5rem;
            background: var(--white);
            color: var(--primary-action);
            padding: 0.5rem 1rem;
            border-radius: var(--radius-lg);
            font-size: 1rem;
            font-weight: 600;
            margin-bottom: 1.5rem;
            box-shadow: var(--shadow-sm);
        }

        .hero h1 {
            margin-bottom: 1.5rem;
        }

        .hero p {
            font-size: 1.125rem;
            color: var(--gray-600);
            margin-bottom: 2rem;
            max-width: 500px;
        }

        @media (min-width: 768px) {
            .hero p {
                margin-left: 0;
            }
        }

        .hero-buttons {
            display: flex;
            flex-direction: column;
            gap: 1rem;
        }

        @media (min-width: 480px) {
            .hero-buttons {
                flex-direction: row;
                justify-content: center;
            }
        }

        @media (min-width: 768px) {
            .hero-buttons {
                justify-content: flex-start;
            }
        }

        .hero-image {
            display: flex;
            justify-content: center;
        }

        .hero-image-wrapper {
            position: relative;
            width: 100%;
            max-width: 350px;
            aspect-ratio: 1;
            border-radius: 50%;
            overflow: hidden;
            box-shadow: var(--shadow-lg);
            border: 6px solid var(--primary);
        }

        .hero-image-wrapper img {
            width: 100%;
            height: 100%;
            object-fit: cover;
        }

        @media (min-width: 768px) {
            .hero-image-wrapper {
                max-width: 420px;
            }
        }

        /* ============================================
           Trust Badges
           ============================================ */
        .trust-badges {
            background: var(--white);
            padding: 2rem 0;
            border-bottom: 1px solid var(--gray-200);
        }

        .trust-badges .container {
            display: flex;
            flex-wrap: wrap;
            justify-content: center;
            gap: 2rem;
        }

        .trust-badge {
            display: flex;
            align-items: center;
            gap: 0.75rem;
            color: var(--gray-600);
            font-size: 1rem;
            font-weight: 500;
        }

        .trust-badge-icon {
            width: 40px;
            height: 40px;
            background: var(--primary-light);
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 1.25rem;
        }

        /* ============================================
           Services Section
           ============================================ */
        .services {
            background: var(--gray-50);
        }

        .section-header {
            text-align: center;
            max-width: 700px;
            margin: 0 auto 3rem;
        }

        .section-header .overline {
            display: inline-block;
            color: var(--primary-action);
            font-weight: 600;
            font-size: 1rem;
            text-transform: uppercase;
            letter-spacing: 0.1em;
            margin-bottom: 0.75rem;
        }

        .section-header h2 {
            margin-bottom: 1rem;
        }

        .services-grid {
            display: grid;
            gap: 2rem;
        }

        @media (min-width: 768px) {
            .services-grid {
                grid-template-columns: repeat(2, 1fr);
            }
        }

        .service-card {
            background: var(--white);
            padding: 2rem;
            border-radius: var(--radius-lg);
            box-shadow: var(--shadow-sm);
            transition: all var(--transition);
            border: 1px solid var(--gray-200);
        }

        .service-card:hover {
            transform: translateY(-4px);
            box-shadow: var(--shadow-lg);
            border-color: var(--primary);
        }

        .service-icon {
            width: 60px;
            height: 60px;
            background: var(--primary-light);
            border-radius: var(--radius-md);
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 1.75rem;
            margin-bottom: 1.5rem;
        }

        .service-card h3 {
            margin-bottom: 1rem;
        }

        .service-card p {
            color: var(--gray-600);
            margin-bottom: 1.5rem;
        }

        .service-list {
            list-style: none;
        }

        /* Deliberately NOT display: flex. Every element child of a flex
           container becomes its own flex item, so a <strong> inside the item
           broke away into a second column with the rest of the text running
           alongside it. An absolutely positioned marker gives the same hanging
           indent and lets the item hold arbitrary inline content. */
        .service-list li {
            position: relative;
            padding: 0.5rem 0 0.5rem 1.75rem;
            color: var(--warm-dark);
            font-size: 1rem;
        }

        .service-list li::before {
            content: '✓';
            position: absolute;
            left: 0;
            top: 0.5rem;
            color: var(--primary-action);
            font-weight: 700;
        }

        /* ============================================
           About Section
           ============================================ */
        .about {
            background: var(--white);
        }

        .about .container {
            display: grid;
            gap: 3rem;
            align-items: center;
        }

        @media (min-width: 768px) {
            .about .container {
                grid-template-columns: 1fr 1fr;
            }
        }

        .about-content h2 {
            margin-bottom: 1.5rem;
        }

        .about-stats {
            display: grid;
            grid-template-columns: repeat(2, 1fr);
            gap: 1.5rem;
            margin-top: 2rem;
        }

        .stat {
            text-align: center;
            padding: 1.5rem;
            background: var(--gray-50);
            border-radius: var(--radius-md);
        }

        .stat-number {
            font-family: var(--font-display);
            font-size: 2.5rem;
            font-weight: 800;
            color: var(--primary-action);
            line-height: 1;
        }

        .stat-label {
            font-size: 1rem;
            color: var(--gray-600);
            margin-top: 0.5rem;
        }

        .about-image {
            display: flex;
            justify-content: center;
            align-items: center;
        }

        .about-card {
            background: var(--primary-light);
            padding: 2.5rem;
            border-radius: var(--radius-lg);
            text-align: center;
            max-width: 400px;
        }

        .about-card-icon {
            font-size: 4rem;
            margin-bottom: 1rem;
        }

        .about-card h3 {
            color: var(--primary-action);
            margin-bottom: 0.5rem;
        }

        .about-card p {
            color: var(--warm-dark);
            margin-bottom: 0;
        }

        /* ============================================
           Benefits Section
           ============================================ */
        .benefits {
            background: var(--dark);
            color: var(--white);
        }

        .benefits .section-header h2 {
            color: var(--white);
        }

        .benefits .section-header p {
            color: var(--gray-300);
        }

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

        @media (min-width: 768px) {
            .benefits-grid {
                grid-template-columns: repeat(2, 1fr);
            }
        }

        @media (min-width: 1024px) {
            .benefits-grid {
                grid-template-columns: repeat(4, 1fr);
            }
        }

        .benefit-card {
            text-align: center;
            padding: 2rem 1.5rem;
            background: rgba(255,255,255,0.05);
            border-radius: var(--radius-md);
            border: 1px solid rgba(255,255,255,0.1);
        }

        .benefit-icon {
            width: 50px;
            height: 50px;
            background: var(--primary);
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 1.5rem;
            margin: 0 auto 1rem;
            /* emoji render in their own colour; this only affects a missing-font
               fallback glyph, which must stay readable on the --primary disc */
            color: var(--dark);
        }

        .benefit-card h4 {
            color: var(--white);
            font-size: 1rem;
            margin-bottom: 0.5rem;
        }

        .benefit-card p {
            color: var(--gray-300);
            font-size: 1rem;
            margin-bottom: 0;
        }

        /* ============================================
           CTA Section
           ============================================ */
        .cta {
            background: linear-gradient(135deg, var(--primary-action) 0%, var(--primary-action-hover) 100%);
            color: var(--white);
            text-align: center;
        }

        .cta h2 {
            color: var(--white);
            margin-bottom: 1rem;
        }

        .cta p {
            font-size: 1.125rem;
            opacity: 0.9;
            max-width: 600px;
            margin: 0 auto 2rem;
        }

        .cta .btn-secondary {
            color: var(--white);
            border-color: var(--white);
        }

        .cta .btn-secondary:hover {
            background: var(--white);
            color: var(--primary-action);
        }

        .cta-buttons {
            display: flex;
            flex-direction: column;
            gap: 1rem;
            justify-content: center;
        }

        @media (min-width: 480px) {
            .cta-buttons {
                flex-direction: row;
            }
        }

        /* ============================================
           Contact Section
           ============================================ */
        .contact {
            background: var(--gray-50);
        }

        .contact-grid {
            display: grid;
            gap: 3rem;
        }

        @media (min-width: 768px) {
            .contact-grid {
                grid-template-columns: 1fr 1fr;
            }
        }

        .contact-info h3 {
            margin-bottom: 1.5rem;
        }

        .contact-item {
            display: flex;
            align-items: flex-start;
            gap: 1rem;
            padding: 1rem 0;
            border-bottom: 1px solid var(--gray-200);
        }

        .contact-item:last-child {
            border-bottom: none;
        }

        .contact-item-icon {
            width: 44px;
            height: 44px;
            background: var(--primary-light);
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 1.25rem;
            flex-shrink: 0;
        }

        .contact-item-content h4 {
            font-size: 1rem;
            color: var(--gray-600);
            font-weight: 500;
            margin-bottom: 0.25rem;
        }

        .contact-item-content p {
            margin-bottom: 0;
            font-weight: 600;
            color: var(--dark);
        }

        .contact-item-content a {
            color: var(--dark);
            overflow-wrap: anywhere;
        }

        .contact-item-content a:hover {
            color: var(--primary-action);
        }

        .contact-form-wrapper {
            background: var(--white);
            padding: 2rem;
            border-radius: var(--radius-lg);
            box-shadow: var(--shadow-md);
        }

        .contact-form-wrapper h3 {
            margin-bottom: 1.5rem;
        }

        .form-group {
            margin-bottom: 1.25rem;
        }

        .form-group label {
            display: block;
            font-weight: 500;
            margin-bottom: 0.5rem;
            color: var(--dark);
        }

        .form-group input,
        .form-group textarea {
            width: 100%;
            padding: 0.875rem 1rem;
            font-family: var(--font-body);
            font-size: 1rem;
            border: 1px solid var(--gray-300);
            border-radius: var(--radius-sm);
            transition: border-color var(--transition), box-shadow var(--transition);
        }

        .form-group input:focus,
        .form-group textarea:focus {
            outline: none;
            border-color: var(--primary);
            box-shadow: 0 0 0 3px var(--primary-light);
        }

        .form-group textarea {
            min-height: 120px;
            resize: vertical;
        }

        .form-submit {
            width: 100%;
        }

        .form-submit:disabled {
            opacity: 0.6;
            cursor: not-allowed;
            transform: none;
        }

        /* Service-interest selector (optional lead qualification) */
        .service-options {
            display: grid;
            gap: 0.75rem;
        }

        @media (min-width: 480px) {
            .service-options {
                grid-template-columns: repeat(2, 1fr);
            }
        }

        .service-option {
            display: flex;
            align-items: flex-start;
            gap: 0.75rem;
            padding: 0.875rem 1rem;
            border: 1px solid var(--gray-300);
            border-radius: var(--radius-sm);
            cursor: pointer;
            transition: border-color var(--transition), background var(--transition);
        }

        .service-option:hover {
            border-color: var(--primary);
        }

        .service-option input {
            width: auto;
            margin-top: 0.2rem;
            accent-color: var(--primary);
            flex-shrink: 0;
        }

        .service-option:has(input:checked) {
            border-color: var(--primary);
            background: var(--primary-light);
        }

        .service-option-text {
            font-size: 1rem;
            line-height: 1.4;
        }

        .service-option-text strong {
            display: block;
            color: var(--dark);
            font-weight: 600;
        }

        .service-option-text span {
            color: var(--gray-600);
            font-size: 1rem;
        }

        /* Yes/no toggle (palveluseteli) */
        .toggle-options {
            display: flex;
            flex-wrap: wrap;
            gap: 0.5rem;
        }

        .toggle-option {
            display: inline-flex;
            align-items: center;
            gap: 0.5rem;
            padding: 0.625rem 1rem;
            border: 1px solid var(--gray-300);
            border-radius: var(--radius-sm);
            cursor: pointer;
            font-size: 1rem;
            transition: border-color var(--transition), background var(--transition);
        }

        .toggle-option:hover {
            border-color: var(--primary);
        }

        .toggle-option input {
            width: auto;
            accent-color: var(--primary);
        }

        .toggle-option:has(input:checked) {
            border-color: var(--primary);
            background: var(--primary-light);
        }

        .form-status a {
            font-weight: 600;
            text-decoration: underline;
        }

        /* Form status / feedback message */
        .form-status {
            margin-top: 1rem;
            padding: 0.875rem 1rem;
            border-radius: var(--radius-sm);
            font-size: 1rem;
            display: none;
        }

        .form-status.is-success {
            display: block;
            background: #e7f7ed;
            color: #1a7a3f;
            border: 1px solid #b6e3c6;
        }

        .form-status.is-error {
            display: block;
            background: #fdecec;
            color: #b02a2a;
            border: 1px solid #f3c2c2;
        }

        /* ============================================
           Footer
           ============================================ */
        .footer {
            background: var(--dark);
            color: var(--gray-300);
            padding: 3rem 0 1.5rem;
        }

        .footer-main {
            display: grid;
            gap: 2rem;
            margin-bottom: 2rem;
        }

        @media (min-width: 768px) {
            .footer-main {
                grid-template-columns: 2fr 1fr 1fr;
            }
        }

        .footer-brand img {
            height: 40px;
            margin-bottom: 1rem;
            filter: brightness(0) invert(1);
        }

        .footer-brand p {
            font-size: 1rem;
            margin-bottom: 0;
            max-width: 300px;
        }

        .footer h4 {
            color: var(--white);
            font-size: 1rem;
            margin-bottom: 1rem;
        }

        .footer-links {
            list-style: none;
        }

        .footer-links li {
            margin-bottom: 0.5rem;
        }

        .footer-links a {
            color: var(--gray-300);
            font-size: 1rem;
        }

        .footer-links a:hover {
            color: var(--primary);
        }

        .footer-contact a {
            color: var(--gray-300);
        }

        .footer-contact a:hover {
            color: var(--primary);
        }

        .footer-contact p {
            display: flex;
            align-items: center;
            gap: 0.5rem;
            font-size: 1rem;
            margin-bottom: 0.75rem;
        }

        .footer-bottom {
            padding-top: 1.5rem;
            border-top: 1px solid rgba(255,255,255,0.1);
            display: flex;
            flex-direction: column;
            gap: 1rem;
            font-size: 1rem;
        }

        @media (min-width: 768px) {
            .footer-bottom {
                flex-direction: row;
                justify-content: space-between;
                align-items: center;
            }
        }

        .footer-bottom a {
            color: var(--gray-300);
        }

        .footer-bottom a:hover {
            color: var(--primary);
        }

        /* ============================================
           Utilities
           ============================================ */
        .sr-only {
            position: absolute;
            width: 1px;
            height: 1px;
            padding: 0;
            margin: -1px;
            overflow: hidden;
            clip: rect(0, 0, 0, 0);
            white-space: nowrap;
            border: 0;
        }
