/* ==========================================================================
   Helen Luizon — Design System
   Cores: clay #a36032 (títulos/H) | roxo #7d33a3 (botões/highlights)
          turquesa #339da3 (detalhes) | fundo claro #efefef
   Tipografia: DynaPuff (títulos) + Montserrat (texto)
   ========================================================================== */

:root {
  --clay: #a36032;
  --clay-dark: #7f4b26;
  --purple: #7d33a3;
  --purple-dark: #602679;
  --turquoise: #339da3;
  --turquoise-dark: #257478;
  --bg-light: #efefef;
  --bg-white: #ffffff;
  --ink: #2a2320;
  --ink-soft: #5c534e;
  --border: #dcdad7;

  --font-heading: "DynaPuff", cursive;
  --font-body: "Montserrat", Arial, sans-serif;

  --header-h: 84px;
  --header-h-mobile: 64px;
  --bottom-nav-h: 64px;

  --radius-sm: 10px;
  --radius-md: 18px;
  --radius-lg: 28px;

  --shadow-sm: 0 2px 10px rgba(42, 35, 32, 0.08);
  --shadow-md: 0 10px 30px rgba(42, 35, 32, 0.12);
  --shadow-lg: 0 20px 50px rgba(42, 35, 32, 0.18);

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg-white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
}

button {
  font-family: inherit;
  border: none;
  background: none;
  cursor: pointer;
}

input,
textarea {
  font-family: inherit;
  font-size: 1rem;
}

h1,
h2,
h3 {
  font-family: var(--font-heading);
  color: var(--clay);
  line-height: 1.2;
}

h1 {
  font-weight: 600; /* DynaPuff SemiBold */
  font-size: clamp(2.1rem, 4.5vw, 3.6rem);
}

h2 {
  font-weight: 500; /* DynaPuff Medium */
  font-size: clamp(1.6rem, 3.2vw, 2.4rem);
}

h3 {
  font-weight: 400; /* DynaPuff Regular */
  font-size: clamp(1.15rem, 2vw, 1.5rem);
}

.container {
  width: 100%;
  max-width: 1240px;
  margin-inline: auto;
  padding-inline: 24px;
}

section {
  padding: 72px 0;
}

.section-bg {
  background: var(--bg-light);
}

.eyebrow {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--turquoise);
  margin-bottom: 10px;
}

.section-head {
  max-width: 640px;
  margin-bottom: 40px;
}

.section-head p {
  color: var(--ink-soft);
  margin-top: 12px;
}

.section-head.center {
  margin-inline: auto;
  text-align: center;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 15px 30px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
  transition: transform 0.18s var(--ease), box-shadow 0.18s var(--ease), background 0.18s var(--ease);
  white-space: nowrap;
}

.btn-primary {
  background: var(--purple);
  color: #fff;
  box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
  background: var(--purple-dark);
  box-shadow: var(--shadow-md);
}

.btn-outline {
  border: 2px solid var(--bg-white);
  color: var(--bg-white);
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.12);
}

.btn-ghost {
  color: var(--clay);
  border: 2px solid var(--clay);
}

.btn-ghost:hover {
  background: var(--clay);
  color: #fff;
}

.tap {
  transition: transform 0.12s var(--ease);
}

.tap:active {
  transform: scale(0.94);
}

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

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  height: var(--header-h);
  z-index: 500;
  display: flex;
  align-items: center;
  background: rgba(239, 239, 239, 0.9);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: background 0.3s var(--ease), border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.site-header.is-scrolled {
  background: rgba(239, 239, 239, 0.97);
  border-bottom-color: var(--border);
  box-shadow: var(--shadow-sm);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.logo {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1.5rem;
  color: var(--clay);
  display: flex;
  align-items: center;
  gap: 8px;
  z-index: 20;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.lang-toggle {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 6px;
  border: 1.5px solid var(--border);
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.78rem;
  color: var(--ink-soft);
  background: var(--bg-white);
}

.lang-toggle button {
  padding: 4px 10px;
  border-radius: 999px;
  color: var(--ink-soft);
  transition: background 0.2s var(--ease), color 0.2s var(--ease);
}

.lang-toggle button.is-active {
  background: var(--turquoise);
  color: #fff;
}

.menu-toggle {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--clay);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 20;
  flex-shrink: 0;
}

.menu-toggle .plus {
  position: relative;
  width: 18px;
  height: 18px;
}

.menu-toggle .plus::before,
.menu-toggle .plus::after {
  content: "";
  position: absolute;
  background: #fff;
  border-radius: 2px;
  transition: transform 0.35s var(--ease);
}

.menu-toggle .plus::before {
  width: 100%;
  height: 2.5px;
  top: 50%;
  left: 0;
  transform: translateY(-50%);
}

.menu-toggle .plus::after {
  width: 2.5px;
  height: 100%;
  left: 50%;
  top: 0;
  transform: translateX(-50%);
}

.menu-open .menu-toggle .plus::before {
  transform: translateY(-50%) rotate(45deg);
}

.menu-open .menu-toggle .plus::after {
  transform: translateX(-50%) rotate(45deg);
}

/* Desktop inline nav (visible ≥ 1000px, hidden while overlay handles it below) */
.primary-nav {
  display: none;
}

/* Fullscreen overlay menu */
.nav-overlay {
  position: fixed;
  inset: 0;
  background: var(--clay);
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s var(--ease), visibility 0.4s var(--ease);
}

.menu-open .nav-overlay {
  opacity: 1;
  visibility: visible;
}

.nav-overlay-inner {
  text-align: center;
}

.nav-overlay ul {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.nav-overlay a {
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: clamp(2rem, 6vw, 3.2rem);
  color: #fff;
  opacity: 0.85;
  transition: opacity 0.2s var(--ease), color 0.2s var(--ease);
  display: inline-block;
  padding: 6px 0;
}

.nav-overlay li.is-current a {
  color: var(--turquoise);
  opacity: 1;
}

.nav-overlay a:hover {
  opacity: 1;
  color: var(--turquoise);
}

.nav-overlay-sub {
  margin-top: 36px;
  display: flex;
  gap: 18px;
  justify-content: center;
  flex-wrap: wrap;
}

.nav-overlay-sub a {
  color: #fff;
  opacity: 0.7;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* ==========================================================================
   MOBILE BOTTOM NAV (app-like)
   ========================================================================== */

.bottom-nav {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 400;
  display: none;
  background: var(--bg-white);
  border-top: 1px solid var(--border);
  padding-bottom: env(safe-area-inset-bottom);
  box-shadow: 0 -6px 20px rgba(42, 35, 32, 0.08);
}

.bottom-nav ul {
  display: flex;
  align-items: stretch;
  justify-content: space-between;
}

.bottom-nav li {
  flex: 1;
}

.bottom-nav a {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  height: var(--bottom-nav-h);
  color: var(--ink-soft);
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  transition: color 0.2s var(--ease), transform 0.12s var(--ease);
}

.bottom-nav a:active {
  transform: scale(0.9);
}

.bottom-nav svg {
  width: 22px;
  height: 22px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.8;
}

.bottom-nav a.is-active {
  color: var(--purple);
}

.bottom-nav a.is-active svg {
  stroke: var(--purple);
}

/* ==========================================================================
   HERO
   ========================================================================== */

.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  color: #fff;
  overflow: hidden;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: -2;
}

.hero-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
}

.hero-media::before {
  content: "";
  position: absolute;
  inset: 0;
  background: #33190c;
  mix-blend-mode: multiply;
  opacity: 0.4;
  z-index: 1;
}

.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(20, 10, 5, 0.18) 0%, rgba(20, 10, 5, 0.12) 45%, rgba(15, 8, 4, 0.32) 100%);
  z-index: 2;
}

.hero-inner {
  padding: calc(var(--header-h) + 24px) 0 60px;
  width: 100%;
  text-align: center;
}

.hero-keywords {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 14px;
  margin-bottom: 26px;
}

.hero-keywords span {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 7px 14px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(4px);
}

.hero h1 {
  color: #fff;
  max-width: 17ch;
  margin-inline: auto;
  margin-bottom: 26px;
}

.hero h1 em {
  font-style: normal;
  color: var(--turquoise);
}

.hero-sub {
  max-width: 46ch;
  margin-inline: auto;
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 34px;
}

.hero-cta {
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}

.scroll-cue {
  position: absolute;
  bottom: 26px;
  right: 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  writing-mode: vertical-rl;
}

.scroll-cue::after {
  content: "";
  width: 1px;
  height: 40px;
  background: rgba(255, 255, 255, 0.5);
  animation: scrollcue 1.8s ease-in-out infinite;
}

@keyframes scrollcue {
  0%, 100% { transform: scaleY(0.4); opacity: 0.4; }
  50% { transform: scaleY(1); opacity: 1; }
}

/* ==========================================================================
   LOGOS CAROUSEL (infinite, pure CSS)
   ========================================================================== */

.logos-strip {
  padding: 46px 0;
  background: var(--bg-light);
  border-bottom: 1px solid var(--border);
}

.logos-strip .eyebrow-wrap {
  text-align: center;
  margin-bottom: 22px;
}

.logos-track-wrap {
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}

.logos-track {
  display: flex;
  align-items: center;
  width: max-content;
  animation: scrollLogos 28s linear infinite;
}

.logos-track img {
  height: 46px;
  width: auto;
  margin: 0 34px;
  opacity: 0.75;
  filter: grayscale(1);
  transition: opacity 0.2s var(--ease), filter 0.2s var(--ease);
}

.logos-track img:hover {
  opacity: 1;
  filter: grayscale(0);
}

@keyframes scrollLogos {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

@media (prefers-reduced-motion: reduce) {
  .logos-track { animation: none; }
}

/* ==========================================================================
   STATS
   ========================================================================== */

.stats {
  background: var(--clay);
  color: #fff;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
  text-align: center;
}

.stat-number {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: clamp(2.2rem, 5vw, 3.2rem);
  color: #fff;
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 2px;
}

.stat-item p {
  margin-top: 8px;
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.85);
}

/* ==========================================================================
   PROJECTS GRID
   ========================================================================== */

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 26px;
}

.project-card {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  aspect-ratio: 4 / 3;
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

.project-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.project-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s var(--ease);
}

.project-card:hover img {
  transform: scale(1.06);
}

.project-card .overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(20, 10, 5, 0.82) 0%, rgba(20, 10, 5, 0) 55%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 22px;
  color: #fff;
}

.project-card .tag {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--turquoise);
  margin-bottom: 6px;
}

.project-card h3 {
  color: #fff;
  font-size: 1.15rem;
}

.section-foot {
  margin-top: 40px;
  text-align: center;
}

/* ==========================================================================
   TESTIMONIALS
   ========================================================================== */

.testimonials {
  background: var(--bg-light);
}

.testimonial-slider {
  position: relative;
  max-width: 780px;
  margin-inline: auto;
  min-height: 260px;
}

.testimonial-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity 0.5s var(--ease), transform 0.5s var(--ease), visibility 0.5s;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.testimonial-slide.is-active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  position: relative;
}

.testimonial-slide img {
  width: 76px;
  height: 76px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 20px;
  border: 3px solid var(--bg-white);
  box-shadow: var(--shadow-sm);
}

.testimonial-slide blockquote {
  font-size: 1.15rem;
  color: var(--ink);
  max-width: 60ch;
  margin-bottom: 18px;
}

.testimonial-slide .name {
  font-weight: 700;
  color: var(--purple);
}

.testimonial-slide .role {
  font-size: 0.82rem;
  color: var(--ink-soft);
}

.testimonial-dots {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 28px;
}

.testimonial-dots button {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--border);
  transition: background 0.2s var(--ease), transform 0.2s var(--ease);
}

.testimonial-dots button.is-active {
  background: var(--purple);
  transform: scale(1.3);
}

/* ==========================================================================
   BLOG PREVIEW / CARDS (shared with blog.html)
   ========================================================================== */

.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

.blog-card {
  background: var(--bg-white);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
  display: flex;
  flex-direction: column;
}

.blog-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
}

.blog-card .thumb {
  aspect-ratio: 16 / 9;
  overflow: hidden;
}

.blog-card .thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.blog-card .body {
  padding: 22px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.blog-card .meta {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--turquoise);
  margin-bottom: 10px;
}

.blog-card h3 {
  margin-bottom: 10px;
}

.blog-card p {
  color: var(--ink-soft);
  font-size: 0.92rem;
  margin-bottom: 16px;
}

.blog-card .read-more {
  margin-top: auto;
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--purple);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* ==========================================================================
   CTA BAND
   ========================================================================== */

.cta-band {
  background: var(--purple);
  color: #fff;
  text-align: center;
}

.cta-band h2 {
  color: #fff;
  margin-bottom: 14px;
}

.cta-band p {
  color: rgba(255, 255, 255, 0.85);
  max-width: 50ch;
  margin-inline: auto;
  margin-bottom: 30px;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */

.site-footer {
  background: var(--ink);
  color: rgba(255, 255, 255, 0.7);
  padding: 64px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 44px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-brand .logo {
  color: var(--clay);
}

.footer-brand p {
  margin-top: 14px;
  font-size: 0.9rem;
  max-width: 32ch;
}

.footer-social {
  display: flex;
  gap: 12px;
  margin-top: 20px;
}

.footer-social a {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s var(--ease), border-color 0.2s var(--ease);
}

.footer-social svg {
  width: 16px;
  height: 16px;
  stroke: #fff;
  fill: none;
}

.footer-social a:hover {
  background: var(--turquoise);
  border-color: var(--turquoise);
}

.footer-col h3 {
  color: #fff;
  font-size: 1rem;
  margin-bottom: 18px;
}

.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: 11px;
}

.footer-col a {
  font-size: 0.9rem;
  transition: color 0.2s var(--ease);
}

.footer-col a:hover {
  color: var(--turquoise);
}

.footer-bottom {
  padding: 22px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 0.78rem;
}

/* ==========================================================================
   ANIMATIONS: 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);
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */

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

@media (min-width: 1000px) {
  .menu-toggle {
    /* keep as the single entry point per spec, even on desktop */
  }

  .footer-grid {
    grid-template-columns: 1.6fr 1fr 1fr;
  }
}

@media (max-width: 999px) {
  :root {
    --header-h: var(--header-h-mobile);
  }

  .site-header .container {
    justify-content: center;
    position: relative;
  }

  .header-actions {
    display: none;
  }

  .menu-toggle {
    position: absolute;
    left: 24px;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
  }

  body {
    padding-bottom: calc(var(--bottom-nav-h) + env(safe-area-inset-bottom));
  }

  .bottom-nav {
    display: block;
  }

  .nav-overlay-sub .lang-toggle-mobile {
    display: flex;
  }
}

@media (min-width: 1000px) {
  .lang-toggle {
    display: flex;
  }
}

.lang-toggle-mobile {
  display: none;
  gap: 6px;
  padding: 8px 8px;
  border: 1.5px solid rgba(255, 255, 255, 0.35);
  border-radius: 999px;
}

.lang-toggle-mobile button {
  padding: 5px 12px;
  border-radius: 999px;
  color: #fff;
  font-weight: 700;
  font-size: 0.78rem;
  opacity: 0.7;
}

.lang-toggle-mobile button.is-active {
  background: var(--turquoise);
  opacity: 1;
}

@media (max-width: 640px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 480px) {
  .hero-sub {
    font-size: 0.95rem;
  }
}

/* ==========================================================================
   PAGE INTRO (blog / sobre / contato / blog-post header band)
   ========================================================================== */

.page-intro {
  padding: calc(var(--header-h) + 56px) 0 56px;
  background: var(--bg-light);
  text-align: center;
}

.page-intro .eyebrow {
  justify-content: center;
}

.page-intro h1 {
  margin-bottom: 14px;
}

.post-meta {
  display: flex;
  justify-content: center;
  gap: 10px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--turquoise);
  margin-bottom: 14px;
}

.page-intro p {
  max-width: 56ch;
  margin-inline: auto;
  color: var(--ink-soft);
}

/* ==========================================================================
   BLOG LISTING
   ========================================================================== */

.blog-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 44px;
  align-items: start;
}

.blog-sidebar {
  position: sticky;
  top: calc(var(--header-h) + 24px);
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.sidebar-box {
  background: var(--bg-light);
  border-radius: var(--radius-md);
  padding: 22px;
}

.sidebar-box h3 {
  margin-bottom: 16px;
  font-size: 1.05rem;
}

.search-box {
  position: relative;
}

.search-box input {
  width: 100%;
  padding: 12px 16px 12px 40px;
  border-radius: 999px;
  border: 1.5px solid var(--border);
  background: var(--bg-white);
  font-size: 0.9rem;
  color: var(--ink);
  transition: border-color 0.2s var(--ease);
}

.search-box input:focus {
  outline: none;
  border-color: var(--purple);
}

.search-box svg {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  stroke: var(--ink-soft);
  fill: none;
  pointer-events: none;
}

.category-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.category-list button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 10px 14px;
  border-radius: 10px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--ink-soft);
  background: transparent;
  transition: background 0.2s var(--ease), color 0.2s var(--ease);
}

.category-list button:hover {
  background: var(--bg-white);
}

.category-list button.is-active {
  background: var(--purple);
  color: #fff;
}

.category-list button .count {
  font-size: 0.75rem;
  opacity: 0.75;
}

.share-card {
  background: var(--clay);
  color: #fff;
  border-radius: var(--radius-md);
  padding: 24px;
}

.share-card h3 {
  color: #fff;
  margin-bottom: 10px;
  font-size: 1.05rem;
}

.share-card p {
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 16px;
}

.share-card button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #fff;
  color: var(--clay);
  padding: 11px 20px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.85rem;
  transition: transform 0.18s var(--ease);
}

.share-card button svg {
  width: 15px;
  height: 15px;
  stroke: var(--clay);
  fill: none;
}

.blog-empty {
  display: none;
  text-align: center;
  padding: 60px 20px;
  color: var(--ink-soft);
}

.blog-empty.is-visible {
  display: block;
}

@media (max-width: 900px) {
  .blog-layout {
    grid-template-columns: 1fr;
  }

  .blog-sidebar {
    position: static;
    flex-direction: column;
  }
}

/* ==========================================================================
   ARTICLE (blog-post.html)
   ========================================================================== */

.article-hero {
  position: relative;
  margin-top: var(--header-h);
  aspect-ratio: 16 / 7;
  max-height: 520px;
  overflow: hidden;
}

.article-hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.article-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(20, 10, 5, 0.75) 0%, rgba(20, 10, 5, 0.15) 55%, transparent 100%);
}

/* Plain hero variant: cover image only, no overlay/caption — used when the
   title wouldn't stay legible over the photo. Title renders below instead.
   Height scales with viewport width (not aspect-ratio) so it stays full-width
   and grows/shrinks proportionally instead of getting clipped on wide screens. */
.article-hero-plain {
  width: 100%;
  margin-top: var(--header-h);
  height: clamp(240px, 42vw, 620px);
  overflow: hidden;
}

.article-hero-plain img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.article-hero-caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 40px 0;
  color: #fff;
}

.article-hero-caption .meta {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--turquoise);
  margin-bottom: 12px;
}

.article-hero-caption h1 {
  color: #fff;
  max-width: 26ch;
}

.article-wrap {
  max-width: 760px;
  margin-inline: auto;
  padding: 56px 24px 0;
}

.article-body p {
  margin-bottom: 20px;
  color: var(--ink);
}

.article-body h2 {
  margin: 44px 0 16px;
}

.article-body h3 {
  margin: 32px 0 14px;
}

.article-body ul {
  margin: 0 0 20px;
  padding-left: 4px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.article-body ul li {
  position: relative;
  padding-left: 26px;
  color: var(--ink);
}

.article-body ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 10px;
  height: 10px;
  border-radius: 3px;
  background: var(--turquoise);
}

/* For lists that already carry their own leading symbol (✔, emoji, etc.)
   — skip the default square bullet so it doesn't double up. */
.article-body ul.list-plain li {
  padding-left: 0;
}

.article-body ul.list-plain li::before {
  content: none;
}

.article-body .lead-in {
  font-weight: 700;
  margin-bottom: 10px;
}

.article-body h2:first-child,
.article-body h2.section-heading {
  margin-top: 44px;
}

.article-body blockquote {
  border-left: 4px solid var(--purple);
  padding: 4px 0 4px 22px;
  margin: 28px 0;
  font-family: var(--font-heading);
  font-weight: 400;
  font-size: 1.2rem;
  color: var(--clay);
}

.article-photo-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin: 36px 0;
}

.article-photo-grid img {
  width: 100%;
  height: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-sm);
}

@media (max-width: 640px) {
  .article-photo-grid {
    grid-template-columns: 1fr;
  }
}

.article-placeholder-note {
  background: #fff8ec;
  border: 1.5px dashed var(--clay);
  border-radius: var(--radius-sm);
  padding: 16px 18px;
  font-size: 0.85rem;
  color: var(--clay-dark);
  margin-bottom: 32px;
}

.deliverables-box {
  margin-top: 20px;
  background: var(--bg-light);
  border-radius: var(--radius-md);
  padding: 32px;
}

.deliverables-box h2 {
  margin-top: 0;
  margin-bottom: 8px;
}

.deliverables-box > p {
  color: var(--ink-soft);
  margin-bottom: 22px;
}

.deliverable-item {
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--bg-white);
  border-radius: var(--radius-sm);
  padding: 16px 18px;
  box-shadow: var(--shadow-sm);
}

.deliverable-item + .deliverable-item {
  margin-top: 12px;
}

.deliverable-item .icon {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--turquoise);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.deliverable-item .icon svg {
  width: 20px;
  height: 20px;
  stroke: #fff;
  fill: none;
}

.deliverable-item .info {
  flex: 1;
}

.deliverable-item .info strong {
  display: block;
  font-size: 0.95rem;
  color: var(--ink);
}

.deliverable-item .info span {
  font-size: 0.8rem;
  color: var(--ink-soft);
}

.deliverable-item .btn {
  padding: 9px 18px;
  font-size: 0.8rem;
  flex-shrink: 0;
}

.article-author {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
}

.article-author img {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  object-fit: cover;
}

.article-author strong {
  display: block;
  color: var(--ink);
}

.article-author span {
  font-size: 0.85rem;
  color: var(--ink-soft);
}

.article-back {
  margin-top: 40px;
}

/* ==========================================================================
   FORMS (feedback form / contact form)
   ========================================================================== */

.form-card {
  background: var(--bg-light);
  border-radius: var(--radius-md);
  padding: 36px;
}

.form-card h2 {
  margin-bottom: 8px;
}

.form-card > p {
  color: var(--ink-soft);
  margin-bottom: 26px;
}

.form-field {
  margin-bottom: 20px;
}

.form-field label {
  display: block;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 8px;
}

.form-field input,
.form-field textarea {
  width: 100%;
  padding: 13px 16px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--border);
  background: var(--bg-white);
  color: var(--ink);
  font-size: 0.95rem;
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

.form-field textarea {
  resize: vertical;
  min-height: 120px;
}

.form-field input:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--purple);
  box-shadow: 0 0 0 4px rgba(125, 51, 163, 0.12);
}

.form-field.has-error input,
.form-field.has-error textarea {
  border-color: #c0392b;
}

.form-error {
  display: none;
  font-size: 0.78rem;
  color: #c0392b;
  margin-top: 6px;
}

.form-field.has-error .form-error {
  display: block;
}

.form-success {
  display: none;
  align-items: center;
  gap: 14px;
  background: var(--turquoise);
  color: #fff;
  border-radius: var(--radius-sm);
  padding: 18px 20px;
  margin-top: 18px;
}

.form-success.is-visible {
  display: flex;
}

.form-success svg {
  width: 24px;
  height: 24px;
  stroke: #fff;
  fill: none;
  flex-shrink: 0;
}

.rating-row {
  display: flex;
  gap: 10px;
  margin-bottom: 22px;
  flex-wrap: wrap;
}

.rating-row button {
  padding: 10px 18px;
  border-radius: 999px;
  border: 1.5px solid var(--border);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--ink-soft);
  background: var(--bg-white);
  transition: background 0.2s var(--ease), color 0.2s var(--ease), border-color 0.2s var(--ease);
}

.rating-row button.is-active {
  background: var(--turquoise);
  border-color: var(--turquoise);
  color: #fff;
}

/* ==========================================================================
   SOBRE (about page)
   ========================================================================== */

.about-story {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 48px;
  align-items: center;
}

.about-story .photo {
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4 / 5;
  box-shadow: var(--shadow-md);
}

.about-story .photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about-story .text p {
  color: var(--ink);
  margin-bottom: 16px;
}

.about-story .text p:first-of-type {
  font-family: var(--font-heading);
  font-weight: 400;
  font-size: 1.25rem;
  color: var(--clay);
}

@media (max-width: 800px) {
  .about-story {
    grid-template-columns: 1fr;
  }

  .about-story .photo {
    max-width: 360px;
    margin-inline: auto;
  }
}

.scroller-section {
  padding-top: 0;
}

.scroller-wrap {
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x proximity;
  padding-bottom: 14px;
  margin: 0 -24px;
  padding-inline: 24px;
  -webkit-overflow-scrolling: touch;
}

.scroller-track {
  display: flex;
  gap: 16px;
  width: max-content;
}

.tool-card {
  scroll-snap-align: start;
  width: 150px;
  flex-shrink: 0;
  background: var(--bg-light);
  border-radius: var(--radius-md);
  padding: 22px 18px;
  text-align: center;
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

.tool-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-sm);
}

.tool-card .badge {
  width: 52px;
  height: 52px;
  margin: 0 auto 14px;
  border-radius: 14px;
  background: var(--purple);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1.2rem;
}

.tool-card span {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--ink);
}

.cert-card {
  scroll-snap-align: start;
  flex-shrink: 0;
  width: fit-content;
  max-width: 320px;
}

.cert-thumb {
  display: block;
  height: 300px;
  width: fit-content;
  border-radius: var(--radius-sm);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1.5px solid var(--border);
  cursor: zoom-in;
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

.cert-thumb:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.cert-thumb img {
  height: 100%;
  width: auto;
  display: block;
}

.cert-caption {
  margin-top: 12px;
  max-width: 320px;
}

.cert-caption h3 {
  font-size: 0.95rem;
  margin-bottom: 6px;
}

.cert-caption .issuer {
  font-size: 0.8rem;
  color: var(--ink-soft);
  margin-bottom: 4px;
}

.cert-caption .year {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--purple);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* ==========================================================================
   CONTATO (contact page)
   ========================================================================== */

.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 48px;
  align-items: start;
}

.contact-info h2 {
  margin-bottom: 14px;
}

.contact-info > p {
  color: var(--ink-soft);
  margin-bottom: 28px;
}

.contact-info-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 22px;
}

.contact-info-item .icon {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--bg-light);
  color: var(--clay);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-info-item .icon svg {
  width: 19px;
  height: 19px;
  stroke: var(--clay);
  fill: none;
}

.contact-info-item strong {
  display: block;
  color: var(--ink);
  font-size: 0.95rem;
}

.contact-info-item span,
.contact-info-item a {
  font-size: 0.88rem;
  color: var(--ink-soft);
}

@media (max-width: 860px) {
  .contact-layout {
    grid-template-columns: 1fr;
  }
}
