/*
 * Ashtrom Demo — static homepage shell styles (Phase 4).
 * Reuses the corporate-blue palette values from widget/src/styles.css (kept as a
 * separate file — this is the SITE shell, not the widget's own scoped styles).
 */
:root {
  --afi-navy: #1B3E6F;
  --afi-blue: #1E4C8A;
  --afi-blue-soft: #E8EEF7;
  --afi-ink: #1A2733;
  --afi-muted: #8A97A1;
  --afi-line: #DDE4EE;
  --afi-bg: #F8FAFC;
  --afi-gold: #3E6EB5;
  --afi-gold-light: #6C9BDB;
  --afi-hero: #1B3E6F;
  --afi-hero-accent: #6C9BDB;
  --afi-radius: 18px;
  --afi-shadow: 0 18px 48px rgba(27, 62, 111, .16), 0 2px 8px rgba(27, 62, 111, .08);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  font-family: system-ui, 'Segoe UI', Arial, sans-serif;
  color: var(--afi-ink);
  background: var(--afi-bg);
  min-height: 100vh;
}

a { color: inherit; }

/* Header */
.site-header {
  background: #fff;
  border-bottom: 1px solid var(--afi-line);
  position: sticky;
  top: 0;
  z-index: 100;
}
.site-header__inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.wordmark {
  display: flex;
  align-items: baseline;
  gap: 6px;
  text-decoration: none;
  font-weight: 800;
  letter-spacing: .5px;
}
.wordmark__main { color: var(--afi-navy); font-size: 22px; }
.wordmark__sub { color: var(--afi-gold); font-size: 15px; font-weight: 600; }
.site-nav { display: flex; gap: 28px; }
.site-nav a {
  text-decoration: none;
  color: var(--afi-ink);
  font-size: 15px;
  font-weight: 500;
}
.site-nav a:hover { color: var(--afi-blue); }

/* Hero */
.hero {
  background: linear-gradient(135deg, var(--afi-navy), var(--afi-blue));
  color: #fff;
  padding: 88px 24px;
  text-align: center;
}
.hero__inner { max-width: 760px; margin: 0 auto; }
.hero h1 { font-size: 36px; margin: 0 0 16px; line-height: 1.3; }
.hero p { font-size: 18px; margin: 0 0 32px; color: var(--afi-blue-soft); line-height: 1.6; }
.hero__cta {
  display: inline-block;
  background: #fff;
  color: var(--afi-navy);
  padding: 14px 32px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
  box-shadow: var(--afi-shadow);
}
.hero__cta:hover { background: var(--afi-blue-soft); }

/* Projects */
.projects { max-width: 1120px; margin: 0 auto; padding: 56px 24px; }
.projects h2 { font-size: 28px; color: var(--afi-navy); margin: 0 0 8px; }
.projects__sub { color: var(--afi-muted); margin: 0 0 32px; }
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
}
.projects-grid__loading { color: var(--afi-muted); grid-column: 1 / -1; text-align: center; padding: 40px 0; }

.project-card {
  background: #fff;
  border: 1px solid var(--afi-line);
  border-radius: var(--afi-radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.project-card__img, .project-card__placeholder {
  width: 100%;
  height: 140px;
  object-fit: cover;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--afi-hero), var(--afi-hero-accent));
  color: #fff;
  font-weight: 700;
  text-align: center;
  padding: 8px;
}
.project-card__placeholder--sm { height: 96px; font-size: 14px; font-weight: 600; opacity: .9; }
.project-card__body { padding: 16px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.project-card__tag {
  display: inline-block;
  background: var(--afi-blue-soft);
  color: var(--afi-blue);
  font-size: 12px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 999px;
  width: fit-content;
}
.project-card h3 { margin: 0; font-size: 17px; color: var(--afi-navy); }
.project-card__city { margin: 0; color: var(--afi-muted); font-size: 14px; }
.project-card__badge { margin: 0; font-size: 13px; color: var(--afi-gold); font-weight: 600; }
.project-card__desc { margin: 4px 0 0; font-size: 13px; line-height: 1.5; color: var(--afi-ink); }

/* Featured cards — larger, distinct */
.project-card--featured {
  grid-column: span 2;
  border: 2px solid var(--afi-gold);
  box-shadow: var(--afi-shadow);
}
.project-card--featured .project-card__img,
.project-card--featured .project-card__placeholder {
  height: 220px;
  font-size: 20px;
}
@media (max-width: 640px) {
  .project-card--featured { grid-column: span 1; }
}

/* About */
.about { max-width: 760px; margin: 0 auto; padding: 0 24px 64px; }
.about h2 { font-size: 24px; color: var(--afi-navy); }
.about p { line-height: 1.7; color: var(--afi-ink); }

/* Footer */
.site-footer { background: var(--afi-navy); color: #fff; }
.site-footer__inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 14px;
}
.site-footer nav { display: flex; gap: 20px; }
.site-footer a { text-decoration: none; color: var(--afi-blue-soft); }
.site-footer a:hover { color: #fff; }
