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

:root {
    --color-background: hsl(40, 20%, 98%);
    --color-foreground: hsl(340, 20%, 20%);
    --color-primary: hsl(340, 28%, 45%);
    --color-primary-foreground: hsl(40, 30%, 99%);
    --color-secondary: hsl(25, 45%, 85%);
    --color-accent: hsl(330, 18%, 72%);
    --color-border: hsl(330, 20%, 88%);
    --color-muted: hsl(330, 20%, 92%);
    --gradient-primary: linear-gradient(135deg, hsl(340, 28%, 45%), hsl(340, 28%, 60%));
    --gradient-hero: linear-gradient(135deg, hsl(340, 28%, 45%, 0.95), hsl(330, 18%, 72%, 0.85));
}

body {
    font-family: 'Poppins', -apple-system, system-ui, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: var(--color-background);
    color: var(--color-foreground);
    line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Cinzel', Georgia, serif;
}

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

/* Header */
.header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(253, 251, 248, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--color-border);
}

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

/* Header navigation */
.nav {
    display: block;
}

.nav-links {
    display: flex;
    gap: 1.25rem;
    list-style: none;
    align-items: center;
}

.nav-link {
    text-decoration: none;
    color: hsl(340, 15%, 40%);
    font-weight: 600;
    transition: color 0.2s;
}

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

.logo-section {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.logo-placeholder {
    width: 48px;
    height: 48px;
    border-radius: 8px;
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    font-size: 1.25rem;
}

/* Logo image used in header and footer */
.logo-img {
    width: 72px; /* default header size */
    height: 72px;
    border-radius: 12px;
    object-fit: cover;
    display: block;
}

/* Footer variant */
.logo-img--footer {
    width: 56px;
    height: 56px;
    border-radius: 10px;
}

.logo-title {
    font-weight: bold;
    font-size: 1.125rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.logo-subtitle {
    font-size: 0.75rem;
    color: hsl(340, 15%, 40%);
}

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

.phone-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: hsl(340, 15%, 40%);
    text-decoration: none;
    font-size: 0.875rem;
    transition: color 0.3s;
}

.phone-link:hover {
    color: var(--color-primary);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.625rem 1rem;
    border-radius: 0.5rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s;
    cursor: pointer;
    border: none;
    font-family: inherit;
}

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

.btn-primary:hover {
    box-shadow: 0 0 40px hsl(340, 28%, 60%, 0.2);
}

.btn-hero {
    background: white;
    color: var(--color-primary);
    padding: 1rem 2rem;
    font-size: 1.125rem;
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 1rem 2rem;
    font-size: 1.125rem;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
}

.btn-large {
    padding: 1rem 2.5rem;
    font-size: 1.125rem;
    background: var(--gradient-primary);
    color: white;
}

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

.btn-outline:hover {
    background: var(--color-muted);
}

.btn-outline-white {
    border: 2px solid white;
    background: transparent;
    color: white;
    padding: 1rem 2.5rem;
    font-size: 1.125rem;
}

.btn-outline-white:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* Hero */
.hero {
    min-height: 600px;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, hsl(340, 28%, 45%, 0.95), hsl(330, 18%, 72%, 0.85)),
                url('src/assets/odonto-1.jpg') center/cover;
    color: white;
    text-align: center;
    padding: 4rem 1rem;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
}

/* Hero logo (placed above the H1) */
.hero-logo {
    display: block;
    max-width: 1000px; /* restaurado para o tamanho anterior */
    width: 100%;
    height: auto;
    margin: 0 auto 0.25rem; /* reduz espaço entre logo e título */
    padding: 0;
}

.hero-badge {
    display: inline-block;
    padding: 0.5rem 1.5rem;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 2rem;
    margin-bottom: 1.5rem;
    font-size: 0.875rem;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.hero-subtitle {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    opacity: 0.95;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 2rem;
}

.hero-phone {
    font-size: 1.125rem;
}

.hero-phone a {
    color: white;
    text-decoration: none;
}

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

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

.about-image img {
    width: 100%;
    border-radius: 1rem;
    box-shadow: 0 10px 30px -10px hsl(340, 28%, 45%, 0.15);
}

.section-badge {
    display: inline-block;
    padding: 0.5rem 1.5rem;
    background: var(--color-secondary);
    border-radius: 2rem;
    margin-bottom: 1.5rem;
    font-size: 0.875rem;
    font-weight: 500;
}

.about h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    color: var(--color-primary);
}

.about p {
    margin-bottom: 1rem;
    font-size: 1.125rem;
    color: hsl(340, 15%, 40%);
}

.features {
    margin-top: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.feature {
    display: flex;
    gap: 1rem;
}

.feature-icon {
    font-size: 2rem;
}

.feature h3 {
    font-size: 1.125rem;
    margin-bottom: 0.25rem;
}

.feature p {
    font-size: 0.875rem;
    margin: 0;
}

/* Services */
.services {
    padding: 5rem 0;
    background: linear-gradient(180deg, hsl(40, 30%, 99%), hsl(330, 20%, 96%));
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-header h2 {
    font-size: 2.5rem;
    color: var(--color-primary);
    margin-bottom: 1rem;
}

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

.service-card {
    padding: 2rem;
    border-radius: 1rem;
    text-align: center;
    transition: transform 0.3s;
}

.service-card:hover {
    transform: translateY(-5px);
}

.gradient-dental { background: linear-gradient(135deg, hsl(200, 70%, 95%), hsl(200, 60%, 90%)); }
.gradient-facial { background: linear-gradient(135deg, hsl(340, 60%, 95%), hsl(340, 50%, 90%)); }
.gradient-body { background: linear-gradient(135deg, hsl(280, 60%, 95%), hsl(280, 50%, 90%)); }
.gradient-weight { background: linear-gradient(135deg, hsl(25, 60%, 95%), hsl(25, 50%, 90%)); }
.gradient-wellness { background: linear-gradient(135deg, hsl(150, 60%, 95%), hsl(150, 50%, 90%)); }
.gradient-podology { background: linear-gradient(135deg, hsl(30, 60%, 95%), hsl(30, 50%, 90%)); }

.service-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.service-card h3 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    color: var(--color-primary);
}

.services-cta {
    text-align: center;
}

/* Location */
.location {
    padding: 5rem 0;
}

.location-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2rem;
    margin-top: 2rem;
}

.map-container iframe {
    border-radius: 1rem;
    box-shadow: 0 4px 20px hsl(330, 20%, 85%, 0.25);
}

.address-card {
    background: var(--color-background);
    padding: 2rem;
    border-radius: 1rem;
    border: 1px solid var(--color-border);
    margin-bottom: 1.5rem;
}

.address-card h3 {
    margin-bottom: 1rem;
    color: var(--color-primary);
}

.regions h4 {
    margin-bottom: 1rem;
    color: var(--color-primary);
}

.regions ul {
    list-style: none;
}

.regions li {
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--color-border);
}

/* CTA Section */
.cta-section {
    padding: 5rem 0;
    background: var(--gradient-hero);
    color: white;
    text-align: center;
}

.cta-content h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.cta-content p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 2rem;
}

.cta-phone {
    font-size: 1.5rem;
    font-weight: 600;
}

/* Footer */
.footer {
    background: hsl(340, 25%, 10%);
    color: hsl(40, 30%, 95%);
    padding: 3rem 0 1rem;
}

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

.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.footer-brand {
    font-weight: bold;
    font-size: 1.125rem;
}

.footer-tagline {
    font-size: 0.75rem;
    opacity: 0.8;
}

.footer h4 {
    margin-bottom: 1rem;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: hsl(40, 30%, 95%);
    text-decoration: none;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: hsl(340, 28%, 60%);
}

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

.social-links a {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: white;
    transition: background 0.3s;
}

.social-links a:hover {
    background: rgba(255, 255, 255, 0.2);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    opacity: 0.8;
}

/* Responsive */
@media (max-width: 768px) {
    .phone-link span { display: none; }
    .logo-text { display: none; }
    /* hide desktop nav on small screens */
    .nav { display: none; }
    .hero-title { font-size: 2rem; }
    .hero-subtitle { font-size: 1.125rem; }
    .about-grid, .location-grid { grid-template-columns: 1fr; }
    .services-grid { grid-template-columns: 1fr; }
}

/* Carousel portrait helper */
.carousel-portrait {
    width: auto;
    height: 600px; /* force portrait height; adjust as needed */
    object-fit: cover;
    display: block;
}

@media (max-width: 768px) {
    .carousel-portrait { height: 420px; }
}

/* Make Bootstrap carousel controls visible on light backgrounds */
.carousel-control-prev,
.carousel-control-next {
    width: 3.5rem;
    height: 3.5rem;
    background: rgba(0,0,0,0.55);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    top: 50%;
    transform: translateY(-50%);
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    filter: invert(1) brightness(2);
}

/* Add spacing from hero */
.carousel-section { margin-top: 2.5rem; margin-bottom: 2.5rem; }