:root {
  --cm-bg: #e3d4b4;
  --cm-ink: #525252;
  --cm-burgundy: #8b4726;
  --cm-burgundy-deep: #6b3419;
  --cm-orange-line: #ff6600;
  --cm-gold-dark: #944f23;
  --cm-gold: #8b4726;
  --cm-stone: #6d6d6d;
  --cm-border: #d0c8bc;
  --cm-cream: #eeeacc;
  --cm-muted: #cccccc;
  --cm-wall: #e3d4b4;
  --cm-wa: #25d366;
  --cm-radius: 12px;
  --cm-radius-pill: 999px;
  --cm-font-ui: Tahoma, Verdana, Geneva, sans-serif;
  --cm-font-display: Tahoma, Verdana, Geneva, sans-serif;
  --cm-ease: ease;
  --cm-duration: 400ms;
  --header-h: 96px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--cm-font-ui);
  color: var(--cm-ink);
  background: var(--cm-bg);
  line-height: 1.65;
  min-height: 100vh;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
}

.skip {
  position: absolute;
  left: -999px;
  top: 0;
}

.skip:focus {
  left: 8px;
  top: 8px;
  background: #fff;
  padding: 8px 12px;
  z-index: 100;
  border: 1px solid var(--cm-border);
}

.wrap {
  width: min(1120px, calc(100% - 40px));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(227, 212, 180, 0.96);
  border-bottom: 1px solid var(--cm-muted);
  backdrop-filter: blur(8px);
}

.nav a,
.nav-toggle,
.dropdown > button,
.dropdown-menu a,
.cta,
.more,
.crumbs,
.kicker {
  font-family: var(--cm-font-display);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: var(--header-h);
}

.brand {
  display: flex;
  align-items: center;
  min-width: 0;
  flex: 0 1 auto;
}

.brand img {
  height: 52px;
  width: auto;
  max-width: min(280px, 62vw);
  object-fit: contain;
  mix-blend-mode: multiply;
}

.nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav a,
.nav-toggle,
.dropdown > button {
  font-family: var(--cm-font-display);
  color: var(--cm-burgundy);
  background: none;
  border: 0;
  cursor: pointer;
  padding: 10px 12px;
  font-size: 0.95rem;
}

.nav a:hover,
.dropdown > button:hover,
.dropdown-menu a:hover,
.more:hover,
.crumbs a:hover,
.site-footer a:hover {
  text-decoration: underline;
}

.nav a.is-active,
.dropdown > button.is-active {
  font-weight: 700;
}

.dropdown {
  position: relative;
}

.dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 280px;
  background: #fff;
  border: 1px solid var(--cm-border);
  border-radius: 8px;
  padding: 8px 0;
  max-height: 70vh;
  overflow: auto;
  box-shadow: 0 12px 30px rgba(92, 46, 36, 0.08);
}

.dropdown:hover .dropdown-menu,
.dropdown:focus-within .dropdown-menu,
.dropdown.open .dropdown-menu {
  display: block;
}

.dropdown-menu a {
  display: block;
  padding: 8px 16px;
  font-size: 0.82rem;
}

.dropdown-menu a:hover {
  background: var(--cm-wall);
}

.cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--cm-burgundy);
  color: #fff !important;
  padding: 11px 18px !important;
  border: 1px solid var(--cm-burgundy);
  border-radius: 8px;
  transition: background var(--cm-duration) var(--cm-ease);
}

.cta:hover {
  background: var(--cm-burgundy-deep);
  border-color: var(--cm-burgundy-deep);
  text-decoration: none;
}

.cta-ghost {
  background: transparent;
  color: #fff !important;
  border: 1px solid #fff;
}

.cta-ghost:hover {
  background: #fff;
  color: var(--cm-burgundy) !important;
}

.cta-pill {
  border-radius: var(--cm-radius-pill);
  width: 100%;
}

.nav-toggle {
  display: none;
  border: 1px solid var(--cm-border);
  padding: 8px 12px;
}

.link-ext {
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
}

.link-ext .icon {
  width: 1em;
  height: 1em;
  flex-shrink: 0;
}

.footer-contacts {
  display: grid;
  gap: 8px;
}

.page {
  animation: fade 0.4s ease;
}

@keyframes fade {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.hero {
  position: relative;
  isolation: isolate;
  min-height: 78vh;
  background: #d4c8b8;
  color: #fff;
  display: flex;
  align-items: flex-end;
  padding: 80px 0 68px;
  overflow: hidden;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
  display: flex;
  justify-content: center;
  background: #d4c8b8;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 38%;
  filter: brightness(1.22) contrast(1.06) saturate(1.04);
}

.hero-veil {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(
      180deg,
      rgba(20, 12, 8, 0.06) 0%,
      rgba(20, 12, 8, 0.1) 48%,
      rgba(20, 12, 8, 0.42) 100%
    ),
    linear-gradient(
      90deg,
      rgba(20, 12, 8, 0.28) 0%,
      rgba(20, 12, 8, 0.08) 42%,
      transparent 70%
    );
  pointer-events: none;
}

.hero .wrap {
  position: relative;
  z-index: 2;
}

.hero h1 {
  font-family: var(--cm-font-display);
  font-weight: 400;
  font-size: clamp(2rem, 5vw, 3.4rem);
  letter-spacing: 0.03em;
  margin: 0 0 12px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  width: max-content;
  max-width: 100%;
  text-shadow: 0 2px 14px rgba(16, 10, 8, 0.45);
}

.hero-name-top {
  font-family: 'Trajan Pro 3', 'Trajan Pro', Tahoma, Verdana, Geneva, sans-serif;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.hero-name-rule {
  display: block;
  height: 1px;
  width: 100%;
  margin: 0.28em 0 0.34em;
  background: currentColor;
  opacity: 0.85;
}

.hero-name-sub {
  font-size: 0.48em;
  letter-spacing: 0.14em;
}

.hero p {
  max-width: 58ch;
  color: #f4f1ea;
  text-shadow: 0 1px 10px rgba(16, 10, 8, 0.5);
}

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 24px;
}

.section h2::before,
.page-head h1::before,
.form-card h2::before {
  display: block;
  width: 42px;
  height: 2px;
  background: var(--cm-orange-line);
  content: '';
  margin-bottom: 12px;
}

.kicker {
  display: inline-block;
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--cm-gold);
  margin-bottom: 8px;
}

.hero .kicker {
  color: #fff8eb;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-shadow: 0 1px 2px rgba(16, 10, 8, 0.9);
}

.hero .kicker::before {
  background: #e08a3a;
}

.kicker::before {
  content: '';
  display: block;
  width: 42px;
  height: 2px;
  background: var(--cm-orange-line);
  margin-bottom: 10px;
}

.section {
  padding: 72px 0;
}

.section-cream {
  background: var(--cm-cream);
}

.section h2,
.page-head h1,
.form-card h2,
.group h3,
.card h3,
.person h3 {
  font-family: var(--cm-font-display);
  font-weight: 400;
  color: var(--cm-burgundy);
}

.section h2 {
  font-size: 2rem;
  margin: 0 0 16px;
}

.lead {
  color: var(--cm-stone);
  max-width: 70ch;
}

.grid {
  display: grid;
  gap: 20px;
}

.grid-3 {
  grid-template-columns: repeat(3, 1fr);
}

.grid-4 {
  grid-template-columns: repeat(4, 1fr);
}

.grid-2 {
  grid-template-columns: 1.1fr 0.9fr;
}

.card {
  border: 1px solid var(--cm-border);
  background: #fff;
  padding: 22px;
  border-radius: var(--cm-radius);
  transition:
    border-color var(--cm-duration) var(--cm-ease),
    transform var(--cm-duration) var(--cm-ease);
}

.card:hover {
  border-color: var(--cm-burgundy);
  transform: translateY(-2px);
}

.card h3 {
  margin: 0 0 8px;
  font-size: 1.15rem;
}

.card p,
.card li {
  color: var(--cm-stone);
  font-size: 0.92rem;
}

.card .more,
.more {
  display: inline-block;
  margin-top: 12px;
  color: var(--cm-burgundy);
  font-size: 0.82rem;
}

.page-head {
  padding: 56px 0 24px;
  background: var(--cm-wall);
}

.page-head h1 {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  margin: 0 0 8px;
}

.crumbs {
  font-size: 0.78rem;
  color: var(--cm-stone);
  margin-bottom: 10px;
}

.crumbs a:hover {
  color: var(--cm-burgundy);
}

.split {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 48px;
  align-items: start;
}

.prose p {
  max-width: 70ch;
}

.pillars {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 24px;
}

.pillars span {
  border: 1px solid var(--cm-border);
  background: #fff;
  padding: 8px 12px;
  font-size: 0.8rem;
  border-radius: var(--cm-radius-pill);
  color: var(--cm-burgundy);
}

.photo-frame {
  position: relative;
  padding: 0 18px 18px 0;
}

.photo-frame::before {
  content: '';
  position: absolute;
  inset: 22px 0 0 22px;
  background: var(--cm-burgundy);
  z-index: 0;
}

.photo-frame img {
  position: relative;
  z-index: 1;
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

.gallery {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(220px, 28%);
  gap: 14px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 8px;
  margin-top: 40px;
}

.gallery img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  scroll-snap-align: start;
  border-radius: 6px;
}

.person {
  border-bottom: 1px solid var(--cm-muted);
  padding: 20px 0;
}

.person h3 {
  margin: 0 0 8px;
}

.person.featured h3::after {
  content: '';
  display: block;
  width: 48px;
  height: 2px;
  margin-top: 8px;
  background: var(--cm-orange-line);
}

.person ul {
  margin: 0;
  padding-left: 18px;
  color: var(--cm-stone);
}

.contact-list {
  list-style: none;
  padding: 0;
  margin: 0 0 24px;
}

.contact-list a {
  color: var(--cm-burgundy);
}

.contact-band {
  position: relative;
  padding: 72px 0;
  background:
    linear-gradient(
      180deg,
      rgba(227, 212, 180, 0.78),
      rgba(227, 212, 180, 0.88)
    ),
    url('img/recepcao.jpg') center/cover no-repeat;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  align-items: stretch;
}

.form-card,
.map-wrap {
  background: #fff;
  border-radius: 18px;
  padding: 28px;
  box-shadow: 0 18px 40px rgba(92, 46, 36, 0.1);
}

.form-card h2 {
  margin: 0 0 8px;
  font-size: 1.7rem;
}

.form-card .lead {
  margin-top: 0;
}

.form {
  display: grid;
  gap: 14px;
}

.form label {
  display: grid;
  gap: 6px;
  font-size: 0.82rem;
  color: var(--cm-burgundy);
}

.form input,
.form select,
.form textarea {
  border: 1px solid var(--cm-border);
  padding: 12px 14px;
  background: #fff;
  border-radius: 10px;
  color: var(--cm-ink);
}

.form textarea {
  min-height: 120px;
  resize: vertical;
}

.form .check {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  font-size: 0.8rem;
  color: var(--cm-stone);
}

.form-msg {
  padding: 12px;
  border: 1px solid var(--cm-gold);
  background: var(--cm-wall);
  border-radius: 10px;
  display: none;
}

.form-msg.is-on {
  display: block;
}

.map {
  width: 100%;
  min-height: 320px;
  border: 0;
  border-radius: 12px;
}

.site-footer {
  background: var(--cm-burgundy-deep);
  color: #e8dfd2;
  padding: 40px 0 24px;
}

.site-footer a:hover {
  color: #fff;
  text-decoration: underline;
}

.footer-brand {
  display: inline-block;
  background: var(--cm-bg);
  padding: 10px 12px 8px;
  border-radius: 6px;
  margin-bottom: 14px;
}

.footer-brand img {
  height: 44px;
  width: auto;
  max-width: min(260px, 80%);
  object-fit: contain;
  mix-blend-mode: multiply;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 24px;
  margin-bottom: 28px;
}

.site-footer small {
  display: block;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-top: 16px;
  color: #cbb9a8;
}

.list-plain {
  margin: 0;
  padding-left: 18px;
}

.group {
  margin: 28px 0;
}

.group h3 {
  font-size: 1.2rem;
}

@media (max-width: 900px) {
  .brand img {
    height: 42px;
  }

  .nav-toggle {
    display: block;
    margin-left: auto;
    flex-shrink: 0;
    background: var(--cm-burgundy);
    color: #fff;
    border-color: var(--cm-burgundy);
    border-radius: 8px;
  }

  .nav {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: var(--header-h);
    background: var(--cm-bg);
    flex-direction: column;
    align-items: stretch;
    border-bottom: 1px solid var(--cm-border);
    padding: 8px 16px 16px;
  }

  .nav.is-open {
    display: flex;
  }

  .dropdown-menu {
    position: static;
    border: 0;
    display: none;
    min-width: 0;
    box-shadow: none;
  }

  .dropdown.open .dropdown-menu {
    display: block;
  }

  .header-cta {
    display: none;
  }

  .grid-3,
  .grid-4,
  .grid-2,
  .split,
  .footer-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .photo-frame img {
    aspect-ratio: 4 / 3;
  }

  .gallery {
    grid-auto-columns: minmax(200px, 70%);
  }
}
