:root {
  --bg:        #FAF8F5;
  --bg2:       #F2EDE7;
  --bg3:       #E8DFD4;
  --accent:    #C4A882;
  --accent2:   #A8886A;
  --dark:      #3D2E22;
  --mid:       #7A6352;
  --light:     #BFA899;
  --white:     #FDFCFA;
  --radius:    2px;
  --nav-h:     76px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; overflow-x: hidden; }

body {
  font-family: 'DM Sans', sans-serif;
  background: var(--bg);
  color: var(--dark);
  font-size: 15px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* ─── NAVBAR ─────────────────────────────────────── */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  height: var(--nav-h);
  background: rgba(250,248,245,0.94);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--bg3);
  display: flex; align-items: center;
}
.nav-inner {
  max-width: 1180px; width: 100%; margin: 0 auto;
  padding: 0 32px;
  display: flex; align-items: center; justify-content: space-between;
}
.nav-logo {
  display: flex; align-items: center;
  text-decoration: none; flex-shrink: 0;
}
.nav-logo img { height: 38px; width: auto; display: block; }
.nav-links { display: flex; gap: 36px; align-items: center; }
.nav-links a {
  font-size: 13px; font-weight: 400; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--mid);
  text-decoration: none; position: relative;
  transition: color 0.2s;
}
.nav-links a::after {
  content: ''; position: absolute; bottom: -3px; left: 0;
  width: 0; height: 1px; background: var(--accent);
  transition: width 0.3s;
}
.nav-links a:hover, .nav-links a.active { color: var(--dark); }
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }
.nav-cta {
  background: var(--dark); color: var(--white) !important;
  padding: 10px 22px; border-radius: var(--radius);
  letter-spacing: 0.1em !important;
  transition: background 0.2s !important;
}
.nav-cta::after { display: none !important; }
.nav-cta:hover { background: var(--accent2) !important; color: var(--white) !important; }

/* hamburger */
.nav-burger { display: none; flex-direction: column; gap: 5px; cursor: pointer; background: none; border: none; padding: 4px; }
.nav-burger span { display: block; width: 22px; height: 1.5px; background: var(--dark); transition: all 0.3s; }
.mobile-menu {
  display: none; position: fixed; top: var(--nav-h); left: 0; right: 0;
  background: var(--bg); border-bottom: 1px solid var(--bg3);
  padding: 24px 32px; z-index: 99;
  flex-direction: column; gap: 18px;
}
.mobile-menu a {
  font-size: 14px; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--mid); text-decoration: none;
}
.mobile-menu a.active, .mobile-menu a:hover { color: var(--dark); }
.mobile-menu .btn-dark { color: var(--white) !important; }
.mobile-menu .btn-dark:hover { color: var(--white) !important; }
.mobile-menu.open { display: flex; }

/* ─── PAGE WRAPPER ───────────────────────────────── */
.page { padding-top: var(--nav-h); }

/* ─── SECTIONS ───────────────────────────────────── */
.section { padding: 100px 32px; max-width: 1180px; margin: 0 auto; }
.section-full { padding: 100px 0; }
.section-bg2 { background: var(--bg2); }
.section-bg3 { background: var(--bg3); }
.section-dark { background: var(--dark); color: var(--white); }

.label {
  font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--mid); font-weight: 500; margin-bottom: 12px; /* --mid #7A6352 = 5.4:1 contraste em fundo claro */
  display: block;
}
h1, h2, h3, h4 {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 400; line-height: 1.15; text-wrap: pretty;
}
h1 { font-size: clamp(52px, 7vw, 88px); }
h2 { font-size: clamp(36px, 4vw, 52px); }
h3 { font-size: clamp(22px, 2.5vw, 30px); }
h4 { font-size: 20px; }
.subtitle {
  font-size: 16px; color: var(--mid); max-width: 560px;
  line-height: 1.8; margin-top: 16px;
}

/* ─── BUTTONS ────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 32px; font-size: 12px; font-family: 'DM Sans', sans-serif;
  letter-spacing: 0.12em; text-transform: uppercase; font-weight: 500;
  text-decoration: none; border: none; cursor: pointer;
  border-radius: var(--radius); transition: all 0.25s;
}
.btn-dark { background: var(--dark); color: var(--white); }
.btn-dark:hover { background: var(--accent2); }
.btn-outline { background: transparent; color: var(--dark); border: 1px solid var(--dark); }
.btn-outline:hover { background: var(--dark); color: var(--white); }
.btn-accent { background: var(--accent); color: var(--white); }
.btn-accent:hover { background: var(--accent2); }
.btn-white { background: var(--white); color: var(--dark); }
.btn-white:hover { background: var(--bg3); }

/* ─── WHATSAPP FLOAT ─────────────────────────────── */
.wa-float {
  position: fixed; bottom: 28px; right: 28px; z-index: 200;
  width: 56px; height: 56px; border-radius: 50%;
  background: #25D366; color: #fff;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 20px rgba(37,211,102,0.4);
  text-decoration: none; transition: transform 0.2s, box-shadow 0.2s;
}
.wa-float:hover { transform: scale(1.08); box-shadow: 0 6px 28px rgba(37,211,102,0.5); }
.wa-float svg { width: 28px; height: 28px; }

/* ─── FOOTER ─────────────────────────────────────── */
footer {
  background: var(--dark); color: var(--light);
  padding: 64px 32px 32px;
}
.footer-inner {
  max-width: 1180px; margin: 0 auto;
  display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 48px;
}
.footer-logo {
  margin-bottom: 16px; display: block;
}
.footer-logo img { height: 44px; width: auto; display: block; filter: brightness(0) invert(1); }
.footer-desc { font-size: 14px; line-height: 1.7; max-width: 280px; }
.footer-col h5 {
  font-family: 'DM Sans', sans-serif; font-size: 11px;
  letter-spacing: 0.15em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 18px; font-weight: 500;
}
.footer-col a, .footer-col p {
  display: block; font-size: 14px; color: var(--light);
  text-decoration: none; margin-bottom: 10px; line-height: 1.6;
  transition: color 0.2s;
}
.footer-col a:hover { color: var(--white); }
.footer-socials { display: flex; gap: 14px; margin-top: 20px; }
.footer-socials a {
  width: 36px; height: 36px; border: 1px solid rgba(255,255,255,0.15);
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  color: var(--light); text-decoration: none; transition: all 0.2s;
}
.footer-socials a:hover { border-color: var(--accent); color: var(--accent); }
.footer-bottom {
  max-width: 1180px; margin: 48px auto 0;
  padding-top: 24px; border-top: 1px solid rgba(255,255,255,0.08);
  display: flex; justify-content: space-between; align-items: center;
  font-size: 12px; color: var(--mid); gap: 16px; flex-wrap: wrap;
}

/* ─── IMAGE PLACEHOLDERS ─────────────────────────── */
.img-placeholder {
  background: repeating-linear-gradient(
    -45deg,
    var(--bg3), var(--bg3) 4px,
    var(--bg2) 4px, var(--bg2) 12px
  );
  display: flex; flex-direction: column; align-items: center;
  justify-content: center; gap: 8px; color: var(--light);
  font-size: 11px; letter-spacing: 0.1em; text-align: center;
  padding: 16px;
}
.img-placeholder svg { opacity: 0.4; }

/* ─── IMAGENS ───────────────────────────────────── */
.hero-image img,
.about-img-wrap img,
.gallery-item img,
.ba-images img,
.team-photo img,
.team-photo-big img,
.story-img img,
.service-detail-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}


/* ─── GRID UTILS ─────────────────────────────────── */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }

/* ─── CARD ───────────────────────────────────────── */
.card {
  background: var(--white); border: 1px solid var(--bg3);
  border-radius: var(--radius); overflow: hidden;
  transition: transform 0.25s, box-shadow 0.25s;
}
.card:hover { transform: translateY(-4px); box-shadow: 0 16px 40px rgba(61,46,34,0.1); }
.card-body { padding: 28px; }

/* ─── DIVIDER ────────────────────────────────────── */
.divider { width: 48px; height: 1px; background: var(--accent); margin: 20px 0; }

/* ─── LUCIDE ICONS ───────────────────────────────── */
.icon { display: inline-flex; align-items: center; justify-content: center; }
.icon svg { width: 1em; height: 1em; stroke-width: 1.5; }

/* ─── ENTRANCE ANIMATIONS ────────────────────────── */
.ao-hidden {
  opacity: 0;
  transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}
.ao-fade-up    { transform: translateY(38px); }
.ao-fade-down  { transform: translateY(-28px); }
.ao-fade-left  { transform: translateX(38px); }
.ao-fade-right { transform: translateX(-38px); }
.ao-scale-up   { transform: scale(0.93); }
.ao-fade       { transform: none; }

.ao-hidden.ao-visible {
  opacity: 1 !important;
  transform: none !important;
}

/* legacy data-animate support */
[data-animate] {
  opacity: 0;
  transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}
[data-animate="fade-up"]    { transform: translateY(38px); }
[data-animate="fade-left"]  { transform: translateX(38px); }
[data-animate="fade-right"] { transform: translateX(-38px); }
[data-animate="scale-up"]   { transform: scale(0.93); }
[data-animate].is-visible,
[data-animate].ao-visible   { opacity:1 !important; transform:none !important; }

/* hero always visible */
.hero-text { opacity: 1 !important; transform: none !important; }

/* ─── RESPONSIVE ─────────────────────────────────── */
@media (max-width: 900px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .footer-inner { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .section { padding: 64px 20px; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .nav-links { display: none; }
  .nav-burger { display: flex; }
  .footer-inner { grid-template-columns: 1fr; }
  h1 { font-size: 44px; }
  h2 { font-size: 32px; }

  /* Formulários */
  .form-row { grid-template-columns: 1fr !important; }
  .form-group input,
  .form-group select,
  .form-group textarea { font-size: 16px; } /* evita zoom automático no iOS */

  /* Containers de botões viram coluna, botões preenchem 100% */
  main .hero-actions,
  main .cta-actions {
    display: flex !important;
    flex-direction: column !important;
    width: 100% !important;
  }
  main .hero-actions .btn,
  main .cta-actions .btn,
  main .section .btn {
    display: flex !important;
    width: 100% !important;
    max-width: 100% !important;
    justify-content: center !important;
    box-sizing: border-box !important;
  }
}

/* ─── UTILITÁRIOS DE ACESSIBILIDADE ─────────────── */
.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; top: -48px; left: 16px;
  background: var(--dark); color: var(--white);
  padding: 10px 20px; z-index: 10000; font-size: 13px;
  border-radius: var(--radius); text-decoration: none;
  transition: top 0.2s;
}
.skip-link:focus { top: 12px; }

/* ─── TRANSIÇÃO DE PÁGINA (overlay) ─────────────── */
#pt {
  position: fixed; inset: 0; z-index: 9998;
  background: var(--bg);
  pointer-events: none;
  opacity: 0; /* transparente por padrão — JS só ativa ao sair da página */
  transition: opacity 0.32s ease;
}

/* ─── PAGE HERO (páginas internas) ───────────────── */
.page-hero { background: var(--bg2); padding: 80px 32px 72px; text-align: center; overflow: hidden; }
.page-hero-inner { max-width: 640px; margin: 0 auto; }
.page-hero h1 { font-size: clamp(40px, 5vw, 64px); }
.page-hero .ph-label,
.page-hero h1,
.page-hero .subtitle { opacity: 1; transform: none; }

/* ─── CTA BANNER ─────────────────────────────────── */
.cta-banner { text-align: center; padding: 100px 32px; background: var(--dark); }
.cta-banner h2 { color: var(--white); font-size: clamp(36px, 4vw, 58px); margin-bottom: 16px; }
.cta-banner h2 em { color: var(--accent); font-style: italic; }
.cta-banner p { color: var(--light); font-size: 16px; margin-bottom: 40px; }
.cta-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* ─── FORMULÁRIOS ────────────────────────────────── */
.form-group { margin-bottom: 20px; }
.form-group label { display: block; font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--mid); margin-bottom: 8px; font-weight: 500; }
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  padding: 13px 16px;
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  color: var(--dark);
  background: var(--bg);
  border: 1px solid var(--bg3);
  border-radius: var(--radius);
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  -webkit-appearance: none;
  appearance: none;
}

/* Seta customizada no select */
.form-group select {
  padding-right: 42px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%237A6352' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  cursor: pointer;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(196,168,130,0.15); }
.form-group textarea { resize: vertical; min-height: 120px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-success { display: none; text-align: center; padding: 40px 20px; }
.form-success.show { display: block; }
.form-success h4 { margin-bottom: 8px; }
.form-success p { font-size: 14px; color: var(--mid); }
.success-icon { width: 64px; height: 64px; border-radius: 50%; background: var(--bg2); display: flex; align-items: center; justify-content: center; font-size: 28px; margin: 0 auto 20px; color: var(--accent); }

/* ─── CUSTOM SELECT ─────────────────────────────── */
.cs-wrap { position: relative; }

.cs-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 13px 16px;
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  color: var(--dark);
  background: var(--bg);
  border: 1px solid var(--bg3);
  border-radius: var(--radius);
  cursor: pointer;
  text-align: left;
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
  -webkit-appearance: none;
  appearance: none;
}
.cs-trigger:focus,
.cs-wrap.cs-open .cs-trigger {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(196,168,130,0.15);
}
.cs-trigger svg { flex-shrink: 0; color: var(--mid); transition: transform 0.2s; }
.cs-wrap.cs-open .cs-trigger svg { transform: rotate(180deg); }

.cs-value { flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cs-value.cs-placeholder { color: var(--light); }

.cs-list {
  position: absolute;
  top: calc(100% + 4px);
  left: 0; right: 0;
  background: var(--white);
  border: 1px solid var(--bg3);
  border-radius: var(--radius);
  box-shadow: 0 8px 32px rgba(61,46,34,0.12);
  list-style: none;
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 0.25s ease, opacity 0.2s;
  z-index: 60;
}
.cs-wrap.cs-open .cs-list {
  max-height: 280px;
  overflow-y: auto;
  opacity: 1;
}
.cs-option {
  padding: 13px 16px;
  font-size: 14px;
  color: var(--dark);
  cursor: pointer;
  transition: background 0.15s;
  border-bottom: 1px solid var(--bg3);
}
.cs-option:last-child { border-bottom: none; }
.cs-option:hover { background: var(--bg2); }
.cs-option.cs-selected { color: var(--accent); font-weight: 500; }
.cs-option[data-value=""] { color: var(--light); }

/* ─── VALIDAÇÃO ──────────────────────────────────── */
.form-group input.is-invalid,
.form-group select.is-invalid,
.form-group textarea.is-invalid {
  border-color: #B5392A;
  box-shadow: 0 0 0 3px rgba(181,57,42,0.12);
}
.form-group input.is-invalid:focus,
.form-group select.is-invalid:focus,
.form-group textarea.is-invalid:focus {
  border-color: #B5392A;
  box-shadow: 0 0 0 3px rgba(181,57,42,0.18);
  outline: none;
}
.field-error-msg {
  display: block; font-size: 11px; color: #B5392A;
  letter-spacing: 0.02em; margin-top: 6px;
}

/* ─── WHATSAPP BOTÃO GRANDE ──────────────────────── */
.wa-big { display: flex; align-items: center; gap: 16px; background: #25D366; color: #fff; padding: 18px 28px; border-radius: var(--radius); text-decoration: none; font-weight: 500; font-size: 15px; transition: background 0.2s, transform 0.2s; margin-bottom: 16px; }
.wa-big:hover { background: #1da851; transform: translateY(-2px); }
.wa-big svg { width: 26px; height: 26px; flex-shrink: 0; stroke: white; }
.wa-big-text small { display: block; font-size: 12px; opacity: 0.85; font-weight: 400; margin-top: 2px; }

/* ─── MAPA ───────────────────────────────────────── */
.map-wrap { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--bg3); position: relative; }
.map-wrap iframe { width: 100%; height: 100%; border: none; display: block; }
.map-overlay-card { position: absolute; background: var(--white); border-radius: var(--radius); box-shadow: 0 8px 32px rgba(61,46,34,0.12); }
.map-overlay-card h5 { font-family: 'Cormorant Garamond', serif; font-size: 18px; margin-bottom: 6px; }
.map-overlay-card p { font-size: 13px; color: var(--mid); line-height: 1.6; margin-bottom: 12px; }
.map-overlay-card a { font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent); text-decoration: none; font-weight: 500; }

/* ─── MODAL PORTFÓLIO ────────────────────────────── */
.portfolio-modal {
  position: fixed; inset: 0; z-index: 9999;
  background: rgba(30,20,14,0.72);
  backdrop-filter: blur(8px);
  display: none;
  align-items: center; justify-content: center;
  padding: 20px;
  transition: opacity 0.35s;
}
.portfolio-modal.is-visible { display: flex; }
.portfolio-modal.is-closing { opacity: 0; pointer-events: none; }

.portfolio-modal-box {
  background: var(--white);
  border-radius: 18px;
  padding: 0;
  max-width: 420px; width: 100%;
  max-height: calc(100dvh - 40px);
  box-shadow: 0 40px 100px rgba(30,20,14,0.35);
  overflow-y: auto;
  overflow-x: hidden;
}

/* Topo escuro */
.portfolio-modal-header {
  background: var(--dark);
  padding: 24px 32px 20px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}
.portfolio-modal-header img {
  height: 32px; width: auto;
  filter: brightness(0) invert(1);
  display: block;
}
.portfolio-modal-tag {
  font-size: 9px; letter-spacing: 0.22em;
  text-transform: uppercase; color: rgba(255,255,255,0.45); font-weight: 500;
}

/* Corpo */
.portfolio-modal-body {
  padding: 28px 32px 32px;
  text-align: center;
}
.portfolio-modal-body p {
  font-size: 14px; color: var(--mid); line-height: 1.8; margin-bottom: 0;
}
.portfolio-modal-body strong { color: var(--dark); }

/* Linha divisória */
.portfolio-modal-divider {
  height: 1px; background: var(--bg3); margin: 20px 0;
}

/* Atribuição */
.portfolio-modal-brand {
  display: flex; align-items: center; justify-content: center;
  flex-wrap: wrap; gap: 6px;
  font-size: 12px; color: var(--light); margin-bottom: 20px;
}
.portfolio-modal-brand a {
  color: var(--accent); text-decoration: none; font-weight: 600;
}
.portfolio-modal-brand a:hover { color: var(--accent2); }
.portfolio-modal-brand span { color: var(--bg3); }

/* Botões */
.portfolio-modal-actions {
  display: flex; flex-direction: column; gap: 8px;
}
.portfolio-modal-actions .btn {
  border-radius: 10px;
}

@media (max-width: 480px) {
  .portfolio-modal-header { padding: 20px 24px 16px; }
  .portfolio-modal-body { padding: 22px 24px 26px; }
}

/* ─── FOOTER LINK ALB SEVEN ──────────────────────── */
.footer-bottom a { color: var(--accent); text-decoration: none; transition: color 0.2s; }
.footer-bottom a:hover { color: var(--white); }

/* ─── LANGUAGE TOGGLE ────────────────────────────── */
.lang-toggle {
  display: flex; align-items: center; margin-left: 8px;
  border: 1px solid var(--bg3); border-radius: var(--radius); overflow: hidden;
}
.lang-opt {
  background: none; border: none; padding: 5px 10px;
  font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--mid); cursor: pointer; font-family: 'DM Sans', sans-serif;
  font-weight: 500; line-height: 1;
  transition: background 0.2s, color 0.2s;
}
.lang-opt:not(:last-child) { border-right: 1px solid var(--bg3); }
.lang-opt.active { background: var(--dark); color: var(--white); }
.lang-opt:not(.active):hover { background: var(--bg2); color: var(--dark); }
.mobile-menu .lang-toggle { margin-left: 0; }
.mobile-menu .lang-opt { font-size: 13px; padding: 8px 16px; }
