/*
Theme Name: Kadence Child - Medella
Theme URI: https://medella.pl
Description: Child theme dla Kadence z niestandardową stopką
Author: Medella
Author URI: https://medella.pl
Template: kadence
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: kadence-child
*/

/* ==========================================================================
   GLOBAL - Body background (fix beige overscroll on mobile)
   ========================================================================== */

html,
body {
    background-color: #ffffff;
}

/* ==========================================================================
   GLOBAL - Czcionka ciała: DM Sans (zastąpienie Tenor Sans)
   ========================================================================== */

body {
    font-family: 'DM Sans', sans-serif;
}

/* ==========================================================================
   GLOBAL - Font rendering fix
   Na zwykłych ekranach (1x) subpixel-antialiased = ClearType, czytelne cienkie litery.
   Na HiDPI/Retina (2x+) antialiased wygląda lepiej bo gęstość pikseli jest wysoka.
   ========================================================================== */

*,
*::before,
*::after {
    -webkit-font-smoothing: subpixel-antialiased;
    -moz-osx-font-smoothing: auto;
}

@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    *,
    *::before,
    *::after {
        -webkit-font-smoothing: antialiased;
        -moz-osx-font-smoothing: grayscale;
    }
}

/* ==========================================================================
   NAVBAR - Fix GPU compositing layer (Kadence stosuje transform:translate3d
   na linkach nav, co wymusza kompozytowanie GPU i wyłącza subpixel rendering).
   Zerujemy transform aby ClearType działało poprawnie.
   ========================================================================== */

.header-navigation li.menu-item > a,
.header-navigation li.menu-item > a * {
    font-family: 'Josefin Sans', sans-serif !important;
    font-weight: 400;
    transform: none !important;
}

/* ==========================================================================
   FOOTER STYLES - Medella Brand
   ========================================================================== */

.medella-footer {
    background-color: #F7F6F3;
    color: #121212;
    padding: 0;
    font-family: 'DM Sans', sans-serif;
}

/* Linia dekoracyjna na górze stopki */
.medella-footer::before {
    content: '';
    display: block;
    height: 2px;
    background: linear-gradient(90deg, transparent, #B5CBBF, transparent);
}

/* Footer Main Section */
.footer-main {
    padding: 64px 0 48px;
    border-bottom: 1px solid rgba(181, 203, 191, 0.25);
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 48px;
}

/* Footer Column */
.footer-column {
    display: flex;
    flex-direction: column;
}

.footer-column h4 {
    font-family: 'DM Sans', sans-serif;
    color: #7a8a72;
    font-size: 16px;
    font-weight: 400;
    margin-bottom: 40px;
    text-transform: uppercase;
    letter-spacing: 2px;
    border-bottom: 1px solid rgba(181, 203, 191, 0.25);
    padding-bottom: 12px;
}

/* Logo & Description */
.footer-logo {
    margin-bottom: 20px;
}

.footer-logo img {
    max-width: 160px;
    height: auto;
    filter: brightness(0) invert(1);
    opacity: 0.9;
}

.footer-logo img {
    filter: none;
    opacity: 1;
}

.footer-logo-text {
    font-family: 'Instrument Serif', serif;
    font-size: 30px;
    font-weight: 400;
    color: #121212;
    text-decoration: none;
    letter-spacing: 0.5px;
}

.footer-description {
    color: rgba(18, 18, 18, 0.6);
    font-size: 16px;
    line-height: 1.8;
    margin-bottom: 28px;
    font-family: 'DM Sans', sans-serif;
}

/* Footer Navigation */
.footer-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-nav ul li {
    margin-bottom: 13px;
}

.footer-nav ul li a {
    color: rgba(18, 18, 18, 0.6);
    text-decoration: none;
    font-size: 15px;
    font-family: 'DM Sans', sans-serif;
    letter-spacing: 0.3px;
    transition: color 0.3s ease, padding-left 0.3s ease;
}

.footer-nav ul li a:hover {
    color: #B5CBBF;
    padding-left: 6px;
}

/* Contact Info */
.footer-contact-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 16px;
    color: rgba(18, 18, 18, 0.6);
    font-size: 15px;
    font-family: 'DM Sans', sans-serif;
    line-height: 1.6;
}

.footer-contact-item svg {
    width: 15px;
    height: 15px;
    margin-right: 12px;
    flex-shrink: 0;
    margin-top: 3px;
    fill: #B5CBBF;
    opacity: 0.8;
}

.footer-contact-item a {
    color: rgba(18, 18, 18, 0.6);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-contact-item a:hover {
    color: #B5CBBF;
}

/* Social Media */
.footer-social {
    display: flex;
    gap: 10px;
    margin-top: 4px;
}

.footer-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    background-color: transparent;
    border: 1px solid rgba(181, 203, 191, 0.4);
    border-radius: 2px;
    color: rgba(18, 18, 18, 0.5);
    text-decoration: none;
    transition: border-color 0.3s ease, color 0.3s ease, transform 0.3s ease;
}

.footer-social a:hover {
    border-color: #B5CBBF;
    color: #B5CBBF;
    transform: translateY(-3px);
}

.footer-social svg {
    width: 15px;
    height: 15px;
    fill: currentColor;
}

/* Footer Bottom */
.footer-bottom {
    padding: 22px 0;
    background-color: rgba(181, 203, 191, 0.08);
}

.footer-bottom-content {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.footer-copyright {
    color: rgba(18, 18, 18, 0.6);
    font-size: 13px;
    font-family: 'DM Sans', sans-serif;
    letter-spacing: 0.3px;
}

.footer-legal {
    display: flex;
    gap: 28px;
}

.footer-legal a {
    color: rgba(18, 18, 18, 0.4);
    text-decoration: none;
    font-size: 14px;
    font-family: 'DM Sans', sans-serif;
    letter-spacing: 0.3px;
    transition: color 0.3s ease;
}

.footer-legal a:hover {
    color: #B5CBBF;
}

/* Hours table */
.footer-contact-item--hours {
    align-items: flex-start;
}

.footer-hours {
    border-collapse: collapse;
    font-family: 'DM Sans', sans-serif;
    font-size: 14px;
    color: rgba(18, 18, 18, 0.6);
    line-height: 1.7;
    width: auto;
}

.footer-hours td {
    padding: 0;
    vertical-align: top;
}

.footer-hours td:first-child {
    min-width: 32px;
    padding-right: 10px;
    color: rgba(18, 18, 18, 0.4);
}

/* Responsive */
@media (max-width: 992px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 36px;
    }
}

@media (max-width: 576px) {
    .footer-main {
        padding: 40px 0 32px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .footer-bottom-content {
        flex-direction: column;
        text-align: center;
    }

    .footer-legal {
        flex-wrap: wrap;
        justify-content: center;
        gap: 16px;
    }
}

/* ==========================================================================
   SEKCJA ORNAMENT — ozdobna ikonka SVG nad headerami sekcji
   Używana w: Filozofia, O nas, Zabiegi, Historia, Fundamenty
   ========================================================================== */

.medella-section-ornament {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 18px;
}

.medella-section-ornament svg {
    width: 80px;
    height: 80px;
    color: #B5CBBF;
    opacity: 0.78;
    display: block;
}

@media (max-width: 640px) {
    .medella-section-ornament svg {
        width: 60px;
        height: 60px;
    }
}

/* ==========================================================================
   404 PAGE - Medella
   ========================================================================== */

/* Usuń wszelki padding/margin Kadence wokół strony 404 */
.error404 #inner-wrap,
.error404 #primary,
.error404 .content-area,
.error404 .site-main {
    padding: 0 !important;
    margin: 0 !important;
}

.medella-404-main {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.medella-404 {
    width: 100%;
    flex: 1;
    background-color: #F7F6F3;
    padding: 160px 24px 100px;
    display: flex;
    align-items: center;
}

.medella-404__container {
    max-width: 680px;
    margin: 0 auto;
    text-align: center;
}

.medella-404__number {
    font-family: 'Instrument Serif', serif;
    font-size: clamp(120px, 20vw, 220px);
    line-height: 1;
    color: #E8E9EB;
    letter-spacing: -4px;
    margin-bottom: -20px;
    user-select: none;
}

.medella-404__overline {
    font-family: 'Josefin Sans', sans-serif;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: #C6A96B;
    margin-bottom: 16px;
}

.medella-404__title {
    font-family: 'Instrument Serif', serif;
    font-size: clamp(32px, 5vw, 52px);
    font-weight: 400;
    color: #121212;
    line-height: 1.2;
    margin-bottom: 20px;
}

.medella-404__desc {
    font-family: 'DM Sans', sans-serif;
    font-size: 16px;
    line-height: 1.7;
    color: rgba(18, 18, 18, 0.65);
    margin-bottom: 40px;
}

.medella-404__actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 48px;
}

.medella-404__btn {
    display: inline-block;
    font-family: 'Josefin Sans', sans-serif;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    text-decoration: none;
    padding: 14px 32px;
    border: 1px solid #121212;
    transition: background-color 0.25s ease, color 0.25s ease;
}

.medella-404__btn--primary {
    background-color: #121212;
    color: #F7F6F3;
}

.medella-404__btn--primary:hover {
    background-color: #333;
    color: #F7F6F3;
}

.medella-404__btn--secondary {
    background-color: transparent;
    color: #121212;
}

.medella-404__btn--secondary:hover {
    background-color: #121212;
    color: #F7F6F3;
}

.medella-404__divider {
    width: 40px;
    height: 1px;
    background: linear-gradient(90deg, transparent, #C6A96B, transparent);
    margin: 0 auto 32px;
}

.medella-404__contact {
    font-family: 'DM Sans', sans-serif;
    font-size: 14px;
    color: rgba(18, 18, 18, 0.55);
}

.medella-404__contact a {
    color: #121212;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.medella-404__contact a:hover {
    color: #C6A96B;
}

@media (max-width: 480px) {
    .medella-404 {
        padding: 80px 20px 60px;
    }

    .medella-404__actions {
        flex-direction: column;
        align-items: center;
    }

    .medella-404__btn {
        width: 100%;
        max-width: 280px;
        text-align: center;
    }
}
