/* --- Design System & Reset --- */
:root {
    /* Palette */
    --color-graphite: #1F1F1F;
    --color-grey-medium: #2E2E2E;
    --color-grey-light: #4A4A4A;
    --color-offwhite: #F5F4F2;
    --color-white: #FFFFFF;
    --color-gold: #C6B48A;
    --color-gold-dark: #A5926B;
    --color-moss: #2F4F4F;

    /* Spacing */
    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 2rem;
    --space-lg: 4rem;
    --space-xl: 8rem;

    /* Typography */
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Lato', sans-serif;

    /* Border Radius */
    --radius-sm: 4px;
    --radius-md: 8px;

    /* Transitions */
    --transition-fast: 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background-color: var(--color-graphite);
    color: var(--color-offwhite);
    line-height: 1.6;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--color-offwhite);
    line-height: 1.2;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-fast);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

/* --- Utilities --- */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-md);
}

.section {
    padding: var(--space-xl) 0;
}

.section-alt {
    padding: var(--space-xl) 0;
    background-color: var(--color-grey-medium);
}

/* --- Buttons --- */
.btn-primary {
    display: inline-block;
    background-color: var(--color-gold);
    color: var(--color-graphite);
    padding: 1rem 2rem;
    border-radius: var(--radius-sm);
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    font-size: 0.9rem;
    border: 1px solid var(--color-gold);
}

.btn-primary:hover {
    background-color: transparent;
    color: var(--color-gold);
}

.btn-primary-outline {
    display: inline-block;
    background-color: transparent;
    color: var(--color-gold);
    border: 1px solid var(--color-gold);
    padding: 0.8rem 1.6rem;
    border-radius: var(--radius-sm);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.85rem;
}

.btn-primary-outline:hover {
    background-color: var(--color-gold);
    color: var(--color-graphite);
}

.btn-text {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--color-offwhite);
    font-weight: 600;
    border-bottom: 1px solid transparent;
}

.btn-text:hover {
    border-bottom-color: var(--color-gold);
    color: var(--color-gold);
}

.btn-sm {
    padding: 0.5rem 1.2rem;
    font-size: 0.8rem;
}

/* --- Header --- */
.header {
    padding: var(--space-md) 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    background-color: rgba(31, 31, 31, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    color: var(--color-gold);
    font-weight: 700;
}

.nav-list {
    display: flex;
    align-items: center;
    gap: var(--space-md);
}

.nav {
    display: flex;
    align-items: center;
    gap: var(--space-md);
}

.nav-list a {
    font-size: 0.95rem;
    color: var(--color-offwhite);
}

.nav-list a:hover {
    color: var(--color-gold);
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    flex-direction: column;
    gap: 6px;
}

.menu-toggle span {
    display: block;
    width: 25px;
    height: 2px;
    background-color: var(--color-gold);
    transition: var(--transition-fast);
}

/* --- Hero Section --- */
/* --- Hero Section --- */
.hero {
    height: 100vh;
    min-height: 700px;
    display: flex;
    align-items: center;
    position: relative;
    padding-top: 80px;
    background-image: url('assets/hero_abstract.png');
    background-size: cover;
    background-position: center;
    overflow: hidden;
}

/* Dark overlay for readability */
.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(20, 20, 20, 0.95), rgba(20, 20, 20, 0.7));
    z-index: 1;
}

.hero-content {
    max-width: 700px;
    z-index: 2;
    position: relative;
}

.eyebrow {
    display: block;
    color: var(--color-gold);
    font-family: var(--font-body);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.85rem;
    margin-bottom: var(--space-sm);
    opacity: 0;
    animation: fadeUp 0.8s ease forwards 0.2s;
}

.hero-title {
    font-size: 3.5rem;
    margin-bottom: var(--space-md);
    opacity: 0;
    animation: fadeUp 0.8s ease forwards 0.4s;
}

.hero-title em {
    font-style: italic;
    color: var(--color-gold);
    font-weight: 400;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: #CCC;
    margin-bottom: var(--space-lg);
    max-width: 600px;
    font-weight: 300;
    opacity: 0;
    animation: fadeUp 0.8s ease forwards 0.6s;
}

.hero-actions {
    display: flex;
    gap: var(--space-md);
    align-items: center;
    opacity: 0;
    animation: fadeUp 0.8s ease forwards 0.8s;
}

/* Scroll Indication Arrow */
.scroll-down-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    color: var(--color-gold);
    opacity: 0.7;
    transition: var(--transition-fast);
    animation: bounce 2s infinite;
}

.scroll-down-indicator:hover {
    color: var(--color-white);
    opacity: 1;
}

/* --- Animations --- */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateX(-50%) translateY(0);
    }

    40% {
        transform: translateX(-50%) translateY(10px);
    }

    60% {
        transform: translateX(-50%) translateY(5px);
    }
}

/* --- Responsive --- */
@media (max-width: 900px) {
    .hero-content {
        margin: 0 auto;
        text-align: center;
    }

    .hero-actions {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .nav {
        display: flex;
        flex-direction: column;
        position: fixed;
        top: 80px;
        left: 0;
        width: 100%;
        height: calc(100vh - 80px);
        background-color: var(--color-graphite);
        padding: var(--space-lg);
        align-items: flex-start;
        border-top: 1px solid rgba(255, 255, 255, 0.05);

        /* Hidden State */
        opacity: 0;
        visibility: hidden;
        transform: translateY(-20px);
        transition: all 0.4s ease-in-out;
        z-index: 998;
    }

    .menu-toggle {
        display: flex;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero {
        padding-top: 60px;
        height: auto;
        min-height: 100vh;
        padding-bottom: var(--space-xl);
        /* Add space for stacked content */
    }

    .hero-actions {
        flex-direction: column;
        align-items: center;
        /* Center align on mobile */
    }
}

/* --- About Section --- */
.about-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-lg);
    align-items: center;
}

.image-wrapper-luxury {
    width: 100%;
    position: relative;
    border-radius: var(--radius-md);
}

.image-wrapper-luxury::after {
    content: '';
    position: absolute;
    top: 20px;
    left: 20px;
    right: -20px;
    bottom: -20px;
    border: 1px solid var(--color-gold);
    z-index: -1;
    border-radius: var(--radius-md);
    transition: var(--transition-fast);
}

.about-photo {
    width: 100%;
    height: auto;
    border-radius: var(--radius-md);
    display: block;
    filter: grayscale(20%);
    /* Artistic touch */
    transition: var(--transition-fast);
}

.about-photo:hover {
    filter: grayscale(0%);
}

.image-wrapper-luxury:hover::after {
    top: 15px;
    left: 15px;
    right: -15px;
    bottom: -15px;
}

.about-text h2 {
    font-size: 2.5rem;
    margin-bottom: var(--space-sm);
    color: var(--color-offwhite);
}

.lead {
    font-size: 1.1rem;
    font-weight: 300;
    margin-bottom: var(--space-md);
    color: #DDD;
}

.credentials-list {
    margin: var(--space-md) 0;
    padding-left: var(--space-sm);
    border-left: 2px solid var(--color-gold);
}

.credentials-list li {
    margin-bottom: 0.5rem;
    color: #CCC;
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-sm);
    margin-top: var(--space-md);
}

.value-item h4 {
    font-size: 0.9rem;
    color: var(--color-gold);
    margin-bottom: 0.2rem;
}

.value-item p {
    font-size: 0.8rem;
    color: #AAA;
}

/* --- Approach Section --- */
.center {
    text-align: center;
    max-width: 700px;
    margin: 0 auto var(--space-lg);
}

.section-subtitle {
    font-size: 1.1rem;
    color: #CCC;
    font-weight: 300;
}

.approach-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-md);
}

.approach-card {
    background-color: rgba(255, 255, 255, 0.03);
    padding: var(--space-md);
    border-radius: var(--radius-md);
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: var(--transition-fast);
}

.approach-card:hover {
    transform: translateY(-5px);
    border-color: var(--color-gold);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.card-icon {
    font-family: var(--font-heading);
    font-size: 3rem;
    color: rgba(198, 180, 138, 0.2);
    /* Low opacity gold */
    line-height: 1;
    margin-bottom: var(--space-sm);
}

.approach-card h3 {
    font-size: 1.25rem;
    margin-bottom: var(--space-sm);
}

.approach-card p {
    font-size: 0.95rem;
    color: #BBB;
}

/* --- Mobile Menu State --- */
.nav.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.nav.active .nav-list {
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
    margin-bottom: var(--space-md);
}

.nav.active .nav-list li {
    font-size: 1.2rem;
    width: 100%;
}

.nav.active .btn-primary-outline {
    width: 100%;
    text-align: center;
}

.menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 6px);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -6px);
}

/* --- Mobile Queries Update --- */
@media (max-width: 768px) {
    .about-container {
        grid-template-columns: 1fr;
    }

    .approach-grid {
        grid-template-columns: 1fr;
    }

    .values-grid {
        grid-template-columns: 1fr;
    }

    .image-placeholder-luxury {
        height: 300px;
    }
}

/* --- Services Section --- */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--space-md);
}

.service-card {
    background-color: var(--color-grey-medium);
    padding: var(--space-md);
    border-radius: var(--radius-md);
    border: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: var(--transition-fast);
}

.service-card:hover {
    border-color: var(--color-gold);
}

.service-card h3 {
    font-size: 1.35rem;
    margin-bottom: 0.5rem;
    color: var(--color-offwhite);
}

.service-type {
    font-size: 0.8rem;
    color: var(--color-gold);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: var(--space-sm);
    font-weight: 700;
}

.service-card p {
    font-size: 0.95rem;
    color: #CCC;
    margin-bottom: var(--space-md);
}

.btn-link {
    font-size: 0.9rem;
    color: var(--color-gold);
    font-weight: 600;
}

.btn-link:hover {
    text-decoration: underline;
}

/* --- Testimonials --- */
.testimonials-slider {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--space-md);
}

.testimonial-card {
    background-color: var(--color-graphite);
    padding: var(--space-md);
    border-radius: var(--radius-md);
    border-left: 3px solid var(--color-gold);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.testimonial-card p {
    font-style: italic;
    color: #DDD;
    margin-bottom: var(--space-sm);
    font-family: var(--font-heading);
    font-size: 1.1rem;
}

.author {
    display: block;
    font-size: 0.85rem;
    color: #888;
    text-align: right;
}

/* --- Articles --- */
.articles-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-md);
}

.article-card {
    background-color: var(--color-grey-medium);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: var(--transition-fast);
    border: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    flex-direction: column;
}

.article-card:hover {
    transform: translateY(-5px);
    border-color: var(--color-gold);
}

.article-content {
    padding: var(--space-md);
    flex: 1;
    display: flex;
    flex-direction: column;
}

.category {
    font-size: 0.75rem;
    color: var(--color-gold);
    text-transform: uppercase;
    margin-bottom: 0.5rem;
}

.article-card h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    line-height: 1.3;
}

.article-card p {
    font-size: 0.9rem;
    color: #CCC;
    margin-bottom: var(--space-md);
    flex-grow: 1;
}

.read-more {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--color-offwhite);
    border-bottom: 1px solid var(--color-offwhite);
    align-self: flex-start;
}

.read-more:hover {
    color: var(--color-gold);
    border-bottom-color: var(--color-gold);
}

/* --- Responsive Update for New Sections --- */
@media (max-width: 768px) {
    .articles-grid {
        grid-template-columns: 1fr;
    }
}

/* --- Booking Section --- */
.booking-container {
    max-width: 600px;
    margin: 0 auto;
    background-color: var(--color-graphite);
    padding: var(--space-md);
    border-radius: var(--radius-md);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.form-group {
    margin-bottom: var(--space-sm);
}

.form-row {
    display: flex;
    gap: var(--space-sm);
}

.form-row .form-group {
    flex: 1;
}

label {
    display: block;
    margin-bottom: 0.3rem;
    font-size: 0.9rem;
    color: #CCC;
}

input[type="text"],
input[type="email"],
input[type="tel"],
select {
    width: 100%;
    padding: 0.8rem;
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-sm);
    color: var(--color-offwhite);
    font-family: var(--font-body);
    font-size: 0.95rem;
}

input:focus,
select:focus {
    outline: none;
    border-color: var(--color-gold);
}

.checkbox-group {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    margin-bottom: var(--space-md);
}

.checkbox-group input {
    margin-top: 0.3rem;
}

.checkbox-group label {
    font-size: 0.8rem;
    color: #888;
}

/* Success Message */
.hidden {
    display: none !important;
}

.form-success {
    text-align: center;
    padding: var(--space-md);
}

.success-icon {
    width: 60px;
    height: 60px;
    background-color: var(--color-moss);
    color: var(--color-white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin: 0 auto var(--space-sm);
}

.form-success h3 {
    margin-bottom: var(--space-sm);
}

/* --- Contact & Footer --- */
.contact-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-lg);
    align-items: center;
}

.contact-list {
    margin: var(--space-md) 0;
}

.contact-list li {
    margin-bottom: 0.8rem;
    color: #CCC;
}

.contact-list strong {
    color: var(--color-gold);
}

.contact-actions {
    display: flex;
    gap: var(--space-sm);
}

.footer {
    background-color: #111;
    padding: var(--space-md) 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 0.8rem;
    color: #666;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    margin-bottom: var(--space-sm);
}

.footer-logo {
    color: var(--color-gold);
    font-weight: 700;
}

#adminLink {
    text-decoration: none;
    color: #333;
    transition: 0.3s;
}

#adminLink:hover {
    color: #555;
}

/* --- Modal & Admin --- */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    z-index: 2000;
    display: flex;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(5px);
}

.modal-content {
    background-color: var(--color-graphite);
    width: 90%;
    max-width: 900px;
    max-height: 90vh;
    border-radius: var(--radius-md);
    padding: var(--space-md);
    border: 1px solid var(--color-gold);
    overflow-y: auto;
    position: relative;
}

.close-modal {
    position: absolute;
    top: 10px;
    right: 20px;
    font-size: 2rem;
    cursor: pointer;
    color: #FFF;
}

.appointments-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: var(--space-sm);
}

.appointments-table th,
.appointments-table td {
    border: 1px solid #444;
    padding: 0.5rem;
    text-align: left;
    font-size: 0.85rem;
}

.appointments-table th {
    background-color: var(--color-grey-medium);
    color: var(--color-gold);
}

.status-Agendado {
    color: #FFF;
    background-color: goldenrod;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.7rem;
}

.status-Realizado {
    color: #FFF;
    background-color: var(--color-moss);
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.7rem;
}

.status-Cancelado {
    color: #FFF;
    background-color: #a00;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.7rem;
}

.admin-controls {
    display: flex;
    gap: var(--space-sm);
    margin-bottom: var(--space-sm);
}

/* --- Float WA --- */
@keyframes pulse-green {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
    }

    70% {
        transform: scale(1.05);
        box-shadow: 0 0 0 15px rgba(37, 211, 102, 0);
    }

    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
    }
}

.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: #25D366;
    color: #FFF;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    z-index: 999;
    animation: pulse-green 2s infinite;
}

.whatsapp-float:hover {
    transform: scale(1.1);
}

/* --- Mobile Queries Update --- */
@media (max-width: 768px) {
    .contact-container {
        grid-template-columns: 1fr;
    }

    .form-row {
        flex-direction: column;
    }
}