/* ---------------------------------------------------------------------------
   Podstrona "Kontakt" (/kontakt).

   Podpięty globalnie w App.razor, a nie w <HeadContent> tej strony - przy enhanced
   navigation Blazora <link> wstawiony dynamicznie nie blokuje renderowania, więc
   przy przejściu z menu migała strona bez stylów. Wszystko zagnieżdżone pod .ct,
   więc obecność arkusza na innych podstronach niczego nie zmienia.

   Układ i detale wzorowane na landingu css/offer-landing.css (hero z panelem
   bocznym, karty, akordeon Q&A ze złotym +/-). Paleta wspólna z home.css i
   about.css - jeśli zmieniasz markę, zmieniaj te pliki razem.
   --------------------------------------------------------------------------- */

.ct {
    --ct-ink: #2c2c2c;
    --ct-muted: #5f5750;
    --ct-cream: #fbf8f5;
    --ct-cream-dark: #f5efe8;
    --ct-line: #e8dfd5;
    --ct-brown: #5d4037;
    --ct-brown-soft: #8d6e63;
    --ct-gold: #b0894f;
    --ct-gold-dark: #96712f;
    --ct-star: #e0a83c;

    color: var(--ct-ink);
    background: #fff;
    font-size: 1.0625rem;
    line-height: 1.7;
}

.ct * {
    box-sizing: border-box;
}

.ct img {
    max-width: 100%;
}

.ct h1,
.ct h2,
.ct h3,
.ct p,
.ct li,
.ct a {
    overflow-wrap: anywhere;
}

.ct :where(p) {
    margin: 0 0 1.1em;
}

.ct :where(p):last-child {
    margin-bottom: 0;
}

.ct strong {
    font-weight: 600;
    color: var(--ct-brown);
}

/* MudPaper opakowujący @Body dokłada 2rem odstępu góra/dół - hero ma być
   full-bleed, więc na tej podstronie go zerujemy. */
.mud-paper.responsive-main:has(> .ct) {
    padding-top: 0;
    padding-bottom: 0;
}

/* --- układ ---------------------------------------------------------------- */

.ct-section {
    padding: 4.5rem 1.25rem;
}

.ct-section--cream {
    background: var(--ct-cream);
    border-top: 1px solid var(--ct-line);
    border-bottom: 1px solid var(--ct-line);
}

.ct-inner {
    max-width: 1140px;
    margin: 0 auto;
}

.ct-inner--narrow {
    max-width: 820px;
    margin: 0 auto;
}

.ct-center {
    text-align: center;
}

/* --- typografia ----------------------------------------------------------- */

.ct-eyebrow {
    display: inline-block;
    font-size: 0.8125rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    font-weight: 600;
    color: var(--ct-gold-dark);
    margin: 0 0 0.9rem;
}

.ct-h1 {
    font-family: 'Cinzel', serif;
    font-size: clamp(2.4rem, 5.6vw, 3.6rem);
    line-height: 1.1;
    font-weight: 400;
    margin: 0 0 1rem;
}

.ct-h2 {
    font-family: 'Cinzel', serif;
    font-size: clamp(1.55rem, 3.4vw, 2.3rem);
    line-height: 1.2;
    font-weight: 400;
    margin: 0 0 0.6rem;
}

.ct-h3 {
    font-family: 'Cinzel', serif;
    font-size: 1.2rem;
    line-height: 1.3;
    font-weight: 400;
    margin: 0 0 0.5rem;
}

.ct-sub {
    font-family: 'Cinzel', serif;
    font-size: clamp(1.05rem, 2.1vw, 1.35rem);
    font-weight: 400;
    line-height: 1.45;
    color: var(--ct-brown-soft);
    margin: 0;
}

.ct-lead {
    font-size: 1.125rem;
    line-height: 1.7;
    color: var(--ct-muted);
    margin: 0 0 1.5rem;
}

.ct-rule {
    width: 60px;
    height: 2px;
    background: var(--ct-gold);
    border: 0;
    margin: 1.3rem 0 1.75rem;
}

.ct-center .ct-rule,
.ct-rule--center {
    margin-left: auto;
    margin-right: auto;
}

/* --- hero ----------------------------------------------------------------- */

.ct-hero {
    background: var(--ct-cream);
    border-bottom: 1px solid var(--ct-line);
    padding-top: 3.5rem;
}

.ct-hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.ct-media {
    width: 100%;
    aspect-ratio: 16 / 10;
    border-radius: 14px;
    overflow: hidden;
    background: var(--ct-cream-dark);
    box-shadow: 0 20px 48px rgba(93, 64, 55, .22);
}

.ct-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* --- fakty w hero --------------------------------------------------------- */

.ct-facts {
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
    margin: 0 0 1.75rem;
    padding: 0;
    list-style: none;
}

.ct-facts li {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    font-size: 0.9688rem;
    color: var(--ct-muted);
}

/* Ikona nie może się zwężać, gdy tekst obok łamie się na kilka linii. */
.ct-facts li > svg {
    flex: 0 0 auto;
    margin-top: 0.15rem;
}

.ct-facts a {
    color: var(--ct-brown-soft);
}

/* --- pasek zaufania ------------------------------------------------------- */

.ct-trust {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
    font-size: 0.9375rem;
    color: var(--ct-muted);
    margin: 0 0 1.85rem;
}

.ct-stars {
    color: var(--ct-star);
    letter-spacing: 0.1em;
    font-size: 1.05rem;
    line-height: 1;
}

.ct-trust a {
    color: var(--ct-brown-soft);
}

/* --- przyciski ------------------------------------------------------------ */

.ct-cta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.9rem;
}

.ct-cta--center {
    justify-content: center;
}

.ct-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    font-family: inherit;
    font-size: 1.0625rem;
    font-weight: 700;
    letter-spacing: 0.01em;
    text-decoration: none !important;
    padding: 1.05rem 1.9rem;
    /* Obrys robi "box-shadow: inset", nie border - przezroczysta ramka nad
       gradientem prześwitywała na łukach pigułki. Inset nie wchodzi do modelu
       pudełkowego, więc wszystkie warianty mają tę samą wysokość. */
    border: 0;
    border-radius: 999px;
    cursor: pointer;
    line-height: 1.2;
    white-space: nowrap;
    flex-shrink: 0;
    transition: transform .18s ease, box-shadow .18s ease, background-color .18s ease, color .18s ease;
}

.ct-btn:hover,
.ct-btn:focus-visible {
    transform: translateY(-2px);
}

.ct-btn:active {
    transform: translateY(0);
}

/* Telefon = akcja główna, ma być najbardziej rzucającym się w oczy elementem. */
.ct-btn--call {
    background: linear-gradient(135deg, #b0894f 0%, #96712f 100%);
    color: #fff !important;
    box-shadow: 0 10px 26px rgba(150, 113, 47, .34);
}

.ct-btn--call:hover,
.ct-btn--call:focus-visible {
    box-shadow: 0 16px 34px rgba(150, 113, 47, .42);
    color: #fff !important;
}

.ct-btn--outline {
    background: #fff;
    box-shadow: inset 0 0 0 2px var(--ct-gold);
    color: var(--ct-gold-dark) !important;
}

.ct-btn--outline:hover,
.ct-btn--outline:focus-visible {
    background: var(--ct-gold);
    color: #fff !important;
    box-shadow: inset 0 0 0 2px var(--ct-gold);
}

/* --- karty sposobów kontaktu ---------------------------------------------- */

.ct-methods {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.25rem;
}

.ct-method {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.35rem;
    background: #fff;
    border: 1px solid var(--ct-line);
    border-radius: 14px;
    padding: 1.9rem 1.35rem;
    text-decoration: none !important;
    color: var(--ct-ink) !important;
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.ct-method:hover,
.ct-method:focus-visible {
    transform: translateY(-4px);
    border-color: var(--ct-gold);
    box-shadow: 0 16px 34px rgba(93, 64, 55, .14);
}

.ct-method-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 54px;
    height: 54px;
    border-radius: 50%;
    background: var(--ct-cream);
    color: var(--ct-gold-dark);
    margin-bottom: 0.75rem;
}

.ct-method-label {
    font-size: 0.75rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    font-weight: 600;
    color: var(--ct-gold-dark);
}

.ct-method-value {
    font-size: 1.0625rem;
    font-weight: 600;
    word-break: break-word;
}

.ct-method-note {
    font-size: 0.875rem;
    color: var(--ct-muted);
}

/* --- godziny + mapa ------------------------------------------------------- */

.ct-visit {
    display: grid;
    grid-template-columns: minmax(0, 360px) minmax(0, 1fr);
    gap: 2.5rem;
    align-items: stretch;
}

.ct-hours {
    background: #fff;
    border: 1px solid var(--ct-line);
    border-radius: 14px;
    padding: 1.6rem 1.5rem;
}

.ct-hours-list {
    margin: 0;
    padding: 0;
}

.ct-hours-list > div {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 1rem;
    padding: 0.45rem 0;
    border-bottom: 1px dashed var(--ct-line);
}

.ct-hours-list > div:last-child {
    border-bottom: 0;
    padding-bottom: 0;
}

.ct-hours-list dt {
    color: var(--ct-muted);
    font-size: 0.9375rem;
}

.ct-hours-list dd {
    margin: 0;
    font-size: 0.9375rem;
    font-weight: 600;
    white-space: nowrap;
}

.ct-address {
    margin-top: 1.4rem;
    padding-top: 1.4rem;
    border-top: 1px solid var(--ct-line);
    font-size: 0.9375rem;
    color: var(--ct-muted);
}

.ct-address a {
    color: var(--ct-brown-soft);
}

/* Iframe Google Maps to kilkaset kilobajtów i kilkanaście żądań do obcego
   hosta. Wstawiamy go dopiero po kliknięciu, żeby nie obciążał startu strony. */
.ct-map {
    position: relative;
    min-height: 360px;
    height: 100%;
    border: 1px solid var(--ct-line);
    border-radius: 14px;
    overflow: hidden;
    background: #fff;
}

.ct-map iframe {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 360px;
    border: 0;
}

.ct-map-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    height: 100%;
    min-height: 360px;
    padding: 2rem 1.5rem;
    text-align: center;
}

.ct-map-address {
    font-family: 'Cinzel', serif;
    font-size: 1.15rem;
    color: var(--ct-brown);
    margin: 0 0 0.9rem !important;
}

/* --- Q&A ------------------------------------------------------------------ */

.ct-faq details {
    background: #fff;
    border: 1px solid var(--ct-line);
    border-radius: 10px;
    margin-bottom: 0.75rem;
    overflow: hidden;
}

.ct-faq summary {
    cursor: pointer;
    padding: 1.1rem 1.3rem;
    font-weight: 600;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    line-height: 1.45;
}

.ct-faq summary::-webkit-details-marker {
    display: none;
}

.ct-faq summary::after {
    content: "+";
    font-size: 1.5rem;
    line-height: 1;
    color: var(--ct-gold);
    flex-shrink: 0;
}

.ct-faq details[open] summary::after {
    content: "\2212";
}

.ct-faq summary:hover {
    color: var(--ct-gold-dark);
}

.ct-faq-body {
    padding: 0 1.3rem 1.3rem;
    color: var(--ct-muted);
    line-height: 1.7;
}

.ct-faq-body a {
    color: var(--ct-brown-soft);
}

/* --- stopka sekcji finałowej ---------------------------------------------- */

.ct-final-contact {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem 2rem;
    margin-top: 2.5rem;
    font-size: 0.9375rem;
    color: var(--ct-muted);
}

.ct-final-contact span {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.ct-final-contact a {
    color: var(--ct-brown-soft);
}

/* --- responsywność -------------------------------------------------------- */

@media (max-width: 960px) {
    .ct-hero-grid {
        grid-template-columns: 1fr;
        gap: 2.25rem;
    }

    /* Na mobile najpierw zdjęcie - buduje kontekst, zanim ktokolwiek zacznie czytać. */
    .ct-hero-grid .ct-media-wrap {
        order: -1;
    }

    .ct-hero-text {
        text-align: center;
    }

    .ct-facts li {
        justify-content: center;
    }

    .ct-trust,
    .ct-cta {
        justify-content: center;
    }

    .ct-visit {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 780px) {
    .ct-section {
        padding: 3.25rem 1.1rem;
    }

    .ct-hero {
        padding-top: 2.5rem;
    }

    .ct-methods {
        grid-template-columns: 1fr;
    }

    /* Przyciski pełną szerokością - kciukiem trudno trafić w wąski cel. */
    .ct-cta {
        flex-direction: column;
        align-items: stretch;
    }

    .ct-cta .ct-btn {
        width: 100%;
    }
}

@media (max-width: 400px) {
    .ct-section {
        padding: 2.75rem 0.9rem;
    }

    .ct-btn {
        font-size: 1rem;
        padding: 1rem 1.1rem;
        letter-spacing: 0;
    }
}

@media (prefers-reduced-motion: reduce) {
    .ct *,
    .ct-btn,
    .ct-method {
        animation: none !important;
        transition: none !important;
    }
}
