/* Farmácia Rosa Moschetta — design system institucional */
:root {
  --brand: #1a7a5c;
  --brand-dark: #0f4f3c;
  --brand-light: #e8f5f0;
  --accent: #2d9b75;
  --text: #1a1a1a;
  --text-muted: #5a5a5a;
  --bg: #ffffff;
  --bg-soft: #f7faf8;
  --border: #e2ebe7;
  --radius: 10px;
  --shadow: 0 4px 20px rgba(15, 79, 60, 0.08);
  --font: "Segoe UI", system-ui, -apple-system, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

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

a { color: var(--brand); text-decoration: none; }
a:hover { color: var(--brand-dark); }

.container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* Header */
.site-header {
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 1px 8px rgba(0,0,0,0.04);
}

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

.logo {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--brand-dark);
  letter-spacing: -0.02em;
}

.logo span { color: var(--brand); font-weight: 500; }

.nav {
  display: flex;
  gap: 1.25rem;
  flex-wrap: wrap;
  align-items: center;
}

.nav a {
  color: var(--text-muted);
  font-size: 0.95rem;
  font-weight: 500;
}

.nav a:hover,
.nav a.active { color: var(--brand); }

/* Hero */
.hero {
  background: linear-gradient(135deg, var(--brand-light) 0%, #fff 60%);
  padding: 3.5rem 0 3rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 2.5rem;
  align-items: center;
}

.hero h1 {
  font-size: clamp(1.75rem, 4vw, 2.35rem);
  line-height: 1.25;
  color: var(--brand-dark);
  margin-bottom: 0.75rem;
}

.hero .lead {
  color: var(--text-muted);
  font-size: 1.05rem;
  margin-bottom: 1.5rem;
  max-width: 36ch;
}

.hero-banner {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  aspect-ratio: 4/3;
  object-fit: cover;
  width: 100%;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.7rem 1.35rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.95rem;
  border: none;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s;
}

.btn-primary {
  background: var(--brand);
  color: #fff;
}

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

.btn-secondary {
  background: #fff;
  color: var(--brand);
  border: 1.5px solid var(--brand);
}

.btn-secondary:hover {
  background: var(--brand-light);
  color: var(--brand-dark);
}

.btn-group { display: flex; flex-wrap: wrap; gap: 0.75rem; }

/* Sections */
section { padding: 3rem 0; }

.section-title {
  font-size: 1.5rem;
  color: var(--brand-dark);
  margin-bottom: 0.4rem;
}

.section-sub {
  color: var(--text-muted);
  margin-bottom: 2rem;
  max-width: 55ch;
}

.bg-soft { background: var(--bg-soft); }

/* Cards */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.25rem;
}

.card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
}

.card h3 {
  font-size: 1.05rem;
  color: var(--brand-dark);
  margin-bottom: 0.5rem;
}

.card p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

.card-icon {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: var(--brand-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  margin-bottom: 0.85rem;
}

/* Process */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.25rem;
  counter-reset: step;
}

.step {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.35rem;
  position: relative;
}

.step::before {
  counter-increment: step;
  content: counter(step);
  display: inline-flex;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--brand);
  color: #fff;
  font-size: 0.85rem;
  font-weight: 700;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.65rem;
}

.step h3 { font-size: 1rem; margin-bottom: 0.35rem; color: var(--brand-dark); }
.step p { font-size: 0.9rem; color: var(--text-muted); }

/* Company info table */
.company-box {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.company-box table {
  width: 100%;
  border-collapse: collapse;
}

.company-box th,
.company-box td {
  text-align: left;
  padding: 0.85rem 1.15rem;
  border-bottom: 1px solid var(--border);
  font-size: 0.95rem;
}

.company-box th {
  width: 38%;
  background: var(--brand-light);
  color: var(--brand-dark);
  font-weight: 600;
}

.company-box tr:last-child th,
.company-box tr:last-child td { border-bottom: none; }

/* Form */
.form-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
  box-shadow: var(--shadow);
  max-width: 560px;
}

.form-group {
  margin-bottom: 1rem;
}

.form-group label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 0.35rem;
  color: var(--text);
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 0.65rem 0.85rem;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  font-family: inherit;
  font-size: 0.95rem;
  transition: border-color 0.2s;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--brand);
}

.form-group textarea { min-height: 120px; resize: vertical; }

.form-note {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 0.75rem;
}

/* Legal pages */
.legal-content {
  max-width: 720px;
  padding: 2.5rem 0 3.5rem;
}

.legal-content h1 {
  font-size: 1.75rem;
  color: var(--brand-dark);
  margin-bottom: 0.5rem;
}

.legal-content .meta {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 2rem;
}

.legal-content h2 {
  font-size: 1.15rem;
  color: var(--brand-dark);
  margin: 1.75rem 0 0.5rem;
}

.legal-content p,
.legal-content li {
  color: var(--text-muted);
  margin-bottom: 0.65rem;
  font-size: 0.95rem;
}

.legal-content ul {
  padding-left: 1.25rem;
  margin-bottom: 1rem;
}

/* Footer */
.site-footer {
  background: var(--brand-dark);
  color: #c8e6db;
  padding: 2.25rem 0 1.5rem;
  margin-top: auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 1.75rem;
}

.footer-brand {
  font-weight: 700;
  color: #fff;
  font-size: 1.05rem;
  margin-bottom: 0.5rem;
}

.footer-grid p,
.footer-grid a {
  font-size: 0.9rem;
  color: #c8e6db;
}

.footer-grid a:hover { color: #fff; }

.footer-grid h4 {
  color: #fff;
  font-size: 0.9rem;
  margin-bottom: 0.6rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.12);
  padding-top: 1rem;
  font-size: 0.85rem;
  color: #9ecbb8;
}

/* Responsive */
@media (max-width: 768px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-banner { order: -1; max-height: 220px; object-fit: cover; }
  .footer-grid { grid-template-columns: 1fr; gap: 1.5rem; }
  .header-inner { flex-direction: column; align-items: flex-start; }
}
