:root {
    --primary-color: #ac7339;
    --primary-hover: #8f5d2b;
    --bg-color: #faf7f2;
    --text-main: #4a4a4a;
    --text-muted: #7a7a7a;
    --card-bg: #ffffff;
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

body {
    background-color: var(--bg-color);
    color: var(--text-main);
    line-height: 1.7;
    overflow-x: hidden;
}

/* Header Removed - Mobile App Layout */

.logo img:hover {
    transform: scale(1.05);
}

/* App Views */
.app-view:not(.active) {
    display: none !important;
}

.app-view.active {
    animation: fadeIn 0.4s ease;
    padding-bottom: 100px !important; /* Space for bottom nav */
}

/* Bottom Navigation */
.bottom-nav {
    position: fixed;
    bottom: 0;
    width: 100%;
    background-color: #ffffff;
    display: flex;
    justify-content: space-around;
    padding: 12px 0 15px;
    box-shadow: 0 -2px 15px rgba(0,0,0,0.08);
    z-index: 1000;
    border-top: 1px solid rgba(0,0,0,0.05);
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: var(--text-muted);
    font-size: 0.75rem;
    gap: 6px;
    transition: color 0.3s;
    flex: 1;
}

.nav-item i {
    font-size: 1.4rem;
    margin-bottom: 2px;
}

.nav-item.active {
    color: var(--primary-color);
}


/* Hero Section */
.hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding: 1.5rem 5% 2rem;
    text-align: center;
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
}

.hero-logo {
    width: 90px;
    height: 90px;
    object-fit: cover;
    border-radius: 50%;
    box-shadow: 0 5px 20px rgba(172, 115, 57, 0.2);
    margin-bottom: 0.5rem;
    animation: fadeInDown 1s ease;
}

.stylized-title {
    font-family: 'Dancing Script', cursive;
    font-size: 2.2rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
    animation: fadeInDown 1s ease 0.1s both;
}

.confirmation-box {
    background: var(--card-bg);
    padding: 1.2rem;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    margin-bottom: 1.5rem;
    max-width: 600px;
    width: 100%;
    border: 1px solid rgba(172, 115, 57, 0.15);
    animation: fadeInUp 1s ease 0.2s both;
}

.confirmation-box h2 {
    color: var(--text-main);
    margin-bottom: 0.5rem;
    font-family: 'Playfair Display', serif;
    font-size: 1.6rem;
}

.btn-confirmar {
    background-color: #25D366; /* WhatsApp Green */
    color: white;
    text-decoration: none;
    padding: 0.8rem 1.5rem;
    border-radius: 50px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-size: 1.1rem;
    margin-top: 1rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3);
}

.btn-confirmar:hover {
    background-color: #1ebe56;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.4);
}

.video-title {
    font-family: 'Playfair Display', serif;
    color: var(--text-main);
    font-size: 1rem;
    margin-bottom: 0.5rem;
    animation: fadeInUp 1s ease 0.4s both;
}

.video-container {
    width: 100%;
    max-width: 500px;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
    margin-bottom: 1rem;
    animation: zoomIn 1s ease 0.4s both;
    position: relative;
    background: #000;
    aspect-ratio: 16/9;
}

.video-container video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.location-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.8rem 1.5rem;
    background-color: var(--card-bg);
    color: var(--primary-color);
    text-decoration: none;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    transition: var(--transition);
    animation: fadeInUp 1s ease 0.6s both;
    border: 1px solid rgba(172, 115, 57, 0.2);
}

.location-link:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(172, 115, 57, 0.2);
    background-color: var(--primary-color);
    color: white;
}

.location-link i {
    font-size: 1.2rem;
}

/* Services Section */
.services-section {
    padding: 3rem 5% 6rem;
    background-color: var(--bg-color);
}

.section-title {
    text-align: center;
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    margin-bottom: 0.5rem;
    color: var(--text-main);
    font-weight: 600;
}

.section-subtitle {
    text-align: center;
    color: var(--text-muted);
    margin: 0 auto 2.5rem;
    max-width: 800px;
    position: relative;
    padding-bottom: 20px;
}

.section-subtitle::before {
    content: "";
    position: absolute;
    bottom: 7px;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 1px;
    background: linear-gradient(to right, transparent, var(--primary-color), transparent);
}

.section-subtitle::after {
    content: "✦";
    position: absolute;
    bottom: 0px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.8rem;
    color: var(--primary-color);
    background-color: var(--bg-color);
    padding: 0 10px;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.service-card {
    background: var(--card-bg);
    border-radius: 20px;
    overflow: hidden;
    transition: var(--transition);
    box-shadow: 0 10px 40px rgba(0,0,0,0.04);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 45px rgba(0,0,0,0.08);
}

.service-image {
    width: 100%;
    height: 220px;
    background-color: #ddd; /* placeholder */
    position: relative;
    overflow: hidden;
}

.service-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 15%; /* Foca na parte de cima/rosto, cortando a faixa de texto no rodapé */
    transition: transform 0.5s ease;
}

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

.service-content {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.service-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.35rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.service-desc {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.service-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
    padding-top: 1rem;
    border-top: 1px solid rgba(0,0,0,0.05);
}

.service-price {
    font-weight: 700;
    color: var(--text-main);
}

.btn-ver-mais {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--primary-color);
    background-color: transparent;
    border: 1px solid var(--primary-color);
    padding: 0.4rem 1rem;
    border-radius: 20px;
    text-decoration: none;
    transition: var(--transition);
    display: inline-block;
}

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

.detail-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 2rem;
    padding: 0 5%;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.header-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-align: center;
    flex: 1;
}

.detail-logo {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.header-content .section-title {
    margin: 0 !important;
    font-size: 1.4rem !important;
    line-height: 1.2;
}

.btn-voltar {
    background: var(--primary-color);
    color: white;
    border: none;
    width: 35px;
    height: 35px;
    font-size: 0.9rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(172, 115, 57, 0.3);
    transition: var(--transition);
    flex-shrink: 0; /* Impede que o botão fique oval */
}

.btn-voltar:hover {
    background: var(--primary-hover);
    transform: scale(1.05);
}

.btn-add {
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 500;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
}

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

/* Clinic Gallery Section */
.gallery-section {
    padding: 3rem 5% 6rem;
    background-color: var(--bg-color);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    max-width: 1200px;
    margin: 0 auto;
}

.gallery-img {
    width: 100%;
    height: 350px;
    object-fit: cover;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.gallery-img:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.15);
}

/* Feature Section (EXOBROWS) */
.feature-section {
    padding: 3rem 5% 6rem;
    text-align: center;
    background-color: var(--bg-color);
}

.feature-images {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    max-width: 900px;
    margin: 0 auto 2rem;
}

.feature-images img {
    width: 100%;
    aspect-ratio: 5 / 4; /* Formato 5:4 (mais largo que alto) */
    object-fit: cover;
    object-position: center; /* Centraliza a foto */
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.08);
}

.btn-whatsapp {
    background-color: var(--primary-color);
    color: white;
    text-decoration: none;
    padding: 1rem 2.5rem;
    border-radius: 50px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: var(--transition);
}

.btn-whatsapp:hover {
    background-color: var(--primary-hover);
    transform: scale(1.05);
}

/* Animations */
@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes zoomIn {
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
}

/* Responsive */
@media (max-width: 768px) {
    .hero h1 { font-size: 2rem; }
    .feature-images { grid-template-columns: 1fr; }
    .services-grid { grid-template-columns: 1fr; }
}

/* Cart Floating Button */
.cart-floating-btn {
    position: fixed;
    bottom: 90px;
    right: 20px;
    background-color: #25D366;
    color: white;
    padding: 12px 20px;
    border-radius: 50px;
    font-weight: 700;
    box-shadow: 0 5px 20px rgba(37, 211, 102, 0.4);
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    z-index: 1000;
    transition: var(--transition);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
}

.cart-floating-btn.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.cart-floating-btn:hover {
    background-color: #1ebe56;
    transform: translateY(-3px) scale(1.05);
}

.cart-badge {
    background-color: white;
    color: #25D366;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
}

/* Service Button Selected State */
.btn-add.selected {
    background-color: #25D366;
    color: white;
}
