﻿:root{
  --green-900:#0B3B2E;
  --green-700:#0F5A44;
  --green-500:#147A5D;
  --gold-500:#C8A44E;
  --sand-100:#F7F4EF;
  --sand-200:#EFE8DC;
  --ink-900:#1C1E1D;
  --ink-700:#313534;
  --ink-500:#4A4F4E;
  --line:#E5DED2;
  --card:#FFFFFF;
  --shadow:0 20px 45px rgba(11,59,46,0.12);
  --radius-xl:24px;
  --radius-lg:16px;
  --radius-md:12px;
  --radius-sm:10px;
}

@font-face{font-family:'Fraunces';font-style:normal;font-weight:400;font-display:swap;src:url('../assets/fonts/fraunces-400.woff2') format('woff2')}
@font-face{font-family:'Fraunces';font-style:normal;font-weight:600;font-display:swap;src:url('../assets/fonts/fraunces-600.woff2') format('woff2')}
@font-face{font-family:'Fraunces';font-style:normal;font-weight:700;font-display:swap;src:url('../assets/fonts/fraunces-700.woff2') format('woff2')}
@font-face{font-family:'JetBrains Mono';font-style:normal;font-weight:500;font-display:swap;src:url('../assets/fonts/jetbrains-mono-500.woff2') format('woff2')}
@font-face{font-family:'JetBrains Mono';font-style:normal;font-weight:600;font-display:swap;src:url('../assets/fonts/jetbrains-mono-600.woff2') format('woff2')}
@font-face{font-family:'JetBrains Mono';font-style:normal;font-weight:700;font-display:swap;src:url('../assets/fonts/jetbrains-mono-700.woff2') format('woff2')}
@font-face{font-family:'Sora';font-style:normal;font-weight:400;font-display:swap;src:url('../assets/fonts/sora-400.woff2') format('woff2')}
@font-face{font-family:'Sora';font-style:normal;font-weight:500;font-display:swap;src:url('../assets/fonts/sora-500.woff2') format('woff2')}
@font-face{font-family:'Sora';font-style:normal;font-weight:600;font-display:swap;src:url('../assets/fonts/sora-600.woff2') format('woff2')}
@font-face{font-family:'Sora';font-style:normal;font-weight:700;font-display:swap;src:url('../assets/fonts/sora-700.woff2') format('woff2')}

*{box-sizing:border-box}

.skip-link{
  position:fixed;
  top:12px;
  left:12px;
  z-index:2000;
  padding:10px 14px;
  border-radius:var(--radius-sm);
  background:#fff;
  color:var(--green-900);
  font-weight:700;
  transform:translateY(-160%);
}

.skip-link:focus{
  transform:translateY(0);
}

:where(a,button,input,select,textarea,[tabindex]):focus-visible{
  outline:3px solid #D8B85C;
  outline-offset:3px;
}
html{
  scroll-behavior:smooth;
  scroll-padding-top:80px;
}
html.prayer-scroll-auto{
  scroll-behavior:auto;
  scroll-padding-top:0;
}
body{
  margin:0;
  font-family:"Sora", "Segoe UI", sans-serif;
  color:var(--ink-900);
  background:linear-gradient(180deg,var(--sand-100) 0%, #fff 40%, var(--sand-100) 100%);
  -webkit-font-smoothing:antialiased;
  text-rendering:optimizeLegibility;
}
img{max-width:100%;display:block}
a{color:inherit;text-decoration:none}

.page{
  position:relative;
  min-height:100vh;
  overflow:hidden;
}
.page::before{
  content:"";
  position:fixed;
  inset:-20% -10% auto -10%;
  height:55vh;
  background:
    radial-gradient(circle at 15% 30%, rgba(20,122,93,0.18), transparent 45%),
    radial-gradient(circle at 85% 10%, rgba(200,164,78,0.20), transparent 40%),
    radial-gradient(circle at 40% 80%, rgba(11,59,46,0.08), transparent 45%);
  z-index:0;
  pointer-events:none;
}

/* Forsidens hero og bønnekort deler én sammenhengende bakgrunnsflate. */
.home-page{
  --live-gold:var(--gold-500);
}
.home-page .page::before{
  display:none;
}
.home-status-block{
  width:100%;
  min-width:0;
  max-width:100%;
  background:
    radial-gradient(circle at 15% 18%, rgba(20,122,93,0.18), transparent 46%),
    radial-gradient(circle at 85% 8%, rgba(200,164,78,0.20), transparent 42%),
    radial-gradient(circle at 40% 52%, rgba(11,59,46,0.08), transparent 38%);
}

@media (min-width:769px){
  .home-page .page::before{
    display:block;
    position:fixed;
    inset:0;
    height:100dvh;
    opacity:1;
    background:
      radial-gradient(circle at 15% 18%, rgba(20,122,93,0.18), transparent 46%),
      radial-gradient(circle at 85% 8%, rgba(200,164,78,0.20), transparent 42%),
      radial-gradient(circle at 40% 52%, rgba(11,59,46,0.08), transparent 38%);
  }

  .home-page .home-status-block{
    background:transparent;
  }
}

.container{
  width:min(1120px, 92vw);
  margin:0 auto;
}

.site-header{
  position:sticky;
  top:0;
  z-index:50;
  background:rgba(247,244,239,0.85);
  backdrop-filter:blur(10px);
  border-bottom:1px solid var(--line);
}

.nav{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:16px 0;
  padding-left:env(safe-area-inset-left);
  padding-right:env(safe-area-inset-right);
  gap:20px;
}

.brand{
  display:flex;
  align-items:center;
  gap:14px;
  font-weight:700;
}
.brand-mark{
  width:44px;
  height:44px;
  border-radius:14px;
  background:linear-gradient(135deg,var(--green-700),var(--green-500));
  color:#fff;
  display:grid;
  place-items:center;
  font-size:20px;
  box-shadow:0 10px 20px rgba(15,90,68,0.25);
  transition:transform 220ms ease, box-shadow 220ms ease;
  position:relative;
}
.brand-mark svg{width:100%;height:100%}
.brand:hover .brand-mark{
  transform:translateY(-2px);
  box-shadow:
    0 16px 28px rgba(15,90,68,0.35),
    0 0 0 1px rgba(255,255,255,0.15),
    0 0 22px rgba(20,122,93,0.55);
}
.brand-name{
  display:flex;
  flex-direction:column;
  line-height:1.1;
}
.brand-name span:first-child{
  font-size:0.92rem;
  color:var(--green-700);
  text-transform:uppercase;
  letter-spacing:0.08em;
}
.brand-name span:last-child{
  font-size:1.05rem;
  color:var(--ink-900);
}

.nav-links{
  display:flex;
  align-items:center;
  gap:22px;
  font-size:0.95rem;
}
.nav-links a{
  position:relative;
  color:var(--ink-700);
}
.nav-links a::after{
  content:"";
  position:absolute;
  left:0;
  bottom:-6px;
  width:0;
  height:2px;
  background:var(--green-500);
  transition:width 0.25s ease;
}
.nav-links a:hover{color:var(--ink-900)}
.nav-links a:hover::after{width:100%}
.nav-dropdown{
  position:relative;
}
.nav-dropdown-toggle{
  display:inline-flex;
  align-items:center;
  gap:6px;
}
.nav-dropdown-toggle::before{
  content:"";
  width:7px;
  height:7px;
  border-right:1.8px solid currentColor;
  border-bottom:1.8px solid currentColor;
  transform:rotate(45deg) translateY(-1px);
  order:2;
  transition:transform 180ms ease;
}
.nav-dropdown-menu{
  position:absolute;
  top:calc(100% + 14px);
  left:0;
  min-width:240px;
  padding:8px;
  border:1px solid var(--line);
  border-radius:12px;
  background:#fff;
  box-shadow:0 14px 28px rgba(11,59,46,0.14);
  opacity:0;
  visibility:hidden;
  transform:translateY(8px);
  transition:opacity 180ms ease, transform 180ms ease, visibility 180ms ease;
  z-index:30;
}
.nav-dropdown-menu a{
  display:block;
  padding:10px 12px;
  border-radius:8px;
  color:var(--ink-700);
}
.nav-dropdown-menu a::after{
  display:none;
}
.nav-dropdown-menu a:hover{
  background:var(--sand-100);
  color:var(--ink-900);
}
.live-menu-item{
  display:flex !important;
  align-items:center;
  justify-content:space-between;
  gap:10px;
}
.live-dot{
  width:10px;
  height:10px;
  border-radius:50%;
  background:#ff3b30;
  box-shadow:0 0 0 rgba(255,59,48,0.7);
  animation:livePulse 1.35s infinite;
  flex:0 0 10px;
}
@keyframes livePulse{
  0%{transform:scale(0.9); box-shadow:0 0 0 0 rgba(255,59,48,0.7);}
  70%{transform:scale(1); box-shadow:0 0 0 8px rgba(255,59,48,0);}
  100%{transform:scale(0.9); box-shadow:0 0 0 0 rgba(255,59,48,0);}
}
.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown:focus-within .nav-dropdown-menu{
  opacity:1;
  visibility:visible;
  transform:translateY(0);
}
.nav-dropdown:hover .nav-dropdown-toggle::before,
.nav-dropdown:focus-within .nav-dropdown-toggle::before{
  transform:rotate(225deg) translateY(-1px);
}

.nav-cta{
  display:flex;
  align-items:center;
  gap:12px;
}
.mobile-menu-toggle{display:none}
.mobile-menu{display:none}

.button{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  padding:12px 18px;
  border-radius:999px;
  font-weight:600;
  border:1px solid transparent;
  transition:transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  cursor:pointer;
  background:var(--green-700);
  color:#fff;
  box-shadow:0 12px 24px rgba(15,90,68,0.25);
}
.button.secondary{
  background:#fff;
  color:var(--green-700);
  border-color:var(--green-700);
  box-shadow:none;
}
.button.ghost{
  background:transparent;
  color:var(--ink-700);
  border-color:var(--line);
  box-shadow:none;
}
.button:hover{transform:translateY(-1px)}
button, .button, a.button{
  transition:transform 150ms ease, box-shadow 150ms ease, opacity 150ms ease, border-color 150ms ease;
}
button:active, .button:active, a.button:active{
  transform:translateY(0) scale(0.98);
}

.reveal{
  opacity:0;
  transform:translateY(12px);
  transition:opacity 500ms ease, transform 500ms ease;
}
.reveal.is-visible{
  opacity:1;
  transform:translateY(0);
}

.hero{
  position:relative;
  z-index:1;
  padding:64px 0 32px;
}
.hero-grid{
  display:grid;
  grid-template-columns:1.1fr 0.9fr;
  gap:36px;
  align-items:center;
}
.hero-eyebrow{
  text-transform:uppercase;
  letter-spacing:0.18em;
  color:var(--green-500);
  font-size:0.78rem;
  font-weight:600;
}
.hero h1{
  font-family:"Fraunces", "Times New Roman", serif;
  font-size:clamp(2.6rem, 4vw, 3.6rem);
  margin:12px 0 14px;
}
.hero p.lead{
  font-size:1.05rem;
  color:var(--ink-500);
  line-height:1.6;
}

.hero-actions{
  display:flex;
  flex-wrap:wrap;
  gap:12px;
  margin:24px 0;
}

.hero-stats{
  display:grid;
  grid-template-columns:repeat(auto-fit, minmax(180px, 1fr));
  gap:16px;
  margin-top:18px;
}

.card{
  background:var(--card);
  border:1px solid var(--line);
  border-radius:var(--radius-lg);
  padding:18px;
  box-shadow:var(--shadow);
}
.card.slim{box-shadow:none}

.stat{
  display:flex;
  flex-direction:column;
  gap:6px;
}
.stat small{color:var(--ink-500)}
.stat strong{font-size:1.5rem}

.carousel-shell{
  border-radius:var(--radius-xl);
  overflow:hidden;
  border:1px solid var(--line);
  background:#fff;
  box-shadow:var(--shadow);
}
.carousel-caption{
  position:absolute;
  bottom:20px;
  left:20px;
  right:20px;
  background:rgba(255,255,255,0.9);
  padding:14px 16px;
  border-radius:var(--radius-md);
  font-size:0.95rem;
}

.section{
  position:relative;
  z-index:1;
  padding:44px 0;
}
.section-header{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:16px;
  margin-bottom:24px;
}
.section-header select{
  width:100%;
  padding:8px 10px;
  border-radius:10px;
  border:1px solid var(--line);
  font-family:inherit;
  font-size:0.95rem;
  background:#fff;
}
.section-header h2{
  font-family:"Fraunces", "Times New Roman", serif;
  font-size:clamp(1.8rem, 3vw, 2.4rem);
  margin:0;
}
.section-header p{
  color:var(--ink-500);
  margin:0;
  max-width:520px;
}

.prayer-grid{
  display:grid;
  grid-template-columns:2fr 1fr;
  gap:22px;
}

.prayer-times{
  display:grid;
  grid-template-columns:repeat(auto-fit, minmax(120px, 1fr));
  gap:12px;
  margin-top:14px;
}
.prayer-date-line{
  font-size:0.95rem;
  color:var(--ink-500);
  margin-bottom:10px;
}
.next-prayer-line,
.next-prayer-countdown{
  display:block;
  font-size:0.95rem;
  color:var(--green-700);
  margin-bottom:8px;
  font-weight:600;
  line-height:1.3;
  font-variant-numeric:tabular-nums;
}
.next-prayer-countdown{
  color:var(--ink-700);
  margin-bottom:12px;
}
.next-prayer-panel{
  position:relative;
  overflow:hidden;
  margin-bottom:14px;
  padding:14px 16px;
  border-radius:14px;
  border:1px solid rgba(15,90,68,0.25);
  background:
    radial-gradient(circle at 92% 20%, rgba(200,164,78,0.28), transparent 42%),
    linear-gradient(135deg, rgba(15,90,68,0.12), rgba(255,255,255,0.9) 55%);
  box-shadow:0 12px 28px rgba(11,59,46,0.12);
}
.next-prayer-panel::after{
  content:"";
  position:absolute;
  inset:0;
  background:linear-gradient(120deg, transparent 30%, rgba(255,255,255,0.45) 50%, transparent 70%);
  transform:translateX(-120%);
  animation:prayerShine 7s ease-in-out infinite;
  pointer-events:none;
}
.next-prayer-line{
  margin-bottom:4px;
  color:var(--green-900);
  font-size:1.02rem;
  letter-spacing:0.01em;
}
.next-prayer-countdown{
  margin-bottom:0;
  color:var(--ink-700);
  font-size:1rem;
}
.next-prayer-line .np-name{
  color:var(--green-700);
  font-weight:700;
}
.next-prayer-line .np-time{
  color:var(--ink-900);
  font-weight:700;
}
.next-prayer-countdown .np-counter{
  font-family:"JetBrains Mono", "Consolas", "Menlo", monospace;
  letter-spacing:0.02em;
  font-weight:700;
  color:var(--ink-900);
}
@keyframes prayerShine{
  0%, 75%, 100%{transform:translateX(-120%)}
  85%{transform:translateX(120%)}
}
.prayer-time{
  border:1px solid #d7cfbf;
  padding:14px 12px;
  border-radius:var(--radius-sm);
  text-align:center;
  background:linear-gradient(180deg, #fff 0%, #f9f5ee 100%);
  box-shadow:0 8px 20px rgba(11,59,46,0.08);
  transition:transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}
.prayer-time:hover{
  transform:translateY(-2px);
  box-shadow:0 14px 24px rgba(11,59,46,0.12);
  border-color:#c9b784;
}
.prayer-time.current{
  background:linear-gradient(160deg, #e8f7f0 0%, #f8fffb 100%);
  border-color:var(--green-500);
  box-shadow:0 14px 28px rgba(20,122,93,0.18);
}
.prayer-time.current strong{color:var(--green-700)}
.prayer-time span{
  display:block;
  color:var(--ink-500);
  font-size:0.78rem;
  text-transform:uppercase;
  letter-spacing:0.08em;
}
.prayer-time strong{
  font-size:1.15rem;
  font-weight:700;
}

.table-wrapper{
  overflow-x:auto;
  border:1px solid var(--line);
  border-radius:var(--radius-md);
}
.table-wrapper table{
  width:100%;
  border-collapse:collapse;
  font-size:0.93rem;
}
.table-wrapper th,
.table-wrapper td{
  padding:10px 12px;
  border-bottom:1px solid var(--line);
  color:var(--ink-900);
}
.table-wrapper th{
  background:var(--sand-200);
  text-align:left;
}
.services-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit, minmax(220px, 1fr));
  gap:18px;
}
.service-card h3{margin:0 0 8px;font-size:1.1rem}
.service-card p{margin:0;color:var(--ink-500)}

.review-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit, minmax(260px, 1fr));
  gap:18px;
}
.review-card{
  display:flex;
  flex-direction:column;
  gap:10px;
}
.review-meta{display:flex;align-items:center;justify-content:space-between;color:var(--ink-500);font-size:0.85rem}

.cta{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:20px;
  background:linear-gradient(135deg, rgba(15,90,68,0.12), rgba(200,164,78,0.14));
  border:1px solid var(--line);
  border-radius:var(--radius-xl);
  padding:26px;
}

.contact-grid{
  display:grid;
  grid-template-columns:2fr 1fr;
  gap:20px;
}

.contact-privacy-note {
  color: var(--ink-500);
  font-size: .9rem;
}

.contact-privacy-link {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  color: var(--green-700);
}

.consent-link {
  color: var(--green-700);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.membership-child-note {
  margin: 16px 0 0;
  color: var(--ink-700);
  font-size: .9rem;
  font-weight: 600;
}

.form-help {
  margin: 8px 0 0;
  color: var(--ink-500);
  font-size: .85rem;
  line-height: 1.5;
}

.membership-request-note {
  margin: 16px 0 8px;
  color: var(--ink-700);
  font-size: .9rem;
  font-weight: 600;
  line-height: 1.6;
}

.privacy-hero {
  padding-bottom: 48px;
}

.privacy-updated {
  margin-top: 20px;
  color: var(--ink-500);
  font-size: .9rem;
}

.privacy-section {
  padding-top: 56px;
  padding-bottom: 72px;
}

.privacy-content {
  width: 100%;
  max-width: 860px;
  margin: 0 auto;
  overflow-wrap: anywhere;
}

.privacy-hero .hero-grid,
.privacy-hero .hero-grid > *,
.privacy-content section {
  min-width: 0;
  max-width: 100%;
}

.privacy-content section + section {
  margin-top: 32px;
}

.privacy-content h2 {
  margin-bottom: 10px;
  font-family: 'Fraunces', serif;
  font-weight: 600;
}

.privacy-hero h1,
.privacy-content h2 {
  min-width: 0;
  max-width: 100%;
  overflow-wrap: normal;
  word-break: normal;
  hyphens: none;
}

.privacy-content p + p {
  margin-top: 14px;
}

.privacy-address {
  margin-top: 14px;
  font-style: normal;
  line-height: 1.75;
}

.privacy-content a {
  color: var(--green-700);
  text-decoration: underline;
  text-underline-offset: 0.16em;
}

form input, form textarea, form select{
  width:100%;
  padding:12px 14px;
  border-radius:var(--radius-sm);
  border:1px solid var(--line);
  font-family:inherit;
  font-size:0.95rem;
}
form textarea{resize:vertical}
form label{display:block;margin-bottom:6px;color:var(--ink-700);font-size:0.9rem}

.form-row{
  display:grid;
  grid-template-columns:repeat(auto-fit, minmax(200px, 1fr));
  gap:12px;
}
.form-actions{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  flex-wrap:wrap;
}
.checklist{
  display:grid;
  gap:10px;
  background:var(--sand-100);
  border:1px solid var(--line);
  border-radius:var(--radius-sm);
  padding:12px;
}
.check-item{
  display:flex;
  align-items:center;
  gap:10px;
  font-size:0.95rem;
  line-height:1.3;
}
.check-item input{
  width:16px;
  height:16px;
  flex:0 0 16px;
  margin:0;
}
.agree-row{
  display:flex;
  align-items:flex-start;
  gap:10px;
  font-size:0.95rem;
  line-height:1.3;
}
.agree-row input{
  width:16px;
  height:16px;
  flex:0 0 16px;
  margin-top:2px;
}
.agree-row label{cursor:pointer}
.form-actions .agree-row{
  flex:1 1 60%;
}
.form-actions .submit-wrap{
  flex:1 1 220px;
  display:flex;
  justify-content:flex-end;
}

.footer{
  padding:24px 0 40px;
  border-top:1px solid var(--line);
  background:rgba(255,255,255,0.9);
}
.footer-inner{
  display:flex;
  flex-wrap:wrap;
  gap:12px 28px;
  align-items:center;
  justify-content:space-between;
  color:var(--ink-500);
  font-size:0.9rem;
}

.fade-in{
  animation:fadeInUp 0.8s ease both;
}
@keyframes fadeInUp{
  from{opacity:0;transform:translateY(12px)}
  to{opacity:1;transform:translateY(0)}
}
@media (prefers-reduced-motion: reduce){
  .reveal{
    opacity:1;
    transform:none;
    transition:none;
  }
}

@media (max-width:1100px){
  .hero-grid{grid-template-columns:1fr}
  .prayer-grid{grid-template-columns:1fr}
  .contact-grid{grid-template-columns:1fr}
  .cta{flex-direction:column;align-items:flex-start}
  .nav-links{display:none}
}

@media (min-width:769px) and (max-width:1100px){
  .nav-cta{display:none}
  .mobile-menu-toggle{
    display:flex;
    flex-direction:column;
    gap:5px;
    border:0;
    background:transparent;
    padding:8px;
    margin-left:auto;
    cursor:pointer;
  }
  .mobile-menu-toggle span{
    display:block;
    width:24px;
    height:2px;
    background:var(--ink-900);
    border-radius:2px;
    transition:transform 200ms ease, opacity 200ms ease;
  }
  .mobile-menu{
    display:none;
    flex-direction:column;
    gap:8px;
    padding:12px 4vw 16px;
    border-top:1px solid var(--line);
    background:rgba(247,244,239,0.95);
  }
  .mobile-menu a{
    display:flex;
    align-items:center;
    min-height:44px;
    padding:10px 12px;
    border-radius:10px;
    background:#fff;
    border:1px solid var(--line);
  }
  body.mobile-menu-open .mobile-menu{
    display:flex;
    animation:mobileMenuIn 220ms ease;
  }
  @keyframes mobileMenuIn{
    from{opacity:0; transform:translateY(-6px)}
    to{opacity:1; transform:translateY(0)}
  }
}

@media (max-width:640px){
  .nav{flex-wrap:wrap}
  .nav-cta{width:100%;justify-content:flex-start}
  .hero{padding-top:40px}
  .button{width:100%}
  .hero-actions{width:100%}
}

@media (max-width:768px){
  .container{
    width:100%;
    max-width:100%;
    padding-left:12px;
    padding-right:12px;
  }
  .hero{padding:40px 0 24px}
  .section{padding:32px 0}
  .section-header{flex-direction:column;align-items:flex-start}
  .section-header .card{width:100%}
  .nav-links{display:none}
  .nav-cta{display:none}
  .mobile-menu-toggle{
    display:flex;
    flex-direction:column;
    gap:5px;
    border:0;
    background:transparent;
    padding:8px;
    margin-left:auto;
    cursor:pointer;
  }
  .mobile-menu-toggle span{
    display:block;
    width:24px;
    height:2px;
    background:var(--ink-900);
    border-radius:2px;
    transition:transform 200ms ease, opacity 200ms ease;
  }
  .mobile-menu{
    display:none;
    flex-direction:column;
    gap:8px;
    padding:12px 16px 16px;
    border-top:1px solid var(--line);
    background:rgba(247,244,239,0.95);
  }
  .mobile-menu a{
    display:flex;
    align-items:center;
    min-height:44px;
    padding:10px 12px;
    border-radius:10px;
    background:#fff;
    border:1px solid var(--line);
  }
  body.mobile-menu-open .mobile-menu{
    display:flex;
    animation:mobileMenuIn 220ms ease;
  }
  @keyframes mobileMenuIn{
    from{opacity:0; transform:translateY(-6px)}
    to{opacity:1; transform:translateY(0)}
  }
  .hero-grid,
  .prayer-grid,
  .contact-grid{
    grid-template-columns:1fr;
  }
  /* Prayer section hardening: prevent any child from forcing viewport overflow */
  #prayer,
  #prayer .container,
  #prayer .prayer-grid,
  #prayer .prayer-grid > *,
  #prayer .card,
  #prayer .section,
  #prayer .section-header,
  #prayer .prayer-date-line,
  #prayer .next-prayer-panel,
  #prayer .next-prayer-line,
  #prayer .next-prayer-countdown,
  #prayer .prayer-times,
  #prayer .prayer-time,
  #prayer .table-wrapper{
    max-width:100%;
    min-width:0;
    box-sizing:border-box;
  }
  #prayer .prayer-grid,
  #prayer .card{
    overflow:visible;
  }
  #prayer .next-prayer-panel{
    overflow:visible;
  }
  #prayer .prayer-date-line,
  #prayer .next-prayer-line,
  #prayer .next-prayer-countdown{
    overflow-wrap:anywhere;
    word-break:break-word;
  }
  /* Prayer times mobile layout */
  #prayer .prayer-times{
    grid-template-columns:1fr;
    gap:10px;
  }
  #prayer .card{width:100%}
  #prayer .prayer-grid{overflow:visible}
  #prayer .prayer-time{
    display:flex;
    align-items:center;
    justify-content:space-between;
    padding:14px 16px;
  }
  #prayer .prayer-time span{
    font-size:1rem;
  }
  #prayer .prayer-time strong{
    font-size:1.05rem;
  }
  /* Table wrapper stays scrollable on mobile, without pushing outer layout */
  #prayer .table-wrapper{
    width:100%;
    overflow-x:auto;
    overflow-y:hidden;
    -webkit-overflow-scrolling:touch;
  }
  #prayer .table-wrapper table{
    width:max-content;
    min-width:520px;
    max-width:none;
  }
  /* Download / print buttons stack */
  #prayer .hero-actions{
    flex-direction:column;
    width:100%;
  }
  #prayer .hero-actions .button{
    width:100%;
    min-height:44px;
  }
  /* Month select full width */
  #prayer .section-header select{
    width:100%;
  }
  body{overflow-x:hidden}
  html, body{max-width:100%}
  html, body{overflow-x:hidden}
  .cta{flex-direction:column;align-items:flex-start}
  #donate .cta{
    width:100%;
    max-width:100%;
  }
  #donate .hero-actions{
    width:100%;
    flex-direction:column;
  }
  #donate .hero-actions .button{
    width:100%;
    min-height:44px;
  }
  .footer-inner{flex-direction:column;align-items:flex-start}
  .button{width:100%}
  .button{min-height:44px}
  .submit-wrap{width:100%}
  .submit-wrap .button{width:100%}
  body{overflow-x:hidden}
  .page{overflow-x:hidden}
}

@media (max-width:480px){
  #prayer .table-wrapper table{
    min-width:480px;
  }
}

/* Carousel styles */
.carousel { position: relative; overflow: hidden; width: 100%; min-height: 18rem; }
.carousel-track { position: relative; width: 100%; min-height: 18rem; overflow: hidden; border-radius: inherit; }
.carousel-slide { position: absolute; inset: 0; opacity: 0; pointer-events: none; transform: scale(1.06); filter: blur(10px) saturate(1.1); transition: opacity 900ms cubic-bezier(.22,1,.36,1), transform 900ms cubic-bezier(.22,1,.36,1), filter 900ms cubic-bezier(.22,1,.36,1); z-index: 0; will-change: transform, opacity, filter; }
.carousel-slide.is-active { opacity: 1; pointer-events: auto; transform: scale(1); filter: blur(0); z-index: 1; }
.carousel-slide.is-leaving { opacity: 0; transform: scale(1.03); filter: blur(8px); z-index: 0; }
.carousel-slide img { display: block; width: 100%; height: 100%; object-fit: cover; }
.carousel-controls { position:absolute; bottom:16px; left:0; right:0; display:flex; justify-content:center; gap:8px; z-index:20; }
.carousel-dot { width: 10px; height: 10px; cursor: pointer; border-radius: 9999px; background:rgba(255,255,255,0.6); border:none; box-shadow:none; outline:none; }
.carousel-dot.bg-white\/80 { background-color: rgba(255,255,255,0.95); }
.carousel-dot.bg-white\/40 { background-color: rgba(255,255,255,0.55); }

/* Modal */
.fixed.inset-0.flex{display:flex}
.fixed.inset-0.hidden{display:none}
.bg-black\/50{background-color:rgba(0,0,0,0.5)}

/* Carousel */

/* Minimal utility classes for JS toggles */
.fixed{position:fixed}
.inset-0{top:0;right:0;bottom:0;left:0}
.flex{display:flex}
.hidden{display:none}
.items-center{align-items:center}
.justify-center{justify-content:center}
.relative{position:relative}
.absolute{position:absolute}
.w-full{width:100%}
.h-72{height:18rem}
.object-cover{object-fit:cover}

/* Modal */
.modal-backdrop{background-color:rgba(0,0,0,0.5)}
.modal-card{transform-origin:center}
.modal-overlay{z-index:1000}
.modal-backdrop{
  opacity:0;
  transition:opacity 240ms ease;
}
.modal-open .modal-backdrop{
  opacity:1;
  backdrop-filter:blur(2px);
}
.modal-card.wow{
  animation:vippsPop 520ms cubic-bezier(0.2, 0.7, 0.2, 1);
  box-shadow:0 22px 48px rgba(11,59,46,0.28), 0 0 0 1px rgba(15,90,68,0.2);
}
.modal-card.tilt{
  transition:transform 120ms ease-out;
  transform-style:preserve-3d;
  will-change:transform;
}
.modal-open .modal-card.tilt{
  transform:translateZ(12px);
}
@keyframes vippsPop{
  0%{transform:translateY(8px) scale(0.98); opacity:0.7}
  60%{transform:translateY(-2px) scale(1.01); opacity:1}
  100%{transform:translateY(0) scale(1); opacity:1}
}

/* ── Prayer Strip ── */
.prayer-strip-section {
  padding: 64px 0 48px;
}

.prayer-meta-row {
  display: flex;
  align-items: center;
  gap: 32px;
  margin-bottom: 32px;
}

.prayer-meta-block {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.prayer-meta-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-400, #6b7280);
}

.prayer-meta-value {
  font-family: 'Fraunces', serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--ink-900, #0f1a0f);
  line-height: 1.1;
}

.prayer-meta-mono {
  font-family: 'JetBrains Mono', monospace;
  font-size: 1.4rem;
  letter-spacing: -0.02em;
}

.prayer-meta-divider {
  width: 1px;
  height: 40px;
  background: var(--sand-200, #e8e0d0);
}

.prayer-load-status {
  margin: 18px 0 0;
  padding: 24px;
  border: 1px solid rgba(18, 92, 65, 0.2);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--green-700);
  font-weight: 600;
  text-align: center;
}

.prayer-meta-row[hidden],
.prayer-strip[hidden],
.prayer-expand-row[hidden] {
  display: none;
}

.prayer-strip {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
}

.prayer-card {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 28px 16px;
  border-radius: 14px;
  border: 1px solid var(--sand-200, #e8e0d0);
  background: var(--sand-50, #faf8f4);
  transition: background 0.25s, border-color 0.25s, transform 0.25s;
  cursor: default;
}

.prayer-card-corner {
  display: none;
  position: absolute;
  width: 54px;
  height: 54px;
  color: var(--live-gold);
  opacity: 0.9;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  pointer-events: none;
  z-index: -1;
}

.prayer-card.is-current > .prayer-card-corner {
  display: block;
}

.prayer-card-corner--top {
  top: 0;
  left: 0;
}

.prayer-card-corner--bottom {
  right: 0;
  bottom: 0;
  transform: rotate(180deg);
}

.prayer-card.is-current {
  background: var(--ink-900, #0f1a0f);
  border-color: var(--ink-900, #0f1a0f);
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}

.prayer-card.is-past {
  opacity: 0.45;
}

.prayer-card.is-current .prayer-card-name,
.prayer-card.is-current .prayer-card-time {
  color: var(--sand-50, #faf8f4);
}

.prayer-card-name {
  font-family: 'Sora', sans-serif;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-400, #6b7280);
}

.prayer-card-time {
  font-family: 'JetBrains Mono', monospace;
  font-size: 1.45rem;
  font-weight: 700;
  color: var(--ink-900, #0f1a0f);
  letter-spacing: -0.02em;
}

/* Ekspander-knapp */
.prayer-expand-row {
  display: flex;
  justify-content: center;
  margin-top: 24px;
}

.prayer-expand-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: none;
  border: none;
  cursor: pointer;
  font-family: 'Sora', sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--ink-500, #374151);
  letter-spacing: 0.02em;
  padding: 8px 16px;
  border-radius: 8px;
  transition: background 0.2s, color 0.2s;
}

.prayer-expand-btn:hover {
  background: var(--sand-100, #f5f0e8);
}

.prayer-expand-icon {
  transition: transform 0.3s ease;
}

.prayer-expand-btn[aria-expanded="true"] .prayer-expand-icon {
  transform: rotate(180deg);
}

/* Full tabell */
.prayer-table-wrap {
  display: grid;
  grid-template-rows: 0fr;
  width: 100%;
  min-width: 0;
  transition: grid-template-rows 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  margin-top: 0;
}

.prayer-table-wrap.is-open {
  grid-template-rows: 1fr;
  margin-top: 24px;
}

@media (prefers-reduced-motion: reduce) {
  .prayer-table-wrap {
    transition: none;
  }
}

.prayer-table-inner {
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
}

.prayer-table-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  padding-top: 8px;
}

.prayer-table-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-left: auto;
}

.prayer-table-actions .button.ghost {
  color: var(--green-700);
  border-color: var(--green-700);
}

.prayer-table-actions .button.ghost:hover,
.prayer-table-actions .button.ghost:focus-visible {
  color: var(--green-900);
  border-color: var(--green-500);
  background: color-mix(in srgb, var(--green-700) 8%, transparent);
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--green-500) 18%, transparent);
}

.prayer-table-title {
  font-family: 'Fraunces', serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--ink-900, #0f1a0f);
}

.prayer-table-scroll {
  width: 100%;
  min-width: 0;
  max-width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  box-sizing: border-box;
  overscroll-behavior-inline: contain;
  border-radius: 12px;
  border: 1px solid var(--sand-200, #e8e0d0);
}

.prayer-table-sticky-head {
  display: none;
}

.prayer-table {
  width: 100%;
  border-collapse: collapse;
  font-family: 'Sora', sans-serif;
  font-size: 0.875rem;
}

.prayer-table thead th {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-400, #6b7280);
  padding: 14px 16px;
  text-align: left;
  background: var(--sand-50, #faf8f4);
  border-bottom: 1px solid var(--sand-200, #e8e0d0);
  position: sticky;
  top: 0;
}

.prayer-table tbody tr {
  border-bottom: 1px solid var(--sand-100, #f0ebe0);
  transition: background 0.15s;
}

.prayer-table tbody tr:hover {
  background: var(--sand-50, #faf8f4);
}

.prayer-table tbody td {
  padding: 12px 16px;
  color: var(--ink-700, #1f2937);
}

.prayer-table tbody td:first-child {
  font-weight: 600;
  color: var(--ink-900, #0f1a0f);
}

.prayer-table tbody td:nth-child(2) {
  color: var(--ink-400, #6b7280);
  font-size: 0.8rem;
}

.prayer-table tbody td:nth-child(n+3) {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.85rem;
  letter-spacing: -0.01em;
}

/* Mobil */
@media (max-width: 640px) {
  .prayer-card-corner {
    width: 42px;
    height: 42px;
  }

  .prayer-strip {
    grid-template-columns: repeat(3, 1fr);
  }

  .prayer-card:nth-child(4),
  .prayer-card:nth-child(5) {
    grid-column: span 1;
  }

  .prayer-card:last-child {
    grid-column: span 3;
  }

  .prayer-meta-row {
    gap: 20px;
  }

  .prayer-meta-value {
    font-size: 1.2rem;
  }
}

.mobile-menu-toggle:focus-visible {
  outline: 3px solid rgba(20, 122, 93, 0.2);
  outline-offset: 3px;
  border-radius: 10px;
}

.mobile-menu-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.mobile-menu-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.mobile-menu-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

@media (min-width: 769px) and (max-width: 980px) {
  .mobile-menu-toggle {
    display: flex;
    flex-direction: column;
    gap: 5px;
    margin-left: 0;
    padding: 9px;
    border: 1px solid rgba(15, 90, 68, 0.12);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.62);
    cursor: pointer;
  }

  .mobile-menu-toggle span {
    display: block;
    width: 23px;
    height: 2px;
    border-radius: 2px;
    background: var(--ink-900, #0f1a0f);
    transition: transform 200ms ease, opacity 200ms ease;
  }

  .mobile-menu {
    display: none;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    padding: 14px max(4vw, 24px) 18px;
    border-top: 1px solid var(--line);
    background: rgba(250, 248, 244, 0.98);
  }

  .mobile-menu a {
    display: flex;
    align-items: center;
    min-height: 44px;
    padding: 10px 12px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: #fff;
  }

  body.mobile-menu-open .mobile-menu {
    display: grid;
    animation: mobileMenuIn 220ms ease;
  }

  body.mobile-menu-closing .mobile-menu {
    display: grid;
  }
}

@media (max-width: 1100px) {
  body.mobile-menu-closing .mobile-menu {
    display: flex;
    pointer-events: none;
    animation: mobileMenuOut 220ms ease forwards;
  }
}

@media (min-width: 769px) and (max-width: 980px) {
  body.mobile-menu-closing .mobile-menu {
    display: grid;
  }
}

@keyframes mobileMenuOut {
  from { opacity: 1; transform: translateY(0); }
  to { opacity: 0; transform: translateY(-6px); }
}

.prayer-month-select-native {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.prayer-month-picker {
  position: relative;
  min-width: 210px;
  font-family: 'Sora', sans-serif;
}

.prayer-month-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  width: 100%;
  font-family: 'Sora', sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--ink-900, #0f1a0f);
  background-color: var(--card, #fff);
  border: 1px solid var(--line, #E5DED2);
  border-radius: 12px;
  padding: 11px 14px;
  box-shadow: 0 4px 14px rgba(11, 59, 46, 0.07);
  cursor: pointer;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.prayer-month-trigger::after {
  content: "";
  flex: 0 0 auto;
  width: 8px;
  height: 8px;
  margin-top: -4px;
  border-right: 2px solid var(--green-500, #147A5D);
  border-bottom: 2px solid var(--green-500, #147A5D);
  transform: rotate(45deg);
  transition: transform 0.2s ease;
}

.prayer-month-picker.is-open .prayer-month-trigger::after {
  margin-top: 4px;
  transform: rotate(225deg);
}

.prayer-month-trigger:hover {
  border-color: var(--green-500, #147A5D);
  box-shadow: 0 7px 18px rgba(11, 59, 46, 0.11);
  transform: translateY(-1px);
}

.prayer-month-trigger:focus-visible,
.prayer-month-picker.is-open .prayer-month-trigger {
  border-color: var(--green-500, #147A5D);
  box-shadow: 0 0 0 3px rgba(20, 122, 93, 0.16), 0 7px 18px rgba(11, 59, 46, 0.1);
}

.prayer-month-menu {
  position: fixed;
  z-index: 1000;
  max-height: 320px;
  padding: 7px;
  overflow-y: auto;
  border: 1px solid var(--line, #E5DED2);
  border-radius: 14px;
  background: var(--card, #fff);
  box-shadow: 0 20px 45px rgba(11, 59, 46, 0.18);
}

.prayer-month-menu[hidden] {
  display: none;
}

.prayer-month-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 10px 12px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: var(--ink-900, #0f1a0f);
  font-family: 'Sora', sans-serif;
  font-size: 0.82rem;
  font-weight: 500;
  text-align: left;
  cursor: pointer;
  outline: none;
  transition: background 0.15s ease, color 0.15s ease;
}

.prayer-month-option:hover,
.prayer-month-option:focus-visible {
  color: var(--green-900, #0B3B2E);
  background: #e8f7f0;
}

.prayer-month-option.is-selected {
  color: #fff;
  background: var(--green-700, #0F5A44);
  font-weight: 700;
}

.prayer-month-option.is-selected::after {
  content: "✓";
  margin-left: 12px;
  font-size: 0.85rem;
}

.prayer-table-meta {
  font-family: 'Sora', sans-serif;
  font-size: 0.8rem;
  color: var(--ink-400, #6b7280);
  margin: 0 0 12px 0;
}

.prayer-card.is-current {
  background: var(--green-700, #0F5A44);
  border-color: var(--green-700, #0F5A44);
  box-shadow: 0 8px 24px rgba(15, 90, 68, 0.22);
}

.home-page #home .hero-stats .card.slim.stat,
.home-page #prayer .prayer-card {
  box-shadow:
    0 10px 24px rgba(11,59,46,0.16),
    0 2px 6px rgba(11,59,46,0.10);
}

.table-wrapper tr.is-today > *,
.prayer-table tbody tr.is-today > * {
  background:#17553f;
  color:#ffffff;
  border-bottom-color:#0f3d2d;
}

.nav-links button.nav-dropdown-toggle {
  position: relative;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--ink-700);
  font: inherit;
  cursor: pointer;
}

.nav-links button.nav-dropdown-toggle:hover,
.nav-links button.nav-dropdown-toggle:focus-visible {
  color: var(--ink-900);
}

.nav-links button.nav-dropdown-toggle::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 0;
  height: 2px;
  background: var(--green-500);
  transition: width 0.25s ease;
}

.nav-links button.nav-dropdown-toggle:hover::after,
.nav-links button.nav-dropdown-toggle:focus-visible::after {
  width: 100%;
}

.nav-links button.nav-dropdown-toggle:hover::before,
.nav-links button.nav-dropdown-toggle:focus-visible::before {
  border-color: var(--green-500);
}

@media (max-width: 640px) {
  .prayer-table-header {
    flex-wrap: wrap;
    gap: 12px;
  }

  .prayer-month-picker {
    order: 3;
    width: 100%;
  }
}

.footer {
  padding: 0;
  padding-bottom: env(safe-area-inset-bottom);
  border-top: 0;
  background: var(--green-900, #0B3B2E);
  color: rgba(255, 255, 255, 0.76);
}

.footer-shell {
  padding-top: 56px;
  padding-bottom: 24px;
}

.footer-main {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) repeat(2, minmax(150px, 0.7fr));
  gap: 64px;
}

.footer-identity {
  max-width: 440px;
}

.footer-eyebrow,
.footer-heading {
  display: block;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.58);
}

.footer-title {
  margin-top: 8px;
  font-family: 'Fraunces', serif;
  font-size: clamp(1.55rem, 3vw, 2.1rem);
  font-weight: 700;
  color: #fff;
}

.footer-identity p {
  max-width: 390px;
  margin: 14px 0 0;
  line-height: 1.75;
}

.footer-nav {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 11px;
}

.footer-nav .footer-heading {
  margin-bottom: 5px;
}

.footer-nav a {
  color: rgba(255, 255, 255, 0.78);
  text-decoration: none;
  transition: color 0.2s ease, transform 0.2s ease;
}

.footer-nav a:hover,
.footer-nav a:focus-visible {
  color: #fff;
  transform: translateX(3px);
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: 46px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.13);
  font-size: 0.76rem;
  color: rgba(255, 255, 255, 0.62);
}

@media (max-width: 760px) {
  .footer-main {
    grid-template-columns: 1fr;
    gap: 34px;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    margin-top: 36px;
  }
}

.nikah-contact-card,
.service-contact-card {
  position: sticky;
  top: 112px;
  align-self: start;
  padding: 28px;
}

@media (max-width: 980px) {
  .nikah-contact-card,
  .service-contact-card {
    position: static;
  }
}

/* Official Al-Noor brand system */
.brand {
  position: relative;
  flex: 0 0 auto;
  width: 168px;
  height: 72px;
  gap: 0;
}

.brand::before {
  content: "";
  display: block;
  width: 100%;
  height: 100%;
  flex: 0 0 100%;
  background: url("../assets/alnoor-logo.png") center / contain no-repeat;
  filter: drop-shadow(0 6px 10px rgba(11, 59, 46, 0.14));
  transition: transform 220ms ease, filter 220ms ease;
}

.brand:hover::before,
.brand:focus-visible::before {
  transform: translateY(-1px) scale(1.015);
  filter: drop-shadow(0 10px 16px rgba(11, 59, 46, 0.2));
}

.brand .brand-mark,
.brand .brand-name,
.footer-identity .footer-eyebrow,
.footer-identity .footer-title {
  position: absolute !important;
  width: 1px !important;
  min-width: 1px !important;
  max-width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.brand .brand-name {
  position: static;
  min-width: 142px;
  gap: 4px;
  line-height: 1;
}

.brand .brand-name span:first-child {
  color: var(--ink-900, #0f1a0f);
  font-size: 0.79rem;
  font-weight: 700;
  letter-spacing: 0.035em;
  text-transform: none;
}

.brand .brand-name span:last-child {
  color: var(--green-700, #0f5a44);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.055em;
  text-transform: uppercase;
}

.site-header {
  background: rgba(250, 248, 244, 0.92);
  border-bottom-color: rgba(15, 90, 68, 0.1);
  box-shadow: 0 8px 28px rgba(11, 59, 46, 0.055);
  backdrop-filter: blur(16px) saturate(1.25);
}

.nav {
  min-height: 84px;
  padding-top: 6px;
  padding-bottom: 6px;
  gap: 24px;
}

.nav-links {
  gap: 20px;
}

.nav-cta .button.ghost {
  display: none;
}

.nav-cta .button {
  min-height: 42px;
  padding: 10px 18px;
}

.footer-identity::before {
  content: "";
  display: block;
  width: min(250px, 100%);
  height: 108px;
  background-image: url("../assets/alnoor-logo-white.png");
  background-position: center;
  background-size: contain;
  background-repeat: no-repeat;
  filter: drop-shadow(0 12px 24px rgba(0, 0, 0, 0.14));
}

.footer-identity p {
  margin-top: 18px;
}

@media (max-width: 640px) {
  .brand {
    width: 132px;
    height: 57px;
    gap: 0;
  }

  .brand::before {
    width: 100%;
    height: 100%;
    flex-basis: 100%;
  }

  .brand .brand-name {
    min-width: 0;
    gap: 3px;
  }

  .brand .brand-name span:first-child {
    font-size: 0.72rem;
  }

  .brand .brand-name span:last-child {
    font-size: 0.63rem;
  }

  .nav {
    flex-wrap: nowrap;
    min-height: 69px;
    padding-top: 6px;
    padding-bottom: 6px;
  }
}

/* Mobile experience layer — intentionally isolated from desktop */
@media (max-width: 768px) {
  html {
    scroll-padding-top: 76px;
    -webkit-text-size-adjust: 100%;
  }

  body {
    font-size: 15.5px;
    line-height: 1.65;
    overflow-x: clip;
  }

  body.mobile-menu-open,
  body.mobile-menu-closing {
    overflow: hidden;
  }

  .page {
    overflow-x: clip;
  }

  .page::before {
    position: absolute;
    inset: -80px -35% auto;
    height: 430px;
    opacity: .72;
  }

  .fade-in,
  .reveal,
  .reveal-text,
  .reveal.is-visible {
    opacity: 1 !important;
    visibility: visible !important;
    transform: none !important;
    animation: none !important;
    transition: none !important;
  }

  .container {
    width: 100%;
    max-width: 100%;
    padding-left: max(16px, env(safe-area-inset-left));
    padding-right: max(16px, env(safe-area-inset-right));
  }

  .site-header {
    backdrop-filter: blur(12px) saturate(1.15);
  }

  .footer {
    padding-bottom: max(16px, env(safe-area-inset-bottom));
  }

  .nav {
    min-height: 66px;
    padding-top: max(12px, env(safe-area-inset-top));
    padding-bottom: 5px;
    padding-left: max(16px, env(safe-area-inset-left));
    padding-right: max(16px, env(safe-area-inset-right));
  }

  .brand {
    width: 116px;
    height: 50px;
    flex: 0 0 116px;
  }

  .mobile-menu-toggle {
    width: 44px;
    height: 44px;
    flex: 0 0 44px;
    align-items: center;
    justify-content: center;
    margin-left: auto;
    padding: 9px;
    border: 1px solid rgba(15, 90, 68, .14);
    border-radius: 12px;
    background: rgba(255, 255, 255, .7);
    -webkit-tap-highlight-color: transparent;
  }

  .mobile-menu {
    max-height: calc(100dvh - 66px);
    padding: 12px max(16px, env(safe-area-inset-right)) max(20px, env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-left));
    gap: 7px;
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-width: thin;
    box-shadow: 0 18px 30px rgba(11, 59, 46, .12);
  }

  .mobile-menu a {
    min-height: 48px;
    padding: 11px 14px;
    border-radius: 12px;
    font-size: .94rem;
    font-weight: 600;
    line-height: 1.25;
    -webkit-tap-highlight-color: transparent;
  }

  main > .hero {
    padding-top: 28px !important;
    padding-bottom: 22px !important;
  }

  .hero-grid {
    gap: 24px;
  }

  .hero-eyebrow {
    font-size: .7rem;
    line-height: 1.45;
    letter-spacing: .14em;
  }

  .hero h1 {
    max-width: 100%;
    margin: 9px 0 12px;
    font-size: clamp(2.05rem, 10vw, 2.65rem);
    line-height: 1.04;
    overflow-wrap: normal;
    word-break: normal;
    hyphens: none;
    text-wrap: balance;
  }

  .hero p.lead {
    margin-top: 0;
    font-size: 1rem;
    line-height: 1.65;
  }

  .hero-actions,
  .form-actions {
    width: 100%;
    gap: 10px;
    margin-top: 20px;
    margin-bottom: 8px;
  }

  .button,
  a.button,
  button.button {
    width: 100%;
    min-height: 48px;
    padding: 12px 16px;
    border-radius: 14px;
    line-height: 1.25;
    text-align: center;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
  }

  main > .section {
    padding-top: 30px !important;
    padding-bottom: 30px !important;
  }

  main > .section + .section {
    padding-top: 18px !important;
  }

  .card .section,
  article .section,
  aside .section,
  form .section {
    padding-top: 16px !important;
    padding-bottom: 0 !important;
  }

  .section-header {
    gap: 10px;
    margin-bottom: 18px;
  }

  .section-header h2,
  main h2 {
    font-size: clamp(1.55rem, 7vw, 2rem);
    line-height: 1.12;
    text-wrap: balance;
  }

  main h3 {
    line-height: 1.25;
    text-wrap: balance;
  }

  main p,
  main li,
  main a,
  footer p,
  footer a {
    overflow-wrap: anywhere;
  }

  main ul,
  main ol {
    padding-left: 1.25rem;
  }

  main li + li {
    margin-top: 8px;
  }

  .card {
    min-width: 0;
    padding: 19px;
    border-radius: 16px;
    box-shadow: 0 12px 28px rgba(11, 59, 46, .09);
  }

  .card[style*="padding:32px"],
  .donation-card,
  .nikah-contact-card,
  .service-contact-card {
    padding: 20px !important;
  }

  .hero-stats,
  .services-grid,
  .review-grid,
  .contact-grid,
  .activity-grid,
  .donation-grid,
  .form-row {
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 14px;
  }

  .hero-stats {
    margin-top: 16px;
  }

  .stat {
    padding: 16px 18px;
  }

  .cta {
    width: 100%;
    padding: 20px;
    gap: 14px;
    border-radius: 18px;
  }

  .cta .button {
    flex: 0 0 auto;
  }

  form input,
  form select,
  form textarea {
    min-height: 48px;
    padding: 12px 14px;
    font-size: 16px;
    line-height: 1.35;
  }

  form textarea {
    min-height: 128px;
  }

  form label {
    margin-bottom: 7px;
    font-size: .9rem;
    font-weight: 600;
  }

  .agree-row,
  .check-item {
    min-height: 44px;
    align-items: flex-start;
  }

  .agree-row input,
  .check-item input {
    width: 20px;
    height: 20px;
    flex-basis: 20px;
    margin-top: 1px;
  }

  #membershipForm .checklist .check-item {
    align-items: flex-start;
    margin-bottom: 0;
  }

  #membershipForm .checklist .check-item input[type="checkbox"] {
    min-height: 20px;
    padding: 0;
    margin: 1px 0 0;
    align-self: flex-start;
  }

  .form-actions .agree-row,
  .form-actions .submit-wrap,
  .submit-wrap {
    flex: 1 1 100%;
    width: 100%;
  }

  .carousel,
  .carousel-track {
    min-height: 220px;
  }

  .carousel-slide img,
  .hero .carousel-shell > img {
    height: 220px !important;
  }

  .carousel-shell {
    border-radius: 18px;
  }

  .carousel-controls {
    gap: 9px;
    padding: 12px;
  }

  .carousel-dot {
    width: 11px;
    height: 11px;
  }

  .prayer-meta-row {
    justify-content: space-between;
    gap: 14px;
  }

  .prayer-meta-block {
    min-width: 0;
    flex: 1 1 0;
  }

  .prayer-meta-divider {
    flex: 0 0 1px;
  }

  .prayer-meta-value {
    font-size: clamp(1.05rem, 5vw, 1.25rem);
    overflow-wrap: normal;
  }

  .prayer-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .prayer-card:nth-child(4),
  .prayer-card:nth-child(5) {
    grid-column: auto;
  }

  .prayer-card:last-child {
    grid-column: 1 / -1;
  }

  .prayer-card {
    min-width: 0;
    padding: 14px 10px;
  }

  .prayer-expand-btn {
    width: 100%;
    min-height: 48px;
    justify-content: center;
  }

  .prayer-table-header {
    align-items: stretch;
  }

  .prayer-table-actions,
  .prayer-month-picker {
    width: 100%;
  }

  .prayer-table-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .prayer-table-scroll,
  .table-wrapper {
    max-width: 100%;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
  }

  .table-wrapper {
    -webkit-overflow-scrolling: touch;
  }

  .prayer-table-scroll {
    overscroll-behavior-x: contain;
  }

  .prayer-table thead th {
    position: static;
    z-index: 3;
    background: var(--sand-50, #faf8f4);
  }

  .prayer-table-sticky-head {
    position: fixed;
    z-index: 49;
    display: none;
    overflow: hidden;
    box-sizing: border-box;
    pointer-events: none;
    background: var(--sand-50, #faf8f4);
    border: 1px solid var(--sand-200, #e8e0d0);
    border-radius: 10px 10px 0 0;
    box-shadow: 0 6px 16px rgba(11, 59, 46, 0.12);
  }

  .prayer-table-sticky-head.is-visible {
    display: block;
  }

  .prayer-table-sticky-table {
    width: auto;
    table-layout: fixed;
    transform: translate3d(calc(-1 * var(--prayer-scroll-x, 0px)), 0, 0);
    will-change: transform;
  }

  .prayer-table-sticky-table thead th {
    position: relative;
    top: auto;
    box-sizing: border-box;
    white-space: nowrap;
  }

  .prayer-table-sticky-table thead th:first-child {
    transform: translate3d(var(--prayer-scroll-x, 0px), 0, 0);
  }

  .prayer-table {
    min-width: 650px;
    font-size: .85rem;
  }

  .prayer-table th:first-child,
  .prayer-table td:first-child {
    position: sticky;
    left: 0;
    z-index: 2;
    background: #fff;
  }

  .prayer-table thead th:first-child {
    z-index: 4;
    background: var(--sand-200);
  }

  .modal-overlay {
    padding: max(12px, env(safe-area-inset-top)) max(12px, env(safe-area-inset-right)) max(12px, env(safe-area-inset-bottom)) max(12px, env(safe-area-inset-left));
  }

  .modal-card {
    width: 100% !important;
    max-width: 100% !important;
    max-height: calc(100dvh - 24px);
    padding: 64px 20px 20px;
    overflow-y: auto;
  }

  #vippsClose.button {
    top: 12px !important;
    right: 12px !important;
    width: auto;
    min-height: 40px;
    padding: 8px 13px;
    border-radius: 12px;
  }

  .footer-shell {
    padding-top: 40px;
    padding-bottom: max(24px, env(safe-area-inset-bottom));
  }

  .footer-main {
    gap: 30px;
  }

  .footer-identity::before {
    width: 190px;
    height: 82px;
    background-position: left center;
  }

  .footer-nav {
    width: 100%;
    gap: 7px;
  }

  .footer-nav a {
    display: flex;
    align-items: center;
    width: 100%;
    min-height: 44px;
    padding: 7px 0;
  }

  .footer-bottom {
    gap: 6px;
    margin-top: 28px;
    padding-top: 18px;
    line-height: 1.5;
  }

  @media (hover: none) {
    .button:hover,
    .card:hover,
    .prayer-time:hover,
    .footer-nav a:hover {
      transform: none;
    }
  }
}

@media (max-width:767px){
  .hero h1.mobile-long-title{
    font-size:clamp(1.4rem, 6.5vw, 2rem);
  }

  body main{
    display:flex;
    flex-direction:column;
  }

  .home-status-block{
    display:flex;
    flex-direction:column;
  }

  #home,
  #home .hero-grid,
  #home .hero-grid > .fade-in:first-child,
  #prayer,
  #prayer > .container{
    display:contents;
  }

  #home .hero-eyebrow,
  #home h1,
  #home p.lead,
  #home .hero-grid > .fade-in:last-child,
  #home .hero-stats,
  #prayer .prayer-meta-row,
  #prayer .prayer-strip,
  #prayer .prayer-expand-row,
  #prayer .prayer-table-wrap{
    width:100%;
    padding-left:max(16px, env(safe-area-inset-left));
    padding-right:max(16px, env(safe-area-inset-right));
  }

  #home .hero-eyebrow,
  #home h1,
  #home p.lead{
    order:1;
  }

  #home .hero-grid > .fade-in:last-child{
    order:2;
  }

  #prayer .prayer-meta-row,
  #prayer .prayer-strip{
    order:3;
  }

  #home .hero-stats{
    order:4;
  }

  #prayer .prayer-expand-row,
  #prayer .prayer-table-wrap{
    order:5;
  }

  #services{order:6}
  #donate{order:7}
  #contact{order:8}

  .footer-main{
    grid-template-columns:minmax(0, 1fr) minmax(0, 1fr);
    column-gap:18px;
    row-gap:28px;
  }

  .footer-identity{
    grid-column:1 / -1;
  }

  .footer-nav{
    min-width:0;
  }

  #home .hero-eyebrow{
    margin-top:32px;
  }

  #home p.lead{
    margin-bottom:28px;
  }

  #home .hero-grid > .fade-in:last-child{
    margin-bottom:32px;
  }

  #prayer .prayer-meta-row{
    margin-bottom:16px;
  }

  #home .hero-stats{
    margin:24px 0 0;
  }

  #prayer .prayer-expand-row{
    margin-top:20px;
  }

  #home .hero-actions{
    display:none;
  }
}

@media (max-width: 390px) {
  .privacy-hero h1 {
    font-size: clamp(1.8rem, 8vw, 2.1rem);
  }

  .privacy-content h2 {
    font-size: clamp(1.3rem, 6.5vw, 1.7rem);
  }

  .container,
  .nav {
    padding-left: max(13px, env(safe-area-inset-left));
    padding-right: max(13px, env(safe-area-inset-right));
  }

  .brand {
    width: 108px;
    height: 47px;
    flex-basis: 108px;
  }

  .hero h1 {
    font-size: clamp(1.65rem, 8vw, 2.25rem);
  }

  .card,
  .cta {
    padding: 17px;
  }

  .prayer-meta-row {
    gap: 10px;
  }

  .prayer-meta-label {
    font-size: .62rem;
    letter-spacing: .08em;
  }
}

/* Full-screen mobile navigation */
@media (max-width:1100px){
  .mobile-menu{
    position:fixed;
    inset:0;
    z-index:200;
    width:100%;
    max-width:none;
    height:100dvh;
    max-height:none;
    padding:0;
    border:0;
    background:color-mix(in srgb, var(--green-900) 72%, transparent);
    box-shadow:none;
    overflow:hidden;
    align-items:stretch;
    justify-content:flex-end;
  }

  body.mobile-menu-open .mobile-menu{
    display:flex;
    animation:mobileMenuIn 280ms cubic-bezier(.22,.75,.25,1) both;
  }

  body.mobile-menu-closing .mobile-menu{
    display:flex;
    pointer-events:none;
    animation:mobileMenuOut 280ms cubic-bezier(.55,0,.78,.25) both;
  }

  .mobile-menu-panel{
    width:min(100%, 620px);
    height:100%;
    margin-left:auto;
    display:flex;
    flex-direction:column;
    color:var(--card);
    background:var(--green-900);
    overflow-x:hidden;
    overflow-y:auto;
    touch-action:pan-y;
    overscroll-behavior:contain;
    scrollbar-width:thin;
    scrollbar-color:color-mix(in srgb, var(--gold-500) 48%, transparent) transparent;
  }

  .mobile-menu-header{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:20px;
    min-height:92px;
    padding:
      max(20px, env(safe-area-inset-top))
      max(22px, env(safe-area-inset-right))
      18px
      max(22px, env(safe-area-inset-left));
    border-bottom:1px solid color-mix(in srgb, var(--card) 13%, transparent);
  }

  .mobile-menu-logo{
    display:block;
    width:132px;
    height:57px;
    flex:0 0 132px;
    object-fit:contain;
    object-position:left center;
  }

  .mobile-menu-close{
    width:44px;
    height:44px;
    flex:0 0 44px;
    display:grid;
    place-items:center;
    padding:0;
    border:1px solid color-mix(in srgb, var(--gold-500) 36%, transparent);
    border-radius:50%;
    color:var(--gold-500);
    background:transparent;
    font:400 2rem/1 "Sora", sans-serif;
    cursor:pointer;
    -webkit-tap-highlight-color:transparent;
  }

  .mobile-menu-navigation{
    display:flex;
    flex-direction:column;
    padding:22px max(18px, env(safe-area-inset-right)) 16px max(18px, env(safe-area-inset-left));
  }

  .mobile-menu .mobile-main-link,
  .mobile-services-toggle{
    width:100%;
    min-height:58px;
    display:flex;
    align-items:center;
    justify-content:space-between;
    padding:14px 18px;
    border:0;
    border-left:3px solid transparent;
    border-radius:0 10px 10px 0;
    color:var(--card);
    background:transparent;
    font:500 clamp(1.05rem, 4.6vw, 1.25rem)/1.25 "Sora", sans-serif;
    text-align:left;
  }

  .mobile-services-toggle{
    cursor:pointer;
    -webkit-tap-highlight-color:transparent;
  }

  .mobile-menu .mobile-main-link.is-active,
  .mobile-services-toggle.is-active{
    border-left-color:var(--gold-500);
    color:var(--card);
    background:color-mix(in srgb, var(--gold-500) 11%, transparent);
  }

  .mobile-services-toggle svg{
    width:20px;
    height:20px;
    flex:0 0 20px;
    fill:none;
    stroke:var(--gold-500);
    stroke-width:1.8;
    stroke-linecap:round;
    stroke-linejoin:round;
    transition:transform 280ms ease;
  }

  .mobile-services-toggle.is-open svg{
    transform:rotate(180deg);
  }

  .mobile-services-wrap{
    display:grid;
    grid-template-rows:0fr;
    opacity:.72;
    transition:grid-template-rows 280ms ease, opacity 220ms ease;
  }

  .mobile-services-wrap.is-open{
    grid-template-rows:1fr;
    opacity:1;
  }

  .mobile-services-list{
    min-height:0;
    overflow:hidden;
    display:flex;
    flex-direction:column;
    padding-left:24px;
  }

  .mobile-menu .mobile-service-link{
    min-height:48px;
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:12px;
    margin:0 14px;
    padding:11px 8px;
    border:0;
    border-bottom:1px solid color-mix(in srgb, var(--card) 9%, transparent);
    border-radius:0;
    color:color-mix(in srgb, var(--card) 74%, transparent);
    background:transparent;
    font-size:clamp(.88rem, 3.8vw, 1rem);
    font-weight:500;
    line-height:1.35;
  }

  .mobile-menu .mobile-service-link.is-active{
    border-left:3px solid var(--gold-500);
    border-radius:0 10px 10px 0;
    color:var(--card);
    background:color-mix(in srgb, var(--gold-500) 11%, transparent);
  }

  .mobile-services-list .live-dot{
    width:7px;
    height:7px;
    flex-basis:7px;
  }

  .mobile-menu .mobile-live-link .live-dot{
    width:7px;
    height:7px;
    flex-basis:7px;
  }

  .mobile-menu-footer{
    margin-top:auto;
    padding:
      18px
      max(22px, env(safe-area-inset-right))
      max(24px, env(safe-area-inset-bottom))
      max(22px, env(safe-area-inset-left));
    border-top:1px solid color-mix(in srgb, var(--card) 10%, transparent);
  }

  .mobile-menu .mobile-member-link{
    width:100%;
    min-height:52px;
    display:flex;
    align-items:center;
    justify-content:center;
    padding:13px 20px;
    border:1px solid var(--card);
    border-radius:999px;
    color:var(--green-900);
    background:var(--card);
    font-size:1rem;
    font-weight:700;
  }

  .mobile-menu-close:focus-visible,
  .mobile-services-toggle:focus-visible,
  .mobile-menu a:focus-visible{
    outline:2px solid var(--gold-500);
    outline-offset:3px;
  }
}

@keyframes mobileMenuIn{
  from{opacity:0}
  to{opacity:1}
}

@keyframes mobileMenuOut{
  from{opacity:1}
  to{opacity:0}
}

@media (max-width:768px){
  html{
    scroll-padding-top:max(92px, calc(69px + env(safe-area-inset-top)));
  }

  body.home-page{
    background:
      linear-gradient(
        180deg,
        color-mix(in srgb, var(--sand-100) 76%, var(--card)) 0%,
        var(--card) 58%,
        color-mix(in srgb, var(--sand-100) 88%, var(--card)) 100%
      );
    background-size:100% 4050px;
    background-repeat:no-repeat;
    background-color:var(--sand-100);
  }

  .home-page .home-status-block{
    background:
      radial-gradient(
        ellipse 90% 46% at 0% 4%,
        color-mix(in srgb, var(--green-500) 10%, transparent) 0%,
        transparent 72%
      ),
      radial-gradient(
        ellipse 76% 42% at 100% 0%,
        color-mix(in srgb, var(--gold-500) 13%, transparent) 0%,
        transparent 70%
      ),
      linear-gradient(
        165deg,
        color-mix(in srgb, var(--card) 28%, transparent) 0%,
        transparent 56%,
        color-mix(in srgb, var(--green-900) 3%, transparent) 100%
      );
    background-size:100% 1110px;
    background-repeat:no-repeat;
  }

  .nav,
  .mobile-menu-header{
    min-height:92px;
    padding-top:max(12px, env(safe-area-inset-top));
    padding-bottom:12px;
    padding-left:max(16px, env(safe-area-inset-left));
    padding-right:max(16px, env(safe-area-inset-right));
  }

  .site-header,
  .mobile-menu-header{
    border-bottom:0;
  }

  .brand,
  .mobile-menu-logo{
    width:144px;
    height:62px;
    flex-basis:144px;
  }
}

@media (prefers-reduced-motion:reduce){
  body.mobile-menu-open .mobile-menu,
  body.mobile-menu-closing .mobile-menu{
    animation:none;
  }

  .mobile-services-wrap,
  .mobile-services-toggle svg{
    transition:none;
  }

  .mobile-menu .live-dot{
    animation:none;
  }
}

@media (max-width: 767px) {
  .privacy-hero h1 {
    width: 100%;
    font-size: clamp(1.45rem, 6.5vw, 1.9rem);
    letter-spacing: -.015em;
    white-space: nowrap;
  }

  main h1,
  main h2,
  main h3,
  .hero h1,
  .privacy-content h2 {
    min-width: 0;
    max-width: 100%;
    overflow-wrap: anywhere;
    word-break: normal;
    hyphens: none;
  }
}


