:root {
  --ink: #201f1d;
  --muted: #68645e;
  --paper: #fffaf4;
  --surface: #ffffff;
  --soft: #f3eee6;
  --line: #e7ddd1;
  --burgundy: #9f1730;
  --burgundy-dark: #61101d;
  --sage: #5f714f;
  --gold: #c7973a;
  --shadow: 0 18px 42px rgba(38, 31, 24, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "Lato", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.65;
}

img,
iframe {
  max-width: 100%;
}

img {
  display: block;
}

a {
  color: inherit;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 3px solid rgba(199, 151, 58, 0.65);
  outline-offset: 3px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 250, 244, 0.94);
  border-bottom: 1px solid rgba(231, 221, 209, 0.9);
  backdrop-filter: blur(14px);
}

.nav-shell {
  min-height: 86px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 13px;
  text-decoration: none;
}

.brand img {
  width: 68px;
  height: auto;
}

.brand-text {
  display: grid;
  gap: 1px;
}

.brand-name {
  color: var(--burgundy-dark);
  font-family: "Lora", Georgia, serif;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.1;
}

.brand-location {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 1.8px;
  text-transform: uppercase;
}

.nav-check {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.nav-toggle {
  display: none;
  width: 46px;
  height: 42px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  cursor: pointer;
}

.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--ink);
  content: "";
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-toggle span::before {
  transform: translateY(-7px);
}

.nav-toggle span::after {
  transform: translateY(5px);
}

.nav-check:checked + .nav-toggle span {
  background: transparent;
}

.nav-check:checked + .nav-toggle span::before {
  transform: translateY(0) rotate(45deg);
}

.nav-check:checked + .nav-toggle span::after {
  transform: translateY(-2px) rotate(-45deg);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.site-nav a {
  padding: 10px 12px;
  border-radius: 8px;
  color: var(--ink);
  font-size: 14px;
  font-weight: 900;
  letter-spacing: 0.4px;
  text-decoration: none;
  text-transform: uppercase;
}

.site-nav a:hover,
.site-nav a.is-active {
  color: var(--burgundy);
  background: rgba(159, 23, 48, 0.08);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 13px 20px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: var(--burgundy);
  color: #fff;
  font-weight: 900;
  letter-spacing: 0.4px;
  text-decoration: none;
  text-transform: uppercase;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.button:hover {
  transform: translateY(-1px);
  background: var(--burgundy-dark);
  box-shadow: 0 12px 24px rgba(97, 16, 29, 0.22);
}

.site-nav a.button {
  color: #fff;
}

.site-nav a.button:hover {
  color: var(--burgundy);
  background: #fff;
}

.button.secondary {
  background: #fff;
  color: var(--burgundy);
  border-color: rgba(159, 23, 48, 0.24);
}

.button.secondary:hover {
  background: rgba(159, 23, 48, 0.08);
  box-shadow: none;
}

.button.ghost {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.5);
}

.button.ghost:hover {
  background: rgba(255, 255, 255, 0.12);
}

.hero {
  position: relative;
  min-height: 680px;
  display: grid;
  align-items: end;
  overflow: hidden;
  color: #fff;
  background: #211b18;
}

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

.hero-media {
  position: absolute;
  inset: 0;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(90deg, rgba(28, 22, 18, 0.82) 0%, rgba(28, 22, 18, 0.56) 48%, rgba(28, 22, 18, 0.18) 100%);
}

.hero-inner {
  position: relative;
  z-index: 1;
  padding: 96px 0;
}

.hero-content {
  width: min(720px, 100%);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 18px;
  color: var(--gold);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.eyebrow::before {
  width: 34px;
  height: 2px;
  background: currentColor;
  content: "";
}

h1,
h2,
h3 {
  margin: 0;
  font-family: "Lora", Georgia, serif;
  line-height: 1.1;
}

h1 {
  font-size: 64px;
  color: #fff;
}

h2 {
  color: var(--ink);
  font-size: 42px;
}

h3 {
  color: var(--burgundy-dark);
  font-size: 25px;
}

p {
  margin: 16px 0 0;
}

.hero p {
  max-width: 620px;
  margin: 22px 0 0;
  color: rgba(255, 255, 255, 0.92);
  font-size: 22px;
  line-height: 1.55;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 13px;
  margin-top: 32px;
}

.quick-strip {
  position: relative;
  z-index: 2;
  margin-top: -54px;
}

.quick-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.quick-item {
  padding: 28px;
  border-left: 1px solid var(--line);
}

.quick-item:first-child {
  border-left: 0;
}

.quick-item span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

.quick-item strong {
  display: block;
  margin-top: 8px;
  color: var(--burgundy-dark);
  font-family: "Lora", Georgia, serif;
  font-size: 24px;
  font-style: italic;
  line-height: 1.2;
}

.section {
  padding: 92px 0;
}

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

.section-header {
  max-width: 760px;
  margin: 0 auto 42px;
  text-align: center;
}

.section-header.left {
  margin-left: 0;
  text-align: left;
}

.section-header h2 {
  color: var(--ink);
  font-size: 42px;
}

.section-header p {
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 19px;
}

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 42px;
  align-items: center;
}

.photo-panel {
  overflow: hidden;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.photo-panel img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.card-grid.two {
  grid-template-columns: repeat(2, 1fr);
}

.card-grid.four {
  grid-template-columns: repeat(4, 1fr);
}

.card {
  padding: 26px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 10px 28px rgba(38, 31, 24, 0.07);
}

.card.photo {
  padding: 0;
  overflow: hidden;
}

.card.photo img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.card-body {
  padding: 22px;
}

.card h3 {
  color: var(--burgundy-dark);
  font-size: 25px;
}

.card p {
  margin: 12px 0 0;
  color: var(--muted);
}

.service-list {
  display: grid;
  gap: 14px;
}

.service-row {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}

.service-row:last-child {
  border-bottom: 0;
}

.service-row strong {
  color: var(--burgundy-dark);
}

.ministry-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.ministry-card {
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 12px 30px rgba(38, 31, 24, 0.08);
}

.ministry-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.ministry-card div {
  padding: 22px;
}

.ministry-card h3 {
  color: var(--burgundy-dark);
  font-size: 24px;
}

.ministry-card p {
  margin: 10px 0 0;
  color: var(--muted);
}

.people-section {
  padding-top: 34px;
}

.people-title {
  margin: 0 0 22px;
  padding-left: 18px;
  border-left: 5px solid var(--burgundy);
  color: var(--ink);
  font-size: 33px;
}

.people-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}

.people-grid.lead {
  grid-template-columns: minmax(260px, 520px);
  justify-content: center;
}

.person-card {
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 12px 30px rgba(38, 31, 24, 0.08);
  text-align: center;
}

.person-card img,
.person-placeholder {
  width: 100%;
  aspect-ratio: 4 / 5;
}

.person-card img {
  object-fit: cover;
  object-position: center top;
}

.person-placeholder {
  display: grid;
  place-items: center;
  color: var(--burgundy-dark);
  background: linear-gradient(180deg, #fff 0%, #f4eee7 100%);
  font-family: "Lora", Georgia, serif;
  font-size: 28px;
  font-style: italic;
}

.person-card div {
  padding: 18px 16px 22px;
}

.person-card h3 {
  color: var(--ink);
  font-size: 21px;
}

.person-card p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.4;
}

.contact-layout {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 34px;
  align-items: start;
}

.contact-list {
  display: grid;
  gap: 16px;
}

.contact-list a {
  color: var(--burgundy);
  font-weight: 900;
}

.map-frame {
  width: 100%;
  height: 330px;
  display: block;
  border: 0;
  border-radius: 8px;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.form-field.full {
  grid-column: 1 / -1;
}

label {
  display: block;
  margin-bottom: 7px;
  color: var(--ink);
  font-weight: 900;
}

input,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px 15px;
  background: #fff;
  color: var(--ink);
  font: inherit;
}

textarea {
  min-height: 150px;
  resize: vertical;
}

.site-footer {
  padding: 42px 0;
  color: #fff;
  background: #241f1e;
}

.footer-shell {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 28px;
  align-items: center;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 14px;
}

.footer-logo img {
  width: 60px;
}

.footer-logo strong {
  display: block;
  font-family: "Lora", Georgia, serif;
  font-size: 22px;
}

.footer-logo span,
.site-footer p {
  color: rgba(255, 255, 255, 0.72);
}

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

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

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

.footer-bottom {
  margin-top: 26px;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  display: flex;
  justify-content: space-between;
  gap: 18px;
  color: rgba(255, 255, 255, 0.72);
}

.social-links {
  display: flex;
  gap: 14px;
}

.social-links a {
  color: #fff;
}

@media (max-width: 980px) {
  .nav-toggle {
    display: inline-flex;
  }

  .site-nav {
    position: absolute;
    top: 100%;
    left: 20px;
    right: 20px;
    display: none;
    padding: 16px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: var(--shadow);
  }

  .nav-check:checked ~ .site-nav {
    display: grid;
  }

  .site-nav a {
    padding: 13px 12px;
  }

  h1 {
    font-size: 48px;
  }

  .hero {
    min-height: 600px;
  }

  .quick-grid,
  .card-grid,
  .card-grid.two,
  .card-grid.four,
  .ministry-grid,
  .people-grid,
  .contact-layout,
  .split,
  .footer-shell {
    grid-template-columns: 1fr 1fr;
  }

  .people-grid.lead {
    grid-template-columns: minmax(260px, 420px);
  }
}

@media (max-width: 680px) {
  body {
    font-size: 16px;
  }

  .container {
    width: min(100% - 30px, 1120px);
  }

  .nav-shell {
    min-height: 76px;
  }

  .brand img {
    width: 56px;
  }

  .brand-name {
    font-size: 17px;
  }

  .brand-location {
    font-size: 11px;
  }

  .hero,
  .hero.compact {
    min-height: 560px;
  }

  .hero::after {
    background: linear-gradient(180deg, rgba(28, 22, 18, 0.34) 0%, rgba(28, 22, 18, 0.88) 100%);
  }

  .hero-inner {
    padding: 70px 0;
  }

  h1 {
    font-size: 38px;
  }

  .hero p {
    font-size: 18px;
  }

  .hero-actions,
  .footer-bottom {
    flex-direction: column;
  }

  .button {
    width: 100%;
  }

  .quick-strip {
    margin-top: 0;
  }

  .quick-grid,
  .card-grid,
  .card-grid.two,
  .card-grid.four,
  .ministry-grid,
  .people-grid,
  .contact-layout,
  .split,
  .footer-shell,
  .form-grid {
    grid-template-columns: 1fr;
  }

  .quick-item,
  .quick-item:first-child {
    border-left: 0;
    border-top: 1px solid var(--line);
  }

  .quick-item:first-child {
    border-top: 0;
  }

  .section {
    padding: 64px 0;
  }

  .section-header h2 {
    font-size: 32px;
  }

  .footer-links {
    justify-content: flex-start;
  }
}

.hymns-hero .hero-media img {
  object-position: center 35%;
}

.hymns-tools {
  padding-bottom: 0;
}

.hymn-search-card {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.9fr);
  gap: 30px;
  align-items: end;
  padding: 30px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.hymn-search-card h2 {
  font-size: 34px;
}

.hymn-search-form {
  display: grid;
  gap: 8px;
}

.hymn-search-controls {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
}

.hymn-search-controls .button {
  min-width: 90px;
  border: 0;
  cursor: pointer;
  font: inherit;
}

.hymn-search-message {
  min-height: 22px;
  margin: 2px 0 0;
  color: var(--burgundy);
  font-size: 14px;
  font-weight: 900;
}

.hymn-list {
  display: grid;
  gap: 24px;
}

.pricing-tables-holder,
.pricing-col {
  width: 100% !important;
}

.pricing-table {
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 12px 30px rgba(38, 31, 24, 0.08);
}

.pricing-table .label {
  scroll-margin-top: 112px;
  padding: 22px 26px;
  color: #fff;
  background: linear-gradient(135deg, var(--burgundy-dark), var(--burgundy));
  font-family: "Lora", Georgia, serif;
  font-size: 24px;
  font-weight: 700;
  line-height: 1.25;
}

.pricing-table > div[style*="color:white"] {
  padding: 26px !important;
  color: var(--ink) !important;
  font-size: 18px;
  line-height: 1.75;
}

.pricing-table > div:last-child {
  padding: 0 26px 26px;
}

.pricing-table .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 12px 18px;
  border-radius: 8px;
  background: var(--sage);
  color: #fff;
  font-weight: 900;
  letter-spacing: 0.4px;
  text-decoration: none;
  text-transform: uppercase;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.pricing-table .btn:hover {
  transform: translateY(-1px);
  background: #4d5e40;
  box-shadow: 0 10px 22px rgba(77, 94, 64, 0.2);
}

.hymn-toc-card {
  overflow-x: auto;
  padding: 24px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

#dataTable-TOC {
  width: 100% !important;
  border-collapse: collapse !important;
}

#dataTable-TOC th,
#dataTable-TOC td {
  padding: 15px 14px;
  border-bottom: 1px solid var(--line);
  text-align: left;
}

#dataTable-TOC th {
  color: var(--burgundy-dark);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 1px;
  text-transform: uppercase;
}

#dataTable-TOC tbody tr {
  cursor: pointer;
}

#dataTable-TOC tbody tr:hover,
table.dataTable tbody > tr.selected,
table.dataTable tbody > tr > .selected {
  background: rgba(159, 23, 48, 0.08) !important;
  color: var(--ink);
}

.dataTables_wrapper {
  color: var(--ink);
}

.dataTables_wrapper .dataTables_length,
.dataTables_wrapper .dataTables_filter {
  margin-bottom: 18px;
}

.dataTables_wrapper .dataTables_filter input,
.dataTables_wrapper .dataTables_length select {
  width: auto;
  margin-left: 8px;
  padding: 9px 11px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
}

.dataTables_wrapper .dataTables_info {
  color: var(--muted);
}

.dataTables_wrapper .dataTables_paginate .paginate_button {
  margin-left: 4px;
  border: 1px solid transparent !important;
  border-radius: 8px;
  color: var(--burgundy-dark) !important;
}

.dataTables_wrapper .dataTables_paginate .paginate_button.current,
.dataTables_wrapper .dataTables_paginate .paginate_button.current:hover {
  border-color: var(--burgundy) !important;
  background: var(--burgundy) !important;
  color: #fff !important;
}

.dataTables_wrapper .dataTables_paginate .paginate_button:hover {
  border-color: rgba(159, 23, 48, 0.18) !important;
  background: rgba(159, 23, 48, 0.08) !important;
  color: var(--burgundy-dark) !important;
}

@media (max-width: 980px) {
  .hymn-search-card {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 680px) {
  .hymns-tools {
    padding-top: 52px;
  }

  .hymn-search-card {
    padding: 22px;
  }

  .hymn-search-card h2 {
    font-size: 30px;
  }

  .hymn-search-controls {
    grid-template-columns: 1fr;
  }

  .pricing-table .label {
    padding: 18px 20px;
    font-size: 20px;
  }

  .pricing-table > div[style*="color:white"] {
    padding: 20px !important;
    font-size: 16px;
    line-height: 1.7;
  }

  .pricing-table > div:last-child {
    padding: 0 20px 20px;
  }

  .pricing-table .btn {
    width: 100%;
  }

  .hymn-toc-card {
    padding: 14px;
  }

  .dataTables_wrapper .dataTables_length,
  .dataTables_wrapper .dataTables_filter,
  .dataTables_wrapper .dataTables_info,
  .dataTables_wrapper .dataTables_paginate {
    float: none;
    text-align: left;
  }

  .dataTables_wrapper .dataTables_length label,
  .dataTables_wrapper .dataTables_filter label {
    display: block;
  }

  .dataTables_wrapper .dataTables_filter input,
  .dataTables_wrapper .dataTables_length select {
    width: 100% !important;
    max-width: none;
    display: block;
    margin: 8px 0 0;
  }

  .dataTables_wrapper .dataTables_paginate {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 14px;
  }

  .dataTables_wrapper .dataTables_paginate .paginate_button {
    margin-left: 0;
  }

  #dataTable-TOC th,
  #dataTable-TOC td {
    padding: 12px 10px;
  }
}
