/*
Theme Name: Maldivoff Studio
Theme URI: http://maldivoffclub.ru
Author: Maldivoff Club
Author URI: http://maldivoffclub.ru
Description: Стильный шаблон на основе дизайна AI Studio с интеграцией галереи Maldivoff Club.
Version: 1.1
text-domain: maldivoff-studio
*/

:root {
    --gold: #C5A059;
    --dark: #0F141A;
    --sand: #F9F8F4;
    --text: #333;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--sand);
    color: var(--text);
    font-family: 'Manrope', sans-serif;
    overflow-x: hidden;
}

h1,
h2,
h3,
.serif {
    font-family: 'Cormorant Garamond', serif;
}

/* HEADER */
header.site-header {
    position: fixed;
    width: 100%;
    padding: 20px 50px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100;
    transition: 0.3s;
    mix-blend-mode: difference;
    color: white;
}

.logo {
    font-size: 24px;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
}

nav.main-nav a {
    color: white;
    text-decoration: none;
    margin-left: 30px;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.site-content-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    /* Reduced padding, removed top/bottom fixed padding */
}

/* G Gutenberg Alignments */
.alignwide {
    margin-left: calc(50% - 50vw + 10px);
    margin-right: calc(50% - 50vw + 10px);
    max-width: 100vw;
    width: 100vw;
}

.alignfull {
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    max-width: 100vw;
    width: 100vw;
}

@media (min-width: 1200px) {
    .alignwide {
        margin-left: -100px;
        margin-right: -100px;
        width: auto;
        max-width: none;
    }
}

.entry-content>* {
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.entry-content>.alignfull,
.entry-content>.alignwide {
    max-width: none;
}

/* HERO SECTION (OLD) */
.hero {
    height: 100vh;
    width: 100%;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: white;
    overflow: hidden;
    background-color: var(--dark);
    background-size: cover;
    background-position: center;
}

.hero .hero-background .grok-gallery-wrapper,
.hero .hero-background .gallery-container {
    width: 100% !important;
    height: 100% !important;
    position: absolute !important;
    top: 0;
    left: 0;
}

.hero-content {
    position: relative;
    z-index: 10;
    max-width: 800px;
    animation: fadeIn 2s ease;
    padding: 20px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

/* HERO V2 (Gutenberg Optimized) */
.hero-v2 {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: #000;
}

.hero-bg-layer {
    position: absolute !important;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-bg-wrapper,
.hero-bg-layer .grok-gallery-wrapper,
.hero-bg-layer .gallery-container {
    width: 100% !important;
    height: 100% !important;
    position: absolute !important;
    top: 0;
    left: 0;
}


/* FORCE GALLERY FULL SIZE */
.hero-v2 .hero-bg-layer,
.hero-v2 .hero-bg-wrapper,
.hero-v2 .grok_gallery_course,
.hero-v2 .gallery-container,
.hero-v2 .swiper-container {
    width: 100% !important;
    height: 100% !important;
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    min-height: 100vh !important;
    z-index: 1;
}

.hero-v2 .grok_gallery_course img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
}

.hero-content-layer {
    position: relative;
    z-index: 10;
    width: 100%;
}

.hero-v2 h1 {
    font-size: clamp(3rem, 8vw, 6rem);
    line-height: 1.1;
    text-shadow: 0 0 30px rgba(0, 0, 0, 0.5);
}

.btn {
    padding: 15px 40px;
    border: 1px solid var(--gold);
    color: white;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 2px;
    transition: 0.3s;
    font-size: 12px;
    display: inline-block;
    background: rgba(0, 0, 0, 0.2);
}

.btn:hover {
    background: var(--gold);
    color: var(--dark);
}

/* ABOUT */
.about {
    padding: 100px 50px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.watermark {
    font-family: 'Cormorant Garamond', serif;
    font-size: 8rem;
    color: rgba(0, 0, 0, 0.05);
    line-height: 0.8;
    position: absolute;
    left: -50px;
    z-index: 0;
    pointer-events: none;
}

.about-text {
    z-index: 1;
    position: relative;
}

.about-text h2 {
    font-size: 3rem;
    margin-bottom: 30px;
    color: var(--dark);
}

.about-text p {
    line-height: 1.8;
    margin-bottom: 20px;
    font-weight: 300;
}

/* GALLERY (MASONRY) */
.gallery-section {
    padding: 50px;
    background: white;
}

.section-title {
    text-align: center;
    margin-bottom: 60px;
    font-size: 2.5rem;
    color: var(--dark);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    grid-auto-rows: 300px;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s ease;
    filter: grayscale(20%);
}

.gallery-item:hover img {
    transform: scale(1.05);
    filter: grayscale(0%);
}

.gallery-item:nth-child(2) {
    grid-row: span 2;
}

.gallery-item:nth-child(5) {
    grid-column: span 2;
}

/* LOCATIONS */
.locations {
    padding: 100px 50px;
    background: var(--dark);
    color: white;
}

.loc-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
}

.loc-card {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 20px;
}

.loc-card h3 {
    font-size: 1.8rem;
    margin-bottom: 10px;
    color: var(--gold);
}

.loc-card p {
    opacity: 0.7;
    font-size: 0.9rem;
    margin-bottom: 15px;
}

.loc-link {
    color: white;
    text-transform: uppercase;
    font-size: 10px;
    letter-spacing: 1px;
    text-decoration: none;
    border-bottom: 1px solid var(--gold);
}

/* FOOTER */
footer.site-footer {
    text-align: center;
    padding: 80px 20px;
    background: #0a0e12;
    color: #555;
    font-size: 12px;
    letter-spacing: 1px;
}

.footer-logo {
    color: var(--gold);
    font-family: 'Cormorant Garamond', serif;
    font-size: 30px;
    margin-bottom: 20px;
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Mobile */
@media (max-width: 768px) {
    .about {
        grid-template-columns: 1fr;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
    }

    .hero h1 {
        font-size: 3rem;
    }

    header.site-header {
        padding: 20px;
        flex-direction: column;
        background: rgba(0, 0, 0, 0.8);
    }

    nav.main-nav {
        margin-top: 20px;
    }

    nav.main-nav a {
        margin: 0 10px;
    }

    /* Исправление центровки Grok Gallery на мобильных */
    .hero-v2 .gallery-container {
        left: -33.33% !important;
        width: 166.67% !important;
    }
}

/* WordPress Core Alignments */
.aligncenter {
    display: block;
    margin: 0 auto;
}

.alignleft {
    float: left;
    margin: 0 20px 20px 0;
}

.alignright {
    float: right;
    margin: 0 0 20px 20px;
}

.main-nav ul {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
}

.main-nav li {
    margin-left: 30px;
}

.main-nav a {
    margin-left: 0 !important;
}