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

:root {
  --primary: #1B4F72;
  --primary-light: #2E86C1;
  --accent: #F39C12;
  --accent-light: #FAD7A0;
  --bg: #F8F6F1;
  --white: #FFFFFF;
  --text: #1C1C1C;
  --muted: #6B6B6B;
  --border: #DDD8CC;
  --card-bg: #FFFFFF;
  --hero-bg: #0D3349;
  --tag-bg: #EAF4FB;
  --tag-text: #1B4F72;
}

body {
  font-family: 'DM Sans', sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
}

/* NAV */
nav {
  background: var(--hero-bg);
  padding: 0 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 58px;
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav-brand { display: flex; align-items: center; gap: 10px; }

.nav-star {
  width: 32px; height: 32px;
  background: var(--accent);
  clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
  flex-shrink: 0;
}

.nav-title { font-family: 'Playfair Display', serif; font-size: 15px; color: #fff; line-height: 1.2; }
.nav-title span { display: block; font-size: 10px; font-weight: 300; color: var(--accent-light); font-family: 'DM Sans', sans-serif; letter-spacing: 0.05em; }

.nav-tabs { display: flex; gap: 2px; }

.nav-tab {
  padding: 6px 14px;
  border-radius: 6px;
  font-size: 13px;
  color: rgba(255,255,255,0.7);
  cursor: pointer;
  border: none;
  background: transparent;
  font-family: 'DM Sans', sans-serif;
  font-weight: 400;
  transition: all 0.2s;
}
.nav-tab:hover { color: #fff; background: rgba(255,255,255,0.08); }
.nav-tab.active { color: #fff; background: rgba(255,255,255,0.15); font-weight: 500; }

/* PAGES */
.page { display: none; }
.page.active { display: block; }

/* HERO */
.hero {
  background: var(--hero-bg);
  padding: 3.5rem 2rem 3rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: -60px; right: -60px;
  width: 280px; height: 280px;
  border-radius: 50%;
  border: 1px solid rgba(243,156,18,0.15);
}
.hero::after {
  content: '';
  position: absolute;
  bottom: -40px; left: -40px;
  width: 200px; height: 200px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.06);
}

.hero-badge {
  display: inline-block;
  background: rgba(243,156,18,0.2);
  color: var(--accent);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.1em;
  padding: 5px 14px;
  border-radius: 20px;
  margin-bottom: 1.5rem;
  border: 1px solid rgba(243,156,18,0.3);
}

.hero h1 { font-family: 'Playfair Display', serif; font-size: 2.2rem; color: #fff; line-height: 1.2; margin-bottom: 0.75rem; font-weight: 700; }
.hero h1 em { color: var(--accent); font-style: italic; }
.hero-sub { font-size: 14px; color: rgba(255,255,255,0.6); margin-bottom: 2rem; font-weight: 300; letter-spacing: 0.03em; }

.hero-cards { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-bottom: 2rem; }

.hero-card {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 12px;
  padding: 14px 20px;
  min-width: 130px;
  text-align: center;
}
.hero-card .hc-icon { font-size: 20px; margin-bottom: 6px; }
.hero-card .hc-val { font-size: 16px; font-weight: 500; color: #fff; }
.hero-card .hc-lbl { font-size: 11px; color: rgba(255,255,255,0.5); margin-top: 2px; }

.countdown-wrap {
  background: rgba(243,156,18,0.12);
  border: 1px solid rgba(243,156,18,0.25);
  border-radius: 12px;
  padding: 14px 24px;
  display: inline-block;
  margin-bottom: 2rem;
}
.countdown-label { font-size: 11px; color: var(--accent); letter-spacing: 0.08em; margin-bottom: 8px; font-weight: 500; }
.countdown { display: flex; gap: 16px; justify-content: center; align-items: flex-end; }
.cd-unit { text-align: center; }
.cd-num { font-size: 28px; font-weight: 700; color: #fff; line-height: 1; font-family: 'Playfair Display', serif; }
.cd-sep { font-size: 22px; color: rgba(255,255,255,0.3); padding-bottom: 4px; }
.cd-lbl { font-size: 9px; color: rgba(255,255,255,0.4); letter-spacing: 0.06em; margin-top: 3px; }

/* SECTION */
.section { padding: 2rem; }
.section-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.3rem;
  color: var(--primary);
  margin-bottom: 1.25rem;
  display: flex;
  align-items: center;
  gap: 10px;
}
.section-title::after { content: ''; flex: 1; height: 1px; background: var(--border); }

/* TIMELINE */
.tl-item { display: flex; gap: 16px; margin-bottom: 12px; align-items: flex-start; }
.tl-dot {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  font-size: 11px;
  font-weight: 500;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
}
.tl-dot.done { background: #27AE60; }
.tl-dot.active { background: var(--accent); color: #0D3349; box-shadow: 0 0 0 4px rgba(243,156,18,0.2); }
.tl-content {
  background: var(--card-bg);
  border: 0.5px solid var(--border);
  border-radius: 10px;
  padding: 12px 16px;
  flex: 1;
}
.tl-date { font-size: 11px; color: var(--muted); margin-bottom: 2px; }
.tl-name { font-size: 14px; font-weight: 500; color: var(--text); }

/* INFO CARDS */
.info-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; margin-bottom: 1.5rem; }
.info-card { background: var(--card-bg); border: 0.5px solid var(--border); border-radius: 12px; padding: 16px; }
.info-card .ic-icon { font-size: 22px; margin-bottom: 8px; }
.info-card .ic-title { font-size: 11px; color: var(--muted); margin-bottom: 4px; letter-spacing: 0.03em; }
.info-card .ic-val { font-size: 14px; font-weight: 500; color: var(--text); line-height: 1.4; }
.info-card.highlight { background: var(--hero-bg); border-color: var(--hero-bg); }
.info-card.highlight .ic-title { color: rgba(255,255,255,0.5); }
.info-card.highlight .ic-val { color: #fff; }

/* AREAS */
.areas-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 8px; }
.area-tag {
  background: var(--tag-bg);
  border: 0.5px solid rgba(27,79,114,0.15);
  border-radius: 8px;
  padding: 10px 12px;
  font-size: 12px;
  color: var(--tag-text);
  display: flex;
  align-items: center;
  gap: 8px;
}
.area-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--primary-light); flex-shrink: 0; }

/* NOTICES */
.notice {
  background: #FEF9EC;
  border: 0.5px solid #F5CBA7;
  border-left: 3px solid var(--accent);
  border-radius: 0 8px 8px 0;
  padding: 12px 16px;
  margin-bottom: 12px;
  font-size: 13px;
  color: var(--text);
  line-height: 1.5;
}
.notice strong { color: #884605; }
.notice.info { background: #EBF5FB; border-color: #AED6F1; border-left-color: var(--primary-light); }
.notice.info strong { color: var(--primary); }

/* DOCS */
.docs-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; }
.doc-card {
  background: var(--card-bg);
  border: 0.5px solid var(--border);
  border-radius: 12px;
  padding: 20px 16px;
  cursor: pointer;
  transition: all 0.2s;
  text-align: center;
  text-decoration: none;
}
.doc-card:hover { border-color: var(--primary-light); box-shadow: 0 2px 12px rgba(27,79,114,0.08); transform: translateY(-1px); }
.doc-icon { font-size: 32px; margin-bottom: 10px; }
.doc-name { font-size: 13px; font-weight: 500; color: var(--text); margin-bottom: 4px; line-height: 1.3; }
.doc-desc { font-size: 11px; color: var(--muted); }
.doc-badge { display: inline-block; margin-top: 10px; padding: 3px 10px; background: var(--tag-bg); border-radius: 20px; font-size: 10px; color: var(--tag-text); font-weight: 500; }

/* FORMS */
.form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; }
.form-card {
  background: var(--card-bg);
  border: 0.5px solid var(--border);
  border-radius: 12px;
  padding: 20px 16px;
  cursor: pointer;
  transition: all 0.2s;
}
.form-card:hover { border-color: var(--primary-light); box-shadow: 0 2px 12px rgba(27,79,114,0.08); }
.form-header { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.form-icon { font-size: 24px; }
.form-title { font-size: 13px; font-weight: 500; color: var(--text); }
.form-desc { font-size: 12px; color: var(--muted); line-height: 1.5; }
.form-req { margin-top: 10px; font-size: 11px; padding: 4px 10px; background: #FEF9EC; border-radius: 20px; color: #884605; display: inline-block; font-weight: 500; }

/* GALLERY */
.gallery-placeholder {
  background: var(--card-bg);
  border: 1.5px dashed var(--border);
  border-radius: 16px;
  padding: 3rem 2rem;
  text-align: center;
}
.gallery-placeholder .gp-icon { font-size: 40px; margin-bottom: 1rem; opacity: 0.4; }
.gallery-placeholder .gp-text { font-size: 14px; color: var(--muted); }
.gallery-placeholder .gp-sub { font-size: 12px; color: var(--muted); margin-top: 6px; opacity: 0.7; }

/* FOOTER */
footer {
  background: var(--hero-bg);
  color: rgba(255,255,255,0.6);
  text-align: center;
  padding: 1.5rem;
  font-size: 12px;
  margin-top: 2rem;
  line-height: 1.6;
}
footer strong { color: rgba(255,255,255,0.85); }

.dev-credit {
  background: var(--hero-bg);
  text-align: center;
  padding: 0.5rem;
  border-top: 1px solid rgba(255,255,255,0.07);
}
.dev-credit a {
  font-size: 12px;
  color: rgba(255,255,255,0.38);
  text-decoration: none;
  letter-spacing: 0.03em;
  transition: color 0.2s;
}
.dev-credit a:hover { color: rgba(255,255,255,0.65); }
.dev-credit .dev-phone { font-size: 11px; margin-top: 2px; display: inline-block; }

.divider { height: 1px; background: var(--border); margin: 1.5rem 0; }

.chip { display: inline-block; padding: 2px 10px; border-radius: 20px; font-size: 11px; font-weight: 500; }
.chip-green { background: #EAFBEA; color: #1A6B1A; }
.chip-amber { background: #FEF9EC; color: #884605; }
.chip-blue { background: #EBF5FB; color: #1B4F72; }

.alert-bar {
  background: linear-gradient(90deg, #0D3349, #1B4F72);
  color: rgba(255,255,255,0.9);
  font-size: 12px;
  padding: 8px 2rem;
  display: flex;
  align-items: center;
  gap: 8px;
}
.alert-bar .ab-dot { width: 7px; height: 7px; background: var(--accent); border-radius: 50%; flex-shrink: 0; animation: pulse 1.5s infinite; }
@keyframes pulse { 0%,100%{opacity:1;} 50%{opacity:0.3;} }

.registration-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--accent);
  color: #0D3349;
  font-size: 12px;
  font-weight: 500;
  padding: 8px 18px;
  border-radius: 8px;
  cursor: pointer;
  border: none;
  font-family: 'DM Sans', sans-serif;
  margin-left: auto;
  text-decoration: none;
  transition: background 0.2s;
}
.registration-btn:hover { background: #F5AB35; }

.payment-box { background: var(--card-bg); border: 0.5px solid var(--border); border-radius: 12px; padding: 16px 20px; margin-top: 12px; }
.pix-label { font-size: 11px; color: var(--muted); margin-bottom: 6px; letter-spacing: 0.04em; }
.pix-key { font-size: 13px; font-weight: 500; color: var(--primary); background: var(--tag-bg); padding: 8px 12px; border-radius: 8px; font-family: monospace; }
.pix-name { font-size: 12px; color: var(--muted); margin-top: 6px; }

/* Mobile */
@media (max-width: 600px) {
  nav {
    flex-direction: column;
    height: auto;
    padding: 10px 1rem 8px;
    gap: 8px;
    align-items: flex-start;
  }
  .nav-tabs {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    width: 100%;
    gap: 2px;
  }
  .nav-tab { padding: 6px 4px; font-size: 11px; text-align: center; }

  .hero h1 { font-size: 1.6rem; }
  .alert-bar { flex-wrap: wrap; }
  .registration-btn { margin-left: 0; }
}

/* ===== DESKTOP ===== */
@media (min-width: 768px) {
  /* Nav */
  nav { padding: 0 3rem; height: 64px; }
  .nav-title { font-size: 17px; }
  .nav-tab { font-size: 14px; padding: 8px 20px; }

  /* Alert bar */
  .alert-bar { padding: 10px 3rem; font-size: 13px; }

  /* Hero */
  .hero { padding: 5rem 3rem 4.5rem; }
  .hero h1 { font-size: 3rem; }
  .hero-sub { font-size: 16px; margin-bottom: 2.5rem; }
  .hero-card { min-width: 155px; padding: 18px 24px; }
  .hero-card .hc-icon { font-size: 24px; }
  .hero-card .hc-val { font-size: 20px; }
  .cd-num { font-size: 36px; }
  .cd-sep { font-size: 28px; }

  /* Seções centralizadas */
  .section {
    max-width: 860px;
    margin-left: auto;
    margin-right: auto;
    padding: 2.5rem 2rem;
  }
  .section + .section { padding-top: 0; }
  .section-title { font-size: 1.5rem; }
  .tl-name { font-size: 15px; }
  .tl-date { font-size: 12px; }
  .notice { font-size: 14px; }

  /* Grids com mais colunas */
  .docs-grid { grid-template-columns: repeat(4, 1fr); }
  .form-grid { grid-template-columns: repeat(2, 1fr); }
  .areas-grid { grid-template-columns: repeat(4, 1fr); }

  /* Footer */
  footer { font-size: 13px; padding: 2rem 3rem; }
}

@media (min-width: 1200px) {
  nav { padding: 0 5rem; }
  .alert-bar { padding: 10px 5rem; }
  .section { max-width: 960px; padding: 3rem 2rem; }
}
