/* ==========================================================
   Galilee Christian Church of LSC Ministries
   One-page site. Colors are pulled from the church seal:
   deep navy, royal blue, silver and white.
   ========================================================== */

:root {
  /* Brand (from the logo) */
  --navy-900: #050d2e;
  --navy-800: #081440;
  --navy-700: #0d1f5c;
  --royal-600: #1a3aa8;
  --royal-500: #2448c9;
  --royal-400: #4a6ee0;
  --silver-300: #c9cfdb;
  --silver-200: #dfe3eb;
  --silver-100: #eef1f6;
  --white: #ffffff;

  /* Text */
  --ink: #141a33;
  --ink-soft: #4a5170;

  /* Type */
  --font-display: 'Cinzel', 'Times New Roman', serif;
  --font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;

  /* Layout */
  --max-width: 1160px;
  --gutter: clamp(16px, 4vw, 32px);
  --section-pad: clamp(72px, 10vw, 120px);
  --nav-height: 76px;
  --radius: 14px;
  --ease: 0.3s ease;
  --shadow: 0 18px 50px -20px rgba(8, 20, 64, 0.35);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.75;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--royal-600); }
p { margin: 0 0 1.1em; }

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.2;
  margin: 0;
  letter-spacing: 0.02em;
}

.container {
  width: 100%;
  max-width: var(--max-width);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.narrow { max-width: 820px; }

section[id] { scroll-margin-top: calc(var(--nav-height) - 1px); }

.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 200;
  background: var(--white);
  color: var(--navy-800);
  padding: 10px 16px;
  border-radius: 8px;
  font-weight: 600;
}
.skip-link:focus { top: 12px; }

:focus-visible {
  outline: 3px solid var(--royal-400);
  outline-offset: 3px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 15px 30px;
  border-radius: 999px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  transition: background-color var(--ease), color var(--ease), border-color var(--ease), transform var(--ease), box-shadow var(--ease);
}
.btn:hover { transform: translateY(-2px); }

.btn--primary {
  background: var(--royal-600);
  color: var(--white);
  box-shadow: 0 10px 24px -10px rgba(26, 58, 168, 0.7);
}
.btn--primary:hover { background: var(--royal-500); }

.btn--light {
  background: var(--white);
  color: var(--navy-800);
}
.btn--light:hover { background: var(--silver-200); }

.btn--ghost {
  background: transparent;
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.55);
}
.btn--ghost:hover { border-color: var(--white); background: rgba(255, 255, 255, 0.08); }

.btn--block { width: 100%; }

/* ---------- Navigation ---------- */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background-color var(--ease), border-color var(--ease), box-shadow var(--ease);
}
.nav--solid {
  background: rgba(8, 20, 64, 0.97);
  border-bottom-color: rgba(201, 207, 219, 0.18);
  box-shadow: 0 10px 30px -18px rgba(0, 0, 0, 0.6);
}

.nav__inner {
  height: var(--nav-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.nav__brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--white);
  text-decoration: none;
  /* hidden over the hero (the big seal is already there), shown once the nav turns solid */
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--ease);
}
.nav--solid .nav__brand { opacity: 1; pointer-events: auto; }
.nav__brand img { width: 44px; height: auto; }
.nav__name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.06em;
  line-height: 1.15;
}
.nav__name span {
  display: block;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  color: var(--silver-300);
}

.nav__links {
  display: none;
  align-items: center;
  gap: 6px;
}

.nav__link {
  color: rgba(255, 255, 255, 0.86);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  padding: 8px 14px;
  border-radius: 999px;
  transition: color var(--ease), background-color var(--ease);
}
.nav__link:hover { color: var(--white); background: rgba(255, 255, 255, 0.08); }
.nav__link.is-active { color: var(--white); }

.nav__cta {
  margin-left: 8px;
  border: 1.5px solid rgba(255, 255, 255, 0.6);
  color: var(--white);
}
.nav__cta:hover { background: var(--white); color: var(--navy-800); }

.nav__toggle {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 10px;
  margin-right: -10px;
  background: none;
  border: 0;
  cursor: pointer;
}
.nav__toggle span {
  display: block;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: transform var(--ease), opacity var(--ease);
}
.nav__toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav__toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav__mobile {
  display: none;
  flex-direction: column;
  padding: 8px var(--gutter) 20px;
  background: var(--navy-800);
  border-top: 1px solid rgba(201, 207, 219, 0.15);
}
.nav__mobile.is-open { display: flex; }
.nav__mobile .nav__link {
  padding: 14px 4px;
  border-radius: 0;
  border-bottom: 1px solid rgba(201, 207, 219, 0.12);
  font-size: 1rem;
}
.nav__mobile .nav__link:last-child { border-bottom: 0; }
.nav__mobile .nav__link:hover { background: none; }

/* When the mobile menu is open over the hero, give the bar a background too */
.nav.menu-open { background: var(--navy-800); }
.nav.menu-open .nav__brand { opacity: 1; pointer-events: auto; }

@media (min-width: 900px) {
  .nav__links { display: flex; }
  .nav__toggle, .nav__mobile, .nav__mobile.is-open { display: none; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--white);
  padding: calc(var(--nav-height) + 24px) 0 72px;
  overflow: hidden;
  background:
    radial-gradient(ellipse 60% 55% at 50% 38%, rgba(36, 72, 201, 0.75) 0%, rgba(26, 58, 168, 0.35) 40%, transparent 72%),
    linear-gradient(180deg, var(--navy-800) 0%, var(--navy-900) 100%);
}

/* faint concentric rings echoing the seal */
.hero__rings {
  position: absolute;
  inset: 0;
  background: repeating-radial-gradient(circle at 50% 38%, transparent 0 58px, rgba(201, 207, 219, 0.06) 59px 60px);
  -webkit-mask-image: radial-gradient(circle at 50% 38%, #000 0%, transparent 70%);
  mask-image: radial-gradient(circle at 50% 38%, #000 0%, transparent 70%);
  pointer-events: none;
}

.hero__inner { position: relative; }

.hero__logo img {
  width: clamp(190px, 34vw, 300px);
  margin: 0 auto 28px;
  filter: drop-shadow(0 22px 40px rgba(0, 0, 0, 0.45));
}

.hero__eyebrow {
  font-family: var(--font-display);
  font-size: clamp(0.78rem, 2.4vw, 1rem);
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--silver-300);
  margin-bottom: 14px;
}
.hero__eyebrow span { white-space: nowrap; }

.hero__title {
  font-size: clamp(3rem, 11vw, 6.25rem);
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1.02;
  text-shadow: 0 6px 30px rgba(0, 0, 0, 0.35);
}

.hero__verse {
  margin: 14px 0 26px;
  font-family: var(--font-display);
  font-size: 0.9rem;
  letter-spacing: 0.2em;
  color: var(--silver-300);
}
.hero__verse::before, .hero__verse::after {
  content: "";
  display: inline-block;
  width: 36px;
  height: 1px;
  background: var(--silver-300);
  vertical-align: middle;
  margin: 0 14px;
  opacity: 0.6;
}

.hero__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 6px 14px;
  font-size: 1.02rem;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 34px;
}
.hero__meta .dot {
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--silver-300);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
}

@media (max-width: 480px) {
  .hero__meta { flex-direction: column; gap: 2px; }
  .hero__meta .dot { display: none; }
  .hero__actions .btn { width: 100%; }
}

/* ---------- Sections ---------- */
.section { padding-block: var(--section-pad); }
.section--tint {
  background:
    linear-gradient(180deg, var(--silver-100), var(--white));
}
.section--navy {
  color: rgba(255, 255, 255, 0.9);
  background:
    radial-gradient(ellipse 70% 60% at 50% 0%, rgba(36, 72, 201, 0.35), transparent 70%),
    var(--navy-800);
}

.kicker {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--royal-600);
  margin-bottom: 12px;
}
.kicker--center { text-align: center; }
.kicker--silver { color: var(--silver-300); }

.section-title {
  font-size: clamp(1.9rem, 4.6vw, 2.75rem);
  color: var(--navy-800);
}
.section-title--center { text-align: center; }
.section-title--light { color: var(--white); }

.rule {
  width: 72px;
  height: 3px;
  margin: 22px 0 30px;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--royal-600), var(--silver-300));
}
.rule--center { margin-inline: auto; }
.rule--silver { background: linear-gradient(90deg, var(--silver-300), rgba(201, 207, 219, 0.2)); }

.section-head { margin-bottom: clamp(36px, 6vw, 60px); }

/* ---------- Welcome + Start Here ---------- */
.welcome {
  display: grid;
  gap: clamp(40px, 6vw, 72px);
  align-items: start;
}
@media (min-width: 900px) {
  .welcome { grid-template-columns: 1.35fr 1fr; }
}

.welcome__text p { color: var(--ink-soft); }
.welcome__purpose {
  margin-top: 28px;
  padding: 22px 26px;
  border-left: 3px solid var(--royal-600);
  background: var(--silver-100);
  border-radius: 0 var(--radius) var(--radius) 0;
  color: var(--ink) !important;
  font-size: 1.08rem;
}
.welcome__purpose strong { color: var(--navy-800); }

.visit {
  position: relative;
  padding: clamp(28px, 4vw, 40px);
  border-radius: calc(var(--radius) + 4px);
  color: var(--white);
  background:
    radial-gradient(ellipse 80% 60% at 100% 0%, rgba(74, 110, 224, 0.45), transparent 70%),
    linear-gradient(160deg, var(--royal-600) 0%, var(--navy-800) 75%);
  box-shadow: var(--shadow);
  border: 1px solid rgba(201, 207, 219, 0.35);
}
@media (min-width: 900px) {
  .visit { position: sticky; top: calc(var(--nav-height) + 24px); }
}

.visit__kicker {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--navy-800);
  background: var(--silver-200);
  padding: 4px 12px;
  border-radius: 999px;
  margin-bottom: 16px;
}
.visit__title {
  font-size: clamp(1.5rem, 3vw, 1.85rem);
  margin-bottom: 24px;
}

.visit__list { margin: 0 0 28px; }
.visit__item {
  padding: 16px 0;
  border-top: 1px solid rgba(201, 207, 219, 0.25);
}
.visit__item:last-child { border-bottom: 1px solid rgba(201, 207, 219, 0.25); }
.visit__item dt {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--silver-300);
  margin-bottom: 4px;
}
.visit__item dd {
  margin: 0;
  font-size: 1.08rem;
  line-height: 1.55;
}
.visit__item dd strong {
  font-family: var(--font-display);
  font-size: 1.6rem;
  letter-spacing: 0.04em;
}
.visit svg, .contact__details svg {
  width: 18px;
  height: 18px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.visit__link {
  display: block;
  margin-top: 16px;
  text-align: center;
  font-size: 0.92rem;
  color: var(--silver-200);
}
.visit__link:hover { color: var(--white); }

/* ---------- Ancient Faith ---------- */
.lead {
  font-size: clamp(1.08rem, 2vw, 1.2rem);
  line-height: 1.85;
  color: var(--ink-soft);
  text-align: center;
}
.lead:first-of-type::first-letter {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--royal-600);
}

/* ---------- 3 Streams of Faith ---------- */
.strings {
  display: grid;
  gap: 24px;
}
@media (min-width: 960px) {
  .strings { grid-template-columns: repeat(3, 1fr); }
}

.string {
  position: relative;
  padding: 40px 30px 34px;
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.025));
  border: 1px solid rgba(201, 207, 219, 0.2);
  border-top: 3px solid var(--silver-300);
  transition: transform var(--ease), border-color var(--ease), background-color var(--ease);
}
.string:hover {
  transform: translateY(-4px);
  border-color: rgba(201, 207, 219, 0.4);
}
.string p { font-size: 1rem; line-height: 1.75; color: rgba(255, 255, 255, 0.82); margin: 0; }

.string__num {
  position: absolute;
  top: 22px;
  right: 26px;
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 600;
  color: rgba(201, 207, 219, 0.35);
}

.string__icon {
  width: 64px;
  height: 64px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  margin-bottom: 20px;
  background: radial-gradient(circle at 35% 30%, var(--royal-400), var(--royal-600));
  box-shadow: 0 0 0 6px rgba(36, 72, 201, 0.18);
}
.string__icon svg {
  width: 32px;
  height: 32px;
  fill: none;
  stroke: var(--white);
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.string__title {
  font-size: 1.45rem;
  color: var(--white);
  margin-bottom: 14px;
  letter-spacing: 0.06em;
}

.string__list {
  list-style: none;
  margin: 18px 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.string__list li {
  font-size: 0.82rem;
  font-weight: 500;
  padding: 5px 12px;
  border-radius: 999px;
  color: var(--white);
  background: rgba(201, 207, 219, 0.12);
  border: 1px solid rgba(201, 207, 219, 0.28);
}

/* ---------- Contact ---------- */
.contact {
  display: grid;
  gap: clamp(40px, 6vw, 72px);
  align-items: start;
}
@media (min-width: 900px) {
  .contact { grid-template-columns: 1fr 1.15fr; }
}

.contact__info > p { color: var(--ink-soft); }

.contact__details {
  list-style: none;
  margin: 28px 0 0;
  padding: 0;
  display: grid;
  gap: 18px;
}
.contact__details li {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  line-height: 1.55;
}
.contact__details svg {
  width: 22px;
  height: 22px;
  margin-top: 1px;
  color: var(--royal-600);
}
.contact__details a { font-weight: 500; word-break: break-word; }

.form {
  padding: clamp(24px, 4vw, 40px);
  border-radius: calc(var(--radius) + 4px);
  background: var(--white);
  border: 1px solid var(--silver-200);
  box-shadow: var(--shadow);
}

.form__row {
  display: grid;
  gap: 0 18px;
}
@media (min-width: 560px) {
  .form__row { grid-template-columns: 1fr 1fr; }
}

.form__field { margin-bottom: 18px; }
.form__field label {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--navy-800);
  margin-bottom: 6px;
}
.req { color: var(--royal-600); }
.opt { font-weight: 400; color: var(--ink-soft); }

.form input,
.form select,
.form textarea {
  width: 100%;
  font: inherit;
  font-size: 1rem; /* 16px+ stops iOS from zooming in */
  color: var(--ink);
  padding: 12px 14px;
  border: 1.5px solid var(--silver-300);
  border-radius: 10px;
  background: var(--white);
  transition: border-color var(--ease), box-shadow var(--ease);
}
.form textarea { resize: vertical; min-height: 140px; }
.form select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231a3aa8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 18px;
  padding-right: 40px;
}
.form input:focus,
.form select:focus,
.form textarea:focus {
  outline: none;
  border-color: var(--royal-500);
  box-shadow: 0 0 0 4px rgba(36, 72, 201, 0.14);
}
.form .is-invalid { border-color: #c0392b; }

.form__trap { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

.form__status {
  margin: 14px 0 0;
  font-size: 0.95rem;
  text-align: center;
}
.form__status:empty { display: none; }
.form__status.is-success { color: #1e7a46; font-weight: 600; }
.form__status.is-error { color: #b03024; }

.form button[disabled] { opacity: 0.7; cursor: wait; transform: none; }

/* ---------- Footer ---------- */
.footer {
  color: rgba(255, 255, 255, 0.78);
  background: var(--navy-900);
  padding-top: 64px;
  font-size: 0.95rem;
}
.footer a { color: var(--white); }

.footer__inner {
  display: grid;
  gap: 32px;
  padding-bottom: 44px;
}
@media (min-width: 760px) {
  .footer__inner { grid-template-columns: 1.7fr 1fr 1.1fr 1.2fr; }
}

.footer__brand { display: flex; align-items: center; gap: 14px; }
.footer__brand img { width: 64px; }
.footer__name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--white);
  margin: 0;
  letter-spacing: 0.03em;
  line-height: 1.3;
}
.footer__sub {
  margin: 0;
  font-size: 0.8rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--silver-300);
}
.footer__label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--silver-300);
  margin-bottom: 6px;
}
.footer__col p:last-child { margin-bottom: 0; }

.footer__bottom {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.55);
}
.footer__bottom p {
  margin: 0;
  padding-block: 22px;
  border-top: 1px solid rgba(201, 207, 219, 0.14);
}

/* ---------- Scroll fade-in (only when JS is on) ---------- */
.js .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.js .reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .btn:hover, .string:hover { transform: none; }
}
