/*
Theme Name: Treningi i Masaże - Justyna Czudek Custom
Theme URI: http://treningimasaze.pl
Author: Custom Theme
Author URI: http://treningimasaze.pl
Description: Custom theme dla Justyny Czudek - treningi i masaże w Krakowie
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: treningi-masaze
*/

/* ========================================
   CSS VARIABLES & COLORS - Paleta z tabeli
   ======================================== */
:root {
    /* Primary - niebieski #1b94e7 */
    --primary-color: #1b94e7;
    --primary-dark: #1475b8;
    --primary-light: #4fb3f7;
    
    /* Secondary - brązowy #655237 */
    --secondary-color: #655237;
    --secondary-dark: #4d3e2a;
    --secondary-light: #8a7560;
    
    /* Accent - złoty/beżowy #d6be8f */
    --accent-color: #d6be8f;
    --accent-dark: #bfa872;
    
    /* Dodatkowe z tabeli */
    --turkus: #4fbfb8;
    --cyjan: #00fff0;
    --niebieski-jasny: #67bcde;
    --zolty: #F1D608;
    
    /* Tekst i tło */
    --text-dark: #2D2D2D;
    --text-light: #5a5a5a;
    --bg-light: #f8f9fa;
    --bg-cream: #faf8f5;
    --white: #ffffff;
    
    /* Efekty */
    --shadow: 0 2px 10px rgba(0,0,0,0.1);
    --shadow-hover: 0 5px 20px rgba(0,0,0,0.15);
    --radius: 8px;
    --transition: all 0.3s ease;
}

/* ========================================
   RESET & BASE
======================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background: var(--white);
}

img {
    max-width: 100%;
    height: auto;
}

a {
    text-decoration: none;
    color: var(--secondary-color);
    transition: color 0.3s ease;
}

a:hover {
    color: var(--primary-color);
}

/* ========================================
   CONTAINER
======================================== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ========================================
   HEADER & CONTACT BAR
======================================== */
.top-bar {
    background: #67bcde;
    color: #000000;
    padding: 12px 0;
    font-size: 13px;
    font-weight: 500;
    border-bottom: 1px solid #e0e0e0;
}

.top-bar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.top-bar-info {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    align-items: center;
}

.top-bar-info span {
    display: flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
}

.top-bar-location {
    font-weight: 600;
    background: #ffffff;
    color: #000000;
    padding: 4px 12px;
    border-radius: 20px;
}

.top-bar a {
    color: #000000;
}

/* ========================================
   MAIN HEADER
======================================== */
.site-header {
    background: var(--white);
    box-shadow: var(--shadow);
    position: relative;
    top: 0;
    z-index: 1000;
}

.site-header .container {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px 0 0;
}

.site-branding {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 8px;
    padding-bottom: 15px;
}

.site-branding.has-logo {
    flex-direction: row;
    align-items: center;
    gap: 15px;
}

.site-logo img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: var(--shadow);
}

.site-info {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.site-title {
    font-size: 28px;
    font-weight: 700;
    color: var(--secondary-color);
    line-height: 1.3;
}

.site-title a {
    color: var(--secondary-color);
}

.site-description {
    font-size: 14px;
    color: var(--text-light);
    line-height: 1.5;
    margin: 0;
    max-width: 600px;
}

/* ========================================
   SKIP LINK - dostępność
======================================== */
.skip-link {
    position: absolute;
    top: -100px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--secondary-color);
    color: white;
    padding: 12px 24px;
    z-index: 100000;
    font-weight: 600;
    border-radius: 0 0 var(--radius) var(--radius);
    transition: top 0.3s;
}

.skip-link:focus {
    top: 0;
    outline: 3px solid var(--accent-color);
    outline-offset: 2px;
}

/* ========================================
   NAVIGATION - WCAG 2.1 Compliant
======================================== */
.main-navigation {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    padding: 12px 0 15px;
    border-top: 1px solid #e0e0e0;
    width: 100%;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 30px;
    align-items: center;
}

.nav-menu a {
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 500;
    padding: 8px 0;
    position: relative;
    font-size: 15px;
    color: var(--text-dark);
    text-decoration: none;
    white-space: nowrap;
    transition: color 0.3s ease;
}

/* Underline animation */
.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 3px;
    background: var(--primary-color);
    transition: width 0.3s ease;
    border-radius: 2px;
}

.nav-menu a:hover::after,
.nav-menu a:focus::after {
    width: 100%;
}

/* Active page indicator */
.nav-menu .is-active a {
    color: var(--primary-color);
    font-weight: 600;
}

.nav-menu .is-active a::after {
    width: 100%;
    background: var(--primary-color);
}

/* Focus states dla dostępności */
.nav-menu a:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 4px;
    border-radius: 4px;
}

/* ARIA current page */
.nav-menu a[aria-current="page"] {
    color: var(--primary-color);
    font-weight: 600;
}

.nav-menu a[aria-current="page"]::after {
    width: 100%;
}

/* Submenu styles */
.nav-menu .sub-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    box-shadow: var(--shadow);
    border-radius: var(--radius);
    padding: 10px 0;
    min-width: 200px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1000;
}

.nav-menu li:hover .sub-menu,
.nav-menu li:focus-within .sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.nav-menu .sub-menu li {
    display: block;
}

.nav-menu .sub-menu a {
    padding: 10px 20px;
    display: block;
    font-size: 14px;
}

@media (max-width: 1024px) {
    .nav-menu {
        gap: 20px;
    }
    
    .nav-menu a {
        font-size: 14px;
    }
}

/* ========================================
   MOBILE MENU - Modern Hamburger
======================================== */
.menu-toggle {
    display: none;
    align-items: center;
    gap: 8px;
    background: var(--primary-color);
    border: none;
    padding: 10px 16px;
    border-radius: var(--radius);
    cursor: pointer;
    color: white;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
}

.menu-toggle:hover {
    background: var(--primary-dark);
}

.menu-toggle:focus {
    outline: 3px solid var(--accent-color);
    outline-offset: 2px;
}

.menu-icon {
    display: flex;
    flex-direction: column;
    gap: 4px;
    width: 20px;
}

.menu-icon span {
    display: block;
    width: 100%;
    height: 2px;
    background: white;
    transition: all 0.3s ease;
    border-radius: 2px;
}

/* Animacja hamburgera do X */
.menu-toggle[aria-expanded="true"] .menu-icon span:nth-child(1) {
    transform: rotate(45deg) translate(4px, 4px);
}

.menu-toggle[aria-expanded="true"] .menu-icon span:nth-child(2) {
    opacity: 0;
}

.menu-toggle[aria-expanded="true"] .menu-icon span:nth-child(3) {
    transform: rotate(-45deg) translate(4px, -4px);
}

@media (max-width: 900px) {
    .menu-toggle {
        display: block;
    }
    
    .main-navigation ul {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--white);
        flex-direction: column;
        padding: 20px;
        box-shadow: var(--shadow);
    }
    
    .main-navigation ul.active {
        display: flex;
    }
}

/* ========================================
   BANNER / HERO SECTION
======================================== */
.hero-section {
    position: relative;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-size: cover;
    background-position: center;
    z-index: 1;
}

.hero-bg::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.4);
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    padding: 40px 20px;
}

.hero-title {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.hero-subtitle {
    font-size: 20px;
    margin-bottom: 30px;
    opacity: 0.95;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ========================================
   BUTTONS
======================================== */
.btn {
    display: inline-block;
    padding: 15px 30px;
    border-radius: var(--border-radius);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: var(--primary-color);
    color: var(--white);
}

.btn-primary:hover {
    background: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(123,174,127,0.4);
}

.btn-secondary {
    background: transparent;
    color: var(--white);
    border: 2px solid var(--white);
}

.btn-secondary:hover {
    background: var(--white);
    color: var(--secondary-color);
}

/* ========================================
   SECTIONS
======================================== */
.section {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    font-size: 36px;
    margin-bottom: 15px;
    color: var(--secondary-color);
}

.section-subtitle {
    text-align: center;
    font-size: 18px;
    color: #666;
    margin-bottom: 50px;
}

.section-alt {
    background: var(--light-bg);
}

/* ========================================
   ABOUT SECTION
======================================== */
.about-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-image img {
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

.about-content h2 {
    font-size: 32px;
    margin-bottom: 20px;
    color: var(--secondary-color);
}

.about-content p {
    margin-bottom: 15px;
    font-size: 16px;
}

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

/* ========================================
   SERVICES / OFFER SECTION
======================================== */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.service-card {
    background: var(--white);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.service-image {
    height: 200px;
    background-size: cover;
    background-position: center;
}

.service-content {
    padding: 25px;
}

.service-content h3 {
    font-size: 22px;
    margin-bottom: 10px;
    color: var(--secondary-color);
}

.service-content p {
    color: #666;
    margin-bottom: 20px;
}

.service-price {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary-color);
}

/* ========================================
   TESTIMONIALS
======================================== */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

.testimonial-card {
    background: var(--white);
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

.testimonial-text {
    font-style: italic;
    margin-bottom: 20px;
    font-size: 16px;
    line-height: 1.8;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 15px;
}

.testimonial-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
}

.testimonial-name {
    font-weight: 600;
    color: var(--secondary-color);
}

/* ========================================
   CONTACT SECTION
======================================== */
.contact-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
}

.contact-info h3 {
    font-size: 28px;
    margin-bottom: 20px;
    color: var(--secondary-color);
}

.contact-details {
    margin-top: 30px;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 20px;
}

.contact-item-icon {
    width: 40px;
    height: 40px;
    background: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    flex-shrink: 0;
}

.contact-item-content h4 {
    font-size: 16px;
    margin-bottom: 5px;
}

.contact-item-content p {
    color: #666;
}

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

/* ========================================
   FOOTER
======================================== */
.site-footer {
    background: var(--secondary-color);
    color: var(--white);
    padding: 40px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 30px;
}

.footer-widget h4 {
    font-size: 18px;
    margin-bottom: 20px;
    color: var(--white);
}

.footer-widget p,
.footer-widget a {
    color: rgba(255,255,255,0.8);
}

.footer-widget a:hover {
    color: var(--white);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.2);
    font-size: 14px;
    color: rgba(255,255,255,0.7);
}

/* ========================================
   WORDPRESS DEFAULTS
======================================== */
.wp-block-image img {
    border-radius: var(--border-radius);
}

.aligncenter {
    display: block;
    margin: 0 auto;
}

.alignleft {
    float: left;
    margin-right: 20px;
}

.alignright {
    float: right;
    margin-left: 20px;
}

/* ========================================
   UTILITY CLASSES
======================================== */
.text-center {
    text-align: center;
}

.mt-20 {
    margin-top: 20px;
}

.mb-20 {
    margin-bottom: 20px;
}

.hidden {
    display: none;
}

/* ========================================
   TRUST BAR
   ======================================== */
.trust-bar {
    background: var(--white);
    padding: 1rem 0;
    border-bottom: 1px solid #e0e0e0;
}

.trust-bar-content {
    display: flex;
    justify-content: center;
    gap: 3rem;
    flex-wrap: wrap;
    font-size: 0.9rem;
    color: var(--text-light);
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.trust-item strong {
    color: var(--secondary-color);
    font-weight: 600;
}

/* ========================================
   SEGMENTATION CARDS
   ======================================== */
.segment-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 2rem;
}

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

.segment-card {
    background: var(--white);
    padding: 2rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    text-align: center;
    transition: var(--transition);
}

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

.segment-card h3 {
    color: var(--secondary-color);
    font-size: 1.3rem;
    margin-bottom: 1rem;
}

.segment-card p {
    color: var(--text-light);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.segment-link {
    color: var(--primary-color);
    font-weight: 600;
    font-size: 0.95rem;
}

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

/* ========================================
   STEPS GRID (Jak zaczac)
   ======================================== */
.steps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 2rem;
}

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

.step-card {
    text-align: center;
    padding: 1.5rem;
}

.step-number {
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    font-weight: 700;
    margin: 0 auto 1rem;
}

.step-card h3 {
    color: var(--secondary-color);
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.step-card p {
    color: var(--text-light);
    font-size: 0.9rem;
    line-height: 1.5;
}

.step-meta {
    display: inline-block;
    background: var(--accent-color);
    color: var(--secondary-color);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    margin-top: 0.5rem;
}

/* ========================================
   PRODUCTS GRID
   ======================================== */
.products-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 2rem;
}

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

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

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

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

.product-image {
    height: 200px;
    background-size: cover;
    background-position: center;
    position: relative;
}

.product-badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: var(--accent-color);
    color: var(--secondary-color);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
}

.product-content {
    padding: 1.5rem;
}

.product-meta {
    display: flex;
    gap: 1rem;
    font-size: 0.8rem;
    color: var(--text-light);
    margin-bottom: 0.5rem;
}

.product-content h3 {
    color: var(--secondary-color);
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.product-content p {
    color: var(--text-light);
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 1rem;
}

.product-price {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.product-price span {
    font-size: 0.9rem;
    font-weight: 400;
    color: var(--text-light);
}

/* ========================================
   FAQ
   ======================================== */
.faq-grid {
    max-width: 800px;
    margin: 2rem auto 0;
}

.faq-item {
    background: var(--white);
    padding: 1.5rem;
    border-radius: var(--radius);
    margin-bottom: 1rem;
    box-shadow: var(--shadow);
}

.faq-question {
    color: var(--secondary-color);
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.faq-answer {
    color: var(--text-light);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* ========================================
   UTILITIES
   ======================================== */
.text-center {
    text-align: center;
}

.mt-4 {
    margin-top: 2rem;
}
