/**
 * Mstudio Custom Styles
 * Additional styles for customization
 */

/* ==========================================================================
   Section with Background Image
   ========================================================================== */
.section-with-bg {
    position: relative;
    overflow: hidden;
}

.section-with-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: var(--section-bg);
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    filter: blur(3px);
    transform: scale(1.1);
    z-index: 0;
}

.section-bg-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.85);
    z-index: 1;
}

.section-dark .section-bg-overlay {
    background: rgba(0, 0, 0, 0.8);
}

.section-with-bg .container {
    position: relative;
    z-index: 2;
}

.section-dark .section-title h2,
.section-dark .section-title p {
    color: var(--white);
}

.section-dark .section-title p {
    opacity: 0.8;
}

/* Service cards in dark section */
.section-dark .service-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
}

/* Testimonial cards in dark section */
.section-dark .testimonial-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
}

/* Contact section styling */
.contact.section-with-bg .contact-info,
.contact.section-with-bg .contact-form {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 40px;
    border-radius: 15px;
    box-shadow: var(--shadow);
}

.contact.section-with-bg .contact-info h3 {
    margin-bottom: 15px;
}

/* Mobile: disable fixed background for performance */
@media (max-width: 768px) {
    .section-with-bg::before {
        background-attachment: scroll;
    }
}

/* ==========================================================================
   Animations
   ========================================================================== */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

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

/* Animation classes */
.animate-fadeIn {
    animation: fadeIn 0.8s ease forwards;
}

.animate-slideInLeft {
    animation: slideInLeft 0.8s ease forwards;
}

.animate-slideInRight {
    animation: slideInRight 0.8s ease forwards;
}

/* Intersection Observer Animations */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* ==========================================================================
   Additional Component Styles
   ========================================================================== */

/* Form Message */
.form-message {
    margin-top: 20px;
    padding: 15px;
    border-radius: 8px;
    display: none;
}

.form-message.success {
    display: block;
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.form-message.error {
    display: block;
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Loading State */
.btn.loading {
    position: relative;
    color: transparent;
    pointer-events: none;
}

.btn.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid transparent;
    border-top-color: currentColor;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* ==========================================================================
   Mobile Menu Overlay
   ========================================================================== */
.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 998;
}

.mobile-menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Header Phone Button - widoczny tylko na mobile */
.header-phone-btn {
    display: none;
    width: 44px;
    height: 44px;
    background: var(--gold-color);
    border-radius: 50%;
    align-items: center;
    justify-content: center;
    margin-left: auto;
    margin-right: 15px;
    transition: var(--transition);
}

.header-phone-btn svg {
    width: 20px;
    height: 20px;
    fill: var(--black);
}

.header-phone-btn:hover {
    background: var(--gold-light);
    transform: scale(1.05);
}

@media (max-width: 768px) {
    .header-phone-btn {
        display: flex;
    }
}

/* Mobile Menu Toggle Animation */
.mobile-menu-toggle {
    z-index: 1001;
    position: relative;
    width: 44px;
    height: 44px;
    display: none; /* Ukryty na desktopie */
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 6px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
}

@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: flex; /* Widoczny tylko w wersji mobilnej */
    }
}

.mobile-menu-toggle span {
    display: block;
    width: 28px;
    height: 2px;
    background: var(--white);
    transition: all 0.3s ease;
    transform-origin: center;
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* Mobile Menu Info - wyświetlane tylko w menu mobilnym */
.mobile-menu-info {
    display: none;
}

@media (max-width: 768px) {
    .mobile-menu-info {
        display: block;
        margin-top: 40px;
        padding-top: 30px;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
        text-align: right;
    }

    .mobile-menu-phone {
        display: inline-flex;
        align-items: center;
        gap: 12px;
        padding: 15px 25px;
        background: var(--gold-color);
        border-radius: 10px;
        text-decoration: none;
        margin-bottom: 20px;
    }

    .mobile-menu-phone svg {
        width: 22px;
        height: 22px;
        fill: var(--black);
    }

    .mobile-menu-phone span {
        font-size: 1.2rem;
        font-weight: 700;
        color: var(--black);
        letter-spacing: 0.5px;
    }

    .mobile-menu-address {
        color: rgba(255, 255, 255, 0.6);
        font-size: 0.95rem;
        line-height: 1.7;
    }

    .mobile-menu-address strong {
        color: var(--white);
        font-size: 1.1rem;
    }

    .mobile-menu-address p {
        margin: 0 0 5px;
    }
}

/* ==========================================================================
   Page Templates
   ========================================================================== */
.page-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    padding: 150px 0 80px;
    text-align: center;
    color: var(--white);
}

.page-header h1 {
    font-size: 3rem;
    margin-bottom: 15px;
}

.page-header p {
    font-size: 1.2rem;
    opacity: 0.8;
}

.content-area {
    padding: 80px 0;
}

.entry-content {
    max-width: 800px;
    margin: 0 auto;
}

.entry-content p {
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.entry-content h2,
.entry-content h3,
.entry-content h4 {
    margin-top: 2rem;
    margin-bottom: 1rem;
}

/* ==========================================================================
   Lightbox Styles
   ========================================================================== */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.lightbox.active {
    opacity: 1;
    visibility: visible;
}

.lightbox-content {
    max-width: 90%;
    max-height: 90%;
}

.lightbox-content img {
    max-width: 100%;
    max-height: 90vh;
    object-fit: contain;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 40px;
    color: var(--white);
    cursor: pointer;
    transition: var(--transition);
}

.lightbox-close:hover {
    color: var(--gold-color);
}

/* ==========================================================================
   Back to Top Button
   ========================================================================== */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--gold-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 999;
    border: none;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background: var(--gold-light);
    transform: translateY(-5px);
    box-shadow: 0 0 20px rgba(201, 162, 39, 0.6), 0 0 40px rgba(201, 162, 39, 0.3);
}

.back-to-top svg {
    width: 24px;
    height: 24px;
    fill: var(--black);
}

.back-to-top:hover svg {
    fill: var(--black);
}

/* Mobile: przesunięcie back-to-top wyżej, żeby nie nachodził na sticky-phone */
@media (max-width: 768px) {
    .back-to-top {
        bottom: 90px;
        right: 15px;
        width: 40px;
        height: 40px;
    }

    .back-to-top svg {
        width: 18px;
        height: 18px;
    }
}


/* ==========================================================================
   Scroll Progress Bar
   ========================================================================== */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    background: var(--accent-color);
    z-index: 10001;
    width: 0;
    transition: width 0.1s linear;
}

/* ==========================================================================
   Cookie Notice
   ========================================================================== */
.cookie-notice {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: var(--primary-color);
    color: var(--white);
    padding: 20px;
    z-index: 9999;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.cookie-notice.visible {
    transform: translateY(0);
}

.cookie-notice-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    gap: 20px;
}

.cookie-notice p {
    margin: 0;
    font-size: 0.9rem;
}

.cookie-notice a {
    color: var(--accent-color);
    text-decoration: underline;
}

.cookie-notice .btn {
    padding: 10px 25px;
    font-size: 0.9rem;
}

/* ==========================================================================
   Placeholder Images
   ========================================================================== */
.placeholder-image {
    background: linear-gradient(135deg, var(--gray-light) 0%, var(--gray) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 200px;
}

.placeholder-image svg {
    width: 60px;
    height: 60px;
    fill: var(--text-light);
    opacity: 0.5;
}

/* ==========================================================================
   WordPress Specific Styles
   ========================================================================== */

/* Alignments */
.alignleft {
    float: left;
    margin-right: 1.5rem;
    margin-bottom: 1rem;
}

.alignright {
    float: right;
    margin-left: 1.5rem;
    margin-bottom: 1rem;
}

.aligncenter {
    display: block;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 1rem;
}

/* Captions */
.wp-caption {
    max-width: 100%;
    margin-bottom: 1.5rem;
}

.wp-caption-text {
    font-size: 0.9rem;
    color: var(--text-light);
    padding: 10px;
    text-align: center;
}

/* Galleries */
.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
    margin-bottom: 1.5rem;
}

.gallery-item {
    margin: 0;
}

.gallery-icon img {
    width: 100%;
    height: auto;
    border-radius: 8px;
}

/* Screen Reader Text */
.screen-reader-text {
    clip: rect(1px, 1px, 1px, 1px);
    position: absolute !important;
    height: 1px;
    width: 1px;
    overflow: hidden;
}

/* ==========================================================================
   Print Styles
   ========================================================================== */
/* ==========================================================================
   Sticky Phone Button (Mobile CTA)
   ========================================================================== */
.sticky-phone-btn {
    position: fixed;
    bottom: 20px;
    right: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--gold-color);
    color: var(--black);
    padding: 15px 20px;
    border-radius: 50px;
    box-shadow: 0 4px 20px rgba(201, 162, 39, 0.4);
    z-index: 998;
    transition: var(--transition);
    text-decoration: none;
}

.sticky-phone-btn:hover {
    background: var(--gold-light);
    transform: translateY(-3px);
    box-shadow: 0 6px 25px rgba(201, 162, 39, 0.5);
}

.sticky-phone-btn svg {
    width: 24px;
    height: 24px;
    fill: currentColor;
}

.sticky-phone-text {
    font-weight: 600;
    font-size: 0.9rem;
}

@media (min-width: 769px) {
    .sticky-phone-btn {
        bottom: 30px;
        right: 100px;
    }
}

/* Ukryj sticky phone na mobile - jest w headerze */
@media (max-width: 768px) {
    .sticky-phone-btn {
        display: none;
    }
}

/* ==========================================================================
   Lightbox Navigation
   ========================================================================== */
.lightbox-prev,
.lightbox-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: var(--white);
    font-size: 2rem;
    padding: 20px 15px;
    cursor: pointer;
    transition: var(--transition);
    z-index: 10002;
}

.lightbox-prev:hover,
.lightbox-next:hover {
    background: rgba(255, 255, 255, 0.2);
}

.lightbox-prev {
    left: 20px;
}

.lightbox-next {
    right: 20px;
}

@media (max-width: 768px) {
    .lightbox-prev,
    .lightbox-next {
        padding: 15px 10px;
        font-size: 1.5rem;
    }

    .lightbox-prev {
        left: 10px;
    }

    .lightbox-next {
        right: 10px;
    }
}

/* ==========================================================================
   Service Link
   ========================================================================== */
.service-link {
    display: inline-block;
    margin-top: 15px;
    color: var(--accent-color);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 1px;
    transition: var(--transition);
}

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

/* ==========================================================================
   Section Label
   ========================================================================== */
.section-label {
    display: block;
    color: var(--accent-color);
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 10px;
}

/* ==========================================================================
   Address Styling
   ========================================================================== */
address {
    font-style: normal;
}

.contact-item-text a {
    color: var(--text-light);
    transition: var(--transition);
}

.contact-item-text a:hover {
    color: var(--gold-color);
}

/* ==========================================================================
   Contact Map
   ========================================================================== */
.contact-map {
    margin-top: 30px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.contact-map:hover {
    box-shadow: var(--shadow-hover);
}

.contact-map .map-link {
    display: block;
    position: relative;
}

.contact-map iframe {
    display: block;
    width: 100%;
    transition: var(--transition);
}

.contact-map:hover iframe {
    filter: brightness(1.05);
}

.map-directions-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: var(--gold-color);
    color: var(--black);
    padding: 15px 25px;
    border-radius: 0 0 12px 12px;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
}

.map-directions-btn:hover {
    background: var(--gold-light);
}

.map-directions-btn svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

/* ==========================================================================
   Blockquote Styling
   ========================================================================== */
blockquote {
    margin: 0;
    padding: 0;
}

.testimonial-author cite {
    font-style: normal;
    font-weight: 600;
    color: var(--primary-color);
    display: block;
    margin-bottom: 5px;
}

/* ==========================================================================
   Instagram Section
   ========================================================================== */
.instagram-section {
    background: var(--white);
}

.instagram-feed-wrapper {
    margin-bottom: 40px;
}

/* Placeholder for Instagram feed */
.instagram-feed-placeholder {
    background: linear-gradient(135deg, var(--gray-light) 0%, var(--gray) 100%);
    border-radius: 15px;
    padding: 60px 40px;
    text-align: center;
}

.instagram-feed-info svg {
    width: 60px;
    height: 60px;
    fill: var(--gold-color);
    margin-bottom: 20px;
}

.instagram-feed-info h3 {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.instagram-feed-info p {
    color: var(--text-light);
    margin-bottom: 20px;
}

.instagram-feed-info ol {
    text-align: left;
    max-width: 400px;
    margin: 0 auto 30px;
    padding-left: 20px;
    list-style: decimal;
}

.instagram-feed-info ol li {
    color: var(--text-light);
    margin-bottom: 10px;
    line-height: 1.6;
}

.instagram-feed-info ol a {
    color: var(--gold-color);
    text-decoration: underline;
}

.instagram-feed-info .btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.instagram-feed-info .btn svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

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

.instagram-cta .btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.instagram-cta .btn svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

@media (max-width: 1024px) {
    .instagram-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

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

@media (max-width: 480px) {
    .instagram-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
}

/* ==========================================================================
   Print Styles
   ========================================================================== */
@media print {
    .site-header,
    .site-footer,
    .hero,
    .back-to-top,
    .mobile-menu-toggle,
    .sticky-phone-btn {
        display: none !important;
    }

    body {
        font-size: 12pt;
        line-height: 1.5;
        color: #000;
        background: #fff;
    }

    a {
        color: #000;
        text-decoration: underline;
    }

    .container {
        max-width: 100%;
        padding: 0;
    }

    .section {
        padding: 20px 0;
        page-break-inside: avoid;
    }
}

/* ==========================================================================
   NOWY UKŁAD - Extended Hero
   ========================================================================== */
.hero-extended {
    min-height: 100vh;
    padding-bottom: 60px;
}

.hero-extended .hero-content {
    max-width: 900px;
}

.hero-manifesto {
    font-size: 1.15rem;
    line-height: 1.8;
    max-width: 700px;
    margin: 0 auto 30px;
}

.hero-services-quick {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    margin-bottom: 40px;
}

.hero-service-tag {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 10px 20px;
    border-radius: 50px;
    font-size: 0.9rem;
    color: var(--white);
    font-weight: 500;
}

.hero-trust-badges {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-top: 50px;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

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

.trust-badge strong {
    display: block;
    font-size: 2rem;
    color: var(--gold-color);
    font-weight: 700;
}

.trust-badge span {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.7);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-large {
    padding: 18px 35px;
    font-size: 1.1rem;
}

.btn-large svg {
    width: 22px;
    height: 22px;
    margin-right: 10px;
}

.btn-primary svg {
    fill: currentColor;
}

@media (max-width: 768px) {
    .hero-manifesto {
        font-size: 1rem;
    }

    .hero-services-quick {
        gap: 8px;
    }

    .hero-service-tag {
        padding: 8px 15px;
        font-size: 0.8rem;
    }

    .hero-trust-badges {
        gap: 20px;
        flex-wrap: wrap;
    }

    .trust-badge strong {
        font-size: 1.5rem;
    }
}

/* ==========================================================================
   NOWY UKŁAD - Sekcja Oferta (dualne bloki)
   ========================================================================== */
.section-title-left {
    text-align: left;
}

.section-title-left h2::after {
    margin-left: 0;
}

.oferta-dual {
    display: flex;
    flex-direction: column;
    gap: 60px;
}

.oferta-block {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.oferta-block-restore {
    direction: rtl;
}

.oferta-block-restore > * {
    direction: ltr;
}

.oferta-block-images {
    display: flex;
    flex-direction: column;
    gap: 15px;
    height: 100%;
}

.oferta-block-image {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-hover);
    flex: 1;
    min-height: 300px;
}

.oferta-block-image img {
    width: 100%;
    height: 100%;
    min-height: 300px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.oferta-block:hover .oferta-block-image img {
    transform: scale(1.05);
}

/* Zdjęcie z naturalnymi proporcjami */
.oferta-block-image--natural {
    flex: none;
    min-height: auto;
    height: auto;
}

.oferta-block-image--natural img {
    min-height: auto;
    height: auto;
    object-fit: contain;
}

/* Zdjęcie przycięte */
.oferta-block-image--crop {
    flex: 1;
    min-height: 200px;
}

.oferta-block-image--crop img {
    object-fit: cover;
    object-position: center;
}

.oferta-block-content {
    padding: 20px 0;
}

.oferta-label {
    display: inline-block;
    background: var(--gold-color);
    color: var(--black);
    padding: 8px 16px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 20px;
}

/* Transparentny label - szklany efekt */
.oferta-label-glass {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(201, 162, 39, 0.4);
    color: var(--gold-color);
}

.oferta-block-content h3 {
    font-size: 2rem;
    margin-bottom: 20px;
    color: var(--primary-color);
}

.oferta-block-content p {
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: 25px;
}

.oferta-list {
    list-style: none;
    padding: 0;
    margin: 0 0 30px 0;
}

.oferta-list li {
    padding: 12px 0;
    border-bottom: 1px solid var(--gray-light);
    color: var(--text-color);
    line-height: 1.6;
}

.oferta-list li:last-child {
    border-bottom: none;
}

.oferta-list li strong {
    color: var(--primary-color);
}

@media (max-width: 968px) {
    .oferta-block {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .oferta-block-restore {
        direction: ltr;
    }

    .oferta-block-image {
        min-height: 250px;
    }

    .oferta-block-content h3 {
        font-size: 1.6rem;
    }
}

@media (max-width: 480px) {
    .oferta-block-image {
        min-height: 220px;
    }
}

/* ==========================================================================
   NOWY UKŁAD - Sekcja Realizacje (galeria + opinie)
   ========================================================================== */
.realizacje {
    background: var(--primary-color);
}

.realizacje .section-title h2,
.realizacje .section-title p {
    color: var(--white);
}

/* Sekcja Instagram - full width */
.instagram-section {
    position: relative;
    margin: 60px calc(50% - 50vw);
    padding: 80px 40px;
    width: 100vw;
    border-radius: 0;
    overflow: hidden;
    background: var(--white);
}

.instagram-section-content {
    position: relative;
}

.instagram-title {
    color: var(--black);
    font-size: 2rem;
    text-align: center;
    margin-bottom: 10px;
}

.instagram-subtitle {
    color: rgba(0, 0, 0, 0.7);
    text-align: center;
    margin-bottom: 40px;
    font-size: 1.1rem;
}

.instagram-inline {
    margin: 50px 0;
}

@media (max-width: 768px) {
    .instagram-section {
        padding: 50px 20px;
        margin: 40px calc(50% - 50vw);
    }

    .instagram-title {
        font-size: 1.5rem;
    }

    .instagram-subtitle {
        font-size: 1rem;
        margin-bottom: 30px;
    }
}

.realizacje-opinie {
    margin-top: 60px;
    padding-top: 50px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.realizacje-opinie h3 {
    color: var(--white);
    font-size: 1.5rem;
    margin-bottom: 30px;
    text-align: center;
}

/* Carousel wrapper */
.opinie-carousel-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 20px;
}

.opinie-carousel {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    flex: 1;
    overflow: hidden;
}

.opinia-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 30px;
    opacity: 0;
    transform: translateY(20px) scale(0.95);
    transition: opacity 0.5s ease, transform 0.5s ease;
    display: none;
}

.opinia-card.active {
    display: block;
    animation: fadeInUp 0.5s ease forwards;
}

.opinia-card.fade-out {
    animation: fadeOutDown 0.4s ease forwards;
}

@keyframes fadeInUp {
    0% {
        opacity: 0;
        transform: translateY(20px) scale(0.95);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes fadeOutDown {
    0% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
    100% {
        opacity: 0;
        transform: translateY(-20px) scale(0.95);
    }
}

/* Navigation buttons */
.opinie-nav {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--white);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    flex-shrink: 0;
}

.opinie-nav:hover {
    background: var(--gold-color);
    border-color: var(--gold-color);
    color: var(--black);
}

.opinie-nav svg {
    width: 24px;
    height: 24px;
}

/* Dots */
.opinie-dots {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 30px;
}

.opinie-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    border: none;
    cursor: pointer;
    transition: var(--transition);
}

.opinie-dot.active {
    background: var(--gold-color);
    transform: scale(1.2);
}

.opinia-rating {
    display: flex;
    gap: 4px;
    margin-bottom: 15px;
}

.opinia-rating svg {
    width: 18px;
    height: 18px;
    fill: var(--gold-color);
}

.opinia-text {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 20px;
    font-style: italic;
}

.opinia-author {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 15px;
}

.opinia-author cite {
    display: block;
    color: var(--white);
    font-weight: 600;
    font-style: normal;
    margin-bottom: 3px;
}

.opinia-author span {
    color: var(--gold-color);
    font-size: 0.85rem;
}

.opinie-google-link {
    display: block;
    text-align: center;
    color: var(--gold-color);
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
}

.opinie-google-link:hover {
    color: var(--white);
}

@media (max-width: 968px) {
    .opinie-carousel {
        grid-template-columns: repeat(2, 1fr);
    }

    .opinia-card:nth-child(n+3) {
        display: none;
    }

    .opinia-card.active:nth-child(n+3) {
        display: block;
    }
}

@media (max-width: 768px) {
    .opinie-carousel {
        grid-template-columns: 1fr;
    }

    .opinie-carousel-wrapper {
        gap: 10px;
    }

    .opinie-nav {
        width: 40px;
        height: 40px;
    }

    .opinie-nav svg {
        width: 20px;
        height: 20px;
    }

    .opinia-card {
        padding: 20px;
    }
}

/* ==========================================================================
   NOWY UKŁAD - Sekcja Kontakt (elegancka)
   ========================================================================== */

/* Sekcja kontaktu - ciemne tło ze zdjęciem (styl jak aktualności) */
.contact.section {
    background: linear-gradient(rgba(0, 0, 0, 0.85), rgba(0, 0, 0, 0.85)),
                url('../../foto-mstudio/wnetrze.jpeg') center/cover no-repeat fixed;
    color: var(--white);
}

.contact.section .section-title h2 {
    color: var(--white);
}

.contact.section .section-title p {
    color: rgba(255, 255, 255, 0.7);
}

/* Siatka kontaktowa - 2 kolumny */
.contact-grid--two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-bottom: 40px;
}

/* Box kontaktowy */
.contact-box {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 10px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.contact-box-item {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 25px 30px;
    border-radius: 50px;
    text-decoration: none;
    transition: var(--transition);
}

a.contact-box-item:hover {
    background: rgba(255, 255, 255, 0.05);
}

/* Telefon - złote tło */
.contact-box-phone {
    background: var(--gold-color);
}

.contact-box-phone:hover {
    background: var(--gold-light) !important;
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(201, 162, 39, 0.3);
}

.contact-box-phone .contact-box-icon {
    background: rgba(0, 0, 0, 0.15);
}

.contact-box-phone .contact-box-icon svg {
    fill: var(--black);
}

.contact-box-phone .contact-box-label {
    color: rgba(0, 0, 0, 0.7);
}

.contact-box-phone .contact-box-value {
    color: var(--black);
}

/* Email - przezroczyste */
.contact-box-email {
    background: rgba(255, 255, 255, 0.03);
}

.contact-box-email:hover {
    background: rgba(255, 255, 255, 0.08) !important;
}

/* Ikony */
.contact-box-icon {
    width: 50px;
    height: 50px;
    background: rgba(201, 162, 39, 0.15);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contact-box-icon svg {
    width: 24px;
    height: 24px;
    fill: var(--gold-color);
}

/* Treść */
.contact-box-content {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.contact-box-label {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.6);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-weight: 500;
}

.contact-box-value {
    font-size: 1.25rem;
    color: var(--white);
    font-weight: 700;
    letter-spacing: 0.5px;
}

/* Box adresowy */
.contact-box-address {
    justify-content: space-between;
}

.contact-box-address .contact-box-item {
    flex: 1;
}

/* Przycisk wskazówki */
.contact-directions-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin: 10px 20px 20px;
    padding: 16px 30px;
}

.contact-directions-btn svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

/* ==========================================================================
   Formularz kontaktowy - ciemny motyw (w sekcji kontakt)
   ========================================================================== */
.contact-form-wrapper {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 40px;
    margin-bottom: 50px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
}

.contact-form-wrapper:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(201, 162, 39, 0.3);
    transform: translateY(-3px);
}

.contact-form-wrapper:focus {
    outline: 2px solid var(--gold-color);
    outline-offset: 3px;
}

/* Nadpisanie domyślnych stylów formularza dla sekcji kontakt */
.contact.section .contact-form-wrapper .contact-form {
    background: transparent !important;
    padding: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
}

.contact-form-title {
    color: var(--white);
    font-size: 1.5rem;
    margin-bottom: 25px;
    text-align: center;
}

/* Przycisk popup formularza w sekcji kontakt */
.contact-form-wrapper .contact-popup-btn {
    display: inline-flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 12px !important;
    width: auto !important;
    max-width: 100%;
    padding: 16px 30px !important;
    font-size: 1rem;
    line-height: 1.4;
    text-align: center;
    cursor: pointer;
    margin: 0 auto;
}

.contact-form-wrapper .contact-popup-btn > svg {
    width: 24px !important;
    height: 24px !important;
    min-width: 24px !important;
    max-width: 24px !important;
    min-height: 24px !important;
    max-height: 24px !important;
    flex-shrink: 0 !important;
    flex-grow: 0 !important;
    display: inline-block !important;
}

.contact.section .contact-form .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.contact.section .contact-form .form-group {
    margin-bottom: 20px;
}

.contact.section .contact-form input,
.contact.section .contact-form textarea {
    width: 100%;
    background: rgba(255, 255, 255, 0.05) !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    border-radius: 12px !important;
    padding: 16px 20px !important;
    color: var(--white) !important;
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition);
}

.contact.section .contact-form input::placeholder,
.contact.section .contact-form textarea::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.contact.section .contact-form input:focus,
.contact.section .contact-form textarea:focus {
    outline: none;
    border-color: var(--gold-color) !important;
    background: rgba(255, 255, 255, 0.08) !important;
    box-shadow: 0 0 0 3px rgba(201, 162, 39, 0.15);
}

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

.contact-submit-btn {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.contact-form-status {
    margin-top: 20px;
    padding: 15px;
    border-radius: 12px;
    text-align: center;
    display: none;
}

.contact-form-status.success {
    display: block;
    background: rgba(39, 174, 96, 0.15);
    border: 1px solid rgba(39, 174, 96, 0.3);
    color: #27ae60;
}

.contact-form-status.error {
    display: block;
    background: rgba(231, 76, 60, 0.15);
    border: 1px solid rgba(231, 76, 60, 0.3);
    color: #e74c3c;
}

@media (max-width: 768px) {
    .contact-form-wrapper {
        padding: 25px 20px;
        margin-bottom: 40px;
    }

    .contact.section .contact-form .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .contact-form-title {
        font-size: 1.25rem;
    }
}

/* Mapa */
.contact-map-wrapper {
    border-radius: 16px;
    overflow: hidden;
    margin-bottom: 30px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.contact-map-wrapper iframe {
    display: block;
}

/* Obsługiwane obszary */
.contact-areas {
    text-align: center;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.95rem;
    line-height: 1.6;
}

.contact-areas strong {
    color: var(--gold-color);
    margin-right: 8px;
}

/* Responsywność kontaktu */
@media (max-width: 768px) {
    .contact.section {
        overflow-x: hidden;
        width: 100%;
        max-width: 100vw;
    }

    .contact.section .container {
        max-width: 100%;
        width: 100%;
        overflow: hidden;
        padding-left: 15px;
        padding-right: 15px;
        box-sizing: border-box;
    }

    .contact-grid--two-col {
        grid-template-columns: 1fr;
        gap: 20px;
        max-width: 100%;
    }

    .contact-box {
        max-width: 100%;
        width: 100%;
        overflow: hidden;
        padding: 8px;
        box-sizing: border-box;
    }

    .contact-box-item {
        padding: 15px;
        gap: 12px;
        flex-wrap: nowrap;
        max-width: 100%;
        width: 100%;
        border-radius: 15px;
        box-sizing: border-box;
        overflow: hidden;
    }

    .contact-box-phone,
    .contact-box-email {
        width: 100%;
        max-width: 100%;
    }

    .contact-box-content {
        min-width: 0;
        flex: 1;
    }

    .contact-box-value {
        font-size: 0.95rem;
        word-break: break-word;
        overflow-wrap: break-word;
    }

    .contact-box-icon {
        width: 40px;
        height: 40px;
    }

    .contact-box-icon svg {
        width: 20px;
        height: 20px;
    }

    .contact-directions-btn {
        margin: 5px 0 10px;
        padding: 12px 20px;
        font-size: 0.85rem;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }

    .contact-directions-btn svg {
        width: 16px;
        height: 16px;
    }

    .contact-form-wrapper {
        padding: 25px 20px;
        margin-bottom: 30px;
    }

    .contact-form .form-row {
        flex-direction: column;
    }
}

/* ==========================================================================
   Sekcja Aktualności (Blog)
   ========================================================================== */
.aktualnosci {
    background: linear-gradient(rgba(0, 0, 0, 0.85), rgba(0, 0, 0, 0.85)),
                url('../../foto-mstudio/wnetrze.jpeg') center/cover no-repeat fixed;
    position: relative;
}

.aktualnosci .section-title h2,
.aktualnosci .section-title p {
    color: var(--white);
}

.aktualnosci-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 40px;
}

.aktualnosci-card {
    background: var(--white);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.aktualnosci-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
}

.aktualnosci-card-image {
    display: block;
    position: relative;
    height: 220px;
    overflow: hidden;
}

.aktualnosci-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.aktualnosci-card:hover .aktualnosci-card-image img {
    transform: scale(1.08);
}

.aktualnosci-card-content {
    padding: 25px;
}

.aktualnosci-card-meta {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
    font-size: 0.85rem;
    color: var(--text-light);
}

.aktualnosci-card-category {
    background: rgba(201, 162, 39, 0.1);
    color: var(--gold-color);
    padding: 4px 12px;
    border-radius: 20px;
    font-weight: 500;
}

.aktualnosci-card-title {
    font-size: 1.25rem;
    margin-bottom: 12px;
    line-height: 1.4;
}

.aktualnosci-card-title a {
    color: var(--primary-color);
    transition: var(--transition);
}

.aktualnosci-card-title a:hover {
    color: var(--gold-color);
}

.aktualnosci-card-excerpt {
    color: var(--text-light);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 15px;
}

.aktualnosci-card-link {
    color: var(--gold-color);
    font-weight: 600;
    font-size: 0.9rem;
    transition: var(--transition);
}

.aktualnosci-card-link:hover {
    color: var(--gold-dark);
}

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

.aktualnosci-empty {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-light);
    font-size: 1.1rem;
}

@media (max-width: 968px) {
    .aktualnosci-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

@media (max-width: 600px) {
    .aktualnosci-grid {
        grid-template-columns: 1fr;
    }

    .aktualnosci-card-image {
        height: 180px;
    }

    .aktualnosci-card-content {
        padding: 20px;
    }

    .aktualnosci-card-title {
        font-size: 1.1rem;
    }
}

/* ==========================================================================
   Stopka - 3 kolumny
   ========================================================================== */
.footer-grid--three-col {
    display: grid;
    grid-template-columns: 1.5fr 0.75fr 0.75fr;
    gap: 80px;
}

.footer-menu-section,
.footer-services-section {
    text-align: right;
}

.footer-menu-section .footer-title::after,
.footer-services-section .footer-title::after {
    left: auto;
    right: 0;
}

/* Kolumna 1 - dane firmy */
.footer-about .footer-desc {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 20px;
    line-height: 1.6;
}

.footer-company-data {
    margin-bottom: 25px;
}

.footer-company-data p {
    display: flex;
    align-items: center;
    gap: 10px;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 10px;
    font-size: 0.95rem;
}

.footer-company-data p svg {
    width: 18px;
    height: 18px;
    fill: var(--gold-color);
    flex-shrink: 0;
}

.footer-company-data p a {
    color: rgba(255, 255, 255, 0.7);
    transition: var(--transition);
}

.footer-company-data p a:hover {
    color: var(--gold-color);
}

.footer-company-data .footer-nip {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.85rem;
    padding-left: 0;
}

/* Social links w stopce */
.footer-about .social-links {
    margin-top: 20px;
}

@media (max-width: 968px) {
    .footer-grid--three-col {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
    }

    .footer-about {
        grid-column: span 2;
    }

    .footer-menu-section,
    .footer-services-section {
        text-align: left;
    }

    .footer-menu-section .footer-title::after,
    .footer-services-section .footer-title::after {
        left: 0;
        right: auto;
    }
}

@media (max-width: 600px) {
    .footer-grid--three-col {
        grid-template-columns: 1fr;
        gap: 30px;
        text-align: center;
    }

    .footer-about {
        grid-column: span 1;
    }

    .footer-company-data p {
        justify-content: center;
    }

    .footer-company-data .footer-nip {
        padding-left: 0;
    }

    .footer-about .social-links {
        justify-content: center;
    }

    .footer-menu-section,
    .footer-services-section {
        text-align: center;
    }

    .footer-menu-section .footer-title::after,
    .footer-services-section .footer-title::after {
        left: 50%;
        transform: translateX(-50%);
    }
}

/* ==========================================================================
   Blog Archive Page
   ========================================================================== */
.blog-archive {
    background: var(--gray-light);
    padding: 0;
}

/* Hero sekcja z tłem */
.blog-archive-hero {
    position: relative;
    padding: 180px 0 80px;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.blog-archive-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0.7) 0%,
        rgba(0, 0, 0, 0.8) 100%
    );
}

.blog-archive-hero .container {
    position: relative;
    z-index: 2;
}

.blog-archive-hero .section-header {
    text-align: center;
}

.blog-archive-hero .section-label {
    color: var(--gold-color);
}

.blog-archive-title {
    font-size: 3rem;
    color: var(--white);
    margin-bottom: 15px;
}

.blog-archive-hero .section-desc {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.1rem;
}

/* Sekcja z wpisami */
.blog-archive-content {
    padding: 60px 0 80px;
    background: var(--gray-light);
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 50px;
}

.blog-card {
    background: var(--white);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: var(--transition);
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.blog-card-image {
    display: block;
    height: 200px;
    overflow: hidden;
}

.blog-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.blog-card:hover .blog-card-image img {
    transform: scale(1.05);
}

.blog-card-content {
    padding: 25px;
}

.blog-card-meta {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 12px;
    font-size: 0.85rem;
    color: var(--text-light);
}

.blog-card-category {
    background: rgba(201, 162, 39, 0.1);
    color: var(--gold-color);
    padding: 4px 12px;
    border-radius: 20px;
    font-weight: 600;
}

.blog-card-title {
    font-size: 1.25rem;
    margin-bottom: 12px;
    line-height: 1.4;
}

.blog-card-title a {
    color: var(--primary-color);
    transition: var(--transition);
}

.blog-card-title a:hover {
    color: var(--gold-color);
}

.blog-card-excerpt {
    color: var(--text-light);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 15px;
}

.blog-card-link {
    color: var(--gold-color);
    font-weight: 600;
    font-size: 0.9rem;
    transition: var(--transition);
}

.blog-card-link:hover {
    color: var(--gold-dark);
}

/* Blog Pagination */
.blog-pagination {
    text-align: center;
}

.blog-pagination .nav-links {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

.blog-pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 45px;
    height: 45px;
    padding: 0 15px;
    background: var(--gray-light);
    color: var(--text-color);
    border-radius: 10px;
    font-weight: 600;
    transition: var(--transition);
}

.blog-pagination .page-numbers:hover,
.blog-pagination .page-numbers.current {
    background: var(--gold-color);
    color: var(--black);
}

.blog-pagination .prev,
.blog-pagination .next {
    padding: 0 20px;
}

.blog-empty {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-light);
    font-size: 1.1rem;
}

@media (max-width: 968px) {
    .blog-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .blog-archive-hero {
        padding: 140px 0 60px;
        background-attachment: scroll;
    }

    .blog-archive-title {
        font-size: 2.2rem;
    }

    .blog-archive-content {
        padding: 40px 0 60px;
    }
}

@media (max-width: 600px) {
    .blog-archive-hero {
        padding: 120px 0 50px;
    }

    .blog-archive-title {
        font-size: 1.8rem;
    }

    .blog-grid {
        grid-template-columns: 1fr;
    }

    .blog-card-image {
        height: 180px;
    }

    .blog-card-content {
        padding: 20px;
    }

    .blog-card-title {
        font-size: 1.1rem;
    }

    .blog-pagination .page-numbers {
        min-width: 40px;
        height: 40px;
        font-size: 0.9rem;
    }
}

/* ==========================================================================
   WPForms Popup Modal
   ========================================================================== */

/* Trigger button section */
.contact-popup-trigger {
    margin-top: 30px;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
}

/* ==========================================================================
   Lazy Loading Gallery Images
   ========================================================================== */

/* Placeholder state - before images load */
.lazy-picture {
    display: block;
    background: linear-gradient(135deg, #1a1a1a 0%, #2a2a2a 50%, #1a1a1a 100%);
    background-size: 200% 200%;
    animation: lazyShimmer 1.5s ease infinite;
}

.lazy-picture img.lazy-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 0.4s ease;
}

@keyframes lazyShimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* Loaded state */
.lazy-loaded {
    opacity: 1 !important;
}

.lazy-picture:not(.lazy-picture) {
    animation: none;
    background: none;
}

.contact-popup-text {
    margin-bottom: 15px;
    color: var(--text-light);
    font-size: 0.95rem;
}

.contact-popup-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    flex-direction: row !important;
}

.contact-popup-btn svg {
    width: 24px !important;
    height: 24px !important;
    min-width: 24px;
    max-width: 24px;
    flex-shrink: 0;
    fill: currentColor;
}

/* Popup overlay */
.wpforms-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    padding: 20px;
    box-sizing: border-box;
}

.wpforms-popup-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Popup modal box */
.wpforms-popup-modal {
    background: var(--bg-white);
    border-radius: 16px;
    width: 100%;
    max-width: 600px;
    max-height: 90vh;
    overflow: hidden;
    transform: scale(0.9) translateY(20px);
    transition: transform 0.3s ease;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.wpforms-popup-overlay.active .wpforms-popup-modal {
    transform: scale(1) translateY(0);
}

/* Popup header */
.wpforms-popup-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 25px;
    background: var(--primary);
    color: var(--text-white);
}

.wpforms-popup-header h3 {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 600;
}

/* Close button */
.wpforms-popup-close {
    background: transparent;
    border: none;
    color: var(--text-white);
    font-size: 2rem;
    line-height: 1;
    cursor: pointer;
    padding: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background 0.2s ease;
}

.wpforms-popup-close:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* Popup content */
.wpforms-popup-content {
    padding: 30px 25px;
    max-height: calc(90vh - 80px);
    overflow-y: auto;
}

/* Style WPForms inside popup */
.wpforms-popup-content .wpforms-container {
    margin: 0;
}

.wpforms-popup-content .wpforms-form .wpforms-field {
    margin-bottom: 20px;
}

.wpforms-popup-content .wpforms-form input[type="text"],
.wpforms-popup-content .wpforms-form input[type="email"],
.wpforms-popup-content .wpforms-form input[type="tel"],
.wpforms-popup-content .wpforms-form textarea,
.wpforms-popup-content .wpforms-form select {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.wpforms-popup-content .wpforms-form input:focus,
.wpforms-popup-content .wpforms-form textarea:focus,
.wpforms-popup-content .wpforms-form select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(var(--primary-rgb), 0.1);
    outline: none;
}

.wpforms-popup-content .wpforms-form .wpforms-submit-container {
    margin-top: 20px;
}

.wpforms-popup-content .wpforms-form button[type="submit"] {
    width: 100%;
    padding: 14px 25px;
    background: var(--primary);
    color: var(--text-white);
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease;
}

.wpforms-popup-content .wpforms-form button[type="submit"]:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

/* Mobile responsive */
@media (max-width: 768px) {
    .wpforms-popup-overlay {
        padding: 15px;
    }

    .wpforms-popup-modal {
        max-height: 95vh;
        border-radius: 12px;
    }

    .wpforms-popup-header {
        padding: 15px 20px;
    }

    .wpforms-popup-header h3 {
        font-size: 1.1rem;
    }

    .wpforms-popup-content {
        padding: 20px;
        max-height: calc(95vh - 60px);
    }

    .contact-popup-btn {
        width: 100%;
        justify-content: center;
        padding: 14px 20px;
        font-size: 0.95rem;
    }
}
