/* Ambassador AMC — landing page styles */

:root {
  --brand-blue: #7f9cca;        /* sampled from the Ambassador logo */
  --brand-blue-light: #9fbcdd;
  --brand-navy: #1c2b45;
  --ink: #1a1f2b;
  --ink-muted: #5b6474;
  --surface: #ffffff;
  --surface-alt: #f4f6fa;
  --border: #e3e8f0;
  --shadow-sm: 0 1px 2px rgba(20, 30, 50, 0.06), 0 1px 3px rgba(20, 30, 50, 0.08);
  --shadow-lg: 0 18px 40px -16px rgba(28, 43, 69, 0.35), 0 6px 14px -8px rgba(28, 43, 69, 0.18);
  --radius: 18px;
  --gutter: 16px;
  --max-width: 1080px;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

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

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

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--surface);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--brand-navy); }

.container {
  width: 100%;
  max-width: var(--max-width);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* Accessibility */
.skip-link {
  position: absolute;
  left: 8px;
  top: -48px;
  padding: 8px 14px;
  background: var(--brand-navy);
  color: #fff;
  border-radius: 8px;
  z-index: 100;
  text-decoration: none;
}
.skip-link:focus { top: 8px; }

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

/* Hero */
.hero {
  position: relative;
  padding-block: clamp(40px, 8vw, 88px) clamp(28px, 5vw, 56px);
  text-align: center;
  background:
    radial-gradient(900px 420px at 50% -120px, rgba(127, 156, 202, 0.22), transparent 70%),
    linear-gradient(180deg, #ffffff 0%, var(--surface-alt) 100%);
  border-bottom: 1px solid var(--border);
}

.hero__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero__logo {
  width: min(100%, 560px);
  margin-bottom: clamp(24px, 4vw, 40px);
}

.hero__eyebrow {
  margin: 0 0 8px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brand-blue);
}

.hero__title {
  margin: 0;
  font-size: clamp(1.75rem, 1.2rem + 2.6vw, 2.75rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--brand-navy);
}

.hero__lead {
  max-width: 34rem;
  margin: 14px 0 0;
  font-size: clamp(1rem, 0.95rem + 0.3vw, 1.125rem);
  color: var(--ink-muted);
}

/* Site cards */
.sites {
  padding-block: clamp(32px, 6vw, 72px);
  background: var(--surface-alt);
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
  gap: clamp(20px, 3vw, 36px);
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease;
}

.card__link {
  display: flex;
  flex-direction: column;
  height: 100%;
  color: inherit;
  text-decoration: none;
}

.card__header {
  padding: clamp(20px, 3vw, 28px) clamp(20px, 3vw, 28px) 12px;
  text-align: center;
}

.card__tag {
  display: inline-block;
  margin-bottom: 10px;
  padding: 4px 12px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brand-navy);
  background: rgba(127, 156, 202, 0.18);
  border-radius: 999px;
}

.card__title {
  margin: 0;
  font-size: clamp(1.35rem, 1.1rem + 1vw, 1.75rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: var(--brand-navy);
}

.card__domain {
  margin: 6px 0 0;
  font-size: 0.95rem;
  color: var(--ink-muted);
}

.card__media {
  margin: 0 clamp(16px, 2.5vw, 24px);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  background: #f0f2f6;
}

.card__media img {
  width: 100%;
  aspect-ratio: 952 / 1351;
  object-fit: cover;
  transition: transform 400ms ease;
}

.card__footer {
  margin-top: auto;
  padding: clamp(18px, 3vw, 24px);
  text-align: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  min-height: 48px;
  padding: 12px 22px;
  font-size: 1rem;
  font-weight: 600;
  color: #fff;
  background: var(--brand-navy);
  border-radius: 12px;
  transition: background 200ms ease, transform 200ms ease;
}

.btn__arrow { transition: transform 200ms ease; }

@media (hover: hover) {
  .card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--brand-blue-light);
  }
  .card:hover .card__media img { transform: scale(1.02); }
  .card:hover .btn { background: #2a3f63; }
  .card:hover .btn__arrow { transform: translateX(3px); }
}

.card__link:focus-visible {
  outline: none;
}
.card:has(.card__link:focus-visible) {
  outline: 3px solid var(--brand-blue);
  outline-offset: 3px;
}

/* Footer */
.footer {
  padding-block: clamp(28px, 4vw, 40px);
  text-align: center;
  background: var(--surface);
  border-top: 1px solid var(--border);
}

.footer__copy {
  margin: 0 auto;
  max-width: 48rem;
  font-size: 0.9rem;
  color: var(--ink-muted);
}

.footer__small {
  margin: 8px auto 0;
  max-width: 48rem;
  font-size: 0.78rem;
  color: #8a92a3;
}

/* Wider screens: side-by-side cards with a little more breathing room */
@media (min-width: 760px) {
  .grid { grid-template-columns: repeat(2, 1fr); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .card, .btn, .btn__arrow, .card__media img { transition: none; }
  .card:hover { transform: none; }
}
