/*
Theme Name: PrimaClean
Theme URI: https://primaclean-bodensee.de
Author: PrimaClean
Author URI: https://primaclean-bodensee.de
Description: WordPress-тема для клінінгової компанії PrimaClean — професійне прибирання на Bodensee. Скандинавський мінімалізм + Bodensee-вайб, DSGVO-friendly (Bunny Fonts).
Version: 1.0.0
Requires at least: 6.0
Tested up to: 7.0
Requires PHP: 8.0
License: GPL-2.0-or-later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: primaclean
Tags: landing-page, one-column, custom-logo, translation-ready
*/

/* ==========================================================================
   Design Tokens — PrimaClean (див. DESIGN_SYSTEM.md)
   ========================================================================== */
:root {
    /* Primary — гама бренд-лого (синій #0077ff, hue ~214°).
       MAIN = глибокий азур: преміально й проходить WCAG AA для білого тексту
       (контраст ~7.5:1). Яскравий #0077ff лого винесено в --accent (нижче). */
    --primary-900: #062a5e;
    --primary-800: #0843a0;
    --primary-700: #0a4fb3; /* MAIN */
    --primary-500: #2e7fe0;
    --primary-300: #93c0f5;
    --primary-100: #d6e6fb;
    --primary-50:  #eef4fd;

    /* Neutral — нейтралі з лого (#0b0b0b / #363636), холодний off-white фон */
    --text:        #0b0b0b;
    --text-muted:  #363636;
    --border:      #e3e9f0;
    --bg:          #f7f9fc; /* холодний off-white, у бік синього */
    --bg-alt:      #eef3f9;
    --surface:     #ffffff;

    /* Accent — яскравий синій лого (ОЩАДНО: акценти, не для дрібного тексту) */
    --accent-500:  #0077ff;

    --radius:      14px;
    --shadow-md:   0 6px 24px rgba(10, 79, 179, 0.08);
}

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

html {
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    min-height: 100vh;
    font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    font-size: 16px;
    line-height: 1.65;
    color: var(--text);
    background-color: var(--bg);
    background-image:
        radial-gradient(circle at 15% 10%, var(--primary-50) 0%, transparent 45%),
        radial-gradient(circle at 85% 90%, var(--bg-alt) 0%, transparent 45%);
    background-attachment: fixed;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    display: flex;
    flex-direction: column;
}

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

a {
    color: var(--primary-700);
    text-decoration: none;
    transition: color 0.2s ease;
}

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

/* Accessibility: skip link */
.skip-link {
    position: absolute;
    left: -9999px;
    top: 0;
    z-index: 999;
    padding: 12px 20px;
    background: var(--primary-700);
    color: #fff;
    border-radius: 0 0 10px 0;
}

.skip-link:focus {
    left: 0;
    color: #fff;
}

/* WP required helper */
.screen-reader-text {
    border: 0;
    clip: rect(1px, 1px, 1px, 1px);
    clip-path: inset(50%);
    height: 1px;
    width: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
}

/* ==========================================================================
   Layout
   ========================================================================== */
.pc-page {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.pc-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 32px;
}

@media (max-width: 640px) {
    .pc-container {
        padding: 0 20px;
    }
}

/* Header */
.pc-header {
    position: sticky;
    top: 0;
    z-index: 100;
    padding: 18px 0;
    background: rgba(247, 249, 252, 0.8);
    border-bottom: 1px solid transparent;
    backdrop-filter: saturate(140%) blur(14px);
    -webkit-backdrop-filter: saturate(140%) blur(14px);
    transition: border-color 0.25s ease, box-shadow 0.25s ease, padding 0.25s ease;
}

/* Subtle separation once the user scrolls past the top */
.pc-header.is-scrolled {
    padding: 12px 0;
    border-bottom-color: var(--border);
    box-shadow: 0 4px 20px rgba(10, 79, 179, 0.05);
}

.pc-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

/* Language switcher (DE / EN as real /  and /en/ links) */
.pc-langswitch {
    display: inline-flex;
    padding: 3px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 999px;
}

.pc-lang {
    display: inline-flex;
    align-items: center;
    padding: 6px 14px;
    font-family: inherit;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.03em;
    color: var(--text-muted);
    text-decoration: none;
    border-radius: 999px;
    cursor: pointer;
    transition: color 0.2s ease, background 0.2s ease;
}

.pc-lang:hover {
    color: var(--primary-700);
}

.pc-lang.is-active {
    color: #fff;
    background: var(--primary-700);
}

.pc-lang:focus-visible {
    outline: 2px solid var(--primary-500);
    outline-offset: 2px;
}

.pc-logo {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
}

.pc-logo__svg {
    display: block;
    height: 48px;
    width: auto;
}

.pc-logo__svg svg {
    height: 100%;
    width: auto;
    display: block;
}

/* Fallback text logo */
.pc-logo__fallback {
    font-family: "Fraunces", Georgia, serif;
    font-weight: 500;
    font-size: 24px;
    letter-spacing: -0.02em;
    color: var(--text);
}

.pc-logo__fallback b {
    font-weight: 600;
}

/* custom-logo from Customizer */
.custom-logo-link {
    display: inline-block;
}

.custom-logo {
    max-height: 88px;
    width: auto;
}

/* Main / Hero */
.pc-main {
    flex: 1;
    display: flex;
    align-items: center;
    padding: 80px 0 96px;
}

.pc-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 20px;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--primary-700);
}

.pc-eyebrow::before {
    content: "";
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent-500);
    animation: pulse 2.4s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50%      { opacity: 0.4; transform: scale(0.7); }
}

.pc-title {
    margin: 0 0 20px;
    font-family: "Fraunces", Georgia, serif;
    font-weight: 500;
    font-size: clamp(44px, 7vw, 72px);
    line-height: 1.05;
    letter-spacing: -0.02em;
    color: var(--text);
}

.pc-title em {
    font-style: italic;
    color: var(--accent-500);
}

.pc-lead {
    margin: 0 0 32px;
    font-size: clamp(17px, 2.4vw, 19px);
    line-height: 1.6;
    color: var(--text-muted);
    max-width: 52ch;
}

/* Trust badges */
.pc-trust {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 24px;
    margin: 0 0 40px;
    padding: 0;
    list-style: none;
}

.pc-trust li {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text);
}

.pc-trust svg {
    width: 18px;
    height: 18px;
    color: var(--primary-500);
    flex-shrink: 0;
}

/* Contact CTA */
.pc-contact {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px 16px;
    padding: 24px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-md);
}

.pc-contact__text {
    flex: 1 1 200px;
    font-size: 15px;
    color: var(--text-muted);
}

.pc-contact__text strong {
    display: block;
    color: var(--text);
    font-size: 16px;
}

.pc-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 28px;
    font-family: inherit;
    font-size: 15px;
    font-weight: 500;
    color: #fff;
    background: var(--primary-700);
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.pc-btn:hover {
    color: #fff;
    background: var(--primary-800);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.pc-btn svg {
    width: 18px;
    height: 18px;
}

.pc-btn--ghost {
    color: var(--primary-700);
    background: transparent;
    border: 1px solid var(--border);
}

.pc-btn--ghost:hover {
    color: var(--primary-800);
    background: var(--primary-50);
    border-color: var(--primary-300);
}

.pc-contact__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

/* ==========================================================================
   Services
   ========================================================================== */
.pc-services {
    padding: 8px 0 72px;
}

.pc-section-title {
    margin: 0 0 8px;
    font-family: "Fraunces", Georgia, serif;
    font-weight: 500;
    font-size: clamp(26px, 4vw, 36px);
    line-height: 1.2;
    letter-spacing: -0.02em;
    color: var(--text);
}

.pc-section-sub {
    margin: 0 0 36px;
    max-width: 60ch;
    font-size: 17px;
    line-height: 1.6;
    color: var(--text-muted);
}

.pc-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px;
}

.pc-card {
    padding: 28px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-md);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.pc-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 32px rgba(10, 79, 179, 0.12);
}

.pc-card__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    margin-bottom: 18px;
    border-radius: 12px;
    background: var(--primary-50);
    color: var(--primary-700);
}

.pc-card__icon svg {
    width: 26px;
    height: 26px;
}

.pc-card__title {
    margin: 0 0 8px;
    font-family: "Fraunces", Georgia, serif;
    font-size: 18px;
    font-weight: 500;
    color: var(--text);
}

.pc-card__text {
    margin: 0;
    font-size: 15px;
    line-height: 1.6;
    color: var(--text-muted);
}

/* ==========================================================================
   Legal pages (Impressum / Datenschutz)
   ========================================================================== */
.pc-legal {
    flex: 1;
    padding: 56px 0 72px;
}

.pc-legal__title {
    margin: 0 0 24px;
    font-family: "Fraunces", Georgia, serif;
    font-weight: 500;
    font-size: clamp(30px, 5vw, 44px);
    letter-spacing: -0.02em;
    color: var(--text);
}

.pc-legal__body h2 {
    margin: 32px 0 8px;
    font-family: "Fraunces", Georgia, serif;
    font-weight: 500;
    font-size: 22px;
    color: var(--text);
}

.pc-legal__body p {
    margin: 0 0 14px;
    line-height: 1.7;
    color: var(--text-muted);
}

.pc-legal__body a {
    color: var(--primary-700);
    text-decoration: underline;
}

.pc-legal__body a:hover {
    color: var(--primary-800);
}

/* Footer */
.pc-footer {
    padding: 64px 0 32px;
    font-size: 13px;
    color: var(--text-muted);
}

.pc-footer__row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 20px;
    align-items: center;
    justify-content: space-between;
    border-top: 1px solid var(--border);
    padding-top: 24px;
}

.pc-footer__menu {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 20px;
    margin: 0;
    padding: 0;
    list-style: none;
}

/* ==========================================================================
   Responsive (DESIGN_SYSTEM.md: Mobile < 640px, Tablet 640-1024px)
   ========================================================================== */
@media (max-width: 640px) {
    .pc-main {
        padding: 48px 0 64px;
    }

    .pc-title {
        font-size: 32px;
        line-height: 1.1;
    }

    .pc-contact {
        flex-direction: column;
        align-items: stretch;
        gap: 16px;
        padding: 20px;
    }

    /* Reset the desktop flex-basis: in a column this would force a ~200px
       tall text block and open a large gap before the buttons. */
    .pc-contact__text {
        flex: 0 0 auto;
    }

    .pc-contact__actions {
        width: 100%;
        flex-direction: column;
        gap: 10px;
    }

    .pc-btn {
        width: 100%;
        justify-content: center;
    }

    .pc-footer__row {
        flex-direction: column;
        align-items: flex-start;
    }

    .pc-trust {
        gap: 8px 16px;
    }

    .pc-trust li {
        font-size: 13px;
    }
}

@media (min-width: 640px) and (max-width: 1024px) {
    .pc-container {
        padding: 0 24px;
    }

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

/* ==========================================================================
   Sticky Mobile CTA Bar (DESIGN_SYSTEM.md)
   ========================================================================== */
.pc-mobile-cta {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 200;
    background: var(--surface);
    border-top: 1px solid var(--border);
    padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
}

.pc-mobile-cta__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    flex: 1;
    padding: 12px 16px;
    font-family: "Inter", system-ui, sans-serif;
    font-size: 15px;
    font-weight: 600;
    color: var(--primary-700);
    text-decoration: none;
    background: transparent;
    border-radius: 10px;
    transition: background 0.2s ease;
}

.pc-mobile-cta__btn:hover {
    background: var(--primary-50);
}

.pc-mobile-cta__btn svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.pc-mobile-cta__btn--wa {
    color: #25d366;
}

.pc-mobile-cta__btn--wa:hover {
    background: rgba(37, 211, 102, 0.1);
}

/* Show mobile CTA on small screens */
@media (max-width: 640px) {
    .pc-mobile-cta {
        display: flex;
        gap: 8px;
    }

    /* Add bottom padding to page to prevent content being hidden behind sticky bar */
    .pc-page {
        padding-bottom: 72px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .pc-eyebrow::before {
        animation: none;
    }
}
