:root {
  --primary: #005482;
  --primary-deep: #083d5d;
  --accent: #f96f4a;
  --accent-soft: #ffb89f;
  --text: #1d1d1d;
  --muted: #6e6e6e;
  --light: #f5f5f5;
  --panel: #ffffff;
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  color: var(--text);
  background: #fff;
  line-height: 1.7;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

button,
input,
textarea,
select {
  font: inherit;
}

.container {
  width: min(1120px, calc(100% - 2rem));
  margin: 0 auto;
}

.section {
  padding: 90px 0;
}

.alt-section {
  background: #f2f2f3;
}

.section-heading {
  margin-bottom: 2.5rem;
}

.section-heading.center {
  text-align: center;
}

h1, h2, h3, h4, h5, h6 {
  margin-top: 0;
  line-height: 1.2;
  color: var(--primary-deep);
}

h1 {
  font-size: clamp(2.4rem, 5vw, 4.1rem);
  font-weight: 300;
  max-width: 760px;
}

h2 {
  font-size: clamp(2rem, 3vw, 3rem);
  font-weight: 600;
}

h3 {
  font-size: clamp(1.4rem, 2vw, 2rem);
  font-weight: 600;
}

h4 {
  font-size: 1.2rem;
  margin-top: 1.5rem;
}

p {
  margin-top: 0;
  font-size: 1.02rem;
}

ul, ol {
  padding-left: 1.2rem;
}

li {
  margin-bottom: 0.55rem;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 78px;
  gap: 1rem;
}

.brand {
  color: var(--primary);
  font-size: 1.8rem;
  font-weight: 700;
  letter-spacing: -0.04em;
}

.brand-mark {
  color: var(--primary);
}

.dot {
  color: var(--accent);
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 1.3rem;
  font-size: 0.96rem;
  color: var(--text);
}

.main-nav a {
  position: relative;
  padding: 0.2rem 0;
}

.main-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.25rem;
  width: 100%;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.2s ease;
}

.main-nav a:hover::after,
.main-nav a:focus-visible::after {
  transform: scaleX(1);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 999px;
  padding: 0.9rem 1.5rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease;
}

.btn:hover,
.btn:focus-visible {
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--accent);
  color: #fff;
}

.btn-light {
  background: rgba(255, 255, 255, 0.9);
  color: var(--primary-deep);
  box-shadow: var(--shadow);
}

.menu-toggle {
  display: none;
  width: 46px;
  height: 46px;
  padding: 0.5rem;
  background: transparent;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 10px;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--primary-deep);
  border-radius: 2px;
  margin: 5px auto;
}

.hero {
  position: relative;
  min-height: 620px;
  background: url("../images/corpediem.jpg") center/cover no-repeat;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.12);
  display: flex;
  align-items: center;
}

.hero-inner {
  width: 100%;
}

.hero-copy {
  max-width: 760px;
  padding-top: 2rem;
  color: #fff;
  margin: 0 auto;
  text-align: center;
}

.hero-copy h1 {
  color: #fff;
  margin-bottom: 1.5rem;
  margin-left: auto;
  margin-right: auto;
}

.split-layout {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.media-col img {
  width: 100%;
  border-radius: 18px;
  box-shadow: var(--shadow);
}

.text-col h2,
.mission h3 {
  margin-bottom: 1.3rem;
}

.text-col h2 span,
.mission h3 span {
  color: var(--accent);
}

.text-link {
  display: inline-block;
  margin-top: 1rem;
  color: var(--primary);
  font-weight: 600;
}

.mission-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2.5rem;
}

.subheading {
  margin-top: 1.5rem;
}

.specialties {
  background: #f4f4f4;
}

.tabs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.7rem;
  margin-bottom: 2rem;
}

.tab-btn {
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 999px;
  padding: 0.8rem 1rem;
  font-weight: 600;
  color: var(--primary-deep);
  cursor: pointer;
  transition: all 0.2s ease;
}

.tab-btn.active {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

.tab-panel {
  display: none;
  background: #fff;
  border-radius: 22px;
  padding: clamp(1.5rem, 4vw, 2.8rem);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.05);
}

.tab-panel.active {
  display: block;
}

.contact-person {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 1.8rem;
  padding-top: 1.2rem;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.contact-person img {
  width: 84px;
  height: 84px;
  border-radius: 50%;
  object-fit: cover;
}

.contact-person h5 {
  margin: 0;
  font-size: 1.1rem;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2rem;
  max-width: 900px;
  margin: 0 auto;
}

.team-card {
  background: #fff;
  border-radius: 22px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
  padding: 1rem;
  text-align: center;
}

.team-image {
  position: relative;
  overflow: hidden;
  border-radius: 18px;
}

.team-image img {
  width: 100%;
  aspect-ratio: 1 / 1.08;
  object-fit: cover;
}

.social-links {
  position: absolute;
  inset: auto 0 0 0;
  display: flex;
  justify-content: center;
  gap: 0.8rem;
  list-style: none;
  margin: 0;
  padding: 0.8rem 1rem 1rem;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.68), rgba(0, 0, 0, 0));
}

.social-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: 700;
}

.team-card h3 {
  margin-top: 1rem;
  margin-bottom: 0.4rem;
  font-size: 1.4rem;
}

.team-card p {
  margin: 0;
  color: var(--muted);
}

.contact-wrap {
  max-width: 1000px;
}

.agenda-btn {
  gap: 0.75rem;
  max-width: 100%;
  padding: 1.1rem 1.8rem;
  background: var(--primary);
  color: #fff;
  font-size: 1.1rem;
  box-shadow: 0 8px 24px rgba(0, 84, 130, 0.2);
}

.agenda-btn svg {
  flex-shrink: 0;
}

.agenda-btn:hover {
  background: var(--primary-deep);
}

.agenda-btn:focus-visible {
  outline: 3px solid var(--primary-deep);
  outline-offset: 4px;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.contact-box {
  background: #fff;
  padding: 2rem 1.4rem;
  border-radius: 18px;
  text-align: center;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.04);
}

.icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: rgba(249, 111, 74, 0.15);
  font-size: 1.7rem;
  margin-bottom: 0.8rem;
}

.contact-box h4 {
  margin-bottom: 0.4rem;
}

.map-card {
  border-radius: 22px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.map-card iframe {
  width: 100%;
  height: 420px;
  border: 0;
  display: block;
}

.site-footer {
  background: #0f2334;
  color: rgba(255, 255, 255, 0.82);
  padding: 1rem 0;
}

.footer-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(12, 20, 28, 0.62);
  padding: 1rem;
  z-index: 100;
}

.modal-backdrop.hidden {
  display: none;
}

.modal {
  position: relative;
  width: min(620px, 100%);
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.22);
  padding: 2rem 1.5rem 1.5rem;
}

.modal h3 {
  margin-bottom: 1rem;
  color: var(--primary-deep);
}

.modal p {
  margin-bottom: 1rem;
}

.modal a {
  color: var(--primary);
  font-weight: 600;
}

.modal-close {
  position: absolute;
  top: 0.8rem;
  right: 0.9rem;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  background: rgba(0, 84, 130, 0.08);
  color: var(--primary-deep);
  font-size: 1.7rem;
  cursor: pointer;
}

.modal-btn {
  margin-top: 0.5rem;
}

@media (max-width: 900px) {
  .main-nav {
    position: absolute;
    left: 1rem;
    right: 1rem;
    top: calc(100% + 0.5rem);
    flex-direction: column;
    align-items: flex-start;
    background: rgba(255, 255, 255, 0.98);
    padding: 1rem 1.25rem;
    border-radius: 14px;
    box-shadow: var(--shadow);
    display: none;
  }

  .main-nav.open {
    display: flex;
  }

  .menu-toggle {
    display: inline-block;
  }

  .nav-cta {
    display: none;
  }

  .split-layout,
  .mission-grid,
  .contact-grid,
  .team-grid {
    grid-template-columns: 1fr;
  }

  .section {
    padding: 72px 0;
  }
}

@media (max-width: 560px) {
  .brand {
    font-size: 1.4rem;
  }

  .hero {
    min-height: 520px;
  }

  .tabs {
    justify-content: flex-start;
  }

  .tab-btn {
    width: 100%;
    text-align: left;
  }

  .footer-wrap {
    flex-direction: column;
    text-align: center;
  }
}
