/* Querida Noiva — Cecília Catito */

:root {
  --terra: #b85c38;
  --terra-deep: #8f4528;
  --sand: #f5efe6;
  --sand-dark: #ebe3d6;
  --ink: #2a221c;
  --muted: #6b5c50;
  --cream: #faf7f2;
  --gold: #b8973a;
  --white: #fff;
  --radius: 20px;
  --ease: cubic-bezier(0.25, 0.8, 0.25, 1);
  --serif: 'Cormorant Garamond', 'Playfair Display', Georgia, serif;
  --sans: 'DM Sans', system-ui, sans-serif;
}

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

html { scroll-behavior: smooth; font-size: 16.5px; }

body {
  font-family: var(--sans);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; height: auto; }
a { color: inherit; text-decoration: none; transition: color .3s var(--ease); }
ul { list-style: none; }
button, input, textarea, select { font: inherit; border: none; outline: none; background: none; }

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 500;
  line-height: 1.2;
  color: var(--ink);
}

h1 { font-size: clamp(2.6rem, 6vw, 4.2rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: clamp(1.35rem, 2.5vw, 1.7rem); }

.container { width: min(1120px, 90%); margin-inline: auto; }

/* —— Buttons —— */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: all .4s var(--ease);
}

.btn-fill {
  background: var(--terra);
  color: var(--white);
  box-shadow: 0 10px 28px rgba(184, 92, 56, 0.28);
}
.btn-fill:hover {
  background: var(--terra-deep);
  transform: translateY(-2px);
  box-shadow: 0 14px 34px rgba(184, 92, 56, 0.38);
}

.btn-line {
  border: 1.5px solid var(--terra);
  color: var(--terra);
}
.btn-line:hover {
  background: var(--terra);
  color: var(--white);
  transform: translateY(-2px);
}

.btn-light {
  background: var(--white);
  color: var(--terra);
  box-shadow: 0 8px 24px rgba(42, 34, 28, 0.1);
}
.btn-light:hover {
  transform: translateY(-2px);
  background: var(--sand);
}

/* —— Header —— */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 20px 0;
  transition: all .45s var(--ease);
}
.header.scrolled {
  background: rgba(250, 247, 242, 0.9);
  backdrop-filter: blur(16px);
  padding: 12px 0;
  box-shadow: 0 1px 0 rgba(42,34,28,0.06);
}

.header-in {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(1120px, 90%);
  margin-inline: auto;
}

.logo {
  display: flex;
  align-items: center;
  gap: 11px;
  z-index: 101;
}
.logo-mark {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--terra);
  color: var(--white);
  font-family: var(--serif);
  font-size: 1.05rem;
  font-weight: 600;
  display: grid;
  place-items: center;
  transition: transform .4s var(--ease);
}
.logo:hover .logo-mark { transform: rotate(-10deg) scale(1.06); }
.logo-name {
  font-family: var(--serif);
  font-size: 1.2rem;
  font-weight: 600;
  line-height: 1.1;
}
.logo-sub {
  font-size: 0.65rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--terra);
  font-weight: 500;
}

.nav {
  display: flex;
  align-items: center;
  gap: 4px;
}
.nav a {
  padding: 8px 14px;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--muted);
  position: relative;
}
.nav a:hover, .nav a.active { color: var(--terra); }
.nav a.active::after {
  content: '';
  position: absolute;
  bottom: 4px; left: 14px; right: 14px;
  height: 1.5px;
  background: var(--terra);
}
.nav .nav-cta {
  margin-left: 10px;
  padding: 10px 20px;
  font-size: 0.84rem;
}

.burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 26px;
  cursor: pointer;
  z-index: 101;
  background: none;
}
.burger span {
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: .35s var(--ease);
}
.burger.on span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger.on span:nth-child(2) { opacity: 0; }
.burger.on span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* —— Hero —— */
.hero {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: 40px;
  padding: 120px 0 80px;
  position: relative;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: var(--sand);
}
.hero-bg video {
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0.22;
}
.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, rgba(245,239,230,0.97) 40%, rgba(245,239,230,0.55) 100%);
}

.hero-copy {
  position: relative;
  z-index: 2;
  padding-left: max(5%, calc((100% - 1120px) / 2));
  max-width: 560px;
}
.hero-tag {
  display: inline-block;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--terra);
  font-weight: 600;
  margin-bottom: 18px;
  opacity: 0;
  animation: rise 0.9s 0.15s forwards;
}
.hero h1 {
  margin-bottom: 20px;
  opacity: 0;
  animation: rise 0.9s 0.3s forwards;
}
.hero h1 em {
  font-style: italic;
  color: var(--terra);
  font-weight: 500;
}
.hero-lead {
  font-size: 1.08rem;
  color: var(--muted);
  margin-bottom: 32px;
  max-width: 420px;
  opacity: 0;
  animation: rise 0.9s 0.45s forwards;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  opacity: 0;
  animation: rise 0.9s 0.6s forwards;
}

.hero-visual {
  position: relative;
  z-index: 2;
  height: min(78vh, 620px);
  margin-right: max(3%, calc((100% - 1120px) / 2 - 20px));
  opacity: 0;
  animation: rise 1.1s 0.35s forwards;
}
.hero-photo {
  position: absolute;
  border-radius: 28px;
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(42,34,28,0.15);
}
.hero-photo img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 1.4s var(--ease);
}
.hero-photo:hover img { transform: scale(1.04); }

.hp-main {
  width: 72%;
  height: 88%;
  top: 0;
  right: 0;
}
.hp-side {
  width: 42%;
  height: 48%;
  bottom: 0;
  left: 0;
  border: 5px solid var(--cream);
  z-index: 3;
}

.hero-note {
  position: absolute;
  bottom: 18%;
  left: 38%;
  background: var(--white);
  padding: 14px 18px;
  border-radius: 14px;
  box-shadow: 0 12px 32px rgba(42,34,28,0.12);
  font-size: 0.82rem;
  color: var(--muted);
  z-index: 4;
  max-width: 160px;
  animation: floaty 6s ease-in-out infinite;
}
.hero-note strong {
  display: block;
  color: var(--ink);
  font-family: var(--serif);
  font-size: 1.1rem;
  margin-bottom: 2px;
}

@keyframes rise {
  from { opacity: 0; transform: translateY(28px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes floaty {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

/* —— Sections —— */
.sec { padding: 100px 0; }
.sec-label {
  font-size: 0.75rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--terra);
  font-weight: 600;
  margin-bottom: 12px;
}
.sec-intro {
  max-width: 520px;
  color: var(--muted);
  margin-top: 14px;
}

/* About split — asymmetric */
.about-split {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 60px;
  align-items: center;
}
.about-imgs {
  position: relative;
  height: 540px;
}
.ai-a {
  position: absolute;
  width: 70%;
  height: 75%;
  top: 0; left: 0;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(42,34,28,0.12);
}
.ai-b {
  position: absolute;
  width: 48%;
  height: 42%;
  bottom: 20px; right: 0;
  border-radius: 20px;
  overflow: hidden;
  border: 5px solid var(--cream);
  box-shadow: 0 16px 40px rgba(42,34,28,0.14);
}
.ai-a img, .ai-b img { width: 100%; height: 100%; object-fit: cover; }

.about-text p {
  color: var(--muted);
  margin-bottom: 16px;
}
.about-text .btn { margin-top: 12px; }

/* Services — staggered cards */
.services-wrap { background: var(--sand); }

.svc-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 50px;
}
.svc-card {
  background: var(--white);
  border-radius: 22px;
  padding: 36px 28px;
  transition: transform .45s var(--ease), box-shadow .45s var(--ease);
  position: relative;
}
.svc-card:nth-child(2) { transform: translateY(24px); }
.svc-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 48px rgba(42,34,28,0.1);
}
.svc-card:nth-child(2):hover { transform: translateY(18px); }

.svc-icon {
  width: 52px; height: 52px;
  border-radius: 14px;
  background: var(--sand);
  color: var(--terra);
  display: grid;
  place-items: center;
  font-size: 1.25rem;
  margin-bottom: 22px;
  transition: .4s var(--ease);
}
.svc-card:hover .svc-icon {
  background: var(--terra);
  color: var(--white);
}
.svc-card h3 { margin-bottom: 10px; }
.svc-card p {
  color: var(--muted);
  font-size: 0.94rem;
  margin-bottom: 18px;
}
.svc-card a {
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--terra);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.svc-card a i { transition: transform .3s; }
.svc-card a:hover i { transform: translateX(4px); }

/* Statement band */
.statement {
  position: relative;
  padding: 110px 0;
  overflow: hidden;
  background: var(--ink);
  color: var(--white);
}
.statement video {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0.28;
}
.statement .overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(42,34,28,0.88), rgba(42,34,28,0.55));
}
.statement-in {
  position: relative;
  z-index: 2;
  max-width: 580px;
}
.statement h2 {
  color: var(--white);
  margin-bottom: 16px;
  font-weight: 500;
}
.statement p {
  opacity: 0.88;
  margin-bottom: 28px;
  font-size: 1.05rem;
}

/* Why — offset list */
.why-grid {
  display: grid;
  grid-template-columns: 1fr 0.9fr;
  gap: 50px;
  align-items: center;
}
.why-list { display: flex; flex-direction: column; gap: 16px; }
.why-item {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 16px;
  padding: 20px 22px;
  background: var(--white);
  border-radius: 16px;
  box-shadow: 0 6px 20px rgba(42,34,28,0.05);
  transition: transform .35s var(--ease);
}
.why-item:hover { transform: translateX(8px); }
.why-num {
  font-family: var(--serif);
  font-size: 1.5rem;
  color: var(--terra);
  font-weight: 600;
}
.why-item h4 { font-size: 1.02rem; margin-bottom: 3px; }
.why-item p { font-size: 0.88rem; color: var(--muted); }

.why-photo {
  border-radius: 24px;
  overflow: hidden;
  aspect-ratio: 4/5;
  box-shadow: 0 24px 56px rgba(42,34,28,0.14);
}
.why-photo img { width: 100%; height: 100%; object-fit: cover; }

/* FAQ on home */
.faq-home { background: var(--sand); }
.faq-box { max-width: 720px; margin: 48px auto 0; }
.faq-row {
  background: var(--white);
  border-radius: 14px;
  margin-bottom: 10px;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(42,34,28,0.04);
}
.faq-q {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 22px;
  text-align: left;
  font-size: 1rem;
  font-weight: 500;
  color: var(--ink);
  cursor: pointer;
  transition: color .3s;
}
.faq-q:hover { color: var(--terra); }
.faq-q i {
  color: var(--terra);
  font-size: 0.8rem;
  transition: transform .35s;
}
.faq-row.open .faq-q i { transform: rotate(180deg); }
.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height .4s var(--ease);
}
.faq-row.open .faq-a { max-height: 220px; }
.faq-a-in {
  padding: 0 22px 18px;
  color: var(--muted);
  font-size: 0.93rem;
}

/* CTA soft */
.cta-soft {
  text-align: center;
  padding: 90px 20px;
  background: linear-gradient(145deg, var(--terra), var(--terra-deep));
  color: var(--white);
  position: relative;
  overflow: hidden;
}
.cta-soft::before {
  content: '';
  position: absolute;
  width: 360px; height: 360px;
  border: 36px solid rgba(255,255,255,0.05);
  border-radius: 50%;
  top: -120px; right: -80px;
}
.cta-soft h2 { color: var(--white); margin-bottom: 14px; }
.cta-soft p {
  opacity: 0.9;
  max-width: 460px;
  margin: 0 auto 28px;
}

/* —— Page header —— */
.ph {
  padding: 150px 0 70px;
  background: var(--sand);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.ph::after {
  content: '';
  position: absolute;
  width: 420px; height: 420px;
  border: 42px solid rgba(184,92,56,0.06);
  border-radius: 50%;
  top: -160px; right: -100px;
}
.ph h1 { margin-bottom: 10px; }
.crumbs {
  font-size: 0.88rem;
  color: var(--muted);
}
.crumbs a { color: var(--terra); }

/* —— Sobre page —— */
.story {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: 56px;
  align-items: center;
}
.story-img {
  border-radius: 24px;
  overflow: hidden;
  aspect-ratio: 4/5;
  box-shadow: 0 22px 50px rgba(42,34,28,0.12);
}
.story-img img { width: 100%; height: 100%; object-fit: cover; }
.story-body p { color: var(--muted); margin-bottom: 15px; }

.values {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-top: 70px;
}
.val {
  text-align: center;
  padding: 32px 18px;
  background: var(--sand);
  border-radius: 18px;
  transition: .4s var(--ease);
}
.val:hover {
  background: var(--white);
  box-shadow: 0 12px 32px rgba(42,34,28,0.08);
  transform: translateY(-5px);
}
.val i {
  font-size: 1.7rem;
  color: var(--terra);
  margin-bottom: 14px;
}
.val h4 { font-size: 1.05rem; margin-bottom: 6px; }
.val p { font-size: 0.85rem; color: var(--muted); }

/* —— Serviços detail —— */
.svc-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  margin-bottom: 72px;
}
.svc-block:nth-child(even) { direction: rtl; }
.svc-block:nth-child(even) > * { direction: ltr; }
.svc-pic {
  border-radius: 22px;
  overflow: hidden;
  aspect-ratio: 5/4;
  box-shadow: 0 18px 44px rgba(42,34,28,0.12);
}
.svc-pic img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .8s var(--ease);
}
.svc-block:hover .svc-pic img { transform: scale(1.03); }
.svc-body h3 { margin-bottom: 12px; }
.svc-body p { color: var(--muted); margin-bottom: 16px; }
.svc-body li {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 9px;
  color: var(--muted);
  font-size: 0.94rem;
}
.svc-body li i { color: var(--terra); font-size: 0.8rem; }

/* —— Contact —— */
.contact-layout {
  display: grid;
  grid-template-columns: 0.95fr 1.15fr;
  gap: 40px;
}
.info-card {
  background: var(--sand);
  border-radius: 22px;
  padding: 36px;
}
.info-card h3 { margin-bottom: 22px; }
.cinfo {
  display: flex;
  gap: 14px;
  margin-bottom: 24px;
}
.cinfo .ic {
  width: 44px; height: 44px;
  border-radius: 12px;
  background: var(--white);
  display: grid;
  place-items: center;
  color: var(--terra);
  flex-shrink: 0;
}
.cinfo strong { display: block; font-size: 0.92rem; margin-bottom: 2px; }
.cinfo p, .cinfo a { font-size: 0.9rem; color: var(--muted); }
.cinfo a:hover { color: var(--terra); }

.form-card {
  background: var(--white);
  border-radius: 22px;
  padding: 36px;
  box-shadow: 0 12px 36px rgba(42,34,28,0.06);
}
.form-card h3 { margin-bottom: 20px; }
.frow {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.fg { margin-bottom: 14px; }
.fg label {
  display: block;
  font-size: 0.84rem;
  font-weight: 500;
  color: var(--muted);
  margin-bottom: 6px;
}
.fg input, .fg textarea, .fg select {
  width: 100%;
  padding: 13px 16px;
  border: 1.5px solid var(--sand-dark);
  border-radius: 12px;
  background: var(--cream);
  transition: border-color .3s, box-shadow .3s;
}
.fg input:focus, .fg textarea:focus, .fg select:focus {
  border-color: var(--terra);
  box-shadow: 0 0 0 3px rgba(184,92,56,0.12);
  background: var(--white);
}
.fg textarea { min-height: 130px; resize: vertical; }

/* —— Footer —— */
.footer {
  background: var(--ink);
  color: rgba(255,255,255,0.72);
  padding: 64px 0 28px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: 36px;
  margin-bottom: 44px;
}
.footer .logo-mark { background: var(--terra); margin-bottom: 14px; }
.footer-brand p {
  font-size: 0.9rem;
  margin: 12px 0 18px;
  max-width: 260px;
}
.fsocial { display: flex; gap: 10px; }
.fsocial a {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: rgba(255,255,255,0.07);
  display: grid;
  place-items: center;
  color: var(--white);
  transition: .3s;
}
.fsocial a:hover { background: var(--terra); transform: translateY(-2px); }
.footer h4 {
  color: var(--white);
  font-family: var(--sans);
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 16px;
}
.flinks li { margin-bottom: 8px; }
.flinks a { font-size: 0.9rem; }
.flinks a:hover { color: var(--gold); }
.fcontact li {
  display: flex;
  gap: 10px;
  margin-bottom: 12px;
  font-size: 0.9rem;
}
.fcontact i { color: var(--terra); margin-top: 3px; }
.footer-bot {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 0.82rem;
}
.footer-bot a { color: #d4b45a; }
.footer-bot a:hover { text-decoration: underline; }

/* Music control only */
.music-btn {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 90;
  width: 48px; height: 48px;
  border-radius: 50%;
  background: var(--white);
  box-shadow: 0 8px 24px rgba(42,34,28,0.12);
  display: grid;
  place-items: center;
  color: var(--terra);
  cursor: pointer;
  transition: .35s var(--ease);
  font-size: 1.05rem;
}
.music-btn:hover {
  background: var(--terra);
  color: var(--white);
  transform: scale(1.06);
}

/* Reveal */
.rv {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity .75s var(--ease), transform .75s var(--ease);
}
.rv.on { opacity: 1; transform: translateY(0); }
.d1 { transition-delay: .1s; }
.d2 { transition-delay: .2s; }
.d3 { transition-delay: .3s; }

/* Page transition */
.pt {
  position: fixed;
  inset: 0;
  background: var(--terra);
  z-index: 999;
  transform: scaleY(0);
  transform-origin: bottom;
  pointer-events: none;
}
.pt.go {
  animation: ptAnim .65s var(--ease) forwards;
}
@keyframes ptAnim {
  0% { transform: scaleY(0); transform-origin: bottom; }
  45% { transform: scaleY(1); transform-origin: bottom; }
  55% { transform-origin: top; }
  100% { transform: scaleY(0); transform-origin: top; }
}

/* Responsive */
@media (max-width: 1024px) {
  .hero {
    grid-template-columns: 1fr;
    padding: 110px 0 60px;
    text-align: center;
  }
  .hero-copy {
    padding-left: 0;
    margin: 0 auto;
    max-width: 520px;
  }
  .hero-lead { margin-inline: auto; }
  .hero-actions { justify-content: center; }
  .hero-visual {
    height: 480px;
    margin: 20px auto 0;
    max-width: 420px;
    width: 100%;
  }
  .about-split, .why-grid, .story, .svc-block, .contact-layout {
    grid-template-columns: 1fr;
    gap: 36px;
  }
  .svc-block:nth-child(even) { direction: ltr; }
  .about-imgs { height: 420px; max-width: 440px; margin: 0 auto; }
  .svc-grid { grid-template-columns: 1fr 1fr; }
  .svc-card:nth-child(2) { transform: none; }
  .svc-card:nth-child(2):hover { transform: translateY(-6px); }
  .values { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .nav {
    position: fixed;
    top: 0; right: 0;
    width: min(300px, 82vw);
    height: 100vh;
    background: var(--white);
    flex-direction: column;
    align-items: flex-start;
    padding: 90px 32px 30px;
    gap: 4px;
    box-shadow: -12px 0 40px rgba(0,0,0,0.08);
    transform: translateX(105%);
    transition: transform .4s var(--ease);
    z-index: 100;
  }
  .nav.open { transform: translateX(0); }
  .nav a { font-size: 1.05rem; padding: 11px 0; }
  .nav .nav-cta { margin: 14px 0 0; width: 100%; justify-content: center; }
  .burger { display: flex; }
  .svc-grid, .values, .footer-grid, .frow { grid-template-columns: 1fr; }
  .sec { padding: 70px 0; }
  .hero-note { display: none; }
  .music-btn { bottom: 18px; right: 18px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
