/* ==========================================================================
   Grace Christian Fellowship Ministries — site styles
   Scaffold only. Real styles to be added.
   ========================================================================== */

/* --- Custom properties ---------------------------------------------------- */
:root {
  --color-text: #1a1a1a;
  --color-bg: #ffffff;
  --font-body: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --content-max: 72rem;

  /* Brand colors sampled from the page design */
  --color-navy: #0a1e3f;
  --color-navy-deep: #061529;
  --color-gold: #c9a24a;
  --color-cream: #fdf8ee;
  --color-muted: #55606f;
  --color-rule: #e4e7ec;

  --font-display: Georgia, "Iowan Old Style", "Times New Roman", serif;
  --font-script: "Snell Roundhand", "Apple Chancery", "Brush Script MT", cursive;

  --gutter: 2rem;
}

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

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.5;
}

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

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.25;
  margin: 0;
}

p {
  margin: 0 0 1em;
}

a {
  color: inherit;
}

ul, ol, dl, dd {
  margin: 0;
  padding: 0;
}

ul {
  list-style: none;
}

/* Icons inherit the current text color: strokes by default, and any path
   marked .fill is painted solid instead. */
.icon {
  width: 1em;
  height: 1em;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex: none;
}

.icon .fill {
  fill: currentColor;
  stroke: none;
}

/* --- Layout --------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.section {
  padding: 4.5rem 0;
}

.eyebrow {
  margin: 0 0 0.75rem;
  color: var(--color-gold);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.eyebrow--center {
  text-align: center;
}

/* Section headings carry a short gold rule beneath them. */
.section__title {
  margin: 0 0 2.5rem;
  color: var(--color-navy);
  font-size: clamp(1.6rem, 1.1rem + 1.6vw, 2.15rem);
  text-align: center;
}

.section__title::after {
  content: "";
  display: block;
  width: 4.5rem;
  height: 2px;
  margin: 0.9rem auto 0;
  background: var(--color-gold);
}

.section__title--left {
  text-align: left;
  margin-bottom: 1.75rem;
}

.section__title--left::after {
  margin-left: 0;
}

/* --- Header / navigation -------------------------------------------------- */
.site-header {
  background: var(--color-navy);
  color: #fff;
}

.site-header__inner {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  min-height: 4.25rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  color: inherit;
  flex: none;
}

.brand__mark {
  width: 1.9rem;
  height: 1.9rem;
  stroke: var(--color-gold);
  stroke-width: 1.8;
  fill: none;
  stroke-linecap: round;
}

.brand__name {
  display: block;
  font-family: var(--font-display);
  font-size: 1.3rem;
  letter-spacing: 0.06em;
  line-height: 1;
}

.brand__sub {
  display: block;
  margin-top: 0.2rem;
  color: var(--color-gold);
  font-size: 0.5rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  line-height: 1.35;
}

.site-nav {
  margin-left: auto;
}

/* Ten items have to share the bar with the brand and the Give button, so the
   gap flexes with the viewport to keep the nav on one line. */
.site-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(0.4rem, 0.8vw, 1rem);
}

.site-nav a {
  display: block;
  padding: 0.35rem 0;
  border-bottom: 2px solid transparent;
  color: #fff;
  font-size: 0.64rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--color-gold);
  border-bottom-color: var(--color-gold);
}

/* --- Components ----------------------------------------------------------- */

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.7rem 1.4rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.15s, color 0.15s;
}

.btn--gold {
  background: var(--color-gold);
  color: var(--color-navy);
}

.btn--gold:hover {
  background: #d9b566;
}

.btn--sm {
  flex: none;
  padding: 0.55rem 1.1rem;
  font-size: 0.7rem;
}

/* Circular icon badges used by the values and beliefs lists */
.icon-circle {
  display: grid;
  place-items: center;
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  flex: none;
  color: var(--color-gold);
  border: 1px solid rgba(201, 162, 74, 0.5);
}

.icon-circle .icon {
  width: 1.35rem;
  height: 1.35rem;
}

.icon-circle--solid {
  background: var(--color-navy);
  border-color: var(--color-navy);
  color: var(--color-gold);
  width: 3.4rem;
  height: 3.4rem;
}

.icon-circle--plain {
  border: 0;
  width: 2.4rem;
  height: 2.4rem;
}

/* Hero */
/* The sanctuary photo sits to the right, scaled to the band height, dissolving
   into flat navy behind the headline — as designed. A portrait source crops far
   too tightly under background-size: cover, so it is anchored rather than
   covered, and the layer is masked so its left edge never reads as a seam. */
.hero {
  position: relative;
  background: var(--color-navy);
  color: #fff;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  /* Width is a percentage so the photo's left edge always falls at 34%, where
     the mask is still fully transparent — the join is invisible at any size. */
  background:
    linear-gradient(90deg, rgba(6, 21, 41, 0.62) 0%, rgba(6, 21, 41, 0.3) 45%, rgba(6, 21, 41, 0.12) 100%),
    url("/assets/images/church/sanctuary-rejoice.jpg") right center / 66% auto no-repeat;
  -webkit-mask-image: linear-gradient(90deg, transparent 34%, rgba(0, 0, 0, 0.3) 52%, rgba(0, 0, 0, 0.8) 74%, #000 92%);
          mask-image: linear-gradient(90deg, transparent 34%, rgba(0, 0, 0, 0.3) 52%, rgba(0, 0, 0, 0.8) 74%, #000 92%);
}

.hero__inner {
  position: relative;
}

.hero__inner {
  padding-top: 3.5rem;
  padding-bottom: 3.5rem;
  max-width: calc(var(--content-max) - 2rem);
}

.hero__title {
  margin: 0 0 1.25rem;
  font-size: clamp(2rem, 1.2rem + 2.6vw, 3rem);
  line-height: 1.15;
}

.hero__lede {
  max-width: 26rem;
  margin: 0 0 0.75rem;
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.9rem;
  line-height: 1.7;
}

.hero__tagline {
  margin: 0;
  color: var(--color-gold);
  font-size: 0.95rem;
  font-weight: 600;
}

/* Senior pastor */
.pastor__inner {
  display: grid;
  grid-template-columns: 15rem 1fr;
  gap: 2.75rem;
  align-items: start;
}

.pastor__photo {
  margin: 0;
}

.pastor__photo img {
  display: block;
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  background: var(--color-rule);
  border: 6px solid #fff;
  box-shadow: 0 2px 14px rgba(10, 30, 63, 0.16);
}

.pastor__body p {
  color: var(--color-muted);
  font-size: 0.875rem;
  line-height: 1.75;
}

.signature {
  margin-top: 1.5rem;
  color: var(--color-navy);
  font-family: var(--font-script);
  font-size: 1.5rem;
}

/* Mission, vision and core values band */
.band {
  background: var(--color-cream);
  border-top: 1px solid rgba(201, 162, 74, 0.25);
  border-bottom: 1px solid rgba(201, 162, 74, 0.25);
}

.mv {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3.5rem;
  text-align: center;
}

.mv__item + .mv__item {
  border-left: 1px solid rgba(201, 162, 74, 0.35);
  padding-left: 3rem;
}

.mv__item .icon-circle {
  margin: 0 auto 1rem;
}

.mv__item h3 {
  margin-bottom: 0.75rem;
  color: var(--color-navy);
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.mv__item p {
  margin: 0;
  color: var(--color-muted);
  font-size: 0.85rem;
  line-height: 1.75;
}

.values__heading {
  margin-bottom: 2rem;
  color: var(--color-navy);
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-align: center;
  text-transform: uppercase;
}

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

.values__item {
  display: flex;
  gap: 1rem;
  padding: 0 1.5rem;
}

.values__item + .values__item {
  border-left: 1px solid rgba(201, 162, 74, 0.35);
}

.values__item h4 {
  margin-bottom: 0.4rem;
  color: var(--color-navy);
  font-family: var(--font-body);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.values__item p {
  margin: 0;
  color: var(--color-muted);
  font-size: 0.8rem;
  line-height: 1.6;
}

/* Beliefs */
.beliefs__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2.5rem 0;
}

.belief {
  display: flex;
  gap: 0.9rem;
  padding: 0 1.5rem;
}

.belief:not(:nth-child(4n + 1)) {
  border-left: 1px solid var(--color-rule);
}

.belief h3 {
  margin-bottom: 0.4rem;
  color: var(--color-navy);
  font-family: var(--font-body);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.belief p {
  margin: 0;
  color: var(--color-muted);
  font-size: 0.8rem;
  line-height: 1.6;
}

/* History */
.history__inner {
  display: grid;
  grid-template-columns: 14rem 1fr 12rem;
  gap: 2rem;
  align-items: start;
}

.history__photo {
  margin: 0;
}

.history__photo img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background: var(--color-rule);
  border-radius: 2px;
}

.history__body p {
  color: var(--color-muted);
  font-size: 0.85rem;
  line-height: 1.75;
}

.verse {
  margin: 0;
  padding: 1.5rem 1.25rem;
  background: var(--color-cream);
  border-radius: 2px;
  text-align: center;
}

.verse::before {
  content: "\201C";
  display: block;
  margin-bottom: 0.25rem;
  color: var(--color-gold);
  font-family: var(--font-display);
  font-size: 2.25rem;
  line-height: 1;
}

.verse p {
  margin: 0 0 0.9rem;
  color: var(--color-navy);
  font-family: var(--font-display);
  font-size: 0.82rem;
  font-style: italic;
  line-height: 1.7;
}

.verse cite {
  color: var(--color-muted);
  font-size: 0.75rem;
  font-style: normal;
}

/* Connect band */
.cta {
  background: var(--color-navy);
  color: #fff;
}

.cta__inner {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  padding-top: 1.5rem;
  padding-bottom: 1.5rem;
}

.cta__icon {
  width: 2.25rem;
  height: 2.25rem;
  fill: none;
  stroke: var(--color-gold);
  stroke-width: 1.4;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex: none;
}

.cta__text {
  margin-right: auto;
}

.cta__title {
  margin: 0 0 0.2rem;
  font-family: var(--font-display);
  font-size: 1.1rem;
}

.cta__sub {
  margin: 0;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.8rem;
}

/* --- Footer --------------------------------------------------------------- */
.site-footer {
  background: var(--color-navy);
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.78rem;
}

/* Service times need the widest column — the labels carry weekday qualifiers. */
.site-footer__inner {
  display: grid;
  grid-template-columns: 1.25fr 1.1fr 1.75fr 1.25fr;
  gap: 2rem;
  padding-top: 3rem;
  padding-bottom: 3rem;
}

.site-footer__brand p {
  margin: 1rem 0 1.25rem;
  line-height: 1.7;
}

.site-footer h2 {
  margin-bottom: 1.1rem;
  color: var(--color-gold);
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.site-footer a {
  color: inherit;
  text-decoration: none;
}

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

.site-footer__links {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem 1rem;
}

.site-footer__links li {
  margin-bottom: 0.5rem;
  white-space: nowrap;
}

.social {
  display: flex;
  gap: 0.6rem;
}

.social a {
  display: grid;
  place-items: center;
  width: 1.85rem;
  height: 1.85rem;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 50%;
  color: #fff;
}

.social a:hover {
  border-color: var(--color-gold);
  color: var(--color-gold);
}

.social .icon {
  width: 0.95rem;
  height: 0.95rem;
}

.services {
  font-size: 0.74rem;
}

.services div {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.5rem;
}

.services dt {
  white-space: nowrap;
}

.services dt {
  color: rgba(255, 255, 255, 0.85);
}

.services dd {
  color: var(--color-gold);
  white-space: nowrap;
}

.contact li {
  display: flex;
  gap: 0.65rem;
  margin-bottom: 0.85rem;
  line-height: 1.6;
}

.contact .icon {
  width: 1rem;
  height: 1rem;
  margin-top: 0.15rem;
  color: var(--color-gold);
}

.site-footer__bar {
  background: var(--color-navy-deep);
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.72rem;
}

.site-footer__bar-inner {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 0.9rem;
  padding-bottom: 0.9rem;
}

.site-footer__bar p {
  margin: 0;
}

/* --- Image-map pages -------------------------------------------------------
   A full-page design screenshot with clickable hotspots layered on top.
   Every hotspot is positioned in percentages, so the overlay stays locked to
   the artwork at any width — the page scales as one unit.

   Usage: <body class="image-map"> wrapping a .page div that holds one <img>
   followed by <a class="hot hot-NAME"> links. .hot carries the shared look and
   behavior; .hot-NAME carries only that link's coordinates, defined in the
   hotspot section below. Nothing is positioned inline.
   -------------------------------------------------------------------------- */
body.image-map {
  background: var(--color-navy);
}

.page {
  position: relative;
  width: 100%;
  max-width: var(--content-max);
  margin: 0 auto;
  line-height: 0;
}

.page > img {
  display: block;
  width: 100%;
  height: auto;
}

.hot {
  position: absolute;
  display: block;
  border-radius: 6px;
  text-indent: -9999px;
  overflow: hidden;
  transition: background 0.15s, box-shadow 0.15s;
}

.hot:hover {
  background: rgba(201, 162, 74, 0.18);
}

.hot:focus-visible {
  outline: 3px solid var(--color-gold);
  outline-offset: 2px;
  background: rgba(201, 162, 74, 0.15);
}

/* --- Home page hotspots ----------------------------------------------------
   Coordinates are percentages of the artwork, so they hold at any page width.
   Ordered top to bottom, matching the page. Positioning only — appearance and
   interaction states live in the .hot rules above.
   -------------------------------------------------------------------------- */

/* Header — logo, primary navigation, Give button */
.hot-nav-logo           { left:  0.781%; top:  1.172%; width: 18.555%; height:  3.385%; }
.hot-nav-home           { left: 23.535%; top:  1.823%; width:  3.125%; height:  1.758%; }
.hot-nav-about          { left: 28.125%; top:  1.823%; width:  3.223%; height:  1.758%; }
.hot-nav-ministries     { left: 32.715%; top:  1.823%; width:  5.469%; height:  1.758%; }
.hot-nav-pantry         { left: 39.844%; top:  1.823%; width:  5.664%; height:  1.758%; }
.hot-nav-watch          { left: 47.754%; top:  1.823%; width:  4.688%; height:  1.758%; }
.hot-nav-radio          { left: 54.492%; top:  1.823%; width:   2.93%; height:  1.758%; }
.hot-nav-announcements  { left: 58.984%; top:  1.823%; width:  8.008%; height:  1.758%; }
.hot-nav-prayer         { left: 68.848%; top:  1.823%; width:  7.812%; height:  1.758%; }
.hot-nav-give           { left:  78.32%; top:  1.823%; width:  2.539%; height:  1.758%; }
.hot-nav-contact        { left: 82.227%; top:  1.823%; width:  4.492%; height:  1.758%; }
.hot-nav-give-button    { left: 89.453%; top:  1.562%; width:  8.203%; height:  2.214%; }

/* Hero — calls to action */
.hot-hero-watch         { left:   3.32%; top: 21.615%; width: 13.672%; height:  2.344%; }
.hot-hero-radio         { left: 17.773%; top: 21.615%; width:  15.43%; height:  2.344%; }
.hot-hero-visit         { left: 33.984%; top: 21.615%; width: 15.625%; height:  2.344%; }

/* About */
.hot-about-story        { left: 28.516%; top:   50.0%; width: 13.086%; height:  1.758%; }

/* Ministries — eight-card grid, then View All */
.hot-min-worship        { left:  3.223%; top: 56.185%; width:  10.84%; height:  9.766%; }
.hot-min-men            { left: 15.039%; top: 56.185%; width:  10.84%; height:  9.766%; }
.hot-min-women          { left: 26.855%; top: 56.185%; width:  10.84%; height:  9.766%; }
.hot-min-youth          { left: 38.672%; top: 56.185%; width:  10.84%; height:  9.766%; }
.hot-min-children       { left: 50.488%; top: 56.185%; width:  10.84%; height:  9.766%; }
.hot-min-prayer         { left: 62.305%; top: 56.185%; width:  10.84%; height:  9.766%; }
.hot-min-outreach       { left: 74.121%; top: 56.185%; width:  10.84%; height:  9.766%; }
.hot-min-pantry         { left: 85.938%; top: 56.185%; width:  10.84%; height:  9.766%; }
.hot-min-all            { left: 41.113%; top: 66.797%; width: 17.383%; height:  1.693%; }

/* Feature cards */
.hot-card-pantry        { left:  2.734%; top: 70.117%; width: 38.867%; height: 12.565%; }
.hot-card-announcements { left: 42.188%; top: 70.117%; width: 17.188%; height: 12.565%; }
.hot-card-prayer        { left: 60.547%; top: 70.117%; width: 17.188%; height: 12.565%; }
.hot-card-giving        { left: 78.906%; top: 70.117%; width: 17.773%; height: 12.565%; }

/* Pastoral care */
.hot-care-request       { left: 74.902%; top: 85.482%; width: 18.262%; height:  1.758%; }

/* Footer — link columns */
.hot-foot-about         { left: 28.125%; top: 91.732%; width:  6.445%; height:  0.977%; }
.hot-foot-ministries    { left: 28.125%; top: 92.773%; width:  6.445%; height:  0.977%; }
.hot-foot-pantry        { left: 28.125%; top:  93.75%; width:  6.445%; height:  0.977%; }
.hot-foot-watch         { left: 28.125%; top: 94.727%; width:  6.445%; height:  0.977%; }
.hot-foot-radio         { left: 28.125%; top: 95.703%; width:  6.445%; height:  0.977%; }
.hot-foot-announcements { left: 28.125%; top:  96.68%; width:  7.227%; height:  0.977%; }
.hot-foot-prayer        { left: 36.914%; top: 91.732%; width:  7.812%; height:  0.977%; }
.hot-foot-giving        { left: 36.914%; top: 92.773%; width:  7.227%; height:  0.977%; }
.hot-foot-events        { left: 36.914%; top:  93.75%; width:  5.078%; height:  0.977%; }
.hot-foot-sermons       { left: 36.914%; top: 94.727%; width:  5.469%; height:  0.977%; }
.hot-foot-contact       { left: 36.914%; top: 95.703%; width:  6.055%; height:  0.977%; }

/* Footer — social icons */
.hot-social-facebook    { left:  3.906%; top: 97.135%; width:  1.953%; height:  1.302%; }
.hot-social-youtube     { left:  6.445%; top: 97.135%; width:  1.953%; height:  1.302%; }
.hot-social-instagram   { left:  8.984%; top: 97.135%; width:  1.953%; height:  1.302%; }

/* --- Utilities ------------------------------------------------------------ */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 10;
  padding: 0.75rem 1.25rem;
  background: var(--color-gold);
  color: var(--color-navy);
  font-weight: 700;
}

.skip-link:focus {
  left: 0;
}

/* --- Media queries --------------------------------------------------------
   The layout collapses in three steps: side rails drop away first, then the
   four-across grids halve, then everything stacks.
   -------------------------------------------------------------------------- */

@media (max-width: 62rem) {
  :root {
    --gutter: 1.5rem;
  }

  .site-header__inner {
    flex-wrap: wrap;
    padding-top: 0.85rem;
    padding-bottom: 0.85rem;
  }

  .site-nav {
    order: 3;
    width: 100%;
    margin-left: 0;
  }

  .site-nav ul {
    gap: 0.85rem 1rem;
  }

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

  .verse {
    grid-column: 1 / -1;
  }

  .site-footer__inner {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }
}

@media (max-width: 48rem) {
  .section {
    padding: 3rem 0;
  }

  .pastor__inner {
    grid-template-columns: 1fr;
    gap: 1.75rem;
  }

  .pastor__photo {
    max-width: 15rem;
  }

  .mv,
  .values,
  .beliefs__grid {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }

  .mv__item + .mv__item,
  .values__item + .values__item,
  .belief:not(:nth-child(4n + 1)) {
    border-left: 0;
    padding-left: 0;
  }

  .values__item,
  .belief {
    padding: 0;
  }

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

  .cta__inner {
    flex-wrap: wrap;
  }

  .cta__text {
    margin-right: 0;
  }
}

@media (max-width: 34rem) {
  .mv,
  .values,
  .beliefs__grid,
  .site-footer__inner,
  .site-footer__links {
    grid-template-columns: 1fr;
  }

  .site-footer__bar-inner {
    flex-direction: column;
    gap: 0.35rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hot,
  .btn {
    transition: none;
  }
}
