/* =========================================================
   Frame & Form — Editorial Brand Studio Site
   ========================================================= */

:root {
  --color-bg: #f6f4ef;
  --color-ink: #111111;
  --color-ink-soft: #2a2a2a;
  --color-muted: #6b6b6b;
  --color-rule: #1a1a1a;
  --color-tile-1: #e8e4dc;
  --color-tile-2: #d9d4c7;
  --color-tile-3: #c8c1b1;
  --color-accent: #1a1a1a;

  --font-display: "Fraunces", "Times New Roman", serif;
  --font-body: "Inter Tight", system-ui, -apple-system, sans-serif;

  --max-w: 1320px;
  --pad-x: clamp(20px, 4vw, 56px);
  --pad-y: clamp(40px, 6vw, 96px);

  --radius: 4px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--color-bg);
  color: var(--color-ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

/* =========================================================
   HEADER
   ========================================================= */

.site-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 28px var(--pad-x) 0;
  max-width: var(--max-w);
  margin: 0 auto;
  border-bottom: 1px solid var(--color-rule);
  padding-bottom: 24px;
}

/* LOGO */
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.logo-mark {
  width: 100px !important;
  height: auto !important;
  max-width: none !important;
  flex-shrink: 0;
}

/* NAV */
.site-nav {
  display: flex;
  gap: 28px;
  font-size: 14px;
  font-weight: 500;
}

.site-nav a {
  position: relative;
  padding-bottom: 2px;
}

.site-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 1px;
  background: var(--color-ink);
  transition: width 0.3s ease;
}

.site-nav a:hover::after {
  width: 100%;
}

/* =========================================================
   HERO
   ========================================================= */
.hero {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: clamp(48px, 8vw, 120px) var(--pad-x) clamp(40px, 6vw, 80px);
}

.hero-title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.6rem, 6vw, 5.2rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin: 0;
  color: var(--color-ink);
  text-wrap: balance;
}

.hero-title em {
  font-style: italic;
  font-weight: 400;
}

/* =========================================================
   RESPONSIVE LINE-BREAK HELPER
   -------------------------------------------------------------
   <span class="break-md"></span> acts like <br> on tablet/desktop
   but disappears on mobile, letting text wrap naturally with
   the device's width. Use this instead of hard <br> in titles.
   ========================================================= */
.break-md {
  display: inline;        /* mobile: invisible inline, just acts as a normal space */
  white-space: normal;
}
@media (min-width: 720px) {
  .break-md {
    display: block;       /* desktop: forces a line break */
    height: 0;
  }
}

.hero-divider {
  margin-top: clamp(40px, 6vw, 80px);
  height: 1px;
  background: var(--color-rule);
}

/* =========================================================
   WORK SECTION
   ========================================================= */
.work {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--pad-x) var(--pad-y);
}

.section-label {
  display: inline-block;
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-ink);
  background: transparent;
  border: 1px solid var(--color-ink);
  border-radius: 999px;
  margin: 0 0 32px;
  padding: 6px 12px;
  line-height: 1;
}

.projects {
  display: flex;
  flex-direction: column;
  gap: clamp(48px, 6vw, 88px);
}

.project {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  padding-bottom: clamp(48px, 6vw, 88px);
}

.project:last-child { padding-bottom: 0; }

/* ----- Carousel ----- */
.project-media {
  position: relative;
  width: 100%;
  overflow: hidden;
  /* No fixed aspect — height comes from the slides */
  --slide-w: 380px;       /* width of each slide */
  --slide-h: 280px;       /* height of each slide */
  --gap: 16px;
  --speed: 80s;           /* very slow, cinematic */
  cursor: grab;
  user-select: none;
  -webkit-user-select: none;
  /* Tell the browser: vertical pan is the page's job, horizontal is ours */
  touch-action: pan-y;
}

.project-media.is-dragging { cursor: grabbing; }

.carousel-track {
  display: flex;
  gap: var(--gap);
  width: max-content;
  will-change: transform;
  /* Auto-scroll and dragging are handled in JS — no CSS animation needed. */
}

/* Respect reduced-motion preferences: JS still runs but users can scroll
   the carousel manually with horizontal scroll if they prefer. */
@media (prefers-reduced-motion: reduce) {
  .project-media {
    overflow-x: auto;
    scroll-snap-type: x mandatory;
  }
  .carousel-slide { scroll-snap-align: start; }
}

.carousel-slide {
  flex: 0 0 var(--slide-w);
  height: var(--slide-h);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-body);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-muted);
  background-size: cover;
  background-position: center;
  position: relative;
  overflow: hidden;
  pointer-events: none; /* prevents image-drag interfering with our drag handler */
}

/* Re-enable pointer events for any links inside slides if you add them later */
.carousel-slide a, .carousel-slide button { pointer-events: auto; }

/* Alternating tones so empty slides have visual variety */
.carousel-slide--1 { background-color: var(--color-tile-1); }
.carousel-slide--2 { background-color: var(--color-tile-2); }
.carousel-slide--3 { background-color: var(--color-tile-3); }
.carousel-slide--4 { background-color: var(--color-tile-1); }
.carousel-slide--5 { background-color: var(--color-tile-2); }

.carousel-slide[style*="background-image"] .placeholder { display: none; }

/* Smaller slides on narrow screens so they still feel proportionate */
@media (max-width: 720px) {
  .project-media {
    --slide-w: 260px;
    --slide-h: 200px;
    --gap: 12px;
  }
}

.placeholder {
  opacity: 0.55;
}

.project-meta {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-top: 8px;
}

.project-tag {
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-muted);
  margin: 0;
}

.project-tag strong {
  color: var(--color-ink);
  font-weight: 600;
}

.project-type {
  font-size: 13px;
  color: var(--color-muted);
  margin: 0;
}

.project-info {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin-top: 8px;
}

.project-desc {
  font-family: var(--font-body);
  font-size: clamp(14px, 1.05vw, 16px);
  line-height: 1.55;
  color: var(--color-ink-soft);
  margin: 0;
  max-width: 56ch;
}

.project-link {
  font-size: 14px;
  font-weight: 500;
  align-self: start;
  border-bottom: 1px solid currentColor;
  padding-bottom: 2px;
  transition: opacity 0.2s;
}

.project-link:hover { opacity: 0.6; }

/* Larger screens: side-by-side meta + description */
@media (min-width: 880px) {
  .project {
    grid-template-columns: 1fr 1fr;
    column-gap: 48px;
    row-gap: 28px;
  }
  .project-media { grid-column: 1 / -1; min-height: 300px; }
  .project-info { margin-top: 0; }
}

/* =========================================================
   ABOUT / STATS
   ========================================================= */
.about {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: var(--pad-y) var(--pad-x);
  border-top: 1px solid var(--color-rule);
}

.about-title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.8rem, 4.5vw, 3.6rem);
  line-height: 1.1;
  letter-spacing: -0.015em;
  margin: 0 0 clamp(40px, 5vw, 72px);
  text-wrap: balance;
}

.stats {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  border-top: 1px solid var(--color-rule);
  padding-top: 32px;
}

@media (min-width: 720px) {
  .stats { grid-template-columns: repeat(3, 1fr); gap: 48px; }
}

.stat-number {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(2.4rem, 5vw, 4rem);
  line-height: 1;
  letter-spacing: -0.02em;
  margin: 0 0 12px;
}

.stat-label {
  font-size: 14px;
  color: var(--color-muted);
  margin: 0;
  max-width: 26ch;
}

.about-link {
  display: inline-block;
  margin-top: 40px;
  font-size: 14px;
  font-weight: 500;
  border-bottom: 1px solid currentColor;
  padding-bottom: 2px;
}

/* =========================================================
   FOOTER / CONTACT
   ========================================================= */
.site-footer {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: var(--pad-y) var(--pad-x) 24px;
  border-top: 1px solid var(--color-rule);
}

.contact-title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.4rem, 2.4vw, 2rem);
  line-height: 1.2;
  letter-spacing: -0.01em;
  margin: 0 0 clamp(40px, 5vw, 64px);
  text-wrap: balance;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  padding-top: 32px;
  border-top: 1px solid var(--color-rule);
  margin-bottom: clamp(48px, 8vw, 96px);
}

@media (min-width: 720px) {
  .footer-grid { grid-template-columns: repeat(3, 1fr); gap: 64px; }
}

.col-label {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-muted);
  margin: 0 0 8px;
}

.footer-col p {
  margin: 0;
  font-size: 14px;
  line-height: 1.6;
}

.social-list {
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 14px;
  line-height: 1.8;
}

.social-list a {
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s;
}

.social-list a:hover { border-color: var(--color-ink); }

.wordmark {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(3rem, 18vw, 16rem);
  line-height: 0.85;
  letter-spacing: -0.04em;
  margin: 0;
  text-align: left;
  white-space: nowrap;
  overflow: hidden;
}

/* Logo as the footer wordmark — small and aligned to the left. */
.footer-logo {
  display: block;
  width: clamp(120px, 18vw, 200px);
  height: auto;
  margin: clamp(24px, 4vw, 48px) 0 0;
}

/* =========================================================
   FADE-IN ON SCROLL (added by JS)
   ========================================================= */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* =========================================================
   LANGUAGE DROPDOWN
   ========================================================= */

.lang-dropdown {
  position: relative;
  display: inline-block;
}

/* botão */
.lang-current {
  display: inline-flex;
  align-items: center;
  gap: 6px;

  background: transparent;
  border: none;
  outline: none;
  box-shadow: none;

  padding: 0;
  cursor: pointer;
  line-height: 1;

  -webkit-tap-highlight-color: transparent;
}

/* remove outline feio */
.lang-current:focus,
.lang-current:focus-visible {
  outline: none;
  box-shadow: none;
}

/* bandeira */
.lang-flag-current {
  font-size: 18px;       /* tamanho real */
  line-height: 1;
  display: inline-block;
  flex-shrink: 0;        /* não deixa encolher */
}

/* seta */
.lang-arrow {
  width: 0;
  height: 0;
  display: inline-block;

  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 6px solid var(--color-ink);

  transform: translateY(-1px);
}

/* dropdown */
.lang-options {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;

  background: var(--color-bg);
  color: var(--color-ink);

  border: none;
  border-radius: 6px;

  box-shadow:
    0 10px 28px rgba(0,0,0,0.12),
    0 2px 6px rgba(0,0,0,0.06);

  overflow: hidden;
  z-index: 20;
  min-width: 110px;

  /* animation */
  display: flex;
  flex-direction: column;
  opacity: 0;
  transform: translateY(-6px);
  pointer-events: none;
  transition: opacity 0.18s ease, transform 0.18s ease;
}

/* aberto */
.lang-options.is-open {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

/* opções */
.lang-options button {
  background: transparent;
  border: none;
  padding: 10px 14px;
  cursor: pointer;

  font-family: var(--font-body);
  font-size: 13px;
  text-align: left;
  color: var(--color-ink);

  display: flex;
  align-items: center;
  gap: 8px;
}

/* hover */
.lang-options button:hover {
  background: rgba(0, 0, 0, 0.04);
}

/* small chevron rotation when open */
.lang-current[aria-expanded="true"] .lang-arrow {
  transform: translateY(-1px) rotate(180deg);
}
.lang-arrow {
  transition: transform 0.2s ease;
}

/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 720px) {
  .site-nav {
    gap: 16px;
    font-size: 12px;
  }

  /* mantém bandeira grande */
  .lang-flag-current {
    font-size: 18px;
  }
}

/* =========================================================
   LUNA
   ========================================================= */

.luna {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: var(--pad-y) var(--pad-x);
  border-top: 1px solid var(--color-rule);
}

.luna-title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(3rem, 9vw, 7rem);
  line-height: 1;
  letter-spacing: -0.025em;
  margin: 16px 0 16px;
  text-wrap: balance;
}

.luna-subtitle {
  font-family: var(--font-body);
  font-size: clamp(1rem, 1.4vw, 1.25rem);
  line-height: 1.5;
  color: var(--color-ink-soft);
  max-width: 56ch;
  margin: 0 0 48px;
}

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

@media (min-width: 720px) {
  .luna-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
  }
}

.luna-step {
  border-top: 1px solid var(--color-rule);
  padding-top: 16px;
}

.luna-phase {
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-muted);
  margin: 0 0 8px;
}

.luna-step h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  margin: 0 0 8px;
}

.luna-step p {
  font-size: 14px;
  color: var(--color-ink-soft);
  line-height: 1.5;
  margin: 0;
}

/* =========================================================
   PRICING SECTION
   ========================================================= */
.pricing {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: var(--pad-y) var(--pad-x);
  border-top: 1px solid var(--color-rule);
}

.pricing-title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.8rem, 4vw, 3rem);
  line-height: 1.1;
  letter-spacing: -0.015em;
  margin: 16px 0 clamp(40px, 5vw, 64px);
  text-wrap: balance;
}

/* ----- Pricing categories ----- */
.pricing-category {
  margin-bottom: clamp(40px, 5vw, 64px);
}

.pricing-category-name {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.3rem, 2.2vw, 1.8rem);
  letter-spacing: -0.01em;
  line-height: 1;
  margin: 0 0 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--color-rule);
}

.pricing-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

@media (min-width: 720px) {
  .pricing-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
  }
  /* 2-card variant (Webdesign, Ilustração) */
  .pricing-grid--2 {
    grid-template-columns: repeat(2, 1fr);
    max-width: 720px;
  }
}

.price-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 28px;
  border: 1px solid var(--color-rule);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.4);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.price-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.06);
  border-color: var(--color-ink);
}

.price-card--featured {
  background: var(--color-ink);
  color: var(--color-bg);
  border-color: var(--color-ink);
}

.price-card--featured:hover {
  border-color: var(--color-ink);
}

.price-badge {
  position: absolute;
  top: -10px;
  left: 24px;
  background: var(--color-bg);
  color: var(--color-ink);
  border: 1px solid var(--color-ink);
  border-radius: 999px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 5px 10px;
}

.price-card-head {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.price-card-label {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin: 0;
  opacity: 0.6;
}

.price-card-name {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.4rem, 2vw, 1.75rem);
  line-height: 1.1;
  letter-spacing: -0.01em;
  margin: 0;
}

.price-card-amount {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin: 0;
  padding: 16px 0;
  border-top: 1px solid currentColor;
  border-bottom: 1px solid currentColor;
  border-color: rgba(0, 0, 0, 0.12);
}

.price-card--featured .price-card-amount {
  border-color: rgba(255, 255, 255, 0.18);
}

.price-prefix {
  font-size: 12px;
  letter-spacing: 0.04em;
  opacity: 0.65;
}

.price-value {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.6rem, 2.4vw, 2rem);
  letter-spacing: -0.015em;
  line-height: 1;
}

.price-card-desc {
  font-size: 13.5px;
  line-height: 1.55;
  margin: 0;
  opacity: 0.85;
}

/* Standalone Bússola service */
.pricing-extra {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  align-items: center;
  padding: 28px;
  margin-top: 32px;
  border: 1px dashed var(--color-rule);
  border-radius: 8px;
}

@media (min-width: 720px) {
  .pricing-extra {
    grid-template-columns: 1fr auto;
    gap: 32px;
  }
}

.pricing-extra-info { max-width: 56ch; }

.pricing-extra-name {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.3rem, 2vw, 1.6rem);
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin: 4px 0 8px;
}

.pricing-extra-desc {
  font-size: 14px;
  line-height: 1.55;
  margin: 0;
  color: var(--color-ink-soft);
}

.pricing-extra-price {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  letter-spacing: -0.015em;
  margin: 0;
  white-space: nowrap;
}

/* CTA */
.pricing-cta {
  margin-top: clamp(40px, 5vw, 64px);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
}

.btn-whatsapp {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 24px;
  background: var(--color-ink);
  color: var(--color-bg);
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.02em;
  border: 1px solid var(--color-ink);
  transition: background 0.2s, color 0.2s, transform 0.2s;
}

.btn-whatsapp::after {
  content: "→";
  transition: transform 0.25s ease;
}

.btn-whatsapp:hover {
  background: transparent;
  color: var(--color-ink);
}

.btn-whatsapp:hover::after {
  transform: translateX(4px);
}

.pricing-cta-hint {
  font-size: 13px;
  color: var(--color-muted);
  margin: 0;
}

/* =========================================================
   BACK TO TOP BUTTON
   ========================================================= */
.back-to-top {
  position: fixed;
  right: 24px;
  bottom: 24px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #e3e0d8;          /* light grey circle */
  color: #111;                  /* black arrow */
  border: 1px solid rgba(0, 0, 0, 0.08);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: translateY(8px);
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease, background 0.2s ease;
  z-index: 50;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
}

.back-to-top.is-visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.back-to-top:hover {
  background: #d9d4c7;
}

.back-to-top:active {
  transform: translateY(2px) scale(0.96);
}

@media (max-width: 720px) {
  .back-to-top {
    right: 16px;
    bottom: 16px;
    width: 44px;
    height: 44px;
  }
   }

   @media (max-width: 720px) {
  .site-nav {
    gap: 16px; /* diminui espaço entre itens */
    font-size: 12px; /* tipografia menor */
  }

  .lang-flag-current {
    font-size: 16px; /* tamanho normal da bandeira */
      }
      
  .site-nav a {
    padding-bottom: 1px; /* ajusta proporção do underline */
  }
}
