/* ============================================================
   GLOBAL
   ============================================================ */

html { scroll-behavior: smooth; }

body { font-family: 'Gambetta', serif; background-color: #F0EEEC; color: #041B21; }

::selection { background-color: #04656B; color: white; }

/* Override Tailwind's font-serif stack with Gambetta */
.font-serif { font-family: 'Gambetta', serif !important; }


/* ============================================================
   NAVIGATION
   ============================================================ */

#main-nav {
  padding-top: 2rem;
  padding-bottom: 2rem;
  background: transparent;
  transition: padding 0.7s ease, background-color 0.7s ease, backdrop-filter 0.7s ease, border-color 0.7s ease;
}

#main-nav.scrolled {
  padding-top: 1rem;
  padding-bottom: 1rem;
  background-color: rgba(240, 238, 236, 0.88);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

#mobile-menu {
  transform: translateY(-100%);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.7s cubic-bezier(0.76, 0, 0.24, 1), opacity 0.7s ease;
}

#mobile-menu.open {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

/* Smooth color transition on nav links (all pages) */
#main-nav a { transition: color 0.7s ease; }

/* Dark hero: nav text flips to white when unscrolled (ministries.html) */
#main-nav.dark-hero:not(.scrolled) a { color: rgba(255, 255, 255, 0.75) !important; }


/* ============================================================
   LAYOUT
   ============================================================ */

@media (min-width: 1024px) {
  .sticky-inner { position: sticky; top: 8rem; }
}


/* ============================================================
   BUTTONS & LINKS
   ============================================================ */

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background-color: #04656B;
  color: #F0EEEC;
  padding: 0.875rem 1.75rem;
  border-radius: 4px;
  font-family: system-ui, -apple-system, sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  transition: background-color 0.3s ease, opacity 0.3s ease;
  min-height: 48px;
  cursor: pointer;
  border: none;
}
.btn-primary:hover { background-color: #035459; }

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background-color: transparent;
  color: #041B21;
  padding: 0.875rem 1.75rem;
  border-radius: 4px;
  border: 1.5px solid #041B21;
  font-family: system-ui, -apple-system, sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  transition: background-color 0.3s ease, color 0.3s ease;
  min-height: 48px;
}
.btn-secondary:hover { background-color: #041B21; color: #F0EEEC; }

.cta-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: system-ui, -apple-system, sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  border-bottom: 1.5px solid currentColor;
  padding-bottom: 3px;
  min-height: 44px;
  background: none;
  cursor: pointer;
  transition: opacity 0.3s ease;
}
.cta-link:hover { opacity: 0.6; }


/* ============================================================
   PULL QUOTE
   ============================================================ */

.pull-quote {
  border-left: 2px solid #04656B;
  padding-left: 1.5rem;
  margin: 2rem 0;
}


/* ============================================================
   WORK CARDS (index.html)
   ============================================================ */

.work-card { transition: background-color 0.4s ease; }
.work-card:hover { background-color: rgba(4, 101, 107, 0.1); }
.work-card-arrow { transition: all 0.4s ease; }
.work-card:hover .work-card-arrow {
  background-color: #04656B;
  border-color: #04656B;
  color: #F0EEEC;
}


/* ============================================================
   WORKS ROWS (vision.html)
   ============================================================ */

.works-row {
  transition: background-color 0.5s ease, box-shadow 0.5s ease;
  box-shadow: inset 3px 0 0 transparent;
}
.works-row:hover {
  background-color: rgba(4, 101, 107, 0.12);
  box-shadow: inset 3px 0 0 #04656B;
}
.works-btn { transition: all 0.4s ease; }
.works-row:hover .works-btn {
  background-color: #04656B;
  border-color: #04656B;
  color: #F0EEEC;
}


/* ============================================================
   BELIEF ROWS (vision.html)
   ============================================================ */

.belief-row { transition: background-color 0.3s; }
.belief-row:hover { background-color: rgba(0, 0, 0, 0.02); }


/* ============================================================
   ACCORDION (beliefs.html)
   ============================================================ */

.accord-icon {
  display: flex;
  align-items: flex-start;
  flex-shrink: 0;
  min-width: 2.5rem;
  color: rgba(4, 101, 107, 0.4);
  transition: color 0.4s;
}
.accordion-item.is-open .accord-icon { color: rgba(4, 101, 107, 0.75); }

.accordion-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.55s cubic-bezier(0.4, 0, 0.2, 1);
}

.accordion-trigger {
  background: none;
  border: none;
  cursor: pointer;
  transition: background-color 0.3s;
}
.accordion-trigger:hover { background-color: rgba(0, 0, 0, 0.025); }

.accordion-item.is-open { background-color: rgba(4, 101, 107, 0.03); }

.chevron { transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1); flex-shrink: 0; }
.accordion-item.is-open .chevron { transform: rotate(180deg); }
.accordion-item.is-open .ghost-num-sm { color: rgba(4, 101, 107, 0.3); }

.belief-body-pad { padding-left: 5rem; }
@media (min-width: 768px) { .belief-body-pad { padding-left: 6.75rem; } }


/* ============================================================
   CONTACT FORM (contact.html, vision.html)
   ============================================================ */

.field { position: relative; }

.field label {
  position: absolute;
  left: 0;
  top: 1rem;
  font-family: system-ui, -apple-system, sans-serif;
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(4, 27, 33, 0.4);
  transition: all 0.3s ease;
  pointer-events: none;
}

.field.active label,
.field.has-value label {
  top: -1rem;
  font-size: 10px;
  color: #041B21;
}

.field input,
.field textarea {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(0, 0, 0, 0.2);
  padding: 1rem 0;
  font-family: 'Gambetta', serif;
  font-size: 1.125rem;
  outline: none;
  color: #041B21;
  transition: border-color 0.3s ease;
}

.field input:focus,
.field textarea:focus { border-bottom-color: #041B21; }

.field textarea { resize: none; }

select { appearance: none; -webkit-appearance: none; cursor: pointer; }
