/* Conte D'Rei — fullscreen overlay menu (matches the original two-pane layout) */
:root { --font-sans: "Montserrat", ui-sans-serif, system-ui, sans-serif; }
body { font-family: "Montserrat", ui-sans-serif, system-ui, sans-serif; }

/* Map section background (the original `bg-geral` utility was never compiled) */
:root { --geral: #f3f3f3; }
.bg-geral { background-color: var(--geral); }

/* Visually hidden, still read by screen readers and search engines */
.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;
}

/* Two-pane photo + panel (used by the contacts section) */
.overlay__photo {
  position: relative;
  overflow: hidden;
  background: var(--verde, #073c25);
}
.overlay__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.overlay__panel {
  position: relative;
  background: var(--verde, #073c25);
  color: #fff;
  padding: 64px 56px;
  display: flex;
  align-items: center;
  gap: 48px;
}

@media (max-width: 900px) {
  .overlay__photo { display: none; }
  .overlay__panel {
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    padding: 90px 28px 110px;
    gap: 40px;
    overflow-y: auto;
  }
}

/* ---- Cookie consent banner ---- */
.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 70;
  background: rgba(7, 60, 37, 0.92);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border-top: 1px solid rgba(242, 185, 123, 0.3);
  color: #fff;
  transform: translateY(100%);
  transition: transform .4s ease;
}
.cookie-banner.is-visible { transform: translateY(0); }

.cookie-banner__inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 18px 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 28px;
}
.cookie-banner__text {
  font-size: .95rem;
  line-height: 1.5;
  color: #f3f3f3;
  margin: 0;
}
.cookie-banner__actions {
  display: flex;
  gap: 14px;
  flex-shrink: 0;
}
.cookie-btn {
  font-family: inherit;
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: .08em;
  padding: 12px 26px;
  border-radius: 10px;
  cursor: pointer;
  transition: background-color .25s ease, color .25s ease, border-color .25s ease;
}
.cookie-btn--ghost {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.6);
  color: #fff;
}
.cookie-btn--ghost:hover {
  border-color: var(--dourado, #f2b97b);
  color: var(--dourado, #f2b97b);
}
.cookie-btn--gold {
  background: var(--dourado, #f2b97b);
  border: 1px solid var(--dourado, #f2b97b);
  color: var(--verde, #073c25);
}
.cookie-btn--gold:hover { filter: brightness(1.06); }

@media (max-width: 720px) {
  .cookie-banner__inner {
    flex-direction: column;
    gap: 16px;
    text-align: center;
    padding: 18px 20px;
  }
  .cookie-banner__actions { width: 100%; justify-content: center; }
  .cookie-btn { flex: 1; max-width: 180px; }
}

/* ===================== DomZeferino-style navbar ===================== */
#navbar {
  position: fixed;
  top: 0; left: 0;
  width: 100%;
  z-index: 50;
  padding: 28px 0;
  transition: background .3s ease, box-shadow .3s ease, padding .3s ease;
}
#navbar.scrolled {
  padding: 14px 0;
  background: rgba(7, 60, 37, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 2px 24px rgba(0, 0, 0, 0.28);
}
.nav-container {
  position: relative;
  max-width: 1240px;
  margin: 0 auto;
  min-height: 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 0 40px;
}
.nav-logo {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  display: inline-flex;
  align-items: center;
}
.nav-logo img { height: 36px; width: auto; display: block; }
.nav-left, .nav-right { display: flex; align-items: center; }
.nav-left { gap: 34px; }
.nav-right { gap: 34px; margin-left: auto; margin-right: 52px; }
.nav-link {
  position: relative;
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  font-size: .9rem;
  font-weight: 500;
  letter-spacing: .12em;
  text-transform: uppercase;
  transition: color .25s ease;
}
.nav-link::after {
  content: "";
  position: absolute;
  bottom: -3px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--dourado, #f2b97b);
  transition: width .3s ease;
}
.nav-link:hover { color: #fff; }
.nav-link:hover::after { width: 100%; }
/* Language button — pinned to the far right (DomZeferino style) */
.lang-btn {
  position: absolute;
  right: 40px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 60;
  background: none; border: 0;
  color: #fff;
  cursor: pointer;
  display: inline-flex;
  padding: 6px;
  transition: opacity .2s ease;
}
.lang-btn:hover { opacity: .8; }

/* Hamburger — pinned left, mobile only */
.hamburger {
  position: absolute;
  left: 40px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 60;
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none; border: 0;
  cursor: pointer;
  padding: 6px;
}
.hamburger span {
  display: block;
  width: 26px; height: 2px;
  background: #fff;
  transition: transform .3s ease, opacity .3s ease;
}
.hamburger.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 860px) {
  .nav-left, .nav-right { display: none; }
  .hamburger { display: flex; left: 20px; }
  .lang-btn { right: 20px; }
  .nav-container { padding: 0 20px; justify-content: center; }
  .nav-logo img { height: 30px; max-height: 30px; }
  /* Solid header on mobile so the logo stays legible over content */
  #navbar {
    padding: 16px 0;
    background: rgba(7, 60, 37, 0.97);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
  }
}

/* Mobile slide-in drawer */
.mobile-menu-backdrop {
  position: fixed; inset: 0;
  background: rgba(0, 0, 0, 0);
  z-index: 55;
  pointer-events: none;
  transition: background .35s ease;
}
.mobile-menu-backdrop.open { background: rgba(0, 0, 0, 0.45); pointer-events: auto; }
.mobile-menu {
  position: fixed; top: 0; left: 0;
  height: 100%; width: 300px; max-width: 85vw;
  background: rgba(7, 60, 37, 0.98);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-right: 1px solid rgba(242, 185, 123, 0.15);
  z-index: 60;
  transform: translateX(-100%);
  transition: transform .35s ease;
  display: flex; flex-direction: column;
  padding: 84px 32px 40px;
  box-shadow: 8px 0 32px rgba(0, 0, 0, 0.3);
}
.mobile-menu.open { transform: translateX(0); }
.mobile-menu-logo {
  align-self: center;
  height: 42px;
  width: auto;
  margin-top: -28px;
  margin-bottom: 28px;
}
.mobile-close {
  position: absolute; top: 24px; right: 26px;
  background: none; border: 0;
  color: #fff; font-size: 2rem; line-height: 1;
  cursor: pointer; transition: color .2s ease;
}
.mobile-close:hover { color: var(--dourado, #f2b97b); }
.mobile-link {
  color: #fff; text-decoration: none;
  font-size: 1.05rem; letter-spacing: .1em; text-transform: uppercase;
  padding: 16px 0;
  border-bottom: 1px solid rgba(242, 185, 123, 0.12);
  transition: color .25s ease;
}
.mobile-link:hover { color: var(--dourado, #f2b97b); }
.mobile-social { display: flex; gap: 20px; margin-top: 28px; font-size: 1.4rem; }
.mobile-social a { color: #fff; display: inline-flex; transition: color .2s ease; }
.mobile-social a:hover { color: var(--dourado, #f2b97b); }

/* ===================== Language slide-in panel ===================== */
.lang-panel-backdrop {
  position: fixed; inset: 0;
  background: rgba(0, 0, 0, 0);
  z-index: 65;
  pointer-events: none;
  transition: background .35s ease;
}
.lang-panel-backdrop.open { background: rgba(0, 0, 0, 0.45); pointer-events: auto; }
.lang-panel {
  position: fixed; top: 0; right: 0;
  width: 320px; max-width: 85vw; height: 100%;
  background: rgba(7, 60, 37, 0.98);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-left: 1px solid rgba(242, 185, 123, 0.15);
  z-index: 70;
  transform: translateX(100%);
  transition: transform .35s ease;
  display: flex; flex-direction: column;
  box-shadow: -8px 0 32px rgba(0, 0, 0, 0.3);
}
.lang-panel.open { transform: translateX(0); }
.lang-panel-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 24px 24px 16px;
  border-bottom: 1px solid rgba(242, 185, 123, 0.12);
}
.lang-panel-title { font-size: 1.2rem; color: var(--dourado, #f2b97b); letter-spacing: .05em; }
.lang-panel-close {
  background: none; border: 0;
  color: rgba(255, 255, 255, 0.6); font-size: 1.8rem; line-height: 1;
  cursor: pointer; transition: color .2s ease;
}
.lang-panel-close:hover { color: #fff; }
.lang-panel-list { flex: 1; overflow-y: auto; padding: 8px 0; }
.lang-option {
  display: flex; align-items: center; gap: 13px;
  padding: 13px 24px;
  text-decoration: none;
  color: rgba(255, 255, 255, 0.75);
  font-size: .9rem; font-weight: 500; letter-spacing: .12em;
  cursor: pointer;
  transition: background .25s ease, color .25s ease;
}
.lang-option:hover { background: rgba(242, 185, 123, 0.08); color: #fff; }
.lang-option.active { color: var(--dourado, #f2b97b); background: rgba(242, 185, 123, 0.06); }
.lang-flag-svg {
  width: 26px; height: 18px;
  border-radius: 2px; flex-shrink: 0;
  box-shadow: 0 0 1px rgba(0, 0, 0, 0.4);
}

/* ===================== Experience section (former overlay, now in-flow) ===================== */
.overlay-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 100vh;
}
.overlay-section .overlay__panel { height: 100%; }
@media (max-width: 900px) {
  .overlay-section { grid-template-columns: 1fr; }
}

/* ===================== Gallery ===================== */
.gallery {
  background: #fff;
  padding: 80px 24px;
}
.gallery__title {
  text-align: center;
  color: var(--verde, #073c25);
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  margin: 0 0 48px;
}
.gallery__scroller {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  gap: 14px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 14px;
  scrollbar-width: thin;
  scrollbar-color: var(--dourado, #f2b97b) transparent;
}
.gallery__scroller::-webkit-scrollbar { height: 6px; }
.gallery__scroller::-webkit-scrollbar-thumb { background: var(--dourado, #f2b97b); border-radius: 6px; }
.gallery__scroller::-webkit-scrollbar-track { background: transparent; }
.gallery__item {
  margin: 0;
  flex: 0 0 calc((100% - 28px) / 3); /* 3 per view (2 gaps of 14px) */
  scroll-snap-align: start;
  overflow: hidden;
  border-radius: 12px;
  aspect-ratio: 4 / 3;
}
.gallery__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .5s ease;
}
.gallery__item:hover img { transform: scale(1.06); }
@media (max-width: 860px) {
  .gallery { padding: 56px 0; }
  .gallery__title { padding: 0 16px; }
  .gallery__scroller {
    gap: 12px;
    padding: 0 16px 14px;
    scroll-padding-left: 16px;
  }
  .gallery__item { flex-basis: 100%; } /* 1 image per view on mobile */
}

/* ===================== Contacts (DomZeferino-style) ===================== */
.contactos {
  background: var(--geral, #f3f3f3);
  padding: 80px 24px;
}
.contactos__head { text-align: center; margin-bottom: 40px; }
.section-label {
  display: block;
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .35em;
  text-transform: uppercase;
  color: #b8924e;
  margin-bottom: 14px;
}
.section-title {
  color: var(--verde, #073c25);
  font-size: clamp(2rem, 4.5vw, 3.2rem);
  font-weight: 600;
  line-height: 1.15;
  text-transform: uppercase;
  letter-spacing: .04em;
  margin: 0;
}
.section-subtitle {
  color: #555;
  font-size: 1.05rem;
  line-height: 1.8;
  max-width: 680px;
  margin: 18px auto 0;
}
.divider-ornament {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin: 22px 0 0;
  color: var(--dourado, #f2b97b);
}
.divider-ornament span {
  width: 56px;
  height: 1px;
  background: var(--dourado, #f2b97b);
  opacity: .6;
}
.contactos-photo {
  border-radius: 12px;
  overflow: hidden;
  min-height: 320px;
}
.contactos-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}
.contactos-grid {
  max-width: 1140px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: stretch;
}
.contactos-map {
  margin-top: 6px;
  min-height: 260px;
}
.mapa-embed {
  min-height: 440px;
  border-radius: 12px;
  overflow: hidden;
  border: 3px solid var(--dourado, #f2b97b);
}
.mapa-embed iframe { width: 100%; height: 100%; display: block; }
.contactos-info { display: flex; flex-direction: column; gap: 18px; }
.contact-card {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  padding: 18px 20px;
  background: #fff;
  border-left: 3px solid var(--dourado, #f2b97b);
  border-radius: 4px;
  transition: transform .25s ease, box-shadow .25s ease;
}
.contact-card:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,0,0,.08); }
.contact-icon {
  width: 42px; height: 42px;
  flex-shrink: 0;
  background: var(--verde, #073c25);
  color: var(--dourado, #f2b97b);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
}
.contact-text strong {
  display: block;
  color: var(--verde, #073c25);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  margin-bottom: 4px;
}
.contact-text p { margin: 0; color: #444; line-height: 1.6; }
.contact-text a { color: #444; text-decoration: none; transition: color .2s ease; }
.contact-text a:hover { color: var(--dourado, #f2b97b); }
.contact-text .hours-list p { font-weight: 400; }
.contact-text .hours-second { margin-top: 10px; }
.contact-social { display: flex; gap: 14px; padding-top: 6px; }
.contact-social a {
  width: 42px; height: 42px;
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--dourado, #f2b97b);
  border-radius: 50%;
  color: var(--verde, #073c25);
  font-size: 1.05rem;
  transition: background .25s ease, color .25s ease;
}
.contact-social a:hover { background: var(--dourado, #f2b97b); color: #fff; }

@media (max-width: 880px) {
  .contactos-grid { grid-template-columns: 1fr; }
  .mapa-embed { min-height: 320px; }
  .contactos-photo { min-height: 0; height: 260px; }
}

/* ===================== Footer (DomZeferino-style) ===================== */
.footer {
  background: var(--verde, #073c25);
  color: #fff;
  padding: 64px 0 0;
}
.footer-inner {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
}
.footer-logo img { height: 44px; width: auto; display: block; }
.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px 32px;
}
.footer-links a {
  color: rgba(255,255,255,.85);
  text-decoration: none;
  font-size: .85rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  transition: color .25s ease;
}
.footer-links a:hover { color: var(--dourado, #f2b97b); }
.footer-social { display: flex; gap: 16px; font-size: 1.2rem; }
.footer-social a {
  width: 44px; height: 44px;
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--dourado, #f2b97b);
  border-radius: 50%;
  color: #fff;
  transition: background .25s ease, color .25s ease;
}
.footer-social a:hover { background: var(--dourado, #f2b97b); color: #fff; }
.footer-bottom {
  width: 100%;
  margin-top: 12px;
  padding: 24px 0;
  border-top: 1px solid rgba(242,185,123,.2);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  text-align: center;
}
.footer-bottom p { margin: 0; font-size: .82rem; color: rgba(255,255,255,.75); letter-spacing: .04em; }
.footer-credit { margin: 0; font-size: .82rem; color: rgba(255, 255, 255, 0.5); letter-spacing: .06em; }
.footer-credit a { color: var(--dourado, #f2b97b); text-decoration: none; font-weight: 600; transition: color .2s ease; }
.footer-credit a:hover { color: #fff; }

/* ===================== Merged Contacts (photo left + white info panel right) ===================== */
.contacts-section { min-height: auto; }
.contacts-section .overlay__panel {
  background: #fff;
  color: #222;
  flex-direction: column;
  align-items: stretch;
  justify-content: center;
  gap: 0;
  padding: 56px 48px;
}
.contacts-panel__inner {
  width: 100%;
  max-width: 470px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.contacts-head { margin-bottom: 4px; }
.contacts-title {
  color: var(--verde, #073c25);
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .04em;
  margin: 6px 0 8px;
}
.contacts-sub { color: #666; font-size: .98rem; line-height: 1.6; margin: 0; }
.contacts-section .contact-card {
  background: #faf9f6;
  border: 1px solid #ececec;
  border-left: 3px solid var(--dourado, #f2b97b);
}
.contacts-map { min-height: 240px; margin-top: 6px; }
.contacts-section .contact-social { padding-top: 4px; }

/* Smaller contact text */
.contacts-section .contact-card { padding: 14px 16px; gap: 14px; }
.contacts-section .contact-icon { width: 36px; height: 36px; }
.contacts-section .contact-text strong { font-size: .68rem; }
.contacts-section .contact-text p { font-size: .86rem; line-height: 1.5; }

@media (max-width: 900px) {
  .contacts-section .overlay__photo { display: block; height: 200px; }
  .contacts-section .overlay__panel { padding: 40px 22px; }
  .contacts-panel__inner { max-width: 100%; }
}
