/* ---------- Design tokens ---------- */
:root {
  --navy: #172A3A;
  --beige: #F5F1E8;
  --sage: #82958A;
  --gold: #B39A68;

  --font-display: 'Playfair Display', Georgia, serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

  --header-height: 72px;
  --radius: 14px;
  --container-width: 1140px;
}

/* ---------- Reset ---------- */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--navy);
  background: var(--beige);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { font-family: var(--font-display); line-height: 1.15; margin: 0 0 0.5em; }
p { margin: 0 0 1em; }
ul { list-style: none; margin: 0; padding: 0; }
button { font-family: inherit; }

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

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 0.85em 1.6em;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  border: 1.5px solid transparent;
  transition: transform 0.15s ease, background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
  cursor: pointer;
}
.btn:hover { transform: translateY(-2px); }

.btn-primary {
  background: var(--gold);
  color: var(--navy);
}
.btn-primary:hover { background: #c4ac7a; }

.btn-outline {
  background: transparent;
  color: var(--navy);
  border-color: var(--navy);
}
.btn-outline:hover { background: var(--navy); color: var(--beige); }

.btn-outline-light {
  background: transparent;
  color: var(--beige);
  border-color: var(--beige);
}
.btn-outline-light:hover { background: var(--beige); color: var(--navy); }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--navy);
  min-height: var(--header-height);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--header-height);
  gap: 16px;
}
.logo-link { display: inline-flex; }
.logo-horizontal { height: 40px; width: auto; }

.nav-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: transparent;
  border: none;
  cursor: pointer;
  z-index: 101;
}
.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--beige);
  border-radius: 2px;
}

.primary-nav {
  position: fixed;
  inset: var(--header-height) 0 0 0;
  background: var(--navy);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  gap: 24px;
  padding: 32px 20px;
  transform: translateX(100%);
  transition: transform 0.25s ease;
}
.primary-nav.is-open { transform: translateX(0); }

.primary-nav ul {
  display: flex;
  flex-direction: column;
  gap: 20px;
  text-align: center;
}
.primary-nav a { color: var(--beige); font-weight: 500; font-size: 1.05rem; }
.primary-nav a:hover { color: var(--gold); }
.nav-cta { align-self: center; }

/* ---------- Hero ---------- */
.hero { padding: 64px 0 48px; }
.hero-inner {
  display: flex;
  flex-direction: column;
  gap: 40px;
}
.hero-copy h1 {
  font-size: clamp(2rem, 6vw, 3rem);
  color: var(--navy);
}
.hero-subtitle {
  font-size: 1.1rem;
  color: #3d5164;
  max-width: 46ch;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 8px;
}
.hero-media { justify-self: center; }
.hero-media img { max-width: 360px; margin: 0 auto; }

/* ---------- Features ---------- */
.features { padding: 64px 0; }
.section-title {
  font-size: clamp(1.6rem, 4vw, 2.2rem);
  text-align: center;
}
.section-lead {
  text-align: center;
  color: #3d5164;
  max-width: 52ch;
  margin: 0 auto 40px;
}
.features-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}
.feature-card {
  background: #ffffff;
  border-radius: var(--radius);
  padding: 28px 24px;
  box-shadow: 0 6px 20px rgba(23, 42, 58, 0.06);
}
.feature-icon {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: rgba(179, 154, 104, 0.15);
  color: var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}
.feature-card h3 { font-size: 1.15rem; margin-bottom: 0.4em; }
.feature-card p { color: #3d5164; margin: 0; font-size: 0.95rem; }

/* ---------- Sempre presente ---------- */
.always-on {
  background: var(--navy);
  color: var(--beige);
  padding: 64px 0;
}
.always-on-inner {
  display: flex;
  flex-direction: column-reverse;
  gap: 40px;
  align-items: center;
}
.always-on-media img { max-width: 260px; margin: 0 auto; }
.always-on-copy { text-align: center; }
.always-on-copy h2 {
  font-size: clamp(1.6rem, 4.5vw, 2.2rem);
  color: var(--beige);
}
.always-on-copy p {
  color: #cfd6da;
  max-width: 48ch;
  margin: 0 auto 24px;
}
.store-actions { display: flex; justify-content: center; }

/* ---------- Para Médicos ---------- */
.for-doctors { padding: 64px 0; }
.for-doctors-inner { max-width: 720px; margin: 0 auto; text-align: center; }
.for-doctors h2 { font-size: clamp(1.6rem, 4.5vw, 2.2rem); }
.for-doctors p { color: #3d5164; margin-bottom: 24px; }
.for-doctors .hero-actions { justify-content: center; }

/* ---------- Contato ---------- */
.contact { padding: 64px 0 80px; }
.contact-inner {
  display: flex;
  flex-direction: column;
  gap: 32px;
  max-width: 640px;
  margin: 0 auto;
}
.contact-intro { text-align: center; }
.contact-intro h2 { font-size: clamp(1.6rem, 4.5vw, 2.2rem); }
.contact-intro p { color: #3d5164; }

.contact-form {
  background: #ffffff;
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: 0 6px 20px rgba(23, 42, 58, 0.06);
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.form-row { display: flex; flex-direction: column; gap: 6px; }
.form-row label { font-size: 0.9rem; font-weight: 600; }
.form-row .optional { font-weight: 400; color: var(--sage); }
.form-row input,
.form-row textarea {
  font-family: inherit;
  font-size: 1rem;
  padding: 0.7em 0.9em;
  border: 1.5px solid #d8d2c3;
  border-radius: 8px;
  background: var(--beige);
  color: var(--navy);
  resize: vertical;
}
.form-row input:focus,
.form-row textarea:focus {
  outline: none;
  border-color: var(--gold);
}
.contact-form .btn { align-self: flex-start; }

/* Honeypot: hidden from real users, present for bots */
.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-status {
  margin: 0;
  font-size: 0.9rem;
  min-height: 1.2em;
}
.form-status[data-state="success"] { color: #3f6b4e; }
.form-status[data-state="error"] { color: #a3403a; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--navy);
  color: var(--beige);
  padding: 48px 0 28px;
}
.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  text-align: center;
}
.logo-vertical { height: 90px; width: auto; }
.footer-tagline { color: var(--sage); font-style: italic; margin: 0; }
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  margin: 8px 0;
}
.footer-nav a { color: var(--beige); font-size: 0.9rem; }
.footer-nav a:hover { color: var(--gold); }
.footer-copy {
  color: #7e8b95;
  font-size: 0.82rem;
  margin: 8px 0 0;
}

/* ---------- Desktop breakpoint ---------- */
@media (min-width: 900px) {
  .nav-toggle { display: none; }

  .primary-nav {
    position: static;
    flex-direction: row;
    justify-content: flex-end;
    align-items: center;
    background: transparent;
    padding: 0;
    transform: none;
    gap: 32px;
    width: auto;
  }
  .primary-nav ul { flex-direction: row; gap: 28px; }

  .hero-inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
  .hero-copy { flex: 1; max-width: 560px; }
  .hero-media { flex: 1; }

  .features-grid { grid-template-columns: repeat(4, 1fr); }

  .always-on-inner {
    flex-direction: row;
    align-items: center;
    text-align: left;
  }
  .always-on-media { flex: 1; }
  .always-on-copy { flex: 1; text-align: left; }
  .store-actions { justify-content: flex-start; }

  .footer-inner { flex-direction: row; justify-content: space-between; text-align: left; }
  .footer-nav { margin: 0; }
}
