/**
 * Sanctuary of God Seremban — Custom Styles
 * Bootstrap 5 overrides and custom components
 */
/* =========================================================
   1. CSS Custom Properties (Design Tokens)
   ========================================================= */
:root {
  --sog-accent:       #f67d4c;
  --sog-accent-alt:   #f69a4c;
  --sog-navy:         #071b38;
  --sog-navy-mid:     #0e2341;
  --sog-body:         #374352;
  --sog-muted:        #697380;
  --sog-light:        #dadde4;
  --sog-bg:           #edeff3;
  --sog-white:        #ffffff;
  --sog-btn-bg:       linear-gradient(135deg, #f67d4c 0%, #f69a4c 100%);
  --sog-btn-bg-hover: linear-gradient(135deg, #f69a4c 0%, #f67d4c 99%);
  --sog-font:         'Jost', sans-serif;
  --sog-max-width:    1290px;
  --sog-shadow-card:  0 15px 25px -7px rgba(0,0,0,.10);
  --sog-shadow-deep:  20px 20px 80px 0 rgba(43,35,34,.27);
}
/* =========================================================
   2. Base
   ========================================================= */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--sog-font);
  font-size: 17px;
  line-height: 1.6;
  color: var(--sog-navy-mid);
  background-color: var(--sog-bg);
}
h1,h2,h3,h4,h5,h6 {
  font-family: var(--sog-font);
  font-weight: 600;
  color: var(--sog-navy);
}
h1 { font-size: clamp(2rem, 5vw, 3.125rem); line-height: 1.3; }
h2 { font-size: clamp(1.75rem, 3vw, 2.125rem); line-height: 1.2; }
h3 { font-size: 1.375rem; line-height: 1.5; }
a { color: var(--sog-accent); text-decoration: none; }
a:hover { color: var(--sog-accent-alt); }
img { max-width: 100%; height: auto; display: block; }
/* =========================================================
   3. Utility Classes
   ========================================================= */
.text-accent   { color: var(--sog-accent) !important; }
.text-navy     { color: var(--sog-navy) !important; }
.text-muted-sog{ color: var(--sog-muted) !important; }
.bg-navy       { background-color: var(--sog-navy-mid) !important; }
.bg-sog        { background-color: var(--sog-bg) !important; }
.overline {
  font-size: .875rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
}
/* =========================================================
   4. Buttons
   ========================================================= */
.btn-sog {
  display: inline-block;
  padding: 14px 38px;
  background: var(--sog-btn-bg);
  color: var(--sog-white);
  border: none;
  border-radius: 4px;
  font-family: var(--sog-font);
  font-size: 1rem;
  font-weight: 500;
  text-transform: capitalize;
  cursor: pointer;
  transition: background .25s ease, box-shadow .25s ease;
}
.btn-sog:hover,
.btn-sog:focus {
  background: var(--sog-btn-bg-hover);
  color: var(--sog-white);
  box-shadow: var(--sog-shadow-card);
}
.btn-sog-outline {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: 14px 38px;
  border: 2px solid var(--sog-accent);
  color: var(--sog-navy);
  border-radius: 4px;
  font-family: var(--sog-font);
  font-size: .9375rem;
  font-weight: 500;
  background: transparent;
  transition: background .25s, color .25s, box-shadow .25s;
}
.btn-sog-outline:hover {
  background: var(--sog-accent);
  color: var(--sog-white);
  box-shadow: var(--sog-shadow-card);
}
/* =========================================================
   5. Navbar
   ========================================================= */
.sog-navbar {
  background: var(--sog-navy-mid);
  min-height: 90px;
  transition: background .3s ease;
}
.sog-navbar.is-transparent {
  background: transparent;
  position: absolute;
  top: 0; left: 0; right: 0;
  z-index: 100;
  border-bottom: 1px solid rgba(247,243,238,.15);
}
.sog-navbar .brand-logo {
  max-width: 200px;
  height: auto;
}
.sog-navbar .nav-link {
  color: var(--sog-white) !important;
  font-size: 1rem;
  font-weight: 500;
  padding: .5rem .75rem !important;
  transition: color .2s;
}
.sog-navbar .nav-link:hover,
.sog-navbar .nav-link.active {
  color: var(--sog-accent-alt) !important;
}
.sog-navbar .navbar-toggler {
  border-color: rgba(255,255,255,.5);
}
.sog-navbar .navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255,255,255,0.9%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}
/* Dropdown */
.sog-navbar .dropdown-menu {
  background: var(--sog-navy);
  border: none;
  border-radius: 0;
  box-shadow: 0 2px 13px rgba(0,0,0,.1);
  min-width: 200px;
  padding: 0;
}
.sog-navbar .dropdown-item {
  color: var(--sog-bg);
  font-size: 1rem;
  padding: 1em 1.25em;
  border-bottom: 1px solid rgba(255,255,255,.1);
}
.sog-navbar .dropdown-item:last-child { border-bottom: none; }
.sog-navbar .dropdown-item:hover,
.sog-navbar .dropdown-item:focus {
  background: var(--sog-navy-mid);
  color: var(--sog-white);
}
/* =========================================================
   6. Hero Section
   ========================================================= */
.hero-section {
  position: relative;
  background-image: url('../images/tajmia-loiacono-Zc4y1upPN00-unsplash-1.jpg');
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  min-height: 100vh;
  display: flex;
  align-items: center;
}
.hero-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(7, 27, 56, 0.80);
  z-index: 0;
}
.hero-section .container { position: relative; z-index: 1; }
.hero-section .hero-inner {
  padding-top: 110px;
  padding-bottom: 120px;
}
.hero-section .overline { color: rgba(255,255,255,.85); }
.hero-section h1 { color: var(--sog-white); font-size: clamp(2.5rem, 7vw, 5rem); }
.hero-section .hero-quote { color: rgba(255,255,255,.9); font-size: 1.0625rem; }
.hero-section .hero-img {
  border-radius: 6px;
  width: 100%;
  height: 100%;
  object-fit: cover;
  max-height: 500px;
}
.hero-swiper {
  overflow: hidden;
  border-radius: 6px;
  aspect-ratio: 1900 / 1267;
  max-height: 500px;
}
.hero-swiper .swiper-slide,
.hero-swiper .hero-img {
  height: 100%;
}
.hero-swiper .swiper-button-prev,
.hero-swiper .swiper-button-next {
  color: var(--sog-white);
}
.hero-swiper .swiper-button-prev::after,
.hero-swiper .swiper-button-next::after {
  font-size: 1.25rem;
  font-weight: 700;
}
.hero-swiper .swiper-pagination-bullet-active {
  background: var(--sog-accent);
}
@media (max-width: 991.98px) {
  .hero-section .hero-inner { padding-top: 150px; padding-bottom: 60px; }
  .hero-section h1 { font-size: 2.5rem; }
  .hero-section .hero-img { margin-top: 2rem; }
}
@media (max-width: 767.98px) {
  .hero-section .hero-inner { padding-top: 130px; padding-bottom: 50px; }
}
/* =========================================================
   7. Sunday Service Card
   ========================================================= */
.service-card-section {
  background: linear-gradient(260deg, var(--sog-bg) 0%, var(--sog-white) 100%);
  padding: 0 0 60px;
}
.service-card {
  background: var(--sog-white);
  border-radius: 10px;
  box-shadow: var(--sog-shadow-deep);
  overflow: hidden;
  margin-top: -90px;
  position: relative;
  z-index: 10;
}
.service-card .service-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  max-height: 220px;
  display: block;
}
.service-card-body { padding: 2rem 2.5rem; }
.service-card-body h2 { font-size: 1.5rem; margin-bottom: .375rem; }
.service-card-body .service-time { color: var(--sog-muted); font-size: .9375rem; margin-bottom: 1.25rem; }
.service-info-item {
  display: flex;
  align-items: center;
  gap: .6rem;
  color: var(--sog-body);
  font-size: .9375rem;
  margin-bottom: .5rem;
}
.service-info-item svg { color: var(--sog-accent); flex-shrink: 0; }
@media (max-width: 991.98px) {
  .service-card { margin-top: 30px; }
  .service-card-body { padding: 2rem; }
}
@media (max-width: 767.98px) {
  .service-card { margin-top: 0; }
}
/* =========================================================
   8. Events Section
   ========================================================= */
.events-header { padding: 60px 0 20px; }
.events-header .overline { color: var(--sog-muted); }
.events-header h2 { font-size: 2rem; margin-bottom: .5rem; }
.events-section {
  position: relative;
  background-image: url('../images/pencilsketchadjusted-1874885-1.png');
  background-size: cover;
  background-position: center;
  background-attachment: scroll;
  padding: 46px 0 60px;
}
.events-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(237,239,243,.72);
  z-index: 0;
}
.events-section .container { position: relative; z-index: 1; }
.event-card {
  background: var(--sog-white);
  border-radius: 6px;
  overflow: hidden;
  box-shadow: var(--sog-shadow-deep);
  height: 100%;
}
.event-badge {
  background: var(--sog-navy-mid);
  color: var(--sog-white);
  border-radius: 6px;
  padding: 1rem 1.25rem;
  position: absolute;
  top: 16px;
  left: 16px;
  z-index: 2;
  text-align: center;
  min-width: 70px;
  line-height: 1.1;
}
.event-badge .badge-day { font-size: 1.875rem; font-weight: 700; display: block; }
.event-badge .badge-label { font-size: .6875rem; letter-spacing: .06em; text-transform: uppercase; display: block; color: rgba(255,255,255,.8); }
.event-img-wrap { position: relative; overflow: hidden; aspect-ratio: 3/2; }
.event-img-wrap img { width: 100%; height: 100%; object-fit: cover; }
.event-card-body { padding: 1.25rem 1.5rem 1.5rem; }
.event-card-body h3 { font-size: 1.1875rem; margin-bottom: .875rem; color: var(--sog-navy); }
.event-meta {
  display: flex;
  align-items: flex-start;
  gap: .5rem;
  font-size: .875rem;
  color: var(--sog-body);
  margin-bottom: .4rem;
  line-height: 1.4;
}
.event-meta svg { color: var(--sog-accent); flex-shrink: 0; margin-top: 2px; }
@media (max-width: 767.98px) {
  .events-section { padding: 50px 0 60px; }
}
/* =========================================================
   9. All About Jesus Section
   ========================================================= */
.about-jesus-section { padding: 90px 0 60px; }
.about-jesus-section .section-intro { max-width: 500px; margin: 0 auto 3.5rem; }
.about-jesus-section .section-intro h2 { font-size: 2rem; margin-bottom: 1rem; }
.ministry-card { margin-bottom: 2rem; }
.ministry-card img {
  width: 100%;
  aspect-ratio: 3/2;
  object-fit: cover;
  border-radius: 6px;
  margin-bottom: .875rem;
  box-shadow: var(--sog-shadow-deep);
}
.ministry-card h3 { font-size: 1.25rem; text-align: center; color: var(--sog-navy); }
/* =========================================================
   10. Map Section
   ========================================================= */
.map-section {
  padding: 0;
  background: rgba(237,239,243,.72);
}
.map-section iframe {
  display: block;
  width: 100%;
  height: 450px;
  border: 0;
  filter: sepia(30%);
}
/* =========================================================
   11. Footer
   ========================================================= */
.sog-footer-middle {
  background: var(--sog-navy-mid);
  color: var(--sog-white);
  padding: 60px 0;
  border-bottom: 1px solid var(--sog-body);
}
.sog-footer-middle a {
  color: var(--sog-white);
  transition: color .2s;
}
.sog-footer-middle a:hover { color: var(--sog-accent); }
.sog-footer-middle .footer-logo { max-width: 120px; margin-bottom: 1.25rem; }
.sog-footer-middle .footer-address { font-size: .9375rem; line-height: 1.7; }
.sog-footer-middle .widget-title {
  font-size: 1.0625rem;
  font-weight: 600;
  text-transform: capitalize;
  color: var(--sog-white);
  margin-bottom: 1.25rem;
}
.sog-footer-middle .footer-nav { list-style: none; padding: 0; margin: 0; }
.sog-footer-middle .footer-nav li { border-bottom: 1px solid rgba(255,255,255,.08); }
.sog-footer-middle .footer-nav li:last-child { border-bottom: none; }
.sog-footer-middle .footer-nav a { display: block; padding: .45rem 0; font-size: .9375rem; }
.sog-social-links { display: flex; gap: .5rem; flex-wrap: wrap; margin-top: .5rem; }
.sog-social-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 4px;
  background: rgba(255,255,255,.1);
  color: var(--sog-white);
  transition: background .2s;
}
.sog-social-btn:hover { background: var(--sog-accent); color: var(--sog-white); }
.sog-social-btn svg { width: 18px; height: 18px; fill: currentColor; }
.sog-footer-bottom {
  background: var(--sog-navy-mid);
  padding: 20px 0;
  font-size: .9rem;
  color: rgba(255,255,255,.75);
}
/* =========================================================
   12. Mobile Offcanvas nav overrides
   ========================================================= */
.offcanvas.sog-offcanvas {
  background: var(--sog-navy-mid);
  color: var(--sog-white);
}
.offcanvas.sog-offcanvas .btn-close { filter: invert(1); }
.offcanvas.sog-offcanvas .nav-link {
  color: var(--sog-bg);
  font-size: 1.0625rem;
  padding: .85rem 0;
  border-bottom: 1px solid rgba(255,255,255,.1);
}
.offcanvas.sog-offcanvas .nav-link:last-child { border-bottom: none; }
.offcanvas.sog-offcanvas .nav-link:hover,
.offcanvas.sog-offcanvas .nav-link.active { color: var(--sog-accent); }
/* =========================================================
   13. Scroll-spy active state
   ========================================================= */
.sog-navbar.scrolled {
  background: var(--sog-navy-mid) !important;
  box-shadow: 0 2px 12px rgba(0,0,0,.25);
}
/* =========================================================
   14. Misc helpers
   ========================================================= */
.section-divider { border: none; border-top: 1px solid var(--sog-light); margin: 0; }
.rounded-sog { border-radius: 6px; }
/* =========================================================
   15. Inner-Page Hero Banner
   ========================================================= */
.page-hero {
  position: relative;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  min-height: 300px;
  display: flex;
  align-items: center;
  padding-top: 150px;
  padding-bottom: 80px;
}
.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(7, 27, 56, 0.90);
  z-index: 0;
}
.page-hero .container { position: relative; z-index: 1; }
.page-hero h1 { color: var(--sog-white); }
.page-hero .page-hero-subtitle {
  color: rgba(255,255,255,.85);
  font-size: 1.0625rem;
  max-width: 600px;
  margin-top: .75rem;
}
@media (max-width: 767.98px) {
  .page-hero { padding-top: 130px; padding-bottom: 60px; }
  .page-hero h1 { font-size: 2rem; }
}
/* =========================================================
   16. About Page
   ========================================================= */
.about-content-section { padding: 80px 0 60px; }
.about-content-section p { color: var(--sog-body); line-height: 1.8; }
.about-content-section .about-img {
  width: 100%;
  border-radius: 6px;
  box-shadow: var(--sog-shadow-deep);
}
.next-steps-section {
  padding: 80px 0 100px;
  background: var(--sog-bg);
}
.step-card { text-align: center; }
.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  background: var(--sog-accent);
  color: var(--sog-white);
  border-radius: 50%;
  font-size: 1.125rem;
  font-weight: 700;
  margin: 0 auto 1.25rem;
}
.step-card img {
  width: 100%;
  aspect-ratio: 3/2;
  object-fit: cover;
  border-radius: 6px;
  margin-bottom: 1.25rem;
  box-shadow: var(--sog-shadow-deep);
}
.step-card h3 { font-size: 1.25rem; }
/* =========================================================
   17. Contact Page
   ========================================================= */
.contact-section {
  position: relative;
  background-image: url('../images/pencilsketchadjusted-1874885-1.png');
  background-size: cover;
  background-position: center;
  padding: 80px 0 100px;
}
.contact-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(237,239,243,.70);
  z-index: 0;
}
.contact-section .container { position: relative; z-index: 1; }
.info-card, .contact-form-card {
  background: var(--sog-white);
  border-radius: 6px;
  padding: 50px;
  height: 100%;
}
.contact-form-card { margin-left: 50px; }
.info-item { margin-bottom: 2rem; }
.info-item h4 {
  font-size: .875rem;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--sog-muted);
  margin-bottom: .25rem;
  line-height: 2.1;
}
.info-item p { margin-bottom: 0; color: var(--sog-body); }
.info-item a { color: var(--sog-body); }
.info-item a:hover { color: var(--sog-accent); }
.contact-form-card .form-label {
  font-weight: 600;
  color: var(--sog-navy);
  font-size: .9375rem;
  margin-bottom: .375rem;
}
.contact-form-card .form-control {
  border-color: var(--sog-light);
  color: var(--sog-body);
  border-radius: 4px;
  padding: .6rem .875rem;
  font-family: var(--sog-font);
}
.contact-form-card .form-control:focus {
  border-color: var(--sog-accent);
  box-shadow: 0 0 0 3px rgba(246,125,76,.15);
}
.contact-form-card textarea.form-control { resize: vertical; min-height: 130px; }
.form-alert {
  border-radius: 4px;
  padding: .875rem 1.25rem;
  margin-bottom: 1.25rem;
  font-size: .9375rem;
}
.form-alert-success { background: #d1fae5; color: #065f46; }
.form-alert-error   { background: #fee2e2; color: #991b1b; }
@media (max-width: 1024px) {
  .contact-form-card { margin-left: 0; margin-top: 30px; }
}
@media (max-width: 767.98px) {
  .info-card, .contact-form-card { padding: 30px; }
}
/* =========================================================
   18. Events Page
   ========================================================= */
.events-page-grid { padding: 80px 0 100px; }
.events-page-grid .event-card { box-shadow: var(--sog-shadow-deep); }
.weekly-schedule-section {
  background: var(--sog-navy-mid);
  padding: 70px 0;
}
.schedule-item {
  display: flex;
  align-items: flex-start;
  gap: 1.5rem;
  padding: 1.5rem 0;
  border-bottom: 1px solid rgba(255,255,255,.1);
}
.schedule-item:last-child { border-bottom: none; }
.schedule-badge {
  flex-shrink: 0;
  background: var(--sog-accent);
  color: var(--sog-white);
  border-radius: 6px;
  padding: .75rem 1.125rem;
  text-align: center;
  min-width: 70px;
  font-weight: 700;
  line-height: 1.2;
}
.schedule-badge .s-day  { font-size: 1.375rem; display: block; }
.schedule-badge .s-freq { font-size: .7rem; letter-spacing: .05em; text-transform: uppercase; color: rgba(255,255,255,.85); display: block; }
.schedule-info h3 { color: var(--sog-white); font-size: 1.1875rem; margin-bottom: .35rem; }
.schedule-info p  { color: rgba(255,255,255,.7); font-size: .9375rem; margin-bottom: 0; }
/* =========================================================
   19. Services Page
   ========================================================= */
.svc-row { overflow: hidden; }
.svc-row--dark { background: var(--sog-navy-mid); }
.svc-row--light { background: var(--sog-white); }
.svc-img-col {
  min-height: 420px;
  overflow: hidden;
}
.svc-img-col img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.svc-text-col {
  display: flex;
  align-items: center;
}
.svc-text-inner {
  padding: 4rem 3.5rem;
}
/* Dark variant text colours */
.svc-row--dark .svc-text-inner h2,
.svc-row--dark .svc-text-inner .svc-time {
  color: var(--sog-white);
}
.svc-row--dark .svc-verse {
  color: rgba(255,255,255,.8);
  border-left: 3px solid var(--sog-accent);
}
.svc-row--dark .svc-verse cite { color: var(--sog-accent); }
/* Light variant text colours */
.svc-row--light .svc-text-inner h2,
.svc-row--light .svc-text-inner .svc-time {
  color: var(--sog-navy);
}
.svc-row--light .svc-verse {
  color: var(--sog-body);
  border-left: 3px solid var(--sog-accent);
}
.svc-row--light .svc-verse cite { color: var(--sog-muted); }
.svc-time {
  font-size: 1.0625rem;
  font-weight: 600;
  letter-spacing: .03em;
  margin-bottom: 1.25rem;
  color: var(--sog-accent);
}
.svc-verse {
  padding-left: 1rem;
  margin: 1.25rem 0 1.75rem;
  font-size: .9875rem;
  line-height: 1.7;
}
.svc-verse cite {
  display: block;
  margin-top: .5rem;
  font-size: .875rem;
  font-style: normal;
  font-weight: 600;
}
@media (max-width: 991.98px) {
  .svc-img-col { min-height: 280px; }
  .svc-text-inner { padding: 2.5rem 1.75rem; }
  /* On mobile keep image on top, text below */
  .svc-row .row { flex-direction: column !important; }
}
/* =========================================================
   20. Swiper — Events Carousel
   ========================================================= */
.events-swiper {
  padding-bottom: 3rem !important; /* space for pagination dots */
  overflow: hidden;
}
/* Make all slides the same height as the tallest one */
.events-swiper .swiper-wrapper {
  align-items: stretch;
}
.events-swiper .swiper-slide {
  height: auto;
  display: flex;      /* allows .event-card height:100% to fill the slide */
}
.events-swiper .swiper-slide .event-card {
  height: 100%;
  display: flex;
  flex-direction: column;
}
.events-swiper .swiper-slide .event-card .event-card-body {
  flex: 1;            /* body grows so all cards bottom-align */
}
.events-swiper .swiper-button-prev,
.events-swiper .swiper-button-next {
  color: var(--sog-accent);
  top: calc(50% - 1.5rem); /* offset up slightly to stay within image area */
}
.events-swiper .swiper-button-prev::after,
.events-swiper .swiper-button-next::after {
  font-size: 1.1rem;
  font-weight: 700;
}
.events-swiper .swiper-pagination-bullet-active {
  background: var(--sog-accent);
}
