/*
Theme Name: Czułe Łapki
Theme URI: 
Author: Roland Ziemiański
Description: Dedykowany motyw WordPress dla salonu groomerskiego "Czułe Łapki", zoptymalizowany pod kątem wydajności i czytelności.
Version: 1.0.9
License: 
Text Domain: czule-lapki
*/

/* ==========================================================================
   CSS Variables & Base Styles
   ========================================================================== */
:root {
    --primary-color: #ff6b8b;
    --secondary-color: #ffe3e8;
    --text-color: #1a1a1a;
    --text-light: #4a4a4a;
    --bg-color: #ffffff;
    --bg-light: #fff8f9;
    --border-color: #e2e8f0;
    --font-main: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    --font-heading: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    --container-width: 1200px;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 4rem;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    margin: 0;
    padding: 0;
    font-family: var(--font-main);
    color: var(--text-color);
    background-color: var(--bg-color);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
    margin-top: 0;
    margin-bottom: 1rem;
    color: #1a1a1a;
}

p {
    margin-top: 0;
    margin-bottom: 1.5rem;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: #d1787b;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 var(--spacing-sm);
}

.section-inner {
    padding-top: var(--spacing-lg);
    padding-bottom: var(--spacing-lg);
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    position: relative;
    padding-bottom: 1rem;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background-color: var(--primary-color);
    border-radius: 2px;
}

/* ==========================================================================
   Header & Navigation
   ========================================================================== */
.site-header {
    background-color: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1rem;
    padding-bottom: 1rem;
}

.site-title {
    font-size: 1.5rem;
    font-family: var(--font-heading);
    margin: 0;
}

.site-title a {
    color: #1a1a1a;
    font-weight: 800;
}

.site-logo img {
    max-height: 60px;
    width: auto;
    object-fit: contain;
}

.main-navigation ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 1.5rem;
}

.main-navigation a {
    color: var(--text-color);
    font-weight: 500;
    font-size: 1rem;
}

.main-navigation a:hover {
    color: var(--primary-color);
}

/* Menu Toggle (Hamburger) */
.menu-toggle {
    display: none;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 101;
}

.hamburger-box {
    width: 30px;
    height: 24px;
    display: inline-block;
    position: relative;
}

.hamburger-inner {
    display: block;
    top: 50%;
    margin-top: -2px;
}

.hamburger-inner,
.hamburger-inner::before,
.hamburger-inner::after {
    width: 30px;
    height: 3px;
    background-color: var(--primary-color);
    border-radius: 4px;
    position: absolute;
    transition-property: transform;
    transition-duration: 0.15s;
    transition-timing-function: ease;
}

.hamburger-inner::before,
.hamburger-inner::after {
    content: "";
    display: block;
}

.hamburger-inner::before {
    top: -10px;
}

.hamburger-inner::after {
    bottom: -10px;
}

.menu-toggle.is-active .hamburger-inner {
    transform: translate3d(0, 2px, 0) rotate(45deg);
}

.menu-toggle.is-active .hamburger-inner::before {
    transform: rotate(-45deg) translate3d(-5.71429px, -6px, 0);
    opacity: 0;
}

.menu-toggle.is-active .hamburger-inner::after {
    transform: translate3d(0, -20px, 0) rotate(-90deg);
}

.header-phone a {
    background-color: var(--primary-color);
    color: white;
    padding: 0.5rem 1.25rem;
    border-radius: 50px;
    font-weight: 600;
    transition: background-color 0.3s ease;
}

.header-phone a:hover {
    background-color: #d1787b;
    color: white;
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero-section {
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('assets/hero-bg.jpg') center/cover no-repeat;
    background-color: #333;
    padding: 8rem 0;
    text-align: center;
    color: #fff;
}

.hero-title {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    color: #fff;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.hero-phone a {
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary-color);
}

.hero-location {
    font-size: 1.2rem;
    color: #f0f0f0;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

/* ==========================================================================
   About Section
   ========================================================================== */
.about-section {
    position: relative;
    overflow: hidden;
}

.about-section::before {
    content: '';
    position: absolute;
    top: -15px;
    left: -15px;
    right: -15px;
    bottom: -15px;
    background-image: var(--bg-image);
    background-size: cover;
    background-position: center;
    filter: blur(10px);
    z-index: 0;
}

.about-section::after {
    content: '';
    position: absolute;
    inset: 0;
    background-color: rgba(255, 255, 255, 0.75);
    z-index: 1;
}

.about-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    font-size: 1.2rem;
    color: var(--text-light);
}

/* ==========================================================================
   Instagram Section
   ========================================================================== */
.instagram-section {
    padding: 60px 20px;
    text-align: center;
    background-color: var(--bg-light);
}

.instagram-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    max-width: 1000px;
    margin: 40px auto 0;
}

.instagram-iframe {
    width: 100%;
    height: 520px;
    border: none;
    border-radius: 16px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.08);
    background-color: #fff;
    display: block;
}

@media (max-width: 768px) {
    .instagram-grid {
        grid-template-columns: 1fr;
        max-width: 400px;
    }
}

/* ==========================================================================
   Team Section
   ========================================================================== */
.team-section {
    background-color: var(--bg-light);
}

.team-member {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    text-align: center;
    transition: transform 0.3s ease;
}

.team-member:hover {
    transform: translateY(-5px);
}

.member-photo-placeholder {
    background-color: var(--secondary-color) !important;
}

.team-member-img {
    width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    object-position: center top;
    border-radius: 12px 12px 0 0;
}

.member-name {
    margin: 1.5rem 0 0.5rem;
    font-size: 1.25rem;
}

.member-role {
    color: var(--text-light);
    margin-bottom: 1.5rem;
}

/* ==========================================================================
   Pricing Section
   ========================================================================== */
.pricing-section {
    background-color: var(--bg-color);
}

.pricing-category {
    background: #fff;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    border: 1px solid var(--border-color);
}

.pricing-category h3 {
    text-align: center;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
    border-bottom: 2px solid var(--bg-light);
    padding-bottom: 1rem;
}

.pricing-items li.price {
    font-weight: 600;
    color: #1a1a1a;
}

/* ==========================================================================
   Gallery Sections
   ========================================================================== */
.gallery-section {
    background-color: var(--bg-light);
}

.gallery-grid {
    text-align: center;
    color: var(--text-light);
    padding: 3rem;
    background: #fff;
    border-radius: 12px;
    border: 2px dashed var(--border-color);
}

/* ==========================================================================
   Bulletproof Gutenberg Gallery Grid Override
   ========================================================================== */
body .wp-block-gallery,
body .wp-block-gallery.has-nested-images,
body figure.wp-block-gallery {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 6px !important;
    max-width: 1200px !important;
    margin: 0 auto !important;
    padding: 0 !important;
}

/* Reset WordPress native flex wrappers inside the gallery */
body .wp-block-gallery .wp-block-image,
body .wp-block-gallery figure.wp-block-image {
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    display: block !important;
    overflow: hidden;
}

/* Force perfect square thumbnails without distortion */
body .wp-block-gallery .wp-block-image img,
body .wp-block-gallery figure.wp-block-image img {
    width: 100% !important;
    height: 100% !important;
    aspect-ratio: 1 / 1 !important;
    object-fit: cover !important;
    object-position: center !important;
    max-height: none !important;
    display: block;
    border-radius: 4px;
    cursor: pointer;
    transition: transform 0.3s ease, opacity 0.15s ease;
}

body .wp-block-gallery .wp-block-image img:hover,
body .wp-block-gallery figure.wp-block-image img:hover {
    transform: scale(1.04);
}

/* Hide Gutenberg Gallery Image Captions */
body .wp-block-gallery .wp-block-image figcaption,
body .wp-block-gallery figure.wp-block-image figcaption {
    display: none !important;
}

/* Responsive: 2 columns on mobile */
@media (max-width: 768px) {

    body .wp-block-gallery,
    body .wp-block-gallery.has-nested-images,
    body figure.wp-block-gallery {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

/* ==========================================================================
   Custom Lightbox
   ========================================================================== */
.custom-lightbox {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.custom-lightbox.active {
    opacity: 1;
    visibility: visible;
}

.lightbox-backdrop {
    position: absolute;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.lightbox-img {
    position: relative;
    z-index: 1;
    max-width: 90vw;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 6px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
    transition: opacity 0.3s ease-in-out;
    opacity: 1;
}

.lightbox-img.fade-out {
    opacity: 0;
}

.lightbox-close,
.lightbox-prev,
.lightbox-next {
    position: fixed;
    z-index: 2;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #fff;
    cursor: pointer;
    border-radius: 50%;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    line-height: 1;
    transition: background 0.2s ease, transform 0.2s ease;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.lightbox-close:hover,
.lightbox-prev:hover,
.lightbox-next:hover {
    background: rgba(255, 255, 255, 0.3);
}

.lightbox-close {
    top: 1.5rem;
    right: 1.5rem;
    font-size: 1.8rem;
}

.lightbox-prev {
    left: 1.5rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 2rem;
}

.lightbox-prev:hover {
    transform: translateY(-50%) scale(1.1);
}

.lightbox-next {
    right: 1.5rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 2rem;
}

.lightbox-next:hover {
    transform: translateY(-50%) scale(1.1);
}

/* ==========================================================================
   Contact Section
   ========================================================================== */
.contact-section {
    background-color: var(--bg-color);
}

.contact-info {
    padding: 2rem;
    background: var(--bg-light);
    border-radius: 12px;
}

.btn {
    display: inline-block;
    padding: 0.8rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    text-align: center;
    transition: all 0.3s ease;
}

.btn-messenger {
    background-color: #0084ff;
    color: white;
}

.btn-messenger:hover {
    background-color: #006bce;
    color: white;
}

.btn-whatsapp {
    background-color: #25D366;
    color: white;
}

.btn-whatsapp:hover {
    background-color: #1ebc59;
    color: white;
}

.contact-map {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
    background-color: #1a1a1a;
    color: #ffffff;
    padding: 3rem 0;
    text-align: center;
}

.footer-social-media {
    margin-bottom: 2rem;
    display: flex;
    justify-content: center;
    gap: 1.5rem;
}

.social-link {
    color: white;
    font-weight: 600;
    padding: 0.5rem 1.5rem;
    border-radius: 50px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.social-link:hover {
    background-color: white;
}

.social-link.messenger-link:hover {
    color: #0084ff;
}

.social-link.whatsapp-link:hover {
    color: #25D366;
}

.site-info {
    font-size: 0.875rem;
    color: #a0aec0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 1.5rem;
    margin-top: 1.5rem;
}

/* ==========================================================================
   Responsive Design
   ========================================================================== */
@media (max-width: 768px) {
    .header-inner {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: space-between;
        align-items: center;
    }

    .site-branding {
        flex: 1;
    }

    .menu-toggle {
        display: block;
        order: 2;
    }

    .header-phone {
        display: none;
        /* Hide on mobile to save space, assuming it's in contact info anyway */
    }

    .main-navigation {
        width: 100%;
        order: 3;
        margin-top: 1rem;
    }

    /* Default mobile state (Hidden) */
    .main-navigation ul {
        flex-direction: column;
        align-items: center;
        gap: 1.2rem;
        padding: 1.5rem 0;
        border-radius: 8px;

        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: #ffffff;
        box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
        z-index: 9999;

        /* Smooth fade-in effect */
        opacity: 0;
        visibility: hidden;
        transform: translateY(-10px);
        transition: all 0.3s ease-in-out;
    }

    /* Active state (Visible) triggered by JS */
    .main-navigation ul.is-open {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .section-title {
        font-size: 2rem;
    }
}

/* ==========================================================================
   Pricing / Cennik Page
   ========================================================================== */
.pricing-section {
    padding: var(--spacing-lg) 0;
    background-color: var(--bg-light);
}

.pricing-intro {
    text-align: center;
    max-width: 720px;
    margin: 0 auto 3rem;
    color: var(--text-light);
    font-size: 1.05rem;
    line-height: 1.75;
}

.pricing-container {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}

/* Category card */
.pricing-category {
    background: #fff;
    border-radius: 20px;
    padding: 2rem 2.5rem;
    box-shadow: 0 4px 24px rgba(255, 107, 139, 0.08);
    border: 1px solid var(--secondary-color);
}

.pricing-category-title {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary-color);
    margin: 0 0 1.25rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--secondary-color);
    letter-spacing: 0.01em;
}

/* Each price row */
.pricing-item {
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
    padding: 0.75rem 0.5rem;
    border-radius: 10px;
    transition: background 0.2s ease, box-shadow 0.2s ease;
}

.pricing-item:hover {
    background-color: var(--bg-light);
    box-shadow: 0 2px 10px rgba(255, 107, 139, 0.07);
}

.pricing-name {
    font-size: 1rem;
    color: var(--text-color);
    white-space: nowrap;
    flex-shrink: 0;
}

.pricing-dots {
    flex: 1;
    border-bottom: 2px dotted #e2b8c5;
    min-width: 20px;
    margin-bottom: 4px;
}

.pricing-price {
    font-size: 1rem;
    font-weight: 700;
    color: var(--primary-color);
    white-space: nowrap;
    flex-shrink: 0;
}

/* CTA note at bottom */
.pricing-note {
    text-align: center;
    margin-top: 3rem;
    color: var(--text-light);
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.pricing-cta-btn {
    display: inline-block;
    background-color: var(--primary-color);
    color: #fff;
    padding: 0.6rem 1.5rem;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1rem;
    text-decoration: none;
    transition: background-color 0.25s ease, transform 0.2s ease;
    white-space: nowrap;
}

.pricing-cta-btn:hover {
    background-color: #e05578;
    transform: translateY(-2px);
    color: #fff;
}

/* Mobile: wrap price below name, hide dots */
@media (max-width: 600px) {
    .pricing-category {
        padding: 1.5rem 1.25rem;
    }

    .pricing-item {
        flex-wrap: wrap;
        gap: 0.25rem 0.5rem;
    }

    .pricing-dots {
        display: none;
    }

    .pricing-name {
        white-space: normal;
        flex: 1 1 100%;
        font-size: 0.95rem;
    }

    .pricing-price {
        font-size: 1rem;
        padding-left: 0.25rem;
    }
}