/* Heaven's Gate Baptist Church — Dallas
   Palette: deep indigo, brass, warm neutrals. Colour sits in bands behind
   whole sections, never as a screen of colour before the content starts. */

:root {
  --indigo: #16204a;
  --indigo-deep: #0f1733;
  --indigo-soft: #26325f;
  --brass: #c08a2e;
  --brass-bright: #e0a63f;
  --parchment: #f8f3ea;
  --parchment-deep: #efe5d3;
  --ink: #241f1a;
  --ink-soft: #4a4239;
  --white: #ffffff;

  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, "Times New Roman", serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --measure: 40rem;
  --pad: 1.35rem;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--parchment);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.62;
}

a { color: var(--indigo); }

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 600;
  line-height: 1.16;
  letter-spacing: -0.01em;
  margin: 0 0 0.6em;
}

p { margin: 0 0 1.05em; }

.measure {
  max-width: var(--measure);
  margin: 0 auto;
  padding: 0 var(--pad);
}

.skip {
  position: absolute;
  left: -9999px;
}
.skip:focus {
  left: 0.5rem;
  top: 0.5rem;
  z-index: 60;
  background: var(--white);
  color: var(--indigo);
  padding: 0.6rem 0.9rem;
  border-radius: 4px;
}

/* ---- Masthead: the name on its own row, the links in a band under it ---- */

.masthead {
  background: var(--white);
  border-bottom: 3px solid var(--brass);
}

.masthead-name {
  max-width: 62rem;
  margin: 0 auto;
  padding: 0.85rem var(--pad) 0.75rem;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.15rem 0.7rem;
}

.wordmark {
  font-family: var(--serif);
  font-size: 1.32rem;
  font-weight: 600;
  color: var(--indigo);
  letter-spacing: -0.01em;
  line-height: 1.15;
}

.place {
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--ink-soft);
}

.navband {
  background: var(--indigo);
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0;
}

.navband a {
  color: var(--white);
  text-decoration: none;
  font-size: 0.9rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.72rem 1.05rem;
  border-bottom: 3px solid transparent;
}

.navband a:hover,
.navband a:focus {
  background: var(--indigo-soft);
  border-bottom-color: var(--brass-bright);
}

.navband-call { color: var(--brass-bright); }

/* ---- First screen ---- */

/* The scrim is a layer of its own, so that a photograph set on
   .hero underneath it stays legible: white text over the brightest
   pixel a picture can hold still clears the contrast floor. */
.hero {
  position: relative;
  background-color: var(--indigo-deep);
  background-size: cover;
  background-position: center 38%;
  color: var(--white);
  border-bottom: 5px solid var(--brass);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(rgba(11, 17, 40, 0.80), rgba(11, 17, 40, 0.88));
}

.hero-inner {
  position: relative;
  z-index: 1;
  max-width: 44rem;
  margin: 0 auto;
  padding: 3.4rem var(--pad) 3.1rem;
}

.eyebrow {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.17em;
  color: var(--brass-bright);
  margin: 0 0 0.85rem;
}

.hero h1 {
  font-size: clamp(2.05rem, 7vw, 3.35rem);
  color: var(--white);
  margin-bottom: 0.5em;
  text-shadow: 0 1px 14px rgba(0, 0, 0, 0.35);
}

.standfirst {
  font-size: 1.12rem;
  line-height: 1.5;
  color: #f2eee6;
  max-width: 32rem;
  margin-bottom: 1.6rem;
}

.hero-actions { margin: 0 0 0.9rem; }

.button {
  display: inline-block;
  background: var(--brass);
  color: #1a1204;
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: 0.01em;
  text-decoration: none;
  padding: 0.95rem 1.7rem;
  border-radius: 3px;
  border-bottom: 3px solid #8f6415;
}

.button:hover,
.button:focus {
  background: var(--brass-bright);
}

.hero-phone {
  font-size: 0.98rem;
  color: #ded8cd;
  margin: 0;
}

.hero-phone a {
  color: var(--white);
  text-underline-offset: 3px;
}

/* ---- Who we are ---- */

.who {
  background: var(--parchment);
  padding: 3rem 0 2.6rem;
}

.who h2,
.touch h2 {
  font-size: clamp(1.55rem, 4.5vw, 2.05rem);
}

.who h2 { color: var(--indigo); }

.lede {
  font-family: var(--serif);
  font-size: 1.24rem;
  line-height: 1.45;
  color: var(--indigo);
}

.who p:not(.lede) { color: var(--ink-soft); }

/* ---- Get in touch ---- */

.touch {
  background: var(--indigo);
  color: #ece8e0;
  padding: 3rem 0 3.2rem;
  border-top: 5px solid var(--brass);
}

.touch h2 { color: var(--white); }

.touch .lede { color: #ded9cf; }

.big-phone {
  font-family: var(--serif);
  font-size: clamp(1.9rem, 8vw, 2.9rem);
  line-height: 1.1;
  margin: 0.2em 0 1.1em;
}

.big-phone a {
  color: var(--brass-bright);
  text-decoration: none;
  border-bottom: 3px solid rgba(224, 166, 63, 0.4);
}

.big-phone a:hover,
.big-phone a:focus { border-bottom-color: var(--brass-bright); }

.formcard {
  background: var(--parchment);
  color: var(--ink);
  border-radius: 4px;
  border-top: 5px solid var(--brass);
  padding: 1.6rem 1.35rem 1.1rem;
}

.formcard h3 {
  font-size: 1.28rem;
  color: var(--indigo);
  margin-bottom: 0.35em;
}

.formnote {
  color: var(--ink-soft);
  font-size: 0.98rem;
  margin-bottom: 1.3rem;
}

.field { margin: 0 0 1.05rem; }

.field label {
  display: block;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--indigo);
  margin-bottom: 0.35rem;
}

.hint {
  display: block;
  font-weight: 400;
  font-size: 0.86rem;
  color: var(--ink-soft);
}

.field input,
.field textarea {
  width: 100%;
  font: inherit;
  color: var(--ink);
  background: var(--white);
  border: 1px solid #cbbfa8;
  border-radius: 3px;
  padding: 0.7rem 0.75rem;
}

.field input:focus,
.field textarea:focus {
  outline: 3px solid var(--brass);
  outline-offset: 1px;
  border-color: var(--indigo);
}

.field textarea { resize: vertical; }

.enquiry button {
  font: inherit;
  font-weight: 700;
  font-size: 1.05rem;
  background: var(--indigo);
  color: var(--white);
  border: 0;
  border-bottom: 3px solid #070d22;
  border-radius: 3px;
  padding: 0.85rem 1.6rem;
  cursor: pointer;
}

.enquiry button:hover,
.enquiry button:focus { background: var(--indigo-soft); }

/* ---- Foot ---- */

.foot {
  background: var(--parchment-deep);
  padding: 2.2rem 0 2.4rem;
  font-size: 0.95rem;
  color: var(--ink-soft);
}

.foot-name {
  font-family: var(--serif);
  font-size: 1.1rem;
  color: var(--indigo);
  margin-bottom: 0.25em;
}

.foot-line { margin-bottom: 1.1em; }

.foot a { color: var(--indigo); }

.credit {
  font-size: 0.83rem;
  line-height: 1.5;
  color: #6b6255;
  margin: 0;
  max-width: 34rem;
}

/* ---- The call button that is always there on a phone ---- */

.callbar { display: none; }

@media (max-width: 46.25em) {
  .navband-call { display: none; }

  body { padding-bottom: 4.4rem; }

  .callbar {
    display: block;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 50;
    background: var(--brass);
    border-top: 3px solid #8f6415;
    padding: 0.55rem 0.7rem calc(0.55rem + env(safe-area-inset-bottom));
  }

  .callbar a {
    display: block;
    text-align: center;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.12rem;
    color: #1a1204;
    padding: 0.5rem 0.4rem;
  }
}

@media (min-width: 46.3125em) {
  .hero-inner { padding: 5rem var(--pad) 4.6rem; }
  .who { padding: 4rem 0 3.4rem; }
  .touch { padding: 4rem 0 4.2rem; }
  .navband { justify-content: flex-start; padding-left: max(0px, calc(50% - 31rem)); }
}
