/* Investir em Portugal — shared styles */
:root {
  --pt-green: #0a6b3b;        /* verde Portugal, mais sóbrio */
  --pt-green-deep: #064a28;
  --pt-red: #b8202b;          /* vermelho Portugal, levemente dessaturado */
  --br-green: #1aa54a;        /* verde Brasil */
  --br-yellow: #f4c81e;       /* amarelo Brasil, levemente quebrado */
  --ink: #1a1f1c;
  --ink-soft: #4a524d;
  --ink-mute: #7a807c;
  --paper: #faf8f3;           /* creme suave */
  --paper-2: #f3efe6;
  --line: #e6e1d4;
  --line-strong: #d2cab9;
  --white: #ffffff;
  --shadow-sm: 0 1px 2px rgba(20, 30, 22, 0.06);
  --shadow: 0 8px 24px -8px rgba(20, 30, 22, 0.12), 0 2px 4px rgba(20,30,22,0.04);
  --shadow-lg: 0 24px 60px -20px rgba(20, 30, 22, 0.18), 0 4px 8px rgba(20,30,22,0.04);
  --radius: 14px;
  --radius-sm: 8px;
  --serif: "Instrument Serif", "Cormorant Garamond", Georgia, serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", "SF Mono", ui-monospace, monospace;
}

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

html, body {
  margin: 0;
  padding: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body { min-height: 100vh; }

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

a { color: inherit; }

/* Typography */
.serif { font-family: var(--serif); font-weight: 400; letter-spacing: -0.01em; }
.mono  { font-family: var(--mono); font-feature-settings: "tnum" 1; }
.eyebrow {
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

h1, h2, h3 { margin: 0; }

/* Container */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 28px;
}

/* Top bar */
.topbar {
  border-bottom: 1px solid var(--line);
  background: rgba(250, 248, 243, 0.85);
  backdrop-filter: saturate(140%) blur(8px);
  position: sticky; top: 0; z-index: 50;
}
.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.brand {
  display: flex; align-items: center; gap: 12px;
  font-family: var(--serif);
  font-size: 22px;
  letter-spacing: -0.01em;
  color: var(--ink);
  text-decoration: none;
}
.brand-mark {
  width: 28px; height: 28px;
  border-radius: 50%;
  background:
    conic-gradient(from 220deg,
      var(--pt-green) 0 25%,
      var(--br-green) 25% 50%,
      var(--br-yellow) 50% 75%,
      var(--pt-red) 75% 100%);
  box-shadow: inset 0 0 0 4px var(--paper);
  position: relative;
}
.brand-mark::after {
  content: "";
  position: absolute; inset: 9px;
  border-radius: 50%;
  background: var(--ink);
}
.topbar-meta {
  display: flex; align-items: center; gap: 18px;
  font-size: 13px;
  color: var(--ink-soft);
}
.topbar-meta .dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--br-green);
  box-shadow: 0 0 0 4px rgba(26, 165, 74, 0.18);
  animation: pulse 2.2s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 4px rgba(26, 165, 74, 0.18); }
  50%      { box-shadow: 0 0 0 8px rgba(26, 165, 74, 0.05); }
}

/* Buttons */
.btn {
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.01em;
  padding: 14px 22px;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, color 0.15s ease;
  text-decoration: none;
  white-space: nowrap;
}
.btn-primary {
  background: var(--pt-green);
  color: var(--paper);
  box-shadow: 0 4px 14px -4px rgba(10, 107, 59, 0.5);
}
.btn-primary:hover { background: var(--pt-green-deep); transform: translateY(-1px); box-shadow: 0 8px 22px -6px rgba(10, 107, 59, 0.55); }
.btn-accent {
  background: var(--pt-red);
  color: var(--paper);
  box-shadow: 0 4px 14px -4px rgba(184, 32, 43, 0.45);
}
.btn-accent:hover { filter: brightness(0.95); transform: translateY(-1px); }
.btn-ghost {
  background: transparent;
  border-color: var(--line-strong);
  color: var(--ink);
}
.btn-ghost:hover { background: var(--paper-2); }
.btn-block { width: 100%; }
.btn[disabled] { opacity: 0.55; cursor: not-allowed; transform: none !important; }

/* Form */
.form { display: flex; flex-direction: column; gap: 14px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label {
  font-size: 12px;
  font-family: var(--mono);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.field input, .field select, .field textarea {
  font-family: var(--sans);
  font-size: 15px;
  padding: 13px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line-strong);
  background: var(--white);
  color: var(--ink);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
  width: 100%;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--pt-green);
  box-shadow: 0 0 0 3px rgba(10, 107, 59, 0.12);
}
.field-error { color: var(--pt-red); font-size: 12px; }

.date-options { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.date-card {
  border: 1px solid var(--line-strong);
  background: var(--white);
  border-radius: var(--radius-sm);
  padding: 14px 14px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 4px;
  transition: all 0.15s ease;
  position: relative;
}
.date-card:hover { border-color: var(--pt-green); }
.date-card input { position: absolute; opacity: 0; pointer-events: none; }
.date-card.selected {
  border-color: var(--pt-green);
  background: linear-gradient(180deg, rgba(10,107,59,0.05), rgba(10,107,59,0.02));
  box-shadow: inset 0 0 0 1px var(--pt-green);
}
.date-card .day {
  font-family: var(--serif);
  font-size: 34px;
  line-height: 1;
  color: var(--ink);
}
.date-card .month {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.date-card .time {
  font-size: 13px;
  color: var(--ink-soft);
  margin-top: 2px;
}
.date-card .check {
  position: absolute; top: 12px; right: 12px;
  width: 18px; height: 18px; border-radius: 50%;
  border: 1.5px solid var(--line-strong);
  display: grid; place-items: center;
  background: var(--white);
}
.date-card.selected .check {
  background: var(--pt-green); border-color: var(--pt-green);
}
.date-card.selected .check::after {
  content: ""; width: 5px; height: 9px; border: solid var(--white);
  border-width: 0 2px 2px 0; transform: rotate(45deg) translate(-1px, -1px);
}

/* Footer */
.footer {
  border-top: 1px solid var(--line);
  background: var(--paper-2);
  padding: 40px 0 28px;
  margin-top: 80px;
  font-size: 13px;
  color: var(--ink-soft);
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 32px;
  align-items: start;
}
.footer h4 {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink);
  margin-bottom: 12px;
  font-weight: 600;
}
.footer p { margin: 4px 0; }
.footer-bottom {
  border-top: 1px solid var(--line);
  margin-top: 32px;
  padding-top: 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 12px;
}
.bis-mark {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--ink);
}
.bis-mark-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--pt-red);
}

/* Card */
.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

/* Flag stripe — subtle decorative element */
.flag-stripe {
  display: inline-flex;
  height: 4px;
  border-radius: 2px;
  overflow: hidden;
  width: 56px;
}
.flag-stripe span { flex: 1; }
.fs-pt-g { background: var(--pt-green); }
.fs-pt-r { background: var(--pt-red); }
.fs-br-g { background: var(--br-green); }
.fs-br-y { background: var(--br-yellow); }

/* Utilities */
.muted { color: var(--ink-soft); }
.tight { letter-spacing: -0.02em; }
.flex { display: flex; }
.gap-8 { gap: 8px; } .gap-12 { gap: 12px; } .gap-16 { gap: 16px; } .gap-24 { gap: 24px; }
.center { align-items: center; }
.between { justify-content: space-between; }

/* Responsive */
@media (max-width: 880px) {
  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
}
