/* ==========================================================================
   Instituto Canova — Landing Page
   CSS estático, mobile-first, sem dependências externas.
   ========================================================================== */

:root {
  --color-bg: #FAF7F2;
  --color-bg-alt: #F2EBDF;
  --color-surface: #FFFFFF;
  --color-text: #2A2521;
  --color-text-muted: #6B6259;
  --color-primary: #A9744F;
  --color-primary-dark: #8A5D3E;
  --color-primary-contrast: #FFFFFF;
  --color-accent: #5B6B54;
  --color-border: #E4DCCF;
  --color-error: #A23B3B;

  --font-heading: Georgia, "Iowan Old Style", "Palatino Linotype", "Times New Roman", serif;
  --font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  --radius-sm: 6px;
  --radius-md: 14px;
  --radius-lg: 24px;

  --shadow-sm: 0 1px 2px rgba(42, 37, 33, 0.08);
  --shadow-md: 0 12px 32px rgba(42, 37, 33, 0.10);

  --container-width: 1120px;
  --container-width-narrow: 720px;

  --header-height: 64px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 12px);
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--color-text);
  background-color: var(--color-bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
}

h1, h2, h3 {
  font-family: var(--font-heading);
  line-height: 1.2;
  margin: 0 0 0.6em;
  color: var(--color-text);
}

h1 { font-size: clamp(1.9rem, 4.5vw, 2.75rem); }
h2 { font-size: clamp(1.5rem, 3.2vw, 2.1rem); }
h3 { font-size: clamp(1.15rem, 2.2vw, 1.35rem); }

p { margin: 0 0 1em; }

ul { margin: 0; padding: 0; list-style: none; }

.container {
  width: 100%;
  max-width: var(--container-width);
  margin-inline: auto;
  padding-inline: 20px;
}

.container--narrow {
  max-width: var(--container-width-narrow);
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--color-primary);
  color: var(--color-primary-contrast);
  padding: 10px 16px;
  z-index: 1000;
  border-radius: 0 0 var(--radius-sm) 0;
}

.skip-link:focus {
  left: 0;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 26px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, background-color 0.15s ease, border-color 0.15s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn--primary {
  background-color: var(--color-primary);
  color: var(--color-primary-contrast);
}

.btn--primary:hover {
  background-color: var(--color-primary-dark);
}

.btn--ghost {
  background-color: transparent;
  border-color: var(--color-border);
  color: var(--color-text);
}

.btn--ghost:hover {
  border-color: var(--color-primary);
  color: var(--color-primary-dark);
}

.btn--small {
  padding: 9px 18px;
  font-size: 0.85rem;
}

.btn--block {
  width: 100%;
}

.btn:disabled {
  opacity: 0.65;
  cursor: not-allowed;
  transform: none;
}

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: rgba(250, 247, 242, 0.92);
  backdrop-filter: saturate(180%) blur(8px);
  border-bottom: 1px solid transparent;
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.site-header.is-scrolled {
  box-shadow: var(--shadow-sm);
  border-bottom-color: var(--color-border);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  height: var(--header-height);
}

.site-header__logo {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  text-decoration: none;
  color: var(--color-text);
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.site-header__logo span {
  color: var(--color-primary);
}

.site-header__nav {
  display: none;
  gap: 24px;
  font-size: 0.92rem;
}

.site-header__nav a {
  text-decoration: none;
  color: var(--color-text-muted);
}

.site-header__nav a:hover {
  color: var(--color-primary-dark);
}

@media (min-width: 768px) {
  .site-header__nav {
    display: flex;
  }
}

/* ---------- Hero ---------- */

.hero {
  padding-block: 40px 56px;
  background: linear-gradient(180deg, var(--color-bg) 0%, var(--color-bg-alt) 100%);
}

.hero__inner {
  display: grid;
  gap: 32px;
}

.hero__subtitle {
  color: var(--color-text-muted);
  font-size: 1.05rem;
  max-width: 46ch;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 24px;
}

.hero__badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  font-size: 0.85rem;
  color: var(--color-text-muted);
}

.hero__badges li {
  display: flex;
  align-items: center;
  gap: 6px;
}

.hero__badges li::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--color-accent);
  flex-shrink: 0;
}

.hero__media picture,
.hero__media img {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  width: 100%;
}

.hero__form {
  scroll-margin-top: calc(var(--header-height) + 12px);
}

@media (min-width: 960px) {
  .hero__inner {
    grid-template-columns: 1.1fr 0.9fr;
    grid-template-areas:
      "content media"
      "form media";
    align-items: start;
  }

  .hero__content { grid-area: content; }
  .hero__media { grid-area: media; }
  .hero__form { grid-area: form; }
}

/* ---------- Sections ---------- */

.section {
  padding-block: 56px;
}

.section--tight {
  padding-block: 32px;
}

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

.section__lead {
  color: var(--color-text-muted);
  max-width: 60ch;
}

.section__cta {
  margin-top: 28px;
}

.section--split {
  display: grid;
  gap: 32px;
  align-items: center;
}

@media (min-width: 960px) {
  .section--split {
    grid-template-columns: 1fr 1fr;
    gap: 56px;
  }

  .section--split-reverse .section--split__text {
    order: 2;
  }

  .section--split-reverse .section--split__media {
    order: 1;
  }
}

.section--split__media img {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}

/* Placeholder exibido enquanto a foto real da seção não é adicionada */
.media-placeholder {
  width: 100%;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  background: linear-gradient(135deg, var(--color-bg-alt) 0%, var(--color-border) 100%);
}

/* ---------- Check list ---------- */

.check-list {
  display: grid;
  gap: 12px;
  margin-top: 20px;
}

.check-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: var(--color-text);
}

.check-list li::before {
  content: "\2713";
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background-color: var(--color-accent);
  color: #fff;
  font-size: 0.7rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 2px;
}

/* ---------- Cards ---------- */

.card-grid {
  display: grid;
  gap: 20px;
  margin-top: 28px;
}

@media (min-width: 640px) {
  .card-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.card {
  background-color: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 28px;
}

.card h3 {
  margin-bottom: 0.5em;
}

.card p {
  color: var(--color-text-muted);
  margin-bottom: 0;
}

/* ---------- Quick answers (SEO/IA) ---------- */

.quick-answers {
  display: grid;
  gap: 24px;
  margin-top: 24px;
}

@media (min-width: 768px) {
  .quick-answers {
    grid-template-columns: repeat(3, 1fr);
  }
}

.quick-answers__item h3 {
  font-size: 1.05rem;
  margin-bottom: 0.4em;
}

.quick-answers__item p {
  color: var(--color-text-muted);
  font-size: 0.95rem;
  margin-bottom: 0;
}

/* ---------- Case grid (antes e depois) ---------- */

.case-grid {
  display: grid;
  gap: 32px;
  margin-top: 28px;
}

.case-grid__item {
  background-color: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 20px;
}

.case-grid__title {
  margin-bottom: 16px;
  font-size: 1.05rem;
}

.case-pair {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

@media (min-width: 640px) {
  .case-pair {
    gap: 20px;
    max-width: 640px;
  }
}

.case-pair figure {
  margin: 0;
}

.case-pair img {
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  width: 100%;
}

.case-pair figcaption {
  margin-top: 10px;
  text-align: center;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-text-muted);
}

.disclaimer {
  margin-top: 28px;
  padding: 16px 20px;
  border-left: 3px solid var(--color-accent);
  background-color: var(--color-surface);
  color: var(--color-text-muted);
  font-size: 0.9rem;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

/* ---------- FAQ (details/summary) ---------- */

.faq-list {
  display: grid;
  gap: 12px;
  margin-top: 24px;
}

.faq-item {
  background-color: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 6px 22px;
}

.faq-item summary {
  cursor: pointer;
  list-style: none;
  padding: 16px 28px 16px 0;
  font-weight: 600;
  position: relative;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  position: absolute;
  right: 0;
  top: 14px;
  font-size: 1.4rem;
  color: var(--color-primary);
  transition: transform 0.15s ease;
}

.faq-item[open] summary::after {
  content: "\2212";
}

.faq-item p {
  color: var(--color-text-muted);
  padding-bottom: 18px;
  margin: 0;
}

/* ---------- Forms ---------- */

.lead-form {
  background-color: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-md);
}

.lead-form--standalone {
  max-width: 560px;
  margin-inline: auto;
}

.lead-form__title {
  font-size: 1.3rem;
  margin-bottom: 0.3em;
}

.lead-form__subtitle {
  color: var(--color-text-muted);
  font-size: 0.92rem;
  margin-bottom: 20px;
}

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

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

.form-field label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--color-text);
}

.form-field__optional {
  font-weight: 400;
  color: var(--color-text-muted);
}

.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 0.95rem;
  background-color: var(--color-bg);
  color: var(--color-text);
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: 2px solid var(--color-primary);
  outline-offset: 1px;
}

.form-field textarea {
  resize: vertical;
}

.form-error {
  margin-top: 14px;
  color: var(--color-error);
  font-size: 0.88rem;
}

/* ---------- Thank you page ---------- */

.thank-you {
  padding-block: 96px;
}

.thank-you__inner {
  text-align: center;
}

.thank-you__inner p {
  color: var(--color-text-muted);
  font-size: 1.05rem;
  margin-bottom: 28px;
}

/* ---------- Footer ---------- */

.site-footer {
  background-color: #221E1A;
  color: #E7E1D8;
  padding-block: 48px 24px;
}

.site-footer__inner {
  display: grid;
  gap: 32px;
}

@media (min-width: 768px) {
  .site-footer__inner {
    grid-template-columns: repeat(3, 1fr);
  }
}

.site-footer__brand {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  margin-bottom: 0.4em;
}

.site-footer__heading {
  font-weight: 600;
  margin-bottom: 0.4em;
}

.site-footer p {
  margin: 0 0 0.4em;
  font-size: 0.9rem;
  color: #C9C1B4;
}

.site-footer__bottom {
  text-align: center;
  margin-top: 32px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.8rem;
  color: #9A9184;
}
