/* ==========================================================================
   AAAM Holding Page — shared base styles (used by both options)
   ========================================================================== */

:root {
  --blue: #004890;
  --blue-dark: #00336a;
  --blue-deep: #00224a;
  --yellow: #ffbf00;
  --yellow-soft: #fff4d1;
  --ink: #14202e;
  --muted: #536173;
  --line: #dde3ea;
  --bg: #ffffff;
  --bg-alt: #f3f6f9;
  --radius: 6px;
  --wrap: 1180px;
  --font-head: "Barlow Condensed", "Arial Narrow", Arial, sans-serif;
  --font-body: "Barlow", Arial, Helvetica, sans-serif;
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
}

img, iframe { max-width: 100%; display: block; }

a { color: var(--blue); text-underline-offset: 2px; }
a:hover { color: var(--blue-dark); }

h1, h2, h3 {
  font-family: var(--font-head);
  font-weight: 700;
  line-height: 1.05;
  margin: 0 0 .5em;
  text-transform: uppercase;
  letter-spacing: .01em;
}

p { margin: 0 0 1em; }

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 16px;
}

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap;
}

.skip-link {
  position: absolute; left: 16px; top: -60px;
  background: var(--yellow); color: var(--ink);
  padding: 10px 16px; font-weight: 700; z-index: 100;
  border-radius: 0 0 var(--radius) var(--radius);
}
.skip-link:focus { top: 0; }

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

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .5em;
  font-family: var(--font-head);
  font-weight: 700; font-size: 1.15rem;
  text-transform: uppercase; letter-spacing: .04em;
  text-decoration: none;
  padding: .7em 1.4em;
  border-radius: var(--radius);
  border: 2px solid transparent;
  transition: background .15s, color .15s, border-color .15s;
}
.btn--yellow { background: var(--yellow); color: var(--blue-deep); }
.btn--yellow:hover { background: #ffd34d; color: var(--blue-deep); }
.btn--outline { border-color: currentColor; color: #fff; }
.btn--outline:hover { background: #fff; color: var(--blue); }
.btn svg { width: 1em; height: 1em; }

/* ---------- Ad slots ---------- */
.ad {
  display: flex; flex-direction: column; align-items: center;
}
.ad__label {
  font-size: .7rem; letter-spacing: .14em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 6px;
}
.ad a { display: block; line-height: 0; }
.ad img { height: auto; }
.ad--leaderboard img { width: 728px; }
.ad--mrec img { width: 300px; }

/* ---------- Responsive embeds ---------- */
.embed {
  position: relative; width: 100%;
  background: var(--blue-deep);
  border-radius: var(--radius);
  overflow: hidden;
}
.embed--video { aspect-ratio: 16 / 9; }
.embed--flipbook { padding-top: max(60%, 326px); height: 0; }
.embed iframe {
  position: absolute; inset: 0;
  width: 100%; height: 100%; border: 0;
}

/* YouTube click-to-load facade (keeps page fast — no YouTube JS until clicked) */
.yt {
  position: absolute; inset: 0;
  display: block; color: #fff;
  background: #000 center / cover no-repeat;
}
.yt img { width: 100%; height: 100%; object-fit: cover; opacity: .85; transition: opacity .2s; }
.yt:hover img { opacity: 1; }
.yt__play {
  position: absolute; left: 50%; top: 50%;
  width: 78px; height: 78px; margin: -39px 0 0 -39px;
  border-radius: 50%;
  background: var(--yellow);
  display: grid; place-items: center;
  box-shadow: 0 6px 24px rgba(0,0,0,.35);
  transition: transform .2s;
}
.yt:hover .yt__play { transform: scale(1.08); }
.yt__play svg { width: 30px; height: 30px; margin-left: 5px; fill: var(--blue-deep); }

/* ---------- Subscribe iframe ---------- */
.subscribe-frame { width: 100%; height: 500px; border: 0; background: transparent; }

/* ---------- Contacts ---------- */
.contact {
  font-style: normal;
}
.contact__role {
  font-family: var(--font-head);
  font-size: 1rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .08em;
  color: var(--blue);
  margin: 0 0 .25em;
}
.contact__name { font-weight: 700; margin: 0 0 .35em; font-size: 1.1rem; }
.contact__line { margin: 0; display: flex; gap: .5em; align-items: baseline; flex-wrap: wrap; }
.contact__line span { font-size: .8rem; font-weight: 700; color: var(--muted); min-width: 1.2em; }
.contact a { word-break: break-word; }

/* ---------- Social ---------- */
.social { display: flex; gap: 10px; list-style: none; padding: 0; margin: 0; flex-wrap: wrap; }
.social a {
  display: grid; place-items: center;
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--blue); color: #fff;
  transition: background .15s, color .15s, transform .15s;
}
.social a:hover { background: var(--yellow); color: var(--blue-deep); transform: translateY(-2px); }
.social svg { width: 20px; height: 20px; fill: currentColor; }

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