:root {
  --color-background: #ffffff;
  --color-surface: #f5f5f2;
  --color-text: #20231f;
  --color-muted: #686d66;
  --color-accent: #174c3d;
  --color-border: #dfe3dd;
  --font-sans: 'Montserrat', Arial, Helvetica, sans-serif;
  --font-serif: 'Cormorant Garamond', Georgia, serif;
  --container: 1200px;
  --content: 780px;
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
  --section-space: clamp(3.5rem, 8vw, 7.5rem);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--color-background);
  color: var(--color-text);
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

body.menu-is-open {
  overflow: hidden;
}

img,
svg,
video {
  display: block;
  height: auto;
  max-width: 100%;
}

button,
input,
textarea,
select {
  font: inherit;
}

a {
  color: var(--color-accent);
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.18em;
}

a:hover {
  text-decoration-thickness: 0.14em;
}

:focus-visible {
  outline: 3px solid var(--color-accent);
  outline-offset: 3px;
}

.container {
  margin-inline: auto;
  max-width: calc(var(--container) + (var(--gutter) * 2));
  padding-inline: var(--gutter);
  width: 100%;
}

.content-narrow {
  max-width: calc(var(--content) + (var(--gutter) * 2));
}

.section {
  padding-block: var(--section-space);
}

.screen-reader-text {
  clip: rect(1px, 1px, 1px, 1px);
  clip-path: inset(50%);
  height: 1px;
  overflow: hidden;
  position: absolute !important;
  width: 1px;
  word-wrap: normal !important;
}

.screen-reader-text:focus {
  clip: auto !important;
  clip-path: none;
  display: block;
  height: auto;
  left: 1rem;
  padding: 0.75rem 1rem;
  top: 1rem;
  width: auto;
  z-index: 100000;
}

.site-header {
  background: var(--color-background);
  border-bottom: 1px solid var(--color-border);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.site-header:not(.site-header--overlay) {
  background: #123f33;
  color: #fff;
}

.site-header__inner {
  align-items: center;
  display: flex;
  justify-content: space-between;
  min-height: 5rem;
}

.site-header:not(.site-header--overlay) .site-header__inner {
  gap: clamp(1.5rem, 3vw, 4rem);
  min-height: 6.25rem;
}

.site-header:not(.site-header--overlay) .site-branding {
  flex: 0 0 auto;
  order: 1;
}

.site-header:not(.site-header--overlay) .site-logo img {
  max-height: 3.75rem;
  width: 13rem;
}

.desktop-navigation {
  flex: 1;
  order: 2;
}

.desktop-menu {
  align-items: center;
  display: flex;
  gap: clamp(1rem, 2vw, 2.4rem);
  justify-content: center;
  list-style: none;
  margin: 0;
  padding: 0;
}

.desktop-menu > li {
  align-items: center;
  display: flex;
  flex: 0 0 auto;
  position: relative;
}

.desktop-menu a {
  color: inherit;
  font-size: 0.9rem;
  text-decoration: none;
  white-space: nowrap;
}

.desktop-menu .current-menu-item > a,
.desktop-menu .current-menu-ancestor > a,
.desktop-menu .current-menu-parent > a,
.desktop-menu a:hover {
  font-weight: 700;
}

.desktop-menu > li > a {
  position: relative;
}

.desktop-menu > .current-menu-item > a::after,
.desktop-menu > .current-menu-ancestor > a::after,
.desktop-menu > .current-menu-parent > a::after {
  background: currentColor;
  bottom: -0.65rem;
  content: '';
  height: 2px;
  left: 0;
  position: absolute;
  right: 0;
}

.submenu-toggle {
  align-items: center;
  background: transparent;
  border: 0;
  color: inherit;
  cursor: pointer;
  display: inline-flex;
  justify-content: center;
}

.desktop-menu .submenu-toggle {
  height: 2rem;
  margin-left: 0.15rem;
  padding: 0 0.2rem;
  width: 1.35rem;
}

.submenu-toggle::before {
  border-bottom: 1.5px solid currentColor;
  border-right: 1.5px solid currentColor;
  content: '';
  height: 0.38rem;
  transform: translateY(-0.13rem) rotate(45deg);
  transition: transform 180ms ease;
  width: 0.38rem;
}

.menu-item-has-children.is-submenu-open > .submenu-toggle::before {
  transform: translateY(0.13rem) rotate(225deg);
}

.desktop-menu .sub-menu {
  background: #fffefa;
  border-radius: 0.55rem;
  box-shadow: 0 0.9rem 2.2rem rgb(5 31 24 / 22%);
  color: #123f33;
  left: 50%;
  list-style: none;
  margin: 0;
  min-width: 13.5rem;
  opacity: 0;
  padding: 0.65rem;
  pointer-events: none;
  position: absolute;
  top: calc(100% + 0.8rem);
  transform: translate(-50%, -0.35rem);
  transition: opacity 160ms ease, transform 160ms ease, visibility 160ms;
  visibility: hidden;
  z-index: 10;
}

.desktop-menu .sub-menu::before {
  content: '';
  height: 1rem;
  left: 0;
  position: absolute;
  right: 0;
  top: -1rem;
}

.desktop-menu .sub-menu li {
  display: block;
}

.desktop-menu .sub-menu a {
  border-radius: 0.35rem;
  display: block;
  font-size: 0.82rem;
  padding: 0.65rem 0.75rem;
  white-space: nowrap;
}

.desktop-menu .sub-menu a:hover,
.desktop-menu .sub-menu .current-menu-item > a {
  background: rgb(18 63 51 / 9%);
}

.desktop-menu .menu-item-has-children.is-submenu-open > .sub-menu {
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%, 0);
  visibility: visible;
}

.header-booking {
  border: 2px solid #fff;
  border-radius: 0.45rem;
  color: #fff;
  order: 3;
  padding: 0.7rem 1.4rem;
  text-decoration: none;
  white-space: nowrap;
}

.site-header:not(.site-header--overlay) .menu-toggle {
  display: none;
  order: 3;
}

.custom-logo {
  max-height: 3.5rem;
  width: auto;
}

.site-logo img {
  height: auto;
  max-height: 5rem;
  width: auto;
}

.site-logo__hero,
.site-logo__compact {
  display: block;
}

.site-logo,
.site-footer__brand {
  display: block;
  text-decoration: none;
}

.footer-menu {
  display: flex;
  gap: 2rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-menu a {
  color: inherit;
  text-decoration: none;
}

.menu-toggle {
  align-items: center;
  background: var(--color-accent);
  border: 1px solid var(--color-accent);
  border-radius: 0.5rem;
  color: #fff;
  cursor: pointer;
  display: inline-flex;
  gap: 1rem;
  letter-spacing: 0.04em;
  padding: 0.75rem 1.25rem;
  text-transform: uppercase;
}

.menu-toggle__arrow {
  font-size: 1.35rem;
  line-height: 1;
}

.primary-navigation {
  background: #eeece5;
  bottom: 0;
  box-shadow: 0 0 2rem rgb(0 0 0 / 12%);
  color: #174c3d;
  left: 0;
  max-width: 26rem;
  overflow-y: auto;
  position: fixed;
  top: 0;
  transform: translateX(-105%);
  transition: transform 260ms ease;
  width: min(100%, 26rem);
  z-index: 1002;
}

.primary-navigation.is-open {
  transform: translateX(0);
}

.primary-navigation__inner {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  padding: 2rem 3rem;
}

.menu-close {
  align-self: flex-start;
  background: transparent;
  border: 0;
  color: inherit;
  cursor: pointer;
  font-size: 2.25rem;
  font-weight: 300;
  line-height: 1;
  margin: 0 0 3rem;
  padding: 0;
}

.primary-menu {
  display: flex;
  flex-direction: column;
  font-family: var(--font-serif);
  font-size: 1.9rem;
  gap: 0.15rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.primary-menu .menu-item-has-children {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
}

.primary-menu .submenu-toggle {
  align-self: start;
  height: 2.4rem;
  padding: 0;
  width: 2.4rem;
}

.primary-menu .sub-menu {
  display: none;
  font-family: var(--font-sans);
  font-size: 0.82rem;
  grid-column: 1 / -1;
  line-height: 1.35;
  list-style: none;
  margin: 0.45rem 0 0.8rem;
  padding: 0 0 0 1rem;
}

.primary-menu .is-submenu-open > .sub-menu {
  display: block;
}

.primary-menu .sub-menu a {
  display: block;
  padding: 0.28rem 0;
}

.primary-menu .current-menu-item > a,
.primary-menu .current-menu-ancestor > a,
.primary-menu .current-menu-parent > a {
  font-weight: 600;
}

.primary-menu a {
  color: inherit;
  text-decoration: none;
}

.primary-menu a:hover {
  opacity: 0.65;
}

.menu-booking {
  align-items: center;
  border-block: 1px solid rgb(23 76 61 / 45%);
  color: inherit;
  display: flex;
  font-family: var(--font-serif);
  font-size: 1.75rem;
  justify-content: space-between;
  margin-top: 1.5rem;
  padding-block: 1rem;
  text-decoration: none;
}

.menu-description {
  font-size: 0.85rem;
  line-height: 1.35;
  margin-block: 1.5rem;
}

.menu-socials {
  display: flex;
  gap: 1rem;
}

.menu-socials img {
  height: 1.7rem;
  object-fit: contain;
  width: 1.7rem;
}

.menu-backdrop {
  background: rgb(0 0 0 / 38%);
  border: 0;
  bottom: 0;
  cursor: default;
  display: block;
  left: 0;
  opacity: 0;
  pointer-events: none;
  position: fixed;
  right: 0;
  top: 0;
  transition: opacity 240ms ease;
  z-index: 1001;
}

.menu-backdrop.is-open {
  opacity: 1;
  pointer-events: auto;
}

.entry-title,
.archive-title,
.error-404 h1 {
  line-height: 1.12;
  margin-block: 0 1.5rem;
}

.entry-title a {
  color: inherit;
  text-decoration: none;
}

.entry-meta,
.entry-categories {
  color: var(--color-muted);
  font-size: 0.875rem;
}

.entry-content > *:first-child { margin-top: 0; }
.entry-content > *:last-child { margin-bottom: 0; }

.posts-grid {
  display: grid;
  gap: clamp(2rem, 4vw, 3rem);
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.posts-grid .entry-thumbnail {
  aspect-ratio: 3 / 2;
  display: block;
  margin-bottom: 1.25rem;
  overflow: hidden;
}

.posts-grid .entry-thumbnail img {
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.button,
.search-submit,
input[type='submit'] {
  background: var(--color-accent);
  border: 1px solid var(--color-accent);
  border-radius: 0;
  color: #fff;
  cursor: pointer;
  display: inline-block;
  font-weight: 700;
  padding: 0.75rem 1.25rem;
  text-decoration: none;
}

.search-form {
  display: flex;
  gap: 0.5rem;
}

.search-form label {
  flex: 1;
}

.search-field,
input[type='text'],
input[type='email'],
input[type='url'],
textarea {
  background: #fff;
  border: 1px solid var(--color-border);
  color: inherit;
  min-height: 3rem;
  padding: 0.75rem;
  width: 100%;
}

.site-footer {
  background: #123f33;
  border-top: 0;
  color: #fff;
  padding-top: 3.5rem;
}

.site-footer__inner {
  align-items: center;
  display: flex;
  flex-direction: column;
  gap: 2rem;
  text-align: center;
}

.site-footer__brand img {
  height: auto;
  width: 13rem;
}

.site-footer__navigation { width: 100%; }

.site-footer .footer-menu {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-items: start;
  gap: 2rem;
  width: 100%;
  text-align: left;
}

.site-footer .footer-menu,
.site-footer .footer-menu ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-menu__heading,
.site-footer .footer-menu > li > a,
.footer-contact-group h2 {
  display: block;
  color: #fff;
  font-size: 1rem;
  font-weight: 600;
  margin: 0 0 1rem;
}

.site-footer .footer-menu .sub-menu {
  display: grid;
  position: static;
  gap: 0.5rem;
}

.site-footer .footer-menu a {
  display: inline-block;
  color: rgb(255 255 255 / 82%);
  line-height: 1.6;
  padding-block: 0.15rem;
}

.site-footer a:hover,
.site-footer a:focus-visible {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.site-footer a:focus-visible { outline: 2px solid currentColor; outline-offset: 4px; }

.site-footer__contact {
  border-top: 1px solid rgb(255 255 255 / 16%);
  display: grid;
  grid-template-columns: 1fr 1.2fr 1fr;
  gap: 2.5rem;
  font-size: 0.9rem;
  padding-top: 2rem;
  text-align: left;
  width: 100%;
}

.site-footer__contact p { margin: 0 0 0.75rem; }
.site-footer__contact a { color: inherit; text-decoration: none; }
.footer-contact-group { min-width: 0; }
.footer-contact-line { display: flex; align-items: flex-start; gap: 0.7rem; line-height: 1.65; }
.footer-contact-line > span, .footer-contact-line > a { min-width: 0; overflow-wrap: anywhere; }
.footer-icon { flex: 0 0 20px; margin-top: 0.15rem; }
.footer-social-name { display: block; font-weight: 500; }

.site-footer__awards {
  border-top: 1px solid rgb(255 255 255 / 9%);
  display: flex;
  gap: clamp(1.5rem, 5vw, 4rem);
  justify-content: center;
  padding-block: 2rem 3rem;
  width: 100%;
}

.site-footer__awards img {
  height: 9rem;
  object-fit: contain;
  width: 9rem;
}

.site-footer__bottom {
  background: #205747;
  font-size: 0.9rem;
  padding: 1rem var(--gutter);
  text-align: center;
}

.site-footer__bottom p {
  margin: 0;
}

.site-footer__bottom a {
  color: inherit;
  text-decoration: none;
}

.site-footer__bottom a:hover,
.site-footer__bottom a:focus-visible {
  text-decoration: underline;
}

.error-404 {
  text-align: center;
}

.error-404__code {
  color: var(--color-accent);
  font-size: clamp(5rem, 16vw, 11rem);
  font-weight: 800;
  line-height: 0.9;
  margin: 0;
}

@media (max-width: 900px) {
  .posts-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .desktop-navigation,
  .header-booking {
    display: none;
  }

  .site-header:not(.site-header--overlay) .menu-toggle {
    display: inline-flex;
    margin-left: auto;
  }

  .site-header:not(.site-header--overlay) .site-header__inner {
    gap: 0.75rem;
    padding-inline: 1rem;
  }

  .site-header:not(.site-header--overlay) .site-logo img {
    width: min(10.5rem, 46vw);
  }

  .site-header:not(.site-header--overlay) .menu-toggle {
    flex: 0 0 auto;
    font-size: 0.8rem;
    gap: 0.5rem;
    padding: 0.65rem 0.85rem;
  }
}

@media (max-width: 768px) {
  .footer-menu {
    align-items: flex-start;
    flex-direction: column;
  }

  .primary-navigation__inner {
    padding: 1.5rem 2rem;
  }

  .site-footer .footer-menu {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: start;
    gap: 2rem;
  }

  .site-footer__contact { grid-template-columns: 1fr; gap: 1.5rem; }

  .site-footer__awards {
    flex-wrap: wrap;
  }

  .site-footer__awards img {
    height: 7rem;
    width: 7rem;
  }
}

@media (max-width: 600px) {
  .posts-grid {
    grid-template-columns: 1fr;
  }

  .search-form {
    align-items: stretch;
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}

/* Atalho global e fixo para atendimento pelo WhatsApp. */
.whatsapp-float {
  align-items: center;
  background: #25d366;
  border: 3px solid #fff;
  border-radius: 50%;
  bottom: 7rem;
  box-shadow: 0 0.35rem 1rem rgb(0 0 0 / 22%);
  display: flex;
  height: 4.75rem;
  justify-content: center;
  left: auto;
  position: fixed;
  right: 1.5rem;
  transition: filter 180ms ease, transform 180ms ease;
  width: 4.75rem;
  z-index: 100;
}

.whatsapp-float:hover {
  filter: brightness(1.05);
  transform: scale(1.06);
}

.whatsapp-float:focus-visible {
  border-radius: 50%;
  outline: 3px solid #fff;
  outline-offset: 3px;
}

.whatsapp-float img {
  display: block;
  height: 100%;
  width: 100%;
}

.whatsapp-float svg {
  display: block;
  fill: #fff;
  height: 72%;
  width: 72%;
}

@media (max-width: 600px) {
  .whatsapp-float {
    bottom: 6rem;
    height: 4rem;
    right: 1rem;
    width: 4rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .whatsapp-float {
    transition: none;
  }
}

@media (max-width: 420px) {
  .site-footer .footer-menu { grid-template-columns: 1fr; }
}
