/*
Theme Name: AP Studio Architektury
Theme URI: https://apstudio.pl
Author: Aleksandra Piątek Studio Architektury
Description: Elegancki, minimalistyczny szablon dla studia architektury wnętrz
Version: 1.0.0
License: GNU General Public License v2 or later
Text Domain: ap-studio
Tags: portfolio, architecture, minimal, one-page
*/

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

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: 'Cormorant Garamond', Georgia, serif;
    background-color: #ffffff;
    color: #222222;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}

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

a {
    text-decoration: none;
    color: inherit;
}

/* =============================================
   SITE HEADER
============================================= */
.site-header {
    display: flex;
    align-items: center;
    padding: 28px 50px;
    background: #fff;
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-line {
    flex: 1;
    height: 1px;
    background-color: #222;
    margin-right: 50px;
    min-width: 80px;
}

.main-navigation ul {
    display: flex;
    list-style: none;
    padding: 0;
    margin: 0;
    gap: 48px;
}

.main-navigation ul li a {
    font-family: 'Montserrat', 'Helvetica Neue', Arial, sans-serif;
    font-size: 0.68rem;
    font-weight: 400;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: #888;
    transition: color 0.2s, font-weight 0.1s;
}

.main-navigation ul li a:hover,
.main-navigation ul li.current-menu-item > a,
.main-navigation ul li.current_page_item > a,
.main-navigation ul li.current_page_ancestor > a {
    color: #111;
    font-weight: 700;
}

/* Hamburger mobile */
.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
    padding: 4px;
}

.nav-toggle span {
    display: block;
    width: 22px;
    height: 1px;
    background: #222;
    transition: all 0.3s;
}

/* =============================================
   SITE CONTENT
============================================= */
.site-content {
    min-height: calc(100vh - 85px);
}

/* =============================================
   HOME PAGE
============================================= */
.home-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: calc(100vh - 85px);
}

.home-left {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 50px 50px 50px 50px;
}

.home-logo-text {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: #888;
    line-height: 2.2;
}

.home-contact-box {
    display: inline-block;
    border: 1px solid #222;
    padding: 16px 28px;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.68rem;
    font-weight: 400;
    letter-spacing: 0.15em;
    color: #222;
    margin-top: 28px;
    width: fit-content;
}

.home-right {
    display: grid;
    grid-template-columns: 1fr 1fr;
    overflow: hidden;
    height: calc(100vh - 85px);
}

.home-hero-img {
    overflow: hidden;
    height: 100%;
}

.home-hero-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* =============================================
   OFERTA PAGE
============================================= */
.oferta-layout {
    padding: 60px 50px 80px;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 48px;
}

.service-card-title {
    border: 1px solid #bbb;
    padding: 22px 16px;
    text-align: center;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.62rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: #333;
    line-height: 1.9;
    margin-bottom: 32px;
}

.service-card ul {
    list-style: disc;
    padding-left: 1.3em;
}

.service-card ul li {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 1rem;
    font-style: italic;
    color: #555;
    line-height: 1.8;
    margin-bottom: 14px;
}

/* =============================================
   O MNIE PAGE
============================================= */
.about-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 70px;
    padding: 60px 50px 80px;
    align-items: start;
}

.about-photo img {
    width: 100%;
    object-fit: cover;
}

.about-content ul {
    list-style: disc;
    padding-left: 1.4em;
}

.about-content ul li {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 1.05rem;
    font-style: italic;
    color: #555;
    line-height: 1.85;
    margin-bottom: 22px;
}

/* =============================================
   GALERIA PAGE
============================================= */
.gallery-layout {
    padding: 10px 50px 70px;
}

/* Override WordPress native gallery */
.gallery-layout .gallery {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr);
    gap: 5px;
    margin: 0 !important;
}

.gallery-layout .gallery-item {
    margin: 0 !important;
    overflow: hidden;
    aspect-ratio: 4/3;
}

.gallery-layout .gallery-icon,
.gallery-layout .gallery-item a {
    display: block;
    width: 100%;
    height: 100%;
}

.gallery-layout .gallery-item img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover;
    transition: transform 0.4s ease;
    max-width: none !important;
}

.gallery-layout .gallery-item:hover img {
    transform: scale(1.04);
}

.gallery-layout .gallery-caption {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 0.8rem;
    font-style: italic;
    color: #888;
    padding: 6px 2px;
}

/* Manual gallery grid (gdy użytkownik dodaje przez ACF lub custom fields) */
.ap-gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 5px;
}

.ap-gallery-grid .ap-gallery-item {
    overflow: hidden;
    aspect-ratio: 4/3;
}

.ap-gallery-grid .ap-gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.ap-gallery-grid .ap-gallery-item:hover img {
    transform: scale(1.04);
}

/* =============================================
   KONTAKT PAGE
============================================= */
.kontakt-layout {
    padding: 60px 50px 80px;
    max-width: 900px;
}

.kontakt-heading {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: #111;
    line-height: 1.55;
    margin-bottom: 40px;
}

.kontakt-intro ul {
    list-style: disc;
    padding-left: 1.4em;
    margin-bottom: 40px;
}

.kontakt-intro ul li {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 1.05rem;
    font-style: italic;
    color: #555;
    line-height: 1.8;
    margin-bottom: 14px;
}

.contact-boxes {
    display: flex;
    gap: 18px;
    flex-wrap: wrap;
}

.contact-box-item {
    border: 1px solid #222;
    padding: 18px 36px;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.68rem;
    letter-spacing: 0.15em;
    color: #222;
    white-space: nowrap;
}

.contact-box-item a {
    color: #222;
}

.contact-box-label {
    color: #888;
    margin-right: 10px;
}

/* =============================================
   FOOTER
============================================= */
.site-footer {
    padding: 28px 50px;
    border-top: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-logo {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.6rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: #aaa;
    line-height: 2;
}

.footer-copy {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.6rem;
    letter-spacing: 0.08em;
    color: #ccc;
}

/* =============================================
   LIGHTBOX (Fancybox override)
============================================= */
.fancybox__container {
    z-index: 9999;
}

/* =============================================
   RESPONSIVE
============================================= */
@media (max-width: 1100px) {
    .home-right { height: 65vh; }
    .services-grid { grid-template-columns: repeat(2, 1fr); }
    .gallery-layout .gallery,
    .ap-gallery-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .site-header {
        padding: 18px 24px;
        flex-wrap: wrap;
        gap: 14px;
    }

    .header-line { display: none; }

    .main-navigation {
        width: 100%;
        display: none;
    }

    .main-navigation.is-open { display: block; }

    .main-navigation ul {
        flex-direction: column;
        gap: 16px;
        padding: 10px 0;
    }

    .nav-toggle { display: flex; }

    .home-layout { grid-template-columns: 1fr; }

    .home-right {
        height: 55vw;
        order: -1;
    }

    .home-left { padding: 28px 24px; }

    .about-layout,
    .oferta-layout,
    .kontakt-layout,
    .gallery-layout {
        padding-left: 24px;
        padding-right: 24px;
    }

    .about-layout { grid-template-columns: 1fr; gap: 30px; }

    .services-grid { grid-template-columns: 1fr; gap: 36px; }

    .gallery-layout .gallery,
    .ap-gallery-grid { grid-template-columns: repeat(2, 1fr); }

    .kontakt-heading { font-size: 1rem; letter-spacing: 0.15em; }

    .contact-boxes { flex-direction: column; }

    .contact-box-item { padding: 16px 24px; }

    .site-footer {
        padding: 20px 24px;
        flex-direction: column;
        gap: 8px;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .gallery-layout .gallery,
    .ap-gallery-grid { grid-template-columns: 1fr; }
    .home-right { grid-template-columns: 1fr; height: 70vw; }
    .home-right .home-hero-img:last-child { display: none; }
}
