/* ===================================================================
   RESET E ESTILOS BASE
   =================================================================== */

/* Remove margens e padding padrão de todos os elementos */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box; /* Inclui padding e border no tamanho total do elemento */
}

/* Variáveis CSS (Custom Properties) - facilita a manutenção de cores e valores */
:root {
    --primary-color: #1a1a1a;        /* Cor principal (preto escuro) */
    --secondary-color: #d4af37;       /* Cor secundária (dourado) */
    --text-light: #ffffff;            /* Texto claro (branco) */
    --text-dark: #1a1a1a;            /* Texto escuro (preto) */
    --background-light: #fafafa;      /* Fundo claro */
    --background-dark: #0a0a0a;       /* Fundo escuro */
    --accent: #b8962a;                /* Cor de destaque (dourado escuro) */
    --transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1); /* Transição suave personalizada */
}

/* Ativa o scroll suave ao clicar em links âncora */
html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%; /* Previne ajuste automático de texto no iOS */
}

/* Estilos do corpo da página */
body {
    font-family: 'Poppins', sans-serif; /* Fonte principal */
    line-height: 1.6;                   /* Espaçamento entre linhas */
    color: var(--text-dark);            /* Cor do texto */
    overflow-x: hidden;                 /* Evita scroll horizontal */
    -webkit-overflow-scrolling: touch;  /* Scroll suave no iOS */
    -webkit-tap-highlight-color: transparent; /* Remove highlight no tap */
}

/* Todos os títulos usam a fonte Playfair Display (mais elegante) */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
}

/* Container principal - limita a largura do conteúdo */
.container {
    max-width: 1200px;   /* Largura máxima */
    margin: 0 auto;      /* Centraliza horizontalmente */
    padding: 0 20px;     /* Espaçamento interno lateral */
}

/* Classe utilitária para centralizar texto */
.text-center {
    text-align: center;
}

/* ===================================================================
   BARRA DE NAVEGAÇÃO
   =================================================================== */
.navbar {
    position: fixed;    /* Fixa no topo da página ao fazer scroll */
    top: 0;
    left: 0;
    right: 0;
    background: rgba(26, 26, 26, 0.97);     /* Fundo semi-transparente */
    backdrop-filter: blur(15px);             /* Efeito de desfoque no fundo */
    z-index: 1000;                           /* Mantém a navbar acima de outros elementos */
    padding: 1.2rem 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3); /* Sombra para criar profundidade */
    border-bottom: 1px solid rgba(212, 175, 55, 0.2); /* Borda dourada sutil */
}

/* Container da navbar usando flexbox */
.navbar .container {
    display: flex;
    justify-content: space-between;  /* Espaça os itens nas extremidades */
    align-items: center;             /* Alinha verticalmente ao centro */
}

/* Logo/marca da barbearia */
.nav-brand {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--secondary-color);  /* Cor dourada */
    text-decoration: none;
}

/* Menu de navegação */
.nav-menu {
    display: flex;
    list-style: none;  /* Remove os bullets da lista */
    gap: 2rem;         /* Espaçamento entre os itens */
}

/* Links do menu */
.nav-menu a {
    color: var(--text-light);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
    position: relative;  /* Necessário para o pseudo-elemento ::after */
}

/* Linha animada que aparece sob o link ao passar o mouse */
.nav-menu a::after {
    content: '';                         /* Cria um elemento vazio */
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;                            /* Começa invisível */
    height: 2px;
    background: var(--secondary-color);  /* Cor dourada */
    transition: var(--transition);
}

/* Expande a linha ao passar o mouse */
.nav-menu a:hover::after {
    width: 100%;
}

/* Muda a cor do texto ao passar o mouse */
.nav-menu a:hover {
    color: var(--secondary-color);
}

/* Link Admin - destaque especial */
.nav-admin-link {
    color: var(--secondary-color) !important;
    font-weight: 600;
    border: 1px solid var(--secondary-color);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    transition: var(--transition);
}

/* Seletor de idioma */
.language-selector {
    display: flex;
    align-items: center;
    margin-left: auto;
}

/* Seletor de idioma mobile fixo (sempre visível no topo) */
.language-selector-mobile {
    display: none; /* Escondido no desktop */
    align-items: center;
    margin-right: 1rem;
}

.language-select-mobile {
    background: rgba(212, 175, 55, 0.15);
    border: 1.5px solid var(--secondary-color);
    color: var(--text-light);
    padding: 0.5rem 0.8rem;
    border-radius: 20px;
    font-size: 1.2rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    outline: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    min-width: 60px;
    min-height: 44px;
    text-align: center;
}

.language-select-mobile:hover {
    background: rgba(212, 175, 55, 0.25);
    transform: scale(1.05);
}

.language-select-mobile:active {
    transform: scale(0.95);
}

.language-select-mobile option {
    background: var(--primary-color);
    color: var(--text-light);
    padding: 0.5rem;
}

.language-select {
    background: rgba(212, 175, 55, 0.1);
    border: 1px solid var(--secondary-color);
    color: var(--text-light);
    padding: 0.6rem 1.2rem;
    border-radius: 25px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    outline: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23d4af37' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.8rem center;
    padding-right: 2.5rem;
}

.language-select:hover {
    background-color: rgba(212, 175, 55, 0.2);
}

.language-select:focus {
    background-color: rgba(212, 175, 55, 0.3);
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.2);
}

.language-select option {
    background: var(--primary-color);
    color: var(--text-light);
    padding: 0.5rem;
}

.nav-admin-link::after {
    display: none; /* Remove a linha animada */
}

.nav-admin-link:hover {
    background: var(--secondary-color);
    color: var(--primary-color) !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(212, 175, 55, 0.3);
}

/* Botão hambúrguer (menu mobile) */
.nav-toggle {
    display: none;           /* Escondido por padrão (só aparece no mobile) */
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    min-width: 44px;        /* Tamanho mínimo para toque fácil */
    min-height: 44px;
    justify-content: center;
    align-items: center;
}

/* Linhas do botão hambúrguer */
.nav-toggle span {
    width: 25px;
    height: 3px;
    background: var(--text-light);
    margin: 3px 0;
    transition: var(--transition);  /* Para animar a transformação em X */
}

/* ===================================================================
   SEÇÃO HERO (Banner Principal)
   =================================================================== */
.hero {
    height: 100vh;  /* Altura total da tela */
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%); /* Gradiente escuro */
    display: flex;
    align-items: center;      /* Centraliza verticalmente */
    justify-content: center;  /* Centraliza horizontalmente */
    position: relative;
    overflow: hidden;         /* Esconde elementos que saem da área */
}

/* Padrão de fundo animado (estrelas sutis) */
.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    /* SVG inline com padrão de estrelas */
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><path d="M0 0h100v100H0z" fill="none"/><path d="M50 10l5 15h15l-12 10 5 15-13-10-13 10 5-15-12-10h15z" fill="rgba(212,175,55,0.05)"/></svg>');
    background-size: 200px;
    opacity: 0.3;
    animation: movePattern 20s linear infinite;  /* Animação contínua */
}

/* Animação que move o padrão de fundo */
@keyframes movePattern {
    0% { background-position: 0 0; }
    100% { background-position: 200px 200px; }
}

/* Camada escura sobre o hero para melhorar legibilidade */
.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    /* Gradiente radial que vai de transparente no centro para escuro nas bordas */
    background: radial-gradient(circle at center, transparent 0%, rgba(0, 0, 0, 0.5) 100%);
}

/* Conteúdo principal do hero */
.hero-content {
    text-align: center;
    color: var(--text-light);
    z-index: 1;  /* Mantém acima do overlay */
    animation: fadeInUp 1s ease;  /* Animação de entrada */
}

/* Animação de entrada (fade in + movimento para cima) */
@keyframes fadeInUp {
    from {
        opacity: 0;              /* Começa invisível */
        transform: translateY(30px);  /* Começa 30px abaixo */
    }
    to {
        opacity: 1;              /* Termina visível */
        transform: translateY(0);     /* Termina na posição original */
    }
}

/* Título principal do hero */
.hero-title {
    font-size: 5.5rem;
    margin-bottom: 1.5rem;
    color: var(--secondary-color);  /* Dourado */
    text-shadow: 3px 3px 8px rgba(0, 0, 0, 0.7);  /* Sombra para destaque */
    letter-spacing: 3px;  /* Espaçamento entre letras */
    font-weight: 800;     /* Peso extra negrito */
}

/* Subtítulo do hero */
.hero-subtitle {
    font-size: 2rem;
    margin-bottom: 1rem;
    font-family: 'Playfair Display', serif;  /* Fonte elegante */
    font-style: italic;  /* Itálico para destaque */
}

/* Descrição do hero */
.hero-description {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;        /* Ligeiramente transparente */
    max-width: 600px;    /* Limita a largura */
    margin-left: auto;   /* Centraliza */
    margin-right: auto;
}

/* Container dos botões */
.hero-buttons {
    display: flex;
    gap: 1rem;           /* Espaçamento entre botões */
    justify-content: center;
    flex-wrap: wrap;     /* Quebra linha em telas pequenas */
}

/* ===================================================================
   BOTÕES (Estilos gerais)
   =================================================================== */
.btn {
    padding: 1.2rem 3rem;
    text-decoration: none;
    border-radius: 50px;        /* Bordas totalmente arredondadas */
    font-weight: 700;
    transition: var(--transition);
    display: inline-block;
    text-transform: uppercase;  /* Texto em maiúsculas */
    letter-spacing: 1.5px;      /* Espaçamento entre letras */
    font-size: 0.95rem;
    position: relative;
    overflow: hidden;           /* Para conter o efeito de hover */
    cursor: pointer;
    touch-action: manipulation; /* Melhora resposta ao toque */
    -webkit-user-select: none;
    user-select: none;
    border: none;
    outline: none;
}

/* Efeito de círculo expandindo ao passar o mouse */
.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;                   /* Começa invisível */
    height: 0;
    border-radius: 50%;         /* Forma circular */
    background: rgba(255, 255, 255, 0.2);  /* Branco semi-transparente */
    transition: width 0.6s, height 0.6s, top 0.6s, left 0.6s;
    transform: translate(-50%, -50%);  /* Centraliza */
}

/* Expande o círculo ao passar o mouse */
.btn:hover::before {
    width: 300px;
    height: 300px;
}

/* Botão primário (preenchido) */
.btn-primary {
    background: var(--secondary-color);  /* Fundo dourado */
    color: var(--text-dark);             /* Texto escuro */
    box-shadow: 0 5px 15px rgba(212, 175, 55, 0.3);  /* Sombra dourada */
}

/* Efeito hover do botão primário */
.btn-primary:hover {
    background: var(--accent);           /* Dourado mais escuro */
    transform: translateY(-5px);         /* Move para cima */
    box-shadow: 0 15px 35px rgba(212, 175, 55, 0.5);  /* Sombra maior */
}

/* Botão secundário (outline) */
.btn-secondary {
    background: transparent;
    color: var(--text-light);
    border: 2px solid var(--secondary-color);  /* Borda dourada */
}

/* Efeito hover do botão secundário */
.btn-secondary:hover {
    background: var(--secondary-color);  /* Preenche com dourado */
    color: var(--text-dark);
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(212, 175, 55, 0.4);
}

/* Indicador de scroll (mouse animado) */
.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);  /* Centraliza horizontalmente */
    animation: bounce 2s infinite;  /* Animação de salto */
}

/* Formato do mouse */
.scroll-indicator span {
    display: block;
    width: 30px;
    height: 50px;
    border: 2px solid var(--secondary-color);
    border-radius: 50px;  /* Bordas arredondadas para parecer um mouse */
    position: relative;
}

/* Rodinha do mouse (ponto interno) */
.scroll-indicator span::before {
    content: '';
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    width: 6px;
    height: 6px;
    background: var(--secondary-color);
    border-radius: 50%;  /* Forma circular */
    animation: scroll 2s infinite;  /* Animação de movimento */
}

/* Animação de salto do indicador */
@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    40% {
        transform: translateX(-50%) translateY(-10px);  /* Sobe */
    }
    60% {
        transform: translateX(-50%) translateY(-5px);   /* Posição intermediária */
    }
}

/* Animação da rodinha descendo */
@keyframes scroll {
    0% {
        opacity: 1;
        transform: translateX(-50%) translateY(0);  /* Posição inicial */
    }
    100% {
        opacity: 0;                                  /* Desaparece */
        transform: translateX(-50%) translateY(20px);  /* Desce */
    }
}

/* ===================================================================
   SEÇÃO SOBRE
   =================================================================== */
.about {
    padding: 100px 0;  /* Espaçamento vertical generoso */
    background: var(--background-light);  /* Fundo claro */
    color: var(--text-dark);  /* Texto escuro para contraste */
}

/* Layout em duas colunas (imagem e texto) */
.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;  /* Duas colunas iguais */
    gap: 4rem;                        /* Espaçamento entre colunas */
    align-items: center;              /* Alinha verticalmente ao centro */
}

/* Container da imagem */
.about-image {
    position: relative;
    border-radius: 25px;                           /* Bordas arredondadas */
    overflow: hidden;                              /* Corta o que sair dos limites */
    box-shadow: 0 25px 70px rgba(0, 0, 0, 0.4);   /* Sombra profunda */
    border: 3px solid var(--secondary-color);      /* Borda dourada */
}

.about-image::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, var(--secondary-color), var(--accent), var(--secondary-color));
    z-index: -1;
    border-radius: 25px;
    opacity: 0;
    transition: var(--transition);
}

.about-image:hover::before {
    opacity: 1;
    animation: borderGlow 2s infinite;
}

@keyframes borderGlow {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; }
}

.about-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    aspect-ratio: 1;
    display: block;
    transition: var(--transition);
    filter: brightness(0.95);
}

.about-image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(26, 26, 26, 0.4), rgba(212, 175, 55, 0.3));
    opacity: 0;
    transition: var(--transition);
}

.about-image:hover img {
    transform: scale(1.08);
    filter: brightness(1.05);
}

.about-image:hover .about-image-overlay {
    opacity: 1;
}

.image-placeholder {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    aspect-ratio: 1;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.image-placeholder svg {
    width: 50%;
    height: 50%;
    color: rgba(255, 255, 255, 0.3);
}

/* Título de seção (usado em várias seções) */
.section-title {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    color: var(--primary-color);
    position: relative;
    display: inline-block;
}

/* Linha decorativa sob o título */
.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);  /* Centraliza */
    width: 80px;
    height: 4px;
    /* Gradiente que vai de transparente para dourado e volta a transparente */
    background: linear-gradient(90deg, transparent, var(--secondary-color), transparent);
}

/* Subtítulo de seção */
.section-subtitle {
    font-size: 1.2rem;
    color: #666;
    margin-bottom: 3rem;
}

/* Descrição de seção */
.section-description {
    font-size: 1.1rem;
    line-height: 1.8;  /* Espaçamento generoso entre linhas */
    margin-bottom: 2rem;
    color: #555;
}

/* Garantir texto escuro em seções com fundo claro */
.about .section-description,
.gallery .section-description,
.contact .section-description {
    color: var(--text-dark);
}

.about .section-subtitle,
.gallery .section-subtitle,
.contact .section-subtitle {
    color: #666;
}

/* Garantir que todos os textos em seções com fundo claro sejam escuros */
.about p,
.about li,
.about span,
.gallery p,
.gallery span,
.contact p,
.contact span {
    color: var(--text-dark);
}

/* Exceção: textos em overlays e elementos especiais mantêm cor clara */
.gallery-overlay p,
.gallery-overlay span {
    color: var(--text-light) !important;
}

/* Lista de características (seção About) */
.about-features {
    list-style: none;  /* Remove os bullets */
    margin-bottom: 2rem;
}

/* Cada item da lista */
.about-features li {
    display: flex;
    align-items: center;  /* Alinha o ícone com o texto */
    gap: 1rem;            /* Espaço entre ícone e texto */
    margin-bottom: 1rem;
    font-size: 1.05rem;
    color: var(--text-dark);  /* Texto escuro */
}

/* Ícones da lista de características */
.about-features svg {
    width: 24px;
    height: 24px;
    color: var(--secondary-color);  /* Cor dourada */
    flex-shrink: 0;  /* Impede que o ícone encolha */
}

/* ===================================================================
   SEÇÃO DE SERVIÇOS
   =================================================================== */
.services {
    padding: 100px 0;
    background: var(--primary-color);  /* Fundo escuro */
    color: var(--text-light);          /* Texto claro */
}

/* Título da seção de serviços (cor clara) */
.services .section-title {
    color: var(--text-light);
}

/* Subtítulo da seção de serviços (semi-transparente) */
.services .section-subtitle {
    color: rgba(255, 255, 255, 0.7);
}

/* Grid de cartões de serviço */
.services-grid {
    display: grid;
    /* Cria colunas automáticas com mínimo 300px e máximo 1fr (flexível) */
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;  /* Espaçamento entre cartões */
    margin-top: 3rem;
}

/* Cartão individual de serviço */
.service-card {
    background: rgba(255, 255, 255, 0.05);  /* Fundo levemente transparente */
    padding: 3rem;
    border-radius: 20px;
    text-align: center;
    transition: var(--transition);
    border: 2px solid rgba(212, 175, 55, 0.2);  /* Borda dourada sutil */
    position: relative;
    overflow: hidden;  /* Para conter o efeito de hover */
}

.service-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(212, 175, 55, 0.1) 0%, transparent 70%);
    opacity: 0;
    transition: var(--transition);
}

.service-card:hover::before {
    opacity: 1;
}

.service-card:hover {
    transform: translateY(-15px) scale(1.02);
    background: rgba(212, 175, 55, 0.15);
    border-color: var(--secondary-color);
    box-shadow: 0 20px 50px rgba(212, 175, 55, 0.3);
}

.service-icon {
    width: 80px;
    height: 80px;
    background: var(--secondary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}

.service-icon svg {
    width: 40px;
    height: 40px;
    color: var(--primary-color);
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--secondary-color);
}

.service-card p {
    margin-bottom: 1.5rem;
    line-height: 1.6;
    opacity: 0.9;
}

.service-price {
    display: block;
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--secondary-color);
}

/* ===================================================================
   SEÇÃO GALERIA
   =================================================================== */
.gallery {
    padding: 100px 0;
    background: var(--background-light);  /* Fundo claro */
    color: var(--text-dark);  /* Texto escuro para contraste */
}

/* Grid de imagens da galeria */
.gallery-grid {
    display: grid;
    /* Grid responsivo: colunas com mínimo 300px */
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-top: 3rem;
}

/* Item individual da galeria */
.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 15px;
    aspect-ratio: 1;   /* Mantém proporção quadrada */
    cursor: pointer;   /* Indica que é clicável */
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);  /* Sombra suave */
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
    display: block;
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.3) 50%, transparent 100%);
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding: 1.5rem;
    opacity: 0;
    transition: var(--transition);
}

.gallery-overlay p {
    color: var(--text-light);
    font-size: 1.2rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transform: translateY(20px);
    transition: var(--transition);
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-item:hover .gallery-overlay p {
    transform: translateY(0);
}

.gallery-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #2d2d2d, #1a1a1a);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.gallery-placeholder svg {
    width: 50%;
    height: 50%;
    color: rgba(212, 175, 55, 0.3);
    transition: var(--transition);
}

.gallery-item:hover .gallery-placeholder {
    transform: scale(1.1);
}

.gallery-item:hover .gallery-placeholder svg {
    color: var(--secondary-color);
}

/* ===================================================================
   SEÇÃO DE RESERVAS
   =================================================================== */
.booking {
    padding: 100px 0;
    background: var(--primary-color);  /* Fundo escuro */
    color: var(--text-light);
}

/* Título da seção de reservas (cor clara) */
.booking .section-title {
    color: var(--text-light);
}

/* Subtítulo da seção de reservas */
.booking .section-subtitle {
    color: rgba(255, 255, 255, 0.7);
}

/* Grid de opções de reserva */
.booking-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin: 3rem 0;
}

.booking-card {
    background: rgba(255, 255, 255, 0.05);
    padding: 3rem;
    border-radius: 15px;
    text-align: center;
    border: 1px solid rgba(212, 175, 55, 0.2);
}

.booking-card h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    color: var(--secondary-color);
}

.booking-card p {
    margin-bottom: 2rem;
    line-height: 1.6;
    opacity: 0.9;
}

.hours {
    background: rgba(255, 255, 255, 0.05);
    padding: 3rem;
    border-radius: 15px;
    margin-top: 3rem;
    border: 1px solid rgba(212, 175, 55, 0.2);
}

.hours h3 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 2rem;
    color: var(--secondary-color);
}

.hours-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.hour-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
}

.hour-item .day {
    font-weight: 600;
    color: var(--secondary-color);
}

.hour-item .time {
    font-weight: 500;
}

/* Formulário de Reserva */
.booking-form-container {
    background: rgba(255, 255, 255, 0.05);
    padding: 3rem;
    border-radius: 15px;
    margin: 3rem 0;
    border: 1px solid rgba(212, 175, 55, 0.2);
}

.booking-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.booking-form .form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.booking-form label {
    color: var(--text-light);
    font-weight: 500;
    font-size: 0.95rem;
}

.booking-form input,
.booking-form select,
.booking-form textarea {
    padding: 1rem;
    border: 2px solid rgba(212, 175, 55, 0.3);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-light);
    font-size: 1rem;
    font-family: 'Poppins', sans-serif;
    transition: var(--transition);
    width: 100%;
}

/* Estilos específicos para selects */
.booking-form select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23d4af37' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 12px;
    padding-right: 3rem;
    cursor: pointer;
}

.booking-form select option {
    background: var(--primary-color);
    color: var(--text-light);
    padding: 0.5rem;
}

.booking-form input::placeholder,
.booking-form textarea::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.booking-form input:focus,
.booking-form select:focus,
.booking-form textarea:focus {
    outline: none;
    border-color: var(--secondary-color);
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.1);
}

.booking-form select:hover {
    border-color: var(--secondary-color);
    background: rgba(255, 255, 255, 0.12);
}

.booking-form textarea {
    resize: vertical;
    min-height: 80px;
}

/* Phone input group with country selector */
.phone-input-group {
    display: flex;
    gap: 0.5rem;
    align-items: stretch;
}

.phone-country-wrapper {
    flex: 0 0 auto;
    position: relative;
}

.phone-country-select {
    width: auto;
    min-width: 95px;
    padding: 1rem 0.75rem;
    border: 2px solid rgba(212, 175, 55, 0.3);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-color);
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.phone-country-select:hover,
.phone-country-select:focus {
    border-color: var(--secondary-color);
    background: rgba(255, 255, 255, 0.12);
    outline: none;
}

.phone-country-custom-wrapper {
    display: flex;
    align-items: stretch;
    gap: 0;
}

.phone-country-custom {
    width: 75px !important;
    min-width: 75px !important;
    padding: 1rem 0.5rem !important;
    text-align: center;
    font-size: 0.95rem;
    border-top-right-radius: 0 !important;
    border-bottom-right-radius: 0 !important;
    border-right: none !important;
}

.phone-country-back {
    padding: 0 0.6rem;
    border: 2px solid rgba(212, 175, 55, 0.3);
    border-left: none;
    border-radius: 0 10px 10px 0;
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-color);
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.phone-country-back:hover {
    background: rgba(212, 175, 55, 0.2);
    color: var(--secondary-color);
}

.phone-input-group input[type="tel"] {
    flex: 1;
}

@media (max-width: 480px) {
    .phone-country-select {
        min-width: 85px;
        padding: 0.875rem 0.5rem;
        font-size: 0.9rem;
    }
    
    .phone-country-custom {
        width: 65px !important;
        min-width: 65px !important;
    }
}

.booking-message {
    text-align: center;
    padding: 1rem;
    border-radius: 10px;
    font-weight: 500;
    margin-top: 0.5rem;
}

.booking-message.success {
    background: rgba(40, 167, 69, 0.2);
    color: #90ee90;
    border: 1px solid rgba(40, 167, 69, 0.5);
}

.booking-message.error {
    background: rgba(220, 53, 69, 0.2);
    color: #ff6b6b;
    border: 1px solid rgba(220, 53, 69, 0.5);
}

/* ===================================================================
   SEÇÃO DE CONTACTO
   =================================================================== */
.contact {
    padding: 100px 0;
    background: var(--background-light);  /* Fundo claro */
    color: var(--text-dark);  /* Texto escuro para contraste */
}

/* Grid de cartões de contacto */
.contact-grid {
    display: grid;
    /* Grid responsivo: mínimo 250px por cartão */
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin: 3rem 0;
}

/* Cartão individual de contacto */
.contact-card {
    background: white;
    padding: 2.5rem;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
}

.contact-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.contact-icon {
    width: 70px;
    height: 70px;
    background: var(--secondary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}

.contact-icon svg {
    width: 35px;
    height: 35px;
    color: var(--primary-color);
}

.contact-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.contact-card p {
    color: #666;
    line-height: 1.6;
}

.contact-card a {
    color: var(--secondary-color);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
}

.contact-card a:hover {
    color: var(--accent);
}

.map-container {
    margin-top: 3rem;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

.map-placeholder {
    width: 100%;
    height: 400px;
    background: linear-gradient(135deg, #2d2d2d, #1a1a1a);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.map-placeholder svg {
    width: 80px;
    height: 80px;
    color: var(--secondary-color);
}

.map-placeholder p {
    color: var(--text-light);
    font-size: 1.2rem;
}

/* ===================================================================
   RODAPÉ
   =================================================================== */
.footer {
    background: var(--background-dark);  /* Fundo preto escuro */
    color: var(--text-light);
    padding: 4rem 0 2rem;
}

/* Grid do conteúdo do rodapé */
.footer-content {
    display: grid;
    /* Grid responsivo para as colunas do footer */
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-brand h3 {
    font-size: 2rem;
    color: var(--secondary-color);
    margin-bottom: 0.5rem;
}

.footer-brand p {
    opacity: 0.8;
    font-style: italic;
}

.footer-links h4,
.footer-social h4 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: var(--secondary-color);
}

.footer-links ul {
    list-style: none;
}

.footer-links a {
    color: var(--text-light);
    text-decoration: none;
    display: block;
    margin-bottom: 0.5rem;
    transition: var(--transition);
    opacity: 0.8;
}

.footer-links a:hover {
    color: var(--secondary-color);
    padding-left: 10px;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    width: 45px;
    height: 45px;
    background: rgba(212, 175, 55, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.social-links a:hover {
    background: var(--secondary-color);
    transform: translateY(-5px);
}

.social-links svg {
    width: 22px;
    height: 22px;
    color: var(--text-light);
}

.social-links a:hover svg {
    color: var(--primary-color);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    opacity: 0.7;
}

/* ===================================================================
   DESIGN RESPONSIVO (Media Queries)
   =================================================================== */

/* Tablets e dispositivos médios (até 768px) */
@media (max-width: 768px) {
    /* Container com menos padding lateral */
    .container {
        padding: 0 16px;
    }
    
    /* Menu mobile: escondido por padrão, desliza da esquerda */
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background: rgba(26, 26, 26, 0.98);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        padding: 2rem 0;
        gap: 1rem;
        max-height: calc(100vh - 70px);
        overflow-y: auto;
    }

    /* Menu ativo: desliza para dentro */
    .nav-menu.active {
        left: 0;
    }

    /* Mostra o botão hambúrguer no mobile */
    .nav-toggle {
        display: flex;
        min-width: 48px;
        min-height: 48px;
    }
    
    /* Ajustar navbar para melhor layout mobile */
    .navbar .container {
        gap: 0.5rem;
        position: relative;
    }
    
    .navbar {
        padding: 0.8rem 0;
    }

    /* ============ HERO MOBILE ============ */
    .hero {
        min-height: 100vh;
        height: auto;
        padding: 100px 0 60px;
    }
    
    .hero-content {
        padding: 0 20px;
    }
    
    .hero-title {
        font-size: 2.5rem;
        letter-spacing: 1px;
        margin-bottom: 1rem;
        line-height: 1.2;
    }

    .hero-subtitle {
        font-size: 1.25rem;
        margin-bottom: 0.75rem;
    }

    .hero-description {
        font-size: 0.95rem;
        margin-bottom: 1.5rem;
        padding: 0 10px;
    }
    
    .hero-buttons {
        flex-direction: column;
        gap: 0.75rem;
        padding: 0 20px;
        width: 100%;
    }
    
    .hero-buttons .btn {
        width: 100%;
        max-width: 280px;
        margin: 0 auto;
    }
    
    .scroll-indicator {
        bottom: 20px;
    }
    
    .scroll-indicator span {
        width: 24px;
        height: 40px;
    }

    /* ============ SEÇÕES GERAIS ============ */
    .about,
    .services,
    .gallery,
    .booking,
    .contact {
        padding: 60px 0;
    }

    .about-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .about-image {
        max-width: 300px;
        margin: 0 auto;
    }
    
    .about-text {
        text-align: center;
    }
    
    .about-text .btn {
        display: block;
        max-width: 280px;
        margin: 0 auto;
    }
    
    .about-features {
        text-align: left;
        max-width: 300px;
        margin: 0 auto 2rem;
    }

    .section-title {
        font-size: 2rem;
        margin-bottom: 1rem;
    }
    
    .section-title::after {
        width: 60px;
        height: 3px;
    }
    
    .section-subtitle {
        font-size: 1rem;
        margin-bottom: 2rem;
    }
    
    .section-description {
        font-size: 1rem;
        line-height: 1.7;
    }

    /* ============ SERVIÇOS MOBILE ============ */
    .services-grid {
        grid-template-columns: 1fr;
        gap: 1.25rem;
        margin-top: 2rem;
    }
    
    .service-card {
        padding: 2rem 1.5rem;
        border-radius: 16px;
    }
    
    .service-icon {
        width: 64px;
        height: 64px;
        margin-bottom: 1rem;
    }
    
    .service-icon svg {
        width: 32px;
        height: 32px;
    }
    
    .service-card h3 {
        font-size: 1.25rem;
    }
    
    .service-card p {
        font-size: 0.9rem;
    }
    
    .service-price {
        font-size: 1.1rem;
    }

    /* ============ GALERIA MOBILE ============ */
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
        margin-top: 2rem;
    }
    
    .gallery-item {
        border-radius: 12px;
    }
    
    .gallery-overlay {
        opacity: 1;
        background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, transparent 60%);
        padding: 1rem;
    }
    
    .gallery-overlay p {
        font-size: 0.85rem;
        transform: none;
    }

    /* ============ RESERVAS MOBILE ============ */
    .booking-form-container {
        padding: 1.5rem;
        margin: 2rem 0;
        border-radius: 12px;
    }
    
    .booking-form {
        gap: 1rem;
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .booking-form label {
        font-size: 0.9rem;
    }
    
    .booking-form input,
    .booking-form select,
    .booking-form textarea {
        padding: 0.9rem 1rem;
        font-size: 16px; /* Previne zoom no iOS */
        border-radius: 8px;
    }
    
    .hours {
        padding: 2rem 1.5rem;
        margin-top: 2rem;
        border-radius: 12px;
    }
    
    .hours h3 {
        font-size: 1.5rem;
        margin-bottom: 1.5rem;
    }

    .hours-grid {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }
    
    .hour-item {
        padding: 0.875rem 1.25rem;
        border-radius: 8px;
    }
    
    .hour-item .day,
    .hour-item .time {
        font-size: 0.9rem;
    }

    /* ============ CONTACTO MOBILE ============ */
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
        margin: 2rem 0;
    }
    
    .contact-card {
        padding: 1.75rem 1.5rem;
        border-radius: 12px;
    }
    
    .contact-icon {
        width: 56px;
        height: 56px;
        margin-bottom: 1rem;
    }
    
    .contact-icon svg {
        width: 28px;
        height: 28px;
    }
    
    .contact-card h3 {
        font-size: 1.25rem;
        margin-bottom: 0.75rem;
    }
    
    .contact-card p {
        font-size: 0.9rem;
        line-height: 1.5;
    }
    
    .map-container {
        margin-top: 2rem;
        border-radius: 12px;
    }
    
    .map-placeholder {
        height: 250px;
    }
    
    .map-placeholder svg {
        width: 60px;
        height: 60px;
    }
    
    .map-placeholder p {
        font-size: 1rem;
    }

    /* ============ FOOTER MOBILE ============ */
    .footer {
        padding: 3rem 0 1.5rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
        margin-bottom: 2rem;
    }
    
    .footer-brand h3 {
        font-size: 1.5rem;
    }
    
    .footer-links h4,
    .footer-social h4 {
        font-size: 1.1rem;
        margin-bottom: 0.75rem;
    }
    
    .footer-links a {
        padding: 0.25rem 0;
    }
    
    .footer-links a:hover {
        padding-left: 0;
        color: var(--secondary-color);
    }

    .social-links {
        justify-content: center;
    }
    
    .social-links a {
        width: 48px;
        height: 48px;
    }
    
    .footer-bottom {
        padding-top: 1.5rem;
        font-size: 0.85rem;
    }
    
    /* ============ BOTÕES MOBILE ============ */
    .btn {
        padding: 1rem 2rem;
        font-size: 0.85rem;
        min-height: 48px;
        letter-spacing: 1px;
    }
    
    /* ============ IDIOMA MOBILE ============ */
    .language-selector {
        margin: 1rem auto 0;
        width: 100%;
        max-width: 200px;
        justify-content: center;
    }
    
    .language-select {
        width: 100%;
        padding: 0.8rem 1.5rem;
        font-size: 1rem;
        min-height: 48px;
        text-align: center;
    }
    
    .language-selector-mobile {
        display: flex !important;
    }
    
    .nav-menu .language-selector {
        display: none;
    }
}

/* Smartphones pequenos (até 480px) */
@media (max-width: 480px) {
    .container {
        padding: 0 12px;
    }
    
    /* ============ HERO SMALL MOBILE ============ */
    .hero {
        padding: 90px 0 50px;
    }
    
    .hero-content {
        padding: 0 16px;
    }
    
    .hero-title {
        font-size: 2rem;
        letter-spacing: 0.5px;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .hero-description {
        font-size: 0.9rem;
    }
    
    .hero-buttons {
        padding: 0 10px;
    }
    
    .hero-buttons .btn {
        max-width: 100%;
        padding: 0.9rem 1.5rem;
    }

    /* ============ SEÇÕES SMALL MOBILE ============ */
    .about,
    .services,
    .gallery,
    .booking,
    .contact {
        padding: 50px 0;
    }
    
    .section-title {
        font-size: 1.75rem;
    }
    
    .section-subtitle {
        font-size: 0.9rem;
    }
    
    .about-image {
        max-width: 260px;
    }
    
    .about-features li {
        font-size: 0.95rem;
    }
    
    .about-features svg {
        width: 20px;
        height: 20px;
    }

    /* ============ SERVIÇOS SMALL MOBILE ============ */
    .service-card {
        padding: 1.5rem 1.25rem;
    }
    
    .service-icon {
        width: 56px;
        height: 56px;
    }
    
    .service-icon svg {
        width: 28px;
        height: 28px;
    }
    
    .service-card h3 {
        font-size: 1.15rem;
    }
    
    .service-card p {
        font-size: 0.85rem;
    }
    
    .service-price {
        font-size: 1rem;
    }

    /* ============ GALERIA SMALL MOBILE ============ */
    .gallery-grid {
        gap: 0.5rem;
    }
    
    .gallery-item {
        border-radius: 10px;
    }
    
    .gallery-overlay p {
        font-size: 0.75rem;
    }

    /* ============ RESERVAS SMALL MOBILE ============ */
    .booking-form-container {
        padding: 1.25rem;
    }
    
    .booking-form input,
    .booking-form select,
    .booking-form textarea {
        padding: 0.85rem;
    }
    
    .hours {
        padding: 1.5rem 1.25rem;
    }
    
    .hours h3 {
        font-size: 1.3rem;
    }
    
    .hour-item {
        padding: 0.75rem 1rem;
        flex-direction: column;
        gap: 0.25rem;
        text-align: center;
    }

    /* ============ CONTACTO SMALL MOBILE ============ */
    .contact-card {
        padding: 1.5rem 1.25rem;
    }
    
    .contact-icon {
        width: 50px;
        height: 50px;
    }
    
    .contact-icon svg {
        width: 24px;
        height: 24px;
    }
    
    .contact-card h3 {
        font-size: 1.1rem;
    }
    
    .contact-card p {
        font-size: 0.85rem;
    }
    
    .map-placeholder {
        height: 200px;
    }

    /* ============ FOOTER SMALL MOBILE ============ */
    .footer {
        padding: 2.5rem 0 1.25rem;
    }
    
    .footer-content {
        gap: 1.75rem;
    }
    
    .footer-brand h3 {
        font-size: 1.35rem;
    }
    
    .footer-brand p {
        font-size: 0.9rem;
    }
    
    .social-links a {
        width: 44px;
        height: 44px;
    }
    
    .social-links svg {
        width: 20px;
        height: 20px;
    }

    /* ============ BOTÕES SMALL MOBILE ============ */
    .btn {
        padding: 0.9rem 1.75rem;
        font-size: 0.8rem;
        min-height: 44px;
        min-width: 100px;
    }
    
    /* ============ NAVBAR SMALL MOBILE ============ */
    .nav-brand {
        font-size: 1.4rem;
    }
    
    .language-select-mobile {
        min-width: 55px;
        min-height: 44px;
        font-size: 1.1rem;
        padding: 0.5rem 0.6rem;
    }
    
    .language-select {
        padding: 0.9rem 1.25rem;
        font-size: 1rem;
        min-height: 48px;
    }
    
    .language-selector {
        max-width: 100%;
        padding: 0 0.5rem;
    }
    
    /* ============ PHONE INPUT SMALL MOBILE ============ */
    .phone-country-select {
        min-width: 80px;
        padding: 0.8rem 0.4rem;
        font-size: 0.85rem;
    }
    
    .phone-country-custom {
        width: 60px !important;
        min-width: 60px !important;
    }
}

/* Extra small devices (até 360px) */
@media (max-width: 360px) {
    .hero-title {
        font-size: 1.75rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
    
    .nav-brand {
        font-size: 1.25rem;
    }
    
    .gallery-grid {
        grid-template-columns: 1fr;
    }
    
    .btn {
        padding: 0.85rem 1.5rem;
        font-size: 0.75rem;
    }
}

/* ===================================================================
   SUPORTE PARA iOS SAFE AREAS (iPhones com notch)
   =================================================================== */
@supports (padding: max(0px)) {
    .navbar {
        padding-left: max(0.8rem, env(safe-area-inset-left));
        padding-right: max(0.8rem, env(safe-area-inset-right));
    }
    
    .footer {
        padding-bottom: max(1.5rem, env(safe-area-inset-bottom));
    }
    
    .hero {
        padding-top: max(100px, calc(env(safe-area-inset-top) + 80px));
    }
}

/* ===================================================================
   MELHORIAS DE ACESSIBILIDADE MOBILE
   =================================================================== */

/* Remove delay de 300ms no tap */
a, button, input, select, textarea {
    touch-action: manipulation;
}

/* Focus states mais visíveis para acessibilidade */
@media (max-width: 768px) {
    a:focus,
    button:focus,
    input:focus,
    select:focus,
    textarea:focus {
        outline: 2px solid var(--secondary-color);
        outline-offset: 2px;
    }
    
    /* Esconde outline quando usar mouse, mantém para teclado */
    a:focus:not(:focus-visible),
    button:focus:not(:focus-visible) {
        outline: none;
    }
}

