/* ==========================================================================
   Atlas International Enterprise LLC
   Advisory and Program Support  -  channel stylesheet
   File: css/atlas-advisory.css
   --------------------------------------------------------------------------
   SAFE TO UPLOAD. Every selector is namespaced with .aae- so nothing in this
   file can affect any existing page, and nothing on the existing site can be
   overwritten by it.

   FONTS: this stylesheet deliberately does NOT declare a font family. The
   wrapper inherits whatever font the site body already uses, so the new page
   matches the rest of the website automatically. Only set --aae-font below if
   you want to force something different.

   COLOURS: set the three brand tokens in the block below to the site's own
   brand colours and the whole channel re-skins itself. Nothing else to change.
   ========================================================================== */

.aae {
  /* ---- 1. BRAND TOKENS. EDIT THESE THREE LINES ONLY. ------------------- */
  --aae-brand:        #1f3b64;   /* primary brand colour  */
  --aae-brand-dark:   #152946;   /* darker shade for hover and headings */
  --aae-accent:       #33d1cb;   /* small accent, rules and badges */

  /* ---- 2. Derived neutrals. Normally leave alone. ---------------------- */
  --aae-ink:          #21262b;
  --aae-muted:        #5a6572;
  --aae-line:         #dde3e9;
  --aae-bg:           #ffffff;
  --aae-bg-soft:      #f4f7fa;
  --aae-bg-tint:      #eef3f8;
  --aae-radius:       6px;
  --aae-shadow:       0 1px 3px rgba(16,32,48,.07), 0 6px 18px rgba(16,32,48,.05);
  --aae-maxw:         1180px;

  /* ---- 3. Font. Leave as 'inherit' to match the existing site. --------- */
  --aae-font:         inherit;

  font-family: var(--aae-font);
  color: var(--aae-ink);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

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

.aae-wrap {
  max-width: var(--aae-maxw);
  margin: 0 auto;
  padding: 0 20px;
}

/* --------------------------------------------------------- typography ---- */
.aae h1, .aae h2, .aae h3, .aae h4 {
  color: var(--aae-brand-dark);
  line-height: 1.25;
  margin: 0 0 .5em;
  font-weight: 700;
}
.aae h1 { font-size: clamp(1.9rem, 4vw, 2.7rem); }
.aae h2 { font-size: clamp(1.4rem, 2.6vw, 1.9rem); }
.aae h3 { font-size: 1.12rem; }
.aae p  { margin: 0 0 1em; }
.aae a  { color: var(--aae-brand); }
.aae a:hover { color: var(--aae-brand-dark); }

.aae-eyebrow {
  display: inline-block;
  font-size: .74rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--aae-accent);
  margin-bottom: .9rem;
}
.aae-lead { font-size: 1.09rem; color: var(--aae-muted); }

.aae-section { padding: 62px 0; }
.aae-section--soft { background: var(--aae-bg-soft); }
.aae-section--tint { background: var(--aae-bg-tint); }

.aae-section-head { max-width: 780px; margin-bottom: 34px; }
.aae-section-head p { color: var(--aae-muted); margin-bottom: 0; }

.aae-rule {
  width: 56px; height: 3px; border: 0; margin: 0 0 20px;
  background: var(--aae-accent);
}

/* -------------------------------------------------------------- hero ---- */
.aae-hero {
  background: linear-gradient(150deg, var(--aae-brand-dark) 0%, var(--aae-brand) 68%);
  color: #fff;
  padding: 74px 0 66px;
}
.aae-hero h1 { color: #fff; max-width: 20ch; }
.aae-hero .aae-eyebrow { color: #ffd97a; }
.aae-hero p {
  color: rgba(255,255,255,.9);
  max-width: 62ch;
  font-size: 1.09rem;
}
.aae-hero-actions { margin-top: 26px; display: flex; flex-wrap: wrap; gap: 12px; }

.aae-btn {
  display: inline-block;
  padding: 12px 24px;
  border-radius: var(--aae-radius);
  font-weight: 600;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  transition: background .18s ease, color .18s ease, border-color .18s ease;
}
.aae-btn--primary { background: #fff; color: var(--aae-brand-dark); border-color: #fff; }
.aae-btn--primary:hover { background: var(--aae-accent); border-color: var(--aae-accent); color: #22282e; }
.aae-btn--ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.6); }
.aae-btn--ghost:hover { background: rgba(255,255,255,.12); color: #fff; border-color: #fff; }
.aae-btn--solid { background: var(--aae-brand); color: #fff; border-color: var(--aae-brand); }
.aae-btn--solid:hover { background: var(--aae-brand-dark); border-color: var(--aae-brand-dark); color: #fff; }

/* ------------------------------------------------------- breadcrumb ---- */
.aae-crumb {
  font-size: .85rem;
  padding: 14px 0;
  color: var(--aae-muted);
  border-bottom: 1px solid var(--aae-line);
}
.aae-crumb a { text-decoration: none; }
.aae-crumb span { margin: 0 8px; color: #aab3bc; }

/* ------------------------------------------------------------ cards ---- */
.aae-grid { display: grid; gap: 20px; }
.aae-grid--2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.aae-grid--3 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.aae-grid--4 { grid-template-columns: repeat(auto-fit, minmax(215px, 1fr)); }

.aae-card {
  background: var(--aae-bg);
  border: 1px solid var(--aae-line);
  border-radius: var(--aae-radius);
  padding: 24px;
  box-shadow: var(--aae-shadow);
}
.aae-card h3 { margin-bottom: .4em; }
.aae-card p { color: var(--aae-muted); margin-bottom: 0; font-size: .96rem; }
.aae-card--top { border-top: 3px solid var(--aae-brand); }

.aae-ico {
  width: 42px; height: 42px; margin-bottom: 14px;
  color: var(--aae-brand);
}
.aae-ico svg { width: 100%; height: 100%; display: block; }

/* --------------------------------------------------- filter and search -- */
.aae-tools {
  display: flex; flex-wrap: wrap; gap: 12px; align-items: center;
  margin-bottom: 26px;
}
.aae-search {
  flex: 1 1 280px; position: relative;
}
.aae-search input {
  width: 100%;
  padding: 12px 14px 12px 40px;
  border: 1px solid var(--aae-line);
  border-radius: var(--aae-radius);
  font: inherit;
  color: var(--aae-ink);
  background: #fff;
}
.aae-search input:focus {
  outline: 2px solid var(--aae-brand);
  outline-offset: 1px;
  border-color: var(--aae-brand);
}
.aae-search svg {
  position: absolute; left: 13px; top: 50%; transform: translateY(-50%);
  width: 17px; height: 17px; color: var(--aae-muted); pointer-events: none;
}
.aae-toolbtn {
  padding: 11px 18px;
  border: 1px solid var(--aae-line);
  background: #fff;
  border-radius: var(--aae-radius);
  font: inherit; font-weight: 600;
  color: var(--aae-brand);
  cursor: pointer;
}
.aae-toolbtn:hover { background: var(--aae-bg-tint); }
.aae-count { font-size: .9rem; color: var(--aae-muted); }

/* -------------------------------------------------------- accordion ---- */
.aae-acc { border-top: 1px solid var(--aae-line); }
.aae-panel { border-bottom: 1px solid var(--aae-line); background: #fff; }
.aae-panel[hidden] { display: none; }

.aae-panel-btn {
  width: 100%;
  display: flex; align-items: flex-start; gap: 16px;
  padding: 22px 4px;
  background: none; border: 0; text-align: left;
  font: inherit; color: var(--aae-ink);
  cursor: pointer;
}
.aae-panel-btn:hover { background: var(--aae-bg-soft); }
.aae-panel-btn:focus-visible { outline: 2px solid var(--aae-brand); outline-offset: -2px; }

.aae-badge {
  flex: 0 0 auto;
  width: 34px; height: 34px; border-radius: 50%;
  background: var(--aae-brand); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: .95rem;
}
.aae-panel-txt { flex: 1 1 auto; }
.aae-panel-txt h3 { margin: 3px 0 4px; color: var(--aae-brand-dark); }
.aae-panel-txt p { margin: 0; color: var(--aae-muted); font-size: .96rem; }

.aae-chev {
  flex: 0 0 auto; width: 20px; height: 20px; margin-top: 8px;
  color: var(--aae-brand);
  transition: transform .22s ease;
}
.aae-panel-btn[aria-expanded="true"] .aae-chev { transform: rotate(180deg); }

.aae-panel-body { padding: 0 4px 12px 54px; }
.aae-panel-body[hidden] { display: none; }

.aae-note {
  background: var(--aae-bg-tint);
  border-left: 3px solid var(--aae-brand);
  padding: 14px 18px;
  border-radius: 0 var(--aae-radius) var(--aae-radius) 0;
  margin: 0 0 20px;
  font-size: .95rem;
  color: var(--aae-ink);
}
.aae-note strong { color: var(--aae-brand-dark); }
.aae-note--warn { background: #fdf7e8; border-left-color: var(--aae-accent); }
.aae-note--warn strong { color: #8a6f12; }

/* --------------------------------------------------- service line list -- */
.aae-lines { list-style: none; margin: 0 0 18px; padding: 0; }
.aae-line {
  padding: 16px 0;
  border-bottom: 1px dashed var(--aae-line);
}
.aae-line:last-child { border-bottom: 0; }
.aae-line[hidden] { display: none; }
.aae-line h4 {
  font-size: 1rem; margin: 0 0 5px; color: var(--aae-ink); font-weight: 700;
}
.aae-line p { margin: 0 0 6px; font-size: .95rem; color: var(--aae-muted); }
.aae-line .aae-deliv {
  font-size: .9rem; color: var(--aae-brand-dark);
}
.aae-line .aae-deliv strong { color: var(--aae-brand-dark); }
.aae-hit { background: #fff4c9; border-radius: 2px; }

/* -------------------------------------------------------- steps list ---- */
.aae-steps { counter-reset: aaestep; list-style: none; padding: 0; margin: 0; }
.aae-step {
  position: relative;
  padding: 0 0 26px 56px;
  border-left: 2px solid var(--aae-line);
  margin-left: 17px;
}
.aae-step:last-child { border-left-color: transparent; padding-bottom: 0; }
.aae-step::before {
  counter-increment: aaestep;
  content: counter(aaestep);
  position: absolute; left: -18px; top: -2px;
  width: 34px; height: 34px; border-radius: 50%;
  background: var(--aae-brand); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: .95rem;
}
.aae-step h3 { margin: 4px 0 5px; }
.aae-step p { color: var(--aae-muted); margin: 0; font-size: .96rem; }

/* ------------------------------------------------------- plain lists ---- */
.aae-ticks { list-style: none; padding: 0; margin: 0; }
.aae-ticks li {
  position: relative; padding: 0 0 12px 28px; font-size: .96rem;
  color: var(--aae-ink);
}
.aae-ticks li::before {
  content: ""; position: absolute; left: 6px; top: .55em;
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--aae-accent);
}
.aae-ticks--cross li::before { background: #b4483a; }

/* -------------------------------------------------------- cta band ----- */
.aae-cta {
  background: var(--aae-brand-dark);
  color: #fff;
  padding: 54px 0;
  text-align: center;
}
.aae-cta h2 { color: #fff; }
.aae-cta p { color: rgba(255,255,255,.88); max-width: 60ch; margin: 0 auto 24px; }

/* ------------------------------------------------------ cross links ---- */
.aae-xlink {
  display: block; text-decoration: none;
  background: #fff; border: 1px solid var(--aae-line);
  border-radius: var(--aae-radius); padding: 22px;
  transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}
.aae-xlink:hover {
  border-color: var(--aae-brand);
  box-shadow: var(--aae-shadow);
  transform: translateY(-2px);
}
.aae-xlink h3 { margin-bottom: .3em; }
.aae-xlink p { color: var(--aae-muted); font-size: .94rem; margin: 0; }
.aae-xlink .aae-more { color: var(--aae-brand); font-weight: 600; font-size: .9rem; }

/* --------------------------------------------------- home page teaser -- */
.aae-teaser { padding: 58px 0; background: var(--aae-bg-soft); }
.aae-teaser-inner {
  display: grid; gap: 30px; align-items: center;
  grid-template-columns: minmax(280px, 1.1fr) minmax(260px, .9fr);
}
@media (max-width: 780px) {
  .aae-teaser-inner { grid-template-columns: 1fr; }
}
.aae-teaser h2 { margin-bottom: .4em; }
.aae-teaser p { color: var(--aae-muted); }
.aae-chips { display: flex; flex-wrap: wrap; gap: 9px; margin: 0 0 22px; padding: 0; list-style: none; }
.aae-chips li {
  background: #fff; border: 1px solid var(--aae-line);
  border-radius: 999px; padding: 7px 15px; font-size: .88rem;
  color: var(--aae-brand-dark); font-weight: 600;
}

/* ------------------------------------------------------ back to top ---- */
.aae-top {
  position: fixed; right: 20px; bottom: 22px;
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--aae-brand); color: #fff;
  border: 0; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--aae-shadow);
  opacity: 0; visibility: hidden; transition: opacity .2s ease, visibility .2s ease;
  z-index: 900;
}
.aae-top.is-on { opacity: 1; visibility: visible; }
.aae-top svg { width: 19px; height: 19px; }

/* --------------------------------------------------------- utilities --- */
.aae-sr {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.aae-empty {
  padding: 34px; text-align: center; color: var(--aae-muted);
  background: var(--aae-bg-soft); border-radius: var(--aae-radius);
}
.aae-empty[hidden] { display: none; }

@media print {
  .aae-hero { background: none; color: #000; }
  .aae-hero h1, .aae-cta h2 { color: #000; }
  .aae-top, .aae-tools, .aae-hero-actions { display: none !important; }
  .aae-panel-body[hidden] { display: block !important; }
}
