/* --- VARIÁVEIS GLOBAIS --- */
:root {
    --color-background: #faf8f3;
    --color-primary: #0a2d57;
    --color-secondary: #d4b785;
    --color-text: #222;
    --font-headings: 'Cormorant Garamond', serif;
    --font-body: 'Montserrat', sans-serif;
}

/* --- RESET --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background-color: var(--color-background);
    color: var(--color-text);
    line-height: 1.8;
    font-size: 1rem;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

h1, h2, h3 {
    font-family: var(--font-headings);
    color: var(--color-primary);
}

h1 { font-size: 3.2rem; font-weight: 700; }
h2 { font-size: 2.2rem; margin-bottom: 1rem; text-align: center; }
h3 { font-size: 1.4rem; margin-bottom: 0.8rem; }

/* --- BOTÕES --- */
.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    border: 2px solid transparent;
    transition: all 0.3s ease;
    text-align: center;
}

.btn-primary {
    background-color: var(--color-primary);
    color: #fff;
}
.btn-primary:hover {
    background-color: #082446;
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: transparent;
    color: #fff;
    border-color: #fff;
}
.btn-secondary:hover {
    background-color: #fff;
    color: var(--color-primary);
}

.btn-outline {
    background-color: transparent;
    color: var(--color-primary);
    border: 2px solid var(--color-primary);
}
.btn-outline:hover {
    background-color: var(--color-primary);
    color: #fff;
}

/* --- CABEÇALHO (ATUALIZADO) --- */
/* --- CABEÇALHO (LOGO À ESQUERDA / MENU À DIREITA) --- */
.header {
    background-color: #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    padding: 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

.header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 100%;
    padding: 0 60px;
}

/* LOGO - totalmente à esquerda */
.logo {
    flex-shrink: 0;
}

.logo img {
    height: 80px;
    width: auto;
    display: block;
}

/* MENU - totalmente à direita */
.main-nav {
    margin-left: auto;
}

.main-nav ul {
    list-style: none;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 40px;
    margin: 0;
    padding: 0;
}

/* Links */
.main-nav a:not(.btn) {
    text-decoration: none;
    color: var(--color-primary);
    font-weight: 600;
    font-size: 1.1rem;
    letter-spacing: 0.3px;
    transition: color 0.3s ease;
}
.main-nav a:not(.btn):hover {
    color: var(--color-secondary);
}

/* Botão de orçamento */
.main-nav .btn-primary {
    padding: 10px 25px;
    font-size: 1rem;
}

/* --- RESPONSIVIDADE --- */
@media (max-width: 992px) {
    .header .container {
        padding: 0 25px;
    }
    .logo img {
        height: 65px;
    }
    .main-nav ul {
        gap: 25px;
    }
}

@media (max-width: 768px) {
    .main-nav ul {
        flex-wrap: wrap;
        justify-content: flex-end;
        gap: 20px;
    }
    .main-nav .btn-primary {
        padding: 8px 15px;
        font-size: 0.9rem;
    }
}

/* --- HERO --- */
.hero {
    margin-top: 80px;
    min-height: 90vh;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    text-align: center;
    padding: 0 15px;
}
.hero-image {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -2;
}
.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: -1;
}
.hero-content h1 {
    font-size: 3rem;
    margin-bottom: 15px;
}

/* --- AQUI ESTÁ A MODIFICAÇÃO --- */
.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 25px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
    line-height: 1.6;
}

/* --- BOTÕES HERO --- */
.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

/* --- SEÇÕES --- */
.section-subtitle {
    color: #555;
    text-align: center;
    font-size: 1.1rem;
    margin-bottom: 40px;
}

/* --- SERVIÇOS --- */
.services {
    padding: 90px 0;
    text-align: center;
}
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}
.card {
    background: #fff;
    padding: 40px 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
}
.card:hover {
    transform: translateY(-6px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

/* --- DEPOIMENTOS --- */
/* --- DEPOIMENTOS (REPAGINADO) --- */
.testimonials {
    padding: 100px 0;
    background: linear-gradient(180deg, #fffdf7 0%, #faf3e6 100%);
    text-align: center;
    position: relative;
}

.testimonials::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at center, rgba(255, 255, 255, 0.4) 0%, transparent 70%);
    pointer-events: none;
}

.testimonials h2 {
    margin-bottom: 10px;
    color: var(--color-primary);
    font-size: 2.6rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.testimonials .section-subtitle {
    margin-bottom: 60px;
    color: #666;
    font-size: 1.15rem;
    font-weight: 500;
}

.carousel-wrapper {
    position: relative;
    overflow: hidden;
    padding: 0 60px;
}

.testimonials-slider {
    display: flex;
    transition: transform 0.6s ease;
    gap: 30px;
}

.testimonial-card {
    background: #fff;
    border-radius: 18px;
    padding: 50px 35px;
    margin: 0 10px;
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.1);
    flex: 0 0 calc(33.333% - 30px);
    position: relative;
    overflow: hidden;
    transition: all 0.4s ease;
    transform: translateY(0);
}

.testimonial-card::before {
    content: "“";
    position: absolute;
    top: 10px;
    left: 25px;
    font-size: 5rem;
    color: var(--color-secondary);
    opacity: 0.15;
    font-family: 'Georgia', serif;
}

.testimonial-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

.testimonial-card p.quote {
    font-style: italic;
    font-size: 1.2rem;
    line-height: 1.8;
    color: #333;
    margin-bottom: 25px;
    position: relative;
    z-index: 2;
    animation: fadeIn 1s ease;
}

.author {
    color: var(--color-primary);
    font-weight: 700;
    font-size: 1.05rem;
    margin-top: 10px;
}

.author span {
    display: block;
    color: #777;
    font-size: 0.9rem;
    margin-top: 3px;
}

/* --- BOTÕES DO CARROSSEL (CORRIGIDO E MODERNO) --- */
.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.6rem;
    font-weight: bold;
    width: 55px;
    height: 55px;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    color: #fff;
    background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.25);
    transition: all 0.3s ease;
    z-index: 10; /* <-- impede que o botão fique atrás dos cards */
}

.carousel-btn:hover {
    transform: translateY(-50%) scale(1.1);
    background: linear-gradient(135deg, var(--color-secondary), var(--color-primary));
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.35);
}

.prev-btn { 
    left: 20px;
}
.next-btn { 
    right: 20px;
}

/* Em telas menores, os botões diminuem e ganham leve transparência */
@media (max-width: 768px) {
    .carousel-btn {
        width: 45px;
        height: 45px;
        font-size: 1.4rem;
        opacity: 0.85;
    }
}


@media (max-width: 768px) {
    .testimonial-card {
        flex: 0 0 100%;
    }

    .carousel-wrapper {
        padding: 0 20px;
    }

    .carousel-btn {
        display: none;
    }
}

/* --- Animação suave --- */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* --- ORÇAMENTO --- */
.quote-form-section {
    padding: 90px 0;
}
.quote-card {
    background: #fff;
    padding: 60px;
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.1);
    max-width: 850px;
    margin: 0 auto;
}
.quote-form {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}
.form-group {
    display: flex;
    flex-direction: column;
}
.form-group label {
    font-weight: 600;
    margin-bottom: 6px;
}
.form-group input {
    padding: 12px 14px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 1rem;
}
.form-group.half-width { flex: 1 1 calc(50% - 10px); }
.form-group.full-width { flex: 1 1 100%; }
button.full-width {
    width: 100%;
}

/* --- GALERIA --- */
.gallery-page {
    padding: 80px 0;
    margin-top: 70px;
    background-color: #faf8f3;
}

/* Lado a lado */
.gallery-columns {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 40px;
    max-width: 1300px;
    margin: 0 auto;
}

.btn-load {
  display: inline-block;
  margin-top: 20px;
  background: linear-gradient(90deg, var(--color-secondary), #f1d28a);
  color: var(--color-primary);
  font-weight: 600;
  border: none;
  padding: 12px 28px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.btn-load:hover {
  background: var(--color-primary);
  color: #fff;
  transform: translateY(-3px);
}



/* Seções individuais */
.gallery-section {
    flex: 1;
    min-width: 550px;
    text-align: center;
}

.gallery-section h3 {
    font-family: var(--font-headings);
    color: var(--color-primary);
    font-size: 1.8rem;
    margin-bottom: 20px;
    border-bottom: 2px solid var(--color-secondary);
    display: inline-block;
    padding-bottom: 8px;
}

/* Grade de imagens */
.image-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

/* Imagens otimizadas */
.image-grid img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 10px;
    cursor: pointer;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    filter: brightness(0.95);
    /* Lazy loading suaviza o carregamento */
    will-change: transform;
}

/* Hover */
.image-grid img:hover {
    transform: scale(1.04);
    box-shadow: 0 6px 15px rgba(0,0,0,0.3);
    filter: brightness(1);
}

/* Responsividade */
@media (max-width: 1200px) {
    .gallery-section {
        min-width: 100%;
    }
    .gallery-columns {
        flex-direction: column;
        align-items: center;
    }
}

@media (max-width: 768px) {
    .image-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .image-grid {
        grid-template-columns: 1fr;
    }
}

/* Botão voltar */
.back-button {
    display: inline-block;
    margin-top: 60px;
    padding: 12px 30px;
    background-color: var(--color-primary);
    color: #fff;
    font-weight: 600;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s ease;
    text-align: center;
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}

.back-button:hover {
    background-color: var(--color-secondary);
    color: var(--color-primary);
    transform: translateY(-3px);
}



/* --- LIGHTBOX --- */
.lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: 0.3s ease;
}
.lightbox.show {
    opacity: 1;
    visibility: visible;
}
.lightbox-content {
    max-width: 90%;
    max-height: 85vh;
    border-radius: 10px;
}
.lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: #fff;
    font-size: 40px;
    cursor: pointer;
}

/* --- FOOTER --- */
.footer {
    background-color: var(--color-primary);
    color: #fff;
    padding: 60px 0;
    text-align: center;
}
.footer-logo img {
    height: 75px;
    margin-bottom: 20px;
}
.instagram-link {
    color: #fff;
    border: 1px solid #fff;
    padding: 10px 20px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
}
.instagram-link:hover {
    background: #fff;
    color: var(--color-primary);
}

/* --- WHATSAPP --- */
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 30px;
    right: 30px;
    background-color: #25D366;
    color: #FFF;
    border-radius: 50%;
    text-align: center;
    font-size: 30px;
    box-shadow: 2px 2px 6px rgba(0,0,0,0.25);
    display: flex;
    justify-content: center;
    align-items: center;
    text-decoration: none;
}

/* --- RESPONSIVIDADE --- */
@media (max-width: 992px) {
    h1 { font-size: 2.5rem; }
    h2 { font-size: 2rem; }
    .gallery-columns { grid-template-columns: 1fr; }
}
/* --- PREVIEW DE IMAGENS (HOME) --- */
.preview-container {
  width: 100%;
  overflow: hidden;
  background: linear-gradient(180deg, #fffdf7 0%, #faf3e6 100%);
  padding: 25px 0;
  display: flex;
  flex-direction: column;
  gap: 25px;
}

.preview-row {
  display: flex;
  gap: 10px;
  white-space: nowrap;
  align-items: center;
  will-change: transform;
}

.preview-row img {
  height: 140px;
  width: auto;
  border-radius: 10px;
  object-fit: cover;
  transition: transform 0.3s ease;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.preview-row img:hover {
  transform: scale(1.05);
}

/* ⚡ Sincronizar movimento das duas linhas */
.top-row {
  animation: slideLeft 60s linear infinite;
}

.bottom-row {
  animation: slideRight 60s linear infinite;
}

/* Ambas iniciam do mesmo ponto no tempo */
@keyframes slideLeft {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* direita: vai de -50% até 0 (entra trazendo o começo da faixa) */
@keyframes slideRight {
  0%   { transform: translateX(-50%); }
  100% { transform: translateX(0); }
}

/* Responsivo */
@media (max-width: 768px) {
  .preview-row img {
    height: 100px;
  }
}

@media (max-width: 768px) {
    .form-group.half-width { flex: 1 1 100%; }
    .hero-content h1 { font-size: 2.2rem; }
    .hero-content p { font-size: 1rem; }
}
