/* Ameon Group public site. Corporate, quiet, dark navy and metallic gold. */
/* Cormorant Garamond and Source Sans 3 are used under the SIL Open Font License. */

@font-face {
  font-family: "Cormorant Garamond";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("/homepage/fonts/cormorant-garamond-500.woff2") format("woff2");
}

@font-face {
  font-family: "Cormorant Garamond";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/homepage/fonts/cormorant-garamond-600.woff2") format("woff2");
}

@font-face {
  font-family: "Cormorant Garamond";
  font-style: italic;
  font-weight: 500;
  font-display: swap;
  src: url("/homepage/fonts/cormorant-garamond-500-italic.woff2") format("woff2");
}

@font-face {
  font-family: "Source Sans 3";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/homepage/fonts/source-sans-3-400.woff2") format("woff2");
}

@font-face {
  font-family: "Source Sans 3";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/homepage/fonts/source-sans-3-600.woff2") format("woff2");
}

:root {
  --bg: #0b1018;
  --bg-raise: #121a26;
  --bg-input: #0c131d;
  --ink: #f4f0e7;
  --muted: #c9c2b6;
  --gold: #c6a36a;
  --gold-bright: #e6d3a8;
  --gold-deep: #8d6a3a;
  --line: rgba(198, 163, 106, 0.32);
  --line-soft: rgba(244, 240, 231, 0.1);
  --danger: #f0c9bc;
  --serif: "Cormorant Garamond", "Palatino Linotype", Palatino, Georgia, serif;
  --sans: "Source Sans 3", "Segoe UI", Helvetica, Arial, sans-serif;
  --header-h: 4.75rem;
  --max: 1120px;
  --shadow: 0 1px 0 rgba(198, 163, 106, 0.18);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  font-weight: 400;
  line-height: 1.65;
  min-height: 100vh;
  text-rendering: optimizeLegibility;
}

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

a {
  color: var(--gold-bright);
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--ink);
}

h1, h2, h3, p {
  margin-top: 0;
}

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 500;
  letter-spacing: -0.015em;
  line-height: 1.12;
  color: var(--ink);
}

p {
  margin-bottom: 0;
}

:focus {
  outline: none;
}

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

::selection {
  background: rgba(198, 163, 106, 0.35);
  color: var(--ink);
}

.skip {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 40;
  background: var(--gold);
  color: #1c150c;
  padding: 0.55rem 0.85rem;
  font-weight: 600;
  text-decoration: none;
}

.skip:focus {
  top: 0.75rem;
}

.wrap {
  width: min(var(--max), calc(100% - 2.5rem));
  margin-inline: auto;
}

.kicker {
  margin: 0 0 0.75rem;
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
}

.lede {
  color: var(--muted);
  font-size: 1.2rem;
  line-height: 1.6;
  max-width: 42rem;
}

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  height: var(--header-h);
  background: rgba(11, 16, 24, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}

.header-inner {
  height: 100%;
  width: min(var(--max), calc(100% - 2.5rem));
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--ink);
  text-decoration: none;
  min-height: 44px;
}

.brand:hover {
  color: var(--gold-bright);
}

.brand img {
  width: 40px;
  height: 40px;
}

.brand-name {
  font-family: var(--serif);
  font-size: 1.45rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  line-height: 1;
}

.nav-toggle {
  display: none;
  align-items: center;
  gap: 0.55rem;
  min-height: 44px;
  padding: 0.4rem 0.7rem;
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--line);
  font: 600 0.85rem/1 var(--sans);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
}

.nav-toggle-bars {
  width: 16px;
  height: 1px;
  background: var(--gold-bright);
  box-shadow: 0 -5px 0 var(--gold-bright), 0 5px 0 var(--gold-bright);
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-list a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0.35rem 0.85rem;
  color: var(--muted);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.nav-list a:hover,
.nav-list a[aria-current="page"] {
  color: var(--gold-bright);
}

.nav-list a[aria-current="page"] {
  box-shadow: inset 0 -1px 0 var(--gold);
}

/* Hero */

.hero {
  width: min(var(--max), calc(100% - 2.5rem));
  margin: 0 auto;
  padding: 4.5rem 0 4rem;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(240px, 0.85fr);
  gap: 3.5rem;
  align-items: center;
}

.hero h1 {
  margin: 0 0 1.1rem;
  font-size: clamp(3rem, 6.4vw, 5.15rem);
  font-weight: 500;
  line-height: 0.98;
  max-width: 11ch;
}

.hero .lede {
  margin-bottom: 1.9rem;
}

.hero-mark {
  display: flex;
  justify-content: center;
}

.hero-mark img {
  width: min(100%, 440px);
  height: auto;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.7rem 1.3rem;
  border-radius: 2px;
  border: 1px solid transparent;
  font-family: var(--sans);
  font-size: 0.98rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.btn-primary {
  background: var(--gold);
  color: #1c150c;
}

.btn-primary:hover {
  background: var(--gold-bright);
  color: #1c150c;
}

.btn-secondary {
  background: transparent;
  color: var(--gold-bright);
  border-color: var(--line);
}

.btn-secondary:hover {
  color: var(--ink);
  border-color: var(--gold-bright);
}

/* Sections */

.section {
  padding: 4.75rem 0;
  border-top: 1px solid var(--line-soft);
}

.section h2 {
  margin: 0 0 1rem;
  font-size: clamp(2.15rem, 4vw, 3.25rem);
  max-width: 16ch;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 3rem;
  align-items: start;
}

.prose {
  max-width: 65ch;
  color: var(--muted);
}

.prose p + p {
  margin-top: 1rem;
}

.pull {
  margin: 1.75rem 0 0;
  padding: 0.15rem 0 0.15rem 1.15rem;
  border-left: 1px solid var(--gold);
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.55rem, 2.4vw, 2rem);
  font-weight: 500;
  line-height: 1.25;
  color: var(--ink);
}

.steps {
  margin: 1.75rem 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 1rem;
}

.steps li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.85rem;
  align-items: baseline;
}

.steps strong {
  display: block;
  color: var(--ink);
  font-weight: 600;
}

.steps span {
  color: var(--muted);
}

.step-num {
  font-family: var(--serif);
  font-size: 1.35rem;
  color: var(--gold);
  line-height: 1;
}

.rule-grid {
  margin-top: 2rem;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--line-soft);
  border-left: 1px solid var(--line-soft);
}

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

.subsection-title {
  margin: 2.75rem 0 0;
  font-size: clamp(1.85rem, 3vw, 2.4rem);
}

.follow {
  margin-top: 2.25rem;
}

.section .hero-actions {
  margin-top: 1.35rem;
}

.rule-grid article {
  padding: 1.4rem 1.2rem 1.6rem;
  border-right: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
  background: transparent;
}

.rule-grid h3 {
  margin: 0 0 0.55rem;
  font-size: 1.65rem;
}

.rule-grid p {
  margin: 0;
  color: var(--muted);
  font-size: 0.98rem;
}

.index-label {
  display: block;
  margin-bottom: 1.1rem;
  font-family: var(--sans);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: var(--gold);
}

.band {
  background: var(--bg-raise);
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
}

.focus-list {
  margin: 1.75rem 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.focus-list li {
  padding-top: 0.75rem;
  border-top: 1px solid var(--gold);
  font-family: var(--serif);
  font-size: 1.55rem;
  line-height: 1.2;
}

.cta-band {
  text-align: left;
  padding: 5rem 0 5.25rem;
}

.cta-band h2 {
  max-width: 14ch;
  font-size: clamp(2.4rem, 5vw, 3.6rem);
}

.cta-band p {
  margin: 0.5rem 0 1.5rem;
  color: var(--muted);
  max-width: 36rem;
}

/* Inner pages */

.page-hero {
  width: min(var(--max), calc(100% - 2.5rem));
  margin: 0 auto;
  padding: 3.75rem 0 2.25rem;
}

.page-hero h1 {
  margin: 0;
  font-size: clamp(2.6rem, 5vw, 4.2rem);
  max-width: 16ch;
}

.page-hero .lede {
  margin-top: 1rem;
}

.page-section {
  padding-top: 0;
  border-top: none;
}

.page-section + .page-section,
.stack-section {
  padding-top: 2.5rem;
}

.stack-section h2 {
  font-size: clamp(1.9rem, 3vw, 2.5rem);
}

.values {
  margin: 0.5rem 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0;
  border-top: 1px solid var(--line-soft);
}

.values li {
  padding: 1.1rem 0;
  border-bottom: 1px solid var(--line-soft);
  display: grid;
  grid-template-columns: 11rem 1fr;
  gap: 1.25rem;
}

.values h3 {
  margin: 0;
  font-size: 1.55rem;
}

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

.toc {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  margin: 1.5rem 0 0;
  padding: 0;
  list-style: none;
}

.toc a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 600;
}

.toc a:hover {
  color: var(--gold-bright);
}

/* Contact */

.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: 3rem;
  align-items: start;
}

.company-panel {
  padding: 1.5rem 1.4rem;
  border: 1px solid var(--line);
  background: var(--bg-raise);
}

.company-panel h2 {
  font-size: 1.4rem;
  margin-bottom: 0.85rem;
}

.company-name {
  margin: 0 0 0.4rem;
  font-family: var(--serif);
  font-size: 2rem;
  line-height: 1.1;
}

.company-panel p {
  color: var(--muted);
}

.company-panel p + p {
  margin-top: 0.75rem;
}

.form-card h2 {
  font-size: 1.8rem;
  margin-bottom: 0.5rem;
}

.form-intro {
  color: var(--muted);
  margin-bottom: 1.25rem;
  max-width: 46ch;
}

.field {
  margin-bottom: 1rem;
}

.field label {
  display: block;
  margin-bottom: 0.4rem;
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.field input,
.field textarea {
  width: 100%;
  padding: 0.8rem 0.85rem;
  background: var(--bg-input);
  color: var(--ink);
  border: 1px solid rgba(198, 163, 106, 0.38);
  border-radius: 2px;
  font: 400 1rem/1.5 var(--sans);
}

.field textarea {
  min-height: 9.5rem;
  resize: vertical;
}

.field input:focus-visible,
.field textarea:focus-visible {
  outline: 2px solid var(--gold-bright);
  outline-offset: 1px;
  border-color: var(--gold);
}

.field-error {
  min-height: 1.25rem;
  margin: 0.35rem 0 0;
  color: var(--danger);
  font-size: 0.92rem;
}

.form-notice {
  margin: 0 0 1rem;
  padding: 1rem 1.05rem;
  border: 1px solid var(--line);
  background: rgba(198, 163, 106, 0.08);
  color: var(--ink);
}

.form-notice[hidden] {
  display: none;
}

.form-notice p + p {
  margin-top: 0.65rem;
}

#sent {
  display: none;
}

#sent:target,
#sent.is-visible {
  display: block;
}

.form-card:has(#sent:target) .form-intro,
.form-card:has(#sent:target) #contact-form,
.form-card:has(#sent.is-visible) .form-intro,
.form-card:has(#sent.is-visible) #contact-form {
  display: none;
}

.form-actions {
  margin-top: 0.35rem;
}

.form-privacy {
  margin: 0.9rem 0 0;
  color: var(--muted);
  font-size: 0.95rem;
  max-width: 52ch;
}

.contact-email {
  margin: 0.15rem 0 0.85rem;
  font-size: 1.2rem;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.contact-email a {
  color: var(--gold-bright);
  text-decoration: none;
}

.contact-email a:hover {
  text-decoration: underline;
}

/* Legal */

.legal {
  padding-bottom: 4.5rem;
}

.legal .updated {
  color: var(--gold);
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  margin-bottom: 1rem;
}

.legal h2 {
  margin: 2rem 0 0.6rem;
  font-size: 1.85rem;
  max-width: none;
  scroll-margin-top: calc(var(--header-h) + 0.75rem);
}

.legal p,
.legal li {
  color: var(--muted);
  max-width: 68ch;
}

.legal p + p,
.legal ul {
  margin-top: 0.8rem;
}

.legal ul {
  padding-left: 1.15rem;
}

.legal li + li {
  margin-top: 0.35rem;
}

.notice-banner {
  margin: 0 0 1.5rem;
  padding: 1rem 1.1rem;
  border-left: 1px solid var(--gold);
  background: var(--bg-raise);
  color: var(--ink);
  max-width: 68ch;
}

/* Footer */

.site-footer {
  border-top: 1px solid var(--line);
  padding: 2.25rem 0 2.5rem;
  background: #090e15;
}

.footer-inner {
  width: min(var(--max), calc(100% - 2.5rem));
  margin-inline: auto;
  display: grid;
  grid-template-columns: 1.2fr 1.4fr;
  gap: 1rem 2rem;
  align-items: end;
}

.footer-name {
  margin: 0;
  font-family: var(--serif);
  font-weight: 500;
  font-size: 1.6rem;
  line-height: 1;
}

.footer-tagline {
  margin: 0.4rem 0 0;
  color: var(--gold);
  font-family: var(--serif);
  font-style: italic;
  font-weight: 500;
  font-size: 1.2rem;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1.15rem;
  justify-content: flex-end;
}

.footer-nav a {
  color: var(--muted);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

.footer-nav a:hover {
  color: var(--gold-bright);
}

.footer-copy {
  grid-column: 1 / -1;
  margin: 0.4rem 0 0;
  color: var(--muted);
  font-size: 0.92rem;
}

section[id] {
  scroll-margin-top: calc(var(--header-h) + 0.75rem);
}

@media (max-width: 860px) {
  .hero,
  .split,
  .contact-layout,
  .values li {
    grid-template-columns: 1fr;
  }

  .rule-grid,
  .rule-grid.thirds,
  .focus-list {
    grid-template-columns: 1fr 1fr;
  }

  .hero {
    padding-top: 2.75rem;
    gap: 2rem;
  }

  .hero h1 {
    max-width: none;
  }

  .footer-inner,
  .footer-nav {
    justify-content: flex-start;
  }

  .footer-inner {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .nav-toggle {
    display: inline-flex;
  }

  .site-header nav {
    flex: 1 0 100%;
  }

  .site-header {
    height: auto;
    min-height: var(--header-h);
  }

  .header-inner {
    min-height: var(--header-h);
    flex-wrap: wrap;
    position: relative;
  }

  .nav-list {
    display: none;
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    padding: 0.25rem 0 0.85rem;
    gap: 0;
  }

  .nav-list.is-open {
    display: flex;
  }

  .nav-list a {
    border-top: 1px solid var(--line-soft);
    padding-left: 0;
  }

  .rule-grid,
  .rule-grid.thirds,
  .focus-list {
    grid-template-columns: 1fr;
  }

  .wrap,
  .hero,
  .page-hero,
  .header-inner,
  .footer-inner {
    width: min(var(--max), calc(100% - 2rem));
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .btn {
    transition: none;
  }
}

@media print {
  body {
    background: #fff;
    color: #1a1a1a;
  }

  .site-header,
  .nav-toggle,
  .hero-actions,
  .cta-band,
  .skip {
    display: none;
  }

  a {
    color: #1a1a1a;
  }

  .site-footer {
    background: #fff;
    border-top: 1px solid #ccc;
  }
}
