/* Simple Church Ideas
   Palette: #FFFFFF, #1EBEAF (teal), #8870E1 (purple), #323232 (charcoal)
   Logo colors: #008080 (deep teal), #EDEAE2 (cream) */

:root {
  --white: #ffffff;
  --teal: #1ebeaf;
  --teal-light: #b5fff4;
  --teal-deep: #008080;      /* logo teal; white text passes AA on it */
  --teal-ink: #0c6d64;       /* teal for text and links on white */
  --purple: #8870e1;
  --purple-light: #f1effc;
  --purple-ink: #6740d2;
  --charcoal: #323232;
  --charcoal-soft: #525252;
  --cream: #edeae2;
  --line: #e9e9e9;

  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --radius: 14px;
  --shadow: 0 1px 2px rgba(50, 50, 50, .06), 0 8px 24px rgba(50, 50, 50, .06);
  --header-h: 76px;
}

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

html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--white);
  color: var(--charcoal);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; height: auto; }

a { color: var(--teal-ink); text-underline-offset: 3px; }
a:hover { color: var(--teal-deep); }

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.01em;
  margin: 0 0 .5em;
  text-wrap: balance;
}
h1 { font-size: clamp(2.5rem, 6vw, 4.5rem); }
h2 { font-size: clamp(1.9rem, 4vw, 2.75rem); }
h3 { font-size: 1.3rem; font-weight: 600; }
p { margin: 0 0 1em; }

.container { width: min(1140px, 100% - 32px); margin-inline: auto; }

.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;
}

.skip-link {
  position: absolute; left: 16px; top: -100px; z-index: 100;
  background: var(--charcoal); color: var(--white);
  padding: 10px 16px; border-radius: 8px;
}
.skip-link:focus { top: 12px; }

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

/* Buttons */
.btn {
  display: inline-block;
  background: var(--teal);
  color: var(--charcoal);
  font: 600 1rem/1 var(--font-body);
  text-decoration: none;
  padding: 16px 26px;
  border: 2px solid var(--teal);
  border-radius: 999px;
  cursor: pointer;
  transition: background .15s, border-color .15s, transform .15s;
}
.btn:hover { background: #27e9d7; border-color: #27e9d7; color: var(--charcoal); transform: translateY(-1px); }
.btn-small { padding: 11px 20px; font-size: .95rem; }
.btn-ghost { background: transparent; color: var(--white); border-color: var(--white); }
.btn-ghost:hover { background: rgba(255, 255, 255, .12); border-color: var(--white); color: var(--white); }

.eyebrow {
  font-size: .875rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--purple-ink);
  margin-bottom: .6em;
}
.eyebrow.eyebrow-light { color: var(--teal-light); }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .94);
  backdrop-filter: saturate(1.4) blur(8px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: var(--header-h);
}
.brand img { width: 190px; }

.site-nav { display: flex; align-items: center; gap: 28px; }
.site-nav a:not(.btn) {
  color: var(--charcoal); font-weight: 500; text-decoration: none;
}
.site-nav a:not(.btn):hover { color: var(--teal-ink); }

.nav-toggle {
  display: none;
  width: 44px; height: 44px;
  background: none; border: 0; border-radius: 8px; cursor: pointer;
  position: relative;
}
.nav-toggle-bar, .nav-toggle-bar::before, .nav-toggle-bar::after {
  position: absolute; left: 11px; width: 22px; height: 2px;
  background: var(--charcoal); border-radius: 2px;
  transition: transform .2s, opacity .2s;
}
.nav-toggle-bar { top: 21px; }
.nav-toggle-bar::before, .nav-toggle-bar::after { content: ""; left: 0; }
.nav-toggle-bar::before { top: -7px; }
.nav-toggle-bar::after { top: 7px; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar::before { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar::after { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 820px) {
  .brand img { width: 160px; }
  .nav-toggle { display: block; }
  .site-nav {
    display: none;
    position: absolute; top: var(--header-h); left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--white);
    border-bottom: 1px solid var(--line);
    padding: 8px 16px 20px;
  }
  .site-nav.is-open { display: flex; }
  .site-nav a:not(.btn) { padding: 14px 0; border-bottom: 1px solid var(--line); }
  .site-nav .btn { margin-top: 16px; text-align: center; }
}

/* Hero */
.hero {
  position: relative;
  overflow: hidden;
  background: var(--teal-deep);
  color: var(--white);
  padding: clamp(80px, 12vw, 150px) 0 clamp(80px, 11vw, 140px);
}
.hero-spark {
  position: absolute;
  right: -40px; top: 50%;
  width: min(760px, 90vw);
  transform: translateY(-50%);
  fill: var(--cream);
  opacity: .14;
  pointer-events: none;
}
.hero-inner { position: relative; max-width: 1140px; }
.hero h1 { max-width: 12ch; }
.hero .lead { font-size: clamp(1.1rem, 2vw, 1.3rem); max-width: 40ch; color: var(--white); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; }

/* Sections */
.section { padding: clamp(72px, 10vw, 120px) 0; }
.section-tint { background: var(--purple-light); }
.section-dark { background: var(--charcoal); color: var(--white); }
.section-dark p { color: rgba(255, 255, 255, .85); }

.section-head { max-width: 640px; margin-bottom: 48px; }
.section-head p:last-child { color: var(--charcoal-soft); font-size: 1.125rem; }

.split {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: clamp(32px, 6vw, 80px);
  align-items: start;
}
.split-center { align-items: center; grid-template-columns: .8fr 1.2fr; }
@media (max-width: 820px) { .split, .split-center { grid-template-columns: 1fr; } }

/* Service cards */
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.cards-two { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 960px) { .cards { grid-template-columns: 1fr; max-width: 560px; } }

.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px 28px;
  border-top: 5px solid var(--teal);
  box-shadow: var(--shadow);
}
.card > p { color: var(--charcoal-soft); }

.card-icon {
  width: 52px; height: 52px;
  display: grid; place-items: center;
  border-radius: 12px;
  background: var(--purple-light);
  margin-bottom: 20px;
}
.card-icon svg {
  width: 26px; height: 26px;
  fill: none; stroke: var(--purple-ink); stroke-width: 1.8;
  stroke-linecap: round; stroke-linejoin: round;
}

.checks { list-style: none; padding: 0; margin: 20px 0 0; }
.checks li {
  position: relative;
  padding: 8px 0 8px 30px;
  border-top: 1px solid var(--line);
  font-size: .975rem;
}
.checks li::before {
  content: "";
  position: absolute; left: 2px; top: 15px;
  width: 14px; height: 8px;
  border-left: 2.5px solid var(--teal-deep);
  border-bottom: 2.5px solid var(--teal-deep);
  transform: rotate(-45deg);
}

/* Toolbox strip under the service cards */
.toolbox {
  display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px;
  margin-top: 24px;
  padding: 20px 28px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.toolbox-label {
  margin: 0;
  font-size: .875rem; font-weight: 700;
  letter-spacing: .12em; text-transform: uppercase;
  color: var(--purple-ink);
}
.toolbox ul { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.toolbox li {
  padding: 8px 16px;
  background: var(--purple-light);
  border-radius: 999px;
  font-weight: 500; font-size: .95rem;
}
@media (max-width: 960px) { .toolbox { max-width: 560px; } }

/* Common problems */
.problems {
  list-style: none; padding: 0; margin: 0;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px;
}
@media (max-width: 960px) { .problems { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .problems { grid-template-columns: 1fr; } }

.problems li {
  position: relative;
  padding: 26px 26px 24px 58px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.problems li::before {
  /* small version of the logo spark */
  content: "";
  position: absolute; left: 22px; top: 29px;
  width: 20px; height: 20px;
  background: var(--teal);
  clip-path: polygon(50% 0, 60% 40%, 100% 50%, 60% 60%, 50% 100%, 40% 60%, 0 50%, 40% 40%);
}
.problems h3 { font-size: 1.15rem; margin-bottom: .35em; }
.problems p { margin: 0; color: var(--charcoal-soft); font-size: .975rem; }

/* Approach */
.principles {
  list-style: none; padding: 0; margin: 0;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
}
@media (max-width: 960px) { .principles { grid-template-columns: 1fr; max-width: 560px; } }
.principles li {
  background: var(--purple-light);
  border-radius: var(--radius);
  padding: 28px;
  border-top: 5px solid var(--purple);
}
.principles h3 { margin-bottom: .3em; }
.principles p { margin: 0; color: var(--charcoal-soft); }

/* Process flow */
.flow {
  --arrow-right: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 28 16'%3E%3Cpath d='M1 8h24M19 2l6 6-6 6' fill='none' stroke='%23008080' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  --arrow-down: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 28'%3E%3Cpath d='M8 1v24M2 19l6 6 6-6' fill='none' stroke='%23008080' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  list-style: none; padding: 0; margin: 0;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 40px;
}
.flow-step {
  position: relative;
  background: var(--white);
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 24px 24px;
}
.flow-step:not(:last-child)::after {
  content: "";
  position: absolute; top: 42px; right: -34px;
  width: 28px; height: 16px;
  background: var(--arrow-right) no-repeat center / contain;
}
.flow-num {
  display: grid; place-items: center;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--teal-deep);
  color: var(--white);
  font: 800 1.25rem/1 var(--font-display);
  margin-bottom: 16px;
}
.flow-step h3 { margin-bottom: .35em; }
.flow-step p { color: var(--charcoal-soft); margin: 0; }

.flow-key { border: 2px solid var(--teal-deep); box-shadow: var(--shadow); }
.flow-step .flow-badge {
  margin-top: 16px;
  padding: 10px 14px;
  background: var(--purple-light);
  border-radius: 10px;
  color: var(--purple-ink);
  font-weight: 600; font-size: .95rem;
}


@media (max-width: 960px) {
  .flow { grid-template-columns: 1fr; max-width: 560px; }
  .flow-step:not(:last-child)::after {
    top: auto; right: auto; bottom: -34px; left: 44px;
    width: 16px; height: 28px;
    background-image: var(--arrow-down);
  }
}

/* About */
.about-photo img {
  width: 100%;
  max-width: 420px;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: var(--radius);
  margin-inline: auto;
  box-shadow: 14px 14px 0 var(--teal-deep);
}
@media (max-width: 820px) { .about-photo img { max-width: 340px; margin-inline: 0 14px; } }

/* Contact */
.contact-area {
  padding: 14px 18px;
  border-left: 4px solid var(--teal);
  background: var(--purple-light);
  border-radius: 0 10px 10px 0;
}
.contact-direct { font-weight: 500; }

.contact-form {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(24px, 4vw, 40px);
  box-shadow: var(--shadow);
}
.field { margin: 0 0 20px; border: 0; padding: 0; min-width: 0; }
.field label, .field legend {
  display: block;
  font-weight: 600; font-size: .95rem;
  margin-bottom: 8px; padding: 0;
}
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 480px) { .field-row { grid-template-columns: 1fr; gap: 0; } }

.field input[type="text"],
.field input[type="email"],
.field select,
.field textarea {
  width: 100%;
  font: inherit;
  color: var(--charcoal);
  background: #fafafa;
  border: 1.5px solid #c1c1c1;
  border-radius: 10px;
  padding: 12px 14px;
  transition: border-color .15s, background .15s;
}
.field select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23323232' stroke-width='1.8'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 12px 8px;
  padding-right: 36px;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--teal-deep);
  background: var(--white);
  box-shadow: 0 0 0 3px rgba(30, 190, 175, .25);
}
.field textarea { resize: vertical; }

.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip { position: relative; margin: 0; font-weight: 500; cursor: pointer; }
.chip input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.chip span {
  display: inline-block;
  padding: 11px 18px;
  border: 1.5px solid #c1c1c1;
  border-radius: 999px;
  font-size: .925rem;
  transition: all .15s;
}
.chip input:checked + span { background: var(--purple); border-color: var(--purple); color: var(--white); }
.chip input:focus-visible + span { outline: 3px solid var(--purple); outline-offset: 2px; }

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.contact-form .btn { width: 100%; padding: 18px; font-size: 1.05rem; }
.form-note { margin: 14px 0 0; font-size: .875rem; color: var(--charcoal-soft); text-align: center; }

/* Footer */
.site-footer {
  background: #242424;
  color: var(--cream);
  padding: 48px 0;
}
.footer-inner {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px;
}
.footer-inner img { width: 180px; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 24px; }
.footer-nav a { color: var(--cream); text-decoration: none; font-weight: 500; }
.footer-nav a:hover { color: var(--teal); }
.copyright { margin: 0; font-size: .9rem; color: #afafaf; }

/* Simple standalone pages (thank-you, 404) */
.page-simple {
  min-height: calc(100vh - var(--header-h) - 150px);
  display: grid; place-items: center;
  text-align: center;
  padding: 80px 0;
}
.page-simple .container { max-width: 560px; }
.page-simple p { color: var(--charcoal-soft); font-size: 1.125rem; }

/* Privacy policy and other text pages */
.page-legal .container { max-width: 760px; }
.page-legal h1 { font-size: clamp(2.25rem, 5vw, 3.25rem); margin-bottom: .2em; }
.page-legal h2 { font-size: 1.5rem; margin-top: 2em; }
.page-legal p:not(.eyebrow), .page-legal li { color: var(--charcoal-soft); }
.page-legal strong { color: var(--charcoal); }
.page-legal ul { padding-left: 1.25em; margin: 0 0 1em; }
.page-legal li { margin-bottom: .4em; }
.legal-updated { font-size: .95rem; margin-bottom: 2em; }
