:root {
  --navy: #112237;
  --navy-deep: #0b1830;
  --gold: #d9a441;
  --gold-soft: #f3d189;
  --ivory: #f7f3ee;
  --white: #ffffff;
  --text: #1d2a39;
  --muted: #5d6b7a;
  --line: rgba(17, 34, 55, 0.12);
  --shadow: 0 20px 40px rgba(11, 24, 48, 0.12);
  --max-width: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Inter", sans-serif;
  background: var(--ivory);
  color: var(--text);
  line-height: 1.7;
}

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

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

.container {
  width: min(var(--max-width), calc(100% - 2rem));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(17, 34, 55, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.nav-wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 82px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 700;
  color: var(--white);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 52px;
  height: 52px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold), var(--gold-soft));
  color: var(--navy-deep);
  font-weight: 800;
}

.brand-text {
  font-size: 0.9rem;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 2rem;
  color: rgba(255, 255, 255, 0.84);
  font-size: 0.95rem;
}

.main-nav a {
  position: relative;
  padding: 0.35rem 0;
}

.main-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0;
  height: 2px;
  background: var(--gold-soft);
  transition: width 0.2s ease;
}

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

.hero {
  position: relative;
  background-image: url("https://images.unsplash.com/photo-1513258496099-48168024aec0?auto=format&fit=crop&w=1600&q=80");
  background-size: cover;
  background-position: center;
  min-height: 720px;
  display: flex;
  align-items: center;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(11, 24, 48, 0.85), rgba(11, 24, 48, 0.45));
}

.hero-content {
  position: relative;
  z-index: 1;
  color: var(--white);
  max-width: 760px;
  padding: 76px 0;
}

.eyebrow {
  margin: 0 0 1rem;
  color: var(--gold-soft);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.eyebrow-dark {
  color: var(--gold);
}

h1,
h2,
h3,
h4 {
  margin-top: 0;
  color: var(--navy-deep);
  line-height: 1.1;
  font-family: "Cormorant Garamond", serif;
}

.hero h1 {
  font-size: clamp(3.2rem, 6vw, 6rem);
  color: var(--white);
  margin-bottom: 1rem;
}

.hero-copy {
  max-width: 620px;
  font-size: 1.08rem;
  color: rgba(255, 255, 255, 0.9);
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0.9rem 1.5rem;
  border-radius: 999px;
  font-weight: 700;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.btn-primary {
  background: linear-gradient(135deg, var(--gold), var(--gold-soft));
  color: var(--navy-deep);
  box-shadow: var(--shadow);
}

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

.section-pad {
  padding: 6rem 0;
}

.section-heading {
  margin-bottom: 2rem;
}

.section-heading h2 {
  font-size: clamp(2.5rem, 4vw, 4rem);
  margin-bottom: 0;
}

.center {
  text-align: center;
}

.intro-grid,
.subject-grid,
.values-grid,
.footer-grid {
  display: grid;
  gap: 2rem;
}

.intro-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.info-card,
.subject-card,
.value-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 2rem 1.5rem;
  box-shadow: 0 8px 24px rgba(17, 34, 55, 0.04);
}

.card-number,
.subject-number,
.service-number {
  display: inline-block;
  font-size: 0.82rem;
  font-weight: 800;
  color: var(--gold);
  letter-spacing: 0.12em;
  margin-bottom: 1rem;
}

.info-card h3,
.subject-card h3,
.values-grid h3 {
  font-size: 2rem;
  margin-bottom: 0.8rem;
}

.feature-band {
  background: var(--navy);
  color: rgba(255, 255, 255, 0.8);
  padding: 4rem 0;
}

.feature-band h2,
.feature-band p,
.feature-band .eyebrow {
  color: var(--white);
}

.feature-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  align-items: center;
  gap: 2rem;
}

.subject-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 2rem;
}

.subject-card {
  background: linear-gradient(180deg, var(--white), #fbf7f3);
}

.cta-section {
  padding: 1rem 0 5rem;
}

.cta-block {
  background: linear-gradient(135deg, var(--navy), var(--navy-deep));
  border-radius: 28px;
  padding: 3rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
  box-shadow: var(--shadow);
}

.cta-block h2,
.cta-block .eyebrow {
  color: var(--white);
}

.site-footer {
  background: #0a1627;
  color: rgba(255, 255, 255, 0.8);
  padding-top: 3rem;
}

.footer-grid {
  grid-template-columns: 1.3fr 1fr 1fr;
  padding-bottom: 2rem;
}

.site-footer h3,
.site-footer h4 {
  color: var(--white);
  margin-bottom: 0.8rem;
}

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

.site-footer a:hover {
  color: var(--gold-soft);
}

.contact-modal {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100;
}

.contact-modal.hidden {
  display: none;
}

.contact-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(11, 24, 48, 0.7);
}

.contact-modal-dialog {
  position: relative;
  width: min(640px, calc(100% - 2rem));
  background: var(--white);
  border-radius: 22px;
  padding: 2rem;
  box-shadow: var(--shadow);
}

.modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  border: none;
  background: transparent;
  font-size: 2rem;
  cursor: pointer;
  color: var(--navy-deep);
}

.contact-modal-dialog h3 {
  margin-bottom: 1.5rem;
  font-size: clamp(2.2rem, 3vw, 3rem);
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

label {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  font-weight: 600;
  color: var(--navy-deep);
}

label span {
  font-size: 0.95rem;
}

.full-width {
  grid-column: 1 / -1;
}

input,
textarea {
  width: 100%;
  border: 1px solid rgba(17, 34, 55, 0.16);
  border-radius: 12px;
  padding: 0.9rem 1rem;
  font: inherit;
  color: var(--text);
  background: #fbfaf8;
}

textarea {
  resize: vertical;
  min-height: 120px;
}

.full-width-btn {
  width: 100%;
  margin-top: 1.25rem;
  border: none;
  cursor: pointer;
  font: inherit;
}

.copyright {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 1.2rem 0 2rem;
  color: rgba(255, 255, 255, 0.7);
}

.page-hero {
  background: linear-gradient(135deg, rgba(17, 34, 55, 0.9), rgba(17, 34, 55, 0.75)), url("https://images.unsplash.com/photo-1522202176988-66273c2fd55f?auto=format&fit=crop&w=1600&q=80") center/cover no-repeat;
  padding: 7rem 0 5rem;
}

.small-hero h1 {
  color: var(--white);
  font-size: clamp(2.7rem, 5vw, 4.7rem);
  max-width: 720px;
}

.two-column {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 2.5rem;
  align-items: start;
}

.two-column p {
  margin-top: 0;
  color: var(--muted);
}

.alt-band {
  background: linear-gradient(180deg, #f4efe9, #fffdfb);
}

.values-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.alt-band .eyebrow,
.alt-band h3,
.alt-band p {
  color: var(--navy-deep);
}

.services-layout {
  display: grid;
  gap: 2rem;
}

.service-item {
  display: grid;
  grid-template-columns: 110px 1fr;
  align-items: start;
  gap: 2rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 2rem;
}

.service-number {
  font-size: 2rem;
  color: var(--gold);
  margin: 0;
  letter-spacing: 0;
}

.service-item h2 {
  font-size: clamp(2rem, 3vw, 3rem);
  margin-bottom: 0.5rem;
}

@media (max-width: 900px) {
  .intro-grid,
  .subject-grid,
  .values-grid,
  .footer-grid,
  .feature-grid,
  .two-column {
    grid-template-columns: 1fr 1fr;
  }

  .subject-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .nav-wrap {
    flex-direction: column;
    justify-content: center;
    padding: 1rem 0;
  }

  .main-nav {
    width: 100%;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem 1.2rem;
  }

  .hero {
    min-height: 600px;
  }

  .intro-grid,
  .subject-grid,
  .values-grid,
  .footer-grid,
  .feature-grid,
  .two-column,
  .cta-block,
  .service-item {
    grid-template-columns: 1fr;
    display: grid;
  }

  .cta-block {
    padding: 2.5rem 1.5rem;
  }

  .service-item {
    gap: 1rem;
  }
}
