
:root {
  --navy: #0c2c58;
  --navy-soft: #244a78;
  --gold: #c29242;
  --gold-soft: #d6af6a;
  --ink: #17202d;
  --muted: #66717f;
  --line: #dfe4ea;
  --paper: #ffffff;
  --offwhite: #fbfaf7;
  --max: 1120px;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  background: var(--paper);
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.65;
}

a { color: var(--navy); }
img { max-width: 100%; }

.site-header {
  position: relative;
  background: rgba(255,255,255,.97);
  border-bottom: 1px solid var(--line);
}

.nav {
  max-width: var(--max);
  margin: 0 auto;
  min-height: 88px;
  padding: 12px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--navy);
  text-decoration: none;
}

.brand-logo {
  width: 58px;
  height: 58px;
  object-fit: cover;
  border-radius: 50%;
  border: 1px solid #e8e1d3;
}

.brand-copy {
  display: grid;
  line-height: 1.1;
}

.brand-copy strong {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.08rem;
  letter-spacing: .015em;
}

.brand-copy span {
  margin-top: 5px;
  color: var(--gold);
  font-size: .72rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  font-weight: 700;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}

.nav-links a {
  color: #4c5866;
  text-decoration: none;
  font-size: .92rem;
  font-weight: 600;
}

.nav-links a:hover { color: var(--navy); }

.page {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 28px;
}

.intro {
  min-height: 420px;
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 72px;
  align-items: center;
  padding: 92px 0 78px;
  border-bottom: 1px solid var(--line);
}

.kicker {
  margin: 0 0 14px;
  color: var(--gold);
  font-size: .76rem;
  font-weight: 800;
  letter-spacing: .15em;
  text-transform: uppercase;
}

.intro h1,
.page-hero h1 {
  margin: 0;
  color: var(--navy);
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 500;
  letter-spacing: -.025em;
}

.intro h1 {
  max-width: 720px;
  font-size: clamp(2.6rem, 5.2vw, 5rem);
  line-height: 1.02;
}

.intro p {
  max-width: 680px;
  margin: 24px 0 0;
  color: var(--muted);
  font-size: 1.08rem;
}

.intro-logo-wrap {
  display: flex;
  justify-content: center;
}

.intro-logo {
  width: 310px;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 50%;
}

.text-link {
  display: inline-block;
  margin-top: 24px;
  color: var(--navy);
  font-weight: 700;
  text-decoration: none;
  border-bottom: 1px solid var(--gold);
  padding-bottom: 2px;
}

.section {
  padding: 72px 0;
  border-bottom: 1px solid var(--line);
}

.section:last-child {
  border-bottom: 0;
}

.section-heading {
  max-width: 720px;
  margin-bottom: 34px;
}

.section-heading h2 {
  margin: 0;
  color: var(--navy);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2rem, 4vw, 3.1rem);
  line-height: 1.08;
  font-weight: 500;
}

.section-heading p {
  margin: 14px 0 0;
  color: var(--muted);
}

.service-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 34px;
}

.service {
  padding-top: 18px;
  border-top: 2px solid var(--gold);
}

.service .number {
  display: block;
  margin-bottom: 18px;
  color: var(--gold);
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .12em;
}

.service h3 {
  margin: 0 0 9px;
  color: var(--navy);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.45rem;
  font-weight: 500;
}

.service p {
  margin: 0;
  color: var(--muted);
}

.process {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 54px;
  align-items: start;
}

.process-note {
  padding: 26px 28px;
  background: var(--offwhite);
  border-left: 3px solid var(--gold);
}

.process-note strong {
  color: var(--navy);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.25rem;
  font-weight: 500;
}

.process-note p {
  margin: 10px 0 0;
  color: var(--muted);
}

.simple-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.simple-list li {
  padding: 15px 0;
  border-bottom: 1px solid var(--line);
  color: #3f4b59;
}

.simple-list li:last-child { border-bottom: 0; }

.simple-list strong { color: var(--navy); }

.contact-block {
  padding: 70px 0 82px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 40px;
  align-items: end;
}

.contact-block h2 {
  margin: 0;
  color: var(--navy);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 500;
  line-height: 1.08;
}

.contact-block p {
  margin: 14px 0 0;
  color: var(--muted);
}

.contact-link {
  color: var(--navy);
  text-decoration: none;
  font-weight: 750;
  white-space: nowrap;
  border-bottom: 1px solid var(--gold);
  padding-bottom: 3px;
}

/* Information pages */
.page-shell {
  max-width: 980px;
  margin: 0 auto;
  padding: 0 28px 88px;
}

.page-hero {
  padding: 72px 0 42px;
  border-bottom: 1px solid var(--line);
}

.page-hero h1 {
  font-size: clamp(2.7rem, 6vw, 4.7rem);
  line-height: 1;
}

.page-hero p {
  max-width: 720px;
  margin: 18px 0 0;
  color: var(--muted);
}

.content {
  max-width: 800px;
  padding-top: 42px;
}

.content .updated {
  margin: 0 0 34px;
  color: var(--muted);
  font-size: .92rem;
}

.content h2 {
  margin: 44px 0 12px;
  color: var(--navy);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.55rem;
  font-weight: 500;
}

.content h3 {
  color: var(--navy);
}

.content p,
.content li {
  color: #404c59;
}

.content ul {
  padding-left: 22px;
}

.notice {
  margin: 28px 0;
  padding: 22px 24px;
  background: var(--offwhite);
  border: 1px solid #ece7dc;
  border-left: 3px solid var(--gold);
}

.notice p:first-child { margin-top: 0; }
.notice p:last-child { margin-bottom: 0; }

.site-footer {
  border-top: 1px solid var(--line);
  background: var(--paper);
}

.footer-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 30px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: .9rem;
}

.footer-links {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}

.footer-links a {
  color: var(--navy-soft);
  text-decoration: none;
}

@media (max-width: 860px) {
  .intro {
    grid-template-columns: 1fr;
    gap: 42px;
    padding-top: 62px;
  }

  .intro-logo-wrap {
    justify-content: flex-start;
  }

  .intro-logo {
    width: min(280px, 70vw);
  }

  .service-list,
  .process {
    grid-template-columns: 1fr;
  }

  .contact-block {
    grid-template-columns: 1fr;
    align-items: start;
  }
}

@media (max-width: 680px) {
  .nav {
    padding: 10px 18px;
  }

  .brand-logo {
    width: 50px;
    height: 50px;
  }

  .brand-copy span {
    display: none;
  }

  .nav-links a:not(:last-child) {
    display: none;
  }

  .page,
  .page-shell {
    padding-left: 18px;
    padding-right: 18px;
  }

  .intro {
    padding: 52px 0 58px;
  }

  .section {
    padding: 56px 0;
  }

  .page-hero {
    padding-top: 54px;
  }

  .footer-inner {
    padding-left: 18px;
    padding-right: 18px;
  }
}

/* Homepage additions */
.hero-actions,
.contact-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.hero-actions { margin-top: 30px; }

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 20px;
  border: 1px solid var(--navy);
  border-radius: 4px;
  font-weight: 750;
  text-decoration: none;
  transition: transform .18s ease, background .18s ease, color .18s ease;
}

.button:hover { transform: translateY(-1px); }

.button-primary {
  color: #fff;
  background: var(--navy);
}

.button-primary:hover { background: var(--navy-soft); }

.button-secondary {
  color: var(--navy);
  background: transparent;
}

.button-secondary:hover { background: var(--offwhite); }

.nav-contact {
  padding: 9px 15px;
  border: 1px solid var(--navy);
  border-radius: 3px;
}

.mission { background: linear-gradient(90deg, transparent, var(--offwhite), transparent); }

.two-column-copy {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 42px;
  max-width: 980px;
}

.two-column-copy p {
  margin: 0;
  color: var(--muted);
  font-size: 1.03rem;
}

.contact-actions {
  max-width: 390px;
  justify-content: flex-end;
}

.contact-email {
  width: 100%;
  color: var(--navy);
  text-align: right;
  text-decoration: none;
  font-weight: 700;
}

@media (max-width: 860px) {
  .two-column-copy { grid-template-columns: 1fr; }
  .contact-actions { justify-content: flex-start; }
  .contact-email { text-align: left; }
}

@media (max-width: 680px) {
  .hero-actions,
  .contact-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .button { width: 100%; }
  .contact-email { text-align: center; overflow-wrap: anywhere; }
  .nav-contact { padding: 0; border: 0; }
}

/* Color theme control */
:root {
  color-scheme: light;
  --header-bg: rgba(255,255,255,.97);
  --body-copy: #404c59;
  --nav-copy: #4c5866;
  --notice-line: #ece7dc;
  --logo-border: #e8e1d3;
  --shadow-soft: rgba(12, 44, 88, .12);
}

html[data-theme="dark"] {
  color-scheme: dark;
  --navy: #d8e7fb;
  --navy-soft: #a9c7eb;
  --gold: #d5aa61;
  --gold-soft: #e2c081;
  --ink: #f1f3f5;
  --muted: #b1b8c1;
  --line: #3d4147;
  --paper: #25282c;
  --offwhite: #2e3237;
  --header-bg: rgba(37, 40, 44, .97);
  --body-copy: #c8cdd3;
  --nav-copy: #c3c8cf;
  --notice-line: #474c52;
  --logo-border: #4a4f55;
  --shadow-soft: rgba(0, 0, 0, .34);
}

body,
.site-header,
.site-footer,
.process-note,
.notice,
.button,
.nav-links a,
.brand,
.section-heading h2,
.intro h1,
.page-hero h1,
.contact-block h2,
.content h2,
.content h3,
.content p,
.content li,
.simple-list li {
  transition: background-color .28s ease, color .28s ease, border-color .28s ease;
}

.site-header {
  background: var(--header-bg);
}

.nav-links a { color: var(--nav-copy); }
.brand-logo { border-color: var(--logo-border); }
.content p,
.content li { color: var(--body-copy); }
.notice { border-color: var(--notice-line); border-left-color: var(--gold); }
.simple-list li { color: var(--body-copy); }

 .theme-toggle {
  position: absolute;
  left: 24px;
  top: 50%;
  transform: translateY(-50%);
  width: 82px;
  height: 38px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #e9edf1;
  color: #505862;
  cursor: pointer;
  box-shadow: 0 5px 16px var(--shadow-soft), inset 0 1px 2px rgba(0,0,0,.08);
  transition: background-color .28s ease, border-color .28s ease, box-shadow .28s ease;
  z-index: 3;
}

.theme-toggle:hover {
  box-shadow: 0 7px 20px var(--shadow-soft), inset 0 1px 2px rgba(0,0,0,.08);
}

.theme-toggle:focus-visible {
  outline: 3px solid var(--gold-soft);
  outline-offset: 3px;
}

.theme-side {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  width: 28px;
  text-align: center;
  font-size: 1rem;
  line-height: 1;
  pointer-events: none;
  transition: color .25s ease, opacity .25s ease;
}

.theme-side-dark { left: 5px; }
.theme-side-light { right: 5px; color: #b7791f; }

.theme-thumb {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 2px 8px rgba(0,0,0,.22);
  transition: transform .3s cubic-bezier(.22,.8,.32,1), background-color .28s ease;
  pointer-events: none;
}

html[data-theme="dark"] .theme-toggle {
  background: #24282d;
  border-color: #555b63;
}

html[data-theme="dark"] .theme-thumb {
  transform: translateX(-44px);
  background: #34393f;
}

html[data-theme="dark"] .theme-side-dark { color: #e7e9ec; }
html[data-theme="dark"] .theme-side-light { color: #7f8790; opacity: .72; }
html:not([data-theme="dark"]) .theme-side-dark { color: #7b838c; opacity: .7; }

html[data-theme="dark"] .intro-logo,
html[data-theme="dark"] .brand-logo {
  filter: brightness(.82) contrast(1.08);
}

html[data-theme="dark"] .mission {
  background: linear-gradient(90deg, transparent, #2b2f34, transparent);
}

html[data-theme="dark"] .button-primary {
  color: #202328;
  background: var(--gold-soft);
  border-color: var(--gold-soft);
}

html[data-theme="dark"] .button-primary:hover {
  background: #efd39d;
}

html[data-theme="dark"] .button-secondary:hover {
  background: #34383d;
}

@media (max-width: 680px) {
  .theme-toggle {
    left: 10px;
    top: 10px;
    transform: none;
    width: 72px;
    height: 34px;
  }

  .theme-thumb {
    width: 24px;
    height: 24px;
  }

  html[data-theme="dark"] .theme-thumb {
    transform: translateX(-38px);
  }

  .theme-side {
    width: 24px;
    font-size: .9rem;
  }

  .nav {
    gap: 12px;
  }

  .brand {
    gap: 10px;
  }
}

/* Refined day/night slider: selected mode icon stays centered in the thumb. */
.theme-side-light { left: 5px; right: auto; color: #b7791f; }
.theme-side-dark { right: 5px; left: auto; color: #65707b; }

.theme-thumb {
  left: 4px;
  right: auto;
  display: grid;
  place-items: center;
  color: #b7791f;
}

.theme-thumb-sun,
.theme-thumb-moon {
  position: absolute;
  font-size: .95rem;
  line-height: 1;
  transition: opacity .2s ease, transform .2s ease;
}

.theme-thumb-sun { opacity: 1; transform: scale(1); }
.theme-thumb-moon { opacity: 0; transform: scale(.7); }

html[data-theme="dark"] .theme-thumb {
  transform: translateX(44px);
  color: #f0f2f4;
}

html[data-theme="dark"] .theme-thumb-sun { opacity: 0; transform: scale(.7); }
html[data-theme="dark"] .theme-thumb-moon { opacity: 1; transform: scale(1); }
html[data-theme="dark"] .theme-side-light { color: #7f8790; opacity: .68; }
html[data-theme="dark"] .theme-side-dark { color: #d9dde1; opacity: 1; }
html:not([data-theme="dark"]) .theme-side-light { opacity: 1; }
html:not([data-theme="dark"]) .theme-side-dark { color: #7b838c; opacity: .7; }

@media (max-width: 680px) {
  html[data-theme="dark"] .theme-thumb { transform: translateX(38px); }
}
