/* Global Styles & Variables */
:root {
    --primary-color: #f7f3f0;
    /* Warm cream/white background */
    --accent-color: #d4af37;
    /* Soft metallic gold/mustaza */
    --dark-color: #1a1a1a;
    /* Refined charcoal/negro */
    --text-muted: #555;
    --serif-font: 'Lora', serif;
    --sans-font: 'Montserrat', sans-serif;
    --transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 100px;
}

body {
    background-color: var(--primary-color);
    color: var(--dark-color);
    font-family: var(--sans-font);
    font-weight: 300;
    line-height: 1.6;
    overflow-x: hidden;
}

h1,
h2,
h3,
.serif-title {
    font-family: var(--serif-font);
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 2px;
}

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

/* --- Header / Navigation --- */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 1.5rem 2rem;
    transition: var(--transition);
    background: #000000;
    color: white;
}

/* header.scrolled {
    padding: 1rem 2rem;
    background: rgba(26, 26, 26, 0.95);
    color: rgba(255, 254, 254, 0.91);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
} */

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
}

.nav-links {
    display: flex;
    gap: 2rem;
    text-transform: uppercase;
    font-size: 1rem;
    letter-spacing: 2px;
}

.nav-links.right {
    justify-content: flex-end;
}

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

.logo {
    text-align: center;
}

.logo h1 {
    font-size: 1.8rem;
    margin-bottom: -5px;
    letter-spacing: 5px;
}

.logo span {
    font-size: 0.8rem;
    letter-spacing: 4px;
    opacity: 0.7;
}

/* --- Hero Section --- */
.hero {
    height: 100vh;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
}

.hero-content {
    max-width: 800px;
    padding: 0 20px;
}

.hero-title {
    font-size: 4.5rem;
    margin-bottom: 1.5rem;
    line-height: 1.1;
    animation: fadeInUp 1s ease-out;
}

.hero-subtitle {
    font-size: 1.2rem;
    margin-bottom: 3rem;
    letter-spacing: 1px;
    font-weight: 300;
    opacity: 0.9;
    animation: fadeInUp 1.5s ease-out;
}

.btn-ghost {
    padding: 1.2rem 2.5rem;
    border: 1px solid white;
    font-size: 0.9rem;
    letter-spacing: 2px;
    background: transparent;
    color: white;
    transition: var(--transition);
}

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

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* --- Intro Section --- */
.intro-section {
    padding: 120px 0;
    text-align: center;
    background-color: var(--primary-color);
    min-height: calc(100vh - 100px);
    display: flex;
    align-items: center;
    justify-content: center;
}

.container {
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px;
}

.section-tag {
    display: block;
    font-size: 0.7rem;
    letter-spacing: 4px;
    color: var(--accent-color);
    margin-bottom: 2rem;
}

.serif-title {
    font-size: 3rem;
    margin-bottom: 1.5rem;
}

.divider {
    width: 60px;
    height: 1px;
    background-color: var(--accent-color);
    margin: 2rem auto;
}

.intro-text {
    font-size: 1.2rem;
    color: var(--text-muted);
    font-style: italic;
    max-width: 700px;
    margin: 0 auto;
}

.services-list {
    list-style-type: none;
    max-width: 800px;
    margin: 3rem auto 0;
    text-align: left;
}

.services-list li {
    font-size: 1.1rem;
    color: var(--dark-color);
    padding: 1rem 0;
    border-bottom: 1px solid rgba(0,0,0,0.05);
    display: flex;
    align-items: center;
}

.services-list li:last-child {
    border-bottom: none;
}

.services-list li::before {
    content: "•";
    color: var(--accent-color);
    font-size: 1.5rem;
    margin-right: 15px;
}

.services-list li strong {
    font-weight: 600;
    margin-right: 8px;
    color: var(--accent-color);
}

/* --- Image Grids --- */
.image-grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    height: 600px;
}

.grid-item {
    background-size: cover;
    background-position: center;
    transition: var(--transition);
}

.grid-item:hover {
    filter: brightness(0.8);
}

.dynamic-gallery {
    padding: 120px 0;
    min-height: calc(100vh - 100px);
    display: flex;
    align-items: center;
    justify-content: center;
}

.gallery-container {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    grid-auto-rows: 400px;
    max-width: 1600px;
    margin: 0 auto;
}

.gallery-block {
    background-size: cover;
    background-position: center;
}

.text-block {
    grid-column: span 2;
    padding: 4rem;
    background-color: #fff;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.serif-sub {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.ebook-list {
    list-style: none;
    margin-bottom: 1rem;
}

.ebook-list li {
    font-size: 1.1rem;
    margin-bottom: 0.8rem;
    color: var(--text-muted);
}

.ebook-list li span {
    color: var(--accent-color);
    font-weight: bold;
    margin-right: 8px;
}

.link-more {
    margin-top: 2rem;
    font-size: 0.8rem;
    letter-spacing: 2px;
    border-bottom: 1px solid var(--accent-color);
    display: inline-block;
    padding-bottom: 5px;
}

.history-text {
    text-align: justify;
    font-size: 1.1rem;
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: 2rem;
}

/* --- Beautiful Gallery Section --- */
.beautiful-gallery {
    padding: 120px 0;
    background-color: var(--primary-color);
}

.gallery-header {
    text-align: center;
    margin-bottom: 4rem;
}

.masonry-grid {
    column-count: 3;
    column-gap: 15px;
    padding: 0 15px;
    max-width: 1400px;
    margin: 0 auto;
}

.masonry-item {
    break-inside: avoid;
    margin-bottom: 15px;
    position: relative;
    overflow: hidden;
    border-radius: 4px;
    cursor: pointer;
}

.masonry-item img {
    width: 100%;
    display: block;
    transition: transform 0.8s ease, filter 0.8s ease;
    filter: brightness(0.9) grayscale(10%);
}

.masonry-item:hover img {
    transform: scale(1.03);
    filter: brightness(1) grayscale(0%);
}

@media (max-width: 1024px) {
    .masonry-grid {
        column-count: 2;
    }
}

@media (max-width: 768px) {
    .masonry-grid {
        column-count: 1;
    }
}

/* --- Testimonials --- */
.testimonials {
    background-color: #fff;
    padding: 120px 0;
}

.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 4rem;
}

.testimonial-card {
    text-align: center;
    padding: 2rem;
}

.quote {
    font-family: var(--serif-font);
    font-size: 4rem;
    color: var(--accent-color);
    line-height: 1;
    display: block;
    margin-bottom: -1rem;
}

.testimonial-card p {
    font-style: italic;
    margin-bottom: 2rem;
    color: var(--text-muted);
}

.author {
    display: block;
    font-size: 0.8rem;
    letter-spacing: 2px;
    font-weight: 600;
    text-transform: uppercase;
}

/* --- Footer CTA --- */
.main-footer {
    min-height: calc(100vh - 100px);
    height: auto;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    text-align: center;
    color: white;
    padding-top: 80px;
    padding-bottom: 40px;
}

.footer-content h2 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.cta-large {
    display: block;
    font-size: 2rem;
    margin: 3rem 0;
    font-weight: 400;
    letter-spacing: 3px;
    color: var(--accent-color);
}

/* --- Contact Form --- */
.form-container {
    max-width: 600px;
    width: 100%;
    margin: 0 auto;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 1rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 0.8rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    font-family: var(--sans-font);
    font-size: 0.9rem;
    outline: none;
    transition: var(--transition);
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.contact-form input:focus,
.contact-form textarea:focus {
    border-color: var(--accent-color);
    background: rgba(255, 255, 255, 0.15);
}

.btn-submit {
    margin-top: 10px;
    width: 100%;
    cursor: pointer;
    font-weight: 600;
}

.direct-contact {
    font-size: 0.9rem;
    opacity: 0.8;
    margin-bottom: 1.5rem;
}
.direct-contact strong {
    color: var(--accent-color);
    letter-spacing: 2px;
}

.footer-bottom {
    margin-top: auto;
    margin-bottom: 20px;
    width: 100%;
    display: flex;
    flex-direction: column-reverse;
    gap: 1.5rem;
    justify-content: center;
    padding: 0;
    align-items: center;
    font-size: 0.75rem;
    letter-spacing: 2px;
}

.footer-bottom p {
    opacity: 0.4;
    font-size: 0.65rem;
    text-align: center;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-btn {
    border: 1px solid rgba(255, 255, 255, 0.4);
    padding: 0.6rem 1.2rem;
    border-radius: 30px;
    transition: var(--transition);
}

.social-btn:hover {
    background-color: var(--accent-color);
    border-color: var(--accent-color);
    color: var(--dark-color);
}

/* --- Floating Button --- */
.btn-fixed-reserve {
    position: fixed;
    bottom: 40px;
    right: 40px;
    z-index: 999;
    background-color: var(--accent-color);
    color: white;
    padding: 1.2rem 2rem;
    font-size: 0.8rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    transition: var(--transition);
}

.btn-fixed-reserve:hover {
    background-color: var(--dark-color);
    transform: translateY(-5px);
}

/* Responsive */
@media (max-width: 1024px) {
    .nav-links {
        gap: 1rem;
    }

    .hero-title {
        font-size: 3rem;
    }

    .image-grid-3 {
        height: 400px;
    }

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

    .testimonial-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

@media (max-width: 768px) {
    html {
        scroll-padding-top: 150px;
    }

    header {
        padding: 1rem 1.5rem;
    }

    .hero,
    .main-footer {
        background-attachment: scroll;
    }

    .history-text {
        text-align: left;
    }

    .hero-title {
        font-size: 2.2rem;
    }

    .serif-title {
        font-size: 2rem;
    }

    .serif-sub {
        font-size: 1.8rem;
    }
    
    .nav-container {
        display: flex;
        flex-direction: column;
        gap: 10px;
        align-items: center;
    }

    .nav-links {
        display: flex;
        font-size: 0.75rem;
        gap: 1rem;
        flex-wrap: wrap;
        justify-content: center;
    }

    .logo {
        order: -1;
        margin-bottom: 10px;
    }

    .logo h1 {
        font-size: 1.2rem;
    }

    .intro-section {
        display: block;
        padding: 60px 0 80px;
        height: auto;
        min-height: auto;
    }

    .dynamic-gallery {
        display: block;
        padding: 60px 0 80px;
        height: auto;
        min-height: auto;
        background-color: #fff;
    }

    .main-footer {
        display: block;
        padding-top: 40px;
        padding-bottom: 40px;
        height: auto;
        min-height: auto;
    }

    .footer-content h2 {
        font-size: 2rem;
    }

    .image-grid-3 {
        grid-template-columns: 1fr;
        height: auto;
    }

    .grid-item {
        height: 250px;
    }

    .gallery-container {
        display: flex;
        flex-direction: column;
    }

    .gallery-block.image-block {
        height: 250px;
    }

    .text-block {
        padding: 3rem 1.5rem;
    }

    .cta-large {
        font-size: 1rem;
        word-break: break-all;
    }

    .footer-bottom {
        padding: 0 1.5rem 100px;
    }

    .social-links {
        flex-wrap: wrap;
        justify-content: center;
        gap: 0.8rem;
    }

    .social-btn {
        padding: 0.5rem 1rem;
        font-size: 0.65rem;
    }

    .btn-fixed-reserve {
        bottom: 20px;
        right: 20px;
        padding: 0.8rem 1.5rem;
        font-size: 0.7rem;
    }

    .form-row {
        grid-template-columns: 1fr;
    }
}