/* Add here all your css styles (customizations) */

html, body {
  height: 100%;
  width: 100%;
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  align-items: stretch; /* explicit (matches default) so main/hero can't collapse to content width on very wide screens */
}

main {
  flex: 1;
  display: flex;
  flex-direction: column;
  width: 100%;
  align-items: stretch;
}

footer {
  margin-top: auto;
}

/* NOTE: kept the values currently winning (the !important background/border
   below beat .nsl-footer's background/border-top of the same properties).
   If you'd rather the branded #171717 / var(--nsl-blue-light) from .nsl-footer
   show instead, remove the !important and the border-top line here. */
footer {
  background: #1d1d1d !important;
  color: #ffffff;
  border-top: 4px solid #1e88e5;
  font-size: 16px;
}

footer p {
  margin-bottom: 0;
}

footer h5 {
  color: #ffffff;
  font-weight: 600;
}

footer p,
footer a {
  color: #d0d0d0;
}

footer a {
  color: #4da6ff;
}

footer a:hover {
  color: #ffffff;
  text-decoration: none;
}

.lodge-symbol {
  max-width: 350px;
  opacity: 0.85;
  margin: 40px auto;
  display: block;
}
.lodge-medalion {
  max-width: 200px;
  opacity: 0.85;
  margin: 40px auto;
  display: block;
}

:root {
  --nsl-blue: #061b52;
  --nsl-blue-light: #0b4f9c;
  --nsl-gold: #d7b25b;
  --nsl-dark: #111111;
  --nsl-soft: #f7f4ed;
}

body {
  background: #fff;
  color: #222;
}

.nsl-header .container {
  max-width: 1180px;
}

.nsl-brand {
  display: flex;
  align-items: center;
  gap: 16px;
  color: var(--nsl-blue) !important;
  font-weight: 700;
  font-size: 24px;
  white-space: nowrap;
}

.nsl-brand img {
  width: 70px;
  height: auto;
}

.nsl-header .nav-link {
  color: #252525;
  letter-spacing: .02em;
}

.nsl-header .nav-link:hover,
.nsl-header .nav-link:focus,
.nsl-header .active .nav-link {
  color: var(--nsl-blue-light) !important;
  text-decoration: underline;
}

.nsl-hero {
  position: relative;
  min-height: 640px;
  height: calc(100vh - 82px);
  overflow: hidden;
  background: #0b1f33;
  width: 100%;
}

.nsl-hero__image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 68% center;
  z-index: 0;
}

.nsl-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.00) 55%, rgba(0,0,0,0.48) 100%);
  z-index: 1;
  pointer-events: none;
}

.nsl-hero__action {
  position: absolute;
  left: 50%;
  bottom: 42px;
  transform: translateX(-50%);
  z-index: 2;
  text-align: center;
}

.nsl-button {
  display: inline-block;
  background: rgba(11, 79, 156, .95);
  color: #fff;
  text-transform: uppercase;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: .04em;
  border-radius: 8px;
  padding: 14px 26px;
  border: 1px solid rgba(255,255,255,.45);
  box-shadow: 0 12px 30px rgba(0,0,0,.28);
}

.nsl-button:hover,
.nsl-button:focus {
  color: #fff;
  text-decoration: none;
  background: #083f7d;
}

.nsl-section {
  padding: 70px 0;
}

.nsl-section--soft {
  background: var(--nsl-soft);
}

.nsl-section-title {
  font-family: Georgia, 'Times New Roman', serif;
  color: var(--nsl-blue);
  font-weight: 700;
  font-size: clamp(34px, 4vw, 48px);
  margin-bottom: 16px;
}

.nsl-gold-rule {
  width: 120px;
  height: 3px;
  background: var(--nsl-gold);
  margin: 0 auto 26px;
}

.nsl-intro {
  max-width: 850px;
  margin: 0 auto;
  font-size: 19px;
  line-height: 1.8;
  color: #444;
}

.nsl-card {
  height: 100%;
  background: #fff;
  border-radius: 16px;
  padding: 34px 28px;
  box-shadow: 0 12px 32px rgba(0,0,0,.08);
  border-top: 4px solid var(--nsl-gold);
}

.nsl-card h3 {
  font-family: Georgia, 'Times New Roman', serif;
  color: var(--nsl-blue);
  font-weight: 700;
  margin-bottom: 12px;
}

.nsl-card p {
  color: #555;
  line-height: 1.65;
  margin-bottom: 0;
}

.nsl-callout {
  background: linear-gradient(135deg, #081a42, #0a3c76);
  color: #fff;
  border-radius: 18px;
  padding: 46px;
  box-shadow: 0 18px 42px rgba(0,0,0,.18);
}

.nsl-callout h2 {
  font-family: Georgia, 'Times New Roman', serif;
  font-weight: 700;
  margin-bottom: 12px;
}

.nsl-callout p {
  color: rgba(255,255,255,.86);
  font-size: 18px;
  margin-bottom: 0;
}

.nsl-callout .nsl-button {
  background: var(--nsl-gold);
  color: #111;
  border: 0;
}

.nsl-footer {
  background: #171717;
  color: #fff;
  border-top: 4px solid var(--nsl-blue-light);
}

.nsl-footer p,
.nsl-footer h5 {
  margin-bottom: 8px;
}

@media (max-width: 991.98px) {
  .nsl-brand { font-size: 20px; }
  .nsl-brand img { width: 58px; }
  .nsl-hero { height: 72vh; min-height: 560px; }
  .nsl-hero__image { object-position: 72% center; }
}

@media (max-width: 575.98px) {
  .nsl-brand { font-size: 18px; gap: 10px; }
  .nsl-brand img { width: 48px; }
  .nsl-hero { height: 70vh; min-height: 500px; }
  .nsl-hero__image { object-position: 72% center; }
  .nsl-section { padding: 48px 0; }
  .nsl-callout { padding: 34px 24px; }
}

/* The hero title/tagline is baked into the photo itself, positioned toward
   the left. object-fit: cover crops horizontally whenever the hero box's
   width:height ratio is narrower than the photo's own ratio, and the fixed
   68% object-position anchors that crop toward the right (the building),
   eating into the text on the left first. These desktop-only (>=992px)
   aspect-ratio breakpoints shift the crop left as the window gets
   proportionally less wide/short, keeping more of the text on screen.
   Standard 16:9/16:10 laptop and desktop screens fall inside this range,
   which is intentional -- that's where the cropping actually happens.
   This reduces, but can't fully eliminate, cropping at odd window shapes —
   the real fix is moving the title text out of the photo into HTML/CSS. */
@media (min-width: 992px) and (max-aspect-ratio: 16/9) {
  .nsl-hero__image { object-position: 55% center; }
}

@media (min-width: 992px) and (max-aspect-ratio: 4/3) {
  .nsl-hero__image { object-position: 42% center; }
}

@media (min-width: 992px) and (max-aspect-ratio: 1/1) {
  .nsl-hero__image { object-position: 30% center; }
}
