/*
Theme Name: Nuur-Moschee Frankfurt
Text Domain: nuur-moschee
Description: Theme for the Nuur-Moschee, Frankfurt am Main — based on the Baitun Noor / Sadiq Mosque one-page design. German by default, with a 10-language homepage.
Version: 1.1.0
Requires at least: 6.0
Requires PHP: 7.4
License: GPL-2.0-or-later
*/

:root {
	--color-primary: #e96656;
	--color-primary-600: #d9503f;
	--color-charcoal: #272727;
	--color-ink: #404040;
	--color-muted: #808080;
	--color-mist: #f5f5f5;
	--color-green: #34d293;
	--color-blue: #3ab0e2;
	--color-gold: #e7c14c;
	--font-sans: "Lato", "Helvetica Neue", Arial, sans-serif;
	--font-display: "Montserrat", "Helvetica Neue", Arial, sans-serif;
	--font-arabic: "Amiri", serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body { margin: 0; font-family: var(--font-sans); color: var(--color-ink); background: #fff; line-height: 1.6; -webkit-font-smoothing: antialiased; }
a { color: inherit; }
img { max-width: 100%; }

.sm-wrap { width: 100%; max-width: 1140px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 768px) { .sm-wrap { padding: 0 24px; } }

/* ---------- Header ---------- */
.sm-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.97); box-shadow: 0 1px 0 rgba(0,0,0,.08); backdrop-filter: blur(6px); }
.admin-bar .sm-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .sm-header { top: 46px; } }
@media (max-width: 600px) { .admin-bar .sm-header { top: 0; } }
.sm-header__inner { display: flex; align-items: center; justify-content: space-between; min-height: 68px; gap: 16px; }
.sm-brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--color-charcoal); }
.sm-brand img { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 2px #fff, 0 0 0 3px rgba(0,0,0,.08); }
.sm-brand__name { font-family: var(--font-display); font-weight: 700; font-size: 1.05rem; letter-spacing: .06em; text-transform: uppercase; line-height: 1.1; }
.sm-brand__place { display: block; font-family: var(--font-sans); font-weight: 400; font-size: .72rem; letter-spacing: .12em; color: var(--color-muted); }
.sm-nav ul { display: flex; gap: 28px; list-style: none; margin: 0; padding: 0; }
.sm-nav a { font-size: .95rem; text-decoration: none; color: var(--color-ink); padding: 6px 0; border-bottom: 2px solid transparent; transition: color .2s, border-color .2s; }
.sm-nav a:hover { color: var(--color-primary); border-color: var(--color-primary); }
.sm-burger { display: none; background: none; border: 0; padding: 8px; cursor: pointer; color: var(--color-charcoal); }
@media (max-width: 960px) {
	.sm-burger { display: block; }
	.sm-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: #fff; box-shadow: 0 8px 16px rgba(0,0,0,.08); }
	.sm-nav.is-open { display: block; }
	.sm-nav ul { flex-direction: column; gap: 0; padding: 8px 16px 16px; }
	.sm-nav a { display: block; padding: 12px 0; border-bottom: 1px solid #eee; }
}

/* ---------- Hero ---------- */
.sm-hero { position: relative; color: #fff; text-align: center; background-color: var(--color-charcoal); background-size: cover; background-position: center 55%; padding: 120px 0 170px; overflow: hidden; }
.sm-hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10,18,30,.55) 0%, rgba(10,18,30,.7) 100%); }
.sm-hero > * { position: relative; }
.sm-hero__arabic { font-family: var(--font-arabic); font-size: 1.6rem; opacity: .85; margin: 0 0 12px; }
.sm-hero__title { font-family: var(--font-display); font-weight: 700; font-size: clamp(2.4rem, 7vw, 4.4rem); letter-spacing: .04em; text-transform: uppercase; margin: 0; line-height: 1.05; text-shadow: 0 2px 20px rgba(0,0,0,.35); }
.sm-hero__sub { font-size: clamp(1rem, 2.2vw, 1.2rem); font-weight: 300; margin: 18px auto 0; max-width: 620px; opacity: .92; }
.sm-hero__actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 32px; }

.sm-btn { display: inline-block; font-family: var(--font-display); font-weight: 600; font-size: .85rem; letter-spacing: .08em; text-transform: uppercase; text-decoration: none; padding: 14px 28px; border-radius: 4px; border: 2px solid var(--color-primary); background: var(--color-primary); color: #fff; cursor: pointer; transition: background .2s, border-color .2s, color .2s; }
.sm-btn:hover { background: var(--color-primary-600); border-color: var(--color-primary-600); }
.sm-btn--ghost { background: transparent; border-color: rgba(255,255,255,.8); }
.sm-btn--ghost:hover { background: #fff; border-color: #fff; color: var(--color-charcoal); }

/* ---------- Prayer times strip ---------- */
.sm-prayer { position: relative; z-index: 2; margin-top: -110px; }
.sm-prayer__card { background: #fff; border-radius: 8px; box-shadow: 0 20px 50px rgba(0,0,0,.14); padding: 24px 20px 20px; }
.sm-prayer__head { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: 6px 16px; margin-bottom: 16px; padding: 0 4px; }
.sm-prayer__title { font-family: var(--font-display); font-weight: 700; font-size: 1rem; letter-spacing: .1em; text-transform: uppercase; color: var(--color-charcoal); margin: 0; }
.sm-prayer__note { font-size: .85rem; color: var(--color-muted); margin: 0; }
.sm-prayer__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; list-style: none; margin: 0; padding: 0; }
@media (min-width: 760px) { .sm-prayer__grid { grid-template-columns: repeat(6, 1fr); } }
.sm-prayer__item { text-align: center; padding: 14px 6px; border-radius: 6px; background: var(--color-mist); transition: background .25s, color .25s, transform .25s; }
.sm-prayer__name { display: block; font-family: var(--font-display); font-weight: 600; font-size: .75rem; letter-spacing: .1em; text-transform: uppercase; color: var(--color-muted); overflow-wrap: anywhere; }
.sm-prayer__time { display: block; font-size: 1.35rem; font-weight: 700; color: var(--color-charcoal); margin-top: 2px; }
.sm-prayer__time--tbc { font-size: 1rem; font-weight: 400; color: var(--color-muted); padding: 4px 0 3px; }
.sm-prayer__item.is-next { background: var(--color-charcoal); transform: translateY(-2px); }
.sm-prayer__item.is-next .sm-prayer__name { color: var(--color-primary); }
.sm-prayer__item.is-next .sm-prayer__time { color: #fff; }
.sm-prayer__item--jumuah { background: #fdf0ee; }
.sm-prayer__item--jumuah .sm-prayer__name { color: var(--color-primary); }

/* ---------- Sections ---------- */
.sm-section { padding: 90px 0; }
.sm-section--tight-top { padding-top: 80px; }
.sm-heading { font-family: var(--font-display); font-weight: 700; font-size: clamp(1.8rem, 4vw, 2.5rem); letter-spacing: .02em; text-transform: uppercase; text-align: center; color: var(--color-charcoal); margin: 0; }
.sm-subheading { text-align: center; margin: 8px 0 0; font-size: 1rem; color: var(--color-muted); }
.sm-dark { background: var(--color-charcoal); color: #bdbdbd; }
.sm-dark .sm-heading { color: #fff; }
.sm-dark .sm-subheading { color: #fff; font-weight: 700; }

/* ---------- True Islam ---------- */
.sm-pillars { display: grid; grid-template-columns: repeat(2, 1fr); gap: 48px 24px; margin: 56px auto 0; max-width: 960px; }
@media (min-width: 860px) { .sm-pillars { grid-template-columns: repeat(4, 1fr); } }
.sm-pillar { text-align: center; display: block; text-decoration: none; color: inherit; border-radius: 12px; -webkit-tap-highlight-color: transparent; cursor: pointer; }
.sm-pillar:focus-visible { outline: 3px solid var(--sm-accent, var(--color-primary)); outline-offset: 8px; }
.sm-pillar__img { width: 118px; height: 118px; margin: 0 auto; border-radius: 50%; border: 8px solid #ececec; background: #fff; overflow: hidden; display: flex; align-items: center; justify-content: center; box-shadow: 0 6px 14px rgba(0,0,0,.08); transition: border-color .3s, transform .3s cubic-bezier(.34,1.56,.64,1), box-shadow .3s; }
.sm-pillar.is-pressed .sm-pillar__img, .sm-pillar:active .sm-pillar__img { transform: translateY(2px) scale(.92); box-shadow: inset 0 3px 8px rgba(0,0,0,.18), 0 1px 3px rgba(0,0,0,.08); border-color: var(--sm-accent, var(--color-primary)); transition-duration: .08s; }
.sm-pillar.is-pressed .sm-pillar__img img, .sm-pillar:active .sm-pillar__img img { filter: brightness(.94); }
.sm-pillar__img img { width: 100%; height: 100%; object-fit: cover; }
.sm-pillar--red .sm-pillar__img img, .sm-pillar--green .sm-pillar__img img { object-fit: contain; padding: 14px; }
.sm-pillar:hover .sm-pillar__img { transform: translateY(-4px); }
.sm-pillar--red:hover .sm-pillar__img { border-color: var(--color-primary); }
.sm-pillar--green:hover .sm-pillar__img { border-color: var(--color-green); }
.sm-pillar--blue:hover .sm-pillar__img { border-color: var(--color-blue); }
.sm-pillar--gold:hover .sm-pillar__img { border-color: var(--color-gold); }
.sm-pillar__title { font-family: var(--font-sans); font-weight: 700; font-size: .95rem; text-transform: uppercase; color: var(--color-charcoal); margin: 22px 0 0; padding-bottom: 8px; position: relative; }
.sm-pillar__title::after { content: ""; position: absolute; left: 50%; bottom: 0; width: 34px; height: 2px; transform: translateX(-50%); background: var(--sm-accent, var(--color-primary)); transition: width .3s; }
.sm-pillar:hover .sm-pillar__title::after { width: 60px; }
.sm-pillar--red { --sm-accent: var(--color-primary); }
.sm-pillar--green { --sm-accent: var(--color-green); }
.sm-pillar--blue { --sm-accent: var(--color-blue); }
.sm-pillar--gold { --sm-accent: var(--color-gold); }
.sm-pillar__text { font-size: .95rem; color: var(--color-muted); margin: 14px auto 0; max-width: 220px; }

/* ---------- Ahmadiyyat ---------- */
.sm-about { display: grid; gap: 32px; margin-top: 50px; align-items: start; }
@media (min-width: 860px) { .sm-about { grid-template-columns: 1fr 1fr; } }
.sm-about__quote { font-weight: 300; font-size: clamp(1.8rem, 4vw, 2.9rem); line-height: 1.25; color: #fff; margin: 0; }
@media (min-width: 860px) { .sm-about__quote { text-align: right; } }
.sm-about__text p { margin: 0 0 1em; font-size: 1rem; }
.sm-about__links { display: flex; gap: 20px; flex-wrap: wrap; margin-top: 8px; }
.sm-about__links a { color: #fff; font-weight: 700; font-size: .9rem; text-decoration: none; border-bottom: 1px solid var(--color-primary); padding-bottom: 2px; }
.sm-about__links a:hover { color: var(--color-primary); }

/* ---------- Visit ---------- */
.sm-visit { display: grid; gap: 32px; margin-top: 50px; }
@media (min-width: 860px) { .sm-visit { grid-template-columns: 5fr 7fr; gap: 48px; align-items: stretch; } }
.sm-visit__list { list-style: none; margin: 0; padding: 0; }
.sm-visit__list li { display: flex; gap: 16px; padding: 18px 0; border-bottom: 1px solid #eee; }
.sm-visit__list li:first-child { padding-top: 0; }
.sm-visit__icon { flex: 0 0 40px; height: 40px; border-radius: 50%; background: #fdf0ee; color: var(--color-primary); display: flex; align-items: center; justify-content: center; }
.sm-visit__icon svg { width: 20px; height: 20px; }
.sm-visit__label { display: block; font-family: var(--font-display); font-weight: 700; font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; color: var(--color-charcoal); margin-bottom: 2px; }
.sm-visit__list a { color: var(--color-primary); text-decoration: none; }
.sm-visit__list a:hover { text-decoration: underline; }
.sm-map { min-height: 340px; border-radius: 8px; overflow: hidden; background: var(--color-mist); }
.sm-map iframe { display: block; width: 100%; height: 100%; min-height: 340px; border: 0; }

/* ---------- Contact ---------- */
.sm-contact { position: relative; background-color: var(--color-charcoal); background-size: cover; background-position: center; padding: 90px 0; }
.sm-contact::before { content: ""; position: absolute; inset: 0; background: rgba(12,20,32,.72); }
.sm-contact > * { position: relative; }
.sm-contact .sm-heading { color: #fff; }
.sm-contact .sm-subheading { color: rgba(255,255,255,.8); }
.sm-form { max-width: 860px; margin: 40px auto 0; }
.sm-form label { display: block; }
.sm-form__row { display: grid; gap: 16px; }
@media (min-width: 760px) { .sm-form__row { grid-template-columns: repeat(3, 1fr); } }
.sm-form input[type=text], .sm-form input[type=email], .sm-form textarea { width: 100%; font: inherit; font-size: 1rem; color: var(--color-charcoal); background: rgba(255,255,255,.95); border: 1px solid transparent; border-radius: 4px; padding: 13px 14px; transition: border-color .2s, box-shadow .2s; }
.sm-form input:focus, .sm-form textarea:focus { outline: none; border-color: var(--color-primary); box-shadow: 0 0 0 3px rgba(233,102,86,.35); }
.sm-form textarea { min-height: 180px; resize: vertical; margin-top: 16px; display: block; }
.sm-form__foot { display: flex; justify-content: flex-end; margin-top: 18px; }
.sm-form__hp { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
.sm-sr { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.sm-notice { max-width: 860px; margin: 28px auto 0; padding: 14px 18px; border-radius: 4px; font-weight: 700; }
.sm-notice--ok { background: #e6f8ef; color: #1c6b48; }
.sm-notice--err { background: #fdecea; color: #9b2c1f; }

/* ---------- Footer ---------- */
.sm-footer { background: #1f1f1f; color: #a8a8a8; font-size: .92rem; }
.sm-footer__grid { display: grid; gap: 28px; padding: 48px 0 36px; text-align: center; }
@media (min-width: 760px) {
	.sm-footer__grid { grid-template-columns: repeat(3, 1fr); }
	.sm-footer__grid--two { grid-template-columns: repeat(2, 1fr); max-width: 760px; }
}
.sm-footer__label { display: block; font-family: var(--font-display); font-weight: 700; font-size: .75rem; letter-spacing: .12em; text-transform: uppercase; color: #fff; margin-bottom: 8px; }
.sm-footer a { color: #d6d6d6; text-decoration: none; }
.sm-footer a:hover { color: var(--color-primary); }
.sm-footer__base { border-top: 1px solid rgba(255,255,255,.08); padding: 18px 0; text-align: center; font-size: .82rem; color: #7a7a7a; }
.sm-footer__credit { display: block; margin-top: 6px; font-size: .75rem; }
.sm-footer__credit a { color: #7a7a7a; }

/* ---------- Inner pages / blog ---------- */
.sm-page-hero { background: var(--color-charcoal); color: #fff; text-align: center; padding: 64px 0; }
.sm-page-hero h1 { font-family: var(--font-display); font-weight: 700; font-size: clamp(1.8rem, 4vw, 2.6rem); text-transform: uppercase; letter-spacing: .03em; margin: 0; }
.sm-page-hero p { margin: 8px 0 0; color: #bdbdbd; }
.sm-content { max-width: 760px; margin: 0 auto; padding: 60px 16px 90px; }
.sm-content h2, .sm-content h3 { font-family: var(--font-display); color: var(--color-charcoal); margin: 1.6em 0 .5em; line-height: 1.25; }
.sm-content h2 { font-size: 1.6rem; }
.sm-content h3 { font-size: 1.25rem; }
.sm-content p, .sm-content ul, .sm-content ol { margin: 0 0 1.1em; }
.sm-content ul { list-style: disc; padding-left: 1.4em; }
.sm-content ol { list-style: decimal; padding-left: 1.4em; }
.sm-content a { color: var(--color-primary); }
.sm-content a.sm-btn { color: #fff; }
.sm-content img { max-width: 100%; height: auto; border-radius: 6px; }
.sm-posts { display: grid; gap: 28px; max-width: 1000px; margin: 0 auto; padding: 60px 16px 90px; }
@media (min-width: 760px) { .sm-posts { grid-template-columns: repeat(2, 1fr); } }
.sm-post-card { border: 1px solid #eee; border-radius: 8px; overflow: hidden; background: #fff; transition: box-shadow .25s, transform .25s; }
.sm-post-card:hover { box-shadow: 0 14px 30px rgba(0,0,0,.08); transform: translateY(-2px); }
.sm-post-card img { width: 100%; height: auto; aspect-ratio: 16/9; object-fit: cover; display: block; }
.sm-post-card__body { padding: 22px; }
.sm-post-card__date { font-size: .8rem; color: var(--color-muted); text-transform: uppercase; letter-spacing: .08em; }
.sm-post-card h2 { font-family: var(--font-display); font-size: 1.2rem; margin: 6px 0 10px; line-height: 1.3; }
.sm-post-card h2 a { color: var(--color-charcoal); text-decoration: none; }
.sm-post-card h2 a:hover { color: var(--color-primary); }
.sm-post-card p { margin: 0; color: var(--color-muted); font-size: .95rem; }
.sm-empty { text-align: center; color: var(--color-muted); grid-column: 1 / -1; padding: 40px 0; }
.sm-pagination { grid-column: 1 / -1; display: flex; justify-content: center; gap: 8px; }
.sm-pagination .page-numbers { padding: 8px 14px; border: 1px solid #ddd; border-radius: 4px; text-decoration: none; color: var(--color-ink); }
.sm-pagination .current { background: var(--color-primary); border-color: var(--color-primary); color: #fff; }

/* ---------- Motion ---------- */
@media (hover: hover) and (pointer: fine) and (min-width: 861px) {
	.sm-hero, .sm-contact { background-attachment: fixed; }
}
@media (prefers-reduced-motion: no-preference) {
	.js .sm-reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
	.js .sm-reveal.is-visible { opacity: 1; transform: none; }
	.sm-hero__title, .sm-hero__sub, .sm-hero__actions, .sm-hero__arabic { animation: sm-rise .9s ease both; }
	.sm-hero__title { animation-delay: .1s; }
	.sm-hero__sub { animation-delay: .25s; }
	.sm-hero__actions { animation-delay: .4s; }
	@keyframes sm-rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
}
