/* Home page (redesign). Mobile-first; breakpoints 768 / 1024 (desktop nav from 769).
   Tokens: home-tokens.css (--am-*). Fonts: home-fonts.css. */

/* ── Base ───────────────────────────────────────────────────────────── */
#am-home {
  background: var(--am-cream);
  color: var(--am-ink);
  font-family: var(--am-font-body);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
#am-home *,
#am-home *::before,
#am-home *::after { box-sizing: border-box; }
/* :where() keeps these resets at zero specificity so component classes can set margins. */
:where(#am-home) :is(h1, h2, h3, p, ul) { margin: 0; padding: 0; }
:where(#am-home) ul { list-style: none; }
:where(#am-home) a { color: var(--am-sea); }

#am-home svg { flex-shrink: 0; }
#am-home :focus-visible { outline: 3px solid var(--am-navy); outline-offset: 3px; }
#am-home .am-dark :focus-visible { outline-color: var(--am-accent); }

.am-container { max-width: var(--am-max); margin: 0 auto; padding: 0 var(--am-space-4); }
@media (min-width: 769px) { .am-container { padding: 0 var(--am-space-5); } }

.am-h2 {
  font-family: var(--am-font-head);
  font-weight: 700;
  font-size: 24px;
  line-height: 1.2;
  margin-bottom: var(--am-space-3);
}
@media (min-width: 769px) { .am-h2 { font-size: 40px; line-height: 1.15; margin-bottom: 14px; } }
.am-eyebrow {
  font-size: 12px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--am-eyebrow);
  font-weight: 600;
  margin-bottom: var(--am-space-2);
}
@media (min-width: 769px) { .am-eyebrow { font-size: 13px; margin-bottom: var(--am-space-3); } }
.am-lead { font-size: 17px; color: var(--am-ink-2); max-width: 680px; }
@media (min-width: 769px) { .am-lead { font-size: 19px; } }
.am-section { padding: var(--am-space-6) 0; }
@media (min-width: 769px) { .am-section { padding: var(--am-space-9) 0; } }
.am-section--white { background: var(--am-white); }

/* Status messages (page.highlighted) */
.am-messages { max-width: var(--am-max); margin: 0 auto; padding: 0 var(--am-space-4); }
/* Room only when a message is really rendered (the empty region/fallback must not leave a strip). */
.am-messages:has(.messages-list__wrapper, .messages__content) { padding-top: var(--am-space-4); }

/* Admin toolbar: the header is not fixed, Gin already reserves the top bar; only the side bar needs room. */
@media (min-width: 61em) {
  body.gin--navigation #am-home { margin-left: 64px; }
  html.admin-toolbar-expanded body.gin--navigation #am-home { margin-left: 264px; }
}

/* ── Buttons ────────────────────────────────────────────────────────── */
.am-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--am-space-2);
  min-height: 48px;
  padding: 13px 28px;
  border-radius: var(--am-radius-pill);
  border: 1.5px solid transparent;
  font: inherit;
  font-size: 17px;
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
}
#am-home .am-btn--accent { background: var(--am-accent); color: var(--am-navy); }
#am-home .am-btn--accent:hover { background: #E89B00; color: var(--am-navy); }
#am-home .am-btn--ghost { color: var(--am-white); border-color: var(--am-navy-ghost); }
#am-home .am-btn--ghost:hover { color: var(--am-white); border-color: var(--am-white); }
#am-home .am-btn--dark { background: var(--am-navy); color: var(--am-white); }
#am-home .am-btn--dark:hover { background: var(--am-sea); color: var(--am-white); }
#am-home .am-btn--light { background: var(--am-white); color: var(--am-navy); }
#am-home .am-btn--light:hover { background: var(--am-on-navy-nav); color: var(--am-navy); }
.am-arrow { display: inline-block; width: 1em; height: 1em; vertical-align: -0.12em; }
.am-link { font-weight: 600; text-decoration: none; }
:where(#am-home) a:hover { color: var(--am-navy); }
.am-link:hover { text-decoration: underline; }
.am-link .am-arrow { margin-left: 2px; }

/* ── Header ─────────────────────────────────────────────────────────── */
.am-header {
  background: var(--am-navy);
  color: var(--am-white);
  border-bottom: 1px solid var(--am-navy-line);
  padding: var(--am-space-2) 0;
}
.am-header__inner { display: flex; align-items: center; justify-content: space-between; gap: var(--am-space-4); }
#am-home .am-brand { display: flex; align-items: center; gap: var(--am-space-2); color: var(--am-white); text-decoration: none; min-height: 44px; }
#am-home .am-brand:hover { color: var(--am-white); }
.am-brand svg { width: 32px; height: 22px; }
.am-brand__name { font-family: var(--am-font-head); font-weight: 600; font-size: 16px; }
@media (min-width: 769px) {
  .am-header { padding: 14px 0; }
  .am-brand svg { width: 40px; height: 26px; }
  .am-brand__name { font-size: 19px; }
}
.am-nav { display: none; }
.am-header__end { display: flex; align-items: center; gap: 28px; }
.am-header__enter { display: none; }
@media (min-width: 769px) {
  .am-nav { display: flex; align-items: center; gap: 28px; font-size: 15px; margin-left: auto; }
  .am-header__enter { display: inline-flex; }
}
#am-home .am-nav a { color: var(--am-on-navy-nav); text-decoration: none; min-height: 44px; display: inline-flex; align-items: center; }
#am-home .am-nav a:hover { color: var(--am-white); text-decoration: underline; }
#am-home .am-header__enter { min-height: 44px; padding: 10px 22px; font-size: 15px; }
.am-lang {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--am-lang-line);
  border-radius: var(--am-radius-pill);
  font-size: 13px;
  color: var(--am-on-navy-nav);
  padding: 0 var(--am-space-1);
}
#am-home .am-lang a { color: var(--am-on-navy-nav); text-decoration: none; min-width: 44px; min-height: 36px; display: inline-flex; align-items: center; justify-content: center; border-radius: var(--am-radius-pill); }
#am-home .am-lang a[aria-current] { color: var(--am-white); font-weight: 600; }
#am-home .am-lang a:hover { color: var(--am-white); text-decoration: underline; }

/* ── Hero ───────────────────────────────────────────────────────────── */
.am-hero {
  position: relative;
  overflow: hidden;
  background: var(--am-navy);
  color: var(--am-white);
  padding: var(--am-space-6) 0 72px;
}
.am-hero__sun { position: absolute; right: -110px; top: -90px; width: 300px; height: 300px; }
.am-hero__wave { position: absolute; left: 0; bottom: 0; width: 100%; height: 48px; }
.am-hero__inner { position: relative; display: flex; flex-direction: column; gap: var(--am-space-6); }
.am-hero__eyebrow {
  font-size: 12px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--am-accent);
  font-weight: 600;
  margin-bottom: 14px;
}
.am-hero__title {
  font-family: var(--am-font-head);
  font-weight: 700;
  font-size: clamp(31px, calc(9px + 5.5vw), 56px);
  line-height: 1.12;
  letter-spacing: -0.01em;
  margin-bottom: var(--am-space-4);
}
.am-hero__lead { font-size: 16px; color: var(--am-on-navy); max-width: 560px; margin-bottom: var(--am-space-5); }
.am-hero__cta { display: flex; flex-direction: column; gap: 10px; }
.am-hero__trust { margin-top: 22px; font-size: 14px; color: var(--am-on-navy-2); }
@media (min-width: 769px) {
  .am-hero { padding: 80px 0 120px; }
  .am-hero__sun { right: -120px; top: -140px; width: 620px; height: 620px; }
  .am-hero__wave { height: 90px; }
  .am-hero__eyebrow { font-size: 13px; margin-bottom: 20px; }
  .am-hero__title { line-height: 1.08; margin-bottom: var(--am-space-5); }
  .am-hero__lead { font-size: 20px; margin-bottom: 36px; }
  .am-hero__cta { flex-direction: row; flex-wrap: wrap; gap: 14px; }
}
@media (min-width: 1024px) {
  .am-hero__inner { flex-direction: row; align-items: center; gap: 56px; }
  .am-hero__text { flex: 1 1 520px; min-width: 0; }
  .am-hero__card-wrap { flex: 1 1 360px; max-width: 440px; }
}

/* Property-check preview card: one link, no fake controls */
#am-home a.am-check-card {
  display: block;
  background: var(--am-white);
  color: var(--am-ink);
  text-decoration: none;
  border-radius: var(--am-radius-lg);
  padding: 22px;
  box-shadow: 0 30px 60px rgba(4, 18, 35, .35);
}
#am-home a.am-check-card:hover { color: var(--am-ink); }
#am-home a.am-check-card:focus-visible { outline-color: var(--am-accent); }
@media (min-width: 769px) { #am-home a.am-check-card { padding: 28px; } }
.am-check-card__head { display: flex; justify-content: space-between; align-items: baseline; gap: var(--am-space-3); margin-bottom: 6px; }
.am-check-card__title { font-family: var(--am-font-head); font-weight: 600; font-size: 18px; }
.am-check-card__sub { font-size: 13px; color: var(--am-ink-2); }
.am-check-card__list { display: flex; flex-direction: column; gap: 10px; margin: var(--am-space-4) 0 var(--am-space-4); }
.am-check-card__list li { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; line-height: 1.4; }
.am-check-card__list svg { width: 20px; height: 20px; margin-top: 1px; }
.am-check-card__note { display: block; font-size: 13px; color: var(--am-ink-2); margin-bottom: var(--am-space-3); }
.am-check-card__go { font-weight: 600; color: var(--am-sea); }
#am-home a.am-check-card:hover .am-check-card__go { text-decoration: underline; }

/* ── Tools ──────────────────────────────────────────────────────────── */
.am-tools { display: grid; grid-template-columns: 1fr; gap: 10px; margin-top: var(--am-space-5); }
@media (min-width: 769px) { .am-tools { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; margin-top: 44px; } }
.am-tool {
  background: var(--am-white);
  border: 1px solid var(--am-border);
  border-radius: var(--am-radius-md);
  padding: var(--am-space-4);
  display: flex;
  flex-direction: column;
  gap: 10px;
}
@media (min-width: 769px) { .am-tool { padding: 28px; gap: var(--am-space-3); } }
.am-tool > svg { width: 32px; height: 32px; }
.am-tool__title { font-family: var(--am-font-head); font-weight: 600; font-size: 18px; }
@media (min-width: 769px) { .am-tool__title { font-size: 20px; } }
.am-tool__text { color: var(--am-ink-2); font-size: 15px; }
.am-badge {
  align-self: flex-start;
  margin-top: auto;
  font-size: 13px;
  font-weight: 600;
  color: var(--am-ok);
  background: var(--am-ok-bg);
  border-radius: var(--am-radius-pill);
  padding: 4px 12px;
}
.am-tools__note { margin-top: var(--am-space-4); color: var(--am-ink-2); font-size: 15px; }
.am-tools__cta { display: flex; flex-wrap: wrap; align-items: center; gap: var(--am-space-5); margin-top: var(--am-space-5); }
@media (min-width: 769px) { .am-tools__cta { margin-top: var(--am-space-6); } }

/* ── Services ───────────────────────────────────────────────────────── */
.am-pros { display: grid; grid-template-columns: 1fr; gap: var(--am-space-4); margin-top: var(--am-space-5); }
@media (min-width: 769px) { .am-pros { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: var(--am-space-5); margin-top: var(--am-space-6); } }
#am-home a.am-pro {
  display: flex;
  flex-direction: column;
  background: var(--am-cream);
  color: var(--am-ink);
  text-decoration: none;
  border: 1px solid var(--am-border);
  border-radius: var(--am-radius-md);
  overflow: hidden;
}
#am-home a.am-pro:hover { color: var(--am-ink); border-color: var(--am-sea); }
.am-pro__tile {
  height: 140px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--am-tint-1);
  color: var(--am-tint-1-ink);
  font-family: var(--am-font-head);
  font-weight: 700;
  font-size: 40px;
}
.am-pro:nth-child(2) .am-pro__tile { background: var(--am-tint-2); color: var(--am-tint-2-ink); }
.am-pro:nth-child(3) .am-pro__tile { background: var(--am-tint-3); color: var(--am-tint-3-ink); }
.am-pro__tile img { width: 100%; height: 100%; object-fit: cover; }
@media (min-width: 769px) { .am-pro__tile { height: 180px; } }
.am-pro__body { padding: 22px; display: flex; flex-direction: column; gap: var(--am-space-2); }
.am-pro__cat { font-size: 13px; font-weight: 600; color: var(--am-sea); text-transform: uppercase; letter-spacing: .08em; }
.am-pro__name { font-family: var(--am-font-head); font-weight: 600; font-size: 20px; }
.am-pro__meta { font-size: 15px; color: var(--am-ink-2); }
.am-pro__disclosure {
  display: block;
  font-size: 14px;
  line-height: 1.4;
  color: var(--am-ink);
  background: var(--am-sea-soft);
  border-radius: var(--am-radius-sm);
  padding: 8px 12px;
}
.am-pro__price { display: block; font-size: 15px; color: var(--am-ink-2); }
.am-pro__price strong { color: var(--am-ink); font-weight: 600; }
.am-pro__breakdown { display: block; font-size: 13px; color: var(--am-ink-2); margin-top: 2px; }
.am-pro__go { font-size: 15px; font-weight: 600; color: var(--am-sea); margin-top: 6px; }
#am-home a.am-pro:hover .am-pro__go { text-decoration: underline; }
.am-pros__empty {
  grid-column: 1 / -1;
  border: 1.5px dashed var(--am-border-strong);
  border-radius: var(--am-radius-md);
  padding: var(--am-space-5);
  color: var(--am-ink-2);
  font-size: 17px;
}
.am-pros__foot {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin-top: var(--am-space-5);
  padding-top: 28px;
  border-top: 1px solid var(--am-border);
}
.am-pros__foot a { min-height: 44px; display: inline-flex; align-items: center; }
#am-home .am-pros__join { font-size: 15px; color: var(--am-ink-2); }
#am-home .am-pros__join:hover { color: var(--am-navy); }

/* ── How we work ────────────────────────────────────────────────────── */
.am-how { display: grid; grid-template-columns: 1fr; gap: var(--am-space-5); margin-top: var(--am-space-5); }
@media (min-width: 769px) { .am-how { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 40px; margin-top: 44px; } }
.am-how__item { display: flex; flex-direction: column; gap: 10px; }
.am-how__num { font-family: var(--am-font-head); font-weight: 700; font-size: 32px; color: var(--am-sea); line-height: 1; }
.am-how__title { font-family: var(--am-font-head); font-weight: 600; font-size: 21px; }
.am-how__text { color: var(--am-ink-2); font-size: 16px; }

/* ── Final band ─────────────────────────────────────────────────────── */
.am-band { padding: var(--am-space-6) 0; }
@media (min-width: 769px) { .am-band { padding: 72px 0; } }
.am-band__panel {
  position: relative;
  overflow: hidden;
  background: var(--am-navy);
  color: var(--am-white);
  border-radius: var(--am-radius-xl);
  padding: var(--am-space-6) var(--am-space-5);
  display: flex;
  flex-direction: column;
  gap: var(--am-space-5);
}
@media (min-width: 769px) {
  .am-band__panel { flex-direction: row; align-items: center; justify-content: space-between; padding: 56px 48px; gap: var(--am-space-6); }
}
.am-band__sun { position: absolute; right: -40px; bottom: -70px; width: 260px; height: 260px; }
.am-band__text { position: relative; flex: 1 1 460px; }
.am-band__title { font-family: var(--am-font-head); font-weight: 700; font-size: 26px; line-height: 1.15; margin-bottom: var(--am-space-3); }
@media (min-width: 769px) { .am-band__title { font-size: 36px; } }
.am-band__lead { font-size: 17px; color: var(--am-on-navy); }
.am-band .am-btn { position: relative; }

/* ── Footer ─────────────────────────────────────────────────────────── */
.am-footer { background: var(--am-deep); color: var(--am-on-navy); padding: var(--am-space-8) 0 var(--am-space-5); font-size: 15px; }
.am-footer__grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--am-space-6); margin-bottom: var(--am-space-7); }
.am-footer__brand { grid-column: 1 / -1; display: flex; flex-direction: column; gap: 10px; }
@media (min-width: 769px) {
  .am-footer__grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; }
  .am-footer__brand { grid-column: auto; }
}
.am-footer__name { font-family: var(--am-font-head); font-weight: 600; font-size: 18px; color: var(--am-white); }
.am-footer__tag { color: var(--am-on-navy-2); }
.am-footer__col { display: flex; flex-direction: column; gap: 4px; }
.am-footer__col h2 { font-size: 15px; font-weight: 600; color: var(--am-white); margin-bottom: 6px; }
#am-home .am-footer a { color: var(--am-on-navy); text-decoration: none; min-height: 44px; display: inline-flex; align-items: center; }
#am-home .am-footer a:hover { color: var(--am-white); text-decoration: underline; }
.am-footer__bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: var(--am-space-4);
  padding-top: var(--am-space-5);
  border-top: 1px solid var(--am-navy-line);
  color: var(--am-on-navy-2);
  font-size: 14px;
}
.am-footer__langs { display: inline-flex; gap: var(--am-space-3); }
#am-home .am-footer__langs a[aria-current] { color: var(--am-white); font-weight: 600; }

/* ── Sticky footer nav (mobile only) ────────────────────────────────── */
.am-sticky-nav { display: none; }
.am-sticky-nav ul { list-style: none; margin: 0; padding: 0; }
@media (max-width: 768px) {
  body.am-home { padding-bottom: calc(var(--am-nav-h) + env(safe-area-inset-bottom)); }
  .am-sticky-nav {
    display: block;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2147483647;
    height: calc(var(--am-nav-h) + env(safe-area-inset-bottom));
    padding-bottom: env(safe-area-inset-bottom);
    background: var(--am-white);
    border-top: 1px solid var(--am-border-strong);
    box-shadow: 0 -6px 20px rgba(11, 37, 64, .08);
  }
  .am-sticky-nav__list { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); height: var(--am-nav-h); }
  .am-sticky-nav__list a {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    min-height: 44px;
    color: var(--am-ink-2);
    font-size: 12px;
    font-weight: 500;
    text-decoration: none;
  }
  .am-sticky-nav__list a[aria-current] { color: var(--am-navy); font-weight: 600; }
  .am-sticky-nav__list svg { width: 24px; height: 24px; }
  .am-sticky-nav__bar { width: 18px; height: 3px; border-radius: 3px; }
  .am-sticky-nav__list a[aria-current] .am-sticky-nav__bar { background: var(--am-accent); }

  /* Klaro: consent notice and toggle sit above the nav, the modal above everything. */
  body.am-home .cookie-notice { bottom: calc(var(--am-nav-h) + env(safe-area-inset-bottom)) !important; z-index: 2147483647; }
  body.am-home .cookie-modal { z-index: 2147483647; }
  /* The toggle stays below the notice (z-index), so the open banner hides it, as before. */
  body.am-home #klaro_toggle_dialog { bottom: calc(var(--am-nav-h) + env(safe-area-inset-bottom) + 12px) !important; }
}
