@font-face {
  font-family: "Brother 1816";
  src: url("../fonts/Brother-1816-Book.woff2") format("woff2");
  font-weight: 350;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Brother 1816";
  src: url("../fonts/Brother-1816-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Brother 1816";
  src: url("../fonts/Brother-1816-Medium.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Brother 1816";
  src: url("../fonts/Brother-1816-Bold.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Brother 1816";
  src: url("../fonts/Brother-1816-Extra-Bold.woff2") format("woff2");
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Brother 1816";
  src: url("../fonts/Brother-1816-Black.woff2") format("woff2");
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --brand: #3778c2;
  --brand-mid: #3273b7;
  --brand-accent: #4a98d0;
  --brand-deep: #255a91;
  --brand-soft: #d7ddeb;
  --ink: #1c2a3a;
  --muted: #4a5a6a;
  --muted-soft: #7a8796;
  --paper: #f4f6fa;
  --white: #ffffff;
  --line: rgba(37, 90, 145, 0.14);
  --shadow: 0 20px 50px rgba(37, 90, 145, 0.14);
  --font: "Brother 1816", system-ui, sans-serif;
  --nav-h: 4.75rem;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.125rem;
  font-weight: 350;
  line-height: 1.65;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--brand);
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--brand-deep);
}

h1,
h2,
h3 {
  font-family: var(--font);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.section-title {
  font-size: clamp(1.75rem, 3vw, 2.35rem);
  margin: 0 0 0.75rem;
  color: var(--brand-deep);
}

.section-lead {
  margin: 0;
  color: var(--muted);
  max-width: 36rem;
}

/* ——— Header ——— */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  min-height: var(--nav-h);
  background: #fff;
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.site-header.is-scrolled {
  border-bottom-color: var(--line);
  box-shadow: 0 8px 24px rgba(37, 90, 145, 0.08);
}

.site-header .navbar {
  min-height: var(--nav-h);
  padding-block: 0.65rem;
}

.brand-lockup {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  color: var(--brand-accent);
}

.brand-lockup img {
  height: 40px;
  width: auto;
}

.brand-lockup span {
  font-family: var(--font);
  font-weight: 400;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
  line-height: 1.1;
  text-transform: lowercase;
}

.brand-lockup small {
  display: block;
  font-weight: 350;
  font-size: 0.72rem;
  color: var(--muted-soft);
  letter-spacing: 0.02em;
  text-transform: none;
}

.navbar-nav {
  gap: 0.4rem;
}

.navbar-nav .nav-link {
  font-family: var(--font);
  font-size: 0.95rem;
  font-weight: 700;
  color: #fff !important;
  background: var(--brand-mid);
  padding: 0.45rem 0.9rem !important;
  border-radius: 0.35rem;
  position: relative;
  transition: background 0.2s var(--ease), color 0.2s var(--ease);
}

.navbar-nav .nav-link::after {
  display: none;
}

.navbar-nav .nav-link:hover {
  background: var(--brand-deep);
  color: #fff !important;
}

.navbar-nav .nav-link.active {
  background: var(--brand-soft);
  color: var(--ink) !important;
}

.navbar-toggler {
  border: 0;
  box-shadow: none !important;
}

@media (max-width: 991.98px) {
  .site-header {
    background: #fff;
    overflow: visible;
  }

  .site-header .navbar-collapse {
    flex-basis: 100%;
    width: 100%;
    background: #fff !important;
    border-top: 1px solid var(--line);
    margin-top: 0.5rem;
    padding: 0.75rem 0 0.35rem;
  }

  .site-header .navbar-nav {
    width: 100%;
    gap: 0.45rem;
    padding-bottom: 0.5rem;
  }

  .site-header .navbar-nav .nav-link {
    display: block;
    width: 100%;
    text-align: left;
    padding: 0.75rem 1rem !important;
  }
}

/* ——— Welcome hero (mockup-inspired) ——— */
.hero-welcome {
  position: relative;
  padding: clamp(2rem, 5vw, 3.5rem) 0 clamp(3rem, 7vw, 5rem);
  background:
    radial-gradient(ellipse 50% 40% at 90% 10%, rgba(74, 152, 208, 0.12), transparent 55%),
    radial-gradient(ellipse 40% 35% at 0% 80%, rgba(215, 221, 235, 0.7), transparent 50%),
    var(--white);
  overflow: hidden;
}

.hero-welcome-grid {
  display: grid;
  gap: 2.5rem;
  align-items: center;
}

@media (min-width: 992px) {
  .hero-welcome-grid {
    grid-template-columns: 1.05fr 0.95fr;
    gap: 3rem;
    min-height: calc(100svh - var(--nav-h) - 4rem);
  }
}

.headline-stack {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.45rem;
  margin: 0 0 1.75rem;
}

.headline-pill,
.headline-block {
  display: inline-block;
  color: #fff;
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.03em;
  animation: rise 0.85s var(--ease) both;
}

.headline-pill {
  font-size: clamp(2.2rem, 6vw, 3.6rem);
  background: var(--brand-deep);
  padding: 0.35em 0.7em 0.42em;
  border-radius: 999px;
}

.headline-block {
  font-size: clamp(2.4rem, 6.5vw, 3.9rem);
  background: var(--brand);
  padding: 0.28em 0.45em 0.35em;
  border-radius: 0.2rem;
  animation-delay: 0.08s;
}

.hero-columns {
  display: grid;
  gap: 1.25rem;
  margin-bottom: 1.75rem;
  animation: rise 0.85s var(--ease) 0.14s both;
}

@media (min-width: 640px) {
  .hero-columns {
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
  }
}

.hero-columns p {
  margin: 0;
  color: var(--muted);
  font-size: 1.02rem;
  line-height: 1.55;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  animation: rise 0.85s var(--ease) 0.22s both;
}

.hero-visual {
  position: relative;
  justify-self: center;
  width: min(100%, 420px);
  animation: rise 0.9s var(--ease) 0.18s both;
}

@media (min-width: 992px) {
  .hero-visual {
    width: min(100%, 520px);
    justify-self: end;
  }
}

.hero-blob {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 5;
  background: var(--brand-soft);
  clip-path: polygon(
    18% 0%,
    88% 0%,
    100% 12%,
    96% 78%,
    78% 100%,
    22% 100%,
    0% 82%,
    0% 18%
  );
  border-radius: 40% 48% 42% 50% / 36% 42% 48% 44%;
}

.hero-blob .carousel,
.hero-blob .carousel-inner,
.hero-blob .carousel-item {
  height: 100%;
}

.hero-blob .carousel-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
  transform: scale(1.04);
  transition: transform 8s linear;
}

.hero-blob .carousel-item.active img {
  transform: scale(1);
}

.hero-blob .carousel-indicators {
  margin-bottom: 1.25rem;
}

.hero-blob .carousel-indicators [data-bs-target] {
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background-color: #fff;
}

.btn-brand {
  --bs-btn-bg: var(--brand);
  --bs-btn-border-color: var(--brand);
  --bs-btn-hover-bg: var(--brand-deep);
  --bs-btn-hover-border-color: var(--brand-deep);
  --bs-btn-color: #fff;
  --bs-btn-hover-color: #fff;
  font-family: var(--font);
  font-weight: 700;
  border-radius: 0.35rem;
  padding: 0.75rem 1.35rem;
}

.btn-ghost {
  font-family: var(--font);
  font-weight: 700;
  border-radius: 0.35rem;
  padding: 0.75rem 1.35rem;
  color: var(--brand-deep);
  border: 1.5px solid var(--brand-mid);
  background: transparent;
}

.btn-ghost:hover {
  color: #fff;
  background: var(--brand-mid);
  border-color: var(--brand-mid);
}

/* ——— Sections ——— */
.section {
  padding: clamp(3.5rem, 8vw, 6rem) 0;
}

.section-paper {
  background:
    radial-gradient(ellipse 80% 60% at 10% 0%, rgba(74, 152, 208, 0.12), transparent 55%),
    radial-gradient(ellipse 60% 50% at 100% 100%, rgba(215, 221, 235, 0.8), transparent 50%),
    var(--paper);
}

.service-panel {
  display: grid;
  gap: 1.5rem;
  align-items: center;
}

@media (min-width: 768px) {
  .service-panel {
    grid-template-columns: 1.1fr 0.9fr;
    gap: 3rem;
  }
}

.service-meta {
  display: grid;
  gap: 1rem;
  margin-top: 1.75rem;
}

.service-meta dt {
  font-family: var(--font);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brand-accent);
  margin: 0;
}

.service-meta dd {
  margin: 0.15rem 0 0;
  font-size: 1.25rem;
  font-weight: 700;
  font-family: var(--font);
  color: var(--ink);
}

.service-meta dd a {
  color: var(--brand);
  text-decoration: none;
}

.service-meta dd a:hover {
  color: var(--brand-deep);
  text-decoration: underline;
}

.service-visual {
  position: relative;
  min-height: 280px;
  overflow: hidden;
  border-radius: 1.5rem 2.5rem 1.25rem 2rem;
  box-shadow: var(--shadow);
}

.service-visual img {
  width: 100%;
  height: 100%;
  min-height: 280px;
  object-fit: cover;
}

.belief-block {
  max-width: 40rem;
}

.belief-block p {
  font-size: 1.3rem;
  line-height: 1.5;
  margin: 1rem 0 1.5rem;
  color: var(--muted);
}

.photo-strip {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
}

@media (min-width: 768px) {
  .photo-strip {
    grid-template-columns: 1.2fr 0.8fr;
    grid-template-rows: 1fr 1fr;
    gap: 1rem;
    min-height: 420px;
  }

  .photo-strip .photo:first-child {
    grid-row: 1 / span 2;
  }
}

.photo {
  overflow: hidden;
  border-radius: 1.25rem 1.75rem 1rem 1.5rem;
  min-height: 200px;
}

.photo img {
  width: 100%;
  height: 100%;
  min-height: 200px;
  object-fit: cover;
  transition: transform 0.7s var(--ease);
}

.photo:hover img {
  transform: scale(1.04);
}

/* ——— Inner pages ——— */
.page-hero {
  padding: clamp(2.5rem, 6vw, 4rem) 0 2rem;
  background:
    linear-gradient(180deg, rgba(215, 221, 235, 0.65), transparent 75%),
    var(--white);
}

.page-hero h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  color: var(--brand-deep);
  margin: 0 0 0.75rem;
}

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

.content-block + .content-block {
  margin-top: 2.5rem;
  padding-top: 2.5rem;
  border-top: 1px solid var(--line);
}

.content-block h2 {
  font-size: 1.5rem;
  color: var(--brand-deep);
  margin: 0 0 0.75rem;
}

.content-block .verse {
  margin-top: 1rem;
  padding-left: 1rem;
  border-left: 3px solid var(--brand);
  color: var(--muted);
  font-style: italic;
}

.event-empty,
.contact-note {
  color: var(--muted);
}

.event-feature {
  display: grid;
  gap: 1.5rem;
  align-items: center;
  margin-bottom: clamp(2.5rem, 6vw, 4rem);
}

@media (min-width: 768px) {
  .event-feature {
    grid-template-columns: 1fr 1.1fr;
    gap: 2.5rem;
  }
}

.event-feature-visual {
  overflow: hidden;
  border-radius: 1.5rem 2.25rem 1.25rem 2rem;
  min-height: 240px;
  box-shadow: var(--shadow);
}

.event-feature-visual img {
  width: 100%;
  height: 100%;
  min-height: 240px;
  object-fit: cover;
  object-position: center;
}

.event-label {
  font-family: var(--font);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brand-accent);
  margin: 0 0 0.5rem;
}

.event-feature-body h2 {
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  margin: 0 0 0.35rem;
  color: var(--brand-deep);
}

.event-date {
  font-family: var(--font);
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--ink);
  margin: 0;
}

.event-regular {
  max-width: 46rem;
  padding-top: 2rem;
  border-top: 1px solid var(--line);
}

.event-regular .section-title {
  font-size: 1.5rem;
}

.legal-content {
  max-width: 46rem;
}

.legal-content ul {
  margin: 0 0 1rem;
  padding-left: 1.25rem;
  color: var(--muted);
}

.legal-content li + li {
  margin-top: 0.35rem;
}

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

.legal-content strong {
  color: var(--ink);
  font-weight: 700;
}

.form-control,
.form-control:focus {
  border-radius: 0.5rem;
  border-color: var(--line);
  padding: 0.75rem 1rem;
  box-shadow: none;
  font-family: var(--font);
}

.form-control:focus {
  border-color: var(--brand);
}

/* ——— Footer ——— */
.site-footer {
  background: var(--brand-deep);
  color: rgba(255, 255, 255, 0.82);
  padding: 3rem 0 2rem;
}

.site-footer a {
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
}

.site-footer a:hover {
  color: #fff;
}

.footer-brand {
  font-family: var(--font);
  font-weight: 700;
  color: #fff;
  font-size: 1.15rem;
  margin-bottom: 0.5rem;
  text-transform: lowercase;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.5rem;
  margin: 1.5rem 0;
  padding: 0;
  list-style: none;
}

.footer-copy {
  margin: 0;
  font-size: 0.9rem;
  opacity: 0.7;
}

/* ——— Motion ——— */
@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .headline-pill,
  .headline-block,
  .hero-columns,
  .hero-actions,
  .hero-visual,
  .reveal,
  .hero-blob .carousel-item img,
  .photo img {
    animation: none !important;
    transition: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
}
