﻿/*
Theme Name: Natasza Photo
Theme URI: https://pixelshark.eu
Author: PixelShark
Description: Profesjonalny motyw WordPress dla Natasza Photo, oparty o dostarczony projekt. Zawiera moduł usług z galerią wybieraną z Mediów.
Version: 1.0.3
Text Domain: natasza-photo
*/
/* =========================================
   1. ZMIENNE I RESET
   ========================================= */
:root {
    --color-gold: #C5A059;
    --color-gold-dark: #a88645;
    --color-black: #1A1A1A;
    --color-dark-gray: #333333;
    --color-light-gray: #F9F9F9;
    --color-white: #FFFFFF;
    
    --font-serif: 'Playfair Display', serif;
    --font-sans: 'Montserrat', sans-serif;
    
    --nav-height: 90px;
    --transition-smooth: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    margin: 0 !important;
    margin-top: 0 !important;
    padding: 0 !important;
}

body {
    font-family: var(--font-sans);
    color: var(--color-dark-gray);
    line-height: 1.7;
    background-color: var(--color-white);
    overflow-x: hidden;
    margin: 0 !important;
    padding: 0 !important;
    margin-top: 0 !important;
}

body.logged-in.admin-bar {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

#wpadminbar {
    display: none !important;
}

body > *:first-child {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

body.admin-bar .navbar {
    top: 0 !important;
}

h1, h2, h3, h4 {
    font-family: var(--font-serif);
    color: var(--color-black);
    font-weight: 600;
}

img {
    max-width: 100%;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-smooth);
}

/* =========================================
   2. KLASY POMOCNICZE (UTILITY)
   ========================================= */
.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

.section-padding {
    padding: 100px 0;
}

.bg-light {
    background-color: var(--color-light-gray);
}

.text-left { text-align: left; }
.text-center { text-align: center; }
.text-justify { text-align: justify; }

/* =========================================
   3. PRZYCISKI (BUTTONS)
   ========================================= */
.btn {
    display: inline-block;
    padding: 15px 35px;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
    font-weight: 600;
    transition: var(--transition-smooth);
    border: 1px solid transparent;
    cursor: pointer;
    margin-top: 25px;
    border-radius: 2px;
}

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

.btn-gold:hover {
    background-color: var(--color-gold-dark);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px -5px rgba(197, 160, 89, 0.4);
}

/* =========================================
   4. NAWIGACJA (NAVBAR)
   ========================================= */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: var(--nav-height);
    padding: 15px 5%;
    position: fixed;
    width: 100%;
    top: 0;
    margin-top: 0 !important;
    z-index: 1000;
    background-color: transparent;
    transition: all 0.5s ease;
}

.logo-container {
    display: flex;
    align-items: center;
}

/* System zmiany Logo (BiaĹ‚e vs Ciemne) */
.site-logo {
    width: 300px; /* DuĹĽe na start */
    height: auto;
    transition: width 0.4s ease;
}

.logo-white { display: block; }
.logo-dark { display: none; }

.nav-links {
    display: flex;
    list-style: none;
    align-items: center;
}

.nav-links li {
    margin-left: 40px;
}

.nav-links a {
    color: var(--color-white);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.8rem;
    font-weight: 500;
    position: relative;
    padding-bottom: 5px;
    text-shadow: 0 1px 3px rgba(0,0,0,0.3);
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: var(--color-gold);
    transition: var(--transition-smooth);
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

/* Ukryty telefon w menu (pokazuje siÄ™ tylko na mobile) */
.mobile-contact {
    display: none;
}

/* --- Stan po przewiniÄ™ciu (Scrolled) --- */
.navbar.scrolled {
    background-color: var(--color-white);
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    min-height: 70px;
    padding: 10px 5%;
}

.navbar.scrolled .logo-white { display: none; }
.navbar.scrolled .logo-dark { display: block; }
.navbar.scrolled .site-logo { width: 180px; } /* Mniejsze logo */

.navbar.scrolled .nav-links a {
    color: var(--color-black);
    text-shadow: none;
}

/* Burger Menu Icon */
.burger {
    display: none;
    cursor: pointer;
}

.burger div {
    width: 25px;
    height: 2px;
    background-color: var(--color-white);
    margin: 6px;
    transition: var(--transition-smooth);
}

.navbar.scrolled .burger div {
    background-color: var(--color-black);
}

/* =========================================
   5. HERO SECTION (HOMEPAGE)
   ========================================= */
.hero-section {
    height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--color-white);
    overflow: hidden;
    padding-top: 0 !important;
}

/* Wymuszenie biaĹ‚ego koloru tekstĂłw w Hero */
.hero-content h1,
.hero-content p {
    color: var(--color-white) !important;
    text-shadow: 0 2px 10px rgba(0,0,0,0.5);
}

.hero-location {
    font-family: var(--font-sans);
    font-size: 1.2rem;
    letter-spacing: 4px;
    text-transform: uppercase;
    display: block;
    margin-bottom: 15px;
    font-weight: 600;
    color: var(--color-gold) !important;
    text-shadow: 0 2px 5px rgba(0,0,0,0.5);
}

/* Slider i Animacje (PĹ‚ynne transition) */
.hero-slider, .slide {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
}

.slide {
    background-size: cover;
    background-position: center;
    opacity: 0;
    transform: scale(1);
    /* Transition zamiast Animation dla idealnej pĹ‚ynnoĹ›ci */
    transition: opacity 2s ease-in-out, transform 8s linear;
    z-index: 0;
}

.slide.active {
    opacity: 1;
    transform: scale(1.1);
    z-index: 1;
}

.hero-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.4);
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
    max-width: 900px;
    padding: 0 20px;
}

.hero-content h1 {
    font-size: 4.5rem;
    line-height: 1.1;
    margin-bottom: 20px;
}

.hero-sub {
    font-size: 1.1rem;
    font-style: italic;
    font-family: var(--font-serif);
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    display: flex;
    flex-direction: column;
    align-items: center;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--color-white);
    animation: bounce 2s infinite;
}

.arrow-line {
    width: 1px;
    height: 40px;
    background: var(--color-white);
    margin-top: 10px;
    position: relative;
}

.arrow-head {
    width: 0; 
    height: 0; 
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 8px solid var(--color-white);
    position: absolute;
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%);
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateX(-50%) translateY(0); }
    40% { transform: translateX(-50%) translateY(-10px); }
    60% { transform: translateX(-50%) translateY(-5px); }
}

/* =========================================
   6. SUBPAGE HERO (DLA PODSTRON)
   ========================================= */
.subpage-hero {
    height: 35vh; /* ZMIANA: Zmniejszono z 60vh na 35vh */
    min-height: 250px; /* Zabezpieczenie, ĹĽeby na telefonach nie byĹ‚o za wÄ…sko */
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    background-size: cover;
    background-position: center;
    color: var(--color-white);
    margin-top: 0;
    padding-top: 0 !important;
}

.subpage-hero .hero-overlay {
    background: rgba(0,0,0,0.5);
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
}

.subpage-hero h1 {
    font-size: 3rem; /* ZMIANA: Lekko mniejsza czcionka, ĹĽeby pasowaĹ‚a do wÄ™ĹĽszego paska */
    position: relative;
    z-index: 2;
    color: var(--color-white);
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
    text-align: center;
    padding: 0 20px;
}

/* ResponsywnoĹ›Ä‡ dla subpage hero */
@media screen and (max-width: 768px) {
    .subpage-hero {
        height: 30vh; /* Na telefonach jeszcze nieco niĹĽszy */
        min-height: 200px;
    }
    .subpage-hero h1 {
        font-size: 2rem;
    }
}

/* =========================================
   7. SEKCJE TREĹšCI I FAQ
   ========================================= */
.content-text p {
    margin-bottom: 1.5rem;
    color: #444;
    font-size: 1.05rem;
}

.content-text strong {
    color: var(--color-gold-dark);
}

.content-text h2 {
    margin-bottom: 1.5rem;
    font-size: 2rem;
}

/* FAQ STYLES */
.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    border-bottom: 1px solid #ddd;
    margin-bottom: 10px;
}

.faq-item summary {
    padding: 20px 0;
    cursor: pointer;
    font-weight: 600;
    font-size: 1.1rem;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: var(--font-serif);
}

.faq-item summary::-webkit-details-marker { display: none; }

.faq-item summary::after {
    content: '+';
    color: var(--color-gold);
    font-size: 1.5rem;
    font-weight: 300;
    transition: transform 0.3s;
}

.faq-item[open] summary::after {
    transform: rotate(45deg);
}

.faq-item p {
    padding-bottom: 20px;
    color: #666;
    line-height: 1.6;
    font-size: 0.95rem;
}

/* =========================================
   8. PORTFOLIO GRID (STRONA GĹĂ“WNA)
   ========================================= */
.section-title {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    text-align: center;
}

.section-subtitle {
    text-align: center;
    color: #777;
    margin-bottom: 50px;
    font-family: var(--font-serif);
    font-style: italic;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    grid-auto-flow: row;
    grid-auto-rows: 260px;
}

.grid-item {
    position: relative;
    overflow: hidden;
    height: 100%;
    cursor: pointer;
    background-color: #f4f4f4;
}

.grid-item.wide { grid-column: span 2; }
.grid-item.tall { grid-row: span 1; }

.grid-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
    background-color: #f4f4f4;
}

.grid-item img {
    object-position: center center;
}

.home .portfolio-grid .grid-item[data-crop="top"] img {
    object-position: center top;
}

.home .portfolio-grid .grid-item[data-crop="bottom"] img {
    object-position: center bottom;
}

.image-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(26, 26, 26, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition-smooth);
}

.image-overlay h3 {
    color: var(--color-white);
    font-family: var(--font-sans);
    font-weight: 400;
    font-size: 1.2rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    transform: translateY(20px);
    transition: var(--transition-smooth);
    border: 1px solid var(--color-white);
    padding: 10px 20px;
}

.grid-item:hover img { transform: scale(1.1); }
.grid-item:hover .image-overlay { opacity: 1; }
.grid-item:hover .image-overlay h3 { transform: translateY(0); }

/* =========================================
   9. MASONRY GALLERY (PODSTRONY)
   ========================================= */
.masonry-gallery {
    column-count: 3; /* 3 kolumny domyĹ›lnie */
    column-gap: 20px;
}

.masonry-item {
    break-inside: avoid;
    margin-bottom: 20px;
    position: relative;
    overflow: hidden;
}

.masonry-item img {
    width: 100% !important;
    height: auto !important;
    display: block;
    border-radius: 2px;
    transition: transform 0.5s ease;
}

.masonry-item:hover img {
    transform: scale(1.03);
}

/* =========================================
   10. ABOUT SECTION
   ========================================= */
.about-layout {
    display: flex;
    align-items: flex-start;
    gap: 70px;
}

.about-image-wrapper {
    flex: 1;
    position: relative;
}

.about-img {
    width: 100%;
    position: relative;
    z-index: 2;
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}

.gold-frame {
    position: absolute;
    top: 25px;
    left: -25px;
    width: 100%;
    height: 100%;
    border: 2px solid var(--color-gold);
    z-index: 1;
}

.about-text-content {
    flex: 1.2;
}

.about-text-content .lead {
    font-size: 1.2rem;
    color: var(--color-black);
    margin-bottom: 25px;
    line-height: 1.6;
}

/* =========================================
   11. FOOTER
   ========================================= */
.footer-section {
    background-color: var(--color-black);
    color: #999;
    padding: 80px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 50px;
}

.footer-logo-img {
    width: 180px;
    margin-bottom: 15px;
}

.footer-contact h4,
.footer-social h4 {
    color: var(--color-white);
    font-size: 1.1rem;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.social-links a {
    display: block;
    margin-bottom: 8px;
}

.social-links a:hover {
    color: var(--color-gold);
}

.footer-bottom {
    border-top: 1px solid #333;
    padding-top: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8rem;
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

.creator a {
    color: var(--color-gold);
    font-weight: 600;
}

.heart {
    color: red;
    display: inline-block;
    animation: heartBeat 1.5s infinite;
}

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

/* =========================================
   12. MEDIA QUERIES (RESPONSYWNOĹšÄ†)
   ========================================= */
@media screen and (max-width: 1024px) {
    .grid-item.wide { grid-column: span 1; }
    .grid-item.tall { grid-row: span 1; }
    .portfolio-grid { grid-template-columns: repeat(2, 1fr); }
    .masonry-gallery { column-count: 2; }
    .hero-content h1 { font-size: 3.5rem; }
}

@media screen and (max-width: 768px) {
    /* MOBILE NAV */
    .nav-links {
        position: fixed;
        right: 0;
        top: 0;
        height: 100vh;
        background-color: var(--color-white);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        width: 100%;
        transform: translateX(100%);
        transition: transform 0.4s ease-in-out;
        z-index: 998;
    }

    .nav-links.nav-active {
        transform: translateX(0%);
    }
    
    .nav-links li {
        margin: 30px 0; /* WiÄ™ksze odstÄ™py w pionie */
    }

    .nav-links a {
        color: var(--color-black) !important;
        font-size: 1.3rem;
        text-shadow: none;
    }

    /* ZĹOTY TELEFON W MENU MOBILE */
    .mobile-contact {
        display: block; /* PokaĹĽ element */
        margin-top: 40px;
        color: var(--color-gold) !important;
        font-weight: 700;
        font-size: 1.4rem !important;
        border: 2px solid var(--color-gold);
        padding: 10px 30px;
        border-radius: 4px;
    }

    /* BURGER LOGIC */
    .burger { display: block; z-index: 999; }
    .toggle .line1 { transform: rotate(-45deg) translate(-5px, 6px); background-color: var(--color-black) !important; }
    .toggle .line2 { opacity: 0; }
    .toggle .line3 { transform: rotate(45deg) translate(-5px, -6px); background-color: var(--color-black) !important; }

    /* MOBILE LAYOUT ADJUSTMENTS */
    .hero-content h1 { font-size: 2.5rem; }
    .portfolio-grid { grid-template-columns: 1fr; }
    .masonry-gallery { column-count: 1; } /* 1 kolumna na mobile */
    .about-layout { flex-direction: column; }
    .gold-frame { left: 15px; top: 15px; }
    .footer-content { grid-template-columns: 1fr; text-align: center; }
    .footer-bottom { flex-direction: column; gap: 10px; text-align: center; }
}

/* =========================================
   13. ANIMACJE (SCROLL REVEAL)
   ========================================= */
.reveal-item, .text-reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

.reveal-item.visible, .text-reveal.visible {
    opacity: 1;
    transform: translateY(0);
}
/* =========================================
   14. STRONA KONTAKTOWA (NOWE)
   ========================================= */
.contact-wrapper {
    display: flex;
    gap: 60px;
    flex-wrap: wrap;
}

.contact-info { flex: 1; min-width: 300px; }
.contact-form-container { flex: 1.5; min-width: 300px; }

.contact-info h2 { font-size: 2.2rem; margin-bottom: 20px; }
.contact-info p { margin-bottom: 30px; color: #555; }

.info-item { margin-bottom: 30px; }
.info-item h3 { font-family: var(--font-sans); font-size: 0.9rem; text-transform: uppercase; letter-spacing: 1px; color: #888; margin-bottom: 5px; }
.info-item p { font-size: 1.1rem; color: var(--color-black); font-weight: 500; margin-bottom: 0; }

.social-links-contact a {
    display: inline-block;
    margin-right: 20px;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
}
.social-links-contact a:hover { color: var(--color-gold); }

/* Formularz */
.form-group { margin-bottom: 20px; }
.form-group label { display: block; margin-bottom: 8px; font-weight: 500; font-size: 0.9rem; }
.form-group input,
.form-group textarea {
    width: 100%;
    padding: 15px;
    border: 1px solid #ddd;
    background-color: #fcfcfc;
    font-family: var(--font-sans);
    font-size: 1rem;
    transition: var(--transition-smooth);
}
.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--color-gold);
    background-color: #fff;
    box-shadow: 0 0 10px rgba(197, 160, 89, 0.1);
}

.map-section { margin-bottom: -5px; } /* UsuniÄ™cie luki na dole mapy */

/* =========================================
   15. LIGHTBOX GALLERY (POPUP) (NOWE)
   ========================================= */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    z-index: 2000;
    display: none; /* DomyĹ›lnie ukryte */
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.lightbox.active {
    display: flex;
    opacity: 1;
}

.lightbox-content {
    max-width: 90%;
    max-height: 85vh;
    box-shadow: 0 0 50px rgba(0,0,0,0.5);
    border: 2px solid #333;
}

/* Przyciski nawigacji */
.lightbox-btn {
    position: absolute;
    background: none;
    border: none;
    color: var(--color-white);
    font-size: 3rem;
    cursor: pointer;
    padding: 20px;
    transition: color 0.3s;
    z-index: 2001;
    top: 50%;
    transform: translateY(-50%);
}

.lightbox-btn:hover { color: var(--color-gold); }
.prev-btn { left: 20px; }
.next-btn { right: 20px; }

/* Przycisk zamkniÄ™cia */
.close-btn {
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 3rem;
    color: var(--color-white);
    cursor: pointer;
    z-index: 2002;
    background: none;
    border: none;
    line-height: 1;
}
.close-btn:hover { color: var(--color-gold); }

/* ResponsywnoĹ›Ä‡ kontaktu */
@media screen and (max-width: 768px) {
    .contact-wrapper { gap: 40px; }
    .lightbox-btn { font-size: 2rem; padding: 10px; }
    .prev-btn { left: 10px; }
    .next-btn { right: 10px; }
}
/* =========================================
   16. WORDPRESS DODATKI
   ========================================= */
.content-columns {
    column-count: 2;
    column-gap: 40px;
    text-align: justify;
}

.content-columns h2 {
    text-align: center;
    column-span: all;
    margin-bottom: 2rem;
}

.nav-links .current-menu-item > a::after,
.nav-links .current-menu-ancestor > a::after {
    width: 100%;
}

.nav-links .current-menu-item > a,
.nav-links .current-menu-ancestor > a {
    font-weight: 600;
}

.custom-logo-link {
    display: inline-flex;
    align-items: center;
}

.custom-logo-link img {
    max-width: 300px;
    height: auto;
    transition: width 0.4s ease;
}

.navbar.scrolled .custom-logo-link img {
    max-width: 180px;
}

@media screen and (max-width: 1024px) {
    .content-columns {
        column-count: 1;
    }
}
