@import url('https://fonts.googleapis.com/css2?family=Source+Sans+3:wght@300;400;600;700&family=Playfair+Display:wght@500;600&display=swap');

:root {
  --brand: #404f56;
  --brand-dark: #2c373b;
  --brand-soft: #5d7077;
  --accent: #b8c7cb;
  --light: #f5f7f8;
  --white: #ffffff;
  --text: #1f2a2e;
  --muted: #5b6b70;
  --shadow: 0 18px 40px rgba(38, 47, 52, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: 'Source Sans 3', system-ui, -apple-system, sans-serif;
  color: var(--text);
  background: var(--light);
  line-height: 1.6;
}

a {
  color: inherit;
  text-decoration: none;
}

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

.container {
  width: min(1200px, 92vw);
  margin: 0 auto;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  padding: 0.75rem 1rem;
  background: var(--brand);
  color: var(--white);
  z-index: 2000;
}

.skip-link:focus {
  left: 1rem;
  top: 1rem;
}

.site-header {
  background: var(--white);
  border-bottom: 1px solid #e3e7e8;
  position: sticky;
  top: 0;
  z-index: 1000;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1rem 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.brand img {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  object-fit: cover;
  border: 2px solid var(--brand);
}

.brand strong {
  display: block;
  font-size: 1rem;
  color: var(--brand);
  letter-spacing: 0.02em;
}

.brand span {
  font-size: 0.85rem;
  color: var(--muted);
}

.nav-toggle {
  display: none;
  background: var(--brand);
  color: var(--white);
  border: none;
  padding: 0.65rem 1rem;
  border-radius: 999px;
  font-weight: 600;
  cursor: pointer;
}

.nav ul {
  list-style: none;
  display: flex;
  gap: 1.25rem;
  padding: 0;
  margin: 0;
}

.nav a {
  color: var(--brand);
  font-weight: 600;
  font-size: 0.95rem;
  position: relative;
}

.nav a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 0;
  height: 2px;
  background: var(--brand);
  transition: width 0.2s ease;
}

.nav a:hover::after,
.nav a:focus::after,
.nav a.active::after {
  width: 100%;
}

.hero {
  padding: 2.5rem 0 3rem;
}

.slider {
  position: relative;
  border-radius: 28px;
  overflow: hidden;
  box-shadow: var(--shadow);
  background: var(--brand-dark);
}

.slide {
  min-height: 420px;
  display: none;
  background-size: cover;
  background-position: center;
  position: relative;
  color: var(--white);
}

.slide.active {
  display: flex;
  align-items: center;
}

.slide::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(32, 40, 44, 0.78), rgba(32, 40, 44, 0.2));
}

.slide-content {
  position: relative;
  z-index: 2;
  padding: 3rem;
  max-width: 560px;
}

.slide-content h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2rem, 3vw, 3.2rem);
  margin: 0 0 1rem;
}

.slide-content p {
  margin: 0 0 1.5rem;
  font-size: 1.05rem;
  color: #e4ecee;
}

.button-group {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.75rem 1.5rem;
  border-radius: 999px;
  font-weight: 600;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn.primary {
  background: var(--white);
  color: var(--brand);
}

.btn.secondary {
  border: 1px solid rgba(255, 255, 255, 0.7);
  color: var(--white);
}

.btn:hover,
.btn:focus {
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.2);
}

.slider-controls {
  position: absolute;
  right: 1.5rem;
  bottom: 1.5rem;
  display: flex;
  gap: 0.5rem;
  z-index: 3;
}

.slider-controls button {
  background: rgba(255, 255, 255, 0.9);
  border: none;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  cursor: pointer;
  color: var(--brand);
  font-weight: 700;
}

.section {
  padding: 3rem 0;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 1rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.section-header h2 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.6rem, 2.4vw, 2.3rem);
  margin: 0;
  color: var(--brand-dark);
}

.section-header p {
  margin: 0;
  color: var(--muted);
  max-width: 520px;
}

.card-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.card {
  background: var(--white);
  padding: 1.5rem;
  border-radius: 20px;
  box-shadow: 0 10px 24px rgba(40, 52, 56, 0.08);
  border: 1px solid #e6ecee;
  transition: transform 0.2s ease, border 0.2s ease;
}

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

.card h3 {
  margin: 0 0 0.75rem;
  color: var(--brand);
}

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

.two-column {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  align-items: center;
}

.highlight-box {
  background: var(--white);
  border-left: 6px solid var(--brand);
  padding: 1.5rem;
  border-radius: 16px;
  box-shadow: 0 12px 24px rgba(43, 52, 56, 0.08);
}

.mission-grid {
  display: grid;
  gap: 1rem;
}

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

.gallery-grid figure {
  margin: 0;
  background: var(--white);
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid #e6ecee;
  box-shadow: 0 10px 20px rgba(40, 52, 56, 0.08);
}

.gallery-grid figcaption {
  padding: 0.75rem 1rem 1rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.page-hero {
  background: var(--white);
  padding: 2.5rem 0;
  border-bottom: 1px solid #e6ecee;
}

.page-hero h1 {
  margin: 0 0 0.75rem;
  font-family: 'Playfair Display', serif;
  color: var(--brand-dark);
}

.page-hero p {
  margin: 0;
  color: var(--muted);
  max-width: 640px;
}

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

.list-card {
  background: var(--white);
  padding: 1.25rem;
  border-radius: 16px;
  border: 1px solid #e6ecee;
}

.list-card h3 {
  margin: 0 0 0.5rem;
  color: var(--brand);
}

.list-card ul {
  margin: 0.5rem 0 0;
  padding-left: 1.1rem;
  color: var(--muted);
  display: grid;
  gap: 0.35rem;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2rem;
  align-items: start;
}

.contact-form {
  background: var(--white);
  padding: 2rem;
  border-radius: 20px;
  border: 1px solid #e6ecee;
  box-shadow: 0 12px 24px rgba(40, 52, 56, 0.08);
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin-bottom: 1rem;
}

.form-field input,
.form-field textarea,
.form-field select {
  padding: 0.65rem 0.75rem;
  border-radius: 10px;
  border: 1px solid #cbd6da;
  font-family: inherit;
}

.form-field textarea {
  min-height: 140px;
  resize: vertical;
}

.form-message {
  padding: 0.75rem 1rem;
  border-radius: 10px;
  background: #f1f5f6;
  color: var(--muted);
  margin-top: 0.5rem;
}

.form-message.success {
  background: #e6f2ef;
  color: #2f5b52;
}

.form-message.error {
  background: #fdeceb;
  color: #8b2f2b;
}

.site-footer {
  background: var(--brand-dark);
  color: var(--white);
  padding: 2.5rem 0 2rem;
  margin-top: 3rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
}

.footer-grid h3 {
  margin-top: 0;
  font-size: 1.05rem;
}

.footer-grid ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.5rem;
}

.footer-grid a {
  color: #d8e0e2;
}

.footer-note {
  margin-top: 2rem;
  font-size: 0.85rem;
  color: #c4d0d3;
}

@media (max-width: 900px) {
  .nav-toggle {
    display: inline-flex;
  }

  .nav {
    position: absolute;
    top: 100%;
    right: 0;
    left: 0;
    background: var(--white);
    border-bottom: 1px solid #e6ecee;
    display: none;
    padding: 1rem 0;
  }

  body.nav-open .nav {
    display: block;
  }

  .nav ul {
    flex-direction: column;
    align-items: center;
  }

  .slide-content {
    padding: 2rem;
  }
}

@media (max-width: 600px) {
  .header-inner {
    flex-wrap: wrap;
  }

  .slide {
    min-height: 360px;
  }

  .slider-controls {
    right: 1rem;
    bottom: 1rem;
  }

  .btn {
    width: 100%;
  }
}
