:root {
  --bg: #0e1624;
  --panel: #121d2f;
  --panel-soft: #17243a;
  --text: #e8edf5;
  --muted: #b3bfd1;
  --accent: #7da2d8;
  --accent-soft: #c8a96b;
  --border: #253653;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  background: radial-gradient(1200px 700px at 90% -10%, #243b63 0%, transparent 45%), var(--bg);
  color: var(--text);
  font-family: "Source Sans 3", "Segoe UI", sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
}

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

.container {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
}

@media (max-width: 640px) {
  .container {
    width: calc(100% - 24px);
  }
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(14, 22, 36, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 76px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: "Merriweather", Georgia, serif;
  letter-spacing: 0.2px;
  font-weight: 700;
  white-space: nowrap;
  flex-shrink: 0;
}

.brand img {
  width: 38px;
  height: 38px;
  object-fit: contain;
  flex-shrink: 0;
}

.menu-toggle {
  display: none;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text);
  border-radius: 8px;
  padding: 10px 16px;
  cursor: pointer;
  font-size: 14px;
  transition: background 0.2s ease, border-color 0.2s ease;
  min-height: 44px;
}

.menu-toggle:hover,
.menu-toggle:focus {
  background: var(--panel);
  border-color: var(--accent);
  outline: none;
}

.menu-toggle.active {
  background: var(--panel);
  border-color: var(--accent);
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 20px;
}

.main-nav a {
  color: var(--muted);
  font-size: 15px;
  overflow-wrap: anywhere;
  padding: 4px 0;
  transition: color 0.2s ease;
}

.main-nav a.active,
.main-nav a:hover {
  color: var(--text);
}

.hero {
  padding: 100px 0 70px;
}

.hero h1 {
  margin: 0 0 18px;
  font-family: "Merriweather", Georgia, serif;
  font-weight: 700;
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 1.2;
}

.hero p {
  max-width: 780px;
  margin: 0 0 30px;
  color: var(--muted);
  font-size: clamp(1.05rem, 2.2vw, 1.3rem);
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.btn {
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 11px 18px;
  font-weight: 600;
  color: var(--text);
  background: var(--panel);
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
  text-align: center;
  overflow-wrap: anywhere;
}

.btn:hover {
  transform: translateY(-2px);
  border-color: var(--accent);
}

.btn.primary {
  background: linear-gradient(140deg, #24406f, #1e355b);
  border-color: #335a94;
}

.section {
  padding: 46px 0;
}

.section-title {
  margin: 0 0 18px;
  font-family: "Merriweather", Georgia, serif;
  font-size: clamp(1.5rem, 3vw, 2.2rem);
}

.lead-block {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 28px;
  color: var(--muted);
  font-size: 1.08rem;
}

.pillars {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.pillar {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 22px;
}

.pillar h3 {
  margin: 0 0 10px;
  font-family: "Merriweather", Georgia, serif;
}

.pillar p {
  color: var(--muted);
}

.pillar ul {
  padding-left: 18px;
  margin: 10px 0 0;
  color: var(--muted);
}

.image-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 14px;
}

.image-grid img {
  width: 100%;
  height: 130px;
  object-fit: cover;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: #0a1220;
}

.image-single {
  margin-top: 14px;
}

.image-single img {
  width: 100%;
  height: 280px;
  object-fit: cover;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: #0a1220;
}

.philosophy {
  text-align: center;
  background: linear-gradient(170deg, #14233b, #0f1a2b);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 42px 24px;
  font-family: "Merriweather", Georgia, serif;
  font-size: clamp(1.4rem, 3vw, 2.4rem);
  line-height: 1.5;
}

.who-for {
  background: var(--panel-soft);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 24px;
}

.who-for ul {
  margin: 8px 0 0;
  padding-left: 20px;
  color: var(--muted);
}

.closing {
  text-align: center;
  padding: 56px 0 28px;
}

.closing p {
  font-size: clamp(1.15rem, 2.6vw, 1.6rem);
  margin: 0;
}

.page-intro {
  padding: 80px 0 24px;
}

.page-intro h1 {
  margin: 0 0 8px;
  font-family: "Merriweather", Georgia, serif;
}

.page-intro p {
  color: var(--muted);
  margin: 0;
}

.cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 20px;
}

.card h3 {
  margin-top: 0;
  font-family: "Merriweather", Georgia, serif;
}

.card p,
.card li {
  color: var(--muted);
  overflow-wrap: anywhere;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 18px;
}

.contact-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.contact-links a {
  color: var(--accent);
}

.social-icon-row {
  display: flex;
  gap: 10px;
  align-items: center;
}

.social-icon-link {
  width: 34px;
  height: 34px;
  border: 1px solid var(--border);
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--text);
  background: #0f1a2b;
}

.social-icon-link:hover {
  border-color: var(--accent);
}

.site-footer {
  margin-top: 60px;
  border-top: 1px solid var(--border);
  background: rgba(11, 18, 30, 0.9);
}

.footer-inner {
  min-height: 84px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}

.footer-tagline {
  color: var(--muted);
  font-size: 0.95rem;
}

.footer-links {
  display: flex;
  gap: 14px;
  color: var(--muted);
  font-size: 0.95rem;
  flex-wrap: wrap;
}

@media (max-width: 980px) {
  .pillars,
  .cards,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .image-single img {
    height: 240px;
  }
}

@media (max-width: 820px) {
  .menu-toggle {
    display: inline-block;
  }

  .main-nav {
    position: absolute;
    left: 0;
    right: 0;
    top: 76px;
    background: #101a2b;
    border-bottom: 1px solid var(--border);
    padding: 0 4vw;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
  }

  .main-nav.open {
    max-height: 400px;
    padding: 14px 4vw 18px;
  }

  .main-nav a {
    width: 100%;
    padding: 12px 0;
    min-height: 44px;
    display: flex;
    align-items: center;
    font-size: 16px;
  }
}

@media (max-width: 640px) {
  .hero {
    padding: 72px 0 46px;
  }

  .cta-row {
    flex-direction: column;
    align-items: stretch;
  }

  .btn {
    width: 100%;
    min-height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .lead-block,
  .who-for,
  .card,
  .pillar {
    padding: 18px;
  }

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

  .image-grid img {
    height: auto;
    min-height: 160px;
    aspect-ratio: 16/9;
  }

  .image-single img {
    height: auto;
    min-height: 200px;
    aspect-ratio: 16/9;
  }

  .footer-inner {
    justify-content: center;
    text-align: center;
    padding: 12px 0;
  }

  .footer-links {
    justify-content: center;
  }
}

@media (max-width: 400px) {
  .header-inner {
    gap: 12px;
    padding: 0 4px;
  }

  .brand {
    font-size: 0.95rem;
    gap: 8px;
  }

  .brand img {
    width: 32px;
    height: 32px;
  }

  .menu-toggle {
    padding: 8px 12px;
    font-size: 13px;
  }

  .hero {
    padding: 60px 0 40px;
  }

  .section {
    padding: 36px 0;
  }

  .lead-block,
  .who-for,
  .card,
  .pillar {
    padding: 16px;
  }
}
