/* SE VEJA */
.references input[type="file"]::file-selector-button { font: inherit; color: #0b1d32; background: #fffdf8; border: 0; padding: .45em .7em; margin-right: .6em; cursor: pointer; }
#reference-preview { display: flex; flex-wrap: wrap; gap: .75rem; }
#reference-preview figure { width: 5.5rem; }
#reference-preview img { width: 100%; height: 5rem; object-fit: cover; border-radius: 3px; }
#reference-preview figcaption { overflow-wrap: anywhere; font-size: .8rem; }
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
  .button { translate: 0 0; transition: translate .18s ease, background-color .18s ease, border-color .18s ease !important; }
  @media (hover: hover) { .button:hover { translate: 0 -2px; } }
  .button:active { translate: 0 1px; }
  @supports (animation-timeline: view()) {
    .section-heading, .workflow-section > h3, .quote-layout > .heading-copy { animation: section-arrival linear both; animation-timeline: view(); animation-range: entry 0% entry 90%; }
    @keyframes section-arrival { from { opacity: .8; transform: translateY(9px); } to { opacity: 1; transform: none; } }
  }
}
@font-face {
  font-family: "Cormorant Garamond";
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url("../fonts/cormorant-garamond-latin.woff2") format("woff2");
}
@font-face {
  font-family: "Cormorant Garamond";
  font-style: italic;
  font-weight: 300 700;
  font-display: swap;
  src: url("../fonts/cormorant-garamond-italic-latin.woff2") format("woff2");
}
@font-face {
  font-family: Jost;
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../fonts/jost-latin.woff2") format("woff2");
}

:root {
  color-scheme: light;
  --navy: #0b1d32;
  --navy-dark: #081725;
  --navy-soft: #142d43;
  --orange: #ff7a1a;
  --orange-light: #ffad70;
  --paper: #f9f7f2;
  --ivory: #fffdf8;
  --ink: #12283c;
  --muted: #496070;
  --on-dark-muted: #c7d1db;
  --line: #ccd0cc;
  --night-line: rgb(222 233 243 / 20%);
  --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --sans: Jost, "Segoe UI", Arial, sans-serif;
  --gutter: clamp(1.25rem, 5.7vw, 5.75rem);
  --header-height: 4.75rem;
}

*, *::before, *::after { box-sizing: border-box; }
html {
  scroll-padding-block-start: calc(var(--header-height) + 1rem);
  -webkit-text-size-adjust: 100%;
}
body {
  margin: 0;
  background: var(--navy);
  color: var(--ink);
  font: 400 1rem/1.55 var(--sans);
  -webkit-font-smoothing: antialiased;
}
body:has(dialog[open]) { overflow: hidden; }
[hidden] { display: none !important; }
img { display: block; max-width: 100%; }
button, input, textarea, select { font: inherit; }
button, a, input, textarea { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
button[disabled] { cursor: default; }
a { color: inherit; text-decoration: none; }
button { color: inherit; }
h1, h2, h3, p, figure { margin: 0; }
h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 500;
  letter-spacing: -.034em;
  line-height: 1.04;
}
::selection { color: var(--navy-dark); background: #ffc39a; }
:focus-visible {
  outline: 3px solid #cc5511;
  outline-offset: 4px;
}
.site-header :focus-visible, .hero :focus-visible, .site-footer :focus-visible {
  outline-color: #ffad70;
}
.container {
  width: min(77.5rem, calc(100% - var(--gutter) - var(--gutter)));
  margin-inline: auto;
}
.skip-link {
  position: fixed;
  z-index: 100;
  top: .5rem;
  left: .5rem;
  transform: translateY(-160%);
  padding: .7rem 1rem;
  background: var(--ivory);
  color: var(--navy);
}
.skip-link:focus { transform: none; }
.sr-only, .visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

/* Cabeçalho */
.site-header {
  position: sticky;
  z-index: 20;
  top: 0;
  background: var(--navy-dark);
  color: var(--ivory);
  border-bottom: 1px solid var(--night-line);
}
.header-inner {
  min-height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(1rem, 3vw, 3.5rem);
}
.brand { display: inline-flex; align-items: center; gap: .8rem; flex: none; }
.brand-mark {
  width: 2.6rem;
  height: 2.6rem;
  object-fit: contain;
  border-radius: 50%;
}
.brand-name {
  color: var(--ivory);
  font: 600 1.42rem/1 var(--serif);
  letter-spacing: .12em;
  white-space: nowrap;
}
.main-nav, .header-actions { display: flex; align-items: center; }
.main-nav { gap: clamp(1.2rem, 2.7vw, 2.85rem); }
.main-nav a, .cart-trigger { font-size: .92rem; font-weight: 500; }
.main-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  color: #dce3e8;
}
.main-nav a:hover { color: var(--orange-light); }
.header-actions { gap: .6rem; }
.cart-trigger, .menu-toggle {
  min-height: 2.75rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .55rem;
  padding: .45rem .95rem;
  border: 1px solid #667582;
  border-radius: 3px;
  background: transparent;
  color: var(--ivory);
}
.cart-trigger:hover, .menu-toggle:hover {
  border-color: var(--orange-light);
  background: rgb(255 255 255 / 6%);
}
.cart-trigger svg, .menu-toggle svg, .button svg { width: 1.15rem; height: 1.15rem; flex: none; }
.menu-toggle.icon-button { display: none; }
.cart-count {
  display: inline-grid;
  place-items: center;
  min-width: 1.3rem;
  height: 1.3rem;
  padding-inline: .25rem;
  border-radius: 1rem;
  background: #35475a;
  color: var(--ivory);
  font-size: .74rem;
  font-variant-numeric: tabular-nums;
}

/* Abertura */
.hero {
  isolation: isolate;
  position: relative;
  display: grid;
  align-items: center;
  min-height: clamp(36rem, 49vw, 47rem);
  overflow: clip;
  background: var(--navy);
  color: var(--ivory);
}
.hero-media, .hero-shade, .hero-slide { position: absolute; inset: 0; }
.hero-media {
  z-index: -2;
  left: 42%;
  overflow: hidden;
  background: var(--navy-soft);
}
.hero-slide {
  width: 100%; height: 100%;
  margin: 0;
  opacity: 0;
  object-fit: cover;
  object-position: 50% 7%;
  transition: opacity .55s ease;
}
.hero-slide.is-active { opacity: 1; }
.hero-slide img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: 50% 7%;
}
.hero-shade {
  z-index: -1;
  pointer-events: none;
  background: linear-gradient(90deg, var(--navy) 0 39%, rgb(11 29 50 / 96%) 43%, rgb(11 29 50 / 64%) 50%, transparent 66%),
              linear-gradient(0deg, rgb(5 16 27 / 76%), transparent 25%);
}
.hero-inner { padding-block: clamp(4rem, 7.35vw, 8rem) clamp(5rem, 8vw, 8rem); }
.hero-copy { width: min(49%, 37rem); }
.eyebrow {
  display: flex;
  align-items: center;
  gap: .75rem;
  color: #9d4613;
  font: 600 .75rem/1.5 var(--sans);
  text-transform: uppercase;
  letter-spacing: .17em;
}
.eyebrow::before { content: ""; flex: 0 0 1.9rem; height: 1px; background: currentColor; }
.hero .eyebrow { color: var(--orange-light); }
.hero-title {
  margin-block: 1.2rem 1.45rem;
  color: var(--ivory);
  font-size: clamp(3.65rem, 6.4vw, 6.5rem);
  line-height: .98;
  text-wrap: balance;
}
.hero-title em { color: #f5c8a7; font-weight: inherit; }
.hero-lead {
  max-width: 29rem;
  color: #dbe3e9;
  font-size: clamp(1.05rem, 1.35vw, 1.24rem);
  line-height: 1.65;
}
.hero-actions { display: flex; align-items: center; flex-wrap: wrap; gap: .8rem; margin-top: 2rem; }
.button {
  display: inline-flex;
  min-height: 3.1rem;
  justify-content: center;
  align-items: center;
  gap: .65rem;
  padding: .75rem 1.4rem;
  border: 1px solid transparent;
  border-radius: 3px;
  font: 600 .96rem/1.32 var(--sans);
  text-align: center;
  transition: background-color .18s ease, border-color .18s ease, color .18s ease;
}
.button-primary { background: var(--orange); border-color: var(--orange); color: var(--navy-dark); }
.button-primary:hover { background: #ff984b; border-color: #ff984b; }
.button-secondary { background: transparent; color: inherit; border-color: currentColor; }
.hero .button-secondary { color: var(--ivory); border-color: #8493a0; }
.hero .button-secondary:hover { border-color: var(--ivory); background: rgb(255 255 255 / 7%); }
.hero-caption {
  position: absolute;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: .45rem .75rem;
  right: max(var(--gutter), calc((100% - 77.5rem) / 2));
  bottom: 1.55rem;
  max-width: calc(100% - var(--gutter) - var(--gutter));
  color: var(--ivory);
  font-size: .875rem;
  font-weight: 500;
  text-shadow: 0 1px 4px #000;
}
.hero-controls { display: flex; align-items: center; gap: .6rem; color: var(--ivory); }
.hero-controls button {
  min-width: 2.75rem; min-height: 2.75rem;
  border: 1px solid rgb(255 255 255 / 55%);
  border-radius: 50%;
  background: rgb(8 23 37 / 72%);
  color: inherit;
}
.hero-controls button:hover { background: var(--navy); }
.hero-controls svg { width: 1.1rem; height: 1.1rem; }
.hero-index { color: #f5d3bb; font-size: .78rem; font-weight: 600; font-variant-numeric: tabular-nums; letter-spacing: .06em; }
.title-line { display: block; }
.icon { width: 1.15rem; height: 1.15rem; flex-shrink: 0; }
.button-outline { background: transparent; color: var(--navy); border-color: #607384; }
.button-outline:hover { background: #e6e9e6; border-color: var(--navy); }
.text-link {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  color: inherit;
  text-decoration: underline;
  text-underline-offset: .23em;
  text-decoration-thickness: 1px;
}
button.text-link {
  min-height: 2.75rem;
  border: 0;
  padding: .25rem .1rem;
  background: transparent;
}

/* Seções e portfólio */
.section { padding-block: clamp(3.75rem, 6.2vw, 6.75rem); }
.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 2rem;
  margin-bottom: clamp(1.75rem, 3.4vw, 3rem);
}
.heading-copy { max-width: 46rem; min-width: 0; }
.section-title {
  margin-block: .7rem .75rem;
  font-size: clamp(2.75rem, 4.4vw, 4.7rem);
  line-height: 1.03;
  text-wrap: balance;
}
.section-title em { font-weight: inherit; }
.section-intro {
  max-width: 39rem;
  font-size: clamp(1rem, 1.3vw, 1.125rem);
  color: var(--muted);
  line-height: 1.65;
}
.gallery-section {
  background: #102438;
  border-top: 1px solid var(--night-line);
  color: var(--ivory);
}
.gallery-section .eyebrow, .quote-section .eyebrow { color: var(--orange-light); }
.gallery-section .section-intro, .quote-section .section-intro { color: var(--on-dark-muted); }
.gallery-section :focus-visible, .quote-section :focus-visible { outline-color: var(--orange-light); }
.rail-controls, .lightbox-controls { display: flex; align-items: center; gap: .6rem; flex: none; }
.icon-button, .close-dialog {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.85rem;
  height: 2.85rem;
  flex: none;
  padding: 0;
  border: 1px solid currentColor;
  border-radius: 50%;
  background: transparent;
  color: inherit;
}
.icon-button:hover, .close-dialog:hover { background: rgb(125 139 148 / 14%); }
.icon-button:disabled { opacity: .4; }
.rail-controls .icon-button { border-color: #768693; }
.gallery-rail {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: calc((100% - 3.75rem) / 3.55);
  gap: 1.25rem;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
  scrollbar-color: #738496 transparent;
  list-style: none;
  margin: 0;
  padding: .35rem .25rem .8rem;
}
.gallery-card { min-width: 0; scroll-snap-align: start; }
.gallery-open {
  display: block;
  position: relative;
  width: 100%;
  padding: 0;
  background: transparent;
  border: 0;
  text-align: left;
  color: var(--ivory);
}
.gallery-image {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center 36%;
  overflow: hidden;
  background: var(--navy-dark);
}
.gallery-caption {
  min-height: 3.65rem;
  padding-block: .75rem .25rem;
  display: flex;
  align-items: center;
  gap: .6rem;
  justify-content: space-between;
}
.gallery-name {
  font: 500 clamp(1.35rem, 1.8vw, 1.8rem)/1.05 var(--serif);
  letter-spacing: -.01em;
}
.enlarge-icon {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 1.85rem;
  height: 1.85rem;
  color: #e6d9cc;
  border: 1px solid var(--night-line);
  border-radius: 50%;
  flex: none;
}
.gallery-open:hover .enlarge-icon { color: var(--orange-light); border-color: var(--orange-light); }
.enlarge-icon svg { width: 1rem; height: 1rem; }

/* Ofertas e etapas */
.packages-section { background: var(--paper); color: var(--ink); }
.style-selection {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: .5rem .85rem;
  margin-bottom: 1rem;
  color: var(--ink);
  font-size: .95rem;
}
.style-selection button {
  min-height: 2.75rem;
  border: 0;
  padding-inline: .45rem;
  background: transparent;
  text-decoration: underline;
  text-underline-offset: .17em;
}
.package-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.2rem; }
.package-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-width: 0;
  padding: clamp(1.35rem, 2.7vw, 2.7rem);
  background: var(--ivory);
  border: 1px solid var(--line);
  border-top: 3px solid #a2aaa9;
}
.package-card.is-featured {
  color: var(--ivory);
  background: var(--navy);
  border-color: var(--navy);
  border-top-color: var(--orange);
}
.package-name { font-size: clamp(2.15rem, 2.9vw, 3.15rem); margin: 0 0 .35rem; }
.package-amount { color: var(--muted); }
.package-price {
  display: block;
  margin-block: clamp(1.7rem, 2.8vw, 2.9rem) 1.5rem;
  font: 500 clamp(2.5rem, 3.5vw, 3.75rem)/1.05 var(--serif);
  letter-spacing: -.045em;
  color: var(--ink);
}
.package-price span { font-size: .52em; letter-spacing: .01em; }
.is-featured .package-price { color: var(--ivory); }
.is-featured .package-amount { color: var(--on-dark-muted); }
.package-add { width: 100%; margin-top: auto; border-color: #657684; background: transparent; color: var(--ink); }
.package-add:hover { border-color: var(--navy); background: #e9ece8; }
.is-featured .package-add { background: var(--orange); border-color: var(--orange); color: var(--navy-dark); }
.is-featured .package-add:hover { background: #ff984b; border-color: #ff984b; }
.workflow-section {
  margin-top: clamp(2.8rem, 4.7vw, 5.3rem);
  padding-top: clamp(2rem, 3.2vw, 3rem);
  border-top: 1px solid var(--line);
}
.workflow-section h3 { font-size: clamp(1.9rem, 2.75vw, 2.7rem); }
.workflow-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1.4rem, 3.7vw, 3.75rem);
  padding: 0;
  margin: 1.5rem 0 0;
  list-style: none;
  counter-reset: steps;
}
.workflow-step { position: relative; counter-increment: steps; padding-left: 2.3rem; }
.workflow-step::before {
  content: counter(steps, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: .1rem;
  color: #9d4613;
  font: 600 .79rem/1.6 var(--sans);
  letter-spacing: .08em;
}
.workflow-step h4 { margin: 0 0 .4rem; font: 600 1rem/1.35 var(--sans); }
.workflow-step p { color: var(--muted); font-size: .97rem; }

/* Pedido personalizado */
.quote-section { background: var(--navy); color: var(--ivory); }
.quote-layout {
  display: grid;
  grid-template-columns: minmax(0, .88fr) minmax(0, 1.12fr);
  gap: clamp(2rem, 7vw, 7.5rem);
  align-items: start;
}
.quote-form {
  padding-left: clamp(1.5rem, 4.6vw, 4.75rem);
  border-left: 1px solid var(--night-line);
}
.field { display: grid; gap: .45rem; margin: 0 0 1.15rem; }
.field-label, .quote-form label, .dialog-body label { font-size: .94rem; font-weight: 600; }
.field input, .field textarea, .quote-form input, .quote-form textarea,
.cart-dialog input, .cart-dialog textarea {
  display: block;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  padding: .8rem .9rem;
  border: 1px solid #98a5ad;
  border-radius: 3px;
  font: 400 1rem/1.5 var(--sans);
}
.quote-form input, .quote-form textarea {
  color: var(--ivory);
  background: #11283e;
  border-color: #6c7d8b;
}
.quote-form input::placeholder, .quote-form textarea::placeholder { color: #b6c3ce; opacity: 1; }
textarea { resize: vertical; min-height: 7.5rem; }
.form-actions { display: flex; align-items: center; gap: .8rem 1.2rem; flex-wrap: wrap; }
.form-hint { color: var(--on-dark-muted); font-size: .93rem; line-height: 1.55; }
.quote-form .form-hint { margin-block: .8rem; }
.quote-section .heading-copy .form-hint { max-width: 33rem; margin-top: 1.15rem; }
.quote-form .style-selection { color: var(--ivory); }
.field-label span { font-weight: 400; }
.quote-form .field-label span { color: var(--on-dark-muted); }
noscript p.container { padding-block: 1rem; color: var(--ivory); }
noscript a { text-decoration: underline; }
.site-footer {
  padding-block: 2rem;
  border-top: 1px solid var(--night-line);
  background: var(--navy-dark);
  color: #c8d3da;
}
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; }
.footer-brand { display: flex; align-items: center; gap: .8rem; }
.site-footer p, .back-top { font-size: .9rem; }
.back-top { display: inline-flex; align-items: center; gap: .5rem; min-height: 2.75rem; }
.back-top:hover { color: var(--orange-light); }

/* Carrinho e visualização de retratos */
dialog {
  max-width: calc(100% - 2rem);
  max-height: calc(100% - 2rem);
  max-height: calc(100dvh - 2rem);
  padding: 0;
  border: 0;
  background: var(--paper);
  color: var(--ink);
  box-shadow: 0 1.5rem 6rem rgb(0 0 0 / 27%);
}
dialog::backdrop { background: rgb(4 13 24 / 79%); }
dialog:not([open]) { display: none; }
.cart-dialog {
  position: fixed;
  inset: 0 0 0 auto;
  width: min(31rem, 100%);
  max-width: 100%;
  height: 100%;
  height: 100dvh;
  max-height: 100%;
  max-height: 100dvh;
  margin: 0;
  overscroll-behavior: contain;
}
.cart-dialog[open] { display: flex; flex-direction: column; }
.dialog-header, .dialog-footer { flex: none; }
.dialog-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.35rem clamp(1.15rem, 3vw, 2rem);
  border-bottom: 1px solid var(--line);
}
.dialog-header h2, .lightbox-content h2 { font-size: clamp(2rem, 3vw, 3rem); }
.close-dialog { border-color: #a0acb3; }
.dialog-body {
  flex: 1 1 auto;
  min-height: 0;
  padding: .5rem clamp(1.15rem, 3vw, 2rem) 1.25rem;
  overflow-y: auto;
  overscroll-behavior: contain;
}
.dialog-footer {
  padding: 1.2rem clamp(1.15rem, 3vw, 2rem) max(1.2rem, env(safe-area-inset-bottom));
  border-top: 1px solid var(--line);
  background: var(--paper);
}
.dialog-footer .form-hint { margin: .2rem 0 .95rem; }
.cart-dialog input, .cart-dialog textarea { color: var(--ink); background: var(--ivory); }
.cart-dialog .form-hint { color: var(--muted); }
.cart-item {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: .75rem 1rem;
  padding-block: 1.05rem;
  border-bottom: 1px solid var(--line);
}
.cart-item-main { min-width: 0; overflow-wrap: anywhere; }
.cart-item-title { font-size: 1.55rem; line-height: 1.15; }
.cart-item-meta { margin-top: .4rem; font-size: .94rem; color: var(--muted); white-space: pre-line; }
.cart-item-controls { display: flex; align-items: center; flex-wrap: wrap; gap: .35rem .85rem; margin-top: .4rem; }
.cart-quantity { display: inline-flex; align-items: center; font-variant-numeric: tabular-nums; }
.cart-quantity button {
  width: 2.75rem; height: 2.75rem;
  border: 0;
  background: transparent;
  border-radius: 3px;
  font-size: 1.25rem;
}
.cart-quantity button:hover { background: #e6e9e6; }
.cart-quantity span { text-align: center; min-width: 1.35rem; }
.cart-action {
  min-height: 2.75rem;
  border: 0;
  padding: .35rem .1rem;
  background: transparent;
  color: var(--muted);
  text-decoration: underline;
  text-underline-offset: .2em;
  font-size: .9rem;
}
.cart-item-price { flex: none; max-width: 8rem; font-size: .94rem; text-align: right; }
.cart-empty { color: var(--muted); padding-block: 1.6rem; }
.cart-summary-row { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; margin-block: .25rem .75rem; }
.cart-summary-row strong { font-size: 1.24rem; }
.cart-budget-note { margin-block: .35rem 1rem; color: var(--muted); font-size: .93rem; }
.checkout-link { width: 100%; }
.checkout-link[aria-disabled="true"] { background: #e1e2dd; border-color: #d4d7d3; color: #50616a; cursor: default; }
.lightbox-dialog { width: min(60rem, calc(100% - 2rem)); background: var(--navy-dark); color: var(--ivory); }
.lightbox-layout { position: relative; display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, .85fr); }
.lightbox-dialog .dialog-header { padding: 0; border: 0; }
.lightbox-dialog .close-dialog, .lightbox-dialog > .icon-button {
  position: absolute;
  z-index: 2;
  top: .8rem;
  right: .8rem;
  background: var(--navy-dark);
  color: var(--ivory);
}
.lightbox-figure { min-width: 0; display: grid; place-items: center; background: #071320; }
.lightbox-figure img {
  width: 100%;
  height: min(76vh, 42rem);
  height: min(76dvh, 42rem);
  object-fit: contain;
}
.lightbox-content {
  align-self: center;
  padding: 4rem clamp(1.4rem, 2.9vw, 2.8rem) 2.5rem;
}
.lightbox-content .eyebrow { margin-bottom: .9rem; color: var(--orange-light); }
.lightbox-content p:not(.eyebrow) { margin-top: .85rem; color: var(--on-dark-muted); }
.lightbox-actions { display: flex; align-items: stretch; flex-direction: column; gap: .75rem; margin-top: 1.5rem; }
.lightbox-actions .button-outline, .lightbox-actions .button-secondary { color: var(--ivory); border-color: #7c8b96; }
.lightbox-actions .button-outline:hover, .lightbox-actions .button-secondary:hover { background: var(--navy-soft); }
.lightbox-controls { margin-top: 1.2rem; }
.toast {
  position: fixed;
  z-index: 30;
  inset: auto auto max(1.5rem, env(safe-area-inset-bottom)) 50%;
  transform: translateX(-50%);
  width: max-content;
  max-width: calc(100% - 2rem);
  margin: 0;
  padding: .8rem 1.2rem;
  background: var(--ivory);
  color: var(--navy-dark);
  border: 1px solid #8c9aa7;
  border-radius: 3px;
  box-shadow: 0 .5rem 2rem rgb(5 18 29 / 16%);
  font-size: .96rem;
  opacity: 0;
  pointer-events: none;
}
.toast.is-visible { opacity: 1; }

@media (min-width: 761px) and (max-width: 970px) {
  .hero-copy { width: 53%; }
  .hero-title { font-size: clamp(3.55rem, 7.2vw, 4.4rem); }
  .main-nav { gap: clamp(.8rem, 1.65vw, 1.25rem); }
  .main-nav a { font-size: .86rem; }
  .header-inner { gap: 1rem; }
  .gallery-rail { grid-auto-columns: calc((100% - 2.5rem) / 2.7); }
  .package-grid { gap: .8rem; }
}
@media (max-width: 760px) {
  :root { --header-height: 4rem; }
  .header-inner { gap: .75rem; }
  .brand { gap: .5rem; }
  .brand-mark { width: 2.15rem; height: 2.15rem; }
  .brand-name { font-size: 1.18rem; }
  .header-actions { gap: .4rem; }
  .menu-toggle.icon-button { display: inline-flex; }
  .main-nav {
    display: none;
    position: absolute;
    inset: 100% 0 auto;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: .65rem var(--gutter) 1rem;
    border-block: 1px solid var(--night-line);
    background: var(--navy-dark);
    box-shadow: 0 .65rem 1.5rem rgb(6 19 33 / 20%);
    max-height: calc(100dvh - var(--header-height));
    overflow-y: auto;
  }
  .main-nav.is-open { display: flex; }
  .main-nav a { border-bottom: 1px solid var(--night-line); padding: .55rem 0; min-height: 3rem; }
  .hero {
    min-height: 0;
    align-items: end;
  }
  .hero-media { inset: 0 0 auto; height: 66%; }
  .hero-slide, .hero-slide img { object-position: center 8%; }
  .hero-shade {
    background: linear-gradient(0deg, var(--navy) 0 36%, rgb(11 29 50 / 98%) 50%, rgb(11 29 50 / 62%) 70%, transparent 90%);
  }
  .hero-inner { padding-block: clamp(11.8rem, 40vw, 16.5rem) 5rem; }
  .hero-copy { width: 100%; max-width: 35rem; }
  .hero-title { margin-block: .8rem .9rem; font-size: clamp(3rem, 8.9vw, 4.8rem); }
  .hero-lead { max-width: 29rem; line-height: 1.5; }
  .hero-actions { margin-top: 1.35rem; }
  .hero-caption { bottom: .85rem; }
  .section-heading { gap: 1rem; }
  .gallery-rail { grid-auto-columns: min(73vw, 19rem); gap: .9rem; }
  .package-grid { grid-template-columns: 1fr; gap: .95rem; }
  .package-card { padding: 1.55rem; }
  .package-price { margin-block: 1.15rem 1.1rem; }
  .workflow-list { grid-template-columns: 1fr; gap: 1.1rem; }
  .quote-layout { grid-template-columns: 1fr; gap: 1.7rem; }
  .quote-form { padding: 1.65rem 0 0; border-left: 0; border-top: 1px solid var(--night-line); }
  .footer-inner { flex-wrap: wrap; gap: .75rem 1.25rem; }
}
@media (max-width: 600px) {
  .gallery-section .section-heading { align-items: start; flex-wrap: wrap; }
  .rail-controls .icon-button { width: 2.75rem; height: 2.75rem; }
  .lightbox-layout { grid-template-columns: 1fr; }
  .lightbox-figure img { height: min(54vh, 25rem); height: min(54dvh, 25rem); }
  .lightbox-content { padding: 1.2rem 1.35rem; }
  .lightbox-actions { margin-top: 1rem; }
  .lightbox-controls { margin-top: .8rem; }
}
@media (max-width: 420px) {
  .cart-trigger > span:not(.cart-count) {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
  }
}
@media (max-width: 380px) {
  :root { --gutter: 1rem; }
  .cart-trigger, .menu-toggle { padding-inline: .55rem; }
  .brand-name { letter-spacing: .07em; }
  .hero-actions { align-items: stretch; gap: .55rem; }
  .hero-actions .button { padding-inline: .85rem; }
  .hero-caption, .hero-controls { gap: .35rem; }
  .cart-item { flex-wrap: wrap; }
  .cart-item-price { text-align: left; }
}
@media (max-height: 550px) {
  .cart-dialog[open] { display: block; overflow-y: auto; }
  .dialog-body { overflow: visible; }
  .lightbox-figure img { max-height: 75dvh; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation: none !important; transition: none !important; }
}

/* A luz lateral e as bordas de papel unem a capa aos retratos da galeria. */
.hero { background: radial-gradient(ellipse at 78% 48%, #304555, transparent 55%), linear-gradient(118deg,#081725,#102b45 68%,#0a1a2a); }
.studio-orbit { position:absolute; pointer-events:none; z-index:-3; width:71vw; aspect-ratio:1; left:35%; top:-30%; border:1px solid #ffac702e; border-radius:50%; box-shadow:0 0 0 2vw #ffffff03,0 0 0 calc(2vw + 1px) #ffffff12,0 0 0 5vw #ffffff03,0 0 0 calc(5vw + 1px) #ffffff0d; }
.studio-print { display:none; }
.hero-title em { color:#ff994e; }
.hero-actions .button-primary { box-shadow:0 8px 30px #ff79001f; }
@media (min-width: 761px) {
  .hero { min-height:clamp(38rem,48vw,47rem); }
  .hero-media { inset:7% max(5%,calc((100% - 84rem)/2)) 13% 54%; transform:rotate(2deg); z-index:-1; border:clamp(5px,.55vw,10px) solid #fff9ef; box-shadow:0 25px 60px #020b1590, 12px 12px 0 -2px #182c3f, 12px 12px 0 -1px #e0a26d66; }
  .hero-shade { display:none; }
  .hero-inner { padding-block:4rem; }
  .studio-print { position:absolute; display:block; z-index:1; left:51%; bottom:10%; width:clamp(7rem,12vw,11rem); background:#fffaf2; padding:.45rem .45rem .25rem; border:0; color:#102438; transform:rotate(-9deg); box-shadow:0 13px 28px #010c1760; transition:transform .3s ease; }
  .studio-print img { width:100%; height:auto; aspect-ratio:1; object-fit:cover; object-position:center 35%; }
  .studio-print span { display:flex; justify-content:space-between; align-items:center; gap:.2rem; font:italic 500 clamp(.82rem,1.2vw,1.1rem)/1.4 var(--serif); padding:.3rem .1rem; }
  .studio-print:hover,.studio-print:focus-visible { transform:rotate(-4deg) translateY(-4px); }
  .hero-caption { bottom:2%; }
}
.gallery-section { background:linear-gradient(165deg,#142c42,#091a2a 72%); }
.gallery-rail { grid-auto-columns:clamp(15rem,31%,27rem); }
.gallery-open { overflow:hidden; border-radius:4px; box-shadow:inset 0 0 0 1px #ffffff40; }
.gallery-open picture { display:block; overflow:hidden; }
.gallery-image { aspect-ratio:4/5; transition:transform .65s ease; }
.gallery-caption { position:absolute; inset:auto 0 0; padding:3.5rem 1.4rem 1.3rem; display:grid; grid-template-columns:1fr auto; gap:.25rem; background:linear-gradient(transparent,#071523ed); }
.gallery-type { font-size:.75rem; letter-spacing:.09em; text-transform:uppercase; color:#fff0e2; }
.gallery-name { grid-column:1; font-size:clamp(1.6rem,2.7vw,2.7rem); }
.gallery-caption .enlarge-icon { grid-column:2; grid-row:1/3; align-self:end; color:white; border-color:#ffffff85; }
@media (hover:hover) { .gallery-open:hover img { transform:scale(1.045); } }
.packages-section { background:linear-gradient(140deg,#fff 20%,#f3f4f5); }
.package-card { overflow:hidden; isolation:isolate; border-radius:.35rem; box-shadow:0 12px 26px #0b1d320c; transition:transform .22s,box-shadow .22s; }
.package-card::before { content:""; position:absolute; z-index:-1; width:9rem; height:9rem; right:-3.5rem; top:-4rem; border-radius:50%; border:1px solid #8997a444; box-shadow:0 0 0 9px #8997a410,0 0 0 10px #8997a42b,0 0 0 24px #8997a409,0 0 0 25px #8997a41b; }
.package-card.is-featured { background:linear-gradient(145deg,#234057,#0b1d32 65%); }
@media(hover:hover) { .package-card:hover { transform:translateY(-4px); box-shadow:0 18px 30px #0b1d321a; } }
.workflow-list { grid-template-columns:repeat(5,minmax(0,1fr)); gap:1.2rem; }
.workflow-step { padding:1rem 0 0; border-top:1px solid #b9c4cb; }
.workflow-step::before { right:0; left:auto; top:1rem; }
.workflow-step svg { width:2.2rem; height:2.2rem; padding:.3rem; margin-bottom:.7rem; color:#984007; }
.quote-section { background:radial-gradient(ellipse at 10% 10%,#183b56,transparent 56%),#0b1d32; }
#added-feedback:not(:empty) { padding:.65rem .9rem; border-left:3px solid var(--orange); background:#e5eaee; margin-bottom:1rem; }
@media(max-width:850px) { .workflow-list { grid-template-columns:repeat(2,minmax(0,1fr)); } }
@media(max-width:600px) { .gallery-rail { grid-auto-columns:79%; } .workflow-list { grid-template-columns:1fr; } .workflow-step { padding-left:3rem; } .workflow-step svg { position:absolute; left:0; } .workflow-step h4 { padding-right:2rem; } }
@media(prefers-reduced-motion:no-preference) {
  .hero-title .title-line { animation:studio-rise .65s cubic-bezier(.2,.7,.3,1) both; }
  .hero-title .title-line:nth-child(2) { animation-delay:60ms; }
  .hero-title .title-line:nth-child(3) { animation-delay:120ms; }
  @keyframes studio-rise { from { transform:translateY(.12em); opacity:.65; } }
  .studio-orbit { animation:studio-drift 14s ease-in-out infinite alternate; }
  @keyframes studio-drift { to { transform:translate(1.4%,2%); } }
  @supports (animation-timeline:view()) {
    .gallery-open picture,.workflow-step { animation:portrait-reveal linear both; animation-timeline:view(); animation-range:entry 0% entry 90%; }
    @keyframes portrait-reveal { from { clip-path:inset(4% 0 0); translate:0 7px; } to { clip-path:inset(0); translate:0; } }
    .hero-media img { animation:studio-parallax linear both; animation-timeline:view(); animation-range:exit 0% exit 100%; }
    @keyframes studio-parallax { from { transform:scale(1.035); } to { transform:scale(1.07) translateY(2%); } }
    .site-header::after { content:""; position:absolute; bottom:-1px; left:0; width:100%; height:2px; background:var(--orange); transform-origin:left; animation:reading-progress linear both; animation-timeline:scroll(root); pointer-events:none; }
    @keyframes reading-progress { from { transform:scaleX(0); } to { transform:scaleX(1); } }
  }
  .cart-dialog { opacity:0; transform:translateX(2rem); transition:opacity .2s, transform .25s, display .25s allow-discrete, overlay .25s allow-discrete; }
  .cart-dialog[open] { opacity:1; transform:none; }
  @starting-style { .cart-dialog[open] { opacity:0; transform:translateX(2rem); } }
}
