/*
Theme Name: Astra Child - Dobry Ciesla
Theme URI: https://dobryciesla.pl
Description: Motyw dziecko dla Astra z dedykowanymi szablonami dla Ciesielstwo Paweł Magiera
Author: Paweł Magiera
Author URI: https://dobryciesla.pl
Template: astra
Version: 1.0.0
Text Domain: astra-child
*/

/* Import stylów z motywu rodzica */
@import url('../astra/style.css');

/* Import czcionki Poppins */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600;700&display=swap');

/* Globalne style dla podstron */
body {
    font-family: 'Poppins', sans-serif;
    color: #2c3e50;
    line-height: 1.6;
}

/* Zmienne kolorystyczne z landing page */
:root {
    --color-red: #D32F2F;
    --color-yellow: #FFD93D;
    --color-dark: #2c3e50;
    --color-gray: #5a6c7d;
}

/* Nagłówki */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    color: var(--color-dark);
}

/* Linki */
a {
    color: var(--color-red);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: #a62626;
}

/* Breadcrumbs */
.breadcrumbs {
    padding: 15px 0;
    font-size: 14px;
    color: var(--color-gray);
}

.breadcrumbs a {
    color: var(--color-gray);
}

.breadcrumbs a:hover {
    color: var(--color-red);
}

/* Container dla podstron */
.subpage-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 20px;
}

/* Treść podstron - lepsze odstępy */
.subpage-container .entry-content p {
    margin-bottom: 25px;
    line-height: 1.8;
}

.subpage-container .entry-content h2 {
    margin-top: 50px;
    margin-bottom: 25px;
}

.subpage-container .entry-content h3 {
    margin-top: 40px;
    margin-bottom: 20px;
}

.subpage-container .entry-content ul,
.subpage-container .entry-content ol {
    margin-bottom: 30px;
    line-height: 2;
}

.subpage-container .entry-content li {
    margin-bottom: 10px;
}

/* Dodatkowe odstępy dla contentu z inline stylami */
.subpage-container .entry-content > div > p {
    margin-bottom: 30px !important;
}

.subpage-container .entry-content > div > h2 {
    margin-top: 60px !important;
    margin-bottom: 30px !important;
}

.subpage-container .entry-content > div > h3 {
    margin-top: 45px !important;
    margin-bottom: 25px !important;
}

.subpage-container .entry-content > div > ul {
    margin-bottom: 35px !important;
}

.subpage-container .entry-content > div > ul li {
    margin-bottom: 12px !important;
}

/* Hero sekcja dla podstron */
.subpage-hero {
    background: linear-gradient(135deg, var(--color-dark) 0%, #34495e 100%);
    color: white;
    padding: 80px 20px;
    text-align: center;
    margin-bottom: 60px;
    position: relative;
    overflow: hidden;
}

.subpage-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('/wp-content/uploads/2026/03/beautiful-wooden-modern-house.webp') center/cover;
    opacity: 0.1;
    z-index: 0;
}

.subpage-hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    margin: 0 auto;
}

.subpage-hero h1 {
    font-size: 48px;
    color: white;
    margin-bottom: 20px;
    font-weight: 700;
}

.subpage-hero p {
    font-size: 20px;
    opacity: 0.9;
    line-height: 1.6;
}

/* Sekcje treści */
.content-section {
    margin: 60px 0;
}

.content-section h2 {
    font-size: 36px;
    color: var(--color-red);
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 15px;
}

.content-section h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 80px;
    height: 4px;
    background: var(--color-yellow);
    border-radius: 2px;
}

.content-section h3 {
    font-size: 24px;
    color: var(--color-dark);
    margin: 30px 0 15px;
}

/* Karty/boxy */
.info-box {
    background: #f8f9fa;
    padding: 30px;
    border-radius: 15px;
    border-left: 5px solid var(--color-red);
    margin: 30px 0;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
}

.info-box h3 {
    color: var(--color-red);
    margin-top: 0;
}

/* Grid dla kart */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin: 40px 0;
}

.card {
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-top: 4px solid var(--color-red);
}

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

.card h3 {
    color: var(--color-red);
    font-size: 22px;
    margin-bottom: 15px;
}

/* Przyciski CTA */
.cta-button {
    display: inline-flex;
    align-items: center;
    gap: 15px;
    padding: 18px 40px;
    background: var(--color-yellow);
    color: var(--color-dark);
    text-decoration: none;
    border: 2px solid var(--color-yellow);
    border-radius: 50px;
    font-size: 18px;
    font-weight: 600;
    transition: all 0.4s ease;
    letter-spacing: 0.5px;
}

.cta-button:hover {
    background: var(--color-red);
    color: white;
    border-color: var(--color-red);
    transform: translateX(5px);
}

.cta-button-red {
    background: var(--color-red);
    color: white;
    border-color: var(--color-red);
}

.cta-button-red:hover {
    background: #a62626;
    border-color: #a62626;
}

/* CTA sekcja */
.cta-section {
    background: linear-gradient(135deg, var(--color-red) 0%, #a62626 100%);
    color: white;
    padding: 60px 40px;
    border-radius: 20px;
    text-align: center;
    margin: 80px 0;
    box-shadow: 0 20px 50px rgba(211, 47, 47, 0.3);
}

.cta-section h2, .cta-section h3 {
    color: white;
    margin-bottom: 20px;
}

.cta-section p {
    font-size: 20px;
    opacity: 0.95;
    margin-bottom: 30px;
}

/* Lista z ikonkami */
.icon-list {
    list-style: none;
    padding: 0;
}

.icon-list li {
    padding: 15px 0;
    padding-left: 40px;
    position: relative;
    font-size: 18px;
    line-height: 1.8;
}

.icon-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    top: 15px;
    width: 28px;
    height: 28px;
    background: var(--color-red);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 16px;
}

/* Statystyki */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    text-align: center;
    padding: 40px 0;
}

.stat-item {
    padding: 20px;
}

.stat-number {
    font-size: 52px;
    font-weight: 700;
    color: var(--color-red);
    margin-bottom: 10px;
    display: block;
}

.stat-label {
    font-size: 18px;
    color: var(--color-gray);
}

/* Tabela cennikowa */
.price-table {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    margin: 40px 0;
}

.price-table table {
    width: 100%;
    border-collapse: collapse;
}

.price-table th {
    background: var(--color-red);
    color: white;
    padding: 20px;
    text-align: left;
    font-weight: 600;
}

.price-table td {
    padding: 18px 20px;
    border-bottom: 1px solid #f0f0f0;
}

.price-table tr:hover {
    background: #f8f9fa;
}

/* Alert boxy */
.alert {
    padding: 20px 25px;
    border-radius: 10px;
    margin: 25px 0;
    border-left: 5px solid;
}

.alert-warning {
    background: #fff3cd;
    border-color: #ffc107;
    color: #856404;
}

.alert-info {
    background: #d1ecf1;
    border-color: #17a2b8;
    color: #0c5460;
}

.alert-success {
    background: #d4edda;
    border-color: #28a745;
    color: #155724;
}

/* Contact Section - DOKŁADNA KOPIA Z HOME */
.contact-section {
    background: #2c3e50;
    padding: 100px 20px;
    position: relative;
    overflow: hidden;
    min-height: 700px;
}

.contact-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        linear-gradient(90deg, rgba(255,217,61,0.03) 1px, transparent 1px),
        linear-gradient(rgba(255,217,61,0.03) 1px, transparent 1px);
    background-size: 50px 50px;
}

.contact-container {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.contact-header {
    text-align: center;
    margin-bottom: 60px;
}

.contact-header h2 {
    font-size: 42px;
    color: white;
    margin-bottom: 20px;
    font-weight: 700;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: stretch;
}

.contact-form-wrapper {
    background: rgba(255,255,255,0.95);
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.2);
    display: flex;
    flex-direction: column;
}

.contact-badge {
    background: var(--color-red);
    color: white;
    padding: 8px 20px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    display: inline-block;
    margin: 0 auto 30px 0;
    animation: pulse 2s infinite;
    align-self: flex-start;
}

.contact-form-wrapper h3 {
    font-size: 24px;
    color: #2c3e50;
    margin-top: 20px;
    margin-bottom: 30px;
    text-align: left;
}

.contact-form {
    margin-top: 0;
}

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

.form-group label {
    display: block;
    font-size: 15px;
    color: #2c3e50;
    margin-bottom: 10px;
    font-weight: 600;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 16px;
    transition: all 0.3s ease;
    font-family: inherit;
    box-sizing: border-box;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--color-red);
    box-shadow: 0 0 0 3px rgba(194,42,57,0.1);
}

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

.submit-button {
    width: 100%;
    padding: 16px;
    background: var(--color-red);
    color: white;
    border: none;
    border-radius: 50px;
    font-size: 17px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    overflow: hidden;
    margin-top: 10px;
    margin-bottom: 20px;
}

.submit-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.6s ease;
}

.submit-button:hover::before {
    left: 100%;
}

.submit-button:hover {
    transform: translateY(-3px);
}

.contact-info-wrapper {
    display: flex;
}

.contact-info {
    background: rgba(255,255,255,0.95);
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.2);
    flex: 1;
    display: flex;
    flex-direction: column;
}

.contact-info h3 {
    font-size: 24px;
    color: #2c3e50;
    margin-bottom: 30px;
    text-align: left;
}

.company-name {
    font-size: 22px;
    color: #2c3e50;
    font-weight: 700;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid #e0e0e0;
    text-align: left;
    height: 62px;
    display: flex;
    align-items: center;
}

.contact-item {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    padding: 18px;
    background: rgba(194,42,57,0.08);
    border-radius: 15px;
    transition: transform 0.3s ease;
}

.contact-item:hover {
    transform: translateX(10px);
}

.contact-icon {
    width: 50px;
    height: 50px;
    background: var(--color-red);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    margin-right: 20px;
    flex-shrink: 0;
}

.contact-details h4 {
    font-size: 16px;
    color: #2c3e50;
    margin: 0 0 5px 0;
    font-weight: 600;
}

.contact-details p {
    margin: 0;
    font-size: 15px;
    color: #5a6c7d;
    line-height: 1.5;
}

.contact-details a {
    color: var(--color-red);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.contact-details a:hover {
    color: #a62626;
}

.contact-map {
    margin-top: 20px;
    padding: 0;
    background: transparent;
}

.contact-map:hover {
    transform: none;
}

@keyframes pulse {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(211, 47, 47, 0.7);
    }
    50% {
        box-shadow: 0 0 0 10px rgba(211, 47, 47, 0);
    }
}

/* Czarne linki w menu głównym - override Astra inline + current-menu-item */
body .ast-builder-menu-1 .main-header-menu > li.menu-item > a.menu-link,
body .ast-builder-menu-1 .main-header-menu > li.menu-item.current-menu-item > a.menu-link,
body .ast-builder-menu-1 .main-header-menu > li.menu-item.current-menu-ancestor > a.menu-link,
body .ast-builder-menu-1 .main-header-menu > li.menu-item.current_page_parent > a.menu-link,
body #ast-hf-menu-1 > li.menu-item > a.menu-link,
body #ast-hf-mobile-menu > li.menu-item > a.menu-link {
    color: #1a1a1a !important;
}

body .ast-builder-menu-1 .main-header-menu > li.menu-item:hover > a.menu-link {
    color: #D32F2F !important;
}

/* Menu CTA - czerwony przycisk "Umów bezpłatną wycenę" */
body .main-header-menu > li.menu-cta > a.menu-link,
body #ast-hf-menu-1 > li.menu-cta > a.menu-link,
body #ast-hf-mobile-menu > li.menu-cta > a.menu-link {
    background: #D32F2F !important;
    color: #ffffff !important;
    border-radius: 50px !important;
    padding: 10px 24px !important;
    font-weight: 600 !important;
    font-size: 15px !important;
    line-height: 1.2 !important;
    margin-left: 12px !important;
    border: 2px solid #D32F2F !important;
    display: inline-flex !important;
    align-items: center !important;
    height: auto !important;
    white-space: nowrap !important;
    transition: all 0.3s ease !important;
}

body .main-header-menu > li.menu-cta > a.menu-link:hover,
body #ast-hf-menu-1 > li.menu-cta > a.menu-link:hover,
body #ast-hf-mobile-menu > li.menu-cta > a.menu-link:hover {
    background: #a62626 !important;
    border-color: #a62626 !important;
    color: #ffffff !important;
}

/* Wyrównaj <li> CTA w pasku desktopowym */
body .ast-desktop .main-header-menu > li.menu-cta {
    display: flex !important;
    align-items: center !important;
    line-height: normal !important;
}

/* Usuń podświetlenie current-menu-item na mobile, ale zachowaj :hover */
@media (max-width: 921px) {
    body .ast-builder-menu-mobile .main-navigation .menu-item.current-menu-item:not(:hover):not(.menu-cta) > .menu-link,
    body .ast-builder-menu-mobile .main-navigation .menu-item.current-menu-ancestor:not(:hover):not(.menu-cta) > .menu-link,
    body #ast-hf-mobile-menu > li.menu-item.current-menu-item:not(:hover):not(.menu-cta) > a.menu-link,
    body #ast-hf-mobile-menu > li.menu-item.current-menu-ancestor:not(:hover):not(.menu-cta) > a.menu-link {
        background: transparent !important;
    }
}

/* Mobile CTA - rounded button wewnątrz drawera */
@media (max-width: 921px) {
    body #ast-hf-mobile-menu > li.menu-cta,
    body .ast-mobile-popup-drawer #ast-hf-mobile-menu > li.menu-cta {
        padding: 20px !important;
        background: transparent !important;
        border: none !important;
        margin: 0 !important;
        box-sizing: border-box !important;
        width: 100% !important;
        max-width: 100% !important;
        overflow: hidden !important;
    }

    body #ast-hf-mobile-menu > li.menu-cta > a.menu-link,
    body .ast-mobile-popup-drawer #ast-hf-mobile-menu > li.menu-cta > a.menu-link {
        display: block !important;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        margin: 0 !important;
        padding: 14px 16px !important;
        border-radius: 50px !important;
        background: #D32F2F !important;
        border: 2px solid #D32F2F !important;
        color: #ffffff !important;
        font-size: 15px !important;
        font-weight: 600 !important;
        line-height: 1.3 !important;
        text-align: center !important;
        box-shadow: 0 4px 12px rgba(211,47,47,0.3) !important;
        white-space: normal !important;
    }

    body #ast-hf-mobile-menu > li.menu-cta > a.menu-link:hover,
    body .ast-mobile-popup-drawer #ast-hf-mobile-menu > li.menu-cta > a.menu-link:hover {
        background: #a62626 !important;
        border-color: #a62626 !important;
        color: #ffffff !important;
    }
}

/* Wymuszenie białego tekstu CTA - override current-menu-item */
html body .ast-builder-menu-1 .main-header-menu li.menu-cta > a.menu-link,
html body .ast-builder-menu-1 .main-header-menu li.menu-cta.current-menu-item > a.menu-link,
html body .ast-builder-menu-1 .main-header-menu li.menu-cta.current-menu-ancestor > a.menu-link,
html body .ast-builder-menu-1 .main-header-menu li.menu-cta > a.menu-link:hover,
html body .ast-builder-menu-1 .main-header-menu li.menu-cta > a.menu-link:focus,
html body #ast-hf-menu-1 li.menu-cta > a.menu-link,
html body #ast-hf-mobile-menu li.menu-cta > a.menu-link {
    color: #ffffff !important;
}

/* Responsive */
@media (max-width: 768px) {
    .contact-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .contact-header h2 {
        font-size: 32px;
    }

    .contact-section {
        padding: 60px 20px;
    }

    .subpage-hero h1 {
        font-size: 32px;
    }

    .subpage-hero p {
        font-size: 16px;
    }

    .content-section h2 {
        font-size: 28px;
    }

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

    .subpage-container {
        padding: 40px 15px;
    }

    .cta-section {
        padding: 40px 25px;
        margin: 40px -15px;
        border-radius: 0;
    }
}
