/* Professional mosque website design system */

:root {
  --ink: #17211f;
  --muted: #65736f;
  --paper: #fffdf7;
  --cream: #f7f1e6;
  --sand: #eadfc8;
  --line: #e8ddc7;
  --teal: #075e57;
  --teal-2: #0d766d;
  --teal-soft: #e5f4ef;
  --gold: #c9952f;
  --gold-soft: #fff3cf;
  --shadow: 0 22px 70px rgba(23, 33, 31, 0.12);
  --shadow-soft: 0 14px 35px rgba(23, 33, 31, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(201, 149, 47, 0.13), transparent 34rem),
    linear-gradient(180deg, #fffaf0 0%, #fbf8f0 34%, #f7f1e6 100%);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  line-height: 1.6;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  opacity: 0.45;
  background-image:
    linear-gradient(rgba(7, 94, 87, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(7, 94, 87, 0.045) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: linear-gradient(to bottom, black, transparent 72%);
}

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease, background-color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

img {
  max-width: 100%;
  height: auto;
}

header {
  top: 0;
  left: 0;
  right: 0;
  margin: 0;
  background: rgba(255, 253, 247, 0.92) !important;
  border-bottom: 1px solid rgba(232, 221, 199, 0.9);
  box-shadow: 0 12px 35px rgba(23, 33, 31, 0.08);
  transform: translateY(0);
  opacity: 1;
  transition: transform 0.3s ease, opacity 0.3s ease, box-shadow 0.3s ease;
}

header > div {
  min-height: 76px;
}

#header-logo {
  width: 48px;
  height: 48px;
  padding: 4px;
  border: 1px solid rgba(201, 149, 47, 0.35);
  background: #fff8e8;
  box-shadow: 0 8px 24px rgba(23, 33, 31, 0.1);
}

#header-site-name {
  display: block;
  max-width: 300px;
  color: var(--teal) !important;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1rem, 2vw, 1.2rem);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: 0;
}

header nav a {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  border-radius: 999px;
  padding: 0.45rem 0.85rem;
  color: #43514d;
  font-size: 0.92rem;
  font-weight: 650;
}

header nav a:hover,
header nav a.nav-active {
  color: var(--teal);
  background: rgba(7, 94, 87, 0.08);
}

header nav a.nav-active::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0.28rem;
  width: 22px;
  height: 2px;
  border-radius: 999px;
  background: var(--gold);
  transform: translateX(-50%);
}

.mobile-menu-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 46px;
  min-height: 44px;
  border: 1px solid rgba(7, 94, 87, 0.18);
  border-radius: 999px;
  color: var(--teal) !important;
  background: #fff8e8;
  font-weight: 800;
}

.mobile-menu {
  display: none;
  position: fixed;
  top: 76px;
  left: 0;
  right: 0;
  z-index: 40;
  padding: 0.6rem 1rem 1rem;
  background: rgba(255, 253, 247, 0.98);
  border-bottom: 1px solid var(--line);
  box-shadow: var(--shadow-soft);
}

.mobile-menu.is-open {
  display: block;
}

.mobile-menu a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-radius: 0.65rem;
  padding: 0.85rem 0.95rem;
  color: var(--ink);
  font-weight: 700;
}

.mobile-menu a + a {
  margin-top: 0.25rem;
}

.mobile-menu a:hover,
.mobile-menu a.nav-active {
  color: var(--teal);
  background: var(--teal-soft);
}

.header-hidden {
  transform: translateY(-100%);
  opacity: 0;
  pointer-events: none;
}

section {
  position: relative;
  background: transparent !important;
  margin-bottom: 0;
}

body > section,
body > main > section {
  padding-left: 1rem;
  padding-right: 1rem;
}

body > section.mt-20 {
  margin-top: 76px;
  padding-top: clamp(3rem, 7vw, 5.5rem);
  padding-bottom: clamp(3rem, 7vw, 5.5rem);
}

h1,
h2,
h3 {
  letter-spacing: 0;
}

h1,
#hero-title,
#about-preview-title {
  color: var(--teal) !important;
  font-family: Georgia, "Times New Roman", serif;
  line-height: 1.05;
}

p {
  color: var(--muted);
}

.text-teal-800,
.text-teal-700 {
  color: var(--teal) !important;
}

.text-gray-600,
.text-gray-700,
.text-gray-500 {
  color: var(--muted) !important;
}

.card {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(232, 221, 199, 0.9);
  border-radius: 0.9rem;
  background: rgba(255, 253, 247, 0.94);
  box-shadow: var(--shadow-soft);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: linear-gradient(180deg, var(--gold), var(--teal-2));
  opacity: 0.92;
}

.card:hover {
  border-color: rgba(201, 149, 47, 0.45);
  box-shadow: var(--shadow);
  transform: translateY(-3px);
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  border-radius: 999px;
  padding: 0.75rem 1.35rem;
  color: #fff;
  background: linear-gradient(135deg, var(--teal), var(--teal-2));
  box-shadow: 0 14px 28px rgba(7, 94, 87, 0.24);
  font-weight: 800;
}

.btn-primary:hover {
  color: #fff;
  background: linear-gradient(135deg, #054940, #0a6b62);
  transform: translateY(-2px);
}

.link-strong {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: var(--teal);
  font-weight: 800;
}

.link-strong:hover {
  color: #043d37;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  width: fit-content;
  border: 1px solid rgba(201, 149, 47, 0.36);
  border-radius: 999px;
  padding: 0.32rem 0.72rem;
  color: var(--teal);
  background: rgba(255, 248, 232, 0.88);
  font-size: 0.76rem;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-shell {
  position: relative;
  isolation: isolate;
}

.hero-shell::before {
  content: "";
  position: absolute;
  inset: 1rem 1rem auto auto;
  z-index: -1;
  width: min(36vw, 430px);
  aspect-ratio: 1;
  border: 1px solid rgba(201, 149, 47, 0.26);
  border-radius: 999px;
  background: radial-gradient(circle, rgba(201, 149, 47, 0.22), transparent 64%);
}

.hero-media {
  position: relative;
  min-height: clamp(330px, 40vw, 560px);
  border: 1px solid rgba(232, 221, 199, 0.95);
  border-radius: 1.25rem;
  background: var(--teal);
  box-shadow: var(--shadow);
}

.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, transparent 28%, rgba(7, 94, 87, 0.52)),
    linear-gradient(135deg, rgba(255, 248, 232, 0.1), transparent 42%);
  pointer-events: none;
}

.hero-media img,
.feature-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-badge {
  position: absolute;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  z-index: 2;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 1rem;
  padding: 1rem;
  color: #fff;
  background: rgba(7, 55, 51, 0.78);
  backdrop-filter: blur(12px);
}

.prayer-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.prayer-tile {
  border: 1px solid rgba(7, 94, 87, 0.11);
  border-radius: 0.9rem;
  padding: 0.72rem;
  background: linear-gradient(180deg, #ffffff 0%, #f4fbf8 100%);
  text-align: left;
}

.prayer-tile .label {
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 750;
}

.prayer-tile .time {
  color: var(--teal);
  font-size: 1.05rem;
  font-weight: 900;
}

.quick-card,
.event-card,
.donate-card,
.about-card {
  min-height: 100%;
}

.icon-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 999px;
  color: var(--teal);
  background: var(--gold-soft);
  font-weight: 900;
}

.section-panel {
  border: 1px solid rgba(232, 221, 199, 0.95);
  border-radius: 1.25rem;
  background: rgba(255, 253, 247, 0.74);
  box-shadow: var(--shadow-soft);
}

.image-frame {
  overflow: hidden;
  border: 1px solid rgba(232, 221, 199, 0.95);
  border-radius: 1.25rem;
  box-shadow: var(--shadow-soft);
}

.image-frame img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 300px;
  object-fit: cover;
}

.contact-line {
  border-bottom: 1px solid rgba(232, 221, 199, 0.85);
  padding: 0.8rem 0;
}

.contact-line span:first-child {
  display: block;
  color: var(--teal);
  font-size: 0.78rem;
  font-weight: 850;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

input,
textarea {
  width: 100%;
  border: 1px solid rgba(101, 115, 111, 0.22) !important;
  border-radius: 0.85rem;
  background: #fffef9;
  color: var(--ink);
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
}

input:focus,
textarea:focus {
  border-color: rgba(7, 94, 87, 0.6) !important;
  background: #fff;
  box-shadow: 0 0 0 4px rgba(7, 94, 87, 0.12);
  outline: none;
}

.form-status {
  display: none;
  border: 1px solid rgba(7, 94, 87, 0.18);
  border-radius: 0.85rem;
  padding: 0.8rem 0.95rem;
  color: var(--teal);
  background: var(--teal-soft);
  font-weight: 800;
}

.form-status.is-visible {
  display: block;
}

.table-wrap {
  border: 1px solid rgba(232, 221, 199, 0.95);
  border-radius: 1rem;
  background: rgba(255, 253, 247, 0.94);
  box-shadow: var(--shadow-soft);
}

table {
  border-collapse: separate;
  border-spacing: 0;
  min-width: 860px;
}

th,
td {
  border-color: rgba(232, 221, 199, 0.9) !important;
  white-space: nowrap;
}

th {
  color: var(--teal) !important;
  background: #f0ece0 !important;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

tbody tr:nth-child(even) {
  background: rgba(229, 244, 239, 0.35);
}

tbody tr:hover {
  background: rgba(255, 243, 207, 0.55);
}

footer {
  margin-top: 2rem;
  color: #fff;
  background:
    radial-gradient(circle at top right, rgba(201, 149, 47, 0.28), transparent 25rem),
    linear-gradient(180deg, #075e57 0%, #063d38 100%) !important;
}

footer a {
  color: rgba(255, 255, 255, 0.78) !important;
}

footer a:hover {
  color: #fff !important;
}

footer p,
footer .text-teal-100 {
  color: rgba(255, 255, 255, 0.76) !important;
}

@media (min-width: 640px) {
  .prayer-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 900px) {
  .prayer-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  #header-site-name {
    max-width: 210px;
  }

  header > div {
    min-height: 70px;
  }

  .mobile-menu {
    top: 70px;
  }
}

@media (max-width: 767px) {
  body > section.mt-20 {
    margin-top: 70px;
    padding-top: 2.4rem;
  }

  #header-logo {
    width: 42px;
    height: 42px;
  }

  #hero-title {
    font-size: clamp(2.35rem, 12vw, 3.25rem) !important;
  }

  .hero-media {
    min-height: 330px;
    border-radius: 1rem;
  }

  .section-panel,
  .image-frame {
    border-radius: 1rem;
  }

  .card {
    border-radius: 0.8rem;
  }

  footer .grid {
    gap: 1.6rem;
  }
}

@media (max-width: 440px) {
  #header-site-name {
    max-width: 165px;
    font-size: 0.95rem;
  }

  .mobile-menu-button {
    min-width: 42px;
    padding-left: 0.8rem;
    padding-right: 0.8rem;
  }

  .prayer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.welcome-arabic {
  font-size: 1.25rem;
}

.next-prayer-card{
    background: linear-gradient(135deg,#0f766e,#115e59);
    color:white;
    padding:1rem;
    border-radius:18px;
    text-align:center;
    box-shadow:0 12px 30px rgba(0,0,0,.15);
}

#next-prayer-countdown{
    font-size:1.25rem;
    font-weight:500;
    letter-spacing:2px;
}

.coming-soon-events {
    margin-bottom: 5rem;
}

/* Scroll-reveal animation */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity 0.6s ease-out,
    transform 0.6s ease-out;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Optional: staggered delay for children */
.reveal-delay {
  transition-delay: 0.1s;
}

.reveal-delay-2 {
  transition-delay: 0.2s;
}

.reveal-delay-3 {
  transition-delay: 0.3s;
}

.site-footer {
  background:
    radial-gradient(circle at top right, rgba(201, 149, 47, 0.22), transparent 22rem),
    linear-gradient(180deg, #075e57 0%, #063d38 100%);
}

.footer-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.6rem 0.85rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #fff;
  transition: transform 0.2s ease, background-color 0.2s ease;
}

.footer-pill:hover {
  background: rgba(255, 255, 255, 0.14);
  transform: translateY(-1px);
}

.footer-pill-icon {
  width: 1rem;
  height: 1rem;
  flex: 0 0 1rem;
  color: #fff;
}

.footer-link {
  color: rgba(255, 255, 255, 0.78);
  transition: color 0.2s ease;
}

.footer-link:hover {
  color: #fff;
}

.footer-hours-label {
  color: #fff;
  font-weight: 700;
}

.footer-hours-time {
  color: rgba(255, 255, 255, 0.78);
}

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

@media (min-width: 640px) {
  .team-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1024px) {
  .team-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.team-card {
  position: relative;
}

.team-card-media {
  position: relative;
  overflow: hidden;
  border-radius: 1.15rem;
  background: #0f766e;
  aspect-ratio: 3 / 4;
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.12);
}

.team-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.01);
  transition: transform 0.6s ease;
  display: block;
}

.team-card:hover .team-card-media img {
  transform: scale(1.06);
}

.team-card-mask {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: end;
  padding: 1rem;
  color: #fff;
  background:
    linear-gradient(180deg, rgba(4, 31, 28, 0) 0%, rgba(4, 31, 28, 0.45) 38%, rgba(4, 31, 28, 0.88) 100%);
  opacity: 0;
  transform: translateY(10px);
  will-change: opacity, transform, clip-path;
  -webkit-mask-image: radial-gradient(circle var(--mask-size, 0px) at var(--mask-x, 50%) var(--mask-y, 50%), #000 99%, transparent 100%);
  mask-image: radial-gradient(circle var(--mask-size, 0px) at var(--mask-x, 50%) var(--mask-y, 50%), #000 99%, transparent 100%);
  transition: opacity 0.35s ease;
}

.team-card.is-active .team-card-mask {
  opacity: 1;
  transform: translateY(0);
}

.team-card-content {
  width: 100%;
  padding: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 1rem;
  backdrop-filter: blur(10px);
  background: rgba(255, 255, 255, 0.06);
}

.team-card-content h3 {
  margin: 0;
  font-size: 1rem;
  line-height: 1.25;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.team-role {
  margin: 0 0 0.35rem 0;
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.82);
}

.team-card:hover .team-card-content {
  border-color: rgba(255, 255, 255, 0.32);
}

@media (hover: none) {
  .team-card-mask {
    opacity: 1;
    transform: none;
    -webkit-mask-image: none;
    mask-image: none;
  }
}

.team-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.team-tab {
  padding: 0.75rem 1.1rem;
  border-radius: 999px;
  border: 1px solid rgba(13, 118, 109, 0.18);
  background: rgba(255, 255, 255, 0.8);
  color: #0d766d;
  font-weight: 700;
  transition: all 0.25s ease;
}

.team-tab:hover {
  background: rgba(13, 118, 109, 0.08);
  transform: translateY(-1px);
}

.team-tab.is-active {
  background: linear-gradient(135deg, #075e57, #0d766d);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 10px 22px rgba(7, 94, 87, 0.18);
}

.team-card.is-hidden {
  display: none;
}