/* ===========================================================
   PERSEV — Centro Terapêutico
   Design: editorial, natural, sóbrio
   =========================================================== */

:root {
  /* Paleta natural — verde profundo, areia, off-white */
  --forest-900: #1c2b24;
  --forest-800: #24382e;
  --forest-700: #33503f;
  --forest-600: #446b54;
  --moss:       #6f8a6a;
  --sand:       #e9e2d4;
  --sand-soft:  #f4efe6;
  --paper:      #fbfaf6;
  --ink:        #232b26;
  --ink-soft:   #4d564f;
  --line:       #ddd6c7;
  --clay:       #b5714f;

  --font-serif: 'Fraunces', Georgia, 'Times New Roman', serif;
  --font-sans:  'Inter', system-ui, -apple-system, sans-serif;

  --wrap: 1180px;
  --radius: 4px;
  --shadow-soft: 0 18px 48px -28px rgba(28, 43, 36, 0.45);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.65;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation: none !important; transition: none !important; }
}

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }

h1, h2, h3 { font-family: var(--font-serif); font-weight: 500; line-height: 1.1; letter-spacing: -0.015em; color: var(--forest-900); }
h1 { font-size: clamp(2.3rem, 5vw, 3.9rem); }
h2 { font-size: clamp(1.8rem, 3.3vw, 2.7rem); }
h3 { font-size: 1.32rem; }

p { color: var(--ink-soft); }

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

.eyebrow {
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--forest-600);
  margin-bottom: 1rem;
}
.eyebrow.center { text-align: center; }
.eyebrow.light { color: var(--moss); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  border-radius: var(--radius);
  font-weight: 500;
  font-size: 0.98rem;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease;
  cursor: pointer;
  border: 1px solid transparent;
  min-height: 48px;
}
.btn-primary { background: var(--forest-700); color: var(--paper); }
.btn-primary:hover { background: var(--forest-800); transform: translateY(-2px); }
.btn-ghost { background: transparent; color: var(--forest-800); border-color: var(--forest-600); }
.btn-ghost:hover { background: rgba(51, 80, 63, 0.06); }
.btn-block { width: 100%; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(251, 250, 246, 0.86);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.brand { display: flex; align-items: center; gap: 12px; line-height: 1; }
.brand-logo { height: 42px; width: auto; border-radius: 4px; }
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-mark { font-family: var(--font-serif); font-weight: 600; font-size: 1.5rem; letter-spacing: 0.06em; color: var(--forest-900); }
.brand-sub { font-size: 0.68rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--moss); margin-top: 3px; }

.nav { display: flex; align-items: center; gap: 30px; }
.nav a { font-size: 0.95rem; color: var(--ink-soft); font-weight: 500; transition: color 0.2s; }
.nav a:hover { color: var(--forest-800); }
.nav-cta { padding: 9px 20px; border: 1px solid var(--forest-600); border-radius: var(--radius); color: var(--forest-800) !important; }
.nav-cta:hover { background: var(--forest-700); color: var(--paper) !important; }

.nav-toggle { display: none; background: none; border: none; color: var(--forest-800); cursor: pointer; padding: 8px; }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; background: var(--forest-900); color: var(--sand-soft); }
.hero-bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(circle at 80% 10%, rgba(111, 138, 106, 0.28), transparent 45%),
    linear-gradient(160deg, var(--forest-800), var(--forest-900) 70%);
}
.hero-bg::after {
  content: "";
  position: absolute; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='60'%3E%3Cpath d='M0 59h60M59 0v60' stroke='%23ffffff' stroke-opacity='0.04' stroke-width='1'/%3E%3C/svg%3E");
}
.hero-photo {
  position: absolute; inset: 0;
  background: url("assets/foto-01.jpg") center/cover no-repeat;
  opacity: 0.16;
  mix-blend-mode: luminosity;
}
.hero-content { position: relative; padding: 118px 24px 104px; max-width: 880px; }
.hero .eyebrow { color: var(--moss); }
.hero h1 { color: #fff; margin-bottom: 1.5rem; }
.lead { font-size: 1.22rem; color: rgba(244, 239, 230, 0.85); max-width: 640px; line-height: 1.6; }
.hero-actions { display: flex; gap: 14px; margin-top: 2.4rem; flex-wrap: wrap; }
.hero .btn-ghost { color: var(--sand-soft); border-color: rgba(233, 226, 212, 0.4); }
.hero .btn-ghost:hover { background: rgba(255,255,255,0.08); }

.hero-stats { display: flex; gap: 48px; margin-top: 3.6rem; flex-wrap: wrap; border-top: 1px solid rgba(233, 226, 212, 0.18); padding-top: 2rem; }
.hero-stats dt { font-family: var(--font-serif); font-size: 1.6rem; color: #fff; }
.hero-stats dd { font-size: 0.9rem; color: rgba(244, 239, 230, 0.68); margin-top: 2px; }

/* ---------- Sections ---------- */
.section { padding: 104px 0; }
.section-alt { background: var(--sand-soft); }
.section-dark { background: var(--forest-900); color: var(--sand-soft); }
.section-dark h2 { color: #fff; }

.section-head { max-width: 720px; margin: 0 auto 64px; text-align: center; }
.section-intro { font-size: 1.1rem; margin-top: 1rem; }

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: center; }
.grid-2 h2 { margin-bottom: 1.4rem; }
.grid-2 p { margin-bottom: 1.1rem; }
.grid-2.reverse .media-frame { order: 2; }

/* ---------- Media frames (photo placeholders) ---------- */
.media-frame { position: relative; }
.media-fill {
  aspect-ratio: 4 / 5;
  width: 100%;
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  background-size: cover;
  background-position: center;
  object-fit: cover;
  display: block;
}
img.media-fill { height: auto; }
.media-sobre {
  background:
    linear-gradient(180deg, rgba(28,43,36,0.05), rgba(28,43,36,0.35)),
    linear-gradient(135deg, #6f8a6a 0%, #33503f 55%, #24382e 100%);
}
.media-estrutura {
  aspect-ratio: 5 / 4;
  background:
    linear-gradient(180deg, rgba(28,43,36,0.04), rgba(28,43,36,0.3)),
    linear-gradient(135deg, #cdbfa4 0%, #a68a6b 60%, #6f8a6a 100%);
}
.media-caption {
  display: inline-block;
  margin-top: 14px;
  font-size: 0.82rem;
  color: var(--ink-soft);
  letter-spacing: 0.02em;
}

/* ---------- Lists ---------- */
.check-list { list-style: none; margin-top: 1.6rem; display: grid; gap: 12px; }
.check-list li { position: relative; padding-left: 30px; color: var(--ink); font-size: 0.98rem; }
.check-list li::before {
  content: "";
  position: absolute; left: 0; top: 7px;
  width: 16px; height: 16px;
  background: no-repeat center/contain url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23446b54' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E");
}

.feature-list { list-style: none; margin-top: 1.8rem; display: grid; gap: 20px; }
.feature-list li { display: flex; flex-direction: column; padding-left: 20px; border-left: 2px solid var(--moss); }
.feature-list strong { color: var(--forest-800); font-weight: 600; }
.feature-list span { font-size: 0.94rem; color: var(--ink-soft); }

/* ---------- Cards ---------- */
.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 34px 28px;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-soft); }
.card-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 52px; height: 52px;
  border-radius: 50%;
  background: var(--sand);
  color: var(--forest-700);
  margin-bottom: 20px;
}
.card h3 { margin-bottom: 10px; }
.card p { font-size: 0.95rem; }

/* ---------- Plans ---------- */
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.plan {
  position: relative;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 40px 32px;
}
.plan-featured { border-color: var(--forest-600); box-shadow: var(--shadow-soft); }
.plan-tag {
  position: absolute; top: -13px; left: 32px;
  background: var(--clay); color: #fff;
  font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase;
  padding: 5px 12px; border-radius: 40px; font-weight: 600;
}
.plan h3 { margin-bottom: 12px; }
.plan-desc { font-size: 0.96rem; min-height: 72px; }
.plans-note { text-align: center; margin-top: 40px; font-size: 0.96rem; color: var(--ink-soft); }

/* ---------- Quote / Family ---------- */
.quote-block { max-width: 820px; margin: 0 auto; text-align: center; }
.quote-block blockquote {
  font-family: var(--font-serif);
  font-size: clamp(1.4rem, 2.6vw, 2rem);
  line-height: 1.35;
  color: var(--forest-900);
  margin: 0.6rem 0 1.8rem;
}
.quote-body { font-size: 1.06rem; max-width: 640px; margin: 0 auto; }
.family-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; margin-top: 3.4rem; text-align: left; }
.fstep { padding-top: 20px; border-top: 2px solid var(--sand); }
.fstep-num { font-family: var(--font-serif); font-size: 1.7rem; color: var(--moss); display: block; margin-bottom: 8px; }
.fstep p { font-size: 0.97rem; }

/* ---------- Contact ---------- */
.contact-grid { align-items: start; gap: 60px; }
.section-dark .eyebrow { color: var(--moss); }
.contact-lead { color: rgba(244, 239, 230, 0.82); font-size: 1.08rem; margin: 1.2rem 0 2rem; }
.contact-list { list-style: none; display: grid; gap: 18px; margin-bottom: 2rem; }
.contact-list li { display: flex; gap: 14px; align-items: flex-start; color: rgba(244, 239, 230, 0.9); font-size: 0.97rem; }
.contact-list svg { color: var(--moss); flex-shrink: 0; margin-top: 2px; }
.contact-cnpj { font-size: 0.82rem; color: rgba(244, 239, 230, 0.5); border-top: 1px solid rgba(233,226,212,0.15); padding-top: 18px; }

.contact-form { background: var(--paper); border-radius: var(--radius); padding: 40px 36px; box-shadow: var(--shadow-soft); }
.field { margin-bottom: 18px; }
.field label { display: block; font-size: 0.82rem; font-weight: 600; color: var(--forest-800); margin-bottom: 7px; letter-spacing: 0.02em; }
.field input, .field select, .field textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-family: var(--font-sans);
  font-size: 0.96rem;
  color: var(--ink);
  background: #fff;
  transition: border-color 0.2s;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--forest-600); }
.field textarea { resize: vertical; }
.form-note { font-size: 0.8rem; color: var(--ink-soft); margin-top: 12px; text-align: center; }

/* ---------- Footer ---------- */
.site-footer { background: var(--forest-900); color: rgba(244, 239, 230, 0.7); padding: 56px 0 32px; }
.footer-inner { display: flex; justify-content: space-between; align-items: center; gap: 30px; flex-wrap: wrap; padding-bottom: 28px; border-bottom: 1px solid rgba(233,226,212,0.12); }
.footer-brand { color: #fff; font-size: 1.4rem; }
.footer-tag { font-size: 0.85rem; color: var(--moss); margin-top: 4px; }
.footer-nav { display: flex; gap: 24px; flex-wrap: wrap; }
.footer-nav a { font-size: 0.9rem; color: rgba(244, 239, 230, 0.75); transition: color 0.2s; }
.footer-nav a:hover { color: #fff; }
.footer-legal { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-top: 22px; font-size: 0.8rem; color: rgba(244, 239, 230, 0.45); }

/* ---------- Galeria ---------- */
.gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: 220px;
  gap: 16px;
}
.gallery-item {
  margin: 0;
  overflow: hidden;
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
}
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}
.gallery-item:hover img { transform: scale(1.05); }
.gallery-tall { grid-row: span 2; }
.gallery-wide { grid-column: span 2; }

/* ---------- Responsive ---------- */
@media (max-width: 940px) {
  .gallery { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 180px; }
  .gallery-wide { grid-column: span 2; }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .grid-2 { grid-template-columns: 1fr; gap: 44px; }
  .grid-2.reverse .media-frame { order: 0; }
  .plans { grid-template-columns: 1fr; }
  .family-steps { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .gallery { grid-template-columns: 1fr; grid-auto-rows: 240px; }
  .gallery-tall, .gallery-wide { grid-row: auto; grid-column: auto; }
  .nav { display: none; position: absolute; top: 76px; left: 0; right: 0; flex-direction: column; align-items: stretch; background: var(--paper); border-bottom: 1px solid var(--line); padding: 16px 24px 24px; gap: 4px; }
  .nav.open { display: flex; }
  .nav a { padding: 12px 0; border-bottom: 1px solid var(--line); }
  .nav-cta { text-align: center; margin-top: 10px; border: 1px solid var(--forest-600); }
  .nav-toggle { display: inline-flex; }
  .section { padding: 72px 0; }
  .hero-content { padding: 80px 24px 72px; }
  .cards { grid-template-columns: 1fr; }
  .hero-stats { gap: 28px; }
}
