/* ===========================
   ORBITA — Global Styles
   =========================== */

:root {
  --teal:       #1E3A4A;
  --teal-light: #2C5470;
  --sage:       #5B8C6A;
  --sage-light: #8FB89F;
  --cream:      #F4EFE4;
  --cream-dark: #E8E0CE;
  --white:      #FFFFFF;
  --text:       #1E2D35;
  --text-muted: #5A6E75;
  --radius:     8px;
  --shadow:     0 2px 16px rgba(30,58,74,.10);
  --transition: .25s ease;
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  background: var(--cream);
  color: var(--text);
  line-height: 1.7;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

/* ── Typography ── */
h1, h2, h3, h4 { line-height: 1.25; }
h1 { font-size: clamp(1.8rem, 4vw, 3rem); font-weight: 700; }
h2 { font-size: clamp(1.4rem, 3vw, 2.2rem); font-weight: 700; color: var(--teal); }
h3 { font-size: 1.2rem; font-weight: 600; }
p  { color: var(--text-muted); }

/* ===========================
   NAVBAR
   =========================== */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--teal);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2rem;
  height: 70px;
  box-shadow: 0 2px 12px rgba(0,0,0,.25);
}
.navbar-brand {
  display: flex;
  align-items: center;
  gap: .75rem;
  flex-shrink: 0;
}
.navbar-brand img {
  height: 46px;
  width: 46px;
  object-fit: contain;
  border-radius: 10px;
  transition: opacity var(--transition);
}
.navbar-brand:hover img { opacity: .85; }
.navbar-brand .brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}
.navbar-brand .brand-name {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--white);
  letter-spacing: .08em;
}
.navbar-brand .brand-sub {
  font-size: .62rem;
  color: var(--sage-light);
  letter-spacing: .04em;
}
.navbar-menu {
  display: flex;
  list-style: none;
  gap: .25rem;
}
.navbar-menu a {
  display: block;
  padding: .5rem 1rem;
  color: rgba(255,255,255,.82);
  font-size: .9rem;
  font-weight: 500;
  border-radius: var(--radius);
  transition: background var(--transition), color var(--transition);
  white-space: nowrap;
}
.navbar-menu a:hover,
.navbar-menu a.active {
  background: var(--sage);
  color: var(--white);
}
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: .5rem;
  background: none;
  border: none;
}
.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}

/* ===========================
   HERO (homepage)
   =========================== */
.hero {
  background: linear-gradient(135deg, var(--teal) 0%, var(--teal-light) 60%, #3A6B5A 100%);
  color: var(--white);
  padding: 6rem 2rem 5rem;
  text-align: center;
}
.hero-logo {
  width: clamp(220px, 35vw, 380px);
  height: auto;
  object-fit: contain;
  border-radius: 16px;
  margin: 0 auto 2rem;
}
.hero h1 { color: var(--white); margin-bottom: .75rem; }
.hero .tagline {
  font-size: 1.15rem;
  color: var(--sage-light);
  max-width: 600px;
  margin: 0 auto 2rem;
}
.hero-actions {
  display: flex;
  gap: .75rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* ===========================
   BUTTONS
   =========================== */
.btn {
  display: inline-block;
  padding: .75rem 2rem;
  border-radius: 50px;
  font-weight: 600;
  font-size: .95rem;
  transition: transform var(--transition), box-shadow var(--transition);
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(0,0,0,.2); }
.btn-primary { background: var(--sage); color: var(--white); }
.btn-outline {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255,255,255,.5);
}
.btn-outline:hover { background: rgba(255,255,255,.1); }

/* ===========================
   PAGE HERO (inner pages)
   =========================== */
.page-hero {
  background: linear-gradient(135deg, var(--teal) 0%, var(--teal-light) 100%);
  color: var(--white);
  padding: 4rem 2rem 3.5rem;
}
.page-hero h1 { color: var(--white); margin-bottom: .5rem; }
.page-hero p  { color: var(--sage-light); font-size: 1.05rem; max-width: 600px; }

/* ===========================
   SECTIONS
   =========================== */
.section { padding: 5rem 2rem; }
.section-alt { background: var(--cream-dark); }
.container { max-width: 1100px; margin: 0 auto; }

.section-header { text-align: center; margin-bottom: 3rem; }
.section-header h2 { margin-bottom: .5rem; }
.section-header p { font-size: 1.05rem; max-width: 600px; margin: 0 auto; }
.divider {
  display: block;
  width: 50px;
  height: 3px;
  background: var(--sage);
  margin: .75rem auto 0;
  border-radius: 2px;
}

/* ===========================
   CARDS GRID
   =========================== */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
}
.cards-grid--5 { grid-template-columns: repeat(5, 1fr); }
.cards-grid--centered {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
}
.cards-grid--centered .card { flex: 0 1 280px; }
.card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 2rem 1.5rem;
  box-shadow: var(--shadow);
  transition: transform var(--transition), box-shadow var(--transition);
  display: flex;
  flex-direction: column;
}
.card:hover { transform: translateY(-4px); box-shadow: 0 8px 28px rgba(30,58,74,.15); }
.card-icon {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--sage), var(--teal-light));
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  font-size: 1.5rem;
}
.card h3 { color: var(--teal); margin-bottom: .6rem; }
.card p  { font-size: .9rem; flex: 1; }
.card-link {
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  margin-top: 1.25rem;
  font-size: .88rem;
  font-weight: 600;
  color: var(--sage);
  transition: gap var(--transition);
}
.card-link:hover { gap: .6rem; }

/* ===========================
   CONTENT BLOCK
   =========================== */
.content-block { max-width: 780px; margin: 0 auto; }
.content-block h3 { color: var(--teal); margin: 2rem 0 .5rem; }
.content-block p  { margin-bottom: 1.2rem; }
.content-block ul { padding-left: 1.4rem; margin-bottom: 1.2rem; }
.content-block ul li { color: var(--text-muted); margin-bottom: .4rem; }

/* ===========================
   TWO-COLUMN LAYOUT
   =========================== */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}
.mt-sm { margin-top: .5rem; }

/* ===========================
   INFO BOXES
   =========================== */
.info-box {
  background: var(--white);
  border-left: 4px solid var(--sage);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 1.25rem 1.5rem;
  box-shadow: var(--shadow);
  margin-bottom: 1.5rem;
}
.info-box h3 { color: var(--teal); margin-bottom: .4rem; }
.info-box p  { font-size: .92rem; }

/* ===========================
   STATS ROW
   =========================== */
.stats-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1.5rem;
  margin: 2rem 0;
}
.stat-box {
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.5rem;
  text-align: center;
  box-shadow: var(--shadow);
}
.stat-value {
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--teal);
  line-height: 1;
  margin-bottom: .35rem;
}
.stat-label {
  font-size: .82rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: .05em;
}

/* ===========================
   GALLERY PLACEHOLDER
   =========================== */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1rem;
  margin: 2rem 0;
}
.gallery-item {
  aspect-ratio: 4/3;
  background: var(--cream-dark);
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
}
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .2s ease;
}
.gallery-item img:hover { transform: scale(1.04); }

.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.85);
  z-index: 1000;
  align-items: center;
  justify-content: center;
  cursor: zoom-out;
}
.lightbox.active { display: flex; }
.lightbox img {
  max-width: 90vw;
  max-height: 90vh;
  object-fit: contain;
  border-radius: var(--radius);
  box-shadow: 0 8px 40px rgba(0,0,0,.5);
}

/* ===========================
   EVENTS LIST
   =========================== */
.event-item {
  border-bottom: 1px solid var(--cream-dark);
  border-radius: var(--radius);
  transition: box-shadow var(--transition);
}
.event-item:hover { box-shadow: inset 0 0 0 2px var(--teal-light); }
.event-summary {
  display: flex;
  gap: 1.5rem;
  padding: 1.25rem .75rem;
  align-items: center;
  cursor: pointer;
  user-select: none;
}
.event-info h3 { transition: color var(--transition); }
.event-expandable .event-summary:hover .event-info h3 { color: var(--sage); }
.event-chevron {
  font-size: 1.2rem;
  color: var(--sage);
  transition: transform var(--transition);
  flex-shrink: 0;
}
.event-item.open .event-chevron { transform: rotate(180deg); }
.event-details {
  max-height: 0;
  overflow: hidden;
  transition: max-height .35s ease;
}
.event-item.open .event-details {
  max-height: 1200px;
  transition: max-height .65s ease;
}
.event-details-inner {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 2rem;
  align-items: start;
  background: var(--cream-dark);
  border-radius: var(--radius);
  padding: 1.5rem;
  margin: 0 .75rem 1.25rem;
}
.event-details-text p { margin-bottom: .85rem; }
.event-details-text p:last-of-type { margin-bottom: 1rem; }
.event-details-inner .img-placeholder { aspect-ratio: 4/3; }
.event-date {
  flex-shrink: 0;
  width: 60px;
  height: 60px;
  background: var(--teal);
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: .7rem;
  text-transform: uppercase;
  letter-spacing: .05em;
  gap: 1px;
}
.event-item--new .event-date { background: var(--sage); }
.event-actions {
  display: flex;
  align-items: center;
  gap: .5rem;
  margin-left: auto;
  flex-shrink: 0;
}
.event-tag-new {
  display: none;
  padding: .2rem .7rem;
  background: var(--sage);
  color: var(--white);
  border-radius: 50px;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .06em;
}
.event-item--new .event-tag-new { display: block; }
.event-date strong { font-size: 1.5rem; line-height: 1; }
.event-date small  { font-size: .6rem; opacity: .75; letter-spacing: .03em; }
.event-info h3 { color: var(--teal); margin-bottom: .3rem; }
.event-info p  { font-size: .88rem; }

/* ===========================
   RESULTS TABLE
   =========================== */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.result-table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  min-width: 520px;
}
.result-table th {
  background: var(--teal);
  color: var(--white);
  padding: .85rem 1.1rem;
  text-align: left;
  font-size: .85rem;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.result-table td {
  padding: .8rem 1.1rem;
  font-size: .9rem;
  border-bottom: 1px solid var(--cream-dark);
  color: var(--text-muted);
}
.result-table tr:last-child td { border-bottom: none; }
.result-table tr:hover td { background: var(--cream); }

.badge {
  display: inline-block;
  padding: .2rem .65rem;
  border-radius: 50px;
  font-size: .75rem;
  font-weight: 600;
}
.badge-green  { background: #D4EDD9; color: #2E7D32; }
.badge-blue   { background: #D0E8F2; color: #1565C0; }
.badge-orange { background: #FDE8CC; color: #E65100; }

/* ===========================
   ACCORDION (Acorni)
   =========================== */
.accordion-item {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin-bottom: 1rem;
  overflow: hidden;
}
.accordion-header {
  width: 100%;
  background: none;
  border: none;
  padding: 1.1rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  font-size: 1rem;
  font-weight: 600;
  color: var(--teal);
  text-align: left;
  transition: background var(--transition);
}
.accordion-header:hover { background: var(--cream); }
.accordion-header .chevron {
  font-size: 1.2rem;
  transition: transform var(--transition);
  color: var(--sage);
  flex-shrink: 0;
}
.accordion-item.open .accordion-header .chevron { transform: rotate(180deg); }
.accordion-body {
  display: none;
  padding: 0 1.5rem 1.25rem;
}
.accordion-body p { font-size: .92rem; }
.accordion-item.open .accordion-body { display: block; }

/* ===========================
   EDITORIAL (Acorni)
   =========================== */
.editorial-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3.5rem;
  align-items: center;
  padding: 3rem 0;
  border-bottom: 1px solid var(--cream-dark);
}
.editorial-block:last-child { border-bottom: none; }
.editorial-block--reverse .editorial-text { order: 2; }
.editorial-block--reverse .editorial-media { order: 1; }

.editorial-text h2 { margin-bottom: 1rem; }
.editorial-text p { margin-bottom: 1rem; }
.editorial-text p:last-child { margin-bottom: 0; }
.editorial-text strong { color: var(--teal); }
.editorial-text em { color: var(--sage); font-style: italic; }

.editorial-media { width: 100%; }
.editorial-media img {
  width: 100%;
  height: auto;
  display: block;
  border: 4px solid var(--teal-light);
  border-radius: 6px;
  box-shadow: 0 4px 16px rgba(30, 58, 74, 0.15);
}
.img-placeholder {
  aspect-ratio: 4/3;
  background: var(--cream-dark);
  border-radius: var(--radius);
  border: 2px dashed var(--sage-light);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  color: var(--text-muted);
}
.img-placeholder span { font-size: 2rem; opacity: .4; }

@media (max-width: 750px) {
  .editorial-block {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  .editorial-block--reverse .editorial-text { order: 1; }
  .editorial-block--reverse .editorial-media { order: 2; }
}

/* ===========================
   SOCIAL
   =========================== */
.social-section {
  background: var(--teal);
  padding: 3rem 2rem;
}
.social-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}
.social-text h2 { color: var(--white); margin-bottom: .4rem; }
.social-text p  { color: var(--sage-light); max-width: 480px; }
.social-links {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}
.social-btn {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  padding: .65rem 1.4rem;
  border-radius: 50px;
  background: rgba(255,255,255,.1);
  color: var(--white);
  font-size: .9rem;
  font-weight: 600;
  border: 1px solid rgba(255,255,255,.2);
  transition: background var(--transition), border-color var(--transition);
}
.social-btn:hover {
  background: var(--sage);
  border-color: var(--sage);
}
@media (max-width: 700px) {
  .social-inner { flex-direction: column; align-items: flex-start; }
}

/* ===========================
   PARTNERS
   =========================== */
.partners {
  padding: 2rem 2rem;
  background: var(--cream-dark);
  text-align: center;
}
.partners-title {
  font-size: .85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
}
.partners-banner {
  max-width: 680px;
  width: 100%;
  height: auto;
  margin: 0 auto;
  border-radius: var(--radius);
}

/* ===========================
   FOOTER
   =========================== */
.footer {
  background: var(--teal);
  color: rgba(255,255,255,.75);
  padding: 1.5rem 2rem;
}
.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid rgba(255,255,255,.12);
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: .75rem;
}
.footer-brand img {
  height: 38px;
  width: 38px;
  object-fit: contain;
  border-radius: 8px;
  flex-shrink: 0;
}
.footer-brand p { font-size: .82rem; color: rgba(255,255,255,.55); margin: 0; }
.footer-contacts {
  display: flex;
  gap: 1.5rem;
  align-items: center;
}
.footer-contacts a {
  font-size: .88rem;
  color: rgba(255,255,255,.6);
  transition: color var(--transition);
}
.footer-contacts a:hover { color: var(--sage-light); }
.footer-bottom {
  max-width: 1100px;
  margin: 1rem auto 0;
  font-size: .78rem;
  color: rgba(255,255,255,.35);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: .5rem;
}

/* ===========================
   RESPONSIVE
   =========================== */
@media (max-width: 900px) {
  .two-col { grid-template-columns: 1fr; gap: 2rem; }
  .navbar-brand .brand-sub { display: none; }
  .cards-grid--5 { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 650px) {
  .navbar { position: relative; }
  .navbar-menu {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 70px;
    left: 0;
    right: 0;
    background: var(--teal);
    padding: 1rem;
    border-top: 1px solid rgba(255,255,255,.1);
    box-shadow: 0 8px 20px rgba(0,0,0,.2);
  }
  .navbar-menu.open { display: flex; }
  .hamburger { display: flex; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
  .section { padding: 3.5rem 1.25rem; }
  .hero { padding: 4rem 1.25rem 3.5rem; }
  .page-hero { padding: 3rem 1.25rem 2.5rem; }
  .hero-logo { width: 110px; height: 110px; }
  .event-details-inner { grid-template-columns: 1fr; }
  .event-summary { flex-wrap: wrap; gap: .6rem; }
  .event-date {
    flex-direction: row;
    width: auto;
    height: auto;
    padding: .3rem .9rem;
    gap: .3rem;
    order: 1;
    font-size: .8rem;
    border-radius: 50px;
  }
  .event-date strong { font-size: .8rem; font-weight: 700; }
  .event-info { order: 3; flex-basis: 100%; }
  .event-actions { order: 2; margin-left: auto; }
  .cards-grid--5 { grid-template-columns: 1fr; }
}