/* ============================================
   Lansing Shoals Light Station: Static Site
   Maritime Heritage / Editorial Aesthetic
   ============================================ */

/* Fonts are loaded via <link> tags in each page <head>, not @import.
   An @import here blocks rendering until the stylesheet chain resolves. */

:root {
  --navy-deep: #0B1A2B;
  --navy: #152A3E;
  --navy-mid: #1E3A52;
  --slate: #2C4A62;
  --steel: #4A6D8C;
  --fog: #8AAABE;
  --mist: #C4D5DE;
  --salt: #E8EFF3;
  --cream: #F5F0E8;
  --warm-white: #FAF8F4;
  --gold: #C4943A;
  --gold-light: #D4AA5A;
  --rust: #8B4A2B;
  --coral: #C4705A;
  --font-display: 'Playfair Display', Georgia, serif;
  --font-body: 'Source Serif 4', 'Georgia', serif;
  --font-ui: 'DM Sans', 'Helvetica Neue', sans-serif;
  --max-width: 1200px;
  --header-height: 72px;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  color: var(--navy-deep);
  background: var(--warm-white);
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* ---- Accessibility ---- */

/* Visible keyboard focus. Pointer users never see it; keyboard users need it. */
:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
}

/* Off-screen until focused, then lands over the header. */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 200;
  background: var(--navy-deep);
  color: var(--cream);
  font-family: var(--font-ui);
  font-size: 0.9rem;
  padding: 0.75rem 1.25rem;
  text-decoration: none;
}

.skip-link:focus {
  left: 0;
}

/* Honour a reduced-motion preference: kills the smooth scroll and any transitions. */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

img { max-width: 100%; display: block; }
a { color: var(--steel); text-decoration: none; transition: color 0.3s; }
a:hover { color: var(--gold); }

/* ---- HEADER / NAV ---- */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: var(--header-height);
  background: rgba(11, 26, 43, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(196, 148, 58, 0.2);
  transition: background 0.3s;
}

.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 2rem;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.site-logo {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--cream);
  letter-spacing: 0.02em;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.site-logo .logo-icon {
  width: 28px;
  height: 28px;
  border: 2px solid var(--gold);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  color: var(--gold);
}

.nav-links {
  display: flex;
  gap: 0.25rem;
  list-style: none;
}

.nav-links a {
  font-family: var(--font-ui);
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--mist);
  padding: 0.5rem 0.9rem;
  border-radius: 4px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transition: all 0.3s;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--gold-light);
  background: rgba(196, 148, 58, 0.08);
}

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--cream);
  margin: 5px 0;
  transition: 0.3s;
}

/* ---- HERO ---- */
.hero {
  position: relative;
  min-height: 85vh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background: var(--navy-deep);
}

.hero-image {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
  opacity: 0.75;
}

.hero-image::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(11, 26, 43, 0.95) 0%,
    rgba(11, 26, 43, 0.6) 35%,
    rgba(11, 26, 43, 0.15) 65%,
    rgba(11, 26, 43, 0.08) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 4rem 2rem 4.5rem;
  width: 100%;
}

.hero-tag {
  font-family: var(--font-ui);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.25rem;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
}

.hero-tag::before {
  content: '';
  width: 32px;
  height: 1px;
  background: var(--gold);
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 5vw, 4.2rem);
  font-weight: 700;
  color: var(--cream);
  line-height: 1.15;
  max-width: 700px;
  margin-bottom: 1.25rem;
}

.hero-sub {
  font-family: var(--font-body);
  font-size: 1.15rem;
  color: var(--mist);
  max-width: 540px;
  line-height: 1.7;
  margin-bottom: 2rem;
}

.hero-coords {
  font-family: var(--font-ui);
  font-size: 0.78rem;
  color: var(--fog);
  letter-spacing: 0.06em;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.hero-coords svg {
  opacity: 0.6;
}

/* ---- PAGE HERO (interior pages) ---- */
.page-hero {
  padding: calc(var(--header-height) + 4rem) 2rem 3.5rem;
  background: var(--navy-deep);
  position: relative;
  overflow: hidden;
}

.page-hero::before {
  content: '';
  position: absolute;
  top: 0; right: -15%; bottom: 0;
  width: 60%;
  background: radial-gradient(ellipse at center, rgba(196, 148, 58, 0.06), transparent 70%);
}

.page-hero-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  position: relative;
}

.page-hero .hero-tag {
  margin-bottom: 1rem;
}

.page-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 700;
  color: var(--cream);
  line-height: 1.2;
}

.page-hero p {
  font-family: var(--font-body);
  color: var(--fog);
  font-size: 1.05rem;
  max-width: 600px;
  margin-top: 1rem;
  line-height: 1.7;
}

/* ---- CONTENT SECTIONS ---- */
.section {
  padding: 5rem 2rem;
}

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

.section--alt {
  background: var(--salt);
}

.section--navy {
  background: var(--navy-deep);
  color: var(--cream);
}

.section--navy h2 { color: var(--cream); }
.section--navy p { color: var(--mist); }

.section-tag {
  font-family: var(--font-ui);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.section-tag::before {
  content: '';
  width: 24px;
  height: 1px;
  background: var(--gold);
}

h2 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  font-weight: 700;
  color: var(--navy-deep);
  line-height: 1.2;
  margin-bottom: 1.5rem;
}

h3 {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 0.75rem;
  margin-top: 2rem;
}

.section--navy h3 { color: var(--gold-light); }

p {
  margin-bottom: 1.25rem;
  color: var(--slate);
  font-size: 1.02rem;
}

p:last-child { margin-bottom: 0; }

/* ---- MISSION STRIP ---- */
.mission-strip {
  background: var(--navy);
  padding: 3.5rem 2rem;
  border-top: 3px solid var(--gold);
}

.mission-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 2.5rem;
  align-items: center;
}

.mission-label {
  font-family: var(--font-ui);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  writing-mode: vertical-lr;
  transform: rotate(180deg);
}

.mission-text {
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 2.2vw, 1.65rem);
  font-weight: 400;
  font-style: italic;
  color: var(--cream);
  line-height: 1.6;
  border-left: 1px solid rgba(196, 148, 58, 0.3);
  padding-left: 2rem;
}

/* ---- FEATURE CARDS ---- */
.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-top: 2.5rem;
}

.feature-card {
  background: white;
  border: 1px solid var(--mist);
  padding: 2.25rem 2rem;
  transition: all 0.35s;
  position: relative;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 3px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s;
}

.feature-card:hover::before {
  transform: scaleX(1);
}

.feature-card:hover {
  border-color: var(--gold);
  box-shadow: 0 8px 30px rgba(11, 26, 43, 0.08);
}

.feature-card h3 {
  margin-top: 0;
  font-size: 1.2rem;
}

.feature-card p {
  font-size: 0.95rem;
  color: var(--steel);
  line-height: 1.65;
}

/* ---- TWO COL LAYOUT ---- */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}

.two-col--reverse { direction: rtl; }
.two-col--reverse > * { direction: ltr; }

/* ---- TIMELINE ---- */
.timeline {
  margin-top: 2rem;
  position: relative;
  padding-left: 2.5rem;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.5rem;
  bottom: 0;
  width: 1px;
  background: linear-gradient(to bottom, var(--gold), var(--mist));
}

.timeline-item {
  margin-bottom: 2.25rem;
  position: relative;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: -2.75rem;
  top: 0.6rem;
  width: 9px;
  height: 9px;
  background: var(--gold);
  border-radius: 50%;
  border: 2px solid var(--warm-white);
  box-shadow: 0 0 0 2px var(--gold);
}

.timeline-year {
  font-family: var(--font-ui);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--gold);
  letter-spacing: 0.06em;
  margin-bottom: 0.3rem;
}

.timeline-item h3 {
  margin-top: 0;
  font-size: 1.1rem;
}

.timeline-item p {
  font-size: 0.95rem;
}

/* ---- SPECS TABLE ---- */
.specs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1px;
  background: var(--mist);
  border: 1px solid var(--mist);
  margin-top: 2rem;
}

.spec-item {
  background: white;
  padding: 1.5rem;
}

.spec-label {
  font-family: var(--font-ui);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--steel);
  margin-bottom: 0.35rem;
}

.spec-value {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--navy-deep);
}

.spec-value small {
  font-size: 0.8rem;
  font-weight: 400;
  color: var(--steel);
}

/* ---- PROSE ---- */
.prose {
  max-width: 720px;
}

.prose p {
  font-size: 1.05rem;
  line-height: 1.8;
}

.prose h3 {
  font-size: 1.35rem;
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--mist);
}

.prose h3:first-of-type {
  border-top: none;
  padding-top: 0;
}

/* ---- CTA BANNER ---- */
.cta-banner {
  background: var(--navy);
  padding: 4rem 2rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 50%, rgba(196, 148, 58, 0.06), transparent 50%),
    radial-gradient(circle at 80% 50%, rgba(196, 148, 58, 0.04), transparent 50%);
}

.cta-banner h2 {
  color: var(--cream);
  position: relative;
}

.cta-banner p {
  color: var(--fog);
  max-width: 500px;
  margin: 0 auto 2rem;
  position: relative;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-ui);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.9rem 2rem;
  border: none;
  cursor: pointer;
  transition: all 0.3s;
  position: relative;
}

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

.btn--primary:hover {
  background: var(--gold-light);
  color: var(--navy-deep);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(196, 148, 58, 0.3);
}

.btn--outline {
  background: transparent;
  color: var(--cream);
  border: 1px solid rgba(196, 148, 58, 0.4);
}

.btn--outline:hover {
  border-color: var(--gold);
  color: var(--gold);
}

/* ---- FOOTER ---- */
.site-footer {
  background: var(--navy-deep);
  padding: 3.5rem 2rem 2rem;
  border-top: 1px solid rgba(196, 148, 58, 0.15);
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 3rem;
}

.footer-brand h3 {
  font-family: var(--font-display);
  color: var(--cream);
  font-size: 1.15rem;
  margin: 0 0 0.75rem;
}

.footer-brand p {
  color: var(--fog);
  font-size: 0.9rem;
  line-height: 1.6;
}

.footer-nav h4 {
  font-family: var(--font-ui);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1rem;
}

.footer-nav ul {
  list-style: none;
}

.footer-nav li {
  margin-bottom: 0.6rem;
}

.footer-nav a {
  font-family: var(--font-ui);
  font-size: 0.88rem;
  color: var(--fog);
}

.footer-nav a:hover {
  color: var(--gold-light);
}

/* Non-link footer items (location facts) match the link styling without pretending to be clickable. */
.footer-nav li > span {
  font-family: var(--font-ui);
  font-size: 0.88rem;
  color: var(--fog);
}

.footer-bottom {
  max-width: var(--max-width);
  margin: 2.5rem auto 0;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(196, 148, 58, 0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-bottom p {
  font-family: var(--font-ui);
  font-size: 0.78rem;
  color: var(--steel);
  margin: 0;
}

/* ---- MEMBERS NOTICE ---- */
.members-notice {
  background: linear-gradient(135deg, var(--cream) 0%, var(--salt) 100%);
  border: 1px solid var(--mist);
  padding: 2.5rem;
  margin-top: 2rem;
  text-align: center;
}

.members-notice h3 {
  margin-top: 0;
  color: var(--navy);
}

.members-notice p {
  font-size: 0.95rem;
  color: var(--steel);
  max-width: 500px;
  margin: 0 auto 1.5rem;
}

/* ---- RESPONSIVE ---- */
@media (max-width: 900px) {
  .two-col {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

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

  .mission-label {
    writing-mode: horizontal-tb;
    transform: none;
  }

  .mission-text {
    border-left: none;
    padding-left: 0;
    border-top: 1px solid rgba(196, 148, 58, 0.3);
    padding-top: 1.5rem;
  }
}

@media (max-width: 700px) {
  .nav-links {
    display: none;
    position: absolute;
    top: var(--header-height);
    left: 0; right: 0;
    background: rgba(11, 26, 43, 0.97);
    flex-direction: column;
    padding: 1rem;
    border-bottom: 1px solid rgba(196, 148, 58, 0.2);
  }

  .nav-links.open { display: flex; }
  .nav-toggle { display: block; }

  .hero { min-height: 75vh; }

  .section { padding: 3.5rem 1.25rem; }

  .footer-bottom {
    flex-direction: column;
    gap: 0.75rem;
    text-align: center;
  }

  .specs-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 480px) {
  .specs-grid {
    grid-template-columns: 1fr;
  }
}
