/*
 * Public website styles
 *
 * Shares the member portal's design tokens rather than defining a second
 * palette, so moving from the site into the portal does not feel like
 * leaving.
 *
 * NOTE: this teal-and-gold palette was inherited from the congregation
 * this software was first written for. It is not Assemblies of God
 * Kottiyam's own. Changing it means editing the tokens here and the
 * matching block in chrome.css.
 *
 * The tokens below are copied from public/css/01-base-layout.css. If the
 * portal's palette changes, change it here too.
 */

:root {
  --teal: #21211f;
  --teal-dark: #000000;
  --teal-soft: #eceae7;
  --gold: #f73c4a;
  --cream: #f5f4f2;
  --text: #21211f;
  --text-strong: #000000;
  --muted: #656565;
  --border: #e2dfdb;
  --white: #ffffff;

  /* ag.org sets headings in Switzer; Inter is the closest face that is
     freely available, with a system fallback. */
  --serif: Inter, 'Helvetica Neue', Arial, sans-serif;
  --sans: Inter, 'Helvetica Neue', Arial, sans-serif;

  /*
   * The same measure the shared chrome uses (see chrome.css). Keeping the
   * two in step is what makes the site's content line up with its own
   * header, and makes the header the same size on the site and in the
   * portal.
   */
  --shell: min(1420px, calc(100% - 32px));
  --radius: 14px;
  --shadow: 0 2px 10px rgba(15, 95, 91, .06);
  --shadow-lift: 0 10px 30px rgba(15, 95, 91, .12);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  color: var(--text);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--serif);
  color: var(--teal);
  line-height: 1.15;
  margin: 0 0 .5em;
  font-weight: 500;
  letter-spacing: -0.01em;
}

/* ag.org sets its display headings in caps. Kept to h1 and h2 so that
   card titles and sub-headings do not shout. */
h1, h2 {
  text-transform: uppercase;
  letter-spacing: 0;
  font-weight: 400;
}

h1 { font-size: clamp(2rem, 5vw, 3.1rem); }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.3rem); }
h3 { font-size: 1.25rem; }

p { margin: 0 0 1.1em; }
a { color: var(--gold); }

img { max-width: 100%; display: block; }

/* Matches the chrome exactly - see chrome.css. The gutter comes from
   the shell width, not from padding, so the header, the page content and
   the portal's dashboard all begin at the same x. */
.shell {
  width: 100%;
  max-width: var(--shell);
  margin: 0 auto;
  padding: 0;
}

/* The gold, letter-spaced eyebrow used throughout the portal. */
.eyebrow {
  font-family: var(--sans);
  color: var(--gold);
  font-size: 12px;
  letter-spacing: 2px;
  text-transform: uppercase;
  font-weight: 600;
  margin: 0 0 14px;
  padding-left: 12px;
  border-left: 3px solid var(--gold);
}

/* ---------------------------------------------------------------
 * Hero
 * ------------------------------------------------------------- */

.hero {
  background: var(--cream);
  border-bottom: 1px solid var(--border);
  padding: clamp(48px, 8vw, 88px) 0;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: clamp(28px, 5vw, 60px);
  align-items: center;
}

.hero p.lead {
  font-size: 1.14rem;
  max-width: 46ch;
  color: var(--text);
}

.hero-media img {
  width: 100%;
  border-radius: 20px;
  box-shadow: var(--shadow-lift);
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.button-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }

.button {
  display: inline-block;
  padding: 14px 30px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 500;
  font-size: .95rem;
}

.button-primary {
  background: var(--teal);
  color: var(--white);
}

.button-primary:hover { background: var(--teal-dark); }

.button-ghost {
  background: var(--white);
  color: var(--teal);
  border: 1px solid var(--border);
}

.button-ghost:hover { border-color: var(--teal); }

/* ---------------------------------------------------------------
 * Sections and cards
 * ------------------------------------------------------------- */

section { padding: clamp(46px, 7vw, 82px) 0; }

.section-head { max-width: 62ch; margin-bottom: 34px; }
.section-head.centred { margin-left: auto; margin-right: auto; text-align: center; }

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}

.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: var(--shadow);
}

.card h3 { margin-bottom: .35em; }
.card p:last-child { margin-bottom: 0; }

.card .when {
  font-family: var(--serif);
  color: var(--gold);
  font-size: 1.05rem;
  margin-bottom: .4em;
}

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(28px, 5vw, 56px);
  align-items: center;
}

/*
 * Hold prose to a readable line length. The shell is wide so that the
 * header and the portal agree; body text should not be.
 */
.split > div > p,
.split > div > ul { max-width: 60ch; }

.split img { border-radius: 18px; box-shadow: var(--shadow); aspect-ratio: 4/3; object-fit: cover; }

.tinted { background: var(--white); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }

/* A short list of values or beliefs. */
.ticks { list-style: none; margin: 0; padding: 0; }

.ticks li {
  position: relative;
  padding-left: 30px;
  margin-bottom: 12px;
}

.ticks li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: .55em;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--gold);
}

/* ---------------------------------------------------------------
 * Call to action
 * ------------------------------------------------------------- */

.cta {
  background: var(--teal);
  color: rgba(255, 255, 255, .88);
  text-align: center;
}

.cta h2 { color: var(--white); }
.cta p { max-width: 54ch; margin-inline: auto; }
.cta .button-ghost { background: var(--white); border-color: transparent; }

/* ---------------------------------------------------------------
 * Contact
 * ------------------------------------------------------------- */

.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(26px, 5vw, 52px); }

.detail { margin-bottom: 22px; }

.detail .label {
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 700;
  margin-bottom: 4px;
}

.detail a { text-decoration: none; }
.detail a:hover { text-decoration: underline; }

/* ---------------------------------------------------------------
 * Responsive
 *
 * One breakpoint at 860px collapses the two-column layouts, and the
 * navigation becomes a disclosure panel rather than being hidden - a
 * church site is read on a phone more often than anywhere else.
 * ------------------------------------------------------------- */

@media (max-width: 860px) {
  .hero-grid, .split, .contact-grid { grid-template-columns: 1fr; }
  .hero-media { order: -1; }

}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}


/* ---------------------------------------------------------------
 * The pastor's message
 * ------------------------------------------------------------- */

.pastor-message p {
  max-width: 62ch;
}

.pastor-message p:first-of-type {
  font-size: 1.08rem;
}

.pastor-signature {
  margin-top: 30px;
  padding-top: 22px;
  border-top: 1px solid var(--border);
  max-width: 62ch;
}

/*
 * Shown only while the message is still placeholder copy. The marker is
 * the data-draft attribute on the container - remove it with the text
 * and this disappears with it. Deliberately conspicuous: an unfinished
 * page that looks finished is how filler reaches the public.
 */
.draft-note { display: none; }

.pastor-message[data-draft] .draft-note {
  display: block;
  background: #fff6e5;
  border: 1px solid #e8c37a;
  border-radius: 8px;
  padding: 10px 14px;
  font-size: .85rem;
  font-weight: 600;
  color: #7a5a12;
  max-width: none;
}
