:root {
  --bg: #0e0e0e;
  --panel: #171717;
  --panel-2: #1f1f1f;
  --text: #f1efe9;
  --muted: #8f8c85;
  --accent: #e8d5b7;
  --line: rgba(255, 255, 255, 0.1);
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.3);
  color-scheme: dark;
}
html[data-theme="light"] {
  --bg: #f7f5f0;
  --panel: #fff;
  --panel-2: #e6e0d6;
  --text: #151412;
  --muted: #504c46;
  --accent: #6f4f2a;
  --line: rgba(15, 15, 15, 0.2);
  --shadow: 0 24px 70px rgba(46, 39, 31, 0.14);
  color-scheme: light;
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "DM Sans", sans-serif;
  transition:
    background 0.35s,
    color 0.35s;
}
button,
a,
input,
select,
textarea {
  font: inherit;
}
.site-shell {
  width: min(100%, 900px);
  margin: 0 auto;
  min-height: 100vh;
  background: var(--bg);
  box-shadow: 0 0 80px rgba(0, 0, 0, 0.2);
}
.theme-toggle {
  position: fixed;
  z-index: 20;
  top: 18px;
  right: max(18px, calc((100vw - 900px) / 2 + 18px));
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 50%;
  background: rgba(10, 10, 10, 0.62);
  color: #fff;
  backdrop-filter: blur(12px);
  cursor: pointer;
  transition: 0.25s;
}
.theme-toggle:hover {
  transform: rotate(12deg) scale(1.04);
}
.hero {
  height: clamp(490px, 70vw, 680px);
  position: relative;
  overflow: hidden;
}
.hero > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(1) contrast(1.06);
  display: block;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.08) 35%, var(--bg) 100%);
}
html[data-theme="light"] .hero-overlay {
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0.08) 28%,
    rgba(15, 13, 11, 0.28) 55%,
    rgba(15, 13, 11, 0.9) 100%
  );
}
.hero-content {
  position: absolute;
  left: clamp(22px, 6vw, 68px);
  right: 28px;
  bottom: 54px;
}
.eyebrow,
.kicker {
  text-transform: uppercase;
  letter-spacing: 0.28em;
  font-size: 0.66rem;
  font-weight: 600;
  color: var(--accent);
}
.hero .eyebrow {
  color: #d8b989;
}
h1,
h2 {
  font-family: "DM Serif Display", serif;
  font-weight: 400;
  margin: 0;
}
h1 {
  font-size: clamp(3.1rem, 10vw, 6.7rem);
  line-height: 0.84;
  color: #f4f1eb;
  letter-spacing: -0.035em;
}
h1 em,
h2 em {
  color: var(--accent);
  font-weight: 400;
}
.hero h1 em {
  color: #d8b989;
}
.hero-note {
  color: rgba(255, 255, 255, 0.86);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  margin: 18px 0 0;
}
.hero-counter {
  position: absolute;
  left: clamp(22px, 6vw, 68px);
  top: 26px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 0.63rem;
  letter-spacing: 0.18em;
  display: flex;
  align-items: center;
  gap: 10px;
}
.hero-counter span {
  width: 46px;
  height: 1px;
  background: rgba(255, 255, 255, 0.55);
}
.content {
  width: min(100% - 40px, 760px);
  margin: auto;
  padding-bottom: 54px;
}
.profile {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
}
.avatar {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  object-fit: cover;
  filter: grayscale(1);
  border: 2px solid color-mix(in srgb, var(--accent) 40%, transparent);
}
.profile-copy {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}
.profile-copy strong {
  font-size: 0.86rem;
  font-weight: 500;
}
.profile-copy span {
  color: var(--muted);
  font-size: 0.68rem;
}
.status {
  margin-left: auto;
  border: 1px solid rgba(85, 170, 102, 0.35);
  background: rgba(85, 170, 102, 0.1);
  color: #76bb82;
  padding: 6px 9px;
  font-size: 0.56rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  white-space: nowrap;
}
.status i {
  display: inline-block;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #76bb82;
  margin-right: 5px;
  animation: pulse 1.8s infinite;
}
@keyframes pulse {
  50% {
    box-shadow: 0 0 0 5px rgba(118, 187, 130, 0);
  }
}
.intro {
  padding: 42px 0 20px;
}
.intro .kicker {
  margin: 0 0 10px;
}
.intro h2,
.modal-card h2 {
  font-size: clamp(2rem, 6vw, 3rem);
  line-height: 1.04;
}
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 6px;
}
.shot {
  border: 0;
  padding: 0;
  position: relative;
  overflow: hidden;
  aspect-ratio: 1;
  background: #222;
  cursor: pointer;
  color: #fff;
}
.shot-wide {
  grid-column: span 2;
  aspect-ratio: 2.05/1;
}
.shot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(1) brightness(0.76);
  transition:
    transform 0.7s cubic-bezier(0.2, 0.8, 0.2, 1),
    filter 0.4s;
}
.shot:nth-child(3) img {
  object-position: center 34%;
}
.shot.crop-alt img {
  object-position: center 35%;
}
.shot:hover img,
.shot:focus-visible img {
  transform: scale(1.045);
  filter: grayscale(1) brightness(0.95);
}
.shot > span {
  position: absolute;
  inset: auto 0 0;
  padding: 28px 14px 12px;
  text-align: left;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.72));
  display: flex;
  justify-content: space-between;
  align-items: end;
}
.shot b {
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-size: 0.62rem;
}
.shot small {
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.56rem;
  letter-spacing: 0.06em;
}
.actions {
  margin-top: 28px;
}
.action {
  width: 100%;
  display: grid;
  grid-template-columns: 34px 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 15px 14px;
  margin-bottom: 7px;
  border: 1px solid var(--line);
  background: var(--panel);
  color: var(--text);
  text-decoration: none;
  text-align: left;
  cursor: pointer;
  transition: 0.25s;
}
.action:hover {
  border-color: color-mix(in srgb, var(--accent) 48%, transparent);
  transform: translateX(3px);
}
.action.primary {
  background: var(--accent);
  color: var(--bg);
  border-color: var(--accent);
}
html[data-theme="light"] .action.primary {
  color: #fff;
}
.action-number {
  font-family: "DM Serif Display";
  font-style: italic;
  color: var(--muted);
}
.primary .action-number {
  color: currentColor;
  opacity: 0.6;
}
.action > span:nth-child(2) {
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.action b {
  font-size: 0.81rem;
  font-weight: 500;
}
.action small {
  font-size: 0.63rem;
  color: var(--muted);
}
.primary small {
  color: currentColor;
  opacity: 0.68;
}
.action > i {
  font-style: normal;
  font-size: 1.05rem;
}
.section-heading {
  margin: 42px 0 14px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.section-heading span {
  font-family: "DM Serif Display";
  font-size: 1.35rem;
  font-style: italic;
  color: var(--accent);
}
.section-heading:after {
  content: "";
  height: 1px;
  background: var(--line);
  flex: 1;
}
.section-heading b {
  font-weight: 400;
  color: var(--muted);
  font-size: 0.6rem;
}
.service-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 7px;
}
.service {
  border: 1px solid var(--line);
  background: var(--panel);
  color: var(--text);
  padding: 17px 12px;
  text-align: left;
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 3px 7px;
  cursor: pointer;
  transition: 0.25s;
}
.service:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
}
.service > span {
  grid-row: span 2;
  color: var(--accent);
  font-size: 1rem;
}
.service b {
  font-size: 0.74rem;
  font-weight: 500;
}
.service small {
  color: var(--accent);
  font-size: 0.6rem;
}
.map-frame {
  height: 230px;
  overflow: hidden;
  border: 1px solid var(--line);
}
.map-frame iframe {
  border: 0;
  width: 100%;
  height: 100%;
  filter: grayscale(1) contrast(1.05);
  transition: 0.3s;
}
html[data-theme="dark"] .map-frame iframe {
  filter: grayscale(1) invert(0.88) contrast(0.85);
}
.address {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 2px;
}
.address p {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.address b {
  font-size: 0.72rem;
}
.address span {
  font-size: 0.65rem;
  color: var(--muted);
}
.address a {
  font-size: 0.66rem;
  color: var(--accent);
  text-decoration: none;
}
footer {
  border-top: 1px solid var(--line);
  margin-top: 34px;
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  color: var(--muted);
  font-size: 0.55rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
}
.whatsapp-float {
  position: fixed;
  right: max(18px, calc((100vw - 900px) / 2 + 18px));
  bottom: 20px;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: #25d366;
  display: grid;
  place-items: center;
  z-index: 18;
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.25);
  transition: 0.25s;
}
.whatsapp-float:hover {
  transform: scale(1.08);
}
.whatsapp-float svg {
  width: 29px;
  fill: #fff;
}
dialog {
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--text);
}
dialog::backdrop {
  background: rgba(0, 0, 0, 0.78);
  backdrop-filter: blur(6px);
}
.schedule-modal {
  width: min(calc(100% - 26px), 520px);
  max-height: calc(100vh - 28px);
}
.modal-card {
  position: relative;
  background: var(--panel);
  border: 1px solid var(--line);
  padding: 30px;
  box-shadow: var(--shadow);
}
.modal-close {
  position: absolute;
  right: 14px;
  top: 10px;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 2rem;
  cursor: pointer;
}
.modal-card .kicker {
  margin: 0 0 9px;
}
.modal-intro {
  color: var(--muted);
  font-size: 0.74rem;
  line-height: 1.6;
  margin: 13px 0 20px;
}
.modal-card label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  color: var(--muted);
  font-size: 0.62rem;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  margin-bottom: 12px;
}
.modal-card input,
.modal-card select,
.modal-card textarea {
  width: 100%;
  border: 1px solid var(--line);
  background: var(--bg);
  color: var(--text);
  padding: 12px;
  border-radius: 0;
  outline: none;
  text-transform: none;
  letter-spacing: 0;
  font-size: 0.76rem;
}
.modal-card input:focus,
.modal-card select:focus,
.modal-card textarea:focus {
  border-color: var(--accent);
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.submit-schedule {
  width: 100%;
  border: 0;
  background: var(--accent);
  color: var(--bg);
  padding: 14px;
  display: flex;
  justify-content: space-between;
  cursor: pointer;
  font-weight: 600;
}
.form-note {
  display: block;
  text-align: center;
  color: var(--muted);
  font-size: 0.58rem;
  margin-top: 10px;
}
.lightbox {
  width: min(calc(100% - 24px), 900px);
}
.lightbox img {
  display: block;
  width: 100%;
  max-height: 80vh;
  object-fit: contain;
  background: #090909;
}
.lightbox p {
  margin: 8px 0;
  color: #fff;
  text-align: center;
  font-family: "DM Serif Display";
  font-style: italic;
}
.lightbox-close {
  position: fixed;
  right: 20px;
  top: 12px;
  border: 0;
  background: transparent;
  color: #fff;
  font-size: 2.2rem;
  z-index: 2;
  cursor: pointer;
}
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition:
    opacity 0.7s,
    transform 0.7s;
}
.reveal.visible {
  opacity: 1;
  transform: none;
}
@media (max-width: 560px) {
  .site-shell {
    width: 100%;
  }
  .hero {
    height: 72vh;
    max-height: 660px;
  }
  .hero > img {
    object-position: 72% center;
  }
  .hero-content {
    bottom: 38px;
  }
  .content {
    width: calc(100% - 32px);
  }
  .profile {
    gap: 10px;
  }
  .avatar {
    width: 50px;
    height: 50px;
  }
  .profile-copy strong {
    font-size: 0.75rem;
  }
  .profile-copy span {
    font-size: 0.6rem;
  }
  .status {
    font-size: 0.48rem;
    padding: 5px 7px;
  }
  .shot > span {
    padding: 24px 10px 9px;
  }
  .service {
    padding: 14px 10px;
  }
  .theme-toggle {
    top: 14px;
    right: 14px;
  }
  .whatsapp-float {
    right: 16px;
    bottom: 16px;
  }
  .modal-card {
    padding: 26px 20px;
  }
  .form-row {
    grid-template-columns: 1fr;
  }
  footer {
    gap: 15px;
    line-height: 1.5;
  }
}
@media (min-width: 720px) {
  .portfolio-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .shot-wide {
    grid-column: span 2;
    aspect-ratio: 2/1;
  }
  .shot:nth-child(4) {
    grid-column: span 1;
  }
  .service-grid {
    grid-template-columns: repeat(4, 1fr);
  }
  .service {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .service > span {
    grid-row: auto;
  }
  .content {
    padding-bottom: 70px;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *:before,
  *:after {
    scroll-behavior: auto !important;
    transition: none !important;
    animation: none !important;
  }
  .reveal {
    opacity: 1;
    transform: none;
  }
}

/* Light theme: keep the editorial hero dark enough for its white copy. */
html[data-theme="light"] {
  --bg: #f7f4ee;
  --panel: #fff;
  --panel-2: #e8e1d7;
  --text: #171512;
  --muted: #555049;
  --accent: #6f4c26;
  --line: rgba(34, 29, 23, 0.22);
}
html[data-theme="light"] .hero-overlay {
  background: linear-gradient(180deg, rgba(10, 10, 10, 0.06) 24%, rgba(16, 14, 12, 0.32) 60%, rgba(18, 16, 14, 0.88) 100%);
}
html[data-theme="light"] .hero-note,
html[data-theme="light"] .hero-counter {
  color: rgba(255, 255, 255, 0.88);
}
html[data-theme="light"] .hero-counter span {
  background: rgba(255, 255, 255, 0.72);
}
html[data-theme="light"] .status {
  color: #246432;
  border-color: rgba(36, 100, 50, 0.42);
  background: rgba(36, 100, 50, 0.1);
}
html[data-theme="light"] .status i {
  background: #246432;
}
html[data-theme="light"] .theme-toggle {
  border-color: rgba(255, 255, 255, 0.5);
  background: rgba(20, 18, 15, 0.72);
}

/* Preserve both people in the wedding image at narrow widths. */
.hero > img {
  object-position: 62% center;
}
@media (max-width: 560px) {
  .hero > img {
    object-position: 67% center;
  }
}

/* Showcase-safe controls: keep actions above the Netlify preview badge. */
.whatsapp-float {
  bottom: 88px;
}
.schedule-modal {
  overflow-y: auto;
}
.modal-close,
.lightbox-close {
  z-index: 5;
  touch-action: manipulation;
}
@media (max-width: 700px) {
  .whatsapp-float {
    bottom: 98px;
  }
}
.modal-intro {
  padding: 12px 14px;
  border-left: 3px solid var(--accent);
  background: color-mix(in srgb, var(--accent) 11%, var(--bg));
  color: var(--text);
  font-weight: 600;
}
.modal-intro strong {
  color: var(--accent);
}

/* Proteção responsiva global */
html, body { max-width: 100%; overflow-x: hidden; }
main, section, header, footer, div, article { min-width: 0; }
img, video, iframe, svg { max-width: 100%; }
h1, h2, h3, p, a, button, label { overflow-wrap: anywhere; }
