:root {
  --bg: #f2f4f7;
  --surface: #ffffff;
  --text: #1f2933;
  --muted: #52606d;
  --primary: #0f3d63;
  --primary-soft: #e8f1f8;
  --accent: #c08b2c;
  --border: #d9e2ec;
  --shadow: 0 12px 40px rgba(15, 61, 99, 0.12);
  --radius: 16px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Merriweather", "Georgia", serif;
  color: var(--text);
  background:
    radial-gradient(circle at 10% 10%, rgba(192, 139, 44, 0.14), transparent 30%),
    radial-gradient(circle at 90% 20%, rgba(15, 61, 99, 0.12), transparent 35%),
    var(--bg);
  line-height: 1.7;
}

a {
  color: var(--primary);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.site-wrap {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(8px);
  background: rgba(242, 244, 247, 0.92);
  border-bottom: 1px solid var(--border);
}

.topbar-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 1rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  min-width: 0;
}

.brand-logo {
  width: clamp(170px, 20vw, 260px);
  height: auto;
}

.brand-text {
  min-width: 0;
  display: none;
}

.brand-name {
  margin: 0;
  font-family: "Trebuchet MS", "Segoe UI", sans-serif;
  font-size: 1.1rem;
  color: var(--primary);
  letter-spacing: 0.02em;
}

.brand-sub {
  margin: 0;
  font-family: "Trebuchet MS", "Segoe UI", sans-serif;
  color: var(--muted);
  font-size: 0.85rem;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  justify-content: flex-end;
}

.nav a {
  font-family: "Trebuchet MS", "Segoe UI", sans-serif;
  padding: 0.45rem 0.75rem;
  border-radius: 999px;
  border: 1px solid transparent;
  color: var(--primary);
  transition: all 180ms ease;
}

.nav a:hover,
.nav a:focus-visible {
  text-decoration: none;
  background: var(--primary-soft);
  border-color: #bfd4e4;
}

.nav a.active {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

.main {
  width: min(1120px, 100% - 2rem);
  margin: 2rem auto 2.75rem;
  display: grid;
  gap: 1.2rem;
  flex: 1;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: clamp(1.2rem, 2.4vw, 2rem);
}

.hero {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: clamp(1rem, 3vw, 2rem);
  align-items: center;
}

.hero h1,
.page-title {
  margin: 0 0 0.9rem;
  line-height: 1.25;
  color: #102a43;
  font-size: clamp(1.4rem, 2.2vw, 2rem);
}

.hero-image {
  justify-self: center;
  width: min(100%, 360px);
  border-radius: 12px;
  border: 1px solid var(--border);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12);
}

.highlight {
  border-left: 4px solid var(--accent);
  padding-left: 1rem;
  margin: 1.25rem 0;
  color: #243b53;
}

.section-heading {
  margin: 0.5rem 0 0.8rem;
  font-size: clamp(1.2rem, 1.8vw, 1.45rem);
  color: #102a43;
}

ul {
  padding-left: 1.2rem;
  margin: 0.5rem 0 0;
}

li + li {
  margin-top: 0.42rem;
}

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

.team-member {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1rem;
  background: #fafbfd;
}

.team-member h2 {
  margin: 0;
  font-size: 1.15rem;
  color: #102a43;
}

.team-role {
  margin: 0.45rem 0 0.6rem;
  color: var(--muted);
  font-family: "Trebuchet MS", "Segoe UI", sans-serif;
  font-size: 0.95rem;
}

.meta {
  margin: 0.2rem 0;
  word-break: break-word;
}

.team-logo-wrap {
  display: grid;
  justify-items: center;
  margin-bottom: 0.6rem;
}

.team-logo {
  width: min(100%, 520px);
  height: auto;
}

.team-rows {
  display: grid;
  gap: 0.75rem;
}

.team-row {
  display: grid;
  grid-template-columns: minmax(240px, 320px) 1fr;
  gap: 1rem;
  align-items: start;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 0.9rem;
  background: #fafbfd;
}

.team-row h2 {
  margin: 0;
  font-size: 1.1rem;
  color: #102a43;
}

.team-row .team-role {
  margin: 0.25rem 0 0;
}

.team-data {
  margin: 0;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.2rem 0.75rem;
}

.team-data dt {
  font-weight: 700;
  color: #334e68;
}

.team-data dd {
  margin: 0;
}

.hours {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.4rem 1rem;
  align-items: baseline;
  margin-top: 0.9rem;
}

.hours dt {
  font-weight: 700;
}

.contact-box {
  display: grid;
  gap: 0.45rem;
}

.quick-contact {
  display: grid;
  gap: 0.45rem;
}

.quick-contact strong {
  color: #102a43;
}

.quick-contact-actions {
  margin-top: 0.3rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.quick-contact-actions a {
  display: inline-block;
  padding: 0.45rem 0.75rem;
  border: 1px solid #bfd4e4;
  border-radius: 999px;
  background: var(--primary-soft);
  text-decoration: none;
  font-family: "Trebuchet MS", "Segoe UI", sans-serif;
  font-size: 0.92rem;
}

.footer {
  border-top: 1px solid var(--border);
  background: #ecf0f4;
}

.footer-inner {
  width: min(1120px, 100% - 2rem);
  margin: 0 auto;
  padding: 1rem 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.fade-seq > * {
  opacity: 1;
  transform: none;
  animation: none;
}

@media (max-width: 900px) {
  .topbar-inner {
    flex-direction: column;
    align-items: stretch;
  }

  .nav {
    justify-content: flex-start;
  }

  .hero {
    grid-template-columns: 1fr;
  }

  .team-row {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .main {
    width: min(1120px, 100% - 1rem);
    margin-top: 1.1rem;
  }

  .card {
    padding: 1rem;
  }

  .brand-logo {
    width: clamp(150px, 42vw, 210px);
  }

  .nav {
    gap: 0.25rem;
  }

  .nav a {
    font-size: 0.86rem;
    padding: 0.35rem 0.6rem;
  }
}
