/* Espaço Ikaria — Guia do Cuidador Familiar
   Palette & fonts aligned with https://espacoikaria.com.br */

:root {
  --cream: #FBF7F0;
  --paper: #FFFFFF;
  --ink: #16383B;
  --ink-soft: #3F5C5E;
  --muted: #6E807F;
  --teal-deep: #0C5B61;
  --teal: #138A8F;
  --teal-bright: #1AA9AE;
  --teal-tint: #E4F1EF;
  --orange: #E2913A;
  --orange-deep: #D07F2A;
  --orange-tint: #FBEDD9;
  --sand: #E7DDCB;
  --line: #EAE1D2;
  --whatsapp: #25D366;
  --shadow-sm: 0 2px 10px rgba(20, 55, 57, 0.05);
  --shadow: 0 18px 50px -18px rgba(12, 91, 97, 0.28);
  --shadow-lg: 0 40px 90px -30px rgba(12, 91, 97, 0.4);
  --r: 22px;
  --r-sm: 14px;
  --maxw: 720px;
  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Plus Jakarta Sans", system-ui, -apple-system, sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--teal);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover {
  color: var(--teal-deep);
}

a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--teal-bright);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  padding: 0.75rem 1rem;
  background: var(--teal-deep);
  color: #fff;
  font-weight: 600;
  text-decoration: none;
  border-radius: 0 0 var(--r-sm) 0;
}

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

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

/* Header */
.site-header {
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  padding: 0.875rem 0;
  position: sticky;
  top: 0;
  z-index: 50;
  box-shadow: var(--shadow-sm);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  text-decoration: none;
  color: var(--ink);
}

.brand-name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.125rem;
  color: var(--teal-deep);
  letter-spacing: -0.02em;
}

.brand-tag {
  font-size: 0.7rem;
  color: var(--muted);
  font-weight: 500;
}

.header-cta {
  display: none;
  font-size: 0.875rem;
  font-weight: 600;
  padding: 0.55rem 1rem;
  border-radius: 999px;
  background: var(--teal);
  color: #fff !important;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.2s ease, transform 0.15s ease;
}

.header-cta:hover {
  background: var(--teal-deep);
  color: #fff !important;
}

@media (min-width: 640px) {
  .header-cta {
    display: inline-flex;
  }
}

/* Hero */
.hero {
  padding: 2.5rem 0 3rem;
  background:
    radial-gradient(ellipse 80% 60% at 100% 0%, rgba(26, 169, 174, 0.12), transparent 60%),
    radial-gradient(ellipse 60% 50% at 0% 100%, rgba(226, 145, 58, 0.1), transparent 55%),
    var(--cream);
}

.hero-grid {
  display: grid;
  gap: 2rem;
  align-items: center;
}

.hero-copy {
  min-width: 0;
}

.hero-visual {
  margin: 0;
  justify-self: center;
  width: min(100%, 340px);
}

.hero-visual picture,
.hero-visual img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--r);
  box-shadow: var(--shadow-lg);
  background: transparent;
}

@media (min-width: 768px) {
  .hero {
    padding: 3.25rem 0 3.5rem;
  }

  .hero-grid {
    grid-template-columns: minmax(0, 1.15fr) minmax(240px, 0.85fr);
    gap: 2.5rem;
    align-items: center;
  }

  .hero-visual {
    width: 100%;
    max-width: 380px;
    justify-self: end;
  }

  .container {
    /* keep max width but allow hero breathing room */
  }

  .hero .container.hero-grid {
    width: min(100% - 2rem, 960px);
  }
}

.hero-badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--teal-deep);
  background: var(--teal-tint);
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  margin-bottom: 1.25rem;
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 5vw, 2.5rem);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.025em;
  color: var(--ink);
  margin: 0 0 1rem;
}

.hero-sub {
  font-size: clamp(1rem, 2.5vw, 1.125rem);
  color: var(--ink-soft);
  margin: 0 0 1.75rem;
  max-width: 38em;
}

.cta-block {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.65rem;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  max-width: 100%;
  padding: 1.05rem 1.5rem;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  font-weight: 700;
  line-height: 1.3;
  text-align: center;
  text-decoration: none;
  color: #fff !important;
  background: linear-gradient(135deg, var(--teal) 0%, var(--teal-deep) 100%);
  border: none;
  border-radius: var(--r-sm);
  box-shadow: var(--shadow);
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.btn-primary:hover {
  filter: brightness(1.06);
  transform: translateY(-1px);
  box-shadow: var(--shadow-lg);
  color: #fff !important;
}

.btn-primary:active {
  transform: translateY(0);
}

.cta-secondary {
  font-size: 0.9375rem;
  color: var(--ink-soft);
  margin: 0;
}

.cta-micro {
  font-size: 0.8125rem;
  color: var(--muted);
  margin: 0;
}

/* Sections */
.section {
  padding: 2.75rem 0;
}

.section--alt {
  background: var(--paper);
  border-block: 1px solid var(--line);
}

.section h2 {
  font-family: var(--font-display);
  font-size: clamp(1.375rem, 3.5vw, 1.75rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--teal-deep);
  margin: 0 0 1.25rem;
  line-height: 1.25;
}

.card-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
}

.card-list li {
  display: flex;
  gap: 0.875rem;
  align-items: flex-start;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  padding: 1rem 1.1rem;
  box-shadow: var(--shadow-sm);
}

.section--alt .card-list li {
  background: var(--cream);
}

.card-icon {
  flex-shrink: 0;
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 50%;
  background: var(--teal-tint);
  color: var(--teal-deep);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.875rem;
  font-weight: 700;
  margin-top: 0.1rem;
}

.card-list li p {
  margin: 0;
  color: var(--ink);
  font-size: 0.9875rem;
}

/* Authority */
.authority {
  background: var(--teal-tint);
  border: 1px solid #c5ddd9;
  border-radius: var(--r);
  padding: 1.5rem 1.35rem;
}

.authority p {
  margin: 0;
  font-size: 1.0625rem;
  color: var(--ink);
  line-height: 1.6;
}

.authority strong {
  color: var(--teal-deep);
}

/* CTA repeat */
.cta-band {
  padding: 2.75rem 0;
  background:
    linear-gradient(115deg, #0C868C 0%, #1FA39B 42%, #7BAE6E 72%, #E89A3C 100%);
  color: #fff;
  text-align: center;
}

.cta-band h2 {
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 3.5vw, 1.65rem);
  font-weight: 600;
  color: #fff;
  margin: 0 0 0.5rem;
}

.cta-band .cta-secondary {
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 1.25rem;
}

.cta-band .btn-primary {
  background: #fff;
  color: var(--teal-deep) !important;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
  max-width: 28rem;
  margin-inline: auto;
}

.cta-band .btn-primary:hover {
  background: var(--cream);
  color: var(--teal-deep) !important;
  filter: none;
}

.cta-band .cta-micro {
  color: rgba(255, 255, 255, 0.8);
  margin-top: 0.75rem;
}

.cta-band .cta-block {
  align-items: center;
}

/* Legal notice */
.legal {
  padding: 2.25rem 0;
  background: var(--orange-tint);
  border-top: 2px solid var(--orange);
}

.legal h2 {
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--orange-deep);
  margin: 0 0 0.75rem;
}

.legal p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--ink-soft);
  line-height: 1.6;
}

/* Footer */
.site-footer {
  padding: 2.25rem 0 2.5rem;
  background: var(--teal-deep);
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.875rem;
}

.site-footer a {
  color: #9BD8D0;
  text-decoration: none;
}

.site-footer a:hover {
  color: #fff;
  text-decoration: underline;
}

.footer-brand {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.125rem;
  color: #fff;
  margin: 0 0 0.75rem;
}

.footer-line {
  margin: 0 0 0.5rem;
  line-height: 1.55;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  margin-top: 1.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.footer-wa {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 600;
}

/* Sticky mobile CTA bar */
.sticky-cta {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 60;
  padding: 0.75rem 1rem calc(0.75rem + env(safe-area-inset-bottom));
  background: rgba(251, 247, 240, 0.95);
  backdrop-filter: blur(8px);
  border-top: 1px solid var(--line);
  box-shadow: 0 -8px 30px rgba(12, 91, 97, 0.12);
}

.sticky-cta.is-visible {
  display: block;
}

.sticky-cta .btn-primary {
  font-size: 0.95rem;
  padding: 0.9rem 1.25rem;
}

@media (min-width: 768px) {
  .sticky-cta {
    display: none !important;
  }

  .hero {
    padding: 3.5rem 0 4rem;
  }

  .section {
    padding: 3.25rem 0;
  }

  .btn-primary {
    width: auto;
    min-width: 18rem;
  }
}

body.has-sticky-cta {
  padding-bottom: 5.5rem;
}

@media (min-width: 768px) {
  body.has-sticky-cta {
    padding-bottom: 0;
  }
}


/* Price line next to CTA */
.cta-price {
  margin: 0 0 0.85rem;
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--ink-soft);
  line-height: 1.4;
}

.cta-price s {
  color: var(--muted);
  text-decoration-thickness: 1.5px;
}

.cta-price strong {
  color: var(--teal-deep);
  font-weight: 700;
  font-size: 1.2em;
}

.cta-price-note {
  display: inline-block;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--orange-deep);
}

.cta-band .cta-price {
  color: rgba(255, 255, 255, 0.92);
}

.cta-band .cta-price s {
  color: rgba(255, 255, 255, 0.65);
}

.cta-band .cta-price strong {
  color: #fff;
}

.cta-band .cta-price-note {
  color: var(--orange-tint);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
