/* Definição de variáveis globais com :root */
:root {
    --primary-color: #C8102E;
    --secondary-color: #000;
    --detail-color: #003087;
    --text-light: #fff;
    --text-dark: #333;
    --text-secondary: #666;
    --light-gray: #f9f9f9;
    --gray-bg: #f4f4f4;
    --border-gray: #444;
    --dark-bg: #1a1a1a;
    --dark-text: #e0e0e0;
}

/* Reset básico */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Montserrat', sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--light-gray);
    overflow-x: hidden;
    position: relative;
    min-height: 100vh;
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* Modo Escuro */
body.dark-mode {
    background-color: var(--dark-bg);
    color: var(--dark-text);
}

body.dark-mode .header,
body.dark-mode .footer {
    background-color: #333;
}

body.dark-mode .feature-box,
body.dark-mode .care-tips,
body.dark-mode .opening-hours,
body.dark-mode .contact-info,
body.dark-mode .contact-details,
body.dark-mode .service-item,
body.dark-mode .barber,
body.dark-mode .page-header {
    background-color: #2a2a2a;
    color: var(--dark-text);
}

body.dark-mode .tip-item,
body.dark-mode .service-details {
    background-color: #333;
    border-color: #444;
}

body.dark-mode .about-text p,
body.dark-mode .tip-item p,
body.dark-mode .service-item p,
body.dark-mode .contact-details p,
body.dark-mode .barber p,
body.dark-mode .opening-hours li,
body.dark-mode .emergency {
    color: #bbb;
}

/* Container genérico */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 5%;
}

/* Header (todas as páginas) */
.header {
    background: linear-gradient(90deg, #000 0%, #1a1a1a 100%);
    padding: 1rem 0;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    transition: background 0.3s ease;
}

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

.logo-img {
    height: clamp(2rem, 3vw, 3rem);
    width: auto;
    max-width: 100%;
    transition: transform 0.3s ease;
}

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

.nav-list {
    list-style: none;
    display: flex;
    align-items: center;
    gap: clamp(0.5rem, 1vw, 1.5rem);
}

.nav-list li {
    margin: 0;
}

.nav-list a {
    color: var(--text-light);
    text-decoration: none;
    font-weight: 600;
    font-size: clamp(0.9rem, 1vw, 1rem);
    position: relative;
    transition: color 0.3s ease;
}

.nav-list a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: var(--primary-color);
    transition: width 0.3s ease;
}

.nav-list a:hover::after {
    width: 100%;
}

.nav-list a.active,
.nav-list a:hover {
    color: var(--primary-color);
}

.theme-toggle {
    background: none;
    border: none;
    color: var(--text-light);
    font-size: clamp(1rem, 1.2vw, 1.2rem);
    cursor: pointer;
    transition: color 0.3s ease, transform 0.3s ease;
}

.theme-toggle:hover {
    color: var(--primary-color);
    transform: rotate(360deg);
}

.mobile-menu {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: clamp(0.5rem, 0.625vw, 0.625rem);
}

.mobile-menu div {
    width: clamp(1.2rem, 1.5vw, 1.5rem);
    height: clamp(0.15rem, 0.2vw, 0.2rem);
    background-color: var(--text-light);
    margin: clamp(0.15rem, 0.2vw, 0.2rem) 0;
    transition: transform 0.4s ease, background-color 0.3s ease;
}

.mobile-menu:hover div {
    background-color: var(--primary-color);
}

.mobile-menu.active .line1 {
    transform: rotate(-45deg) translate(-0.3rem, 0.4rem);
}

.mobile-menu.active .line2 {
    opacity: 0;
}

.mobile-menu.active .line3 {
    transform: rotate(45deg) translate(-0.3rem, -0.4rem);
}

/* Page Header (outras páginas, exceto index) */
.page-header {
    background: #000;
    background-size: cover;
    background-position: center;
    color: var(--text-light);
    text-align: center;
    padding: clamp(2rem, 6vw, 6rem) 0;
    margin-top: clamp(3.5rem, 5vw, 5rem);
    margin-bottom: 1rem;
    animation: fadeIn 1s ease-in-out;
}

.page-header h1 {
    font-family: 'Playfair Display', serif;
    font-size: clamp(1.8rem, 3.5vw, 3.5rem);
    margin-bottom: clamp(0.5rem, 0.625vw, 0.625rem);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.page-header p {
    font-size: clamp(1rem, 1.3vw, 1.3rem);
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3);
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Hero Slider (index.html) */
.hero-slider {
    position: relative;
    height: 80vh;
    min-height: 400px;
    background-color: #000;
    overflow: hidden;
    z-index: 1;
    margin-top: clamp(3.5rem, 5vw, 5rem);
}

.slider-container {
    height: 100%;
    width: 100%;
    position: relative;
    overflow: hidden;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: none;
    opacity: 0;
    transition: opacity 0.6s ease-in-out;
}

.slide.active {
    display: block;
    opacity: 1;
}

.slide-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: var(--text-light);
    width: clamp(80%, 90vw, 90%);
    max-width: 40rem;
    animation: slideUp 0.8s ease-out;
}

@keyframes slideUp {
    from { transform: translate(-50%, 20%); opacity: 0; }
    to { transform: translate(-50%, -50%); opacity: 1; }
}

.slide-content h2 {
    font-family: 'Playfair Display', serif;
    font-size: clamp(1.8rem, 3.5vw, 4.5rem);
    margin-bottom: clamp(0.5rem, 1vw, 1rem);
    text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.6);
}

.slide-content p {
    font-size: clamp(1rem, 1.3vw, 1.6rem);
    margin-bottom: clamp(1rem, 1.5vw, 1.5rem);
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.4);
}

.btn-primary {
    display: inline-block;
    padding: clamp(0.7rem, 0.9vw, 0.9rem) clamp(1.5rem, 2vw, 2rem);
    background: linear-gradient(90deg, var(--primary-color), var(--detail-color));
    color: var(--text-light);
    text-decoration: none;
    border-radius: 25px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    font-weight: 600;
    font-size: clamp(1rem, 1.1vw, 1.1rem);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
}

.prev-slide, .next-slide {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.3);
    border: none;
    color: var(--text-light);
    font-size: clamp(1rem, 1.5vw, 1.5rem);
    cursor: pointer;
    padding: clamp(0.3rem, 0.4vw, 0.4rem);
    border-radius: 50%;
    width: clamp(1.5rem, 2vw, 2rem);
    height: clamp(1.5rem, 2vw, 2rem);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease, transform 0.3s ease, opacity 0.3s ease;
    z-index: 2;
    opacity: 0.7;
}

.prev-slide:hover, .next-slide:hover {
    background: rgba(0, 0, 0, 0.7);
    transform: translateY(-50%) scale(1.1);
    opacity: 1;
}

.prev-slide {
    left: clamp(0.5rem, 0.5vw, 0.5rem);
}

.next-slide {
    right: clamp(0.5rem, 0.5vw, 0.5rem);
}

.slider-dots {
    position: absolute;
    bottom: clamp(0.8rem, 2vw, 2rem);
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: clamp(0.4rem, 0.6vw, 0.6rem);
    z-index: 2;
}

.dot {
    width: clamp(0.5rem, 0.7vw, 0.7rem);
    height: clamp(0.5rem, 0.7vw, 0.7rem);
    background-color: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.3s ease;
}

.dot.active {
    background-color: var(--primary-color);
    transform: scale(1.3);
}

.dot:hover {
    transform: scale(1.2);
}

/* Features Section (index.html) */
.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
    gap: 1.5rem;
    margin: 2.5rem 0;
    padding: 0 1rem;
}

.feature-box {
    text-align: center;
    padding: 1.5rem;
    background: linear-gradient(135deg, #fff, #f8f8f8);
    border-radius: 15px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-box:hover {
    transform: translateY(-0.5rem);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.2);
}

.feature-box i {
    font-size: clamp(2rem, 2.8vw, 2.8rem);
    color: var(--primary-color);
    margin-bottom: clamp(0.5rem, 1vw, 1rem);
    transition: transform 0.3s ease;
}

.feature-box:hover i {
    transform: rotate(15deg);
}

.feature-box h3 {
    font-family: 'Playfair Display', serif;
    font-size: clamp(1.4rem, 1.6vw, 1.6rem);
    margin-bottom: clamp(0.5rem, 0.625vw, 0.625rem);
}

.feature-box p {
    font-size: clamp(1rem, 1.1vw, 1.1rem);
    color: var(--text-secondary);
}

/* About Preview (index.html) */
.about-preview {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 2.5rem 0;
    gap: 1.5rem;
}

.about-text {
    flex: 1;
    min-width: 18.75rem;
    padding: 1.5rem;
}

.about-text h2 {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2rem, 2.6vw, 2.6rem);
    margin-bottom: clamp(0.5rem, 1rem, 1rem);
}

.about-text p {
    margin-bottom: clamp(1rem, 1.5vw, 1.5rem);
    color: var(--text-secondary);
}

.about-image {
    flex: 1;
    min-width: 18.75rem;
}

.about-image img {
    width: 100%;
    height: auto;
    max-height: none;
    border-radius: 15px;
    object-fit: contain;
    background-color: #ddd;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Care Tips Section (index.html) */
.care-tips {
    margin: 2.5rem 0;
    text-align: center;
    background: linear-gradient(135deg, #fff, #f0f0f0);
    padding: 1.5rem;
    border-radius: 15px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.care-tips h2 {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2rem, 2.6vw, 2.6rem);
    margin-bottom: clamp(1.5rem, 2vw, 2rem);
}

.tips-list {
    display: flex;
    flex-wrap: wrap;
    width: 100%;
    padding: 0 1rem;
    gap: 1rem;
}

.tip-item {
    text-align: left;
    padding: 1rem;
    background-color: var(--gray-bg);
    border-radius: 10px;
    margin-bottom: 1rem;
    border: 1px solid #ddd;
    display: flex;
    align-items: flex-start;
    gap: 0.625rem;
    transition: transform 0.3s ease;
    flex: 1;
    min-width: clamp(15rem, 20vw, 20rem);
}

.tip-item:hover {
    transform: translateX(5px);
}

.tip-item i {
    font-size: clamp(1.2rem, 1.6vw, 1.6rem);
    color: var(--primary-color);
    margin-top: clamp(0.2rem, 0.3vw, 0.3rem);
}

.tip-item .tip-content {
    flex: 1;
}

.tip-item h3 {
    font-family: 'Playfair Display', serif;
    font-size: clamp(1.2rem, 1.4vw, 1.4rem);
    margin-bottom: clamp(0.2rem, 0.3vw, 0.3rem);
}

.tip-item p {
    font-size: clamp(0.9rem, 1.1vw, 1.1rem);
    color: var(--text-secondary);
}

/* Opening Hours (index.html) */
.opening-hours {
    margin: 2.5rem 0;
    text-align: center;
    background: linear-gradient(135deg, #fff, #f0f0f0);
    padding: 1.5rem;
    border-radius: 15px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.opening-hours h2 {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2rem, 2.6vw, 2.6rem);
    margin-bottom: clamp(1rem, 1.5vw, 1.5rem);
}

.opening-hours ul {
    list-style: none;
    max-width: clamp(20rem, 25vw, 25rem);
    margin: 0 auto;
}

.opening-hours li {
    display: flex;
    justify-content: space-between;
    margin-bottom: clamp(0.5rem, 0.625vw, 0.625rem);
    font-size: clamp(0.9rem, 1.1vw, 1.1rem);
    color: var(--text-secondary);
}

.emergency {
    font-style: italic;
    color: var(--text-secondary);
    margin-top: clamp(0.5rem, 0.625vw, 0.625rem);
    font-size: clamp(0.8rem, 1rem, 1rem);
}

/* Contact Section (contato.html) */
.contact-section {
    display: flex;
    justify-content: space-between;
    margin: 2.5rem 0;
    gap: 1.5rem;
}

.contact-info, .contact-details {
    flex: 1;
    min-width: 18.75rem;
    padding: 1.5rem;
    background: linear-gradient(135deg, #fff, #f8f8f8);
    border-radius: 15px;
    border: 1px solid #ddd;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.contact-info h2 {
    font-family: 'Playfair Display', serif;
    font-size: clamp(1.8rem, 2.1vw, 2.1rem);
    margin-bottom: clamp(0.5rem, 1rem, 1rem);
}

.info-item {
    display: flex;
    align-items: center;
    margin-bottom: clamp(1rem, 1.5vw, 1.5rem);
}

.info-item i {
    font-size: clamp(1.4rem, 1.6vw, 1.6rem);
    margin-right: clamp(0.5rem, 1rem, 1rem);
    color: var(--primary-color);
}

.contact-details h2 {
    font-family: 'Playfair Display', serif;
    font-size: clamp(1.8rem, 2.1vw, 2.1rem);
    margin-bottom: clamp(0.5rem, 1rem, 1rem);
}

.contact-details p {
    color: var(--text-secondary);
}

.chat-btn {
    margin-top: clamp(1rem, 1.5vw, 1.5rem);
    display: block;
}

/* Map Section (contato.html) */
.map-section {
    margin: 2.5rem 0;
}

.map-container {
    width: 100%;
    height: clamp(15rem, 25vw, 25rem);
    overflow: hidden;
    background: linear-gradient(135deg, #fff, #f0f0f0);
    border-radius: 15px;
    border: 1px solid #ddd;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.map-container iframe {
    width: 100% !important;
    height: 100%;
    border: 0;
    border-radius: 15px;
}

/* CTA Section (contato.html) */
.cta-section {
    background: linear-gradient(90deg, var(--secondary-color), #1a1a1a);
    padding: 2.5rem 0;
    text-align: center;
    margin: 2.5rem 0;
}

.cta-section h2 {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2rem, 2.6vw, 2.6rem);
    margin-bottom: clamp(1rem, 1.5vw, 1.5rem);
    color: var(--text-light);
}

.cta-section p {
    color: var(--text-light);
    margin-bottom: clamp(1rem, 1.5vw, 1.5rem);
}

.cta-section .btn-primary {
    background: linear-gradient(90deg, var(--primary-color), var(--detail-color));
}

/* Services Section (servicos.html) */
.services-section {
    margin: 2.5rem 0;
    text-align: center;
    padding: 0 1rem;
}

.services-section h2 {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2rem, 2.6vw, 2.6rem);
    margin-bottom: clamp(1.5rem, 2vw, 2rem);
}

.service-item {
    margin-bottom: 1.5rem;
    padding: 1.5rem;
    background: linear-gradient(135deg, #fff, #f8f8f8);
    border-radius: 15px;
    border: 1px solid #ddd;
    text-align: left;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.service-item h3 {
    font-family: 'Playfair Display', serif;
    font-size: clamp(1.4rem, 1.6vw, 1.6rem);
    margin-bottom: clamp(0.5rem, 0.625vw, 0.625rem);
    color: var(--detail-color);
}

.service-item p {
    color: var(--text-secondary);
}

.service-details-btn {
    background: none;
    border: none;
    color: var(--primary-color);
    font-weight: 600;
    cursor: pointer;
    margin-top: clamp(0.5rem, 0.625vw, 0.625rem);
}

.service-details {
    display: none;
    margin-top: clamp(0.5rem, 0.625vw, 0.625rem);
    padding: clamp(0.5rem, 0.625vw, 0.625rem);
    background-color: var(--gray-bg);
    border-radius: 10px;
}

.service-details.active {
    display: block;
}

/* About Section (sobre.html) */
.about-section {
    margin: 2.5rem 0;
    text-align: center;
    padding: 0 1rem;
}

.about-section h2 {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2rem, 2.6vw, 2.6rem);
    margin-bottom: clamp(1rem, 1.5vw, 1.5rem);
}

.about-section p {
    max-width: clamp(40rem, 50vw, 50rem);
    margin: 0 auto clamp(1rem, 1.5vw, 1.5rem);
    color: var(--text-secondary);
}

.about-section img {
    width: 100%;
    max-width: clamp(30rem, 37.5vw, 37.5rem);
    max-height: clamp(15rem, 25vw, 25rem);
    height: auto;
    border-radius: 15px;
    object-fit: cover;
    margin: clamp(1rem, 1.5vw, 1.5rem) auto;
    display: block;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.barbers {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
    margin-top: 1.5rem;
    gap: 1.5rem;
}

.barber {
    background: linear-gradient(135deg, #fff, #f8f8f8);
    padding: 1.5rem;
    border-radius: 15px;
    border: 1px solid #ddd;
    margin-bottom: 0;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.barber:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.2);
}

.barber img {
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: clamp(0.5rem, 0.625vw, 0.625rem);
    display: block;
    background-color: #ddd;
}

.barber img:not([src]) {
    content: "Imagem indisponível";
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
    font-size: clamp(0.75rem, 0.875vw, 0.875rem);
    height: clamp(8rem, 9.375vw, 9.375rem);
}

.barber h3 {
    font-family: 'Playfair Display', serif;
    font-size: clamp(1.1rem, 1.3vw, 1.3rem);
    margin-bottom: clamp(0.2rem, 0.3vw, 0.3rem);
}

.barber p {
    color: var(--text-secondary);
}

/* Gallery Section (galeria.html) */
.gallery-section {
    margin: 2.5rem 0;
    text-align: center;
    padding: 0 1rem;
}

.gallery-section h2 {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2rem, 2.6vw, 2.6rem);
    margin-bottom: clamp(1.5rem, 2vw, 2rem);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
    gap: 1.5rem;
}

.gallery-item {
    margin-bottom: 0;
}

.gallery-item img {
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: 15px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Lightbox (galeria.html) */
.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 2000;
    justify-content: center;
    align-items: center;
}

.lightbox.active {
    display: flex;
}

#lightbox-img {
    max-width: clamp(80%, 90vw, 90%);
    max-height: clamp(80%, 90vw, 90%);
    border-radius: 15px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.5);
}

.close-lightbox {
    position: absolute;
    top: clamp(1rem, 1.5vw, 1.5rem);
    right: clamp(1rem, 1.5vw, 1.5rem);
    color: var(--text-light);
    font-size: clamp(2rem, 2.5vw, 2.5rem);
    cursor: pointer;
    transition: color 0.3s ease;
}

.close-lightbox:hover {
    color: var(--primary-color);
}

/* Footer (todas as páginas) */
.footer {
    background: linear-gradient(90deg, #000, #1a1a1a);
    color: var(--text-light);
    padding: 2.5rem 0;
    margin-top: 2.5rem;
    width: 100%;
    display: block;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    gap: 1.5rem;
    padding: 0 1rem;
}

.footer-section {
    flex: 1;
    margin: 0.625rem 0;
}

.footer-section h3 {
    font-family: 'Playfair Display', serif;
    margin-bottom: clamp(0.5rem, 1rem, 1rem);
}

.socials a {
    color: var(--text-light);
    margin-right: clamp(0.5rem, 1rem, 1rem);
    font-size: clamp(1.1rem, 1.3vw, 1.3rem);
    transition: color 0.3s ease, transform 0.3s ease;
}

.socials a:hover {
    color: var(--primary-color);
    transform: scale(1.2);
}

.footer-bottom {
    text-align: center;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-gray);
    margin-top: 1.5rem;
    color: #bbb;
}

/* Botão Voltar ao Topo */
.back-to-top {
    position: fixed;
    bottom: clamp(1rem, 2vw, 2rem);
    right: clamp(1rem, 2vw, 2rem);
    background: linear-gradient(90deg, var(--primary-color), var(--detail-color));
    color: var(--text-light);
    width: clamp(2rem, 3vw, 3rem);
    height: clamp(2rem, 3vw, 3rem);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: clamp(1.2rem, 1.5vw, 1.5rem);
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.back-to-top.active {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.3);
}

/* Animações */
.animate {
    opacity: 0;
    transform: translateY(1.5rem);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.animated {
    opacity: 1;
    transform: translateY(0);
}

/* Media Queries para Responsividade */

/* Tablets e dispositivos médios (≤768px) */
@media (max-width: 768px) {
    html {
        font-size: 14px;
    }

    .container {
        padding: 0 2%;
    }

    .header {
        padding: 0.625rem 0;
        margin: 0;
        background: linear-gradient(90deg, #000, #1a1a1a);
    }

    .logo-img {
        height: 2.5rem;
    }

    .nav-list {
        display: none;
        position: absolute;
        top: 3.5rem;
        left: 0;
        width: 100%;
        background: linear-gradient(90deg, #000, #1a1a1a);
        padding: 1.5rem 0;
        margin: 0;
        z-index: 1000;
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    }

    .nav-list.active {
        display: block;
    }

    .nav-list li {
        margin: 0.625rem 0;
        text-align: center;
    }

    .theme-toggle {
        display: none;
    }

    .mobile-menu {
        display: flex;
    }

    .hero-slider {
        height: 35vh;
        min-height: 180px;
        margin-top: 4rem;
        padding: 0;
    }

    .slide-content h2 {
        font-size: 2.2rem;
    }

    .slide-content p {
        font-size: 1.1rem;
    }

    .prev-slide, .next-slide {
        font-size: 1.2rem;
        width: 1.8rem;
        height: 1.8rem;
    }

    .slider-dots {
        display: flex;
        bottom: 1rem;
    }

    .dot {
        width: 0.6rem;
        height: 0.6rem;
    }

    .page-header {
        padding: 3rem 0;
        margin-top: 4rem;
        margin-bottom: 1rem;
    }

    .page-header h1 {
        font-size: 2.2rem;
    }

    .page-header p {
        font-size: 1.1rem;
    }

    .features {
        display: block;
        padding: 0;
        margin: 1rem 0;
    }

    .feature-box {
        margin: 0.625rem 0;
    }

    .about-preview {
        display: block;
        margin: 1rem 0;
        padding: 0;
    }

    .about-text, .about-image {
        margin: 0;
        padding: 0.5rem 0;
    }

    .about-text h2 {
        font-size: 2.2rem;
    }

    .about-image img {
        max-height: none;
    }

    .care-tips {
        margin: 1.5rem 0;
        padding: 1rem;
    }

    .tips-list {
        display: block;
        padding: 0;
    }

    .tip-item {
        margin: 0.625rem 0;
        padding: 0.625rem;
        gap: 0.5rem;
    }

    .tip-item i {
        font-size: 1.3rem;
    }

    .tip-item h3 {
        font-size: 1.2rem;
    }

    .tip-item p {
        font-size: 0.95rem;
    }

    .opening-hours {
        margin: 1.5rem 0;
        padding: 1rem;
    }

    .opening-hours ul {
        max-width: 100%;
    }

    .map-container {
        height: 18.75rem;
    }

    .services-section, .about-section, .gallery-section {
        padding: 0;
    }

    .service-item, .gallery-item {
        margin: 0.625rem 0;
    }

    .about-section img {
        max-height: 18.75rem;
    }

    .barbers {
        display: block;
    }

    .barber {
        margin-bottom: 1.5rem;
    }

    .barber img {
        height: auto;
        aspect-ratio: 4 / 3;
    }

    .barber:hover {
        transform: none;
    }

    .gallery-grid {
        display: block;
    }

    .gallery-item img {
        height: auto;
        aspect-ratio: 4 / 3;
    }

    .contact-section, .footer-content {
        display: block;
    }

    .contact-info, .contact-details, .footer-section {
        margin: 0.625rem 0;
    }

    .footer-content {
        padding: 0;
    }

    .back-to-top {
        bottom: 1rem;
        right: 1rem;
        width: 2.5rem;
        height: 2.5rem;
    }
}

/* Dispositivos pequenos (≤480px) */
@media (max-width: 480px) {
    html {
        font-size: 12px;
    }

    .container {
        padding: 0 1%;
    }

    .logo-img {
        height: 2rem;
    }

    .nav-list {
        top: 2.5rem;
    }

    .hero-slider {
        height: 35vh;
        min-height: 180px;
        margin-top: 3.5rem;
    }

    .slide-content h2 {
        font-size: 1.8rem;
    }

    .slide-content p {
        font-size: 1rem;
    }

    .btn-primary {
        padding: 0.7rem 1.5rem;
        width: 100%;
        text-align: center;
    }

    .prev-slide, .next-slide {
        font-size: 1rem;
        width: 1.5rem;
        height: 1.5rem;
    }

    .slider-dots {
        gap: 0.4rem;
        bottom: 0.8rem;
    }

    .dot {
        width: 0.5rem;
        height: 0.5rem;
    }

    .page-header {
        padding: 2rem 0;
        margin-top: 3.5rem;
    }

    .page-header h1 {
        font-size: 1.8rem;
    }

    .page-header p {
        font-size: 1rem;
    }

    .tip-item {
        padding: 0.5rem;
        gap: 0.375rem;
    }

    .tip-item i {
        font-size: 1.2rem;
    }

    .tip-item h3 {
        font-size: 1.1rem;
    }

    .tip-item p {
        font-size: 0.9rem;
    }

    .opening-hours li {
        font-size: 0.9rem;
    }

    .emergency {
        font-size: 0.8rem;
    }

    .map-container {
        height: 15rem;
    }

    .gallery-item img {
        height: auto;
        aspect-ratio: 4 / 3;
    }

    .about-section img {
        max-height: 15rem;
    }

    .about-image img {
        max-height: none;
    }
}

/* Dispositivos grandes (≥1024px) */
@media (min-width: 1024px) {
    html {
        font-size: 18px;
    }

    .container {
        padding: 0 4%;
    }

    .nav-list {
        display: flex;
    }

    .mobile-menu {
        display: none;
    }

    .theme-toggle {
        display: block;
    }

    .hero-slider {
        height: 90vh;
        min-height: 500px;
        margin-top: 5rem;
    }

    .slide-content h2 {
        font-size: 4.5rem;
    }

    .slide-content p {
        font-size: 1.6rem;
    }

    .features {
        grid-template-columns: repeat(3, 1fr);
    }

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

    .about-preview {
        align-items: stretch;
    }

    .about-image img {
        height: auto;
    }

    .barbers {
        grid-template-columns: repeat(3, 1fr);
    }

    .barber img {
        height: auto;
    }

    .gallery-item img {
        height: auto;
    }
}

/* Plans announcement (servicos.html) */
.plans-announcement {
    margin: 2.5rem 0;
    text-align: center;
    padding: 0 1rem;
}

.plans-announcement .plans-card {
    max-width: 900px;
    margin: 0 auto;
    padding: 1.5rem;
    background: linear-gradient(135deg, #fff, #f8f8f8);
    border-radius: 15px;
    border: 1px solid #ddd;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    text-align: center;
}

.plans-announcement .plans-card h2 {
    font-family: 'Playfair Display', serif;
    font-size: clamp(1.6rem, 2vw, 2rem);
    color: var(--detail-color);
    margin-bottom: 0.5rem;
}

.plans-announcement .plans-card p {
    color: var(--text-secondary);
    margin-bottom: 0.6rem;
}

.plans-announcement .plans-card .btn-primary {
    margin-top: 0.5rem;
}

body.dark-mode .plans-announcement .plans-card {
    background-color: #2a2a2a;
    border-color: #444;
    color: var(--dark-text);
}

.plans-announcement .plans-card .plans-note {
    margin-top: 0.5rem;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

body.dark-mode .plans-announcement .plans-card .plans-note {
    color: #bbb;
}

/* Garantir espaçamento do conteúdo principal em relação ao header fixo */
main.container {
    padding-top: 1.25rem;
}

@media (max-width: 768px) {
    main.container {
        padding-top: 1.5rem;
    }
}