
* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #1f2933;
  background-color: #f8f8f8;
  scroll-behavior: smooth;
}

body {
  line-height: 1.7;
  font-size: 16px;
}

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

a {
  color: #00a896;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.container {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Top logos strip */
.top-strip {
  background-color: #003366;
  padding: 0.4rem 0;
}

.top-strip-inner {
  display: flex;
  align-items: center;
  justify-content: center;
}

.top-strip-inner img {
  max-height: 70px;
}

/* Sticky header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background-color: #ffffff;
  box-shadow: 0 4px 18px rgba(15, 23, 42, 0.1);
}

.header-inner {
  padding: 0.75rem 0 0.65rem;
}

.brand-area {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.brand-logo img {
  max-height: 70px;
}

.brand-text {
  flex: 1 1 auto;
  min-width: 200px;
}

.eyebrow {
  text-transform: uppercase;
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  color: #6b7280;
  font-weight: 600;
}

.brand-text h1 {
  margin: 0.15rem 0;
  font-size: 1.9rem;
  color: #003366;
}

.brand-text p {
  margin: 0.1rem 0;
  font-size: 0.95rem;
  color: #4b5563;
}

.brand-text .url {
  font-size: 0.88rem;
  color: #6b7280;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  padding: 0.2rem;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background-color: #003366;
  margin: 4px 0;
  transition: transform 0.2s, opacity 0.2s;
}

.main-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.6rem;
}

.main-nav a {
  font-size: 0.88rem;
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  border: 1px solid #dde5ee;
  background-color: #f4f7fb;
  color: #003366;
  font-weight: 500;
}

.main-nav a:hover {
  background-color: #e1ecff;
}

/* Hero */
.hero {
  position: relative;
  background-image: linear-gradient(120deg, rgba(0, 51, 102, 0.88), rgba(0, 168, 150, 0.7)), url("images/hero-capitanata.jpg");
  background-size: cover;
  background-position: center;
  color: #ffffff;
  padding: 3.2rem 0;
  overflow: hidden;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom right, rgba(0, 0, 0, 0.25), rgba(0, 0, 0, 0.3));
}

.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 2.1fr) minmax(0, 1.6fr);
  gap: 2.2rem;
  align-items: flex-start;
}

.hero-title {
  margin: 0 0 0.9rem;
  font-size: 2.1rem;
}

.hero-lead {
  margin: 0 0 1.2rem;
  font-size: 1.03rem;
  max-width: 40rem;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.meta-pill {
  display: inline-flex;
  flex-direction: column;
  padding: 0.4rem 0.9rem;
  border-radius: 0.75rem;
  background-color: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.22);
  font-size: 0.85rem;
}

.meta-pill .label {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.68rem;
  opacity: 0.9;
}

.meta-pill .value {
  font-weight: 600;
}

.meta-pill.meta-accent {
  background-color: #00a896;
  color: #022c22;
  border-color: rgba(0, 0, 0, 0.12);
}

.hero-side {
  background-color: rgba(248, 248, 248, 0.98);
  color: #111827;
  border-radius: 1rem;
  padding: 1.5rem 1.6rem;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.35);
}

.hero-side h3 {
  margin-top: 0;
  margin-bottom: 0.9rem;
  font-size: 1.1rem;
  color: #003366;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 0.9rem;
}

.team-card {
  background-color: #ffffff;
  border-radius: 0.75rem;
  padding: 0.65rem 0.75rem;
  border: 1px solid #e5e7eb;
}

.avatar-circle {
  width: 40px;
  height: 40px;
  border-radius: 999px;
  background-color: #003366;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 0.45rem;
}

.team-card h4 {
  margin: 0;
  font-size: 0.95rem;
  color: #111827;
}

.team-card .role {
  margin: 0.15rem 0 0.25rem;
  font-size: 0.8rem;
  color: #6b7280;
}

.profile-link {
  font-size: 0.8rem;
  font-weight: 500;
}

/* Sections */
.section {
  padding: 3rem 0;
  background-color: #ffffff;
}

.section-light {
  background-color: #f8f8f8;
}

.section-header {
  margin-bottom: 1.6rem;
}

.section-kicker {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.7rem;
  color: #9ca3af;
  font-weight: 600;
}

.section-title {
  margin: 0.1rem 0;
  font-size: 1.6rem;
  color: #003366;
}

.section-description {
  margin: 0.35rem 0 0;
  font-size: 0.98rem;
  color: #4b5563;
  max-width: 48rem;
}

.section-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1.4fr);
  gap: 2.2rem;
  align-items: flex-start;
}

/* Summary cards */
.summary-cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

.summary-card {
  background-color: #ffffff;
  border-radius: 0.9rem;
  padding: 1rem 1.15rem;
  border: 1px solid #e5e7eb;
  box-shadow: 0 6px 14px rgba(15, 23, 42, 0.04);
}

.summary-card h3 {
  margin: 0 0 0.4rem;
  font-size: 1.02rem;
  color: #003366;
}

.summary-card ul {
  margin: 0.2rem 0 0;
  padding-left: 1.1rem;
  font-size: 0.92rem;
  color: #374151;
}

.summary-card li {
  margin-bottom: 0.25rem;
}

/* Full academic text */
.full-text p {
  margin: 0 0 0.9rem;
  font-size: 0.96rem;
  color: #374151;
  line-height: 1.8;
}

/* Info card for documents */
.info-card {
  background-color: #f8fafc;
  border-radius: 0.9rem;
  padding: 1.1rem 1.2rem;
  border: 1px solid #d1d5db;
  font-size: 0.92rem;
}

.info-card h3 {
  margin-top: 0;
  font-size: 1rem;
  color: #003366;
}

.documents-list ul {
  list-style: none;
  margin: 0.5rem 0 0;
  padding: 0;
}

.documents-list li {
  margin-bottom: 0.65rem;
}

.doc-link {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.4rem 0.7rem;
  border-radius: 0.7rem;
  border: 1px solid #d1d5db;
  background-color: #ffffff;
  font-size: 0.9rem;
}

.doc-link .icon {
  font-size: 1.1rem;
}

.info-note {
  margin-top: 0.7rem;
  font-size: 0.86rem;
  color: #6b7280;
}

/* Objectives */
.objectives-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1.2rem;
  margin-bottom: 1.8rem;
}

.objective-card {
  background-color: #ffffff;
  border-radius: 0.9rem;
  padding: 1rem 1.1rem;
  border: 1px solid #e5e7eb;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.05);
}

.obj-icon {
  width: 38px;
  height: 38px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #003366;
  color: #ffffff;
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
}

.objective-card h3 {
  margin: 0 0 0.3rem;
  font-size: 1.02rem;
  color: #003366;
}

.objective-card p {
  margin: 0;
  font-size: 0.9rem;
  color: #4b5563;
}

/* Work packages accordion */
.wp-accordion {
  border-radius: 0.9rem;
  border: 1px solid #e5e7eb;
  background-color: #f9fafb;
  margin-bottom: 1.8rem;
}

.wp-accordion details {
  border-bottom: 1px solid #e5e7eb;
}

.wp-accordion details:last-of-type {
  border-bottom: none;
}

.wp-accordion summary {
  list-style: none;
  cursor: pointer;
  padding: 0.75rem 1rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.wp-accordion summary::-webkit-details-marker {
  display: none;
}

.wp-label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  background-color: #00a896;
  color: #ffffff;
  font-size: 0.85rem;
  font-weight: 600;
}

.wp-title {
  font-size: 0.98rem;
  color: #003366;
  font-weight: 500;
}

.wp-body {
  padding: 0 1rem 0.8rem 1rem;
  font-size: 0.9rem;
  color: #4b5563;
}

/* Deliverables highlight */
.deliverables-box {
  border-radius: 0.9rem;
  border: 1px solid #bfdbfe;
  background-color: #eff6ff;
  padding: 1rem 1.1rem;
  margin-bottom: 1.8rem;
  font-size: 0.9rem;
}

.deliverables-box h3 {
  margin-top: 0;
  margin-bottom: 0.5rem;
  font-size: 1.02rem;
  color: #1d4ed8;
}

.deliverables-box ul {
  margin: 0.2rem 0 0;
  padding-left: 1.1rem;
}

/* Results */
.results-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.4fr);
  gap: 2rem;
}

.results-placeholder {
  border-radius: 0.9rem;
  border: 1px dashed #cbd5e1;
  background-color: #ffffff;
  padding: 1rem 1.1rem;
  font-size: 0.9rem;
  color: #6b7280;
}

/* Footer */
.site-footer {
  background-color: #001322;
  color: #e5e7eb;
  padding: 1.8rem 0 1.5rem;
  font-size: 0.85rem;
}

.footer-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.7rem;
}

.footer-text {
  color: #9ca3af;
}

.footer-text p {
  margin: 0.1rem 0;
}

.footer-logos img {
  max-height: 40px;
}

/* Responsive */
@media (max-width: 900px) {
  .hero-inner {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero-side {
    margin-top: 1.5rem;
  }

  .section-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .results-layout {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 720px) {
  .brand-area {
    align-items: center;
  }

  .brand-text h1 {
    font-size: 1.6rem;
  }

  .main-nav {
    display: none;
    flex-direction: column;
    padding-top: 0.6rem;
  }

  .main-nav.nav-open {
    display: flex;
  }

  .nav-toggle {
    display: block;
  }

  .nav-toggle.nav-open span:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
  }

  .nav-toggle.nav-open span:nth-child(2) {
    opacity: 0;
  }

  .nav-toggle.nav-open span:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
  }

  .hero {
    padding: 2.4rem 0;
  }

  .section {
    padding: 2.4rem 0;
  }
}
