/* First Meridian Credit Union — static demo styles */

:root {
  --color-navy: #0a2342;
  --color-navy-deep: #06182d;
  --color-teal: #1a7f7a;
  --color-teal-light: #2a9d94;
  --color-gold: #c9a227;
  --color-gold-muted: #a68520;
  --color-surface: #f7f9fc;
  --color-white: #ffffff;
  --color-text: #1a2332;
  --color-text-muted: #5c6678;
  --font-sans: "Source Sans 3", system-ui, -apple-system, Segoe UI, sans-serif;
  --font-display: "Libre Baskerville", Georgia, serif;
  --shadow-sm: 0 1px 2px rgba(10, 35, 66, 0.06);
  --shadow-md: 0 8px 24px rgba(10, 35, 66, 0.1);
  --radius: 12px;
  --max-width: 1120px;
}

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

html {
  scroll-behavior: smooth;
}

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

a {
  color: var(--color-teal);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

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

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Header */
.site-header {
  background: var(--color-navy-deep);
  color: var(--color-white);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow-md);
}

.site-header__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0.875rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: inherit;
  text-decoration: none;
}

.brand:hover {
  text-decoration: none;
  opacity: 0.95;
}

.brand__mark {
  width: 44px;
  height: 44px;
  background: linear-gradient(145deg, var(--color-teal-light), var(--color-teal));
  border-radius: 10px;
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: -0.02em;
  color: var(--color-white);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.brand__text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.brand__name {
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.brand__tag {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  opacity: 0.75;
}

.nav-main {
  display: flex;
  align-items: center;
  gap: 0.25rem 1.25rem;
  flex-wrap: wrap;
}

.nav-main a {
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.9375rem;
  font-weight: 500;
  text-decoration: none;
}

.nav-main a:hover {
  color: var(--color-white);
  text-decoration: underline;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.625rem 1.125rem;
  font-family: inherit;
  font-size: 0.9375rem;
  font-weight: 600;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.15s ease, transform 0.1s ease;
}

.btn:hover {
  text-decoration: none;
}

.btn:active {
  transform: scale(0.98);
}

.btn--ghost {
  background: transparent;
  color: var(--color-white);
  border: 1px solid rgba(255, 255, 255, 0.35);
}

.btn--ghost:hover {
  background: rgba(255, 255, 255, 0.08);
}

.btn--primary {
  background: var(--color-teal);
  color: var(--color-white);
}

.btn--primary:hover {
  background: var(--color-teal-light);
}

.btn--gold {
  background: var(--color-gold);
  color: var(--color-navy-deep);
}

.btn--gold:hover {
  background: #d4b03a;
}

/* Hero */
.hero {
  background: linear-gradient(
    160deg,
    var(--color-navy) 0%,
    var(--color-navy-deep) 45%,
    #0d3040 100%
  );
  color: var(--color-white);
  padding: 3.5rem 1.25rem 4rem;
  position: relative;
  overflow: hidden;
}

.hero::after {
  content: "";
  position: absolute;
  right: -15%;
  top: 20%;
  width: 55%;
  height: 80%;
  background: radial-gradient(
    ellipse at center,
    rgba(26, 127, 122, 0.25) 0%,
    transparent 70%
  );
  pointer-events: none;
}

.hero__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  position: relative;
  z-index: 1;
  display: grid;
  gap: 2rem;
  align-items: center;
}

@media (min-width: 900px) {
  .hero__inner {
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    padding: 1rem 0;
  }
}

.hero__eyebrow {
  font-size: 0.8125rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--color-teal-light);
  margin: 0 0 0.75rem;
  font-weight: 600;
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 600;
  line-height: 1.15;
  margin: 0 0 1rem;
  letter-spacing: 0.01em;
}

.hero__lead {
  font-size: 1.125rem;
  opacity: 0.9;
  margin: 0 0 1.75rem;
  max-width: 36ch;
}

.hero__ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.hero-card {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius);
  padding: 1.5rem;
  backdrop-filter: blur(8px);
}

.hero-card h2 {
  font-size: 1rem;
  font-weight: 600;
  margin: 0 0 1rem;
  opacity: 0.95;
}

.hero-stat {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 0.65rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.9375rem;
}

.hero-stat:last-child {
  border-bottom: none;
}

.hero-stat strong {
  font-size: 1.125rem;
  font-variant-numeric: tabular-nums;
}

/* Sections */
.section {
  padding: 3.5rem 1.25rem;
}

.section__inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

.section__title {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 600;
  color: var(--color-navy);
  margin: 0 0 0.5rem;
}

.section__subtitle {
  color: var(--color-text-muted);
  margin: 0 0 2rem;
  max-width: 52ch;
}

/* Cards grid */
.cards {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: 1fr;
}

@media (min-width: 640px) {
  .cards {
    grid-template-columns: repeat(3, 1fr);
  }
}

.card {
  background: var(--color-white);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(10, 35, 66, 0.06);
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.card:hover {
  box-shadow: var(--shadow-md);
  border-color: rgba(26, 127, 122, 0.2);
}

.card__icon {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  background: linear-gradient(145deg, #e8f4f3, #d4ebe9);
  color: var(--color-teal);
  display: grid;
  place-items: center;
  font-size: 1.35rem;
  margin-bottom: 1rem;
}

.card h3 {
  font-size: 1.125rem;
  margin: 0 0 0.5rem;
  color: var(--color-navy);
}

.card p {
  margin: 0;
  font-size: 0.9375rem;
  color: var(--color-text-muted);
}

/* Rates strip */
.rates {
  background: var(--color-white);
  border-block: 1px solid rgba(10, 35, 66, 0.08);
}

.rates__grid {
  display: grid;
  gap: 1.5rem;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 2rem 1.25rem;
  text-align: center;
}

@media (min-width: 700px) {
  .rates__grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.rate-item .value {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 600;
  color: var(--color-teal);
  display: block;
}

.rate-item .label {
  font-size: 0.875rem;
  color: var(--color-text-muted);
  margin-top: 0.25rem;
}

/* CTA band */
.cta-band {
  background: linear-gradient(90deg, var(--color-navy), #0f3550);
  color: var(--color-white);
  padding: 2.5rem 1.25rem;
  text-align: center;
}

.cta-band h2 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  margin: 0 0 0.5rem;
}

.cta-band p {
  margin: 0 0 1.25rem;
  opacity: 0.9;
}

/* Footer */
.site-footer {
  background: var(--color-navy-deep);
  color: rgba(255, 255, 255, 0.82);
  padding: 2.5rem 1.25rem 1.5rem;
  font-size: 0.875rem;
}

.site-footer__grid {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  gap: 2rem;
}

@media (min-width: 700px) {
  .site-footer__grid {
    grid-template-columns: 2fr 1fr 1fr;
  }
}

.site-footer h3 {
  font-size: 0.8125rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(255, 255, 255, 0.55);
  margin: 0 0 1rem;
  font-weight: 600;
}

.site-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-footer li {
  margin-bottom: 0.5rem;
}

.site-footer a {
  color: rgba(255, 255, 255, 0.88);
}

.site-footer a:hover {
  color: var(--color-white);
}

.footer-bottom {
  max-width: var(--max-width);
  margin: 2rem auto 0;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.55);
}

/* Legal pages */
.legal-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.legal-main {
  flex: 1;
  padding: 2.5rem 1.25rem 3rem;
}

.legal-inner {
  max-width: 720px;
  margin: 0 auto;
  background: var(--color-white);
  padding: 2rem 1.75rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(10, 35, 66, 0.06);
}

.legal-inner h1 {
  font-family: var(--font-display);
  font-size: 1.75rem;
  color: var(--color-navy);
  margin: 0 0 1rem;
}

.legal-banner {
  background: #fff8e6;
  border: 1px solid #e8d48a;
  border-radius: 8px;
  padding: 1rem 1.125rem;
  margin-bottom: 1.5rem;
  font-size: 0.9375rem;
  color: #5c4a1a;
}

.legal-inner h2 {
  font-size: 1.125rem;
  color: var(--color-navy);
  margin: 1.75rem 0 0.5rem;
}

.legal-inner p,
.legal-inner li {
  color: var(--color-text-muted);
  font-size: 0.9375rem;
}

.legal-inner ul {
  padding-left: 1.25rem;
}

.legal-inner .meta {
  font-size: 0.8125rem;
  color: var(--color-text-muted);
  margin-bottom: 1rem;
}

.back-link {
  display: inline-block;
  margin-bottom: 1rem;
  font-weight: 600;
}
