:root {
  --red: #bf0a30;
  --blue: #002868;
  --navy: #001845;
  --cream: #fbf9f4;
  --ink: #1a1a1a;
  --muted: #55606e;
  --border: #e6e2d8;
  --shadow: 0 1px 2px rgba(0,0,0,.04), 0 8px 24px rgba(0,40,104,.08);
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  font-family: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  color: var(--ink);
  background: var(--cream);
  line-height: 1.6;
  overflow-x: hidden;
}

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

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

.hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, var(--red) 0%, #7a0519 100%);
  color: white;
  padding: clamp(1.25rem, 3vw, 2rem) 0 clamp(2rem, 5vw, 3rem);
  border-bottom: 6px solid var(--navy);
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: clamp(1rem, 3vw, 2rem);
  flex-wrap: wrap;
  text-align: left;
}

.hero-logo {
  flex: 0 0 auto;
  width: clamp(90px, 14vw, 140px);
  height: auto;
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.35));
  background: white;
  padding: 6px;
  border-radius: 50%;
}

.hero-text { flex: 0 1 auto; }

.hero h1 { margin-bottom: .4rem; }

@media (max-width: 540px) {
  .hero-inner { flex-direction: column; text-align: center; }
}

.hero h1 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(2rem, 5vw, 3.25rem);
  margin: 0 0 .5rem;
  letter-spacing: -.01em;
  font-weight: 700;
}

.tagline {
  font-size: clamp(1rem, 2.5vw, 1.125rem);
  margin: 0;
  opacity: .9;
}

main.container {
  padding-top: clamp(3rem, 7vw, 5rem);
  padding-bottom: clamp(2.5rem, 5vw, 4rem);
}

section { margin-bottom: clamp(2rem, 5vw, 3rem); }

h2 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(1.4rem, 4vw, 1.75rem);
  color: var(--navy);
  margin: 0 0 1.25rem;
  padding-bottom: .5rem;
  border-bottom: 2px solid var(--red);
  display: inline-block;
}

.grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

.grid-2 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }

.card {
  background: white;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: clamp(1.25rem, 4vw, 1.75rem);
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  transition: transform .15s ease, box-shadow .15s ease;
}

@media (hover: hover) {
  .card:hover {
    transform: translateY(-2px);
    box-shadow: 0 2px 4px rgba(0,0,0,.05), 0 16px 32px rgba(0,40,104,.12);
  }
}

.logo-wrap {
  height: clamp(100px, 22vw, 140px);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  background: var(--cream);
  border-radius: 8px;
  padding: 1rem;
}

.logo-wrap img {
  max-height: 100%;
  max-width: 100%;
  object-fit: contain;
}

.logo-wrap.placeholder {
  background: linear-gradient(135deg, var(--red), var(--blue));
  color: white;
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(2rem, 6vw, 2.5rem);
  font-weight: 700;
  letter-spacing: .05em;
}

.card h3 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.35rem;
  margin: 0 0 .5rem;
  color: var(--navy);
}

.motto {
  font-style: italic;
  color: var(--red);
  margin: 0 0 .75rem;
  font-weight: 500;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: auto;
  padding: .75rem 1.25rem;
  min-height: 44px;
  background: var(--red);
  color: white;
  text-decoration: none;
  border-radius: 6px;
  font-weight: 600;
  font-size: .9rem;
  align-self: flex-start;
  transition: background .15s ease;
}

.btn:hover, .btn:focus-visible { background: #9d0826; }
.btn:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }

footer {
  background: var(--navy);
  color: rgba(255,255,255,.75);
  padding: 1.5rem 0;
  text-align: center;
  font-size: .875rem;
}

footer p { margin: 0; }
