/* =========================================================
   Psicólogo Gabriel Menezes — estilos
   Paleta e tipografia extraídas do site original (Wix):
   - Títulos: Lulo Clean → substituída por Syncopate (Google Fonts)
   - Texto: Poppins ExtraLight com destaques em peso maior
   ========================================================= */

:root {
  --green: #016f55;        /* verde dos títulos/links */
  --green-dark: #275c50;   /* botões e faixa de depoimentos */
  --green-deep: #1d4a40;   /* hover dos botões */
  --teal: #7db6aa;         /* faixa dos artigos */
  --sky: #cef0fd;          /* azul claro das seções alternadas */
  --paper: #f9fdff;        /* fundo claro */
  --ink: #011015;          /* texto */
  --ink-soft: #3c4a4f;

  --font-title: "Syncopate", "Arial Black", sans-serif;
  --font-body: "Poppins", system-ui, -apple-system, "Segoe UI", sans-serif;

  --radius: 14px;
  --shadow: 0 18px 40px -18px rgba(1, 16, 21, .35);
  --header-h: 72px;
  --container: 1120px;
}

/* ---------- Base ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }

body {
  margin: 0;
  font-family: var(--font-body);
  font-weight: 300;
  font-size: clamp(1rem, .95rem + .3vw, 1.15rem);
  line-height: 1.75;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { display: block; max-width: 100%; height: auto; }
a { color: var(--green); }
strong { font-weight: 500; }
p { margin: 0 0 1.1em; }

:focus-visible {
  outline: 3px solid var(--green);
  outline-offset: 3px;
  border-radius: 4px;
}

.container {
  width: min(100% - 2.5rem, var(--container));
  margin-inline: auto;
}

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.skip-link {
  position: absolute;
  left: 1rem; top: -100px;
  z-index: 100;
  padding: .6rem 1rem;
  background: var(--green-dark);
  color: #fff;
  border-radius: 8px;
}
.skip-link:focus { top: 1rem; }

.center { text-align: center; }

/* ---------- Botões ---------- */
.btn {
  display: inline-block;
  padding: .85em 1.6em;
  font: 400 .85rem/1 var(--font-body);
  letter-spacing: .06em;
  text-decoration: none;
  border: 1px solid transparent;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color .25s, color .25s, transform .25s, box-shadow .25s;
}
.btn-dark { background: var(--green-dark); color: var(--paper); }
.btn-dark:hover { background: var(--green-deep); transform: translateY(-2px); box-shadow: 0 10px 20px -10px rgba(29, 74, 64, .7); }
.btn-pill { border-radius: 999px; padding: 1.1em 2em; }
.btn-outline-light { color: #fff; border-color: rgba(255, 255, 255, .8); }
.btn-outline-light:hover { background: #fff; color: var(--green-dark); }

/* ---------- Cabeçalho ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--sky) 88%, transparent);
  backdrop-filter: saturate(160%) blur(10px);
  -webkit-backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid rgba(1, 111, 85, .08);
  transition: box-shadow .3s;
}
.site-header.is-scrolled { box-shadow: 0 6px 24px -12px rgba(1, 16, 21, .25); }

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: var(--header-h);
}

.brand {
  display: flex;
  align-items: center;
  gap: .55rem;
  color: var(--green);
  text-decoration: none;
  font-size: .95rem;
  font-weight: 400;
  line-height: 1.05;
}
.brand img { width: 28px; height: auto; }

.site-nav { display: flex; align-items: center; gap: 2rem; }
.site-nav ul { display: flex; gap: 1.6rem; list-style: none; margin: 0; padding: 0; }
.site-nav ul a {
  position: relative;
  color: var(--green);
  font-size: .95rem;
  font-weight: 300;
  text-decoration: none;
  padding-block: .4rem;
}
.site-nav ul a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 2px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .3s;
}
.site-nav ul a:hover::after,
.site-nav ul a[aria-current="page"]::after { transform: scaleX(1); }
.site-nav ul a[aria-current="page"] { color: var(--green-dark); font-weight: 500; }

.nav-toggle {
  display: none;
  width: 44px; height: 44px;
  padding: 10px;
  background: none;
  border: 0;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  height: 2px;
  margin: 5px 0;
  background: var(--green-dark);
  border-radius: 2px;
  transition: transform .3s, opacity .3s;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Seções ---------- */
.section { padding-block: clamp(3.5rem, 7vw, 6rem); }
.section-light { background: var(--paper); }
.section-sky { background: var(--sky); }
.section-forest { background: var(--green-dark); color: var(--paper); }
.section-teal { background: var(--teal); }

.title {
  margin: 0 0 1.2em;
  font-family: var(--font-title);
  font-weight: 700;
  font-size: clamp(1.5rem, 1rem + 2.4vw, 2.6rem);
  line-height: 1.25;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--green);
}
.title-right { text-align: right; }
.title-center { text-align: center; }
.title-light { color: #fff; }

.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: clamp(2rem, 5vw, 4rem);
}
.grid-media-left { grid-template-columns: .85fr 1.15fr; }

.text-block p { text-align: justify; color: var(--ink); }
.text-block p:first-of-type,
.text-block .title + p { text-indent: 2em; }
.text-block .btn { margin-top: 1rem; }

.media { margin: 0; }
.media img {
  width: 100%;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  object-fit: cover;
  aspect-ratio: 760 / 622;
}
.media-portrait img { aspect-ratio: 774 / 922; }

/* Lista de demandas como etiquetas */
.tags {
  display: flex;
  flex-wrap: wrap;
  gap: .6rem;
  list-style: none;
  margin: 0 0 1.5rem;
  padding: 0;
}
.tags li {
  padding: .35em 1em;
  font-weight: 500;
  font-size: .95rem;
  color: var(--green-dark);
  background: rgba(255, 255, 255, .7);
  border: 1px solid rgba(1, 111, 85, .2);
  border-radius: 999px;
}
.tags .tag-muted { font-weight: 300; background: transparent; border-style: dashed; }

/* ---------- Depoimentos (carrossel) ---------- */
.carousel {
  position: relative;
  max-width: 860px;
  margin-inline: auto;
  padding-inline: 3.5rem;
  text-align: center;
}
.quote-mark {
  display: block;
  font: 700 5rem/0.6 Georgia, serif;
  color: rgba(249, 253, 255, .9);
  margin-bottom: 1.2rem;
}
.carousel-viewport { overflow: hidden; }
.carousel-track {
  display: flex;
  transition: transform .6s cubic-bezier(.65, 0, .35, 1);
}
.slide {
  flex: 0 0 100%;
  margin: 0;
  padding-inline: .5rem;
}
.slide p {
  font-size: clamp(1rem, .95rem + .45vw, 1.25rem);
  font-weight: 300;
  line-height: 1.7;
  margin-bottom: 1.6rem;
}
.slide footer { font-size: .9rem; opacity: .85; }
.slide footer::before { content: "— "; }

.carousel-btn {
  position: absolute;
  top: 50%;
  width: 44px; height: 44px;
  display: grid; place-items: center;
  background: none;
  border: 0;
  border-radius: 50%;
  color: var(--paper);
  cursor: pointer;
  transform: translateY(-50%);
  transition: background-color .25s;
}
.carousel-btn:hover { background: rgba(255, 255, 255, .12); }
.carousel-btn svg { width: 14px; height: 28px; fill: currentColor; }
.carousel-btn.prev { left: 0; }
.carousel-btn.next { right: 0; }

.carousel-dots { display: flex; justify-content: center; gap: .6rem; margin-top: 2rem; }
.carousel-dots button {
  width: 10px; height: 10px;
  padding: 0;
  background: transparent;
  border: 1px solid var(--paper);
  border-radius: 50%;
  cursor: pointer;
  transition: background-color .25s, transform .25s;
}
.carousel-dots button[aria-selected="true"] { background: var(--paper); transform: scale(1.2); }

/* ---------- Artigos ---------- */
.posts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}
.post a {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: #fff;
  color: var(--ink);
  text-decoration: none;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 10px 30px -18px rgba(1, 16, 21, .5);
  transition: transform .3s, box-shadow .3s;
}
.post a:hover { transform: translateY(-6px); box-shadow: 0 22px 40px -20px rgba(1, 16, 21, .55); }
.post-img { aspect-ratio: 4 / 3; overflow: hidden; }
.post-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.post a:hover .post-img img { transform: scale(1.05); }
.post h3 {
  margin: 0;
  padding: 1.2rem 1.3rem .6rem;
  font-size: 1.05rem;
  font-weight: 400;
  line-height: 1.45;
}
.post-more {
  margin-top: auto;
  padding: 0 1.3rem 1.2rem;
  font-size: .85rem;
  font-weight: 500;
  color: var(--green);
}

/* ---------- Rodapé ---------- */
.site-footer { padding-block: 3rem 1.5rem; }
.footer-card {
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 2rem;
  padding: clamp(2rem, 5vw, 4rem) clamp(1.5rem, 4vw, 3rem);
  border-radius: var(--radius);
  background:
    linear-gradient(rgba(255, 255, 255, .25), rgba(255, 255, 255, .25)),
    url("https://static.wixstatic.com/media/a3c153_bbf1019446e34069a3b96c18f172e810~mv2.jpg/v1/fill/w_1960,h_686,al_c,q_80,enc_auto/marble.jpg") center / cover;
  box-shadow: var(--shadow);
}
.footer-brand { display: flex; flex-direction: column; text-align: center; color: var(--green-dark); }
.footer-brand strong { font-size: 1.15rem; font-weight: 500; }
.footer-brand span { font-size: 1.1rem; font-weight: 500; }
.footer-contact {
  display: flex;
  flex-direction: column;
  align-items: center;
  font-style: normal;
  font-size: .95rem;
}
.footer-contact a { color: var(--green-dark); text-decoration: none; }
.footer-contact a:hover { text-decoration: underline; }
.copyright { margin: 1.5rem 0 0; text-align: center; font-size: .8rem; color: var(--ink-soft); }

/* ---------- WhatsApp flutuante ---------- */
.whatsapp-float {
  position: fixed;
  right: 1.25rem; bottom: 1.25rem;
  z-index: 40;
  width: 56px; height: 56px;
  display: grid; place-items: center;
  background: #25d366;
  color: #fff;
  border-radius: 50%;
  box-shadow: 0 10px 24px -8px rgba(0, 0, 0, .45);
  transition: transform .25s;
}
.whatsapp-float:hover { transform: scale(1.08); }
.whatsapp-float svg { width: 30px; height: 30px; fill: currentColor; }

/* =========================================================
   Componentes das páginas internas
   ========================================================= */
.narrow { max-width: 760px; margin-inline: auto; }
.lead { font-size: 1.15em; color: var(--ink-soft); }

.eyebrow {
  margin: 0 0 .8rem;
  font-size: .8rem;
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--teal);
  text-indent: 0 !important;
}
.eyebrow-light { color: rgba(255, 255, 255, .85); }
.title-sm { font-size: clamp(1.2rem, 1rem + 1.2vw, 1.75rem); }
.text-block .eyebrow + .title + p { text-indent: 2em; }

.page-hero { padding-top: clamp(3rem, 6vw, 5rem); }

.btn-light { background: var(--paper); color: var(--green-dark); }
.btn-light:hover { background: #fff; transform: translateY(-2px); box-shadow: 0 10px 20px -10px rgba(0, 0, 0, .4); }

/* Lista de benefícios */
.benefits {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  list-style: none;
  margin: 2.5rem 0 0;
  padding: 0;
}
.benefits li {
  position: relative;
  padding: 1.3rem 1.3rem 1.3rem 3.4rem;
  background: rgba(255, 255, 255, .75);
  border-radius: var(--radius);
  font-weight: 400;
  line-height: 1.5;
  box-shadow: 0 8px 24px -18px rgba(1, 16, 21, .5);
}
.benefits li::before {
  content: "";
  position: absolute;
  left: 1.2rem; top: 1.35rem;
  width: 1.4rem; height: 1.4rem;
  border-radius: 50%;
  background: var(--green) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round' d='m6 12.5 4 4 8-9'/%3E%3C/svg%3E") center / 70% no-repeat;
}

/* Cards com ícone */
.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 2.5rem;
}
.feature {
  padding: 2rem 1.5rem;
  text-align: center;
  background: #fff;
  border-radius: var(--radius);
  box-shadow: 0 12px 30px -20px rgba(1, 16, 21, .45);
}
.section-light .feature { background: var(--sky); box-shadow: none; }
.feature svg {
  width: 52px; height: 52px;
  padding: 12px;
  margin-bottom: 1rem;
  fill: var(--paper);
  background: var(--green-dark);
  border-radius: 50%;
}
.feature h3 { margin: 0 0 .4rem; font-size: 1.1rem; font-weight: 500; color: var(--green-dark); }
.feature p { margin: 0; font-size: .95rem; line-height: 1.6; }

/* Passo a passo */
.steps {
  counter-reset: step;
  display: grid;
  gap: 1.25rem;
  max-width: 760px;
  margin: 0 auto;
  padding: 0;
  list-style: none;
}
.steps li {
  counter-increment: step;
  position: relative;
  padding: 1.4rem 1.5rem 1.4rem 5rem;
  background: rgba(255, 255, 255, .07);
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: var(--radius);
}
.steps li::before {
  content: counter(step);
  position: absolute;
  left: 1.3rem; top: 1.3rem;
  width: 2.6rem; height: 2.6rem;
  display: grid; place-items: center;
  font: 700 1rem/1 var(--font-title);
  color: var(--green-dark);
  background: var(--sky);
  border-radius: 50%;
}
.steps h3 { margin: 0 0 .25rem; font-size: 1.1rem; font-weight: 500; }
.steps p { margin: 0; font-size: .97rem; opacity: .9; line-height: 1.6; }
.badge {
  display: inline-block;
  margin-left: .4rem;
  padding: .2em .7em;
  font-size: .7rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  vertical-align: middle;
  color: var(--green-dark);
  background: #ffd98a;
  border-radius: 999px;
}

/* Chamada final */
.cta-band {
  padding-block: clamp(4rem, 9vw, 7rem);
  background:
    linear-gradient(rgba(29, 74, 64, .78), rgba(29, 74, 64, .78)),
    var(--cta-img) center / cover;
  color: #fff;
}
.cta-inner { max-width: 760px; text-align: center; color: #fff; }
.cta-inner h2 { margin: 0 0 .6rem; font-size: clamp(1.3rem, 1rem + 1.4vw, 2rem); font-weight: 400; line-height: 1.35; }
.cta-inner p { opacity: .9; }
.cta-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: .8rem; margin-top: 1.5rem; }

/* Abertura com imagem de fundo */
.image-hero {
  display: grid;
  align-items: end;
  min-height: clamp(340px, 52vh, 520px);
  padding-block: 3rem;
  background:
    linear-gradient(to top, rgba(1, 16, 21, .7), rgba(1, 16, 21, .1) 70%),
    var(--hero-img) center / cover;
}
.image-hero .title { margin-bottom: .3em; text-shadow: 0 2px 20px rgba(0, 0, 0, .35); }
.image-hero .lead { margin: 0; color: rgba(255, 255, 255, .92); }

/* Quatro características da ACT */
.pillars { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
.pillar {
  position: relative;
  padding: 2rem 2rem 1.5rem;
  background: #fff;
  border-radius: var(--radius);
  box-shadow: 0 12px 30px -20px rgba(1, 16, 21, .45);
  overflow: hidden;
}
.pillar-num {
  position: absolute;
  right: 1.2rem; top: .6rem;
  font: 700 3.2rem/1 var(--font-title);
  color: var(--sky);
}
.pillar h2 { position: relative; margin: 0 0 .8rem; padding-right: 4.5rem; font-size: 1.25rem; font-weight: 500; color: var(--green); }
.pillar p { position: relative; font-size: .98rem; line-height: 1.7; }
.pillar p:last-child { margin-bottom: 0; }

/* Linha do tempo */
.timeline { list-style: none; margin: 0; padding: 0 0 0 1.5rem; border-left: 2px solid var(--sky); }
.timeline li { position: relative; padding: 0 0 1.6rem 1rem; }
.timeline li:last-child { padding-bottom: 0; }
.timeline li::before {
  content: "";
  position: absolute;
  left: calc(-1.5rem - 7px); top: .45rem;
  width: 12px; height: 12px;
  background: var(--green);
  border: 3px solid var(--paper);
  border-radius: 50%;
  box-shadow: 0 0 0 2px var(--green);
}
.timeline strong { display: block; font-weight: 500; line-height: 1.4; }
.timeline span { font-size: .92rem; color: var(--ink-soft); }
.media-small { max-width: 380px; justify-self: center; }

/* Perguntas frequentes */
.faq { display: grid; gap: .9rem; margin-top: 1rem; }
.faq details {
  background: var(--sky);
  border-radius: var(--radius);
  transition: background-color .25s;
}
.faq details[open] { background: #fff; box-shadow: 0 12px 30px -20px rgba(1, 16, 21, .45); outline: 1px solid rgba(1, 111, 85, .12); }
.faq summary {
  position: relative;
  padding: 1.2rem 3.5rem 1.2rem 1.5rem;
  font-weight: 500;
  color: var(--green-dark);
  cursor: pointer;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  position: absolute;
  right: 1.3rem; top: 50%;
  width: 1.8rem; height: 1.8rem;
  display: grid; place-items: center;
  font-size: 1.3rem; line-height: 1;
  color: var(--paper);
  background: var(--green-dark);
  border-radius: 50%;
  transform: translateY(-50%);
  transition: transform .3s;
}
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq-body { padding: 0 1.5rem 1.2rem; }
.faq-body p:last-child { margin-bottom: 0; }
.faq-body ul { margin: 0; padding-left: 1.2rem; }

/* Cards do blog: resumo */
.post-summary { margin: 0; padding: 0 1.3rem .9rem; font-size: .9rem; line-height: 1.6; color: var(--ink-soft); }
.post h2 { margin: 0; padding: 1.2rem 1.3rem .6rem; font-size: 1.05rem; font-weight: 500; line-height: 1.45; }

/* Artigo */
.article-header { padding-block: clamp(2.5rem, 5vw, 4rem) clamp(5rem, 9vw, 7rem); }
.article-header h1 {
  margin: .8rem 0 1rem;
  font-size: clamp(1.5rem, 1.1rem + 1.8vw, 2.4rem);
  font-weight: 500;
  line-height: 1.3;
  color: var(--green-dark);
}
.back-link { font-size: .9rem; font-weight: 500; text-decoration: none; }
.back-link:hover { text-decoration: underline; }
.article-meta { display: flex; align-items: center; gap: .5rem; margin: 0; font-size: .9rem; color: var(--ink-soft); }
.article-cover { margin: calc(-1 * clamp(3.5rem, 7vw, 5rem)) 0 2.5rem; }
.article-cover img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: var(--radius); box-shadow: var(--shadow); }
.article-body { font-size: 1.05em; }
.article-body h2 { margin: 2em 0 .6em; font-size: 1.4rem; font-weight: 500; color: var(--green-dark); }
.article-body h3 { margin: 1.6em 0 .5em; font-size: 1.15rem; font-weight: 500; color: var(--green); }
.article-body ul, .article-body ol { padding-left: 1.3rem; }
.article-body li { margin-bottom: .4em; }
.article-body blockquote { margin: 1.5em 0; padding: .5em 1.3em; border-left: 3px solid var(--teal); color: var(--ink-soft); }
.article-cta {
  margin: 3rem 0 clamp(3rem, 6vw, 5rem);
  padding: 2rem;
  text-align: center;
  background: var(--sky);
  border-radius: var(--radius);
}
.article-cta h2 { margin: 0 0 .3rem; font-size: 1.3rem; font-weight: 500; color: var(--green-dark); }

/* Links do rodapé */
.footer-nav { display: flex; flex-wrap: wrap; justify-content: center; gap: .4rem 1.5rem; margin-top: 1.5rem; }
.footer-nav a { font-size: .9rem; color: var(--green-dark); text-decoration: none; }
.footer-nav a:hover { text-decoration: underline; }

@media (max-width: 960px) {
  .benefits { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 820px) {
  .benefits, .features, .pillars { grid-template-columns: 1fr; }
  .page-hero .grid-media-left .media { order: -1; }
  .media-small { order: -1; }
}
@media (max-width: 520px) {
  .steps li { padding: 4.4rem 1.2rem 1.3rem; }
  .pillar { padding: 1.6rem 1.3rem 1.2rem; }
}

/* ---------- Animação de entrada ---------- */
.js .reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .8s ease, transform .8s ease;
}
.js .reveal.is-visible { opacity: 1; transform: none; }

/* ---------- Responsivo ---------- */
@media (max-width: 960px) {
  .nav-toggle { display: block; }

  .site-nav {
    position: absolute;
    top: 100%; left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 1rem;
    padding: 1rem 1.25rem 1.5rem;
    background: var(--sky);
    border-bottom: 1px solid rgba(1, 111, 85, .12);
    box-shadow: 0 16px 24px -16px rgba(1, 16, 21, .3);
    visibility: hidden;
    opacity: 0;
    transform: translateY(-8px);
    transition: opacity .25s, transform .25s, visibility .25s;
  }
  .site-nav.is-open { visibility: visible; opacity: 1; transform: none; }
  .site-nav ul { flex-direction: column; gap: 0; }
  .site-nav ul a { display: block; padding: .8rem 0; border-bottom: 1px solid rgba(1, 111, 85, .1); }
  .site-nav ul a::after { display: none; }
  .site-nav .btn { text-align: center; }
}

@media (max-width: 820px) {
  .grid-2,
  .grid-media-left { grid-template-columns: 1fr; }
  .hero .media { order: -1; }
  .title-right { text-align: left; }
  .media-portrait { max-width: 420px; }

  .posts { grid-template-columns: 1fr; max-width: 460px; margin-inline: auto; }

  .footer-card { grid-template-columns: 1fr; justify-items: center; text-align: center; }
}

@media (max-width: 520px) {
  .carousel { padding-inline: 0; }
  .carousel-btn { top: auto; bottom: -.6rem; transform: none; }
  .text-block p { text-align: left; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
  .js .reveal { opacity: 1; transform: none; }
}
