/* Nashville static site stylesheet */

:root {
  --bg: #edf3f8;
  --surface: rgba(255, 255, 255, 0.90);
  --surface-strong: rgba(255, 255, 255, 0.96);
  --surface-soft: rgba(246, 250, 253, 0.88);
  --text: #203043;
  --muted: #5f6f82;
  --heading: #12304e;
  --primary: #1a5f7a;
  --primary-2: #2c7da0;
  --primary-dark: #134a60;
  --line: rgba(191, 208, 223, 0.95);
  --shadow-sm: 0 14px 36px rgba(8, 27, 44, 0.10);
  --shadow-md: 0 28px 64px rgba(8, 27, 44, 0.16);
  --radius-sm: 10px;
  --radius-md: 18px;
  --radius-lg: 28px;
  --content-width: 1180px;
  --reading-width: 860px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.7;
  color: var(--text);
  background: var(--bg);
  position: relative;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image: url("../images/nashville-skyline-background.jpg");
  background-size: cover;
  background-position: center top;
  background-repeat: no-repeat;
  background-attachment: fixed;
  filter: saturate(1.12) contrast(1.08) brightness(1.03);
  transform: scale(1.015);
  transform-origin: center top;
  z-index: -2;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(10, 35, 56, 0.18) 0%, rgba(10, 35, 56, 0.08) 20%, rgba(237, 243, 248, 0.70) 56%, rgba(237, 243, 248, 0.90) 100%),
    radial-gradient(circle at top center, rgba(255,255,255,0.18), rgba(255,255,255,0) 46%);
  z-index: -1;
}

body.nav-open {
  overflow: hidden;
}

a {
  color: var(--primary);
  text-decoration: none;
  text-underline-offset: 0.2em;
  transition: color 0.2s ease, opacity 0.2s ease, transform 0.2s ease;
}

a:hover {
  color: var(--primary-dark);
}

a:focus-visible,
button:focus-visible {
  outline: 3px solid rgba(44, 125, 160, 0.28);
  outline-offset: 3px;
}

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

header {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(18px);
  background: rgba(17, 59, 76, 0.80);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 12px 30px rgba(8, 27, 44, 0.18);
}

.site-nav,
footer nav {
  width: min(calc(100% - 32px), var(--content-width));
  margin: 0 auto;
}

.site-nav {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 18px 22px;
  padding: 14px 0;
}

.site-brand {
  color: #fff;
  font-weight: 800;
  font-size: clamp(1rem, 1vw + 0.85rem, 1.32rem);
  letter-spacing: -0.02em;
  max-width: 280px;
  line-height: 1.15;
  text-shadow: 0 1px 2px rgba(0,0,0,0.18);
}

.site-brand:hover {
  color: #fff;
  opacity: 0.92;
}

.nav-toggle {
  display: none;
  appearance: none;
  border: 0;
  background: transparent;
  width: 46px;
  height: 46px;
  margin-left: auto;
  padding: 0;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  margin: 5px auto;
  border-radius: 999px;
  background: #fff;
  transition: transform 0.22s ease, opacity 0.22s ease;
}

.site-nav.is-open .nav-toggle span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.site-nav.is-open .nav-toggle span:nth-child(2) {
  opacity: 0;
}

.site-nav.is-open .nav-toggle span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 12px 18px;
}

.nav-links a {
  color: rgba(255,255,255,0.96);
  font-size: 0.94rem;
  font-weight: 700;
  position: relative;
  padding: 7px 0;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 1px;
  height: 2px;
  border-radius: 999px;
  background: #fff;
  transform: scaleX(0.3);
  opacity: 0;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-links a:hover::after,
.nav-links a:focus-visible::after {
  transform: scaleX(1);
  opacity: 1;
}

main {
  width: min(calc(100% - 32px), var(--content-width));
  margin: 26px auto 72px;
  position: relative;
  z-index: 1;
}

main > h1 {
  margin: 0 0 22px;
  padding: clamp(34px, 6vw, 70px) clamp(20px, 5vw, 56px);
  border: 1px solid rgba(255,255,255,0.22);
  border-radius: var(--radius-lg);
  background:
    linear-gradient(135deg, rgba(26, 95, 122, 0.78), rgba(44, 125, 160, 0.68)),
    linear-gradient(180deg, rgba(255,255,255,0.10), rgba(255,255,255,0));
  box-shadow: var(--shadow-md);
  color: #fff;
  font-size: clamp(2.15rem, 4.2vw, 4.1rem);
  line-height: 1.08;
  letter-spacing: -0.035em;
  text-shadow: 0 3px 16px rgba(0,0,0,0.22);
}

main > h1::after {
  content: "";
  display: block;
  width: 92px;
  height: 4px;
  margin-top: 20px;
  border-radius: 999px;
  background: rgba(255,255,255,0.86);
}

main > section,
main > p,
main > ul,
main > ol,
main > table,
main > blockquote,
main > .faq-item {
  width: min(100%, var(--reading-width));
  margin-left: auto;
  margin-right: auto;
}

main > section {
  margin-bottom: 22px;
  padding: clamp(22px, 3vw, 36px);
  border: 1px solid rgba(255,255,255,0.28);
  border-left: 5px solid var(--primary);
  border-radius: var(--radius-md);
  background: linear-gradient(180deg, rgba(255,255,255,0.82), rgba(246,250,253,0.78));
  box-shadow: var(--shadow-sm);
  backdrop-filter: blur(4px);
}

main > section:nth-of-type(odd) {
  background: linear-gradient(180deg, rgba(255,255,255,0.93), rgba(242,248,252,0.88));
}

h1,
h2,
h3,
h4 {
  margin: 0 0 0.8em;
  line-height: 1.2;
  color: var(--heading);
}

h2 {
  font-size: clamp(1.55rem, 2vw, 2.2rem);
  color: var(--primary);
  letter-spacing: -0.02em;
}

h3 {
  font-size: clamp(1.12rem, 1.35vw, 1.42rem);
}

p,
ul,
ol,
table,
blockquote {
  margin: 0 0 1.08rem;
}

p:last-child,
ul:last-child,
ol:last-child,
table:last-child,
blockquote:last-child {
  margin-bottom: 0;
}

ul,
ol {
  padding-left: 1.2rem;
}

li + li {
  margin-top: 0.45rem;
}

strong {
  color: #163854;
}

section:first-of-type ul {
  list-style: none;
  padding-left: 0;
}

section:first-of-type li {
  position: relative;
  padding-left: 1.6rem;
}

section:first-of-type li::before {
  content: "✦";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--primary-2);
  font-weight: 700;
}

table {
  width: 100%;
  border-collapse: collapse;
  overflow: hidden;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: var(--surface-strong);
}

thead {
  background: linear-gradient(135deg, rgba(26, 95, 122, 0.98), rgba(44, 125, 160, 0.96));
}

th,
td {
  padding: 14px 16px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--line);
}

th {
  color: #fff;
  font-size: 0.95rem;
}

tbody tr:nth-child(even) {
  background: rgba(233, 242, 247, 0.7);
}

tbody tr:last-child td {
  border-bottom: 0;
}

blockquote {
  padding: 18px 20px;
  border-left: 4px solid var(--primary-2);
  border-radius: 0 14px 14px 0;
  background: rgba(234, 245, 250, 0.88);
}

.faq-item {
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255,255,255,0.90);
  box-shadow: 0 10px 24px rgba(8, 27, 44, 0.06);
}

.faq-item + .faq-item {
  margin-top: 14px;
}

code {
  padding: 0.18rem 0.38rem;
  border-radius: 6px;
  background: rgba(19, 74, 96, 0.08);
}

.locations-section {
  border-left-color: var(--primary-2);
}

.locations-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 18px;
}

.location-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 64px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255,255,255,0.94);
  color: var(--heading);
  font-weight: 700;
  box-shadow: 0 10px 24px rgba(8, 27, 44, 0.06);
}

.location-card::after {
  content: "→";
  color: var(--primary);
  font-size: 1.05rem;
}

.location-card:hover {
  transform: translateY(-2px);
  background: rgba(255,255,255,0.98);
  box-shadow: 0 16px 30px rgba(8, 27, 44, 0.11);
}

.locations-note {
  margin-top: 16px;
  color: var(--muted);
}

footer {
  padding: 24px 0 48px;
  position: relative;
  z-index: 1;
}

footer > p,
footer > nav {
  width: min(calc(100% - 32px), var(--reading-width));
  margin-left: auto;
  margin-right: auto;
}

footer > p {
  margin-bottom: 16px;
  padding: 20px 22px;
  border: 1px solid rgba(255,255,255,0.34);
  border-radius: var(--radius-md);
  background: rgba(255,255,255,0.84);
  color: var(--muted);
  box-shadow: var(--shadow-sm);
}

footer nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 18px;
}

footer nav a {
  font-weight: 700;
}

@media (max-width: 900px) {
  body {
    font-size: 15.5px;
  }

  header {
    overflow: visible;
  }

  .site-nav {
    position: relative;
    grid-template-columns: 1fr auto;
    padding: 12px 0;
  }

  .site-brand {
    max-width: none;
    padding-right: 12px;
  }

  .nav-toggle {
    display: inline-block;
  }

  .nav-links {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    right: 0;
    z-index: 999;
    display: none;
    flex-direction: column;
    flex-wrap: nowrap;
    align-items: stretch;
    justify-content: flex-start;
    gap: 0;
    max-height: calc(100vh - 110px);
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
    padding: 8px 16px 14px;
    border: 1px solid rgba(255,255,255,0.14);
    border-radius: 18px;
    background: rgba(17, 59, 76, 0.99);
    box-shadow: 0 20px 44px rgba(8, 27, 44, 0.28);
  }

  .site-nav.is-open .nav-links {
    display: flex;
  }

  .nav-links a {
    display: block;
    width: 100%;
    padding: 14px 4px;
    border-top: 1px solid rgba(255,255,255,0.13);
    white-space: normal;
    line-height: 1.35;
    pointer-events: auto;
    position: relative;
    z-index: 1000;
  }

  .nav-links a:first-child {
    border-top: 0;
  }

  .nav-links a::after {
    display: none;
  }

  .nav-links::-webkit-scrollbar {
    width: 8px;
  }

  .nav-links::-webkit-scrollbar-thumb {
    background: rgba(255,255,255,0.22);
    border-radius: 999px;
  }

  main {
    margin-top: 18px;
  }

  main > h1 {
    padding: 28px 22px;
  }

  main > section {
    padding: 20px 16px;
  }

  table,
  thead,
  tbody,
  th,
  td,
  tr {
    display: block;
  }

  thead {
    display: none;
  }

  table {
    border: 0;
    background: transparent;
  }

  tbody tr {
    margin-bottom: 14px;
    border: 1px solid var(--line);
    border-radius: 14px;
    overflow: hidden;
    background: rgba(255,255,255,0.95);
    box-shadow: 0 10px 24px rgba(8, 27, 44, 0.05);
  }

  td {
    position: relative;
    padding: 12px 14px;
    border-bottom: 1px solid rgba(191, 208, 223, 0.78);
  }

  td:last-child {
    border-bottom: 0;
  }

  tr td:first-child {
    background: rgba(233, 242, 247, 0.88);
    font-weight: 700;
    color: #17334e;
  }
}

@media (max-width: 640px) {
  .site-nav,
  main,
  footer > p,
  footer > nav {
    width: min(calc(100% - 22px), 100%);
  }

  .site-brand {
    font-size: 1rem;
  }

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

  .locations-note {
    font-size: 0.95rem;
  }

  main > h1 {
    padding: 24px 18px;
    font-size: clamp(1.95rem, 9vw, 2.9rem);
  }

  main > section {
    padding: 18px 14px;
    border-radius: 16px;
  }

  h2 {
    font-size: 1.4rem;
  }

  h3 {
    font-size: 1.06rem;
  }
}
