/* ==========================================================================
   Ecclesia Leadership — site styles
   Brand palette per Ecclesia Leadership brand standards.
   Design language: warm paper, editorial serif display type,
   petal motif drawn from the Ecclesia logo.
   ========================================================================== */

:root {
  --navy:        #56667C;
  --blue:        #5593AE;
  --green:       #65AC78;
  --red:         #D64C4F;
  --purple:      #6E6385;
  --grey-mid:    #939399;
  --grey-light:  #D3D0D0;

  --ink:         #333C47;
  --ink-soft:    #5A6472;
  --paper:       #FBFAF8;
  --paper-card:  #FFFFFF;
  --paper-deep:  #F2F0EC;
  --line:        #E4E1DC;

  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans:  "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;

  --maxw:   1180px;
  --radius: 10px;
  --shadow:      0 2px 20px rgba(51, 60, 71, .06);
  --shadow-lift: 0 14px 44px rgba(51, 60, 71, .13);
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 16.5px;
  line-height: 1.75;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }

.wrap {
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 4vw, 2.5rem);
}

/* ---------- Typography ---------- */

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 600;
  line-height: 1.12;
  color: var(--navy);
  margin: 0 0 .55em;
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(2.5rem, 6vw, 4.2rem); }
h2 { font-size: clamp(1.75rem, 3.6vw, 2.6rem); }
h3 { font-size: clamp(1.2rem, 2vw, 1.45rem); line-height: 1.3; }

p { margin: 0 0 1.15em; }

.lede {
  font-size: clamp(1.08rem, 2vw, 1.3rem);
  line-height: 1.6;
  color: var(--ink-soft);
  max-width: 34em;
}

.eyebrow {
  font-family: var(--sans);
  text-transform: uppercase;
  letter-spacing: .22em;
  font-size: .72rem;
  font-weight: 600;
  color: var(--green);
  margin-bottom: 1.1rem;
}

em { font-style: italic; }

::selection { background: rgba(85, 147, 174, .25); }

/* ---------- Petal motif (from the logo) ---------- */

.petals {
  position: relative;
  display: inline-block;
  width: 54px;
  height: 44px;
}
.petals i {
  position: absolute;
  border-radius: 50% 50% 50% 4px;
  opacity: .8;
  mix-blend-mode: multiply;
}
.petals i:nth-child(1) { width: 26px; height: 26px; left: 0;    top: 8px;  background: var(--blue);  transform: rotate(-20deg); }
.petals i:nth-child(2) { width: 26px; height: 26px; left: 17px; top: 0;    background: var(--red);   transform: rotate(35deg); }
.petals i:nth-child(3) { width: 26px; height: 26px; left: 13px; top: 16px; background: var(--green); transform: rotate(80deg); }

/* Large ambient petal field used behind heros / page heads */
.petal-field {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}
.petal-field i {
  position: absolute;
  border-radius: 50% 50% 50% 6px;
  opacity: .10;
  mix-blend-mode: multiply;
}

/* ---------- Header / nav ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(251, 250, 248, .92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: 84px;
}

.logo img { width: 188px; height: auto; }

.nav {
  display: flex;
  align-items: center;
  gap: clamp(1.1rem, 2.6vw, 2.4rem);
}

.nav a {
  color: var(--navy);
  font-weight: 500;
  font-size: .93rem;
  letter-spacing: .01em;
  padding: .4rem 0;
  position: relative;
}
.nav a::after {
  content: "";
  position: absolute;
  left: 0; right: 100%;
  bottom: 0;
  height: 2px;
  background: var(--green);
  transition: right .22s ease;
}
.nav a:hover { text-decoration: none; color: var(--blue); }
.nav a:hover::after, .nav a.is-active::after { right: 0; }
.nav a.is-active { color: var(--blue); }

.nav-toggle {
  display: none;
  background: none;
  border: 0;
  cursor: pointer;
  padding: .5rem;
  color: var(--navy);
}
.nav-toggle svg { width: 26px; height: 26px; }

/* ---------- Buttons ---------- */

.btn {
  display: inline-block;
  padding: .85rem 1.8rem;
  border-radius: 100px;
  font-family: var(--sans);
  font-weight: 600;
  font-size: .93rem;
  letter-spacing: .01em;
  transition: background .18s, color .18s, transform .18s, box-shadow .18s;
  border: 1.5px solid transparent;
  cursor: pointer;
}
.btn:hover { text-decoration: none; transform: translateY(-2px); }

.btn-primary { background: var(--navy); color: #fff; }
.btn-primary:hover { background: var(--blue); box-shadow: var(--shadow-lift); }

.btn-ghost { border-color: var(--navy); color: var(--navy); background: transparent; }
.btn-ghost:hover { border-color: var(--blue); color: var(--blue); }

.btn-light { background: #fff; color: var(--navy); }
.btn-light:hover { box-shadow: var(--shadow-lift); }

/* ---------- Sections ---------- */

section { padding: clamp(4rem, 9vw, 7rem) 0; position: relative; }

/* Keep anchor targets clear of the sticky header */
.service-group { scroll-margin-top: 110px; }
.section-tint { background: var(--paper-deep); }

.section-head { max-width: 700px; margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head.center .petals { margin-bottom: 1.2rem; }

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

.hero {
  position: relative;
  padding: clamp(4rem, 9vw, 7.5rem) 0 clamp(4rem, 8vw, 6.5rem);
  overflow: hidden;
}

.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: center;
}

.hero h1 { margin-bottom: .4em; }
.hero h1 .accent {
  font-style: italic;
  font-weight: 400;
  color: var(--blue);
}

.hero-actions { margin-top: 2.2rem; display: flex; gap: .9rem; flex-wrap: wrap; }

/* Teardrop photo cluster (images already carry their own shadows) */
.hero-cluster { position: relative; padding: 1rem 0 1rem 1rem; }
.hero-cluster img { height: auto; }
.hc-main { width: 72%; margin-left: 28%; }
.hc-a { position: absolute; width: 40%; left: 0; top: -4%; }
.hc-b { position: absolute; width: 34%; left: 8%; bottom: -6%; }

/* Teardrop image at the top of a card */
.card-img { width: 130px; height: auto; margin-bottom: 1.1rem; }

/* Teardrop image beside a service group heading */
.service-group-head img { width: 86px; height: auto; margin-left: auto; }

/* Standalone teardrop beside prose */
.teardrop-side { width: 250px; height: auto; margin: 0 auto 1.6rem; }

/* ---------- Narrative (two-column prose with big drop rule) ---------- */

.narrative {
  display: grid;
  grid-template-columns: minmax(0, .85fr) minmax(0, 1.6fr);
  gap: clamp(2rem, 6vw, 5rem);
}
.narrative h2 { position: sticky; top: 120px; }
.narrative-body { columns: 2; column-gap: clamp(2rem, 4vw, 3.2rem); }
.narrative-body p { break-inside: avoid; color: var(--ink-soft); }
.narrative-body p:first-child::first-letter {
  font-family: var(--serif);
  font-size: 3.4em;
  float: left;
  line-height: .85;
  padding-right: .12em;
  color: var(--blue);
}

/* ---------- Cards ---------- */

.grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
}
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); }

.card {
  background: var(--paper-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 2.2rem 2rem 2rem;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  transition: transform .22s, box-shadow .22s;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lift); text-decoration: none; }

.card h3 { color: var(--navy); }
.card p { color: var(--ink-soft); font-size: .95rem; margin-bottom: 0; }
.card .card-link { margin-top: 1.2rem; font-weight: 600; font-size: .9rem; }

/* petal dot in card corner */
.card::before {
  content: "";
  position: absolute;
  top: -26px; right: -26px;
  width: 84px; height: 84px;
  border-radius: 50% 50% 50% 8px;
  background: var(--blue);
  opacity: .12;
  transition: opacity .22s, transform .22s;
}
.card:hover::before { opacity: .22; transform: scale(1.15); }
.card.green::before  { background: var(--green); }
.card.red::before    { background: var(--red); }
.card.purple::before { background: var(--purple); }
.card.navy::before   { background: var(--navy); }

/* ---------- Services ---------- */

.service-group { margin-bottom: clamp(3rem, 6vw, 5rem); }
.service-group:last-child { margin-bottom: 0; }

.service-group-head {
  display: flex;
  align-items: baseline;
  gap: 1.2rem;
  border-bottom: 1px solid var(--line);
  padding-bottom: 1.1rem;
  margin-bottom: 2.4rem;
}
.service-group-head .num {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.1rem;
  color: var(--green);
}
.service-group-head h2 { margin: 0; }

.service {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.7fr);
  gap: clamp(1.2rem, 3vw, 3rem);
  padding: 1.9rem 0;
  border-bottom: 1px dashed var(--line);
}
.service:last-child { border-bottom: 0; }
.service h3 { margin: 0; }
.service-body p { color: var(--ink-soft); font-size: .97rem; }
.service-body > :last-child { margin-bottom: 0; }
.service-body ol { color: var(--ink-soft); font-size: .97rem; padding-left: 1.3em; margin: 0 0 1.1em; }
.service-body li { margin-bottom: .5em; }

/* ---------- Quotes / testimonials ---------- */

.quote {
  background: var(--paper-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 2.1rem 2.1rem 1.9rem;
  margin: 0;
  box-shadow: var(--shadow);
  position: relative;
}
.quote::before {
  content: "\201C";
  font-family: var(--serif);
  font-size: 4.2rem;
  line-height: 1;
  color: var(--green);
  opacity: .5;
  display: block;
  height: .55em;
  margin-bottom: .35em;
}
.quote p {
  font-family: var(--serif);
  font-size: 1.04rem;
  line-height: 1.6;
  color: var(--ink);
}
.quote footer { font-size: .86rem; color: var(--navy); font-weight: 600; }
.quote footer span { display: block; font-weight: 400; color: var(--grey-mid); margin-top: .15rem; line-height: 1.5; }

.quote-inline {
  border-left: 3px solid var(--green);
  padding: .4rem 0 .4rem 1.6rem;
  margin: 1.6rem 0 0;
}
.quote-inline p {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.02rem;
  color: var(--ink-soft);
}
.quote-inline footer { font-size: .85rem; font-weight: 600; color: var(--navy); }
.quote-inline footer span { font-weight: 400; color: var(--grey-mid); display: block; }

/* ---------- Brochures ---------- */

.brochure {
  display: grid;
  grid-template-columns: 110px 1fr auto;
  align-items: center;
  gap: clamp(1.4rem, 3vw, 2.4rem);
  background: var(--paper-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 2rem 2.2rem;
  margin-bottom: 1.1rem;
  transition: transform .22s, box-shadow .22s;
}
.brochure:hover { transform: translateY(-3px); box-shadow: var(--shadow-lift); }

.brochure-img { width: 110px; height: auto; }
.brochure h3 { margin-bottom: .3em; }
.brochure p { margin: 0; font-size: .94rem; color: var(--ink-soft); }
.brochure .btn { white-space: nowrap; }

/* ---------- CTA band ---------- */

.cta {
  background: var(--navy);
  color: #fff;
  text-align: center;
  overflow: hidden;
}
.cta .petal-field i { opacity: .16; mix-blend-mode: normal; }
.cta h2 { color: #fff; }
.cta p { color: rgba(255,255,255,.85); max-width: 580px; margin-inline: auto; }
.cta .wrap { position: relative; }

/* ---------- Page head ---------- */

.page-head {
  position: relative;
  padding: clamp(3.5rem, 7vw, 5.5rem) 0;
  background: var(--paper-deep);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}
.page-head .wrap { position: relative; }
.page-head h1 { margin-bottom: .25em; }
.page-head p { max-width: 640px; margin: 0; color: var(--ink-soft); font-size: 1.08rem; }

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

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr);
  gap: clamp(2.5rem, 6vw, 4.5rem);
}

.contact-detail { margin-bottom: 1.7rem; }
.contact-detail .label {
  text-transform: uppercase;
  letter-spacing: .18em;
  font-size: .7rem;
  font-weight: 600;
  color: var(--green);
  margin-bottom: .25rem;
}
.contact-detail a, .contact-detail p { font-size: 1.04rem; margin: 0; }

.field { margin-bottom: 1.15rem; }
.field label {
  display: block;
  font-size: .84rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: .35rem;
}
.field input, .field textarea {
  width: 100%;
  padding: .8rem 1rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  font: inherit;
  font-size: .95rem;
  color: var(--ink);
  background: var(--paper-card);
  transition: border-color .18s, box-shadow .18s;
}
.field input:focus, .field textarea:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(85,147,174,.16);
}
.field textarea { resize: vertical; min-height: 140px; }

/* ---------- Footer ---------- */

.site-footer {
  background: #47556A;
  color: rgba(255,255,255,.78);
  padding: 4rem 0 2rem;
  font-size: .92rem;
}
.site-footer h4 {
  font-family: var(--sans);
  color: #fff;
  font-size: .78rem;
  text-transform: uppercase;
  letter-spacing: .18em;
  margin-bottom: 1rem;
}
.site-footer a { color: rgba(255,255,255,.78); }
.site-footer a:hover { color: #fff; }

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 2.5rem;
  padding-bottom: 2.8rem;
}
.footer-grid ul { list-style: none; margin: 0; padding: 0; }
.footer-grid li { margin-bottom: .55rem; }
.footer-logo { width: 165px; margin-bottom: 1.1rem; filter: brightness(0) invert(1); opacity: .92; }
.footer-grid p { color: rgba(255,255,255,.62); max-width: 30em; }

.footer-base {
  border-top: 1px solid rgba(255,255,255,.16);
  padding-top: 1.6rem;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  font-size: .84rem;
  color: rgba(255,255,255,.55);
}

/* ---------- Prose ---------- */

.prose { max-width: 720px; }
.prose h2 { margin-top: 2.2em; }
.prose h2:first-child { margin-top: 0; }
.prose p { color: var(--ink-soft); }
.prose .lede { color: var(--ink); }

/* ---------- Responsive ---------- */

@media (max-width: 920px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-cluster { max-width: 440px; margin-inline: auto; }
  .narrative { grid-template-columns: 1fr; }
  .narrative h2 { position: static; }
  .narrative-body { columns: 1; }
  .service { grid-template-columns: 1fr; gap: .6rem; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }

  .nav-toggle { display: block; }
  .nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
    padding: .5rem 0;
    display: none;
  }
  .nav.is-open { display: flex; }
  .nav a { padding: .85rem clamp(1.25rem, 4vw, 2rem); }
  .nav a::after { display: none; }
  .nav a:hover, .nav a.is-active { background: var(--paper-deep); }

  .brochure { grid-template-columns: 1fr; gap: .9rem; }
  .brochure-img { width: 90px; }
}

@media (max-width: 520px) {
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .logo img { width: 150px; }
  .hero-actions .btn { width: 100%; text-align: center; }
}
