/* =========================================================
   DESIGN TOKENS
   Concept: an official registration ledger / document seal.
   Paper-cream base, ink navy text, seal-maroon + gold-ochre
   accents, a rubber-stamp motif as the signature element.
   ========================================================= */
:root {
  --paper: #F6F1E4;
  --paper-alt: #EFE6D0;
  --paper-deep: #E8DDBE;
  --ink: #1F2A44;
  --ink-soft: #5B6472;
  --seal: #8B2635;
  --seal-dark: #6B1D29;
  --seal-tint: #F3DEE0;
  --gold: #B8862E;
  --gold-tint: #F0E1BE;
  --stamp-green: #3F6B4E;
  --stamp-green-tint: #DEEBE1;
  --line: #D8CCA8;
  --line-soft: #E4DAB9;
  --white: #FFFDF8;

  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, monospace;

  --radius: 10px;
  --radius-sm: 6px;
  --shadow-card: 0 2px 0 var(--line), 0 10px 24px -14px rgba(31,42,68,0.35);
  --shadow-pop: 0 18px 40px -18px rgba(31,42,68,0.45);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
.wrap { max-width: 1140px; margin: 0 auto; padding: 0 24px; }
h1, h2, h3, h4 { font-family: var(--font-display); color: var(--ink); margin: 0 0 .4em; letter-spacing: -0.01em; }
p { margin: 0 0 1em; color: var(--ink-soft); }

:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 2px;
}

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

/* =========================================================
   BUTTONS
   ========================================================= */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 15px;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.btn-seal { background: var(--seal); color: var(--white); box-shadow: 0 6px 16px -6px rgba(139,38,53,0.55); }
.btn-seal:hover { background: var(--seal-dark); transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: var(--paper); }
.btn-outline { background: var(--white); color: var(--ink); border-color: var(--line); }
.btn-outline:hover { border-color: var(--seal); color: var(--seal); }
.btn-block { width: 100%; justify-content: center; margin-bottom: 10px; }

/* =========================================================
   HEADER / NAV
   ========================================================= */
.site-header {
  background: var(--paper);
  border-bottom: 2px solid var(--ink);
  position: sticky;
  top: 0;
  z-index: 50;
}
.header-inner {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 24px;
  padding-top: 14px;
  padding-bottom: 14px;
}
.brand { display: flex; align-items: center; gap: 12px; margin-right: auto; }
.brand-seal {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--seal);
  color: var(--white);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display);
  font-weight: 700; font-size: 19px;
  border: 2px solid var(--gold);
  box-shadow: inset 0 0 0 2px var(--seal-dark);
  flex-shrink: 0;
}
.brand-text { display: flex; flex-direction: column; line-height: 1.2; }
.brand-name { font-family: var(--font-display); font-weight: 700; font-size: 17px; }
.brand-sub { font-size: 11.5px; color: var(--ink-soft); text-transform: uppercase; letter-spacing: .06em; }

.main-nav { display: flex; gap: 6px; }
.main-nav a {
  padding: 9px 14px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 14.5px;
  color: var(--ink-soft);
}
.main-nav a:hover { color: var(--ink); background: var(--paper-alt); }
.main-nav a.active { color: var(--white); background: var(--seal); }

.call-btn {
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 13.5px;
  padding: 9px 16px;
  border: 1.5px solid var(--ink);
  border-radius: 999px;
  white-space: nowrap;
}
.call-btn:hover { background: var(--ink); color: var(--paper); }
.nav-toggle { display: none; background: none; border: none; font-size: 22px; cursor: pointer; }

@media (max-width: 880px) {
  /* Mobile dropdown: rendered in normal document flow (not position:absolute),
     so it can never end up hidden or misplaced lower on the page — it always
     pushes directly in below the header row, guaranteed visible. */
  .main-nav {
    display: none;
    width: 100%;
    flex-basis: 100%;
    flex-direction: column;
    gap: 4px;
    padding: 14px 4px 6px;
    margin-top: 6px;
    border-top: 1.5px solid var(--line);
  }
  .main-nav.open { display: flex; }
  .main-nav a { padding: 12px 14px; font-size: 15.5px; }
  .call-btn { display: none; }
  .nav-toggle { display: block; }
}


/* =========================================================
   FLASH MESSAGES
   ========================================================= */
.flash-wrap { padding-top: 16px; }
.flash {
  padding: 12px 18px;
  border-radius: var(--radius-sm);
  font-size: 14.5px;
  font-weight: 500;
  margin-bottom: 10px;
  border: 1.5px solid;
}
.flash-success { background: var(--stamp-green-tint); color: var(--stamp-green); border-color: var(--stamp-green); }
.flash-error { background: var(--seal-tint); color: var(--seal-dark); border-color: var(--seal); }

/* =========================================================
   HERO
   ========================================================= */
.eyebrow {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 14px;
}
.hero { padding: 64px 0 40px; overflow: hidden; }
.hero-inner { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 48px; align-items: center; }
.hero-text h1 { font-size: clamp(32px, 4.2vw, 50px); line-height: 1.1; }
.hero-text h1 em { font-style: italic; color: var(--seal); }
.hero-lede { font-size: 17px; max-width: 52ch; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin: 26px 0 34px; }
.hero-stats { display: flex; gap: 34px; }
.hero-stats div { display: flex; flex-direction: column; }
.hero-stats strong { font-family: var(--font-display); font-size: 26px; color: var(--seal); }
.hero-stats span { font-size: 12.5px; color: var(--ink-soft); text-transform: uppercase; letter-spacing: .04em; }

/* Stamp / seal signature element */
.hero-stamp, .about-seal {
  position: relative;
  width: 280px; height: 280px;
  margin: 0 auto;
  display: flex; align-items: center; justify-content: center;
}
.stamp-ring {
  position: absolute; inset: 0;
  border-radius: 50%;
  border: 2.5px dashed var(--seal);
  animation: spin 40s linear infinite;
}
.stamp-ring span {
  position: absolute; inset: 10px;
  border-radius: 50%;
  border: 1px solid var(--gold);
}
@keyframes spin { to { transform: rotate(360deg); } }
.stamp-center {
  width: 190px; height: 190px;
  border-radius: 50%;
  background: var(--white);
  border: 3px solid var(--seal);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 8px;
  box-shadow: var(--shadow-pop);
  transform: rotate(-8deg);
}
.stamp-icon { font-size: 40px; }
.stamp-label { font-family: var(--font-display); font-weight: 700; font-size: 14px; text-align: center; color: var(--seal-dark); line-height: 1.3; }
.stamp-ring-lg { border-width: 3px; }
.stamp-center-lg { width: 210px; height: 210px; }

@media (max-width: 880px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-stamp { order: -1; width: 200px; height: 200px; }
  .stamp-center { width: 140px; height: 140px; }
  .hero-photo-wrap { order: -1; }
}

/* =========================================================
   UPLOADED IMAGES (hero banner, about photo, service images)
   All use aspect-ratio + object-fit:cover so any uploaded photo
   — whatever its original size — displays at a consistent,
   fully responsive width/height with no layout shift.
   ========================================================= */
.hero-photo-wrap {
  width: 100%;
  max-width: 420px;
  margin: 0 auto;
}
.hero-photo {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius);
  border: 4px solid var(--white);
  box-shadow: var(--shadow-pop);
  display: block;
}

.about-photo-wrap {
  width: 100%;
  max-width: 320px;
  margin: 0 auto;
}
.about-photo {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 50%;
  border: 4px solid var(--white);
  box-shadow: var(--shadow-pop);
  display: block;
}

.service-card-image {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius-sm);
  margin-bottom: 4px;
  display: block;
  background: var(--paper-alt);
}

.detail-banner-image {
  width: 100%;
  aspect-ratio: 21 / 8;
  object-fit: cover;
  border-radius: var(--radius);
  display: block;
  margin: 24px 0 0;
  border: 1.5px solid var(--line);
}
@media (max-width: 700px) {
  .detail-banner-image { aspect-ratio: 16 / 10; }
}

/* =========================================================
   SECTIONS
   ========================================================= */
.section { padding: 56px 0; }
.section-alt { background: var(--paper-alt); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { text-align: center; max-width: 620px; margin: 0 auto 40px; }
.section-lede { font-size: 16px; }
.page-hero { padding: 52px 0 30px; border-bottom: 1px solid var(--line); }
.page-hero h1 { font-size: clamp(28px, 3.6vw, 42px); }

/* =========================================================
   SERVICE CARDS (registration type buttons)
   ========================================================= */
.service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 18px;
}
.service-card {
  background: var(--white);
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 22px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  position: relative;
  box-shadow: var(--shadow-card);
  transition: transform .15s ease, border-color .15s ease;
}
.service-card:hover { transform: translateY(-4px); border-color: var(--seal); }
.service-card::before {
  content: "";
  position: absolute; left: 0; right: 0; bottom: 0;
  height: 4px;
  background: repeating-linear-gradient(90deg, var(--seal) 0 8px, transparent 8px 14px);
  border-radius: 0 0 var(--radius) var(--radius);
  opacity: 0;
  transition: opacity .15s ease;
}
.service-card:hover::before { opacity: 1; }
.service-icon { font-size: 30px; }
.service-icon.big { font-size: 52px; }
.service-name { font-family: var(--font-display); font-weight: 700; font-size: 18px; margin-top: 4px; }
.service-desc { font-size: 13.5px; color: var(--ink-soft); flex-grow: 1; }
.service-cta { font-size: 13px; font-weight: 600; color: var(--seal); margin-top: 6px; }

/* =========================================================
   HOW IT WORKS
   ========================================================= */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.step { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px 20px; }
.step-mark {
  display: inline-flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; border-radius: 50%;
  background: var(--seal); color: var(--white);
  font-family: var(--font-mono); font-weight: 600;
  margin-bottom: 12px;
}
.step h3 { font-size: 16px; margin-bottom: 6px; }
.step p { font-size: 13.5px; margin: 0; }
@media (max-width: 880px) { .steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }

/* =========================================================
   CTA SECTION
   ========================================================= */
.cta-section { background: var(--ink); }
.cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.cta-inner h2, .cta-inner p { color: var(--paper); }
.cta-inner p { color: #C9CEDA; margin: 0; }
@media (max-width: 700px) { .cta-inner { flex-direction: column; text-align: center; } }

/* =========================================================
   SEARCH
   ========================================================= */
.search-form { display: flex; gap: 10px; max-width: 480px; margin-top: 22px; }
.search-form input {
  flex: 1;
  padding: 12px 16px;
  border-radius: 999px;
  border: 1.5px solid var(--line);
  font-family: var(--font-body);
  font-size: 14.5px;
  background: var(--white);
}
.search-form input:focus { border-color: var(--seal); }

.empty-state { text-align: center; padding: 40px 20px; color: var(--ink-soft); }

/* =========================================================
   SERVICE DETAIL / CHECKLIST
   ========================================================= */
.back-link { display: inline-block; font-size: 13.5px; font-weight: 600; color: var(--ink-soft); margin-bottom: 16px; }
.back-link:hover { color: var(--seal); }
.detail-hero-top { display: flex; gap: 20px; align-items: flex-start; }
.meta-row { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 22px; }
.meta-chip {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 10px 16px;
  display: flex; flex-direction: column; gap: 2px;
}
.meta-chip span { font-size: 11px; text-transform: uppercase; letter-spacing: .05em; color: var(--ink-soft); }
.meta-chip strong { font-family: var(--font-mono); font-size: 14px; color: var(--seal-dark); }

.checklist-wrap { display: grid; grid-template-columns: 2fr 1fr; gap: 28px; align-items: flex-start; }
.checklist-card {
  background: var(--white);
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  padding: 30px;
  box-shadow: var(--shadow-card);
}
.checklist-header { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 22px; padding-bottom: 20px; border-bottom: 1px dashed var(--line); }
.stamp-icon-sm { font-size: 30px; }
.checklist-header h2 { font-size: 20px; margin-bottom: 4px; }
.checklist-header p { font-size: 13.5px; margin: 0; }

.doc-list { list-style: none; margin: 0; padding: 0; counter-reset: doc; }
.doc-item { display: flex; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--line-soft); }
.doc-item:last-child { border-bottom: none; }
.doc-num {
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 13px;
  width: 26px; height: 26px;
  border-radius: 50%;
  border: 1.5px solid var(--seal);
  color: var(--seal);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.doc-item.optional .doc-num { border-color: var(--ink-soft); color: var(--ink-soft); }
.doc-body { flex: 1; }
.doc-name-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.doc-name { font-weight: 600; font-size: 15.5px; color: var(--ink); }
.doc-desc { font-size: 13.5px; margin: 4px 0 0; }
.tag {
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .04em;
  padding: 3px 9px;
  border-radius: 999px;
}
.tag-required { background: var(--stamp-green-tint); color: var(--stamp-green); }
.tag-optional { background: var(--gold-tint); color: var(--gold); }

.side-card {
  background: var(--paper-alt);
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  position: sticky;
  top: 90px;
}
.side-card h3 { font-size: 17px; }
.side-card p { font-size: 13.5px; }
.side-note { font-size: 12.5px; background: var(--white); border-radius: var(--radius-sm); padding: 12px 14px; margin-top: 6px; color: var(--ink-soft); border: 1px dashed var(--line); }
.side-note strong { color: var(--ink); }

@media (max-width: 880px) {
  .checklist-wrap { grid-template-columns: 1fr; }
  .side-card { position: static; }
  .detail-hero-top { flex-direction: column; }
}

/* =========================================================
   ABOUT PAGE
   ========================================================= */
.about-wrap { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 48px; align-items: center; }
.about-text h2 { font-size: 26px; }
.about-tagline { color: var(--seal); font-weight: 600; font-size: 15px; }
.about-stats { display: flex; gap: 32px; margin: 22px 0; }
.about-stats strong { font-family: var(--font-display); font-size: 24px; color: var(--seal); display: block; }
.about-stats span { font-size: 12px; color: var(--ink-soft); text-transform: uppercase; }
@media (max-width: 880px) { .about-wrap { grid-template-columns: 1fr; } .about-seal { order: -1; width: 220px; height: 220px; margin-bottom: 10px;} }

.why-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.why-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; text-align: center; }
.why-icon { font-size: 32px; display: block; margin-bottom: 10px; }
.why-card h3 { font-size: 16px; }
.why-card p { font-size: 13.5px; }
@media (max-width: 760px) { .why-grid { grid-template-columns: 1fr; } }

/* =========================================================
   CONTACT PAGE
   ========================================================= */
.contact-wrap { display: grid; grid-template-columns: 1fr 1.3fr; gap: 28px; align-items: flex-start; }
.contact-info { display: flex; flex-direction: column; gap: 14px; }
.info-card { display: flex; gap: 14px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; align-items: flex-start; }
.info-icon { font-size: 22px; }
.info-card h4 { font-size: 14px; margin-bottom: 3px; }
.info-card p { font-size: 13.5px; margin: 0; }
.contact-form-card { background: var(--white); border: 1.5px solid var(--line); border-radius: var(--radius); padding: 30px; box-shadow: var(--shadow-card); }
.contact-form-card h3 { font-size: 19px; }
@media (max-width: 880px) { .contact-wrap { grid-template-columns: 1fr; } }

.form-row { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.form-row label { font-size: 13px; font-weight: 600; color: var(--ink); }
.form-row input, .form-row textarea, .form-row select {
  font-family: var(--font-body);
  font-size: 14.5px;
  padding: 11px 14px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--line);
  background: var(--paper);
  color: var(--ink);
  resize: vertical;
}
.form-row input:focus, .form-row textarea:focus { border-color: var(--seal); outline: none; background: var(--white); }

/* =========================================================
   FOOTER
   ========================================================= */
.site-footer { background: var(--ink); color: #C9CEDA; margin-top: 40px; }
.footer-inner { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 34px; padding: 48px 24px 30px; }
.footer-seal { margin-bottom: 12px; }
.footer-office { font-family: var(--font-display); font-weight: 700; color: var(--white); font-size: 17px; margin: 0 0 6px; }
.footer-tagline { font-size: 13px; color: #9AA2B4; margin: 0; }
.footer-col h4 { color: var(--white); font-size: 13.5px; text-transform: uppercase; letter-spacing: .05em; margin-bottom: 14px; }
.footer-col a, .footer-col p { display: block; font-size: 13.5px; color: #C9CEDA; margin-bottom: 9px; }
.footer-col a:hover { color: var(--gold); }
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center;
  padding: 18px 24px;
  border-top: 1px solid #333d55;
  font-size: 12.5px;
  color: #8a90a3;
}
.admin-link { color: #8a90a3; }
.admin-link:hover { color: var(--gold); }
@media (max-width: 760px) { .footer-inner { grid-template-columns: 1fr; } .footer-bottom { flex-direction: column; gap: 8px; text-align: center; } }
