:root {
    --white: #ffffff;
    --gold: #b17d2b;
    --purple: #3C1053;
    --text: #333333;
}

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

body {
    font-family: 'Segoe UI', Arial, Helvetica, sans-serif;
    color: var(--text);
    background: var(--white);
    scroll-behavior: smooth;
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: var(--purple);
    transition: color 0.3s;
}

a:hover {
    color: var(--gold);
}

.container {
    width: min(90%, 1200px);
    margin-inline: auto;
}

/* Header */
header {
    background: var(--white);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
}

/* Nav Bar Layout */
.nav-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 0;
    flex-wrap: wrap;
    overflow: none;
    overflow-y: hidden;
    overflow-x: hidden;
    height: 75px; /* fixed height for consistency */
}

/* Logo Image Style */
.logo {
    height: 74px;      /* Adjust this size as needed */
    width: auto;
    display: block;
    object-fit: contain;
}

/* Nav Links */
.nav-links {
    list-style: none;
    display: flex;
    gap: 1rem;
    
}

.nav-links li a {
    font-weight: 500;
    
}

.nav-links li a.active {
    color: var(--gold);
}

/* Primary Button */
.btn-primary {
    background: var(--purple);
    color: var(--white);
    padding: 0.75rem 1.5rem;
    border-radius: 4px;
    display: inline-block;
    font-weight: 600;
    transition: background 0.3s;
    white-space: nowrap;
}

.btn-primary:hover {
    background: var(--gold);
    color: #ffffff;
}

/* Hero */
.hero {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 6rem 1rem;
    background: linear-gradient(135deg, var(--purple) 0%, var(--gold) 100%);
    color: var(--white);
}

.hero h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.hero p {
    font-size: 1.125rem;
    margin-bottom: 2rem;
}

/* Cards (Serviços e Profissionais) */
.cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.card {
    background: var(--white);
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
    padding: 1.5rem;
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
}

.card:hover {
    transform: translateY(-6px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

/* Profissionais */
.professional img {
    width: 100%;
    border-radius: 8px;
    margin-bottom: 1rem;
}

/* Contato */
.contact form {
    display: grid;
    gap: 1rem;
    margin-top: 1rem;
}

.contact input,
.contact textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ccc;
    border-radius: 4px;
}

.whatsapp-note {
    margin-top: 1rem;
    font-size: 0.9rem;
}

/* Rodapé */
footer {
    text-align: center;
    padding: 2rem 1rem;
    background: #fafafa;
    margin-top: 2rem;
    font-size: 0.875rem;
}

/* Animações */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in.appear {
    opacity: 1;
    transform: none;
}

/* --- Layout alternado de profissionais --- */
.professional-list .pro-row {
    display: flex;
    align-items: center;
    gap: 2rem;
    margin: 3rem 0;
}

.professional-list .pro-row:nth-child(even) {
    flex-direction: row-reverse;   /* inverte imagem/texto */
}

.pro-img {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    box-shadow: 0 2px 6px rgba(0,0,0,0.08);
}

.pro-info h3 {
    margin-bottom: 0.5rem;
    color: var(--purple);
}

/* Responsivo: empilha no mobile */
@media (max-width: 768px) {
    .professional-list .pro-row,
    .professional-list .pro-row:nth-child(even) {
        flex-direction: column;
        text-align: center;
    }

    /* Nav responsive */
    .nav-bar {
        flex-direction: column;
        align-items: flex-start;
    }
    .nav-links {
        flex-direction: column;
        gap: 0.5rem;
        margin-top: 0.5rem;
        width: 100%;
    }
    .btn-primary {
        width: 100%;
        text-align: center;
        margin-top: 0.5rem;
        white-space: normal;
    }
}

/* Sobre page styling */
.about {
    background: #fffafa; /* very light warm background */
    padding: 3rem 1rem 4rem;
    border-radius: 12px;
    box-shadow: 0 6px 15px rgba(212, 175, 55, 0.15); /* subtle gold-ish glow */
    margin-bottom: 3rem;
}

.about h1 {
    font-size: 2.8rem;
    margin-bottom: 1.5rem;
    color: var(--purple);
    border-bottom: 3px solid var(--gold);
    padding-bottom: 0.25rem;
    font-weight: 700;
}

.about h2 {
    font-size: 1.8rem;
    margin-top: 2rem;
    margin-bottom: 0.75rem;
    color: var(--purple);
    font-weight: 600;
    border-left: 6px solid var(--gold);
    padding-left: 0.75rem;
}

.about p {
    font-size: 1.1rem;
    color: var(--text);
    margin-bottom: 1rem;
    line-height: 1.7;
}

.about ul {
    list-style: inside disc;
    margin-top: 0.5rem;
    color: var(--text);
    font-size: 1.1rem;
    padding-left: 0.5rem;
}

.about ul li {
    margin-bottom: 0.4rem;
    font-weight: 500;
}

/* Responsive tweaks for Sobre */
@media (max-width: 768px) {
    .about {
        padding: 2rem 1rem 3rem;
        margin-bottom: 2rem;
    }

    .about h1 {
        font-size: 2.2rem;
    }

    .about h2 {
        font-size: 1.5rem;
    }

    .about p, .about ul {
        font-size: 1rem;
    }
}

/* Global Responsive Base */
body, html {
  font-size: 16px; /* base font size */
  scroll-behavior: smooth;
}

/* Make container width more fluid on small devices */
.container {
  width: 90vw;
  max-width: 1200px;
  margin-inline: auto;
  padding: 0 1rem;
}

/* Navigation Responsive */
@media (max-width: 1024px) {
  .nav-bar {
    gap: 0.75rem;
  }
}

@media (max-width: 768px) {
  /* Stack nav items vertically */
  .nav-bar {
    flex-direction: column;
    align-items: flex-start;
    padding: 1rem 0;
  }

  /* Nav links vertical stack */
  .nav-links {
    flex-direction: column;
    gap: 0.5rem;
    margin-top: 0.5rem;
    width: 100%;
  }

  /* Button full width */
  .btn-primary {
    width: 100%;
    text-align: center;
    margin-top: 0.5rem;
  }

  /* Logo alignment */
  .logo {
    height: 45px;
    margin-bottom: 0.5rem;
  }
}

/* Navbar stays horizontal on all devices */
.nav-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 0;
    flex-wrap: nowrap; /* Prevent wrapping */
    overflow-x: auto;  /* Allow horizontal scroll if too wide */
    -webkit-overflow-scrolling: touch; /* Smooth scrolling on iOS */
}

/* Nav links as horizontal scroll on small screens */
.nav-links {
    display: flex;
    gap: 1rem;
    flex-wrap: nowrap; /* no wrapping */
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

/* Make the scroll bar hidden for cleaner look (optional) */
.nav-links::-webkit-scrollbar {
    display: none;
}
.nav-links {
    -ms-overflow-style: none;  /* IE and Edge */
    scrollbar-width: none;     /* Firefox */
}

/* Button stays normal, no full width on mobile */
.btn-primary {
    white-space: nowrap;
}

/* Smaller logo on phones */
@media (max-width: 480px) {
    .logo {
        height: 40px;
        margin-right: 0.5rem;
    }
    
    /* Slightly smaller nav links font */
    .nav-links li a {
        font-size: 0.9rem;
    }

    /* Reduce gap to save space */
    .nav-links {
        gap: 0.75rem;
    }

    .btn-primary {
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
    }
}

.proftitle {
    color: var(--purple);
}

.desc {
    margin-top: 9px;
}

.projectstitle {
    color: var(--purple);
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    text-align: left;
    font-weight: 600;
    font-family: 'Segoe UI', Arial, Helvetica, sans-serif;
    font-weight: bold;
    margin-left: 20px;
    margin-top: 10px;
}

.ofer-img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

.titleservicos {
    color: var(--gold);
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    text-align: center;
    font-weight: 600;
    font-family: 'Segoe UI', Arial, Helvetica, sans-serif;
    margin-top: 1rem;
}

/* =========================================================
   MODAL – janela central “Saiba Mais”
   ========================================================= */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    display: none;                 /* escondido por padrão */
    align-items: center;
    justify-content: center;
    z-index: 2000;
    backdrop-filter: blur(4px);
}

.modal-overlay.show {
    display: flex;                 /* ativado via JS */
}

.modal-window {
    background: var(--white);
    width: min(90%, 500px);
    padding: 2rem 1.5rem 2.5rem;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    position: relative;
    animation: pop 0.35s ease-out;
}

@keyframes pop {
    from { transform: scale(0.9); opacity: 0; }
    to   { transform: scale(1);   opacity: 1; }
}

.modal-close {
    position: absolute;
    top: 0.5rem;
    right: 0.75rem;
    background: transparent;
    border: none;
    font-size: 2rem;
    line-height: 1;
    color: var(--purple);
    cursor: pointer;
}

.modal-img {
    width: 100%;
    height: auto;
    margin: 1rem 0;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

/* =========================================================
   PEQUENO AJUSTE NO TÍTULO DE SERVIÇOS
   ========================================================= */
.titleservicos {
    color: var(--gold);
    font-size: 2rem;        /* um pouco maior */
    margin: 2rem auto 1.5rem;
    text-align: center;
    font-weight: 700;
    max-width: 800px;
}

.modal-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background-color: rgba(0, 0, 0, 0.6);
  display: none; /* mostrado via JS */
  align-items: center;
  justify-content: center;
  z-index: 10000;
  padding: 1rem;
}

.modal-window {
  background: white;
  border-radius: 8px;
  max-width: 500px;     /* largura máxima */
  width: 90vw;          /* largura responsiva */
  max-height: 80vh;     /* altura máxima do modal */
  overflow-y: auto;     /* scroll vertical se conteúdo passar */
  padding: 1.5rem 2rem;
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.3);
  position: relative;
  text-align: center;
}

.modal-img {
  max-width: 100%;
  height: auto;
  border-radius: 6px;
  margin: 1rem 0;
}

.modal-close {
  position: absolute;
  top: 0.5rem;
  right: 1rem;
  background: transparent;
  border: none;
  font-size: 2rem;
  cursor: pointer;
  line-height: 1;
  color: #333;
  transition: color 0.2s;
}

.modal-close:hover {
  color: var(--gold);
}

/* Botão Reservar dentro do modal */
.modal-window .btn-primary {
  margin-top: 1rem;
  padding: 0.75rem 1.5rem;
}

.social-icon {
    width: 24px;
    height: 24px;
    margin-left: 10px;
    vertical-align: middle;
    margin-top: 10px;
    brightness: 1.5; /* slightly brighter */
}

.social-icon:hover {
    transform: scale(1.2);
    transition: transform 0.7s ease-in-out;
    content: url('imgs/icons8-instagram.svg'); /* Use the same icon for hover effect */";
    brightness: 1.6; /* slightly brighter */
}

