:root {
  --navy: #102f4a;
  --navy-2: #173d5f;
  --navy-3: #0b2439;
  --gold: #caa536;
  --gold-soft: #e2c66b;
  --ivory: #f8f6ef;
  --paper: #fffdf8;
  --white: #ffffff;
  --text: #18232d;
  --muted: #5b6873;
  --border: rgba(16,47,74,.14);
  --shadow: 0 22px 60px rgba(16,47,74,.12);
  --radius-lg: 28px;
  --radius-md: 20px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Segoe UI", Arial, sans-serif;
  color: var(--text);
  background: var(--ivory);
  line-height: 1.65;
  overflow-x: hidden;
}
body.menu-open { overflow: hidden; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button, a { -webkit-tap-highlight-color: transparent; }

.container {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}
.section-pad { padding: 104px 0; }

.page-progress {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 1000;
  height: 3px;
  background: transparent;
}
.page-progress span {
  display: block;
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, var(--gold), var(--gold-soft));
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 900;
  background: rgba(248,246,239,.94);
  border-bottom: 1px solid rgba(16,47,74,.08);
  backdrop-filter: blur(16px);
}
.nav-wrap {
  min-height: 82px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 13px;
  min-width: 0;
}
.brand-logo {
  width: 58px;
  height: 58px;
  object-fit: cover;
  border-radius: 50%;
  border: 1px solid rgba(202,165,54,.5);
  box-shadow: 0 8px 24px rgba(16,47,74,.12);
}
.brand-name {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.08rem;
  color: var(--navy);
  letter-spacing: .02em;
}
.main-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}
.main-nav a {
  position: relative;
  color: var(--navy);
  font-size: .95rem;
  font-weight: 600;
  padding: 30px 0;
}
.main-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 22px;
  width: 0;
  height: 2px;
  background: var(--gold);
  transition: width .25s ease;
}
.main-nav a:hover::after,
.main-nav a:focus-visible::after { width: 100%; }

.menu-toggle {
  display: none;
  width: 46px;
  height: 46px;
  border: 1px solid rgba(16,47,74,.18);
  border-radius: 12px;
  background: var(--paper);
  padding: 11px;
  cursor: pointer;
}
.menu-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  margin: 5px 0;
  background: var(--navy);
  transition: transform .25s ease, opacity .25s ease;
}
.menu-toggle.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle.active span:nth-child(2) { opacity: 0; }
.menu-toggle.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.hero {
  position: relative;
  min-height: calc(100vh - 82px);
  display: flex;
  align-items: center;
  isolation: isolate;
  overflow: hidden;
  background:
    radial-gradient(circle at 84% 18%, rgba(202,165,54,.14), transparent 28%),
    linear-gradient(145deg, #fbfaf6 0%, #f5f1e6 100%);
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -3;
  background-image:
    linear-gradient(rgba(16,47,74,.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(16,47,74,.025) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: linear-gradient(to bottom, rgba(0,0,0,.8), transparent 92%);
}
.hero-shape {
  position: absolute;
  border: 1px solid rgba(202,165,54,.25);
  border-radius: 50%;
  z-index: -2;
}
.hero-shape-one { width: 560px; height: 560px; right: -140px; top: -120px; }
.hero-shape-two { width: 320px; height: 320px; left: -170px; bottom: -80px; }
.hero-grid {
  display: grid;
  grid-template-columns: 1.08fr .92fr;
  gap: 74px;
  align-items: center;
}
.eyebrow {
  margin: 0 0 12px;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: .2em;
  font-size: .76rem;
  font-weight: 700;
}
.eyebrow.light { color: var(--gold-soft); }
h1, h2, h3 {
  font-family: Georgia, "Times New Roman", serif;
  color: var(--navy);
  font-weight: 600;
  line-height: 1.08;
  margin: 0;
}
h1 {
  max-width: 760px;
  font-size: clamp(3rem, 6vw, 5.8rem);
  letter-spacing: -.045em;
}
h2 { font-size: clamp(2.25rem, 4vw, 4rem); }
h3 { font-size: clamp(1.8rem, 3vw, 2.55rem); }
.gold-rule {
  width: 76px;
  height: 3px;
  margin: 28px 0 30px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--gold), var(--gold-soft));
}
.gold-rule.center { margin-left: auto; margin-right: auto; }
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}
.btn {
  min-height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px 20px;
  border-radius: 14px;
  border: 1px solid transparent;
  font-weight: 700;
  transition: transform .22s ease, box-shadow .22s ease, background-color .22s ease;
}
.btn svg { width: 19px; height: 19px; fill: currentColor; }
.btn:hover { transform: translateY(-2px); }
.btn-primary {
  color: var(--white);
  background: var(--navy);
  box-shadow: 0 12px 26px rgba(16,47,74,.18);
}
.btn-primary:hover { background: var(--navy-2); }
.btn-outline {
  color: var(--navy);
  background: rgba(255,255,255,.52);
  border-color: rgba(202,165,54,.72);
}
.btn-outline:hover { box-shadow: 0 12px 26px rgba(16,47,74,.08); }
.hero-visual {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 550px;
}
.logo-halo {
  position: absolute;
  width: 86%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(202,165,54,.24), rgba(202,165,54,0) 68%);
  filter: blur(6px);
}
.logo-card {
  position: relative;
  width: min(490px, 92%);
  padding: 26px;
  border: 1px solid rgba(202,165,54,.34);
  border-radius: 34px;
  background: rgba(255,255,255,.62);
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
}
.logo-card::before,
.logo-card::after {
  content: "";
  position: absolute;
  width: 72px;
  height: 72px;
  border-color: var(--gold);
  opacity: .75;
}
.logo-card::before { left: -12px; top: -12px; border-left: 2px solid; border-top: 2px solid; border-radius: 18px 0 0 0; }
.logo-card::after { right: -12px; bottom: -12px; border-right: 2px solid; border-bottom: 2px solid; border-radius: 0 0 18px 0; }
.hero-logo { width: 100%; border-radius: 24px; }

.services-overview { background: var(--paper); }
.section-heading { max-width: 720px; margin: 0 auto 56px; text-align: center; }
.service-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 28px;
}
.service-panel {
  position: relative;
  overflow: hidden;
  padding: 42px;
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, #fff 0%, #fbfaf5 100%);
  border: 1px solid var(--border);
  box-shadow: 0 18px 48px rgba(16,47,74,.08);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.service-panel:hover {
  transform: translateY(-5px);
  border-color: rgba(202,165,54,.42);
  box-shadow: 0 24px 58px rgba(16,47,74,.13);
}
.service-panel::after {
  content: "";
  position: absolute;
  right: -55px;
  top: -55px;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  border: 24px solid rgba(202,165,54,.06);
}
.panel-icon {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  margin-bottom: 26px;
  border-radius: 16px;
  background: var(--navy);
  box-shadow: 0 10px 24px rgba(16,47,74,.15);
}
.panel-icon svg { width: 34px; height: 34px; fill: var(--gold-soft); }
.panel-title-row { padding-bottom: 24px; border-bottom: 1px solid rgba(16,47,74,.1); }
.panel-kicker {
  display: block;
  margin-bottom: 8px;
  color: var(--gold);
  font-size: .76rem;
  text-transform: uppercase;
  letter-spacing: .18em;
  font-weight: 700;
}
.service-list {
  list-style: none;
  margin: 26px 0 0;
  padding: 0;
  display: grid;
  gap: 13px;
}
.service-list li {
  position: relative;
  padding: 12px 14px 12px 38px;
  border-radius: 12px;
  background: rgba(16,47,74,.035);
  color: #23313b;
}
.service-list li::before {
  content: "";
  position: absolute;
  left: 15px;
  top: 50%;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gold);
  transform: translateY(-50%);
  box-shadow: 0 0 0 4px rgba(202,165,54,.12);
}

.detail-band { position: relative; overflow: hidden; }
.civil-band {
  padding: 96px 0;
  background: linear-gradient(135deg, var(--navy-3) 0%, var(--navy) 58%, #1b4a70 100%);
}
.civil-band::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 12% 20%, rgba(226,198,107,.1), transparent 25%);
  pointer-events: none;
}
.civil-band h2 { color: var(--white); }
.detail-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: .8fr 1.2fr;
  gap: 64px;
  align-items: start;
}
.detail-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 14px;
}
.detail-list span {
  min-height: 62px;
  display: flex;
  align-items: center;
  padding: 16px 18px;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 14px;
  color: var(--white);
  background: rgba(255,255,255,.06);
  backdrop-filter: blur(4px);
}
.family-band { background: #f2eee3; }
.family-band::before {
  content: "";
  position: absolute;
  left: 7%;
  top: 18%;
  width: 1px;
  height: 64%;
  background: linear-gradient(var(--gold), transparent);
}
.detail-grid.inverse { grid-template-columns: .82fr 1.18fr; }
.light-list span {
  color: var(--navy);
  border-color: rgba(16,47,74,.12);
  background: rgba(255,255,255,.58);
}

.contact { background: var(--paper); }
.contact-card {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: .85fr 1.15fr;
  gap: 50px;
  padding: 54px;
  border-radius: 32px;
  border: 1px solid rgba(202,165,54,.32);
  background: linear-gradient(135deg, rgba(255,255,255,.98), rgba(248,246,239,.98));
  box-shadow: var(--shadow);
}
.contact-card::after {
  content: "";
  position: absolute;
  right: -120px;
  bottom: -120px;
  width: 290px;
  height: 290px;
  border-radius: 50%;
  border: 38px solid rgba(202,165,54,.065);
}
.contact-actions {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 14px;
}
.contact-number {
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-areas: "label cta" "number cta";
  gap: 3px 18px;
  align-items: center;
  padding: 20px 22px;
  border: 1px solid rgba(16,47,74,.11);
  border-radius: 16px;
  background: rgba(255,255,255,.84);
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.contact-number:hover {
  transform: translateX(4px);
  border-color: rgba(202,165,54,.62);
  box-shadow: 0 12px 26px rgba(16,47,74,.08);
}
.contact-label { grid-area: label; color: var(--muted); font-size: .82rem; }
.contact-number strong { grid-area: number; color: var(--navy); font-size: clamp(1.2rem, 2vw, 1.55rem); }
.contact-cta {
  grid-area: cta;
  padding: 9px 13px;
  border-radius: 10px;
  background: var(--navy);
  color: var(--white);
  font-size: .86rem;
  font-weight: 700;
}

.site-footer {
  padding: 34px 0;
  color: rgba(255,255,255,.88);
  background: var(--navy-3);
  border-top: 1px solid rgba(226,198,107,.25);
}
.footer-grid {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
}
.footer-brand { display: flex; align-items: center; gap: 13px; font-family: Georgia, "Times New Roman", serif; }
.footer-logo { width: 52px; height: 52px; object-fit: cover; border-radius: 50%; border: 1px solid rgba(226,198,107,.45); }
.footer-phones { display: flex; flex-wrap: wrap; gap: 20px; }
.footer-phones a { color: var(--gold-soft); font-weight: 650; }

.reveal {
  opacity: 1;
  transform: none;
}
.motion-ready .reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .7s ease, transform .7s ease;
}
.motion-ready .reveal.reveal-delay { transition-delay: .12s; }
.motion-ready .reveal.visible { opacity: 1; transform: translateY(0); }

:focus-visible { outline: 3px solid rgba(202,165,54,.7); outline-offset: 4px; }

@media (max-width: 980px) {
  .section-pad { padding: 82px 0; }
  .hero { min-height: auto; }
  .hero-grid { grid-template-columns: 1fr; gap: 42px; }
  .hero-copy { text-align: center; }
  .hero-copy .gold-rule { margin-left: auto; margin-right: auto; }
  .hero-actions { justify-content: center; }
  .hero-visual { min-height: 420px; }
  .logo-card { width: min(430px, 84%); }
  .detail-grid,
  .detail-grid.inverse,
  .contact-card { grid-template-columns: 1fr; }
  .detail-grid { gap: 34px; }
  .contact-card { gap: 22px; }
}

@media (max-width: 760px) {
  .container { width: min(100% - 28px, 1180px); }
  .nav-wrap { min-height: 74px; }
  .brand-logo { width: 48px; height: 48px; }
  .brand-name { font-size: .98rem; }
  .menu-toggle { display: block; }
  .main-nav {
    position: fixed;
    left: 14px;
    right: 14px;
    top: 84px;
    display: grid;
    gap: 4px;
    padding: 12px;
    border: 1px solid rgba(16,47,74,.12);
    border-radius: 18px;
    background: rgba(255,253,248,.98);
    box-shadow: 0 20px 52px rgba(16,47,74,.18);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-12px);
    transition: opacity .22s ease, transform .22s ease, visibility .22s ease;
  }
  .main-nav.open { opacity: 1; visibility: visible; transform: translateY(0); }
  .main-nav a { padding: 13px 14px; border-radius: 10px; }
  .main-nav a:hover { background: rgba(16,47,74,.05); }
  .main-nav a::after { display: none; }
  .hero { min-height: calc(100svh - 74px); padding: 70px 0 82px; }
  h1 { font-size: clamp(2.55rem, 12vw, 4.25rem); }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .btn { width: 100%; }
  .hero-visual { min-height: 330px; }
  .logo-card { width: min(340px, 90%); padding: 16px; border-radius: 24px; }
  .hero-logo { border-radius: 18px; }
  .service-columns { grid-template-columns: 1fr; }
  .service-panel { padding: 28px 22px; }
  .detail-list { grid-template-columns: 1fr; }
  .contact-card { padding: 32px 22px; border-radius: 24px; }
  .contact-number { grid-template-columns: 1fr; grid-template-areas: "label" "number" "cta"; }
  .contact-cta { justify-self: start; margin-top: 8px; }
  .footer-grid { flex-direction: column; text-align: center; }
  .footer-phones { justify-content: center; }
}

@media (max-width: 460px) {
  .section-pad { padding: 68px 0; }
  .brand-name { display: none; }
  .hero { padding-top: 58px; }
  .hero-visual { min-height: 290px; }
  .logo-card { width: 92%; }
  .section-heading { margin-bottom: 36px; }
  .civil-band { padding: 74px 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  .reveal, .motion-ready .reveal { opacity: 1; transform: none; }
}
