/* ============================================================
   Papelaria Reinel — Landing Page
   Standalone stylesheet, shares the main site's brandbook tokens.
   ============================================================ */

/* ---------- Fonts (self-hosted) ----------
   Served from our own domain instead of the Google CDN, so no visitor IP is
   sent to Google and no consent is needed for them. These are variable
   fonts: one file covers the whole 400–700 weight range.
   Latin subset only — it already covers every Portuguese accent. */
@font-face {
  font-family: "Playfair Display";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("assets/fonts/playfair-display-latin.woff2") format("woff2");
}
@font-face {
  font-family: "Playfair Display";
  font-style: italic;
  font-weight: 400 700;
  font-display: swap;
  src: url("assets/fonts/playfair-display-latin-italic.woff2") format("woff2");
}
@font-face {
  font-family: "Montserrat";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("assets/fonts/montserrat-latin.woff2") format("woff2");
}

:root {
  /* Brandbook */
  --paper: #f8f1e7;
  --paper-deep: #efe3d0;
  --ink: #231814;
  --ink-soft: #5b4b3f;
  --muted: #93826e;
  --line: #e3d5be;

  --terracotta: #c15b36;
  --terracotta-deep: #7a3821;
  --terracotta-soft: #e8c4b2;

  --verde: #618568;
  --verde-deep: #445d49;
  --verde-mid: #4f6d57;

  --ouro: #bfa060;

  --terracotta-mid: #96432a;

  --whatsapp: #0f7a3d;
  --whatsapp-deep: #0c6633;

  --font-display: "Playfair Display", Georgia, "Times New Roman", serif;
  --font-sans: "Montserrat", ui-sans-serif, system-ui, sans-serif;

  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

* {
  box-sizing: border-box;
  border-color: var(--line);
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-sans);
  overflow-x: hidden;
}

h1, h2, h3 {
  font-family: var(--font-display);
  letter-spacing: -0.02em;
  line-height: 1;
  margin: 0;
  font-weight: 600; /* Semibold — subtítulos, default */
}

p { margin: 0; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul { list-style: none; margin: 0; padding: 0; }

.wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.muted { color: var(--muted); }
.small { font-size: 0.8rem; }

.eyebrow {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--terracotta-deep);
  margin-bottom: 1rem;
}
.eyebrow .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  flex-shrink: 0;
}

.display-xl {
  font-weight: 700; /* Bold — título principal */
  font-size: clamp(2.5rem, 8vw, 6rem);
  line-height: 0.95;
}
.display-xl .line {
  display: block;
}
.display-xl .accent {
  color: var(--terracotta);
  position: relative;
  display: inline-block;
}

.display-md {
  font-weight: 400; /* Regular — título secundário */
  font-size: clamp(1.75rem, 4vw, 2.85rem);
  line-height: 1.05;
  margin-bottom: 2.5rem;
  max-width: 32rem;
}

.sr-only-svg {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--ink);
  color: var(--paper);
  padding: 0.75rem 1.25rem;
  z-index: 999;
  border-radius: 0 0 0.5rem 0;
}
.skip-link:focus { left: 0; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.9rem 1.75rem;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 600;
  transition: transform 0.35s var(--ease), background-color 0.3s, color 0.3s;
  white-space: nowrap;
}
.btn-primary {
  background: var(--terracotta);
  color: var(--paper);
}
.btn-primary:hover {
  background: var(--terracotta-deep);
  transform: translateY(-2px);
}
.btn-ghost {
  border: 1px solid rgba(35, 24, 20, 0.45);
  color: var(--ink);
}
.btn-ghost:hover {
  background: var(--ink);
  color: var(--paper);
}
/* Solid neutral button — used for "Recusar" so it carries the same visual
   weight as "Aceitar" (refusing must be as easy as accepting). */
.btn-neutral {
  background: var(--ink);
  color: var(--paper);
}
.btn-neutral:hover {
  background: var(--ink-soft);
  transform: translateY(-2px);
}

.btn-whatsapp {
  background: var(--whatsapp);
  color: #fff;
}
.btn-whatsapp:hover {
  background: var(--whatsapp-deep);
  transform: translateY(-2px);
}
.btn-sm {
  padding: 0.9rem 1.3rem;
  font-size: 0.8rem;
}

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  background: rgba(248, 241, 231, 0.85);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s;
}

:focus-visible {
  outline: 2px solid var(--terracotta-deep);
  outline-offset: 2px;
}
.site-header.scrolled { border-bottom-color: var(--line); }

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  height: 4.5rem;
}

.brand {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
}
.brand-name {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
}
.brand-tag {
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--muted);
  display: none;
}
@media (min-width: 480px) { .brand-tag { display: inline; } }

.header-nav {
  display: none;
  gap: 2rem;
  font-size: 0.9rem;
  font-weight: 700; /* Bold — navegação */
}
.header-nav a {
  color: var(--ink-soft);
  transition: color 0.2s;
}
.header-nav a:hover { color: var(--ink); }
@media (min-width: 768px) { .header-nav { display: flex; } }

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.social-icon {
  display: none;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 999px;
  border: 1px solid rgba(35, 24, 20, 0.15);
  color: var(--ink-soft);
  transition: background-color 0.25s, color 0.25s;
  flex-shrink: 0;
}
.social-icon:hover { background: var(--ink); color: var(--paper); }
@media (min-width: 480px) { .social-icon { display: flex; } }

.menu-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 999px;
  border: 1px solid rgba(35, 24, 20, 0.15);
  color: var(--ink);
  flex-shrink: 0;
  background: transparent;
}
.menu-toggle .icon-close { display: none; }
.menu-toggle[aria-expanded="true"] .icon-open { display: none; }
.menu-toggle[aria-expanded="true"] .icon-close { display: block; }
@media (min-width: 768px) { .menu-toggle { display: none; } }

.mobile-nav {
  position: fixed;
  top: 4.5rem;
  left: 0;
  right: 0;
  z-index: 49;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  padding: 0.5rem 1.5rem 1.25rem;
  display: flex;
  flex-direction: column;
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.1);
}
.mobile-nav[hidden] { display: none; }
.mobile-nav a {
  padding: 0.9rem 0.1rem;
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 600;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
}
.mobile-nav a:last-child { border-bottom: none; }
@media (min-width: 768px) { .mobile-nav { display: none !important; } }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding-top: 6rem;
  padding-bottom: 3rem;
  overflow: hidden;
}

.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: center;
}
@media (min-width: 900px) {
  .hero-inner { grid-template-columns: 1.15fr 0.85fr; }
}

.hero-lead {
  margin-top: 1.75rem;
  max-width: 34rem;
  font-size: 1.05rem;
  line-height: 1.6;
  color: var(--ink-soft);
}

.hero-actions {
  margin-top: 2.25rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}

.hero-seal {
  position: relative;
  width: min(86vw, 400px);
  aspect-ratio: 1;
  margin: 0 auto;
}
.seal-ring {
  position: absolute;
  inset: 0;
  aspect-ratio: 1;
  animation: spin 40s linear infinite;
}
.seal-ring svg { display: block; width: 100%; height: 100%; }
.seal-ring text {
  fill: var(--terracotta);
  font-family: var(--font-sans);
  font-size: 7.5px;
  font-weight: 600;
}
.seal-logo {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 54%;
  aspect-ratio: 1;
  height: auto;
  transform: translate(-50%, -50%);
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.scroll-hint {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: none;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
}
.scroll-hint svg { animation: bob 1.8s ease-in-out infinite; }
@media (min-width: 768px) { .scroll-hint { display: flex; } }
@keyframes bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(6px); }
}

/* ---------- Marquee ---------- */
.marquee-strip {
  background: var(--terracotta);
  color: var(--paper);
  overflow: hidden;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 1.1rem 0;
}
.marquee-track {
  display: flex;
  width: max-content;
  animation: marquee 26s linear infinite;
}
.marquee-track span {
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 3vw, 2rem);
  letter-spacing: -0.01em;
  padding: 0 2rem;
  white-space: nowrap;
  position: relative;
}
.marquee-track span::after {
  content: "✳";
  position: absolute;
  right: -0.1rem;
  opacity: 0.6;
  font-size: 0.9rem;
}
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ---------- Services ---------- */
.services {
  padding: 5.5rem 0;
  background: var(--paper-deep);
}

.service-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}
@media (min-width: 700px) {
  .service-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 1050px) {
  .service-grid { grid-template-columns: repeat(5, 1fr); }
}

.service-card {
  background: var(--bg);
  color: var(--fg);
  border-radius: 1.5rem;
  padding: 1.75rem;
  min-height: 13rem;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 0.5rem;
  transition: transform 0.4s var(--ease);
}
.service-card:hover { transform: translateY(-6px); }
.service-card h3 {
  font-size: 1.35rem;
  font-weight: 600;
}
.service-tag {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

/* ---------- Service card colour variants (avoids inline style="", CSP-friendly) ---------- */
.card-verde-mid { --bg: #4f6d57; --fg: #f8f1e7; }
.card-ouro { --bg: #bfa060; --fg: #231814; }
.card-verde-deep { --bg: #445d49; --fg: #f8f1e7; }
.card-terracotta-mid { --bg: #96432a; --fg: #f8f1e7; }
.card-ink { --bg: #231814; --fg: #f8f1e7; }

/* ---------- Reveal transition-delay variants (avoids inline style="", CSP-friendly) ---------- */
.delay-1 { transition-delay: 0.05s; }
.delay-2 { transition-delay: 0.1s; }
.delay-3 { transition-delay: 0.15s; }
.delay-4 { transition-delay: 0.2s; }
.service-card p {
  font-size: 0.9rem;
  line-height: 1.45;
  opacity: 0.92;
}

/* ---------- About ---------- */
.about {
  padding: 6rem 0;
}
.about-inner {
  max-width: 44rem;
  text-align: center;
  margin: 0 auto;
}
.about-inner .eyebrow { justify-content: center; }
.about-quote {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(1.4rem, 3vw, 2rem);
  line-height: 1.4;
  color: var(--ink-soft);
}

/* ---------- Contacts ---------- */
.contacts {
  padding: 5.5rem 0 6rem;
  background: var(--paper-deep);
}
.contacts-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  align-items: start;
}
@media (min-width: 900px) {
  .contacts-inner { grid-template-columns: 1fr 1fr; gap: 3rem; }
}

.contact-list {
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
  margin: 1rem 0 2rem;
}
.contact-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  font-size: 0.95rem;
  line-height: 1.5;
}
.contact-list svg { flex-shrink: 0; margin-top: 0.15rem; color: var(--terracotta); }
.contact-list a { text-decoration: underline; text-underline-offset: 3px; }
.contact-list a:hover { color: var(--terracotta); }
.contact-list .muted { color: var(--ink-soft); }

.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-bottom: 1.75rem;
}

.social-row { display: flex; gap: 0.6rem; }
.social-row a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 999px;
  border: 1px solid rgba(35, 24, 20, 0.15);
  transition: background-color 0.25s, color 0.25s;
}
.social-row a:hover { background: var(--ink); color: var(--paper); }

.contacts-map {
  border-radius: 1.5rem;
  overflow: hidden;
  min-height: 22rem;
  border: 1px solid var(--muted);
}
.contacts-map iframe {
  width: 100%;
  height: 100%;
  min-height: 22rem;
  border: 0;
  filter: grayscale(0.15) sepia(0.08);
  display: block;
}

/* Click-to-load map placeholder (no third-party request until clicked) */
.map-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  min-height: 22rem;
  height: 100%;
  padding: 2rem 1.5rem;
  text-align: center;
  background: var(--paper);
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 44px 44px;
}
.map-placeholder .map-pin { color: var(--terracotta); }
.map-address {
  font-size: 1rem;
  line-height: 1.5;
}
.map-note {
  max-width: 24rem;
  font-size: 0.72rem;
  line-height: 1.45;
  color: var(--ink-soft);
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--terracotta-deep);
  color: var(--paper);
  padding: 3rem 0;
  text-align: center;
}
.footer-brand {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 0.35rem;
}
.footer-inner .muted { color: rgba(248, 241, 231, 0.85); }
.footer-inner .small { margin-top: 1rem; }

/* ---------- WhatsApp float ---------- */
.whatsapp-float {
  position: fixed;
  bottom: 1.25rem;
  right: 1.25rem;
  z-index: 40;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  background: var(--whatsapp);
  color: #fff;
  padding: 0.75rem 1.1rem 0.75rem 0.75rem;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.18);
  transition: transform 0.35s var(--ease), opacity 0.35s var(--ease);
}
.whatsapp-float:hover { background: var(--whatsapp-deep); transform: scale(1.06); }
.whatsapp-float.is-hidden {
  opacity: 0;
  transform: scale(0.8);
  pointer-events: none;
}

/* ---------- Cookie banner ---------- */
.cookie-banner {
  position: fixed;
  inset: auto 0 0 0;
  z-index: 60;
  background: var(--paper);
  border-top: 1px solid var(--line);
  box-shadow: 0 -8px 30px rgba(0, 0, 0, 0.1);
  padding: 1.1rem 1.25rem;
}
.cookie-banner[hidden] { display: none; }
.cookie-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1rem;
}
@media (min-width: 800px) {
  .cookie-inner { flex-direction: row; align-items: center; justify-content: space-between; gap: 2rem; }
}
.cookie-text {
  font-size: 0.82rem;
  line-height: 1.55;
  color: var(--ink-soft);
  max-width: 62ch;
}
.cookie-text strong { color: var(--ink); }
.cookie-actions {
  display: flex;
  gap: 0.6rem;
  flex-shrink: 0;
}
/* Equal footprint for both choices — refusing must be as easy as accepting. */
.cookie-actions .btn { min-width: 7.5rem; }

/* Lift the floating WhatsApp button above the banner while it is showing */
body.has-cookie-banner .whatsapp-float { bottom: 8.5rem; }
@media (min-width: 800px) {
  body.has-cookie-banner .whatsapp-float { bottom: 6rem; }
}

/* ---------- Reveal on scroll ---------- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .seal-ring, .marquee-track, .scroll-hint svg { animation: none; }
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}
