/* Centro Qualifica Comenius — Stylesheet */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600&family=Sora:wght@400;600&display=swap');

:root {
  --green-dark:  #1B5E45;
  --green-mid:   #2A7A5A;
  --green-light: #E8F5EE;
  --teal:        #2BADA6;
  --teal-light:  #E0F4F3;
  --lilac:       #7B6BA8;
  --lilac-light: #EEE9F8;
  --gray-bg:     #F6F5F0;
  --gray-border: #E2E0D8;
  --text-primary:   #1A1A16;
  --text-secondary: #555550;
  --text-muted:     #999990;
  --white: #ffffff;
  --radius-sm: 8px;
  --radius-md: 12px;
  --font-body: 'Plus Jakarta Sans', sans-serif;
  --font-display: 'Sora', sans-serif;
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--font-body); background: var(--white); color: var(--text-primary); font-size: 16px; line-height: 1.6; -webkit-font-smoothing: antialiased; }

nav { position: sticky; top: 0; z-index: 100; background: rgba(255,255,255,0.96); backdrop-filter: blur(8px); border-bottom: 1px solid var(--gray-border); padding: 0 2rem; }
.nav-inner { max-width: 1100px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; height: 64px; }
.nav-logo img { height: 40px; width: auto; display: block; }
.nav-links { display: flex; gap: 0; list-style: none; }
.nav-links a { font-size: 13px; color: var(--text-secondary); text-decoration: none; padding: 8px 13px; border-radius: var(--radius-sm); transition: color 0.15s, background 0.15s; }
.nav-links a:hover { color: var(--text-primary); background: var(--gray-bg); }
.nav-links a.active { color: var(--green-dark); font-weight: 600; }
.nav-cta { font-size: 13px; font-weight: 600; color: var(--white) !important; background: var(--green-dark) !important; padding: 9px 18px !important; border-radius: var(--radius-sm) !important; }
.nav-cta:hover { background: var(--green-mid) !important; }

.container { max-width: 1100px; margin: 0 auto; padding: 0 2rem; }
section { padding: 5rem 0; }
hr.divider { border: none; border-top: 1px solid var(--gray-border); margin: 0; }

.hero { background: var(--green-dark); padding: 5rem 2rem 4rem; position: relative; overflow: hidden; }
.hero::after { content: ''; position: absolute; top: -100px; right: -100px; width: 400px; height: 400px; border-radius: 50%; background: rgba(255,255,255,0.04); pointer-events: none; }
.hero-inner { max-width: 1100px; margin: 0 auto; display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; position: relative; z-index: 1; }
.hero-badge { display: inline-flex; align-items: center; gap: 6px; background: rgba(255,255,255,0.1); color: rgba(255,255,255,0.75); font-size: 12px; padding: 5px 14px; border-radius: 20px; border: 1px solid rgba(255,255,255,0.2); margin-bottom: 1.5rem; }
.hero h1 { font-family: var(--font-display); font-size: clamp(24px, 3vw, 38px); font-weight: 600; color: var(--white); line-height: 1.25; margin-bottom: 1.25rem; }
.hero h1 span { color: rgba(255,255,255,0.65); font-weight: 400; }
.hero p { font-size: 15px; color: rgba(255,255,255,0.7); line-height: 1.7; margin-bottom: 2rem; }
.btn-primary { display: inline-flex; align-items: center; gap: 8px; background: var(--white); color: var(--green-dark); font-size: 14px; font-weight: 600; font-family: var(--font-body); padding: 12px 22px; border-radius: var(--radius-sm); border: none; cursor: pointer; text-decoration: none; transition: background 0.15s; }
.btn-primary:hover { background: var(--green-light); }
.hero-sub { font-size: 12px; color: rgba(255,255,255,0.4); margin-top: 1rem; }
.hero-right { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.hero-img { border-radius: var(--radius-md); overflow: hidden; aspect-ratio: 4/3; background: rgba(255,255,255,0.08); }
.hero-img img { width: 100%; height: 100%; object-fit: cover; display: block; opacity: 0.85; }
.hero-img.tall { grid-row: span 2; aspect-ratio: auto; }

.section-label { font-size: 11px; font-weight: 600; color: var(--text-muted); letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 0.6rem; }
.section-title { font-family: var(--font-display); font-size: clamp(20px, 2.5vw, 26px); font-weight: 600; color: var(--text-primary); margin-bottom: 2rem; line-height: 1.25; }

.profiles-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.profile-card { background: var(--white); border: 1px solid var(--gray-border); border-radius: var(--radius-md); padding: 1.5rem; transition: border-color 0.15s, transform 0.15s; }
.profile-card:hover { border-color: #b0b0a8; transform: translateY(-2px); }
.profile-card .card-img { width: 100%; aspect-ratio: 16/9; border-radius: var(--radius-sm); overflow: hidden; margin-bottom: 1.25rem; background: var(--gray-bg); }
.profile-card .card-img img { width: 100%; height: 100%; object-fit: cover; }
.profile-icon { width: 44px; height: 44px; border-radius: var(--radius-sm); display: flex; align-items: center; justify-content: center; font-size: 22px; margin-bottom: 1rem; }
.profile-icon.green { background: var(--green-light); }
.profile-icon.teal { background: var(--teal-light); }
.profile-icon.lilac { background: var(--lilac-light); }
.profile-card h3 { font-size: 15px; font-weight: 600; color: var(--text-primary); margin-bottom: 0.5rem; line-height: 1.35; }
.profile-card p { font-size: 13px; color: var(--text-secondary); line-height: 1.55; }
.profile-tag { display: inline-block; margin-top: 1rem; font-size: 11px; font-weight: 600; padding: 3px 10px; border-radius: 20px; }
.profile-tag.green { background: var(--green-light); color: var(--green-dark); }
.profile-tag.teal { background: var(--teal-light); color: var(--teal); }
.profile-tag.lilac { background: var(--lilac-light); color: var(--lilac); }

.steps-section { background: var(--gray-bg); }
.steps-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 2rem; }
.step-line { width: 32px; height: 3px; background: var(--green-light); margin-bottom: 1rem; border-radius: 2px; }
.step-num { font-size: 11px; font-weight: 600; color: var(--green-mid); margin-bottom: 0.5rem; letter-spacing: 0.05em; }
.step h4 { font-size: 15px; font-weight: 600; color: var(--text-primary); margin-bottom: 0.5rem; line-height: 1.3; }
.step p { font-size: 13px; color: var(--text-secondary); line-height: 1.6; }

.impact-intro { display: flex; align-items: center; gap: 1rem; margin-bottom: 0.5rem; flex-wrap: wrap; }
.anos-badge { display: inline-flex; align-items: center; gap: 6px; background: var(--teal-light); color: var(--teal); font-size: 12px; font-weight: 600; padding: 5px 14px; border-radius: 20px; }
.impact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 16px; margin-bottom: 0.75rem; }
.impact-card { background: var(--gray-bg); border-radius: var(--radius-sm); padding: 1.5rem; text-align: center; }
.impact-num { font-family: var(--font-display); font-size: 40px; font-weight: 600; color: var(--green-dark); line-height: 1; margin-bottom: 6px; }
.impact-label { font-size: 12px; color: var(--text-secondary); line-height: 1.4; }
.impact-note { font-size: 11px; color: var(--text-muted); text-align: right; margin-top: 0.5rem; }

.areas-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px; }
.area-pill { background: var(--white); border: 1px solid var(--gray-border); border-radius: var(--radius-sm); padding: 0.65rem 1rem; display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--text-primary); transition: border-color 0.15s; }
.area-pill:hover { border-color: #b0b0a8; }

.equipa-section { background: var(--gray-bg); }
.team-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 16px; }
.team-card { background: var(--white); border: 1px solid var(--gray-border); border-radius: var(--radius-md); overflow: hidden; transition: border-color 0.15s, transform 0.15s; }
.team-card:hover { border-color: #b0b0a8; transform: translateY(-2px); }
.team-photo { width: 100%; aspect-ratio: 1/1; overflow: hidden; background: var(--green-light); display: flex; align-items: center; justify-content: center; }
.team-photo img { width: 100%; height: 100%; object-fit: cover; object-position: top; display: block; }
.avatar-initials { font-size: 22px; font-weight: 600; color: var(--green-dark); font-family: var(--font-body); }
.team-info { padding: 0.75rem 0.9rem; }
.team-info h4 { font-size: 13px; font-weight: 600; color: var(--text-primary); }
.team-info p { font-size: 11px; color: var(--text-secondary); margin-top: 2px; line-height: 1.4; }

.cta-section { background: var(--green-dark); text-align: center; }
.cta-section h2 { font-family: var(--font-display); font-size: clamp(20px, 2.5vw, 30px); font-weight: 600; color: var(--white); margin-bottom: 0.75rem; }
.cta-section p { font-size: 15px; color: rgba(255,255,255,0.7); line-height: 1.7; margin-bottom: 2rem; }
.btn-white { display: inline-flex; align-items: center; gap: 8px; background: var(--white); color: var(--green-dark); font-size: 14px; font-weight: 600; font-family: var(--font-body); padding: 12px 28px; border-radius: var(--radius-sm); border: none; cursor: pointer; text-decoration: none; transition: background 0.15s; }
.btn-white:hover { background: var(--green-light); }

.parceiros-logos { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.parceiro-item { background: var(--white); border: 1px solid var(--gray-border); border-radius: var(--radius-sm); padding: 10px 18px; display: flex; align-items: center; min-height: 52px; }
.parceiro-item img { height: 30px; width: auto; display: block; opacity: 0.85; }
.parceiro-item span { font-size: 12px; color: var(--text-secondary); }

.footer { background: var(--gray-bg); border-top: 1px solid var(--gray-border); padding: 2rem 0; }
.footer-inner { max-width: 1100px; margin: 0 auto; padding: 0 2rem; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 1.5rem; }
.footer-left { display: flex; flex-direction: column; gap: 0.5rem; }
.footer-meta { font-size: 11px; color: var(--text-muted); display: flex; gap: 1rem; flex-wrap: wrap; }
.footer-meta a { color: var(--text-muted); text-decoration: none; }
.footer-meta a:hover { color: var(--text-secondary); }
.footer-right { display: flex; flex-direction: column; align-items: flex-end; gap: 0.5rem; }
.footer-right .p2030-logo { height: 56px; width: auto; }
.footer-cofinanced { font-size: 10px; color: var(--text-muted); text-align: right; }

@keyframes fadeUp { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: translateY(0); } }
.hero-left > * { animation: fadeUp 0.5s ease both; }
.hero-badge { animation-delay: 0.05s; }
.hero h1 { animation-delay: 0.15s; }
.hero p { animation-delay: 0.25s; }
.btn-primary { animation-delay: 0.35s; }
.hero-sub { animation-delay: 0.4s; }

@media (max-width: 800px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-right { display: none; }
}
@media (max-width: 480px) {
  .team-grid { grid-template-columns: repeat(2, 1fr); }
}
