:root {
    --primary-color: #d4a373;
    --secondary-color: #faedcd;
    --accent-color: #e3b692;
    --text-color: #2b2b2b;
    --light-text: #6c757d;
    --bg-color: #fefae0;
    --white: #ffffff;
    --glass: rgba(255, 255, 255, 0.7);
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
    font-family: 'Inter', sans-serif;
    color: var(--text-color);
    background-color: var(--bg-color);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3 {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Header & Nav */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: transparent;
    padding: 1.2rem 0;
    transition: background 0.3s ease, padding 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    border-bottom: 1px solid transparent;
}

.header.scrolled {
    background: var(--white);
    padding: 0.8rem 0;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.header.scrolled .logo-text span {
    color: var(--text-color);
}

.header.scrolled .nav-links a {
    color: var(--text-color);
}

/* On initial hero section, text should be white to be visible on dark background */
.header:not(.scrolled) .nav-links a,
.header:not(.scrolled) .logo-text span {
    color: var(--white);
}

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    text-decoration: none;
}

.logo img {
    height: 40px;
    width: auto;
    image-rendering: -webkit-optimize-contrast; /* Maintain sharpness during animation */
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 2px;
    color: var(--primary-color);
}

.logo-text span {
    color: var(--text-color);
    font-weight: 400;
}

.mobile-toggle {
    display: none;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.mobile-nav-actions {
    display: none;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 600;
    font-size: 1.1rem;
    transition: var(--transition);
}

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

/* Dropdown Menu */
.dropdown {
    position: relative;
    display: inline-block;
}

.dropbtn {
    display: flex;
    align-items: center;
    gap: 5px;
    cursor: pointer;
}

.nav-arrow {
    font-size: 0.6rem;
    transition: transform 0.3s ease;
}

.dropdown.show .nav-arrow {
    transform: rotate(180deg);
}

.dropdown-content {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    background: var(--white);
    min-width: 160px;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.1);
    z-index: 1001;
    border-radius: 12px;
    overflow: hidden;
    margin-top: 10px;
}

.dropdown-content a {
    color: var(--text-color) !important;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    font-size: 14px;
    transition: background 0.3s;
}

.dropdown-content a:hover {
    background: var(--bg-color);
    color: var(--primary-color) !important;
}

.dropdown.show .dropdown-content {
    display: block;
    animation: fadeInDown 0.3s ease;
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.8rem 1.8rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: var(--transition);
    cursor: pointer;
}

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

.btn-primary:hover {
    background: var(--accent-color);
    border-color: var(--accent-color);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(212, 163, 115, 0.3);
}

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

.btn-outline:hover {
    background: var(--primary-color);
    color: var(--white);
    transform: translateY(-2px);
}

.btn-sm {
    padding: 0.5rem 1.2rem;
    font-size: 0.8rem;
    margin-top: 1rem;
}

/* Hero */
.hero {
    padding: 8rem 0 4rem;
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)), url('hero.webp');
    background-size: cover;
    background-position: center;
    color: var(--white);
}

.hero-content {
    display: block;
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.hero-text h1 {
    font-size: 3.5rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

.hero-text .accent {
    color: var(--primary-color);
}

.hero-text p {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.9);
    margin: 0 auto 2.5rem;
    max-width: 600px;
}

.hero-btns {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

/* Section Common */
.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 3.5rem;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 3px;
    background: var(--primary-color);
}

/* Services */
.services {
    padding: 5rem 0;
    background: var(--white);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.service-card {
    padding: 3rem 2rem;
    background: var(--bg-color);
    border-radius: 20px;
    text-align: center;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow);
    background: var(--white);
}

.service-icon {
    font-size: 2.5rem;
    margin-bottom: 0.8rem;
}

.service-card h3 {
    margin-bottom: 0.3rem;
}

.service-card .duration {
    font-size: 0.85rem;
    color: var(--light-text);
    margin-bottom: 0.8rem;
    font-weight: 500;
}

.service-card p {
    font-size: 0.9rem;
    color: var(--light-text);
    margin-bottom: 1.5rem;
}

.price {
    font-weight: 700;
    color: var(--primary-color);
    font-size: 1.1rem;
    display: block;
    margin-top: auto;
    margin-bottom: 0.5rem;
}

/* About */
.about {
    padding: 5rem 0;
}

.about-text {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.about-text .section-title::after {
    left: 50%;
    transform: translateX(-50%);
}

.features-list {
    list-style: none;
    margin-top: 3rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
}

@media (max-width: 480px) {
    .features-list {
        grid-template-columns: 1fr;
    }
}

.features-list li {
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Gallery */
.gallery {
    padding: 5rem 0;
    background: var(--white);
}

.instagram-block {
    text-align: center;
    margin-bottom: 3rem;
}

.instagram-block h3 {
    font-size: 1.2rem;
    color: var(--light-text);
    margin-bottom: 1rem;
}

.instagram-btn {
    display: inline-block;
    padding: 0.8rem 2rem;
    background: #e9ecef;
    color: var(--text-color);
    text-decoration: none;
    border-radius: 10px;
    font-weight: 600;
    transition: var(--transition);
}

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

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: 200px;
    gap: 1rem;
    margin-bottom: 2rem;
}

.gallery-item {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.33, 1, 0.68, 1);
}

/* Mosaic effects - only for first few items for a controlled look */
.gallery-item:nth-child(1) { grid-column: span 2; grid-row: span 2; }

.gallery-item:hover img {
    transform: scale(1.1) !important;
}

/* Hidden container for smooth expansion */
.gallery-extra {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: 200px;
    gap: 1rem;
    
    max-height: 0;
    opacity: 0;
    visibility: hidden;
    overflow: hidden;
    transition: max-height 0.8s cubic-bezier(0.4, 0, 0.2, 1), 
                opacity 0.4s ease, 
                visibility 0.8s;
}

.gallery-wrapper.expanded .gallery-extra {
    max-height: 8000px; /* High value to accommodate all possible rows */
    opacity: 1;
    visibility: visible;
}

.gallery-extra .gallery-item {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s cubic-bezier(0.23, 1, 0.32, 1), 
                transform 0.6s cubic-bezier(0.23, 1, 0.32, 1);
}

.gallery-wrapper.expanded .gallery-extra .gallery-item {
    opacity: 1;
    transform: translateY(0);
}

.gallery-controls {
    text-align: center;
    margin-top: 3rem;
}

/* Lightbox Modal */
.lightbox {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(10px);
    cursor: pointer;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.lightbox-content {
    margin: auto;
    display: block;
    max-width: 90%;
    max-height: 80vh;
    border-radius: 10px;
    box-shadow: 0 0 50px rgba(0,0,0,0.5);
    transform: scale(0.95);
    transition: transform 0.3s ease;
}

.lightbox.active .lightbox-content {
    transform: scale(1);
}

.close-lightbox {
    position: absolute;
    top: 30px;
    right: 40px;
    color: #fff;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
}

.close-lightbox:hover {
    color: var(--primary-color);
}

.prev-photo, .next-photo {
    cursor: pointer;
    position: absolute;
    top: 50%;
    width: auto;
    padding: 20px;
    margin-top: -50px;
    color: white;
    font-weight: bold;
    font-size: 30px;
    transition: 0.3s ease;
    user-select: none;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
}

.next-photo { right: 30px; }
.prev-photo { left: 30px; }

.prev-photo:hover, .next-photo:hover {
    background: var(--primary-color);
}

@media (max-width: 992px) {
    .gallery-grid {
        grid-template-columns: repeat(3, 1fr);
        grid-auto-rows: 180px;
    }
    .gallery-item:nth-child(1) { grid-column: span 2; grid-row: span 2; }
    
    .gallery-extra {
        grid-template-columns: repeat(3, 1fr);
        grid-auto-rows: 180px;
    }
}

@media (max-width: 600px) {
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-auto-rows: 150px;
    }
    .gallery-item:nth-child(1) { grid-column: span 2; grid-row: span 2; }

    .gallery-extra {
        grid-template-columns: repeat(2, 1fr);
        grid-auto-rows: 150px;
    }
}

/* FAQ Accordion */
.faq {
    padding: 5rem 0;
}

.faq-accordion {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: var(--white);
    border-radius: 15px;
    margin-bottom: 1rem;
    box-shadow: var(--shadow);
    overflow: hidden;
}

.faq-question {
    width: 100%;
    padding: 1.5rem 2rem;
    background: none;
    border: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    text-align: left;
    font-family: 'Outfit', sans-serif;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-color);
    cursor: pointer;
    transition: var(--transition);
}

.faq-question:hover {
    color: var(--primary-color);
}

.faq-question .arrow {
    width: 12px;
    height: 12px;
    border-right: 2px solid var(--primary-color);
    border-bottom: 2px solid var(--primary-color);
    transform: rotate(45deg);
    transition: var(--transition);
}

.faq-item.active .faq-question {
    background: var(--bg-color);
    color: var(--primary-color);
}

.faq-item.active .arrow {
    transform: rotate(-135deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease;
    opacity: 0;
}

.faq-item.active .faq-answer {
    opacity: 1;
}

.faq-answer p {
    padding: 1rem 2rem 2rem;
    color: var(--light-text);
    font-size: 1rem;
    line-height: 1.7;
}

.faq-answer a {
    color: var(--primary-color);
    text-decoration: underline;
    text-underline-offset: 4px;
    font-weight: 600;
    transition: var(--transition);
}

.faq-answer a:hover {
    color: var(--accent-color);
}

/* Contacts Section Redesign */
.contacts {
    padding: 5rem 0;
    background: var(--white);
    position: relative;
    overflow: hidden;
}

/* Subtle background pattern/glow */
.contacts::before {
    content: '';
    position: absolute;
    top: -100px;
    right: -100px;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, var(--secondary-color) 0%, transparent 70%);
    opacity: 0.4;
    z-index: 0;
}

.contacts-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 5rem;
    align-items: stretch;
    position: relative;
    z-index: 1;
}

.contacts-subtitle {
    font-size: 1.1rem;
    color: var(--light-text);
    margin-bottom: 3rem;
    max-width: 450px;
}

.contact-methods {
    display: flex;
    flex-direction: column;
    gap: 1.8rem;
    margin-bottom: 2.5rem;
}

.contact-method-item {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
    padding: 1.5rem;
    background: #fcf9f2;
    border-radius: 15px;
    transition: var(--transition);
    border: 1px solid transparent;
}

.contact-method-item:hover {
    background: var(--white);
    border-color: var(--secondary-color);
    box-shadow: 0 10px 25px rgba(212, 163, 115, 0.08);
    transform: translateY(-3px);
}

.method-icon {
    font-size: 1.5rem;
    width: 50px;
    height: 50px;
    background: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.03);
}

.method-text span {
    display: block;
    font-weight: 700;
    font-family: 'Outfit', sans-serif;
    color: var(--primary-color);
    font-size: 0.9rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 0.4rem;
}

.method-text p {
    font-size: 1.05rem;
    color: var(--text-color);
    margin: 0;
}

.method-text a {
    color: var(--text-color);
    text-decoration: none;
    transition: var(--transition);
}

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

.social-wrapper p {
    font-weight: 600;
    margin-bottom: 1.2rem;
    color: var(--text-color);
}

.social-icons-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.social-icon-btn {
    height: 50px;
    padding: 0 1.2rem;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    border-radius: 12px;
    background: #f8f9fa;
    color: var(--text-color);
    text-decoration: none;
    transition: var(--transition);
    box-shadow: inset 0 0 0 1px #eee;
    font-weight: 500;
    font-size: 0.95rem;
    border: none;
}

.social-icon-btn span {
    white-space: nowrap;
}

.social-icon-btn:hover {
    transform: translateY(-5px);
    color: var(--white);
    box-shadow: none;
}

/* Platform Colors */
.social-icon-btn.instagram:hover { background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%); }
.social-icon-btn.telegram:hover { background: #0088cc; }
.social-icon-btn.whatsapp:hover { background: #25D366; }
.social-icon-btn.viber:hover { background: #7360f2; }

.map-wrapper {
    position: relative;
    height: 100%;
    min-height: 550px;
}

.map-container {
    width: 100%;
    height: 100%;
    border-radius: 30px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0,0,0,0.1);
}

#map {
    width: 100%;
    height: 100%;
}

/* Footer */
.footer {
    padding: 3rem 0;
    text-align: center;
    background: var(--bg-color);
    border-top: 1px solid rgba(0,0,0,0.05);
}

.footer p {
    color: var(--light-text);
    font-size: 0.9rem;
}

/* Mobile Responsive */
@media (max-width: 992px) {
    .container {
        padding: 0 1.2rem;
    }

    .header {
        padding: 1rem 0;
        transition: background 0.3s ease, padding 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    }

    .header.scrolled {
        padding: 0.7rem 0 !important;
    }

    .logo img {
        height: 32px; /* Fixed height for mobile */
        transition: height 0.3s ease;
    }

    .header.scrolled .logo img {
        height: 28px;
    }

    .nav-links-wrapper {
        position: fixed;
        top: 0;
        right: -100%;
        width: 70%;
        height: 100vh;
        background: var(--white);
        display: flex;
        flex-direction: column;
        justify-content: space-between; /* Push actions to the bottom */
        padding: 5rem 1.2rem 2.5rem;
        transition: 0.5s cubic-bezier(0.16, 1, 0.3, 1);
        box-shadow: -10px 0 40px rgba(0,0,0,0.05);
        z-index: 1001;
        overflow-y: auto;
        border-left: 1px solid rgba(0,0,0,0.05);
    }

    .nav-links-wrapper.active {
        right: 0;
    }

    .nav-links {
        display: flex;
        flex-direction: column;
        align-items: flex-start; /* Left align for more natural reading */
        gap: 1.8rem;             /* Tighter spacing */
        width: 100%;
        padding-left: 1rem;
    }

    .nav-links a {
        font-size: 1.2rem;
        color: var(--text-color) !important; /* Ensure visibility on mobile nav background */
        font-weight: 500;
        letter-spacing: 0.3px;
        transition: none !important; /* Prevent color animation issues in mobile drawer */
    }

    .mobile-nav-actions {
        display: flex;
        flex-direction: column;
        gap: 0.7rem;
        width: 100%;
        margin-top: 2rem;
        padding: 2rem 0.8rem 0;
        border-top: 1px solid rgba(0,0,0,0.05);
    }

    .mobile-nav-actions .btn-primary {
        display: block !important; /* Force show the record button */
    }

    .mobile-nav-actions .btn {
        width: 100%;
        text-align: center;
        padding: 0.85rem;
        font-size: 0.9rem;
    }

    /* Flat Mobile Navigation (No Dropdown) */
    .dropbtn {
        display: none !important;
    }

    .dropdown-content {
        position: static;
        display: flex !important;
        flex-direction: column;
        align-items: flex-start;
        gap: 1.8rem;
        box-shadow: none;
        background: transparent;
        width: 100%;
        margin-top: 1.8rem;
        animation: none;
    }

    .dropdown-content a {
        font-size: 1.2rem !important;
        padding: 0 !important;
        opacity: 1 !important;
    }

    .mobile-toggle {
        display: flex;
        flex-direction: column;
        gap: 6px;
        background: none;
        border: none;
        cursor: pointer;
        z-index: 1002;
    }

    .mobile-toggle .bar {
        width: 25px;
        height: 3px;
        background: var(--primary-color);
        border-radius: 2px;
        transition: 0.3s;
    }

    /* Hamburger Animation */
    .mobile-toggle.active .bar:nth-child(1) {
        transform: translateY(9px) rotate(45deg);
    }
    .mobile-toggle.active .bar:nth-child(2) {
        opacity: 0;
    }
    .mobile-toggle.active .bar:nth-child(3) {
        transform: translateY(-9px) rotate(-45deg);
    }

    .nav .btn-primary {
        display: none; /* Hide in nav on mobile, use hero button */
    }

    .hero {
        padding: 8rem 0 4rem;
    }

    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 3rem;
    }

    .hero-text h1 {
        font-size: 2.5rem;
    }

    .hero-btns {
        justify-content: center;
        flex-direction: column;
        gap: 1rem;
    }

    .hero-btns .btn {
        width: 100%;
    }

    .about-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 3rem;
    }

    .about-image {
        order: 2;
    }

    .about-text .section-title {
        text-align: center;
    }

    .about-text .section-title::after {
        left: 50%;
        transform: translateX(-50%);
    }

    .features-list {
        grid-template-columns: 1fr;
        text-align: left;
        max-width: 300px;
        margin: 2rem auto 0;
    }

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

    .contacts-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .contacts-content {
        text-align: center;
    }

    .contacts-subtitle {
        margin: 0 auto 3rem;
    }

    .contact-method-item {
        text-align: left;
    }

    .social-icons-grid {
        justify-content: center;
    }

    .map-wrapper {
        height: 400px;
    }

    /* Hide Altegio Floating Button on Mobile */
    .yButton,
    .y-widget-button, 
    #yclients-w-btn, 
    .yclients-widget-button {
        display: none !important;
    }
}

@media (max-width: 480px) {
    .hero-text h1 {
        font-size: 2rem;
    }

    .section-title {
        font-size: 1.8rem;
    }

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

    .gallery-extra {
        grid-template-columns: 1fr;
    }
}
