:root {
  --white: #ffffff;
  --black: #0a0a0a;
  --blue: #1c6fbf;
  --blue-dark: #164d86;
  --slate: #f4f6f9;
  --graphite: #1f2a36;
  --line: rgba(10, 10, 10, 0.12);
  --shadow: 0 24px 48px rgba(10, 10, 10, 0.12);
  --radius: 24px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: "Open Sans", "Helvetica Neue", Arial, sans-serif;
  color: var(--black);
  background: linear-gradient(135deg, #f7f9fc 0%, #eef2f7 60%, #ffffff 100%);
  line-height: 1.6;
}

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

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

.skip-link {
  position: absolute;
  left: 16px;
  top: -40px;
  background: var(--blue);
  color: var(--white);
  padding: 10px 16px;
  border-radius: 999px;
  z-index: 100;
  font-weight: 600;
  transition: top 0.2s ease;
}

.skip-link:focus {
  top: 16px;
}

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

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

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 20px 0;
}

.logo-block {
  display: flex;
  align-items: center;
  gap: 14px;
}

.logo-block img {
  width: 64px;
  height: 64px;
  object-fit: cover;
  border-radius: 14px;
  border: 1px solid var(--line);
}

.brand-name {
  font-weight: 700;
  letter-spacing: 0.02em;
}

.brand-tag {
  font-size: 0.85rem;
  color: var(--blue-dark);
}

.nav-links {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  font-size: 0.95rem;
  color: var(--graphite);
}

.nav-links a {
  padding: 6px 10px;
  border-radius: 999px;
  transition: background 0.2s ease;
}

.nav-links a:hover {
  background: var(--slate);
}

.hero {
  padding: 80px 0 70px;
  background: radial-gradient(circle at top left, #eef4fb 0%, #ffffff 60%);
}

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

.hero-text h1 {
  font-size: clamp(2.4rem, 4vw, 3.5rem);
  line-height: 1.2;
  margin-bottom: 18px;
}

.lead {
  font-size: 1.05rem;
  color: var(--graphite);
  margin-bottom: 20px;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.25em;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--blue);
  margin-bottom: 12px;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 18px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 22px;
  border-radius: 999px;
  font-weight: 600;
  border: 1px solid transparent;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn.primary {
  background: var(--blue);
  color: var(--white);
  box-shadow: 0 12px 24px rgba(28, 111, 191, 0.25);
}

.btn.ghost {
  border-color: var(--blue);
  color: var(--blue);
  background: var(--white);
}

.btn:hover:not(.product-cta) {
  transform: translateY(-2px);
}

.hero-mottos {
  display: grid;
  gap: 6px;
  font-weight: 600;
  color: var(--blue-dark);
}

.hero-photo {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 22px 42px rgba(10, 10, 10, 0.12);
  background: var(--slate);
  aspect-ratio: 4 / 3;
}

.hero-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.media-slot {
  background: var(--slate);
  border: 1px dashed rgba(10, 10, 10, 0.25);
  border-radius: var(--radius);
  min-height: 260px;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 18px;
  color: var(--graphite);
  overflow: hidden;
}

.media-slot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: calc(var(--radius) - 6px);
}

.media-slot.media-image {
  border: none;
  padding: 0;
  background: transparent;
}

.media-slot.media-image img {
  border-radius: var(--radius);
}

.media-slot.small {
  min-height: 0;
  margin-top: 18px;
  aspect-ratio: 1 / 1;
  max-width: 220px;
  width: 100%;
  justify-self: center;
}

.media-slot.tall {
  min-height: 360px;
}

.section {
  padding: 70px 0;
}

.about {
  background: var(--white);
}

.about-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 32px;
  margin-top: 32px;
  align-items: start;
}

.previous-events h3,
.bio-card h3 {
  font-size: 1.4rem;
  margin-bottom: 10px;
}

.previous-events p {
  color: var(--graphite);
  margin-bottom: 16px;
}

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

.event-gallery img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 16px;
  box-shadow: 0 16px 32px rgba(10, 10, 10, 0.08);
}

.event-gallery .gallery-status {
  grid-column: 1 / -1;
  padding: 16px 18px;
  border-radius: 14px;
  background: rgba(28, 111, 191, 0.12);
  color: var(--graphite);
  font-weight: 600;
  text-align: center;
}

.bio-card {
  background: var(--slate);
  border-radius: var(--radius);
  padding: 24px;
  display: grid;
  gap: 20px;
}

.bio-photo {
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 18px 36px rgba(10, 10, 10, 0.12);
  background: var(--white);
}

.bio-photo img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  object-position: top center;
}

.bio-figure {
  display: grid;
  gap: 6px;
  margin: 0;
}

.photo-caption {
  padding: 0 2px;
  font-size: 0.8rem;
  color: var(--graphite);
  text-align: center;
}

.bio-details p {
  color: var(--graphite);
  margin-bottom: 16px;
}


.section-heading h2 {
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  margin-bottom: 10px;
}

.services {
  background: var(--white);
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
  margin-top: 34px;
}

.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: var(--shadow);
}

.card h3 {
  margin-bottom: 12px;
  font-size: 1.3rem;
}

.card ul {
  list-style: none;
  display: grid;
  gap: 10px;
  color: var(--graphite);
}

.card ul li::before {
  content: "•";
  margin-right: 8px;
  color: var(--blue);
}

.values {
  background: linear-gradient(135deg, #ffffff 0%, #f2f6fb 100%);
}

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

.pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 18px 0 24px;
}

.pill-row span {
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid rgba(28, 111, 191, 0.2);
  background: var(--white);
  font-size: 0.9rem;
}

.product-cta-wrap {
  display: inline-block;
  margin: -14px -16px -18px;
  padding: 14px 16px 18px;
}

.product-cta {
  position: relative;
  overflow: hidden;
  margin-top: 2px;
  padding: 14px 26px;
  font-size: clamp(1rem, 1.8vw, 1.2rem);
  font-weight: 800;
  letter-spacing: 0.01em;
  color: var(--white);
  background: linear-gradient(135deg, #1f79d0 0%, #164d86 100%);
  box-shadow: 0 14px 28px rgba(22, 77, 134, 0.35);
  transform: translateY(0) scale(1);
  transform-origin: center center;
  will-change: transform, box-shadow;
  transition:
    transform 1s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 1s cubic-bezier(0.22, 1, 0.36, 1);
}

.product-cta::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 48%;
  height: 100%;
  background: linear-gradient(
    110deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.08) 46%,
    rgba(255, 255, 255, 0.22) 50%,
    rgba(255, 255, 255, 0.08) 54%,
    rgba(255, 255, 255, 0) 100%
  );
  transform: translateX(-220%);
  pointer-events: none;
}

.product-cta-wrap:hover .product-cta,
.product-cta-wrap:focus-within .product-cta {
  transform: translateY(-3px) scale(1.015);
  box-shadow: 0 19px 34px rgba(22, 77, 134, 0.42);
  animation: ctaLiftUp 1s cubic-bezier(0.22, 1, 0.36, 1) 1 both;
}

.product-cta-wrap:hover .product-cta::before,
.product-cta-wrap:focus-within .product-cta::before {
  animation: ctaShine 1s ease-out 1;
}

.product-cta:focus-visible {
  outline: 3px solid rgba(28, 111, 191, 0.35);
  outline-offset: 3px;
}

@keyframes ctaShine {
  from {
    transform: translateX(-220%);
  }
  to {
    transform: translateX(320%);
  }
}

@keyframes ctaLiftUp {
  0% {
    transform: translateY(0) scale(1);
    box-shadow: 0 14px 28px rgba(22, 77, 134, 0.35);
  }
  65% {
    transform: translateY(-4px) scale(1.018);
    box-shadow: 0 21px 38px rgba(22, 77, 134, 0.44);
  }
  100% {
    transform: translateY(-3px) scale(1.015);
    box-shadow: 0 19px 34px rgba(22, 77, 134, 0.42);
  }
}

.testimonials {
  background: var(--white);
}

.testimonial-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 20px;
  margin: 28px auto 0;
  max-width: 820px;
}

.quote-card {
  background: var(--slate);
  border-radius: var(--radius);
  padding: 28px 30px;
  display: grid;
  gap: 12px;
}

.quote-card p {
  font-size: 1.05rem;
}

.quote-card span {
  color: var(--blue-dark);
  font-weight: 600;
  font-size: 0.9rem;
}

.events {
  background: linear-gradient(135deg, #eff4fb 0%, #ffffff 70%);
}

.event-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
  margin-top: 28px;
}

.event-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 20px;
  display: grid;
  gap: 6px;
}

.event-card span {
  color: var(--blue-dark);
  font-weight: 600;
}

.note {
  margin-top: 20px;
  padding: 16px 20px;
  border-radius: 16px;
  background: rgba(28, 111, 191, 0.08);
}

.contact {
  background: var(--white);
}

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

.contact-card {
  background: var(--slate);
  border-radius: 18px;
  padding: 18px;
  margin: 20px 0;
  display: grid;
  gap: 8px;
  font-weight: 600;
}

.social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  color: var(--blue-dark);
  font-weight: 600;
}

.site-footer {
  padding: 30px 0 40px;
  border-top: 1px solid var(--line);
  background: var(--white);
}

.footer-grid {
  display: grid;
  gap: 8px;
  text-align: center;
  color: var(--graphite);
}

.reveal {
  animation: fadeUp 0.8s ease both;
}

.service-grid .card:nth-child(1) {
  animation-delay: 0.1s;
}

.service-grid .card:nth-child(2) {
  animation-delay: 0.2s;
}

.service-grid .card:nth-child(3) {
  animation-delay: 0.3s;
}

.event-grid .event-card:nth-child(2) {
  animation-delay: 0.2s;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 900px) {
  .nav {
    flex-direction: column;
    align-items: flex-start;
  }

  .nav-links {
    width: 100%;
  }
}

@media (max-width: 640px) {
  .hero {
    padding-top: 60px;
  }

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

  .nav-links {
    gap: 10px;
  }

  .media-slot.small {
    margin-inline: auto;
  }

  .product-cta-wrap {
    display: block;
    margin: 0;
    padding: 8px 0 10px;
  }

  .product-cta {
    display: flex;
    width: 100%;
    max-width: 100%;
    justify-content: center;
    text-align: center;
    line-height: 1.35;
    margin: 0 auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
  }

  .product-cta {
    transition:
      transform 1s cubic-bezier(0.22, 1, 0.36, 1) !important,
      box-shadow 1s cubic-bezier(0.22, 1, 0.36, 1) !important;
  }

  .product-cta-wrap:hover .product-cta,
  .product-cta-wrap:focus-within .product-cta {
    animation: ctaLiftUp 1s cubic-bezier(0.22, 1, 0.36, 1) 1 both !important;
  }

  .product-cta-wrap:hover .product-cta::before,
  .product-cta-wrap:focus-within .product-cta::before {
    animation: ctaShine 1s ease-out 1 !important;
  }
}
