/* style.css */

/* --- Variables --- */
:root {
    /* Colors */
    --color-primary: #4E1B2B;        /* Vinho/Bordô Dominante */
    --color-gold: #C9A063;           /* Dourado Logo/Champagne */
    --color-gold-dark: #B38B4D;      /* Dourado Destaque (Botões/CTA) */
    --color-off-white: #F5F5F5;      /* Off-White */
    --color-nude: #D8B4A6;           /* Nude Rosado */
    --color-gray: #7A6A64;           /* Cinza Warm / Taupe */
    --color-text-dark: #332B29;      /* Textos mais escuros */
    
    /* Typography */
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Inter', sans-serif;

    /* Spacing & Sizes */
    --transition: 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    --border-radius: 8px;
    --shadow-soft: 0 10px 30px rgba(78, 27, 43, 0.08);
}

/* --- Reset & Base --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    color: var(--color-text-dark);
    background-color: var(--color-off-white);
    line-height: 1.6;
    overflow-x: hidden;
}

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

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

ul {
    list-style: none;
}

/* --- Typography --- */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--color-primary);
    line-height: 1.2;
    margin-bottom: 1rem;
}

p {
    margin-bottom: 1rem;
}

.text-center { text-align: center; }
.text-white { color: #fff; }
.text-offwhite { color: var(--color-off-white); }
.text-gold { color: var(--color-gold); }
.mb-4 { margin-bottom: 1.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-4 { margin-top: 2rem; }
.mt-5 { margin-top: 3rem; }

/* --- Utility Classes --- */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.container-sm {
    max-width: 800px;
}

.section {
    padding: 6rem 0;
}

.bg-primary { background-color: var(--color-primary); }
.bg-nude { background-color: var(--color-nude); }

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

/* Grid System */
.grid {
    display: grid;
    gap: 3rem;
}

.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.align-center { align-items: center; }

/* --- Buttons --- */
.btn {
    display: inline-block;
    padding: 0.8rem 1.8rem;
    font-weight: 500;
    font-size: 1rem;
    border-radius: var(--border-radius);
    cursor: pointer;
    text-align: center;
    border: 2px solid transparent;
}

.btn-large {
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
}

.btn-full {
    display: block;
    width: 100%;
}

.btn-primary {
    background-color: var(--color-gold-dark);
    color: #fff;
}

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

.shadow-gold {
    box-shadow: 0 10px 20px rgba(201, 160, 99, 0.3);
}

.btn-outline {
    background-color: transparent;
    border-color: var(--color-gold);
    color: var(--color-gold);
}

.btn-outline:hover {
    background-color: var(--color-gold);
    color: #fff;
}

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

.btn-outline-dark:hover {
    background-color: var(--color-primary);
    color: var(--color-off-white);
}

/* --- Header --- */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(78, 27, 43, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 1rem 0;
    transition: var(--transition);
}

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

.logo h2 {
    color: var(--color-gold);
    margin: 0;
    font-size: 1.5rem;
    font-weight: 600;
}

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

.nav-link {
    color: var(--color-off-white);
    font-weight: 400;
    font-size: 0.95rem;
}

.nav-link:hover {
    color: var(--color-gold);
}

.nav-close {
    display: none;
}

.nav-toggle {
    display: none;
    color: var(--color-gold);
    font-size: 1.5rem;
    cursor: pointer;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

/* --- Hero New (Clean and Responsive) --- */
.hero-new {
    padding-top: 6rem;
    background-color: #fff;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.banner-container {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    overflow: hidden;
}

.hero-banner-img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: contain; /* Ensures slogan is never cut */
}

.hero-cta-area {
    padding: 3rem 0;
    width: 100%;
    background: linear-gradient(to bottom, #ffffff, var(--color-off-white));
    display: flex;
    justify-content: center;
}

/* --- Sobre a Clínica --- */
.about-section {
    background-color: var(--color-off-white);
    padding: 8rem 0;
}

.about-img-wrap {
    position: relative;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-soft);
}

.about-img {
    width: 100%;
    height: 600px;
    object-fit: cover;
}

.about-text p {
    font-size: 1.1rem;
    color: var(--color-gray);
    margin-bottom: 2rem;
}

.about-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.badge {
    padding: 0.5rem 1.2rem;
    background-color: var(--color-nude);
    color: var(--color-primary);
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    border: 1px solid rgba(78, 27, 43, 0.1);
}

/* --- Gallery Section --- */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    margin-top: 3rem;
}

.gallery-item {
    position: relative;
    border-radius: var(--border-radius);
    overflow: hidden;
    height: 300px;
    box-shadow: var(--shadow-soft);
    transition: var(--transition);
}

.gallery-item:hover {
    transform: scale(1.02);
    box-shadow: 0 15px 30px rgba(78, 27, 43, 0.15);
}

.gallery-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

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

/* --- Procedimentos --- */
.section-header {
    margin-bottom: 4rem;
}

.section-title {
    font-size: 2.5rem;
    position: relative;
    padding-bottom: 1rem;
}

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

.text-left .section-title::after,
.hn-content .section-title::after,
.contact-info .section-title::after {
    left: 0;
    transform: none;
}

.section-description {
    color: var(--color-gray);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

.card-service {
    background-color: #fff;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    transition: var(--transition);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.card-service:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(78, 27, 43, 0.15);
}

.card-img-wrap {
    width: 100%;
    height: 250px;
    overflow: hidden;
}

.card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.card-service:hover .card-img {
    transform: scale(1.05);
}

.card-content {
    padding: 2rem;
    flex-grow: 1;
}

.card-title {
    font-size: 1.4rem;
    margin-bottom: 1rem;
}

.card-text {
    color: var(--color-gray);
    font-size: 0.95rem;
    margin: 0;
}

/* --- Hair & Nails --- */
.subtitle-gold {
    color: var(--color-gold);
    font-family: var(--font-body);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
}

.hn-images {
    position: relative;
    height: 450px;
}

.img-box {
    position: absolute;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-soft);
}

.img-1 {
    width: 65%;
    height: 300px;
    top: 0;
    right: 0;
    z-index: 2;
}

.img-2 {
    width: 60%;
    height: 280px;
    bottom: 0;
    left: 0;
    z-index: 3;
    border: 8px solid var(--color-nude);
}

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

/* --- Diferenciais (Enhanced with cards) --- */
.diff-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.card-diff {
    background-color: #fff;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    display: flex;
    flex-direction: column;
    text-align: left;
    transition: var(--transition);
}

.card-diff:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}

.diff-img-wrap {
    width: 100%;
    height: 180px;
    overflow: hidden;
}

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

.diff-content {
    padding: 1.5rem;
}

.diff-title {
    font-size: 1.15rem;
    margin-bottom: 0.5rem;
    color: var(--color-primary);
}

.diff-desc {
    color: var(--color-gray);
    font-size: 0.9rem;
    line-height: 1.4;
    margin: 0;
}

.callout-box {
    background-color: var(--color-primary);
    padding: 2rem;
    border-radius: var(--border-radius);
    display: inline-block;
}

.callout-text {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-style: italic;
    color: var(--color-gold);
    margin: 0;
}

/* --- Localizacao & Footer --- */
.contact-info .section-title {
    margin-bottom: 2rem;
}

.info-block {
    margin-bottom: 1.5rem;
}

.info-block h4 {
    margin-bottom: 0.5rem;
    font-family: var(--font-body);
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
}

.info-block p {
    font-size: 1.1rem;
    margin: 0;
}

.map-container {
    border-radius: var(--border-radius);
    overflow: hidden;
    height: 400px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
}

.footer {
    background-color: #3b1421; /* Darker vinho */
    padding: 2rem 0;
}
.footer p {
    margin: 0;
    font-size: 0.9rem;
    color: rgba(245, 245, 245, 0.6);
}

/* --- Animations (Reveal) --- */
[data-reveal] {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

[data-reveal="left"] { transform: translateX(-30px); }
[data-reveal="right"] { transform: translateX(30px); }

[data-reveal].active {
    opacity: 1;
    transform: translate(0);
}

[data-reveal="delay-1"] { transition-delay: 0.2s; }
[data-reveal="delay-2"] { transition-delay: 0.4s; }

/* --- Responsive --- */
@media screen and (max-width: 992px) {
    .grid-3 { grid-template-columns: repeat(2, 1fr); }
    .hero-title { font-size: 2.8rem; }
    .hn-images { height: 400px; }
}

@media screen and (max-width: 768px) {
    .grid-2, .grid-3, .diff-list { grid-template-columns: 1fr; }
    
    .header-actions .btn {
        display: none; /* Hide button on mobile header, keep hamburger */
    }
    
    .nav-toggle {
        display: block;
    }
    
    .nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 300px;
        height: 100vh;
        background-color: var(--color-primary);
        padding: 4rem 2rem;
        transition: 0.4s ease-in-out;
        box-shadow: -5px 0 20px rgba(0,0,0,0.1);
        z-index: 1001;
    }
    
    .nav.show-menu {
        right: 0;
    }
    
    .nav-list {
        flex-direction: column;
        gap: 1.5rem;
    }
    
    .nav-close {
        display: block;
        position: absolute;
        top: 1.5rem;
        right: 1.5rem;
        color: var(--color-gold);
        font-size: 1.5rem;
        cursor: pointer;
    }
    
    .hero-title { font-size: 2.2rem; }
    .hero { padding-top: 6rem; text-align: center; }
    .hero-content { margin: 0 auto; }
    
    .hn-content { text-align: center; }
    .hn-content .section-title::after { left: 50%; transform: translateX(-50%); }
    .hn-images { order: -1; margin-bottom: 2rem; height: 350px; }
    
    .map-container { height: 300px; margin-top: 2rem; }
}

@media screen and (max-width: 992px) {
    .gallery-grid { grid-template-columns: repeat(2, 1fr); }
}

@media screen and (max-width: 576px) {
    .gallery-grid { grid-template-columns: 1fr; }
}
