/* ==========================================================================
   DMO Group — brand tokens
   Derived from the firm's own identity: the midnight Sandton skyline of the
   tagline banner, its gold trim rules, and the black eagle mark.
   ========================================================================== */
:root {
  --navy:       #121a2b;  /* night-sky base */
  --navy-deep:  #0b101d;  /* hero/footer depth */
  --gold:       #c2a353;  /* banner trim */
  --gold-soft:  #d9c48b;
  --paper:      #faf8f3;  /* warm ivory ground */
  --ink:        #232a3b;
  --ink-soft:   #5b6172;
  --rule:       #e6e0d2;

  --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --sans:  "Source Sans 3", "Segoe UI", Arial, sans-serif;

  --measure: 68ch;
  --pad: clamp(1.25rem, 4vw, 3rem);
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.65;
}

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

a { color: var(--navy); text-decoration-color: var(--gold); text-underline-offset: 3px; }
a:hover { color: var(--gold); }

.skip-link {
  position: absolute; left: -999px; top: 0;
  background: var(--navy); color: #fff; padding: .5rem 1rem; z-index: 10;
}
.skip-link:focus { left: 0; }

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

/* --------------------------------------------------------------------------
   Header — centred brand and menu, as the firm's own Primer customisation had
   -------------------------------------------------------------------------- */
.site-header {
  background: var(--paper);
  border-bottom: 1px solid var(--rule);
  padding: 1.5rem var(--pad) 0;
  text-align: center;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: .9rem;
  text-decoration: none;
}
.brand img { width: 56px; height: auto; }
.brand-name {
  font-family: var(--serif);
  font-size: 1.9rem;
  font-weight: 600;
  letter-spacing: .04em;
  color: var(--navy);
}
.brand-name em { font-style: italic; font-weight: 500; color: var(--ink-soft); }

.site-nav {
  margin-top: 1.1rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .25rem 1.9rem;
  padding-bottom: 1rem;
}
.site-nav a {
  font-family: var(--sans);
  font-size: .95rem;
  font-weight: 600;
  letter-spacing: .02em;
  color: var(--ink);
  text-decoration: none;
  padding: .35rem 0;
  border-bottom: 2px solid transparent;
}
.site-nav a:hover { color: var(--navy); border-bottom-color: var(--gold-soft); }
.site-nav a.is-current { color: var(--navy); border-bottom-color: var(--gold); }

/* --------------------------------------------------------------------------
   Site header image — the original hero, shown on every page as before
   -------------------------------------------------------------------------- */
.site-hero {
  border-top: 3px solid var(--gold);
  border-bottom: 3px solid var(--gold);
  background: var(--navy-deep);
  line-height: 0;
}
.site-hero img {
  width: 100%;
  height: auto;
  display: block;
}

.page-title {
  max-width: var(--measure);
  margin: clamp(2rem, 5vw, 3rem) auto 0;
  padding: 0 var(--pad);
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(1.9rem, 5vw, 2.6rem);
  color: var(--navy);
  letter-spacing: .06em;
  text-transform: uppercase;
}
.page-title + .page-body { padding-top: 1rem; }

/* --------------------------------------------------------------------------
   Body content
   -------------------------------------------------------------------------- */
.page-body {
  max-width: var(--measure);
  margin: 0 auto;
  padding: clamp(2.5rem, 7vw, 4.5rem) var(--pad);
}

.page-body h2 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.9rem;
  color: var(--navy);
  margin: 2.4rem 0 .8rem;
}
.page-body h2:first-child { margin-top: 0; }

.page-body p.lead,
.page-body > p:first-child {
  font-family: var(--serif);
  font-size: 1.35rem;
  line-height: 1.6;
  color: var(--ink);
}

.page-body ul {
  padding-left: 0;
  list-style: none;
  columns: 2;
  column-gap: 2.5rem;
}
.page-body ul li {
  break-inside: avoid;
  padding: .4rem 0 .4rem 1.1rem;
  border-left: 2px solid var(--gold-soft);
  margin-bottom: .45rem;
}
@media (max-width: 640px) {
  .page-body ul { columns: 1; }
}

.page-body img {
  display: block;
  margin: 2.5rem auto 0;
  border: 1px solid var(--rule);
}

/* --------------------------------------------------------------------------
   Services panels (home)
   -------------------------------------------------------------------------- */
.services {
  border-top: 1px solid var(--rule);
  padding: clamp(2.5rem, 7vw, 4.5rem) var(--pad);
  max-width: 62rem;
  margin: 0 auto;
}
.services > h2 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.9rem;
  color: var(--navy);
  text-align: center;
  margin: 0 0 2rem;
}
.services-panels {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr));
  gap: 2rem;
}
.service-panel {
  display: block;
  text-decoration: none;
  color: var(--ink);
  border-top: 3px solid var(--gold);
  background: #fff;
  border-inline: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  padding: 1.6rem 1.8rem 1.4rem;
}
.service-panel h3 {
  margin: 0 0 .5rem;
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.45rem;
  color: var(--navy);
}
.service-panel p { margin: 0 0 1rem; color: var(--ink-soft); }
.panel-more {
  font-weight: 600;
  font-size: .9rem;
  letter-spacing: .03em;
  color: var(--navy);
  border-bottom: 2px solid var(--gold);
  padding-bottom: 2px;
}
.service-panel:hover .panel-more { color: var(--gold); }

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.site-footer {
  background: var(--navy-deep);
  color: #cfd3dd;
  margin-top: clamp(2rem, 6vw, 4rem);
}
.footer-rule { height: 3px; background: var(--gold); }
.footer-inner {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
  gap: 2rem;
  max-width: 62rem;
  margin: 0 auto;
  padding: 3rem var(--pad) 1.5rem;
}
.footer-heading {
  font-family: var(--serif);
  font-size: 1.2rem;
  font-weight: 600;
  color: #fff;
  margin: 0 0 .4rem;
}
.site-footer p { margin: 0 0 .4rem; }
.site-footer a { color: var(--gold-soft); text-decoration: none; }
.site-footer a:hover { color: #fff; }
.footer-legal {
  text-align: center;
  font-size: .85rem;
  color: #8a90a0;
  padding: 0 var(--pad) 1.5rem;
}
