/* =============================================
   ANCHOR MINISTRY — Style
   Template 30
   Palette: Slate Charcoal #2c3e50 | Warm Linen #faf7f2
           Sage Green #6b9080 | Dark Text #1a1a1a | Light Text #f0ece6
   Fonts:  Poppins (headings) + Source Sans 3 (body)
   Prefix: am-
   ============================================= */

/* ---------- Reset & Base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: 'Source Sans 3', 'Source Sans Pro', sans-serif;
  font-size: 17px;
  line-height: 1.7;
  color: #1a1a1a;
  background: #faf7f2;
}

img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

.am-container {
  width: 90%;
  max-width: 1180px;
  margin: 0 auto;
}

/* ---------- Reveal Animations ---------- */
.am-reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.am-reveal.am-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- Demo Banner ---------- */
.am-demo-banner {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 9999;
  background: #1a1a1a;
  text-align: center;
  padding: 9px 16px;
  font-size: 13px;
  letter-spacing: 0.3px;
}
.am-demo-banner a {
  color: #ccc;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  transition: color 0.3s;
}
.am-demo-banner a:hover { color: #fff; }

/* ---------- Navigation ---------- */
.am-nav {
  position: fixed;
  top: 36px;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 16px 0;
  transition: background 0.35s, box-shadow 0.35s, padding 0.35s;
}
.am-nav.scrolled {
  background: #fff;
  box-shadow: 0 2px 20px rgba(0,0,0,0.08);
  padding: 10px 0;
}
.am-nav-inner {
  width: 90%;
  max-width: 1180px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.am-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  font-size: 18px;
  color: #fff;
  transition: color 0.35s;
}
.am-nav.scrolled .am-logo { color: #1a1a1a; }
.am-logo-mark {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #6b9080;
  border-radius: 50%;
  color: #fff;
}
.am-nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}
.am-nav-links a {
  font-family: 'Source Sans 3', sans-serif;
  font-size: 15px;
  font-weight: 500;
  color: rgba(255,255,255,0.85);
  transition: color 0.3s;
}
.am-nav.scrolled .am-nav-links a { color: #444; }
.am-nav-links a:hover { color: #fff; }
.am-nav.scrolled .am-nav-links a:hover { color: #6b9080; }
.am-nav-cta {
  background: #6b9080 !important;
  color: #fff !important;
  padding: 8px 22px;
  border-radius: 6px;
  font-weight: 600 !important;
  transition: background 0.3s !important;
}
.am-nav-cta:hover { background: #5a7d6e !important; }

/* Hamburger */
.am-hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  width: 28px;
  height: 20px;
  position: relative;
}
.am-hamburger span {
  display: block;
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: all 0.35s;
}
.am-nav.scrolled .am-hamburger span { background: #1a1a1a; }
.am-hamburger span:nth-child(1) { top: 0; }
.am-hamburger span:nth-child(2) { top: 9px; }
.am-hamburger span:nth-child(3) { top: 18px; }
.am-hamburger.active span:nth-child(1) { top: 9px; transform: rotate(45deg); }
.am-hamburger.active span:nth-child(2) { opacity: 0; }
.am-hamburger.active span:nth-child(3) { top: 9px; transform: rotate(-45deg); }

/* Mobile Menu */
.am-mobile-menu {
  position: fixed;
  top: 0;
  right: -100%;
  width: 280px;
  height: 100vh;
  background: #2c3e50;
  z-index: 999;
  display: flex;
  flex-direction: column;
  padding: 100px 36px 40px;
  transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.am-mobile-menu.open { right: 0; }
.am-mobile-menu a {
  font-family: 'Poppins', sans-serif;
  font-size: 18px;
  font-weight: 500;
  color: #f0ece6;
  padding: 14px 0;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  transition: color 0.3s;
}
.am-mobile-menu a:hover { color: #6b9080; }
.am-mobile-cta {
  margin-top: 24px;
  background: #6b9080;
  text-align: center;
  border-radius: 6px;
  padding: 14px 0 !important;
  border-bottom: none !important;
}

/* ---------- Hero ---------- */
.am-hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.am-hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.am-hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.am-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(20, 30, 40, 0.7) 0%,
    rgba(44, 62, 80, 0.75) 50%,
    rgba(20, 30, 40, 0.85) 100%
  );
}
.am-hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 740px;
  padding: 140px 24px 100px;
}
.am-hero-tagline {
  font-family: 'Source Sans 3', sans-serif;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: #6b9080;
  margin-bottom: 20px;
}
.am-hero-heading {
  font-family: 'Poppins', sans-serif;
  font-size: clamp(36px, 5.5vw, 62px);
  font-weight: 800;
  line-height: 1.1;
  color: #fff;
  margin-bottom: 24px;
}
.am-hero-sub {
  font-size: 18px;
  line-height: 1.75;
  color: rgba(240, 236, 230, 0.85);
  margin-bottom: 40px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}
.am-hero-btns {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* Buttons */
.am-btn {
  display: inline-block;
  font-family: 'Poppins', sans-serif;
  font-size: 15px;
  font-weight: 600;
  padding: 14px 34px;
  border-radius: 6px;
  transition: all 0.3s;
  cursor: pointer;
  border: 2px solid transparent;
}
.am-btn-primary {
  background: #6b9080;
  color: #fff;
}
.am-btn-primary:hover {
  background: #5a7d6e;
}
.am-btn-outline {
  border-color: rgba(255,255,255,0.5);
  color: #fff;
  background: transparent;
}
.am-btn-outline:hover {
  border-color: #fff;
  background: rgba(255,255,255,0.08);
}
.am-btn-white {
  background: #fff;
  color: #6b9080;
}
.am-btn-white:hover {
  background: #f0ece6;
}
.am-btn-text-white {
  color: #fff;
  font-family: 'Poppins', sans-serif;
  font-size: 15px;
  font-weight: 600;
  padding: 14px 20px;
  border-bottom: 2px solid rgba(255,255,255,0.4);
  transition: border-color 0.3s;
}
.am-btn-text-white:hover {
  border-color: #fff;
}

/* ---------- Section Shared ---------- */
.am-eyebrow {
  display: block;
  font-family: 'Source Sans 3', sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: #6b9080;
  margin-bottom: 14px;
}
.am-eyebrow-light { color: rgba(107,144,128,0.9); }
.am-section-heading {
  font-family: 'Poppins', sans-serif;
  font-size: clamp(28px, 3.5vw, 42px);
  font-weight: 700;
  line-height: 1.2;
  color: #1a1a1a;
  margin-bottom: 20px;
}
.am-heading-light { color: #f0ece6; }

/* ---------- About ---------- */
.am-about {
  padding: 110px 0 100px;
  background: #fff;
}
.am-about-top {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 50px;
}
.am-divider-line {
  width: 60px;
  height: 3px;
  background: #6b9080;
  margin: 0 auto 28px;
  border-radius: 2px;
}
.am-about-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
}
.am-about-col p {
  font-size: 17px;
  line-height: 1.8;
  color: #444;
}

/* ---------- Core Values ---------- */
.am-values {
  padding: 100px 0;
  background: #faf7f2;
}
.am-values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.am-value-card {
  background: #fff;
  border: 1px solid #e8e2da;
  border-radius: 12px;
  padding: 44px 36px;
  text-align: center;
  transition: transform 0.35s, box-shadow 0.35s;
}
.am-value-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 36px rgba(0,0,0,0.06);
}
.am-value-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 72px;
  height: 72px;
  background: rgba(107,144,128,0.1);
  border-radius: 50%;
  color: #6b9080;
  margin-bottom: 24px;
}
.am-value-name {
  font-family: 'Poppins', sans-serif;
  font-size: 20px;
  font-weight: 700;
  color: #1a1a1a;
  margin-bottom: 14px;
}
.am-value-desc {
  font-size: 15px;
  line-height: 1.75;
  color: #555;
}

/* ---------- Ministry Programs ---------- */
.am-programs {
  padding: 110px 0;
  background: #2c3e50;
}
.am-programs .am-eyebrow,
.am-programs .am-section-heading {
  text-align: center;
}
.am-programs-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
  margin-top: 50px;
}
.am-program-card {
  background: #34495e;
  overflow: hidden;
  transition: transform 0.35s, box-shadow 0.35s;
}
.am-program-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(0,0,0,0.2);
}
.am-program-img {
  height: 220px;
  overflow: hidden;
}
.am-program-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}
.am-program-card:hover .am-program-img img {
  transform: scale(1.05);
}
.am-program-body {
  padding: 32px 30px 36px;
}
.am-program-body h3 {
  font-family: 'Poppins', sans-serif;
  font-size: 20px;
  font-weight: 700;
  color: #f0ece6;
  margin-bottom: 12px;
}
.am-program-body p {
  font-size: 15px;
  line-height: 1.75;
  color: rgba(240,236,230,0.7);
  margin-bottom: 20px;
}
.am-link-arrow {
  font-family: 'Source Sans 3', sans-serif;
  font-size: 14px;
  font-weight: 600;
  color: #6b9080;
  letter-spacing: 0.3px;
  transition: color 0.3s;
}
.am-link-arrow:hover { color: #8ab8a4; }

/* ---------- Impact Numbers ---------- */
.am-impact {
  padding: 90px 0;
  background: #faf7f2;
}
.am-impact-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  text-align: center;
}
.am-impact-item { padding: 20px 0; }
.am-impact-number {
  display: block;
  font-family: 'Poppins', sans-serif;
  font-size: clamp(36px, 4vw, 54px);
  font-weight: 800;
  color: #6b9080;
  line-height: 1.1;
  margin-bottom: 8px;
}
.am-impact-label {
  font-size: 15px;
  font-weight: 500;
  color: #555;
  letter-spacing: 0.5px;
}

/* ---------- Testimony ---------- */
.am-testimony {
  padding: 110px 0;
  background: #fff;
}
.am-testimony-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.am-testimony-img {
  border-radius: 12px;
  overflow: hidden;
}
.am-testimony-img img {
  width: 100%;
  height: 420px;
  object-fit: cover;
}
.am-testimony-content { position: relative; }
.am-quote-icon {
  color: #6b9080;
  margin-bottom: 20px;
}
.am-blockquote {
  font-family: 'Source Sans 3', sans-serif;
  font-size: 19px;
  font-style: italic;
  line-height: 1.8;
  color: #333;
  margin-bottom: 28px;
}
.am-testimony-author strong {
  display: block;
  font-family: 'Poppins', sans-serif;
  font-size: 16px;
  font-weight: 700;
  color: #1a1a1a;
}
.am-testimony-author span {
  font-size: 14px;
  color: #6b9080;
  font-weight: 500;
}

/* ---------- Events ---------- */
.am-events {
  padding: 100px 0;
  background: #faf7f2;
}
.am-events .am-eyebrow,
.am-events .am-section-heading {
  text-align: center;
}
.am-events-grid {
  display: flex;
  flex-direction: column;
  gap: 20px;
  max-width: 800px;
  margin: 48px auto 0;
}
.am-event-card {
  display: flex;
  align-items: flex-start;
  gap: 28px;
  background: #fff;
  border: 1px solid #e8e2da;
  border-radius: 10px;
  padding: 30px 32px;
  transition: transform 0.3s, box-shadow 0.3s;
}
.am-event-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.05);
}
.am-event-date {
  flex-shrink: 0;
  width: 64px;
  text-align: center;
  padding-top: 2px;
}
.am-event-month {
  display: block;
  font-family: 'Source Sans 3', sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #6b9080;
  margin-bottom: 2px;
}
.am-event-day {
  display: block;
  font-family: 'Poppins', sans-serif;
  font-size: 32px;
  font-weight: 800;
  color: #6b9080;
  line-height: 1;
}
.am-event-title {
  font-family: 'Poppins', sans-serif;
  font-size: 18px;
  font-weight: 700;
  color: #1a1a1a;
  margin-bottom: 4px;
}
.am-event-meta {
  font-size: 13px;
  color: #888;
  margin-bottom: 8px;
}
.am-event-desc {
  font-size: 15px;
  line-height: 1.7;
  color: #555;
}

/* ---------- CTA ---------- */
.am-cta {
  padding: 100px 0;
  background: #6b9080;
  text-align: center;
}
.am-cta-content { max-width: 620px; margin: 0 auto; }
.am-cta-heading {
  font-family: 'Poppins', sans-serif;
  font-size: clamp(28px, 3.5vw, 40px);
  font-weight: 700;
  color: #fff;
  margin-bottom: 18px;
}
.am-cta-sub {
  font-size: 17px;
  line-height: 1.8;
  color: rgba(255,255,255,0.85);
  margin-bottom: 36px;
}
.am-cta-btns {
  display: flex;
  gap: 20px;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
}

/* ---------- Footer ---------- */
.am-footer {
  background: #2c3e50;
  padding: 72px 0 0;
}
.am-footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 56px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.am-footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'Poppins', sans-serif;
  font-size: 18px;
  font-weight: 700;
  color: #f0ece6;
  margin-bottom: 16px;
}
.am-footer-logo svg { color: #6b9080; }
.am-footer-brand p {
  font-size: 14px;
  line-height: 1.7;
  color: rgba(240,236,230,0.55);
  max-width: 300px;
}
.am-footer-links h4,
.am-footer-connect h4 {
  font-family: 'Poppins', sans-serif;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: #f0ece6;
  margin-bottom: 20px;
}
.am-footer-links li,
.am-footer-connect li {
  margin-bottom: 10px;
}
.am-footer-links a,
.am-footer-connect li {
  font-size: 14px;
  color: rgba(240,236,230,0.55);
  transition: color 0.3s;
}
.am-footer-links a:hover { color: #6b9080; }
.am-footer-connect a {
  color: rgba(240,236,230,0.55);
  transition: color 0.3s;
}
.am-footer-connect a:hover { color: #6b9080; }

.am-footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 0;
}
.am-footer-bottom p {
  font-size: 13px;
  color: rgba(240,236,230,0.35);
}
.am-social {
  display: flex;
  gap: 16px;
}
.am-social a {
  color: rgba(240,236,230,0.4);
  transition: color 0.3s;
}
.am-social a:hover { color: #6b9080; }

/* ========================================
   RESPONSIVE BREAKPOINTS
   ======================================== */

/* ---------- 1024px ---------- */
@media (max-width: 1024px) {
  .am-nav-links { gap: 24px; }
  .am-programs-grid { gap: 24px; }
  .am-testimony-grid { gap: 40px; }
  .am-footer-grid { grid-template-columns: 1.2fr 1fr 1fr; gap: 36px; }
}

/* ---------- 768px ---------- */
@media (max-width: 768px) {
  .am-nav-links { display: none; }
  .am-hamburger { display: block; }

  .am-hero-content { padding: 120px 20px 80px; }
  .am-hero-heading { font-size: 36px; }
  .am-hero-sub { font-size: 16px; }

  .am-about { padding: 80px 0; }
  .am-about-columns { grid-template-columns: 1fr; gap: 24px; }

  .am-values-grid { grid-template-columns: 1fr; max-width: 420px; margin: 0 auto; }

  .am-programs { padding: 80px 0; }
  .am-programs-grid { grid-template-columns: 1fr; max-width: 520px; margin: 50px auto 0; }

  .am-impact-grid { grid-template-columns: repeat(2, 1fr); gap: 24px; }

  .am-testimony { padding: 80px 0; }
  .am-testimony-grid { grid-template-columns: 1fr; gap: 36px; }
  .am-testimony-img img { height: 300px; }

  .am-events { padding: 80px 0; }

  .am-cta { padding: 80px 0; }

  .am-footer-grid { grid-template-columns: 1fr; gap: 36px; }
  .am-footer-bottom { flex-direction: column; gap: 16px; text-align: center; }
}

/* ---------- 480px ---------- */
@media (max-width: 480px) {
  body { font-size: 15px; }

  .am-hero-content { padding: 110px 16px 60px; }
  .am-hero-heading { font-size: 30px; }
  .am-hero-btns { flex-direction: column; align-items: center; }
  .am-btn { width: 100%; max-width: 280px; text-align: center; }

  .am-about { padding: 64px 0; }
  .am-section-heading { font-size: 26px; }

  .am-value-card { padding: 32px 24px; }
  .am-values { padding: 64px 0; }

  .am-programs { padding: 64px 0; }
  .am-program-img { height: 180px; }
  .am-program-body { padding: 24px 20px 28px; }

  .am-impact { padding: 64px 0; }
  .am-impact-grid { grid-template-columns: 1fr 1fr; gap: 16px; }
  .am-impact-number { font-size: 36px; }

  .am-testimony { padding: 64px 0; }
  .am-testimony-img img { height: 240px; }
  .am-blockquote { font-size: 16px; }

  .am-event-card { flex-direction: column; gap: 16px; padding: 24px; }
  .am-event-date { width: auto; text-align: left; display: flex; align-items: baseline; gap: 8px; }
  .am-event-day { font-size: 26px; }

  .am-cta { padding: 64px 0; }
  .am-cta-btns { flex-direction: column; align-items: center; }

  .am-footer { padding: 56px 0 0; }
}
