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

:root {
  --blue: #062180;
  --blue-dark: #041656;
  --header-bg: #ececec;
  --content-bg: #f7f7f5;
  --white: #ffffff;
  --frame-border: #5b4f8a;
  --text: #333333;
  --font: "Source Sans 3", "Helvetica Neue", Arial, sans-serif;
}

html,
body {
  min-height: 100%;
}

body {
  font-family: var(--font);
  background: #d8d8d8;
  color: var(--text);
}

.page-frame {
  min-height: 100vh;
  max-width: 1280px;
  margin: 0 auto;
  border: 3px solid var(--frame-border);
  display: flex;
  flex-direction: column;
  background: var(--white);
}

/* Top header bar */
.site-header {
  display: flex;
  align-items: center;
  gap: 2rem;
  padding: 1rem 1.75rem;
  background: var(--header-bg);
  border-bottom: 1px solid #d5d5d5;
  flex-shrink: 0;
}

.logo {
  display: block;
  flex-shrink: 0;
}

.logo-img {
  display: block;
  height: auto;
}

.logo-img--header {
  width: 72px;
}

.logo-img--panel {
  width: min(220px, 85%);
  max-width: 100%;
}

.main-nav {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
}

.nav-link {
  color: var(--blue);
  text-decoration: none;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 0.5rem 1.25rem;
  transition: color 0.2s ease;
}

.nav-link:hover,
.nav-link.is-active {
  color: var(--blue-dark);
}

.nav-divider {
  width: 1px;
  height: 1.25rem;
  background: #b0b0b0;
  flex-shrink: 0;
}

/* Hero */
.hero {
  position: relative;
  overflow: hidden;
  background-color: #6b4f2a;
}

.hero--compact {
  min-height: 320px;
}

.hero--home {
  min-height: 560px;
}

.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to right,
    rgba(0, 0, 0, 0.5) 0%,
    rgba(0, 0, 0, 0.2) 50%,
    rgba(0, 0, 0, 0.05) 75%
  );
  pointer-events: none;
}

.hero-overlay {
  position: relative;
  z-index: 1;
  min-height: inherit;
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  padding: 3rem 0 3rem 3rem;
}

.hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-width: 520px;
  color: var(--white);
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.6);
}

.hero-copy h1 {
  font-size: clamp(2.2rem, 4vw, 3.5rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  margin-bottom: 1.25rem;
}

.hero-copy p {
  font-size: clamp(1rem, 1.8vw, 1.35rem);
  font-weight: 400;
  line-height: 1.45;
}

/* Brand panel */
.brand-panel {
  align-self: stretch;
  width: min(260px, 30vw);
  background: var(--white);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2.5rem 1.5rem;
  text-align: center;
  box-shadow: -8px 0 24px rgba(0, 0, 0, 0.15);
}


/* Page content */
.page-content {
  background: var(--content-bg);
  padding: 2.5rem 3rem 3rem;
}

.content-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.content-box {
  background: var(--white);
  border: 1px solid #e2e2de;
  padding: 1.75rem;
}

.content-box h2 {
  color: var(--blue);
  font-size: 1.5rem;
  font-weight: 800;
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.content-box h3 {
  color: var(--blue);
  font-size: 1.1rem;
  font-weight: 700;
  margin: 1.25rem 0 0.5rem;
}

.content-box p,
.content-box li {
  line-height: 1.6;
  margin-bottom: 0.75rem;
}

.content-box ul {
  padding-left: 1.25rem;
}

.content-box a {
  color: var(--blue);
  font-weight: 600;
}

.notice {
  background: #fff3cd;
  border: 1px solid #f0e0a0;
  padding: 1rem 1.25rem;
  margin-bottom: 1rem;
  color: #5c4a00;
}

.article h2 {
  color: var(--blue);
  font-size: 1.75rem;
  font-weight: 800;
  margin: 2rem 0 1rem;
}

.article h2:first-child {
  margin-top: 0;
}

.article h3 {
  color: var(--blue);
  font-size: 1.2rem;
  font-weight: 700;
  margin: 1.5rem 0 0.75rem;
}

.article p,
.article li {
  line-height: 1.65;
  margin-bottom: 0.85rem;
}

.article ul {
  padding-left: 1.25rem;
  margin-bottom: 1rem;
}

.location-card {
  background: var(--white);
  border: 1px solid #e2e2de;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}

.location-card h3 {
  color: var(--blue);
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
}

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

.contact-details {
  background: var(--white);
  border: 1px solid #e2e2de;
  padding: 1.75rem;
}

.contact-details h2 {
  color: var(--blue);
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.contact-details p {
  line-height: 1.6;
  margin-bottom: 0.75rem;
}

.contact-details a {
  color: var(--blue);
}

.contact-form {
  background: var(--white);
  border: 1px solid #e2e2de;
  padding: 1.75rem;
}

.contact-form label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.35rem;
  color: var(--blue);
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  margin-bottom: 1rem;
  padding: 0.65rem 0.75rem;
  border: 1px solid #ccc;
  font: inherit;
}

.contact-form textarea {
  min-height: 140px;
  resize: vertical;
}

.contact-form button {
  background: var(--blue);
  color: var(--white);
  border: none;
  padding: 0.75rem 1.5rem;
  font: inherit;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  cursor: pointer;
}

.contact-form button:hover {
  background: var(--blue-dark);
}

.site-footer {
  background: var(--header-bg);
  border-top: 1px solid #d5d5d5;
  padding: 1.25rem 3rem;
  font-size: 0.9rem;
  color: #555;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.site-footer a {
  color: var(--blue);
  text-decoration: none;
  font-weight: 600;
}

@media (max-width: 900px) {
  .content-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .site-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem 1.25rem;
  }

  .nav-link {
    font-size: 0.85rem;
    padding: 0.4rem 0.75rem;
  }

  .hero-overlay {
    flex-direction: column;
    padding: 2rem 0 0 1.5rem;
    min-height: 480px;
  }

  .hero-copy {
    margin-bottom: 2rem;
  }

  .brand-panel {
    width: 100%;
    box-shadow: 0 -8px 24px rgba(0, 0, 0, 0.15);
    padding: 2rem 1.5rem;
  }

  .page-content {
    padding: 2rem 1.25rem;
  }

  .site-footer {
    padding: 1.25rem;
  }
}
