/* =====================================================================
   ACTS Foundation CMS - Front-end Theme
   Modern · Corporate · Religious
   ===================================================================== */

:root {
  --navy:        #0e2148;
  --navy-800:    #14295c;
  --navy-700:    #1c3670;
  --gold:        #c9a227;
  --gold-light:  #e3c766;
  --cream:       #faf7f0;
  --ink:         #1f2733;
  --muted:       #64748b;
  --line:        #e6e8ee;
  --radius:      14px;
  --shadow-sm:   0 2px 10px rgba(14,33,72,.06);
  --shadow:      0 12px 40px rgba(14,33,72,.12);
  --font-head:   'Playfair Display', Georgia, 'Times New Roman', serif;
  --font-body:   'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: #fff;
  line-height: 1.7;
  font-size: 16px;
}
h1,h2,h3,h4,h5 { font-family: var(--font-head); color: var(--navy); font-weight: 700; line-height: 1.2; }
a { color: var(--navy-700); text-decoration: none; transition: color .2s; }
a:hover { color: var(--gold); }
img { max-width: 100%; height: auto; }
.container { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 20px; }

/* ---- Buttons ---- */
.btn {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .8rem 1.6rem; border-radius: 50px; font-weight: 600;
  border: 2px solid transparent; cursor: pointer; transition: all .25s;
  font-size: .95rem; letter-spacing: .01em; text-align: center;
}
.btn-gold { background: var(--gold); color: #fff; }
.btn-gold:hover { background: #b3901f; color: #fff; transform: translateY(-2px); box-shadow: var(--shadow); }
.btn-navy { background: var(--navy); color: #fff; }
.btn-navy:hover { background: var(--navy-700); color: #fff; transform: translateY(-2px); }
.btn-outline { border-color: #fff; color: #fff; background: transparent; }
.btn-outline:hover { background: #fff; color: var(--navy); }
.btn-outline-navy { border-color: var(--navy); color: var(--navy); background: transparent; }
.btn-outline-navy:hover { background: var(--navy); color: #fff; }

/* ---- Top bar ---- */
.topbar { background: var(--navy); color: #cdd6ea; font-size: .85rem; }
.topbar .container { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: .5rem; padding-top: .5rem; padding-bottom: .5rem; }
.topbar a, .topbar .tb-loc { color: #cdd6ea; display: inline-flex; align-items: center; gap: .4rem; }
.topbar a:hover { color: var(--gold-light); }
.topbar .ic { flex-shrink: 0; opacity: .85; }
.topbar .tb-info { display: flex; gap: 1.4rem; flex-wrap: wrap; align-items: center; }
.topbar .tb-social { display: flex; gap: .4rem; }
.topbar .tb-social a {
  width: 30px; height: 30px; border-radius: 50%; justify-content: center;
  background: rgba(255,255,255,.08); transition: background .2s, color .2s, transform .2s;
}
.topbar .tb-social a:hover { background: var(--gold); color: #fff; transform: translateY(-2px); }

/* ---- Header / Nav ---- */
.site-header { position: sticky; top: 0; z-index: 1000; background: #fff; box-shadow: var(--shadow-sm); }
.navbar { display: flex; align-items: center; justify-content: space-between; padding: .6rem 0; gap: 1rem; }
.brand { display: flex; align-items: center; gap: .7rem; }
.brand img { height: 52px; width: auto; }
.brand .bt { display: flex; flex-direction: column; line-height: 1.05; }
.brand .bt strong { font-family: var(--font-head); color: var(--navy); font-size: 1.35rem; letter-spacing: .02em; }
.brand .bt span { font-size: .68rem; color: var(--gold); letter-spacing: .18em; text-transform: uppercase; }
.nav-links { display: flex; align-items: center; gap: .1rem; list-style: none; margin: 0; padding: 0; }
.nav-links > li { position: relative; }
.nav-links > li > a {
  display: flex; align-items: center; gap: .25rem; padding: .6rem .85rem; color: var(--navy);
  font-weight: 600; font-size: .92rem; border-radius: 8px; white-space: nowrap;
}
.nav-links > li > a .ic-chevron { transition: transform .25s; opacity: .7; }
.nav-links > li:hover > a .ic-chevron { transform: rotate(180deg); }
.nav-links > li > a:hover, .nav-links > li.active > a { color: var(--gold); background: var(--cream); }
/* Active underline accent */
.nav-links > li:not(.nav-cta) > a::after {
  content: ""; position: absolute; left: .85rem; right: .85rem; bottom: .35rem; height: 2px;
  background: var(--gold); border-radius: 2px; transform: scaleX(0); transform-origin: left; transition: transform .25s;
}
.nav-links > li.active:not(.nav-cta) > a::after { transform: scaleX(1); }
.nav-cta { margin-left: .4rem; }
.nav-cta .btn { padding: .55rem 1.2rem; }
.nav-head, .mobile-only { display: none; }
.dropdown-menu-c {
  position: absolute; top: 100%; left: 0; min-width: 230px; background: #fff;
  box-shadow: var(--shadow); border-radius: 12px; padding: .5rem; list-style: none; margin: .4rem 0 0;
  opacity: 0; visibility: hidden; transform: translateY(10px); transition: all .22s; border-top: 3px solid var(--gold);
}
.nav-links > li:hover .dropdown-menu-c { opacity: 1; visibility: visible; transform: translateY(0); }
.dropdown-menu-c a { display: block; padding: .6rem .85rem; border-radius: 8px; font-size: .9rem; color: var(--ink); font-weight: 500; }
.dropdown-menu-c a:hover { background: var(--cream); color: var(--gold); padding-left: 1.1rem; }

/* Hamburger */
.nav-toggle {
  display: none; flex-direction: column; justify-content: center; gap: 5px;
  background: var(--navy); border: 0; width: 46px; height: 42px; border-radius: 10px; cursor: pointer; padding: 0 12px;
}
.nav-toggle span { display: block; height: 2px; width: 100%; background: #fff; border-radius: 2px; transition: all .3s; }
.nav-toggle.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.active span:nth-child(2) { opacity: 0; }
.nav-toggle.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.nav-close { background: none; border: 0; font-size: 1.8rem; line-height: 1; color: var(--navy); cursor: pointer; }
.nav-head { justify-content: space-between; align-items: center; padding: 0 .4rem 1rem !important; border-bottom: 1px solid var(--line); margin-bottom: .5rem; }
.nav-head span { font-family: var(--font-head); font-size: 1.2rem; color: var(--navy); font-weight: 700; }

/* ---- Hero slider ---- */
.hero { position: relative; overflow: hidden; }
.slides { position: relative; height: 78vh; min-height: 480px; max-height: 720px; }
.slide {
  position: absolute; inset: 0; opacity: 0; transition: opacity 1s ease; display: flex; align-items: center;
  background-size: cover; background-position: center;
}
.slide.active { opacity: 1; }
.slide::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(14,33,72,.86), rgba(14,33,72,.45)); }
.slide .container { position: relative; z-index: 2; }
.slide-content { max-width: 640px; color: #fff; }
.slide-content .kicker { color: var(--gold-light); letter-spacing: .25em; text-transform: uppercase; font-size: .8rem; font-weight: 600; }
.slide-content h1 { color: #fff; font-size: clamp(2.1rem, 5vw, 3.6rem); margin: .6rem 0 1rem; }
.slide-content p { font-size: 1.15rem; color: #e7ecf7; margin-bottom: 1.8rem; }
.slide-cta { display: flex; gap: 1rem; flex-wrap: wrap; }
.slider-dots { position: absolute; bottom: 22px; left: 50%; transform: translateX(-50%); display: flex; gap: .5rem; z-index: 3; }
.slider-dots button { width: 12px; height: 12px; border-radius: 50%; border: 2px solid #fff; background: transparent; cursor: pointer; padding: 0; }
.slider-dots button.active { background: var(--gold); border-color: var(--gold); }
.slider-arrow { position: absolute; top: 50%; transform: translateY(-50%); z-index: 3; background: rgba(255,255,255,.15); border: 1px solid rgba(255,255,255,.4); color: #fff; width: 48px; height: 48px; border-radius: 50%; font-size: 1.4rem; cursor: pointer; transition: all .2s; }
.slider-arrow:hover { background: var(--gold); border-color: var(--gold); }
.slider-arrow.prev { left: 20px; } .slider-arrow.next { right: 20px; }

/* ---- Verse strip ---- */
.verse-strip { background: var(--gold); color: var(--navy); text-align: center; padding: 1.6rem 0; }
.verse-strip p { font-family: var(--font-head); font-style: italic; font-size: 1.2rem; margin: 0; max-width: 900px; margin: 0 auto; }
.verse-strip .ref { display: block; font-style: normal; font-weight: 700; margin-top: .5rem; letter-spacing: .05em; text-transform: uppercase; font-size: .8rem; }

/* ---- Sections ---- */
.section { padding: 5rem 0; }
.section.alt { background: var(--cream); }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 3rem; }
.section-head .kicker { color: var(--gold); letter-spacing: .22em; text-transform: uppercase; font-size: .8rem; font-weight: 700; }
.section-head h2 { font-size: clamp(1.8rem, 3.5vw, 2.6rem); margin: .6rem 0 .8rem; }
.section-head h2::after { content: ""; display: block; width: 66px; height: 3px; background: var(--gold); margin: 1rem auto 0; border-radius: 3px; }
.section-head p { color: var(--muted); font-size: 1.05rem; }

/* ---- Grid & cards ---- */
.grid { display: grid; gap: 1.8rem; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm);
  transition: transform .28s, box-shadow .28s; display: flex; flex-direction: column; border: 1px solid var(--line);
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.card .thumb { aspect-ratio: 16/10; overflow: hidden; background: var(--cream); }
.card .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.card:hover .thumb img { transform: scale(1.06); }
.card .card-body { padding: 1.4rem; display: flex; flex-direction: column; flex: 1; }
.card .card-body h3 { font-size: 1.2rem; margin: 0 0 .5rem; }
.card .card-body p { color: var(--muted); font-size: .95rem; margin: 0 0 1rem; }
.card .meta { font-size: .82rem; color: var(--gold); font-weight: 600; text-transform: uppercase; letter-spacing: .05em; margin-bottom: .5rem; }
.card .card-foot { margin-top: auto; }
.readmore { color: var(--navy-700); font-weight: 600; font-size: .9rem; }
.readmore:hover { color: var(--gold); }

/* ---- Feature icons row ---- */
.feature { text-align: center; padding: 2rem 1.4rem; background: #fff; border-radius: var(--radius); border: 1px solid var(--line); transition: all .28s; }
.feature:hover { border-color: var(--gold); box-shadow: var(--shadow); transform: translateY(-4px); }
.feature .fi { width: 68px; height: 68px; margin: 0 auto 1.1rem; border-radius: 50%; background: var(--cream); display: grid; place-items: center; color: var(--gold); }
.feature .fi svg { width: 32px; height: 32px; }
.feature h3 { font-size: 1.15rem; margin: 0 0 .5rem; }
.feature p { color: var(--muted); font-size: .93rem; margin: 0; }

/* ---- About split ---- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; }
.split .media img { border-radius: var(--radius); box-shadow: var(--shadow); }
.split .media { position: relative; }
.split .badge-float { position: absolute; bottom: -22px; right: -22px; background: var(--gold); color: #fff; padding: 1.2rem 1.6rem; border-radius: var(--radius); box-shadow: var(--shadow); text-align: center; }
.split .badge-float strong { font-family: var(--font-head); font-size: 2rem; display: block; }
.lead { font-size: 1.1rem; color: var(--muted); }

/* ---- CTA band ---- */
.cta-band { background: linear-gradient(rgba(14,33,72,.9), rgba(14,33,72,.9)), var(--navy); color: #fff; text-align: center; padding: 4.5rem 0; }
.cta-band h2 { color: #fff; font-size: clamp(1.8rem, 3.5vw, 2.6rem); }
.cta-band p { color: #cdd6ea; max-width: 620px; margin: .8rem auto 2rem; font-size: 1.1rem; }

/* ---- Page hero (inner pages) ---- */
.page-hero { position: relative; background-size: cover; background-position: center; padding: 5.5rem 0 4.5rem; color: #fff; text-align: center; }
.page-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(rgba(14,33,72,.82), rgba(14,33,72,.9)); }
.page-hero .container { position: relative; z-index: 2; }
.page-hero h1 { color: #fff; font-size: clamp(2rem, 4.5vw, 3.2rem); }
.breadcrumb-c { color: #cdd6ea; font-size: .9rem; margin-top: .6rem; }
.breadcrumb-c a { color: var(--gold-light); }

/* ---- Content prose ---- */
.prose { max-width: 820px; margin: 0 auto; }
.prose h3 { margin-top: 2rem; }
.prose ul { padding-left: 1.2rem; }
.prose li { margin-bottom: .4rem; }
.prose img { border-radius: var(--radius); margin: 1.2rem 0; }
.prose blockquote { border-left: 4px solid var(--gold); background: var(--cream); padding: 1rem 1.4rem; margin: 1.4rem 0; font-style: italic; border-radius: 0 8px 8px 0; }

/* ---- Forms ---- */
.form-card { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow-sm); padding: 2.2rem; border: 1px solid var(--line); }
.form-group { margin-bottom: 1.2rem; }
.form-group label { display: block; font-weight: 600; margin-bottom: .4rem; color: var(--navy); font-size: .92rem; }
.form-control {
  width: 100%; padding: .8rem 1rem; border: 1.5px solid var(--line); border-radius: 10px;
  font-family: inherit; font-size: .96rem; transition: border-color .2s, box-shadow .2s; background: #fff;
}
.form-control:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(201,162,39,.15); }
textarea.form-control { resize: vertical; min-height: 130px; }
.form-check { display: flex; align-items: center; gap: .5rem; }

/* ---- Alerts ---- */
.alert { padding: .9rem 1.2rem; border-radius: 10px; margin-bottom: 1rem; font-size: .93rem; border: 1px solid transparent; }
.alert-success { background: #e8f6ee; color: #1a7a45; border-color: #b7e3c8; }
.alert-danger  { background: #fdecec; color: #b4232a; border-color: #f5c2c4; }
.alert-info    { background: #e8f0fb; color: #1f4e9e; border-color: #bcd4f4; }

/* ---- Gallery ---- */
.gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.gallery-grid a { display: block; border-radius: 10px; overflow: hidden; aspect-ratio: 4/3; }
.gallery-grid img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.gallery-grid a:hover img { transform: scale(1.08); }

/* ---- Testimonials ---- */
.tcard { background: #fff; border-radius: var(--radius); padding: 2rem; box-shadow: var(--shadow-sm); border: 1px solid var(--line); position: relative; }
.tcard .quote { color: var(--gold); font-size: 3rem; font-family: var(--font-head); line-height: 1; }
.tcard p { color: var(--ink); font-style: italic; }
.tcard .who { display: flex; align-items: center; gap: .8rem; margin-top: 1rem; }
.tcard .who .av { width: 46px; height: 46px; border-radius: 50%; background: var(--navy); color: #fff; display: grid; place-items: center; font-weight: 700; }
.tcard .who strong { display: block; color: var(--navy); }
.tcard .who span { font-size: .82rem; color: var(--muted); }

/* ---- Pre-footer CTA ---- */
.footer-cta { background: var(--gold); }
.footer-cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap; padding: 2rem 0; }
.footer-cta h3 { color: var(--navy); font-size: 1.6rem; margin: 0; }
.footer-cta p { color: #5a4a12; margin: .3rem 0 0; font-weight: 500; }
.footer-cta-btns { display: flex; gap: .8rem; flex-wrap: wrap; }
.footer-cta .btn-outline { border-color: var(--navy); color: var(--navy); }
.footer-cta .btn-outline:hover { background: var(--navy); color: #fff; }

/* ---- Footer ---- */
.site-footer { background: var(--navy); color: #b9c4dd; padding: 4rem 0 0; }
.site-footer h4 { color: #fff; font-size: 1.05rem; margin-bottom: 1.2rem; position: relative; padding-bottom: .6rem; }
.site-footer h4::after { content: ""; position: absolute; left: 0; bottom: 0; width: 40px; height: 2px; background: var(--gold); }
.footer-grid { display: grid; grid-template-columns: 1.8fr 1fr 1fr 1.6fr; gap: 2.5rem; }
.site-footer a { color: #b9c4dd; transition: color .2s; }
.site-footer a:hover { color: var(--gold-light); }

.footer-brand { display: flex; align-items: center; gap: .7rem; margin-bottom: 1rem; }
.footer-brand img { height: 52px; width: auto; }
.footer-brand span { display: flex; flex-direction: column; line-height: 1.1; }
.footer-brand strong { color: #fff; font-family: var(--font-head); font-size: 1.25rem; }
.footer-brand em { color: var(--gold-light); font-style: normal; font-size: .68rem; letter-spacing: .18em; text-transform: uppercase; }
.footer-about p { font-size: .93rem; line-height: 1.75; }

.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: .55rem; font-size: .93rem; }
.footer-links a { display: inline-flex; align-items: center; }
.footer-links a::before { content: "\203A"; color: var(--gold); margin-right: .5rem; font-weight: 700; transition: margin .2s; }
.footer-links a:hover::before { margin-right: .75rem; }

.footer-contact { list-style: none; padding: 0; margin: 0; }
.footer-contact li { display: flex; gap: .7rem; margin-bottom: .85rem; font-size: .92rem; align-items: flex-start; line-height: 1.5; }
.footer-contact .ic { flex-shrink: 0; color: var(--gold); margin-top: 2px; }
.footer-news-text { font-size: .88rem; margin: 0 0 .7rem; }
.newsletter-form { display: flex; gap: .5rem; }
.newsletter-form input { flex: 1; min-width: 0; padding: .7rem .9rem; border-radius: 8px; border: 1px solid rgba(255,255,255,.2); background: rgba(255,255,255,.08); color: #fff; font-family: inherit; font-size: .9rem; }
.newsletter-form input::placeholder { color: #93a1c2; }
.newsletter-form input:focus { outline: none; border-color: var(--gold); }
.newsletter-form .btn { flex-shrink: 0; padding: .6rem 1rem; }

.footer-social { display: flex; gap: .6rem; margin-top: 1.3rem; }
.footer-social a { width: 42px; height: 42px; border-radius: 50%; background: rgba(255,255,255,.08); display: grid; place-items: center; transition: all .2s; }
.footer-social a:hover { background: var(--gold); color: #fff; transform: translateY(-3px); }

.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); margin-top: 3rem; padding: 1.4rem 0; font-size: .86rem; color: #8a99bd; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: .6rem; }
.footer-bottom-links { display: flex; gap: 1.2rem; }

/* ---- Utilities ---- */
.text-center { text-align: center; }
.mt-1 { margin-top: .5rem; } .mt-2 { margin-top: 1rem; } .mt-3 { margin-top: 1.5rem; }
.mb-0 { margin-bottom: 0; }
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s, transform .7s; }
.reveal.in { opacity: 1; transform: none; }

/* ---- Responsive ---- */
@media (max-width: 1100px) {
  .nav-links > li > a { padding: .6rem .6rem; font-size: .88rem; }
  .brand .bt strong { font-size: 1.2rem; }
}
@media (max-width: 992px) {
  .grid-4 { grid-template-columns: repeat(2,1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .split { grid-template-columns: 1fr; gap: 2rem; }
  .split .badge-float { right: 16px; bottom: -16px; }
  .gallery-grid { grid-template-columns: repeat(2,1fr); }
  .section { padding: 3.5rem 0; }
}
@media (max-width: 768px) {
  body { font-size: 15.5px; }
  .mobile-only { display: flex; }
  .nav-toggle { display: flex; }
  .nav-links {
    position: fixed; top: 0; right: -320px; width: 300px; max-width: 85vw; height: 100vh; height: 100dvh; background: #fff;
    flex-direction: column; align-items: stretch; padding: 1.2rem 1rem 2rem; box-shadow: var(--shadow);
    transition: right .3s ease; overflow-y: auto; gap: 0; z-index: 1001;
  }
  .nav-links.open { right: 0; }
  .nav-links > li > a { padding: .9rem 1rem; border-bottom: 1px solid var(--line); font-size: .98rem; justify-content: space-between; }
  .nav-links > li > a::after { display: none; }
  .nav-links > li:hover > a .ic-chevron { transform: none; }
  .nav-links > li.open-sub > a .ic-chevron { transform: rotate(180deg); }
  .dropdown-menu-c { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; padding: 0 0 .4rem .6rem; border-top: 0; margin: 0; display: none; }
  .nav-links > li.open-sub .dropdown-menu-c { display: block; }
  .dropdown-menu-c a { border-bottom: 1px solid var(--line); }
  .nav-cta { margin: 1rem 0 0; }
  .nav-cta .btn { width: 100%; justify-content: center; }
  .nav-overlay { display: none; position: fixed; inset: 0; background: rgba(0,0,0,.45); z-index: 1000; }
  .nav-overlay.show { display: block; }
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .topbar .tb-info { gap: .9rem; font-size: .78rem; }
  .topbar .tb-loc { display: none; }
  .slides { height: 62vh; min-height: 420px; }
  .footer-cta-inner { flex-direction: column; text-align: center; align-items: center; }
  .footer-cta-btns { justify-content: center; }
  .section-head { margin-bottom: 2rem; }
}
@media (max-width: 620px) {
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; text-align: left; }
  .gallery-grid { grid-template-columns: repeat(2,1fr); gap: .6rem; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .slide-cta { flex-direction: column; }
  .slide-cta .btn { width: 100%; justify-content: center; }
  .btn { padding: .75rem 1.3rem; }
  .verse-strip p { font-size: 1.05rem; }
  .topbar .tb-info a span { display: none; }
  .topbar .tb-info { gap: .6rem; }
  .topbar .tb-info a { width: 30px; height: 30px; border-radius: 50%; background: rgba(255,255,255,.08); justify-content: center; }
}
@media (max-width: 400px) {
  .brand .bt span { display: none; }
  .brand img { height: 44px; }
  .gallery-grid { grid-template-columns: 1fr 1fr; }
}
