/* Aldermonth Holdings — corporate design system */
:root {
  --ah-ink: #0f1c2e;
  --ah-ink-soft: #2a3f5c;
  --ah-ink-muted: #5c6f86;
  --ah-surface: #f6f8fb;
  --ah-surface-elevated: #ffffff;
  --ah-line: #dde4ee;
  --ah-accent: #c8a45c;
  --ah-accent-deep: #9a7b3f;
  --ah-teal: #2f6f8f;
  --ah-teal-light: #e8f2f7;
  --ah-radius: 14px;
  --ah-radius-sm: 8px;
  --ah-shadow: 0 18px 48px rgba(15, 28, 46, 0.08);
  --ah-shadow-soft: 0 8px 24px rgba(15, 28, 46, 0.06);
  --ah-font-sans: "DM Sans", system-ui, sans-serif;
  --ah-font-display: "Instrument Serif", Georgia, serif;
  --ah-max: 1180px;
  --ah-gutter: clamp(1.25rem, 4vw, 2.5rem);
  --ah-header-h: 78px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--ah-font-sans);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--ah-ink-soft);
  background: var(--ah-surface);
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--ah-teal);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

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

h1, h2, h3, h4 {
  color: var(--ah-ink);
  line-height: 1.2;
  margin: 0 0 0.75em;
}

h1 {
  font-family: var(--ah-font-display);
  font-weight: 400;
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  letter-spacing: -0.02em;
}

h2 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 600;
}

h3 {
  font-size: 1.15rem;
  font-weight: 600;
}

p {
  margin: 0 0 1rem;
}

ul, ol {
  margin: 0 0 1rem;
  padding-left: 1.25rem;
}

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

.ah-skip {
  position: absolute;
  left: -9999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.ah-skip:focus {
  left: 1rem;
  top: 1rem;
  width: auto;
  height: auto;
  padding: 0.6rem 1rem;
  background: var(--ah-ink);
  color: #fff;
  z-index: 9999;
  border-radius: var(--ah-radius-sm);
}

/* Header */
.ah-mast {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(246, 248, 251, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--ah-line);
}

.ah-mast__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--ah-header-h);
  gap: 1rem;
}

.ah-brand {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  color: var(--ah-ink);
  flex-shrink: 0;
}

.ah-brand__logo {
  display: block;
  width: auto;
  height: clamp(36px, 5vw, 48px);
  max-width: min(220px, 52vw);
  object-fit: contain;
  object-position: left center;
}

.ah-nav-toggle {
  display: none;
  border: 1px solid var(--ah-line);
  background: var(--ah-surface-elevated);
  border-radius: var(--ah-radius-sm);
  padding: 0.55rem 0.85rem;
  cursor: pointer;
  font: inherit;
  color: var(--ah-ink);
}

.ah-nav-toggle__icon {
  display: inline-block;
  width: 18px;
  height: 2px;
  background: currentColor;
  vertical-align: middle;
  margin-left: 0.5rem;
  box-shadow: 0 -6px 0 currentColor, 0 6px 0 currentColor;
}

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

.ah-nav__link {
  text-decoration: none;
  color: var(--ah-ink-soft);
  font-weight: 500;
  font-size: 0.94rem;
  padding: 0.35rem 0;
  border-bottom: 2px solid transparent;
}

.ah-nav__link:hover,
.ah-nav__link.is-current {
  color: var(--ah-ink);
  border-color: var(--ah-accent);
}

.ah-nav__link--cta {
  background: var(--ah-ink);
  color: #fff !important;
  padding: 0.55rem 1.1rem;
  border-radius: 999px;
  border: none;
}

.ah-nav__link--cta:hover {
  background: #1a3350;
}

@media (max-width: 960px) {
  .ah-nav-toggle {
    display: inline-flex;
    align-items: center;
  }

  .ah-nav {
    position: fixed;
    inset: var(--ah-header-h) 0 auto 0;
    background: var(--ah-surface-elevated);
    border-bottom: 1px solid var(--ah-line);
    padding: 1.25rem var(--ah-gutter) 1.5rem;
    transform: translateY(-120%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.25s ease, opacity 0.25s ease;
  }

  body.ah-nav-open .ah-nav {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .ah-nav__list {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }
}

/* Hero */
.ah-hero {
  position: relative;
  padding: clamp(3rem, 8vw, 5.5rem) 0 clamp(3.5rem, 7vw, 5rem);
  overflow: hidden;
}

.ah-hero--inner {
  padding: clamp(2.5rem, 6vw, 4rem) 0 clamp(2rem, 4vw, 3rem);
}

.ah-hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.ah-hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ah-hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, rgba(15, 28, 46, 0.92) 0%, rgba(15, 28, 46, 0.55) 55%, rgba(47, 111, 143, 0.35) 100%);
}

.ah-hero__content {
  position: relative;
  z-index: 1;
  color: #eef3f8;
  max-width: 720px;
}

.ah-hero__eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ah-accent);
  margin-bottom: 1rem;
  font-weight: 600;
}

.ah-hero h1 {
  color: #fff;
  margin-bottom: 1rem;
}

.ah-hero__lead {
  font-size: clamp(1.05rem, 2vw, 1.2rem);
  color: #d5dee9;
  max-width: 58ch;
}

.ah-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 1.75rem;
}

/* Buttons */
.ah-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.75rem 1.35rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.94rem;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.ah-btn--primary {
  background: var(--ah-accent);
  color: var(--ah-ink);
}

.ah-btn--primary:hover {
  background: #d4b06a;
  color: var(--ah-ink);
}

.ah-btn--ghost {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.45);
}

.ah-btn--ghost:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.ah-btn--dark {
  background: var(--ah-ink);
  color: #fff;
}

.ah-btn--dark:hover {
  background: #1a3350;
  color: #fff;
}

.ah-btn--outline {
  background: transparent;
  border-color: var(--ah-line);
  color: var(--ah-ink);
}

.ah-btn--outline:hover {
  border-color: var(--ah-ink);
}

/* Sections */
.ah-section {
  padding: clamp(3rem, 6vw, 4.5rem) 0;
}

.ah-section--alt {
  background: var(--ah-surface-elevated);
}

.ah-section__head {
  max-width: 640px;
  margin-bottom: 2.25rem;
}

.ah-section__head--center {
  margin-inline: auto;
  text-align: center;
}

.ah-kicker {
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ah-teal);
  font-weight: 700;
  margin-bottom: 0.5rem;
}

/* Grid layouts */
.ah-split {
  display: grid;
  gap: 2rem;
  align-items: center;
}

@media (min-width: 900px) {
  .ah-split {
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
  }

  .ah-split--reverse .ah-split__media {
    order: 2;
  }
}

.ah-split__media {
  border-radius: var(--ah-radius);
  overflow: hidden;
  box-shadow: var(--ah-shadow);
}

.ah-split__media img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

/* Cards */
.ah-card-grid {
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 640px) {
  .ah-card-grid--3 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 960px) {
  .ah-card-grid--3 {
    grid-template-columns: repeat(3, 1fr);
  }

  .ah-card-grid--4 {
    grid-template-columns: repeat(4, 1fr);
  }
}

.ah-card {
  background: var(--ah-surface-elevated);
  border: 1px solid var(--ah-line);
  border-radius: var(--ah-radius);
  padding: 1.5rem;
  box-shadow: var(--ah-shadow-soft);
  height: 100%;
}

.ah-card__icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: var(--ah-teal-light);
  color: var(--ah-teal);
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

.ah-card p:last-child {
  margin-bottom: 0;
}

/* Stats */
.ah-stats {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(2, 1fr);
}

@media (min-width: 768px) {
  .ah-stats {
    grid-template-columns: repeat(4, 1fr);
  }
}

.ah-stat {
  background: linear-gradient(160deg, var(--ah-ink) 0%, #1a3350 100%);
  color: #e8eef5;
  border-radius: var(--ah-radius);
  padding: 1.35rem 1.25rem;
  text-align: center;
}

.ah-stat strong {
  display: block;
  font-family: var(--ah-font-display);
  font-size: 2rem;
  color: var(--ah-accent);
  font-weight: 400;
  margin-bottom: 0.25rem;
}

.ah-stat span {
  font-size: 0.88rem;
  color: #b8c5d6;
}

/* Process */
.ah-steps {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 1rem;
}

@media (min-width: 768px) {
  .ah-steps {
    grid-template-columns: repeat(4, 1fr);
  }
}

.ah-step {
  background: var(--ah-surface-elevated);
  border: 1px solid var(--ah-line);
  border-radius: var(--ah-radius);
  padding: 1.25rem;
}

.ah-step__num {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--ah-accent-deep);
  letter-spacing: 0.1em;
}

/* Testimonials */
.ah-quote-grid {
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 768px) {
  .ah-quote-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.ah-quote {
  background: var(--ah-surface);
  border-left: 4px solid var(--ah-accent);
  padding: 1.35rem 1.5rem;
  border-radius: 0 var(--ah-radius) var(--ah-radius) 0;
  margin: 0;
}

.ah-quote cite {
  display: block;
  margin-top: 0.85rem;
  font-style: normal;
  font-size: 0.9rem;
  color: var(--ah-ink-muted);
}

/* CTA band */
.ah-cta-band {
  background: linear-gradient(120deg, var(--ah-ink) 0%, #1a3350 60%, var(--ah-teal) 100%);
  color: #e8eef5;
  border-radius: calc(var(--ah-radius) + 4px);
  padding: clamp(2rem, 5vw, 3rem);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.ah-cta-band h2 {
  color: #fff;
  margin-bottom: 0.35rem;
}

.ah-cta-band p {
  margin: 0;
  color: #c5d3e2;
}

/* Forms */
.ah-form {
  display: grid;
  gap: 1rem;
}

.ah-form__row {
  display: grid;
  gap: 1rem;
}

@media (min-width: 640px) {
  .ah-form__row--2 {
    grid-template-columns: 1fr 1fr;
  }
}

.ah-field label {
  display: block;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--ah-ink);
  margin-bottom: 0.35rem;
}

.ah-field input,
.ah-field select,
.ah-field textarea {
  width: 100%;
  padding: 0.7rem 0.85rem;
  border: 1px solid var(--ah-line);
  border-radius: var(--ah-radius-sm);
  font: inherit;
  background: var(--ah-surface-elevated);
  color: var(--ah-ink);
}

.ah-field textarea {
  min-height: 140px;
  resize: vertical;
}

.ah-check {
  display: flex;
  gap: 0.6rem;
  align-items: flex-start;
  font-size: 0.9rem;
}

.ah-check input {
  margin-top: 0.25rem;
}

/* Legal / prose */
.ah-prose {
  background: var(--ah-surface-elevated);
  border: 1px solid var(--ah-line);
  border-radius: var(--ah-radius);
  padding: clamp(1.5rem, 4vw, 2.5rem);
  max-width: 820px;
}

.ah-prose h2 {
  margin-top: 2rem;
  font-size: 1.35rem;
}

.ah-prose h2:first-child {
  margin-top: 0;
}

/* FAQ accordion */
.ah-faq-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.75rem;
}

.ah-faq-item {
  border: 1px solid var(--ah-line);
  border-radius: var(--ah-radius);
  background: var(--ah-surface-elevated);
  overflow: hidden;
}

.ah-faq-item button {
  width: 100%;
  text-align: left;
  padding: 1.1rem 1.25rem;
  border: none;
  background: transparent;
  font: inherit;
  font-weight: 600;
  color: var(--ah-ink);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.ah-faq-item button::after {
  content: "+";
  color: var(--ah-teal);
  font-size: 1.25rem;
}

.ah-faq-item button[aria-expanded="true"]::after {
  content: "−";
}

.ah-faq-panel {
  padding: 0 1.25rem 1.1rem;
}

/* Insights */
.ah-article-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
  padding: 0;
}

.ah-article-card img {
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.ah-article-card__body {
  padding: 1.25rem 1.5rem 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.ah-article-card__meta {
  font-size: 0.82rem;
  color: var(--ah-ink-muted);
  margin-bottom: 0.5rem;
}

.ah-article-card__link {
  margin-top: auto;
  font-weight: 600;
  text-decoration: none;
}

/* Contact layout */
.ah-contact-grid {
  display: grid;
  gap: 2rem;
}

@media (min-width: 900px) {
  .ah-contact-grid {
    grid-template-columns: 0.95fr 1.05fr;
  }
}

.ah-info-card {
  background: var(--ah-surface-elevated);
  border: 1px solid var(--ah-line);
  border-radius: var(--ah-radius);
  padding: 1.5rem;
}

.ah-info-card + .ah-info-card {
  margin-top: 1rem;
}

/* 404 */
.ah-error {
  text-align: center;
  padding: clamp(4rem, 10vw, 7rem) 0;
}

.ah-error__code {
  font-family: var(--ah-font-display);
  font-size: clamp(4rem, 12vw, 7rem);
  color: var(--ah-accent);
  line-height: 1;
  margin-bottom: 0.5rem;
}

/* Cookie consent panel */
.ah-cookie-overlay {
  position: fixed;
  inset: 0;
  z-index: 199;
  background: rgba(15, 28, 46, 0.45);
  backdrop-filter: blur(2px);
}

body.ah-cookie-open {
  overflow: hidden;
}

.ah-cookie {
  position: fixed;
  bottom: 1rem;
  left: 1rem;
  right: 1rem;
  z-index: 200;
  max-width: 480px;
  margin-inline: auto;
  background: var(--ah-surface-elevated);
  color: var(--ah-ink-soft);
  padding: 1.35rem 1.4rem 1.25rem;
  border-radius: calc(var(--ah-radius) + 2px);
  box-shadow: var(--ah-shadow);
  border: 1px solid var(--ah-line);
}

.ah-cookie__head {
  margin-bottom: 1rem;
}

.ah-cookie__title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--ah-ink);
  margin: 0 0 0.4rem;
}

.ah-cookie__desc {
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.55;
  color: var(--ah-ink-muted);
}

.ah-cookie__options {
  border: none;
  margin: 0 0 0.85rem;
  padding: 0;
  display: grid;
  gap: 0.65rem;
}

.ah-cookie__option {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.85rem 0.9rem;
  border: 1px solid var(--ah-line);
  border-radius: var(--ah-radius-sm);
  background: var(--ah-surface);
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.ah-cookie__option:hover {
  border-color: #c5d0de;
}

.ah-cookie__option--locked {
  cursor: default;
  opacity: 0.92;
}

.ah-cookie__option input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
  pointer-events: none;
}

.ah-cookie__option-box {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  margin-top: 0.1rem;
  border: 2px solid var(--ah-line);
  border-radius: 5px;
  background: var(--ah-surface-elevated);
  display: grid;
  place-items: center;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.ah-cookie__option input:checked + .ah-cookie__option-box {
  background: var(--ah-ink);
  border-color: var(--ah-ink);
}

.ah-cookie__option input:checked + .ah-cookie__option-box::after {
  content: "";
  width: 5px;
  height: 9px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg) translate(-1px, -1px);
}

.ah-cookie__option input:disabled + .ah-cookie__option-box {
  background: var(--ah-teal-light);
  border-color: var(--ah-teal);
}

.ah-cookie__option input:disabled:checked + .ah-cookie__option-box::after {
  border-color: var(--ah-teal);
}

.ah-cookie__option-text {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.ah-cookie__option-text strong {
  font-size: 0.92rem;
  color: var(--ah-ink);
}

.ah-cookie__option-text small {
  font-size: 0.8rem;
  color: var(--ah-ink-muted);
  line-height: 1.45;
}

.ah-cookie__legal {
  margin: 0 0 1rem;
  font-size: 0.82rem;
  color: var(--ah-ink-muted);
}

.ah-cookie__legal a {
  color: var(--ah-teal);
  text-decoration: none;
}

.ah-cookie__legal a:hover {
  text-decoration: underline;
}

.ah-cookie__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: flex-end;
}

.ah-cookie__actions .ah-btn {
  font-size: 0.86rem;
  padding: 0.6rem 1rem;
}

.ah-cookie__btn-reject.ah-btn--ghost {
  color: var(--ah-ink-soft);
  border-color: var(--ah-line);
  background: transparent;
}

.ah-cookie__btn-reject.ah-btn--ghost:hover {
  background: var(--ah-surface);
  color: var(--ah-ink);
  border-color: var(--ah-ink-muted);
}

.ah-cookie__btn-save.ah-btn--outline {
  background: transparent;
}

@media (max-width: 480px) {
  .ah-cookie__actions {
    flex-direction: column;
  }

  .ah-cookie__actions .ah-btn {
    width: 100%;
  }
}

/* Footer */
.ah-foot {
  background: var(--ah-ink);
  color: #b8c5d6;
  padding: 3rem 0 1.5rem;
  margin-top: 2rem;
}

.ah-foot a {
  color: #e8eef5;
  text-decoration: none;
}

.ah-foot a:hover {
  color: var(--ah-accent);
}

.ah-foot__grid {
  display: grid;
  gap: 2rem;
}

@media (min-width: 768px) {
  .ah-foot__grid {
    grid-template-columns: 1.4fr 1fr 1fr 1fr;
  }
}

.ah-foot__title {
  color: #fff;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 1rem;
}

.ah-foot__text {
  font-size: 0.92rem;
  max-width: 32ch;
}

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

.ah-foot__links li + li {
  margin-top: 0.45rem;
}

.ah-foot__address {
  font-style: normal;
  font-size: 0.92rem;
}

.ah-foot__address p {
  margin-bottom: 0.45rem;
}

.ah-foot__base {
  margin-top: 2rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.82rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem;
}

.ah-foot__meta {
  color: #8fa3bb;
}

/* Pill list */
.ah-pills {
  list-style: none;
  padding: 0;
  margin: 1rem 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.ah-pills li {
  background: var(--ah-teal-light);
  color: var(--ah-teal);
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
}

/* Page hero simple */
.ah-page-intro {
  padding: 2rem 0 0;
}

.ah-page-intro .ah-kicker {
  margin-bottom: 0.35rem;
}

.ah-breadcrumb {
  font-size: 0.85rem;
  color: var(--ah-ink-muted);
  margin-bottom: 0.75rem;
}

.ah-breadcrumb a {
  text-decoration: none;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
