/* ——— Petite Marie · doceria artesanal premium ——— */

:root {
  --bg: #FAF7F1;
  --cream: #F1EADD;
  --ink: #4A3B2A;
  --ink-soft: #6B5A48;
  --taupe: #9A8a76;
  --logo: #6E5A45;
  --accent: #A9854F;
  --rose: #B07A6E;
  --line: rgba(44, 34, 24, 0.14);
  --serif: "Cormorant Garamond", Georgia, serif;
  --display: "Italiana", "Cormorant Garamond", serif;
  --sans: "Hanken Grotesk", "Helvetica Neue", sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: auto; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 300;
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

::selection { background: var(--accent); color: #fff; }

img, image-slot { display: block; }

.wrap {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 48px;
}

/* ——— type ——— */

.eyebrow {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--taupe);
  display: flex;
  align-items: center;
  gap: 14px;
}

.eyebrow::before {
  content: "";
  width: 28px;
  height: 1px;
  background: var(--accent);
  flex: none;
}

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 400;
  line-height: 1.08;
  text-wrap: balance;
  color: var(--logo);
}

.lede {
  font-size: 18px;
  color: var(--ink-soft);
  max-width: 44ch;
  text-wrap: pretty;
}

em, .it { font-family: var(--serif); font-style: italic; }

/* ——— links & CTAs ——— */

.cta {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  white-space: nowrap;
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink);
  text-decoration: none;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--ink);
  transition: color 0.35s var(--ease), border-color 0.35s var(--ease);
}

.cta .arrow { transition: transform 0.35s var(--ease); }

.cta:hover { color: var(--accent); border-color: var(--accent); }
.cta:hover .arrow { transform: translateX(6px); }

.cta--light { color: var(--cream); border-color: rgba(241, 234, 221, 0.6); }
.cta--light:hover { color: #fff; border-color: #fff; }

.ghost-link {
  white-space: nowrap;
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--taupe);
  text-decoration: none;
  transition: color 0.3s var(--ease);
}

.ghost-link:hover { color: var(--ink); }

/* ——— header ——— */

.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  transition: background 0.4s var(--ease), box-shadow 0.4s var(--ease);
}

.site-header.scrolled {
  background: rgba(250, 247, 241, 0.92);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 var(--line);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 84px;
}

.logotype {
  display: inline-flex;
  flex-direction: column;
  align-items: stretch;
  gap: 7px;
  width: fit-content;
  text-decoration: none;
  line-height: 1;
}

.logotype img {
  height: 44px;
  width: auto;
  align-self: flex-start;
}

.logotype small {
  display: block;
  font-family: var(--sans);
  font-size: 8px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  white-space: nowrap;
  color: #6E5A45;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 36px;
}

.site-nav a:not(.cta) {
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-soft);
  text-decoration: none;
  position: relative;
  transition: color 0.3s var(--ease);
}

.site-nav a:not(.cta)::after {
  content: "";
  position: absolute;
  left: 0; bottom: -6px;
  width: 100%;
  height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.35s var(--ease);
}

.site-nav a:not(.cta):hover { color: var(--ink); }
.site-nav a:not(.cta):hover::after { transform: scaleX(1); transform-origin: left; }

.site-nav .cta { padding-bottom: 4px; font-size: 12px; }

.menu-btn { display: none; }

/* ——— hero ——— */

.hero {
  padding-top: 84px;
  min-height: 100vh;
  display: flex;
  align-items: stretch;
}

.hero .wrap {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: 72px;
  align-items: center;
  width: 100%;
  padding-top: 48px;
  padding-bottom: 64px;
}

.hero-copy { max-width: 560px; }

.hero-copy h1 {
  font-size: clamp(52px, 6vw, 84px);
  margin: 28px 0 26px;
  letter-spacing: -0.01em;
}

.hero-copy h1 em { font-weight: 400; }

.hero-copy .lede { margin-bottom: 44px; }

.hero-ctas { display: flex; align-items: center; gap: 40px; }

.hero-media { position: relative; }

.hero-media .hero-img {
  width: 100%;
  height: min(72vh, 640px);
}

.hero-media .hero-detail {
  position: absolute;
  left: -64px;
  bottom: -40px;
  width: 200px;
  height: 240px;
  box-shadow: 0 24px 60px -24px rgba(44, 34, 24, 0.35);
}

.hero-media figcaption {
  position: absolute;
  right: 0;
  bottom: -34px;
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--taupe);
}

/* ——— section scaffolding ——— */

section[data-screen-label] { position: relative; }

.section-pad { padding: 140px 0; }

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 48px;
  margin-bottom: 72px;
}

.section-head h2 {
  font-size: clamp(36px, 4vw, 56px);
  margin-top: 22px;
  max-width: 16ch;
}

/* ——— sobre ——— */

.about { background: var(--cream); }

.about .wrap {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 96px;
  align-items: center;
}

.about-portrait { position: relative; }

.about-portrait .portrait { width: 100%; height: 540px; }

.about-portrait::after {
  content: "";
  position: absolute;
  inset: 24px -24px -24px 24px;
  border: 1px solid var(--accent);
  opacity: 0.5;
  z-index: -1;
  pointer-events: none;
}

.about-copy h2 {
  font-size: clamp(38px, 4vw, 58px);
  margin: 22px 0 28px;
}

.about-copy p {
  color: var(--ink-soft);
  max-width: 50ch;
  text-wrap: pretty;
}

.about-copy p + p { margin-top: 18px; }

.about-note {
  margin-top: 22px;
  padding-left: 22px;
  border-left: 1px solid var(--accent);
  font-family: var(--serif);
  font-size: 21px;
  line-height: 1.4;
  color: var(--ink);
  max-width: 46ch;
}

.about-note em { color: var(--accent); }

.about-facts {
  display: flex;
  gap: 56px;
  margin-top: 44px;
  padding-top: 32px;
  border-top: 1px solid var(--line);
}

.about-facts div strong {
  display: block;
  font-family: var(--serif);
  font-size: 26px;
  font-weight: 500;
  line-height: 1.2;
}

.about-facts div span {
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--taupe);
}

.signature {
  font-family: var(--serif);
  font-style: italic;
  font-size: 30px;
  color: var(--ink);
  margin-top: 36px;
}

/* ——— categorias ——— */

.cats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
}

.cat {
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.cat .cat-media {
  overflow: hidden;
  position: relative;
}

.cat image-slot {
  width: 100%;
  height: 360px;
  transition: transform 0.7s var(--ease);
}

.cat:hover image-slot { transform: scale(1.035); }

.cat-meta {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding: 20px 0 10px;
  border-bottom: 1px solid var(--line);
  transition: border-color 0.35s var(--ease);
}

.cat:hover .cat-meta { border-color: var(--accent); }

.cat-meta h3 { font-size: 26px; font-weight: 500; }

.cat-meta .num {
  font-family: var(--serif);
  font-style: italic;
  font-size: 15px;
  color: var(--accent);
  white-space: nowrap;
  flex: none;
}

.cat p {
  font-size: 14.5px;
  color: var(--taupe);
  margin-top: 12px;
  text-wrap: pretty;
}

/* nth-child stagger: cards 2 & 4 nudge down for editorial rhythm */
.cats-grid .cat:nth-child(even) { transform: translateY(44px); }

/* ——— casamentos ——— */

.weddings {
  background: var(--ink);
  color: var(--cream);
  overflow: hidden;
}

.weddings .wrap {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  gap: 88px;
  align-items: center;
}

.weddings .eyebrow { color: rgba(241, 234, 221, 0.65); }

.weddings h2 {
  font-size: clamp(40px, 4.4vw, 62px);
  margin: 24px 0 28px;
  color: var(--cream);
}

.weddings h2 em { color: var(--accent); }

.weddings p {
  color: rgba(241, 234, 221, 0.78);
  max-width: 46ch;
  text-wrap: pretty;
}

.weddings-list {
  list-style: none;
  margin: 40px 0 48px;
  display: grid;
  gap: 0;
}

.weddings-list li {
  display: flex;
  align-items: baseline;
  gap: 18px;
  padding: 16px 0;
  border-bottom: 1px solid rgba(241, 234, 221, 0.16);
  font-family: var(--serif);
  font-size: 22px;
  color: var(--cream);
}

.weddings-list li span {
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.2em;
  color: var(--accent);
}

.weddings-media { position: relative; }

/* placeholders legíveis sobre o fundo cacau — some quando a foto é solta */
.weddings image-slot {
  background: #F6F1E7;
  color: rgba(74, 59, 42, 0.65);
}

.weddings-media .w-main { width: 100%; height: 620px; }

.weddings-media .w-detail {
  position: absolute;
  left: -56px;
  top: 56%;
  width: 190px;
  height: 230px;
  box-shadow: 0 30px 70px -20px rgba(0, 0, 0, 0.5);
}

/* ——— galeria ——— */

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  grid-auto-rows: 110px;
  gap: 24px;
}

.g-item {
  position: relative;
  display: flex;
  flex-direction: column;
}
.g-item image-slot { width: 100%; flex: 1; min-height: 0; }

.g-item figcaption {
  margin-top: 12px;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--taupe);
}

.g-1 { grid-column: span 3; grid-row: span 4; }
.g-2 { grid-column: span 3; grid-row: span 3; }
.g-3 { grid-column: span 2; grid-row: span 3; }
.g-4 { grid-column: span 2; grid-row: span 2; }
.g-5 { grid-column: span 2; grid-row: span 3; }
.g-6 { grid-column: span 4; grid-row: span 2; }

/* ——— contato ——— */

.contact { background: var(--cream); }

.contact .wrap {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 96px;
  align-items: start;
}

.contact h2 {
  font-size: clamp(40px, 4.4vw, 60px);
  margin: 22px 0 26px;
}

.contact-channels {
  margin-top: 44px;
  display: grid;
  gap: 0;
}

.channel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
  color: var(--ink);
  transition: padding-left 0.35s var(--ease);
}

.channel:first-child { border-top: 1px solid var(--line); }

.channel:hover { padding-left: 10px; }

.channel .ch-label {
  font-family: var(--serif);
  font-size: 26px;
  font-weight: 500;
}

.channel .ch-value {
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--taupe);
  transition: color 0.3s var(--ease);
}

.channel:hover .ch-value { color: var(--accent); }

.contact-note {
  margin-top: 32px;
  font-size: 14px;
  color: var(--taupe);
}

/* form */

.order-form {
  background: var(--bg);
  border: 1px solid var(--line);
  padding: 48px;
}

.order-form h3 {
  font-size: 28px;
  font-weight: 500;
  margin-bottom: 6px;
}

.order-form > p {
  font-size: 14px;
  color: var(--taupe);
  margin-bottom: 32px;
}

.field { margin-bottom: 26px; }

.field label {
  display: block;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--taupe);
  margin-bottom: 10px;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  border: none;
  border-bottom: 1px solid var(--line);
  background: transparent;
  font-family: var(--sans);
  font-weight: 300;
  font-size: 16px;
  color: var(--ink);
  padding: 8px 0 12px;
  outline: none;
  border-radius: 0;
  transition: border-color 0.3s var(--ease);
  resize: none;
}

.field input:focus,
.field select:focus,
.field textarea:focus { border-color: var(--accent); }

.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }

.order-form button {
  margin-top: 10px;
  appearance: none;
  border: none;
  cursor: pointer;
  background: var(--ink);
  color: var(--cream);
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  padding: 18px 40px;
  transition: background 0.35s var(--ease);
}

.order-form button:hover { background: var(--accent); }

.form-success {
  display: none;
  padding: 24px 0 8px;
}

.form-success .it { font-size: 26px; }

.form-success p { font-size: 14px; color: var(--taupe); margin-top: 10px; }

.order-form.sent form { display: none; }
.order-form.sent .form-success { display: block; }

/* ——— footer ——— */

.site-footer { padding: 72px 0 56px; }

.site-footer .wrap {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
}

.site-footer .logotype img { height: 44px; }

.footer-links { display: flex; gap: 28px; }

.site-footer .fine {
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--taupe);
}

/* ——— fotos reais (substituem os image-slots) ——— */

.pm-photo {
  background-size: cover;
  background-position: center;
  display: block;
}

.cat-media .pm-photo {
  width: 100%;
  height: 360px;
  transition: transform 0.7s var(--ease);
}

.cat:hover .cat-media .pm-photo { transform: scale(1.035); }

.g-item .pm-photo { width: 100%; flex: 1; min-height: 0; }

/* ——— micro-motion (hover) — sutil, premium ——— */

@media (prefers-reduced-motion: no-preference) and (hover: hover) {
  /* hero: zoom lento na foto, detalhe flutua levemente */
  .hero-media .hero-img,
  .hero-media .hero-detail,
  .weddings-media .w-main,
  .weddings-media .w-detail,
  .about-portrait .portrait {
    transition: transform 1.2s var(--ease), box-shadow 1.2s var(--ease);
  }

  .hero-media:hover .hero-img { transform: scale(1.015); }
  .hero-media:hover .hero-detail { transform: translate(-5px, -5px); }

  .weddings-media:hover .w-main { transform: scale(1.015); }
  .weddings-media:hover .w-detail { transform: translate(-5px, -7px); }

  .about-portrait:hover .portrait { transform: scale(1.015); }

  /* galeria: leve elevação + sombra, legenda acende */
  .g-item image-slot,
  .g-item .pm-photo {
    transition: transform 0.55s var(--ease), box-shadow 0.55s var(--ease);
  }

  .g-item:hover image-slot,
  .g-item:hover .pm-photo {
    transform: translateY(-6px);
    box-shadow: 0 24px 44px -22px rgba(74, 59, 42, 0.4);
  }

  .g-item figcaption { transition: color 0.4s var(--ease); }
  .g-item:hover figcaption { color: var(--accent); }

  /* categorias: número desliza junto com o zoom existente */
  .cat-meta .num { transition: transform 0.5s var(--ease); }
  .cat:hover .cat-meta .num { transform: translateX(-4px); }
}

/* ——— reveal animations ——— */

@media (prefers-reduced-motion: no-preference) {
  html.js.anim .reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
    transition-delay: var(--d, 0s);
  }

  html.js.anim .reveal.in {
    opacity: 1;
    transform: none;
  }
}

/* ——— responsive ——— */

@media (max-width: 1080px) {
  .wrap { padding: 0 32px; }
  .hero .wrap { grid-template-columns: 1fr; gap: 56px; }
  .hero-media .hero-detail { left: auto; right: -8px; bottom: -48px; }
  .hero-media figcaption { right: auto; left: 0; }
  .about .wrap, .weddings .wrap, .contact .wrap { grid-template-columns: 1fr; gap: 64px; }
  .cats-grid { grid-template-columns: 1fr 1fr; gap: 40px 24px; }
  .cats-grid .cat:nth-child(even) { transform: translateY(28px); }
  .weddings-media .w-detail { left: -12px; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 96px; }
  .g-1 { grid-column: span 2; grid-row: span 4; }
  .g-2 { grid-column: span 1; grid-row: span 3; }
  .g-3 { grid-column: span 1; grid-row: span 3; }
  .g-4 { grid-column: span 1; grid-row: span 2; }
  .g-5 { grid-column: span 1; grid-row: span 2; }
  .g-6 { grid-column: span 2; grid-row: span 3; }
}

@media (max-width: 720px) {
  body { font-size: 16px; }
  .wrap { padding: 0 22px; }
  .section-pad { padding: 96px 0; }
  .site-header .wrap { height: 72px; }
  .site-nav { display: none; }
  .site-nav.open {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 24px;
    position: absolute;
    top: 72px; left: 0; right: 0;
    background: var(--bg);
    padding: 32px 22px 40px;
    box-shadow: 0 24px 40px -20px rgba(44, 34, 24, 0.25);
  }

  .menu-btn {
    display: inline-flex;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    padding: 12px 0;
    cursor: pointer;
  }

  .menu-btn span {
    width: 26px;
    height: 1.5px;
    background: var(--ink);
    transition: transform 0.3s var(--ease), opacity 0.3s var(--ease);
  }

  .menu-btn[aria-expanded="true"] span:first-child { transform: translateY(6.5px) rotate(45deg); }
  .menu-btn[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .menu-btn[aria-expanded="true"] span:last-child { transform: translateY(-6.5px) rotate(-45deg); }

  .hero { min-height: auto; }
  .hero .wrap { padding-top: 40px; }
  .hero-copy h1 { font-size: clamp(42px, 12vw, 56px); }
  .hero-ctas { flex-direction: column; align-items: flex-start; gap: 24px; }
  .hero-media .hero-img { height: 60vh; }
  .hero-media .hero-detail { width: 150px; height: 180px; bottom: -36px; }
  .hero-media figcaption { display: none; }

  .section-head { flex-direction: column; align-items: flex-start; gap: 24px; margin-bottom: 48px; }
  .cats-grid { grid-template-columns: 1fr; }
  .cats-grid .cat:nth-child(even) { transform: none; }
  .cat image-slot, .cat-media .pm-photo { height: 300px; }

  .about-portrait .portrait { height: 440px; }
  .about-facts { gap: 32px; flex-wrap: wrap; }

  .weddings-media .w-main { height: 440px; }
  .weddings-media .w-detail { display: none; }
  .weddings-list li { font-size: 19px; }

  .gallery-grid { grid-template-columns: 1fr; grid-auto-rows: auto; gap: 32px; }
  .g-item { grid-column: span 1 !important; grid-row: span 1 !important; }
  .g-item image-slot, .g-item .pm-photo { height: 320px; min-height: 320px; }
  .g-1 image-slot, .g-1 .pm-photo { height: 420px; min-height: 420px; }

  .order-form { padding: 32px 24px; }
  .field-row { grid-template-columns: 1fr; gap: 0; }

  .site-footer .wrap { flex-direction: column; align-items: flex-start; }
}
