/* Anor Group — Brand Identity Guide v1.1
   Colors: Deep Gold, Charcoal, Ivory, Burnt Orange (CTAs only)
   Type: XCharter (headlines + body), Source Sans 3 (nav / buttons / labels)
*/

:root {
  --gold: #c8960c;
  --charcoal: #1a1a2e;
  --ivory: #faf3e0;
  --orange: #d4740c;
  --ink: var(--charcoal);
  --paper: var(--ivory);
  --muted: color-mix(in srgb, var(--charcoal) 72%, var(--ivory));
  --line: color-mix(in srgb, var(--charcoal) 16%, var(--ivory));
  --header-h: 6.75rem;
  --space: clamp(1.25rem, 3vw, 2.5rem);
  --measure: 42rem;
  --page: 72rem;
  --radius: 2px;
  --ease: 180ms ease;
}

@font-face {
  font-family: "XCharter";
  src: url("assets/fonts/XCharter-Roman.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "XCharter";
  src: url("assets/fonts/XCharter-Bold.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "XCharter";
  src: url("assets/fonts/XCharter-Italic.woff2") format("woff2");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "XCharter";
  src: url("assets/fonts/XCharter-BoldItalic.woff2") format("woff2");
  font-weight: 700;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Source Sans 3";
  src: url("assets/fonts/SourceSans3-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Source Sans 3";
  src: url("assets/fonts/SourceSans3-Semibold.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Source Sans 3";
  src: url("assets/fonts/SourceSans3-Bold.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

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

html {
  scroll-behavior: smooth;
}

html:focus-within {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "XCharter", "Charter", "Bitstream Charter", "Palatino Linotype", Palatino, "Times New Roman", serif;
  font-size: 1.125rem;
  line-height: 1.55;
  font-weight: 400;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

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

a {
  color: var(--charcoal);
  text-decoration-color: var(--gold);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--orange);
  text-decoration-color: var(--orange);
}

p {
  margin: 0 0 1.1em;
}

p:last-child {
  margin-bottom: 0;
}

h1, h2, h3, h4 {
  font-family: "XCharter", "Charter", "Bitstream Charter", serif;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0;
  text-transform: none;
  color: var(--charcoal);
  margin: 0 0 0.65em;
}

h1 {
  font-size: clamp(2.15rem, 4.2vw, 3.35rem);
}

h2 {
  font-size: clamp(1.65rem, 2.8vw, 2.2rem);
}

h3 {
  font-size: 1.28rem;
}

.ui, .label, nav, button, input, select, textarea, .btn {
  font-family: "Source Sans 3", "Source Sans Pro", "Helvetica Neue", Helvetica, Arial, sans-serif;
}

::selection {
  background: var(--gold);
  color: var(--charcoal);
}

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

.skip {
  position: absolute;
  left: 0.75rem;
  top: -3rem;
  background: var(--charcoal);
  color: var(--ivory);
  padding: 0.5rem 0.85rem;
  z-index: 100;
  font-family: "Source Sans 3", sans-serif;
  font-size: 0.9rem;
}

.skip:focus {
  top: 0.75rem;
}

.wrap {
  width: min(100% - 2 * var(--space), var(--page));
  margin-inline: auto;
}

.narrow {
  width: min(100%, 44rem);
}

/* ----- Header ----- */
.site-header {
  background: var(--ivory);
  border-bottom: 1px solid var(--gold);
  position: sticky;
  top: 0;
  z-index: 40;
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  min-height: var(--header-h);
  padding-block: 0.55rem;
}

.brand {
  display: flex;
  align-items: center;
  text-decoration: none;
  flex: 0 0 auto;
}

.brand img {
  display: block;
  height: 6.15rem;
  width: auto;
}

.nav-toggle {
  display: none;
  background: transparent;
  color: var(--charcoal);
  border: 1px solid var(--gold);
  padding: 0.4rem 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 0.72rem;
  font-weight: 600;
  cursor: pointer;
}

.nav-toggle:hover {
  background: var(--charcoal);
  color: var(--ivory);
}

.site-nav ul {
  display: flex;
  gap: 0.15rem 1.55rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-nav a {
  color: var(--charcoal);
  text-decoration: none;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 0.35rem 0;
  border-bottom: 2px solid transparent;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--charcoal);
  border-bottom-color: var(--gold);
}

.site-nav a[aria-current="page"] {
  font-weight: 700;
}

/* ----- Hero ----- */
.hero {
  background: var(--charcoal);
  color: var(--ivory);
  padding: clamp(3.25rem, 8vw, 6.5rem) 0 clamp(3.5rem, 8vw, 6.75rem);
  position: relative;
}

.hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: var(--gold);
}

.hero .wrap {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  justify-items: start;
  gap: 0;
}

.hero--home .wrap {
  max-width: 48rem;
  margin-left: max((100% - var(--page)) / 2, var(--space));
  width: min(100% - 2 * var(--space), 48rem);
}

.eyebrow {
  font-family: "Source Sans 3", sans-serif;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 1.1rem;
}

.hero h1 {
  color: var(--ivory);
  margin-bottom: 0.35rem;
}

.hero .tagline {
  color: var(--gold);
  font-size: clamp(2.35rem, 5.2vw, 3.6rem);
  font-weight: 700;
  line-height: 1.12;
  margin: 0 0 1.15rem;
}

.hero .lede {
  font-size: 1.28rem;
  line-height: 1.45;
  color: var(--ivory);
  max-width: 38rem;
  margin-bottom: 1.75rem;
}

.hero p {
  color: color-mix(in srgb, var(--ivory) 88%, var(--gold));
}

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

.page-hero {
  background: var(--charcoal);
  color: var(--ivory);
  padding: 3.25rem 0 3rem;
  position: relative;
}

.page-hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: var(--gold);
}

.page-hero h1 {
  color: var(--ivory);
  margin-bottom: 0.4rem;
}

.page-hero .lede {
  color: color-mix(in srgb, var(--ivory) 90%, var(--gold));
  font-size: 1.2rem;
  max-width: 40rem;
  margin: 0;
}

/* ----- Buttons ----- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.78rem 1.35rem;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  border: 1px solid transparent;
  border-radius: var(--radius);
  cursor: pointer;
  line-height: 1.2;
  transition: background var(--ease), color var(--ease), border-color var(--ease);
}

.btn-primary {
  background: var(--orange);
  color: var(--charcoal);
  border-color: var(--orange);
}

.btn-primary:hover {
  background: color-mix(in srgb, var(--orange) 88%, var(--charcoal));
  color: var(--ivory);
  text-decoration: none;
}

.btn-ghost {
  background: transparent;
  color: var(--ivory);
  border-color: var(--gold);
}

.btn-ghost:hover {
  background: var(--gold);
  color: var(--charcoal);
  text-decoration: none;
}

.btn-ghost-dark {
  background: transparent;
  color: var(--charcoal);
  border-color: var(--gold);
}

.btn-ghost-dark:hover {
  background: var(--charcoal);
  color: var(--ivory);
  text-decoration: none;
}

/* ----- Sections ----- */
main {
  flex: 1 0 auto;
}

.section {
  padding: clamp(3rem, 6vw, 5rem) 0;
}

.section + .section:not(.section--charcoal) {
  padding-top: 0;
}

.rule {
  display: block;
  width: 4.5rem;
  height: 2px;
  background: var(--gold);
  border: 0;
  margin: 0 0 1.35rem;
}

.rule--center {
  margin-inline: auto 0;
}

.kicker {
  font-family: "Source Sans 3", sans-serif;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--charcoal);
  margin: 0 0 0.55rem;
}

.section-head {
  max-width: 42rem;
  margin-bottom: 2.25rem;
}

.section--charcoal {
  background: var(--charcoal);
  color: var(--ivory);
  padding-block: clamp(3rem, 6vw, 5rem);
}

.section--charcoal h2,
.section--charcoal h3 {
  color: var(--ivory);
}

.section--charcoal p {
  color: color-mix(in srgb, var(--ivory) 88%, var(--gold));
}

.band {
  background: var(--charcoal);
  color: var(--ivory);
  padding: 3.25rem 0;
  border-top: 2px solid var(--gold);
}

.band h2 {
  color: var(--ivory);
}

.band .lede,
.band p {
  color: color-mix(in srgb, var(--ivory) 88%, var(--gold));
}

.band .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem 2.5rem;
}

.band .copy {
  max-width: 40rem;
}

/* ----- Cards / grids ----- */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.35rem;
}

.card {
  background: var(--ivory);
  border: 1px solid var(--line);
  border-top: 2px solid var(--gold);
  padding: 1.6rem 1.45rem 1.55rem;
}

.card h3 {
  margin-bottom: 0.5rem;
}

.card p,
.card li {
  font-size: 1.05rem;
}

.card--on-dark {
  background: color-mix(in srgb, var(--charcoal) 92%, var(--ivory));
  border-color: color-mix(in srgb, var(--gold) 55%, var(--charcoal));
  color: var(--ivory);
}

.card--on-dark h3 {
  color: var(--ivory);
}

.card--on-dark p,
.card--on-dark li {
  color: color-mix(in srgb, var(--ivory) 88%, var(--gold));
}

.offer {
  padding: 0 0 0.5rem;
}

.offer h2 {
  margin-bottom: 0.4rem;
}

.prose {
  max-width: var(--measure);
}

.prose.wide,
.prose--wide {
  max-width: 46rem;
}

.list {
  margin: 0.4rem 0 0;
  padding: 0 0 0 1.15rem;
}

.list li {
  margin-bottom: 0.4rem;
}

.list li::marker {
  color: var(--gold);
}

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem 3.5rem;
  align-items: start;
}

/* ----- Team ----- */
.team {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

.person {
  border: 1px solid var(--line);
  border-top: 2px solid var(--gold);
  padding: 1.5rem 1.4rem;
}

.person h3 {
  margin-bottom: 0.2rem;
}

.person .role {
  font-family: "Source Sans 3", sans-serif;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--muted);
  margin-bottom: 0.75rem;
}

blockquote.origin {
  margin: 0 0 1.6rem;
  padding: 0.15rem 0 0.15rem 1.25rem;
  border-left: 2px solid var(--gold);
  font-size: 1.2rem;
  line-height: 1.45;
  font-style: italic;
}

blockquote.origin cite {
  display: block;
  margin-top: 0.7rem;
  font-style: normal;
  font-size: 0.95rem;
  font-family: "Source Sans 3", sans-serif;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ----- Insights ----- */
.notice {
  border: 1px solid var(--line);
  border-top: 2px solid var(--gold);
  padding: 2rem 1.75rem;
  max-width: 42rem;
}

/* ----- Contact ----- */
.contact-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 2.5rem 3rem;
  align-items: start;
}

form {
  display: grid;
  gap: 1rem;
}

label {
  display: grid;
  gap: 0.35rem;
  font-family: "Source Sans 3", sans-serif;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--charcoal);
}

input,
select,
textarea {
  font-family: "XCharter", "Charter", serif;
  font-size: 1.05rem;
  color: var(--charcoal);
  background: var(--ivory);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0.7rem 0.8rem;
  width: 100%;
}

input:hover,
select:hover,
textarea:hover {
  border-color: color-mix(in srgb, var(--gold) 55%, var(--charcoal));
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--gold);
  outline: 2px solid color-mix(in srgb, var(--gold) 45%, transparent);
  outline-offset: 0;
}

textarea {
  min-height: 10.5rem;
  resize: vertical;
}

select {
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--charcoal) 50%),
    linear-gradient(135deg, var(--charcoal) 50%, transparent 50%);
  background-position: calc(100% - 1.15rem) calc(50% - 0.18rem),
    calc(100% - 0.85rem) calc(50% - 0.18rem);
  background-size: 0.3rem 0.3rem, 0.3rem 0.3rem;
  background-repeat: no-repeat;
}

.form-note {
  font-size: 0.98rem;
  color: var(--muted);
}

.aside-box {
  border: 1px solid var(--line);
  border-top: 2px solid var(--gold);
  padding: 1.5rem 1.4rem;
}

.aside-box h2 {
  font-size: 1.35rem;
}

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

.meta-list li {
  margin: 0 0 0.85rem;
}

.meta-list span {
  display: block;
  font-family: "Source Sans 3", sans-serif;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.15rem;
}

/* ----- Footer ----- */
.site-footer {
  background: var(--charcoal);
  color: var(--ivory);
  padding: 2.4rem 0 1.8rem;
  border-top: 2px solid var(--gold);
  margin-top: auto;
}

.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem 2rem;
  align-items: end;
}

.wordmark {
  font-family: "XCharter", "Charter", serif;
  font-weight: 700;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--ivory);
  font-size: 1.05rem;
  margin: 0 0 0.35rem;
}

.site-footer .desc {
  font-size: 0.98rem;
  color: color-mix(in srgb, var(--ivory) 78%, var(--gold));
  margin: 0;
}

.site-footer .legal {
  font-family: "Source Sans 3", sans-serif;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  color: color-mix(in srgb, var(--ivory) 70%, var(--charcoal));
  margin: 0;
}

/* ----- Page utilities ----- */
.muted {
  color: var(--muted);
}

.mt-0 { margin-top: 0; }

hr.gold {
  border: 0;
  height: 2px;
  background: var(--gold);
  width: 4.5rem;
  margin: 0 0 1.4rem;
}

/* ----- Responsive ----- */
@media (max-width: 900px) {
  .grid-3,
  .split,
  .team,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .grid-2 {
    grid-template-columns: 1fr;
  }

  .brand img {
    height: 4.75rem;
  }

  :root {
    --header-h: 5.5rem;
  }
}

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

  .site-nav {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    background: var(--ivory);
    border-bottom: 1px solid var(--gold);
    padding: 0.5rem var(--space) 1rem;
  }

  .site-nav.is-open {
    display: block;
  }

  .site-nav ul {
    flex-direction: column;
    gap: 0;
  }

  .site-nav a {
    display: block;
    padding: 0.7rem 0;
    border-bottom: 1px solid var(--line);
  }

  .site-header {
    position: sticky;
  }

  .site-header .wrap {
    position: relative;
  }

  .hero-actions {
    width: 100%;
  }

  .btn {
    width: 100%;
  }
}

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

@media print {
  .site-header, .site-nav, .nav-toggle, .hero-actions, .btn, .skip {
    /* keep header for identity; hide interactive chrome */
  }
  .nav-toggle, .btn, .skip { display: none !important; }
  .site-header { position: static; }
  .hero, .page-hero, .band, .section--charcoal, .site-footer {
    background: var(--ivory) !important;
    color: var(--charcoal) !important;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }
  .hero h1, .hero .tagline, .page-hero h1, .band h2 {
    color: var(--charcoal) !important;
  }
}

.hp {
  display: none !important;
}

.form-status {
  min-height: 1.2em;
  margin: 0;
  font-family: "Source Sans 3", sans-serif;
  font-size: 0.95rem;
}

.form-status.is-success { color: var(--charcoal); }
.form-status.is-error { color: #8a2a12; }
.form-status.is-pending { color: var(--muted); }

button.btn[disabled] {
  opacity: 0.65;
  cursor: wait;
}
