/* ==========================================================================
   CSS VARIABLES & DESIGN SYSTEM (BARBEARIA)
   ========================================================================== */
:root {
    /* Colors */
    --bg-primary: #1C1614;     /* Marrom quase preto */
    --bg-secondary: #F5EFE6;   /* Bege claro */
    --bg-tertiary: #2a211e;
    
    --primary-accent: #B8862E; /* Dourado/latão */
    --primary-accent-hover: #9e7327;
    
    --support-color: #6B4A32;  /* Marrom-couro */
    
    --text-light: #F5EFE6;
    --text-dark: #1C1614;
    
    --text-primary: var(--text-light); 
    --text-secondary: rgba(245, 239, 230, 0.7);
    
    --border-color: var(--support-color);

    /* Typography */
    --font-heading: 'Bebas Neue', sans-serif;
    --font-body: 'Inter', sans-serif;
}

/* ==========================================================================
   RESET & BASE STYLES
   ========================================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

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

body {
    font-family: var(--font-body);
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 600;
    line-height: 1.2;
    text-transform: uppercase;
    letter-spacing: 1px;
}

a {
    text-decoration: none;
    color: inherit;
}

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

/* ==========================================================================
   TYPOGRAPHY UTILITIES
   ========================================================================== */
.section-title {
    font-size: 2.5rem;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.section-subtitle {
    font-size: 1.125rem;
    color: var(--text-secondary);
    max-width: 600px;
}

.kicker {
    font-family: var(--font-heading);
    color: var(--primary-accent);
    font-size: 0.875rem;
    font-weight: 500;
    letter-spacing: 2px;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.kicker-line {
    width: 24px;
    height: 2px;
    background-color: var(--primary-accent);
}

.kicker-line-double {
    width: 30px;
    height: 4px;
    border-top: 1px solid var(--primary-accent);
    border-bottom: 1px solid var(--primary-accent);
}

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

.center-kicker {
    justify-content: center;
}

/* ==========================================================================
   COMPONENTS
   ========================================================================== */
.cta-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: var(--primary-accent);
    color: var(--text-dark);
    font-family: var(--font-heading);
    font-size: 1.25rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    padding: 1rem 2.5rem;
    border-radius: 2px;
    transition: background-color 0.3s ease, transform 0.2s ease;
    cursor: pointer;
    border: none;
}

.cta-button:hover {
    background-color: var(--primary-accent-hover);
    transform: translateY(-2px);
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    background-color: var(--bg-primary);
    padding: 6rem 1.5rem 4rem;
}

.hero-bg {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background-image: linear-gradient(rgba(0, 0, 0, 0.85), rgba(0, 0, 0, 0.85)), url('Barbearia.webp');
    background-size: cover;
    background-position: center;
    z-index: 0;
    pointer-events: none;
}

.hero-container {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}

.hero-image {
    width: 100%;
    border-radius: 4px;
    overflow: hidden;
    border: 2px solid var(--support-color);
}

.hero-image img {
    width: 100%;
    height: auto;
    object-fit: cover;
    display: block;
}

.hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.hero-title {
    font-size: 3.5rem;
    color: var(--text-light);
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.hero-subtitle {
    font-size: 1.125rem;
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
    max-width: 500px;
}

.text-accent {
    color: var(--primary-accent);
}

/* Responsive adjustments */
@media (min-width: 900px) {
    .hero-container {
        flex-direction: row-reverse;
        align-items: center;
        justify-content: space-between;
        gap: 4rem;
    }

    .hero-image {
        width: 45%;
    }

    .hero-content {
        width: 50%;
        align-items: flex-start;
        text-align: left;
    }

    .hero-title {
        font-size: 5.5rem;
        line-height: 0.95;
    }

    .hero-subtitle {
        font-size: 1.25rem;
    }
}

/* ==========================================================================
   SERVICES SECTION
   ========================================================================== */
.services {
    position: relative;
    padding: 6rem 1.5rem;
    background-color: var(--bg-secondary);
    overflow: hidden;
}

.services-container {
    position: relative;
    z-index: 1;
    max-width: 1000px;
    margin: 0 auto;
}

.services .section-title {
    color: var(--text-dark);
}

.services .section-subtitle {
    color: var(--support-color);
}

.mx-auto {
    margin-left: auto;
    margin-right: auto;
}

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

.services-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

.service-card {
    background-color: var(--bg-tertiary);
    padding: 2rem;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    transition: border-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
    border-color: var(--primary-accent);
    transform: translateY(-4px);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.2);
}

.service-content {
    flex: 1;
}

.service-title {
    font-size: 1.5rem;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.service-desc {
    font-size: 1rem;
    color: var(--text-secondary);
}

.service-price {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    color: var(--primary-accent);
    font-weight: 600;
}

@media (max-width: 600px) {
    .service-card {
        flex-direction: column;
        align-items: flex-start;
    }
    .service-price {
        align-self: flex-end;
        margin-top: 1rem;
    }
}

@media (min-width: 768px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.atendimento-block {
    margin-top: 5rem;
    padding-top: 4rem;
    border-top: 1px solid var(--support-color);
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

.atendimento-item {
    display: flex;
    align-items: flex-start;
    gap: 1.25rem;
}

.atendimento-icon {
    width: 40px;
    height: 40px;
    color: var(--primary-accent);
    flex-shrink: 0;
}

.atendimento-text {
    font-size: 1rem;
    color: var(--text-dark);
    line-height: 1.4;
}

.atendimento-text strong {
    display: block;
    font-family: var(--font-heading);
    color: var(--primary-accent);
    font-size: 1.25rem;
    letter-spacing: 1px;
    margin-bottom: 4px;
}

@media (min-width: 600px) {
    .atendimento-block {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 900px) {
    .atendimento-block {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* ==========================================================================
   ABOUT SECTION
   ========================================================================== */
.about {
    padding: 6rem 1.5rem;
    background-color: var(--bg-primary);
}

.about-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 4rem;
}

.about-image-wrapper {
    position: relative;
    width: 100%;
}

.about-image-backdrop {
    position: absolute;
    top: 20px;
    left: 20px;
    width: 100%;
    height: 100%;
    border: 2px solid var(--primary-accent);
    z-index: 1;
}

.about-image {
    position: relative;
    z-index: 2;
    width: 100%;
    height: auto;
    display: block;
    border-radius: 4px;
    border: 1px solid var(--border-color);
}

.about-content {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.about-text {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    font-size: 1.125rem;
    color: var(--text-secondary);
}

.about-text strong {
    color: var(--primary-accent);
    font-weight: 500;
}
/* ==========================================================================
   TESTIMONIALS SECTION
   ========================================================================== */
.testimonials {
    padding: 6rem 0; /* Padding lateral zero no root para o carrossel passar livre */
    background-color: var(--bg-secondary);
    color: var(--text-dark);
}

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

.testimonials .section-title {
    color: var(--text-dark);
}

.testimonials .section-subtitle {
    color: var(--support-color);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-top: 4rem;
    margin-bottom: 5rem;
}

.testimonial-card {
    background-color: var(--bg-secondary);
    border: 1px solid var(--support-color);
    padding: 2.5rem;
    border-radius: 4px;
    position: relative;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.quote-icon {
    font-family: var(--font-heading);
    font-size: 5rem;
    color: var(--primary-accent);
    line-height: 1;
    position: absolute;
    top: 5px;
    left: 20px;
    opacity: 0.2;
}

.testimonial-text {
    font-size: 1.125rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 1;
    font-style: italic;
}

.testimonial-author {
    color: var(--support-color);
    font-size: 0.875rem;
}

.testimonial-author strong {
    color: var(--text-dark);
    font-size: 1rem;
}

/* CAROUSEL */
.carousel-container {
    width: 100%;
    overflow: hidden;
    position: relative;
    padding: 2rem 0;
}

.carousel-track {
    display: flex;
    width: max-content;
    animation: scroll-carousel 40s linear infinite;
    gap: 1.5rem;
}

.carousel-img {
    width: 250px;
    height: 300px;
    object-fit: cover;
    border-radius: 4px;
    border: 2px solid var(--primary-accent);
    flex-shrink: 0;
}

/* Move 7 images (7 * 250px) + 7 gaps (7 * 1.5rem = 7 * 24px = 168px) = 1918px */
@keyframes scroll-carousel {
    0% { transform: translateX(0); }
    100% { transform: translateX(calc(-1918px)); }
}

/* CAROUSEL FADE EDGES */
.carousel-container::before,
.carousel-container::after {
    content: "";
    position: absolute;
    top: 0;
    width: 100px;
    height: 100%;
    z-index: 2;
    pointer-events: none;
}

.carousel-container::before {
    left: 0;
    background: linear-gradient(to right, var(--bg-secondary), transparent);
}

.carousel-container::after {
    right: 0;
    background: linear-gradient(to left, var(--bg-secondary), transparent);
}

/* FOOTER */
.testimonials-footer {
    margin-top: 4rem;
}

.rating-text {
    font-family: var(--font-heading);
    color: var(--primary-accent);
    font-size: 1.75rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.rating-text::before,
.rating-text::after {
    content: "";
    height: 2px;
    width: 40px;
    background-color: var(--primary-accent);
}

.final-cta {
    margin-top: 4rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.final-cta-text {
    font-size: 1.25rem;
    color: var(--text-dark);
    max-width: 600px;
    margin: 0 auto;
    font-weight: 500;
    line-height: 1.5;
}

/* Responsive */
@media (min-width: 768px) {
    .testimonials-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ==========================================================================
   FOOTER SECTION
   ========================================================================== */
.site-footer {
    background-color: var(--bg-primary);
    color: var(--text-light);
    padding: 5rem 1.5rem 2rem 1.5rem;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    margin-bottom: 4rem;
}

.footer-col {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.footer-brand {
    font-family: var(--font-heading);
    color: var(--primary-accent);
    font-size: 2rem;
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
}

.footer-desc {
    color: var(--text-secondary);
    font-size: 1.125rem;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.footer-links li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--text-secondary);
}

.footer-icon {
    width: 20px;
    height: 20px;
    color: var(--primary-accent);
    flex-shrink: 0;
}

.location-col p {
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

.location-col strong {
    color: var(--text-light);
    font-family: var(--font-heading);
    font-size: 1.25rem;
    letter-spacing: 1px;
    display: block;
    margin-bottom: 0.5rem;
}

.footer-bottom {
    border-top: 1px solid var(--primary-accent);
    padding-top: 2rem;
    text-align: center;
    color: rgba(245, 239, 230, 0.6); /* var(--text-light) faded */
    font-size: 0.875rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

/* ==========================================================================
   FLOATING WHATSAPP BUTTON
   ========================================================================== */
.floating-whatsapp {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background-color: #25D366; /* WhatsApp Green */
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transform: scale(0.8) translateY(20px);
    transition: all 0.3s ease;
}

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

.floating-whatsapp:hover {
    transform: scale(1.1);
    background-color: #20BA56;
}

.floating-whatsapp svg {
    width: 34px;
    height: 34px;
    fill: currentColor;
}

@media (min-width: 768px) {
    .footer-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}
@media (min-width: 900px) {
    .about-container {
        flex-direction: row;
        align-items: center;
        gap: 5rem;
    }

    .about-image-wrapper {
        flex: 1;
        max-width: 450px;
    }

    .about-content {
        flex: 1;
    }
}
