/*
Theme Name: LNANA
Author: Lake Norman Area NA
Description: Local WordPress theme for the Lake Norman Area of Narcotics Anonymous.
Version: 1.0.0
*/

:root {
  --ink: #182126;
  --muted: #5d6a72;
  --paper: #f5f7f8;
  --paper-alt: #ffffff;
  --line: #d9e0e3;
  --blue: #0f7490;
  --blue-dark: #0c5165;
  --gold: #ba7a2a;
  --green: #426657;
  --navy: #152934;
  --shadow: 0 20px 50px rgba(21, 41, 52, 0.12);
  --shadow-soft: 0 10px 25px rgba(21, 41, 52, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 92px;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.7;
}

a {
  color: var(--blue-dark);
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.18em;
}

.site-header {
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 8px 24px rgba(21, 41, 52, 0.06);
  position: sticky;
  top: 0;
  z-index: 20;
}

.site-alert {
  background: var(--navy);
  color: #fff;
  font-size: 0.84rem;
}

.site-alert__inner {
  align-items: center;
  display: flex;
  font-weight: 800;
  gap: 10px;
  justify-content: flex-end;
  min-height: 34px;
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
}

.site-alert a {
  color: #fff;
  font-weight: 900;
  text-decoration: none;
}

.site-alert a:hover {
  text-decoration: underline;
}

.site-header__inner,
.site-footer__inner,
.page-shell {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
}

.site-header__inner {
  align-items: center;
  display: flex;
  gap: 24px;
  justify-content: space-between;
  min-height: 76px;
  padding: 10px 0;
}

.brand {
  color: var(--ink);
  display: block;
  flex: 0 0 auto;
  line-height: 0;
  text-decoration: none;
}

.brand img {
  display: block;
  height: auto;
  width: clamp(62px, 8vw, 82px);
}

.site-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: flex-end;
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-nav a {
  border-radius: 999px;
  color: var(--ink);
  display: block;
  font-size: 0.86rem;
  font-weight: 800;
  line-height: 1.2;
  min-height: 40px;
  padding: 11px 14px;
  text-decoration: none;
  transition: background 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}

.site-nav a:hover,
.site-nav .current-menu-item a {
  background: var(--blue);
  box-shadow: 0 8px 20px rgba(15, 116, 144, 0.22);
  color: #fff;
}

.hero {
  background:
    linear-gradient(90deg, rgba(14, 30, 38, 0.88), rgba(14, 30, 38, 0.54) 48%, rgba(14, 30, 38, 0.22)),
    var(--hero-image) center / cover no-repeat;
  color: #fff;
  min-height: min(610px, 72vh);
  padding: clamp(78px, 12vw, 136px) 0 clamp(76px, 11vw, 122px);
}

.hero__content {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
}

.hero h1,
.page-title {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.35rem, 5.8vw, 4.7rem);
  letter-spacing: 0;
  line-height: 0.98;
  margin: 0 0 18px;
  max-width: 780px;
}

.hero p {
  font-size: clamp(1.05rem, 2.5vw, 1.35rem);
  font-weight: 700;
  margin: 0 0 30px;
  max-width: 620px;
}

.button,
.wp-block-button__link {
  background: var(--blue);
  border-radius: 999px;
  box-shadow: 0 14px 30px rgba(15, 116, 144, 0.28);
  color: #fff;
  display: inline-block;
  font-size: 0.95rem;
  font-weight: 900;
  padding: 13px 20px;
  text-decoration: none;
  transition: background 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}

.button:hover,
.wp-block-button__link:hover {
  background: var(--blue-dark);
  box-shadow: 0 18px 34px rgba(12, 81, 101, 0.3);
  transform: translateY(-1px);
}

.page-band {
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  padding: clamp(42px, 6vw, 78px) 0;
}

.page-band:nth-of-type(even) {
  background: var(--paper-alt);
}

.intro-grid {
  display: grid;
  align-items: start;
  gap: clamp(28px, 5vw, 58px);
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.9fr);
}

.content-column > *:first-child,
.page-content > *:first-child {
  margin-top: 0;
}

.content-column > *:last-child,
.page-content > *:last-child {
  margin-bottom: 0;
}

h2,
h3 {
  line-height: 1.18;
}

h2 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.75rem, 3vw, 2.45rem);
  letter-spacing: 0;
  margin: 0 0 20px;
}

h3 {
  color: var(--navy);
  font-size: clamp(1.15rem, 2vw, 1.38rem);
  margin: 30px 0 8px;
}

.notice {
  background: #fff;
  border: 1px solid var(--line);
  border-top: 5px solid var(--gold);
  border-left: 0;
  border-radius: 8px;
  box-shadow: var(--shadow);
  padding: clamp(22px, 3vw, 30px);
}

.info-line {
  background: linear-gradient(135deg, var(--blue-dark), var(--blue));
  border-radius: 6px;
  color: #fff;
  font-size: clamp(1.25rem, 3vw, 2.05rem);
  font-weight: 900;
  letter-spacing: 0;
  margin: 18px 0;
  padding: 18px;
  text-align: center;
}

.info-line a {
  color: #fff;
  text-decoration: none;
}

.info-line a:hover {
  text-decoration: underline;
}

.schedule-key,
.meeting-list {
  display: grid;
  gap: 18px;
}

.day-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 26px 0 38px;
}

.day-nav a {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  box-shadow: var(--shadow-soft);
  color: var(--navy);
  display: inline-block;
  font-size: 0.88rem;
  font-weight: 900;
  padding: 10px 14px;
  text-decoration: none;
}

.day-nav a:hover {
  background: var(--navy);
  color: #fff;
}

.schedule-key {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  margin: 24px 0 36px;
}

.key-item,
.meeting {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow-soft);
  padding: 20px;
}

.key-item strong,
.meeting strong {
  color: var(--blue-dark);
}

.day-heading {
  align-items: center;
  border-bottom: 1px solid var(--line);
  color: var(--navy);
  display: flex;
  gap: 14px;
  margin-top: 48px;
  padding-bottom: 12px;
}

.day-heading::after {
  background: var(--gold);
  content: "";
  flex: 1;
  height: 3px;
}

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

.day-heading,
.meeting {
  scroll-margin-top: 96px;
}

.meeting p {
  margin: 4px 0;
}

.meeting p:first-child {
  border-bottom: 1px solid var(--line);
  font-size: 1.04rem;
  margin: 0 0 12px;
  padding-bottom: 10px;
}

.meeting-actions {
  margin-top: 14px;
}

.map-link {
  align-items: center;
  background: var(--blue);
  border-radius: 999px;
  color: #fff;
  display: inline-flex;
  font-size: 0.86rem;
  font-weight: 900;
  min-height: 38px;
  padding: 9px 14px;
  text-decoration: none;
}

.map-link:hover {
  background: var(--blue-dark);
}

.site-footer {
  background: var(--navy);
  color: #dce6ea;
  padding: 40px 0;
}

.site-footer a {
  color: #dceff4;
}

.site-footer__inner {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: space-between;
}

.site-footer p {
  margin: 0;
}

.site-footer__title {
  color: #fff;
  font-weight: 900;
}

.site-footer__contact {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  padding: 14px 18px;
}

.site-footer__contact span {
  display: block;
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.site-footer__contact a {
  color: #fff;
  font-size: 1.18rem;
  font-weight: 900;
  text-decoration: none;
}

@media (max-width: 760px) {
  html {
    scroll-padding-top: 16px;
  }

  body {
    font-size: 17px;
  }

  .site-header {
    position: static;
  }

  .site-alert__inner {
    justify-content: center;
    min-height: 38px;
  }

  .site-header__inner {
    align-items: center;
    flex-direction: column;
    gap: 12px;
    padding: 12px 0 14px;
  }

  .site-footer__inner {
    align-items: flex-start;
    flex-direction: column;
  }

  .brand {
    flex: 0 1 auto;
  }

  .brand img {
    width: 76px;
  }

  .site-nav {
    width: 100%;
  }

  .site-nav ul {
    display: grid;
    gap: 8px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    justify-content: stretch;
    width: 100%;
  }

  .site-nav a {
    align-items: center;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 8px;
    display: flex;
    font-size: 0.86rem;
    justify-content: center;
    min-height: 46px;
    padding: 10px 8px;
    text-align: center;
  }

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

  .hero {
    background:
      linear-gradient(90deg, rgba(14, 30, 38, 0.88), rgba(14, 30, 38, 0.54) 48%, rgba(14, 30, 38, 0.22)),
      var(--hero-image-mobile) center / cover no-repeat;
    min-height: auto;
    padding: 72px 0 78px;
  }

  .meeting-list {
    grid-template-columns: 1fr;
  }

  .day-nav {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .day-nav a,
  .map-link {
    justify-content: center;
    text-align: center;
  }
}

@media (max-width: 420px) {
  .site-header__inner,
  .site-footer__inner,
  .page-shell,
  .hero__content {
    width: min(100% - 24px, 1120px);
  }

  .site-nav ul,
  .day-nav {
    grid-template-columns: 1fr;
  }
}
