:root {
  --bg: #f9f7f3;
  --bg-alt: #f2ede4;
  --text: #1f1f1f;
  --muted: #8f8e8b;
  --accent: #b18a7f;
  --border: #ded6c7;
  --max-width: 1120px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

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

.page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Header / Nav */

header {
  border-bottom: 1px solid var(--border);
  background: #fff;
  position: sticky;
  top: 0;
  z-index: 10;
}

.nav {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 1.2rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.nav-left {
  font-family: "Cormorant Garamond", "Times New Roman", serif;
  font-size: 1.3rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.nav-right {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.nav-right a {
  position: relative;
}

.nav-right a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.3rem;
  width: 0;
  height: 1px;
  background: var(--accent);
  transition: width 0.2s ease;
}

.nav-right a:hover::after {
  width: 100%;
}

/* Utility */

main {
  flex: 1;
}

section {
  border-bottom: 1px solid var(--border);
  background: #fff;
}

.section-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 4.5rem 1.5rem;
}

.section-title {
  font-family: "Cormorant Garamond", "Times New Roman", serif;
  font-size: 2rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
}

.section-subtitle {
  font-size: 0.95rem;
  color: var(--muted);
  max-width: 36rem;
}

/* Hero */

.hero-grid {
  display: grid;
  grid-template-columns: 3fr 2fr;
  gap: 3rem;
  align-items: center;
}

.eyebrow {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: #c9c7c3;
  margin-bottom: 0.75rem;
}

.hero-title {
  font-family: "Cormorant Garamond", "Times New Roman", serif;
  font-size: clamp(2.6rem, 4vw, 3.3rem);
  line-height: 1.05;
  margin-bottom: 1.25rem;
  text-transform: uppercase;
  letter-spacing: 0.11em;
  color: #f0eeeb;
}

.hero-subtitle {
  font-size: 0.95rem;
  color: #c9c7c3;
  max-width: 32rem;
  margin-bottom: 1.75rem;
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.hero-aside {
  border: 1px solid var(--border);
  background: var(--bg-alt);
  padding: 2rem;
  font-size: 0.9rem;
}

.hero-aside-title {
  font-family: "Cormorant Garamond", "Times New Roman", serif;
  font-size: 1.15rem;
  margin-bottom: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.hero-aside p {
  color: var(--muted);
  margin-bottom: 0.5rem;
}


/* Buttons */

.btn {
  padding: 0.7rem 1.6rem;
  font-size: 0.85rem;
  border-radius: 999px;
  border: 1px solid var(--text);
  background: transparent;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.btn-primary {
  background: var(--text);
  color: #fff;
}

.btn-primary:hover {
  background: #000;
}

.btn-outline:hover {
  background: var(--text);
  color: #fff;
}

.btn-small {
  padding: 0.4rem 1.1rem;
  font-size: 0.75rem;
}

/* Make the hero outline button more solid / readable */
.hero-section .btn-outline {
  background: rgba(249, 247, 243, 0.9); /* light pill */
  border-color: #333;
  color: #111;
}

.hero-section .btn-outline:hover {
  background: #111;
  color: #f9f7f3;
}


/* Three-column / grids */

.pillars-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2.5rem;
}

.pillar-title {
  font-family: "Cormorant Garamond", "Times New Roman", serif;
  font-size: 1rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 0.6rem;
}

.pillar-body {
  font-size: 0.9rem;
  color: var(--muted);
  margin-bottom: 0.9rem;
}

.pillar-link,
.card-link {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--accent);
}

/* Inset copy */

.inset {
  max-width: 44rem;
  margin: 0 auto;
  font-size: 0.95rem;
  color: var(--muted);
}

.inset p + p {
  margin-top: 1rem;
}

.inset strong {
  color: var(--text);
  font-weight: 500;
}

/* Cards / featured */

.featured-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2rem;
}

.card {
  border: 1px solid var(--border);
  padding: 1.5rem 1.5rem 1.75rem;
  background: #fff;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.card-tag {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--muted);
  margin-bottom: 0.5rem;
}

.card-title {
  font-family: "Cormorant Garamond", "Times New Roman", serif;
  font-size: 1.05rem;
  margin-bottom: 0.35rem;
}

.card-body {
  font-size: 0.9rem;
  color: var(--muted);
  margin-bottom: 0.9rem;
}

/* Two-column text layout */

.columns-2 {
  display: grid;
  grid-template-columns: 1.3fr 2fr;
  gap: 2.5rem;
}

/* Lists */

.bullet-list {
  font-size: 0.95rem;
  color: var(--muted);
  padding-left: 1.1rem;
}

.bullet-list li + li {
  margin-top: 0.4rem;
}

/* Testimonials */

.testimonials {
  background: var(--bg-alt);
}

.testimonials-inner {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
}

.quote-mark {
  font-family: "Cormorant Garamond", "Times New Roman", serif;
  font-size: 3rem;
  line-height: 1;
  color: var(--accent);
  margin-bottom: 0.5rem;
}

.testimonial-text {
  font-size: 1rem;
  color: var(--text);
  margin-bottom: 0.75rem;
}

.testimonial-meta {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--muted);
}

.testimonial-slide {
  display: none;
}

.testimonial-slide.active {
  display: block;
}

.testimonial-controls {
  margin-top: 1.5rem;
  display: flex;
  justify-content: center;
  gap: 0.75rem;
}

/* Forms */

.form-grid {
  display: grid;
  gap: 0.75rem;
}

.input,
.textarea {
  width: 100%;
  padding: 0.7rem 0.9rem;
  border-radius: 16px;
  border: 1px solid var(--border);
  font-size: 0.9rem;
  background: #faf8f3;
  outline: none;
}

.input:focus,
.textarea:focus {
  border-color: var(--accent);
}

/* Newsletter-style section reused for contact */

.newsletter-inner {
  max-width: 540px;
  margin: 0 auto;
  text-align: center;
}

.newsletter-title {
  font-family: "Cormorant Garamond", "Times New Roman", serif;
  font-size: 1.6rem;
  margin-bottom: 0.5rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.newsletter-text {
  font-size: 0.95rem;
  color: var(--muted);
  margin-bottom: 1.5rem;
}

/* Footer */

footer {
  background: #fff;
  border-top: 1px solid var(--border);
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 2.5rem 1.5rem 2rem;
  display: grid;
  grid-template-columns: 2.5fr 2fr 2.5fr;
  gap: 2rem;
  font-size: 0.85rem;
}

.footer-title {
  font-family: "Cormorant Garamond", "Times New Roman", serif;
  font-size: 1.1rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 0.6rem;
}

.footer-text {
  color: var(--muted);
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.25rem 1.5rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.75rem;
}

.footer-links a:hover {
  color: var(--accent);
}

.footer-meta {
  font-size: 0.8rem;
  color: var(--muted);
  line-height: 1.6;
}

.footer-bottom {
  border-top: 1px solid var(--border);
  padding: 0.8rem 1.5rem 1.4rem;
  max-width: var(--max-width);
  margin: 0 auto;
  font-size: 0.7rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

/* Responsive */

@media (max-width: 900px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }

  .hero-aside {
    margin-top: 1.5rem;
  }

  .pillars-grid,
  .featured-grid,
  .footer-inner,
  .columns-2 {
    grid-template-columns: 1fr;
  }

  .footer-links {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  .section-inner {
    padding: 3rem 1.25rem;
  }

  .hero-title {
    font-size: 2.2rem;
  }
}

/* HERO SECTION WITH BACKGROUND SLIDESHOW */
.hero-section {
  position: relative;
  overflow: hidden;
  padding: 5.5rem 0 3.5rem 0;   /* slightly shorter, more Hayden-like */
  background: transparent;      /* no white over the bg */
  border-bottom: none;
}

/* keep hero content above background */
.hero-section .section-inner {
  position: relative;
  z-index: 1;
}

/* BACKGROUND IMAGE LAYER */
.hero-bg {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 100vw;
  margin-left: -50vw;
  z-index: 0;
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  animation: heroFade 21s infinite;

  opacity: 0.9;               /* slightly less than 0.95 */
  filter: brightness(0.5);    /* darker than before */

  border-radius: 0;
}


/* SUBTLE (NOW LESS SUBTLE) BACKDROP BEHIND HERO TEXT */
.hero-grid {
  position: relative;
}

.hero-grid::before {
  content: "";
  position: absolute;
  /* widen & grow the card behind the left column */
  inset: -2rem 46% auto -2rem;
  background: rgba(249, 247, 243, 0.94);  /* was ~0.78 – now almost solid */
  z-index: -1;
  border-radius: 28px;
}

/* on tablet/mobile, extend backdrop under full text width */
@media (max-width: 900px) {
  .hero-grid::before {
    inset: -1rem -1.5rem auto -1.5rem;
  }
}


/* SLIDESHOW KEYFRAMES (paths relative to /assets/styles.css) */
@keyframes heroFade {
  0%   { background-image: url('images/cropped_slider_masjid.jpg'); }
  33%  { background-image: url('images/cropped_slider_ramadan.jpg'); }
  66%  { background-image: url('images/cropped_slider_path.jpg'); }
  100% { background-image: url('images/cropped_slider_alchemist.jpg'); }
}


@media (max-width: 900px) {
  .hero-grid::before {
    inset: -0.5rem -1.5rem auto -1.5rem; /* full width on small screens */
  }
}

/* SLIDESHOW KEYFRAMES */
/* paths are relative to styles.css (inside /assets/) */
@keyframes heroFade {
  0%   { background-image: url('images/cropped_slider_masjid.jpg'); }
  33%  { background-image: url('images/cropped_slider_ramadan.jpg'); }
  66%  { background-image: url('images/cropped_slider_mandala.jpg'); }
  100% { background-image: url('images/cropped_slider_masjid.jpg'); }
}

/* FORCE REMOVE HERO ROUNDED CORNERS */
.hero-section,
.hero-bg {
  border-radius: 0 !important;
}

/* ------------------------------
   MOBILE NAVIGATION
------------------------------ */
.mobile-menu-btn {
  display: none;
  flex-direction: column;
  gap: 4px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  margin-left: 1rem;
}

.mobile-menu-btn span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  transition: all 0.3s ease;
}

/* MOBILE MENU PANEL */
.mobile-menu {
  display: none;
  flex-direction: column;
  background: var(--bg);
  padding: 1.25rem 1.75rem;
  border-bottom: 1px solid var(--border);
}

.mobile-menu a {
  padding: 0.75rem 0;
  font-size: 0.95rem;
  border-bottom: 1px solid var(--border);
}

.mobile-menu a:last-child {
  border-bottom: none;
}

/* HAMBURGER ACTIVE STATE (optional animation) */
.mobile-menu-btn.active span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.mobile-menu-btn.active span:nth-child(2) {
  opacity: 0;
}

.mobile-menu-btn.active span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

/* MOBILE BREAKPOINT */
@media (max-width: 600px) {
  .desktop-nav {
    display: none;
  }

  .mobile-menu-btn {
    display: flex;
  }

  .mobile-menu.show {
    display: flex;
  }
}

/* ICONS under left column */
.footer-social-left {
  margin-top: 18px;
  display: flex;
  gap: 14px;
  align-items: center;
}

.footer-social-left svg {
  width: 20px !important;
  height: 20px !important;
  stroke-width: 1.6;
  flex-shrink: 0;
}

.footer-social-left a:hover svg {
  opacity: 0.7;
  transform: translateY(-2px);
}

/* === Jung | Text | Jilani section === */

/* === Jung | Text | Jilani section === */

.wisdom-grid {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3rem;
}

.wisdom-side {
  flex: 0 0 22%;
  max-width: 260px;
  text-align: center;
}

.wisdom-side-img {
  width: 100%;
  height: auto;
  border-radius: 10px;
  object-fit: cover;
  box-shadow: 0 4px 18px rgba(0,0,0,0.1);
}

.wisdom-caption {
  margin-top: 8px;
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.wisdom-center {
  flex: 1;
  max-width: 540px;
  text-align: center;
  margin: 0 auto;
}

.wisdom-title {
  font-family: "Cormorant Garamond", "Times New Roman", serif;
  font-size: 1.9rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.wisdom-body {
  font-size: 0.95rem;
  color: var(--muted);
  margin-bottom: 0.9rem;
}

.wisdom-body strong {
  color: var(--text);
  font-weight: 500;
}

/* Mobile stacking */
@media (max-width: 900px) {
  .wisdom-grid {
    flex-direction: column;
  }

  .wisdom-side {
    max-width: 260px;
    margin: 0 auto;
  }

  .wisdom-center {
    max-width: 100%;
  }
}


.wisdom-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 48px;
}

.wisdom-side {
  flex: 0 0 22%;
  max-width: 260px;
  text-align: center;
}

.wisdom-side-img {
  width: 100%;
  height: auto;
  border-radius: 0px;
  object-fit: cover;
  box-shadow: 0 4px 18px rgba(0,0,0,0.1);
}

.wisdom-caption {
  margin-top: 8px;
  font-size: 14px;
  color: #666;
}

.wisdom-center {
  flex: 1;
  max-width: 540px;
  text-align: center;
  margin: 0 auto;
}

.wisdom-center h2 {
  font-size: 28px;
  font-weight: 500;
  margin-bottom: 18px;
  line-height: 1.3;
}

.wisdom-center p {
  margin-bottom: 14px;
  font-size: 16px;
  line-height: 1.6;
  color: #444;
}

/* Mobile stacking */
@media (max-width: 900px) {
  .wisdom-inner {
    flex-direction: column;
    padding: 0 24px;
  }

  .wisdom-side {
    max-width: 260px;
    margin: 0 auto;
  }

  .wisdom-center {
    max-width: 100%;
  }
}
