/* Contemporary layer: shared color, typography, layout, and motion. */
:root {
  --navy: #172c45;
  --ink: #24364a;
  --paper: #ffffff;
  --stone: #eef3f7;
  --line: #dce4eb;
  --teal: #286f73;
  --muted: #52657a;
  --body: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  --ui: var(--body);
  --ease: cubic-bezier(.2,.75,.25,1);
}
html { scroll-padding-top: 125px; }
body { font: 1.0625rem/1.8 var(--body); -webkit-font-smoothing: antialiased; }
h1,h2,h3 { color: var(--navy); }
h2 { font-size: clamp(2.7rem,4.4vw,4rem); line-height: 1.08; letter-spacing: -.025em; }
p { text-wrap: pretty; }
.eyebrow { font: 600 .75rem/1.6 var(--ui); letter-spacing: .16em; color: var(--teal); }
.section-wrap { width: min(88%,1320px); }
a:focus-visible,button:focus-visible,summary:focus-visible,input:focus-visible,textarea:focus-visible { outline-color: var(--teal); }
.site-header {
  position: sticky; top: 0; z-index: 50;
  padding: 1.25rem 5%; min-height: 92px; gap: 2rem;
  background: rgba(255,255,255,.94); border-bottom: 1px solid transparent;
  -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px);
  transition: box-shadow .3s, border-color .3s, background .3s;
}
.site-header.is-scrolled { border-color: var(--line); box-shadow: 0 8px 30px #172c4508; background: rgba(255,255,255,.97); }
.site-header::after { content: ""; position: absolute; height: 2px; inset: auto 0 0; background: var(--teal); transform: scaleX(var(--scroll-progress,0)); transform-origin: left; }
.brand { font: 1.75rem/1.2 var(--serif); color: var(--navy); letter-spacing: -.035em; flex-shrink: 1; }
.brand span { display: inline; font: inherit; letter-spacing: inherit; margin: 0; color: var(--teal); white-space: nowrap; }
.site-header .brand { white-space: nowrap; }
.site-header nav { gap: 1.4rem; font: 500 .875rem/1.5 var(--ui); }
.site-header nav a { position: relative; padding-block: .65rem; transition: color .2s; }
.site-header nav a:not(.nav-donate)::after { content: ""; position: absolute; left: 0; right: 0; bottom: .25rem; height: 1px; background: var(--teal); transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease); }
.site-header nav a[aria-current], .site-header nav a:hover { text-decoration: none; color: var(--teal); }
.site-header nav a[aria-current]::after,.site-header nav a:hover::after { transform: scaleX(1); }
.site-header nav .nav-donate { color: white; border-color: var(--navy); background: var(--navy); padding: .7rem 1.35rem; border-radius: 999px; }
.site-header nav .nav-donate:hover { background: var(--teal); border-color: var(--teal); color: white; }
.menu-toggle { border: 1px solid var(--line); border-radius: 50%; width: 46px; height: 46px; min-height: 46px; padding: 0; flex-shrink: 0; justify-content: center; }
.menu-icon { width: 17px; height: 12px; position: relative; display: block; }
.menu-icon::before,.menu-icon::after { content: ""; position: absolute; left: 0; height: 1.5px; width: 17px; background: var(--navy); transition: transform .3s var(--ease), top .3s var(--ease); }
.menu-icon::before { top: 2px; }.menu-icon::after { top: 10px; }
.menu-toggle[aria-expanded="true"] .menu-icon::before { top: 6px; transform: rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-icon::after { top: 6px; transform: rotate(-45deg); }
.hero {
  display: grid; grid-template-columns: minmax(0,1.15fr) minmax(0,.85fr); align-items: center;
  gap: 5%; padding: 3rem 6% 5rem; min-height: 0;
  text-align: left; color: var(--ink); background: linear-gradient(180deg,#fff 15%,#eef3f7); isolation: auto;
}
.hero::before { display: none; }
.hero-image { position: relative; inset: auto; z-index: auto; grid-column: 2; grid-row: 1; width: 100%; height: 650px; object-fit: cover; object-position: 53% center; border-radius: 28px; box-shadow: 0 26px 65px #172c451a; }
.hero-content { grid-column: 1; grid-row: 1; max-width: 750px; }
.hero h1 { font-size: clamp(3.25rem,5.1vw,5.5rem); line-height: 1.04; letter-spacing: -.035em; margin-bottom: 1.8rem; }
.hero h1 span { display: block; }
.hero h1 span:last-child { color: var(--teal); }
.hero .eyebrow { opacity: 1; color: var(--teal); font-size: .75rem; margin-bottom: 1.5rem; }
.hero-intro { font: 1rem/1.8 var(--body); max-width: 575px; margin: 0 0 2rem; color: var(--muted); }
.button { position: relative; overflow: hidden; gap: .8rem; min-height: 50px; padding: .95rem 1.8rem; border-radius: 999px; font: 500 .9rem/1.4 var(--ui); transition: transform .3s var(--ease),box-shadow .3s var(--ease),background .3s,border-color .3s; }
.button:hover { transform: translateY(-3px); box-shadow: 0 10px 25px #172c451c; background: var(--teal); border-color: var(--teal); }
.button:active { transform: translateY(0); }
.button span { transition: transform .3s var(--ease); }.button:hover span { transform: translate(2px,-2px); }
.hero .button-light { background: var(--navy); color: white; border-color: var(--navy); }
.hero .button-light:hover { background: var(--teal); border-color: var(--teal); }
.about-image,.donate-image { border-radius: 24px; }
.about-section { padding-block: 7rem; gap: 9%; }
.about-copy p { color: var(--muted); }
footer .brand { font-size: 1.75rem; }
footer .brand span { color: #a9d7d6; }

/* The same design language continues through the information pages. */
.page-heading { padding-block: 4.5rem; background: linear-gradient(115deg,#eef3f7 15%,#f7fbfc); border-bottom: 1px solid #e6edf2; }
.page-heading h1 { font-size: clamp(3.25rem,5.8vw,5.5rem); letter-spacing: -.035em; }
.page-heading p:last-child { color: var(--muted); font-size: 1.05rem; }
.page-heading .eyebrow { color: var(--teal); }
.page-content { padding-block: 4.5rem 5.5rem; }
.contact-section { background: var(--stone); }
.contact-grid { padding-block: 5.5rem; }
.contact-grid>div>p,.contact-detail p,.contact-detail address { color: var(--muted); }
.contact-form { background: white; padding: 2.4rem; border-radius: 22px; border: 1px solid #e0e8ee; box-shadow: 0 20px 65px #172c4506; }
.contact-form h3 { font: 500 1.55rem/1.3 var(--ui); letter-spacing: -.035em; }
.form-heading p { font-size: .95rem; color: var(--muted); }
.contact-form label { font-weight: 500; font-size: .875rem; }
.contact-form label span { font-size: .875rem; color: var(--muted); }
.contact-form input,.contact-form textarea { border-color: var(--line); border-radius: 10px; background: #f7f9fb; padding: .9rem 1rem; transition: border-color .2s, background .2s, box-shadow .2s; }
.contact-form input:focus,.contact-form textarea:focus { background: white; border-color: var(--teal); box-shadow: 0 0 0 4px #286f7310; }
.contact-detail h3 { font: 600 1rem/1.4 var(--ui); }
.contact-detail a { color: var(--teal); }
.prayer-layout { gap: 3%; grid-template-columns: minmax(0,1.65fr) minmax(290px,1fr); }
.daily-prayers { padding: 2rem; border: 1px solid var(--line); border-radius: 22px; box-shadow: 0 18px 60px #172c4506; }
.schedule-heading { align-items: flex-start; gap: .75rem; }
.schedule-heading h2 { font-size: 2.2rem; line-height: 1.15; letter-spacing: -.03em; }
.schedule-heading .eyebrow { font-size: .75rem; line-height: 1.7; }
.today-button { border-radius: 999px; padding-inline: 1rem; background: var(--stone); border-color: var(--stone); flex-shrink: 0; }
.date-controls { padding: .7rem; border-radius: 12px; background: #f6f8fa; margin-block: .5rem 1.2rem; }
.date-controls label { display: none; }
.date-controls button { background: white; border-radius: 50%; min-width: 42px; min-height: 42px; }
.date-controls input { background: transparent; border: none; font-size: .95rem; }
.prayer-table { font-size: 1rem; }
.prayer-table th,.prayer-table td { padding: 1rem .7rem; border-color: #e7edf2; }
.prayer-table thead { background: transparent; color: var(--muted); font-size: .75rem; }
.prayer-table tbody th { font: 500 1rem/1.5 var(--ui); }
.prayer-table tbody td:last-child { font-weight: 600; }
.prayer-table tbody tr { transition: background .2s; }
.prayer-table tbody tr:hover { background: #f3f8f8; }
.prayer-table .sunrise-row { color: var(--muted); font-size: .95rem; }
.prayer-table .sunrise-row th { font-weight: 400; }
.prayer-table .friday-reference { font-size: .875rem; }
.schedule-note,.calculation-note { font-size: .9rem; line-height: 1.7; color: var(--muted); }
.calculation-note summary { font-size: .875rem; font-weight: 500; color: var(--navy); }
.jumuah { border-radius: 22px; padding: 2.3rem; background: linear-gradient(145deg,#172c45 40%,#21464e); box-shadow: 0 18px 45px #172c4518; }
.jumuah h2 { color: white; font-size: 3.8rem; }
.jumuah .eyebrow { color: #b3d6d5; }
.jumuah p { font-size: .95rem; line-height: 1.8; color: #e3ecf4; }
.friday-time { border-color: #ffffff30; }
.friday-time strong { font: 400 5.1rem/1.2 var(--serif); letter-spacing: -.04em; }
.friday-time>span { font-size: .875rem; }
.jumuah .button-light { background: white; border-color: white; color: var(--navy); }
.jumuah .button-light:hover { background: #ddedee; border-color: #ddedee; }
.etiquette-section { background: var(--stone); padding-block: 5.5rem; }
.etiquette-intro>p:last-child { color: var(--muted); }
.etiquette-list { counter-reset: etiquette; gap: 1rem; grid-template-columns: 1fr 1fr; }
.etiquette-list li { counter-increment: etiquette; position: relative; padding: 1.6rem 1.6rem 1.6rem 4.6rem; border: 1px solid #e0e8ee; background: white; border-radius: 16px; transition: transform .3s var(--ease),box-shadow .3s var(--ease); }
.etiquette-list li::before { content: counter(etiquette,decimal-leading-zero); position: absolute; top: 1.6rem; left: 1.5rem; color: var(--teal); font: 500 .875rem/1.6 var(--ui); }
.etiquette-list li:hover { transform: translateY(-3px); box-shadow: 0 12px 30px #172c4509; }
.etiquette-list h3 { font: 600 1rem/1.5 var(--ui); margin-bottom: .4rem; }
.etiquette-list p { font-size: .95rem; line-height: 1.7; color: var(--muted); }
.etiquette-thanks { font-size: 1rem; color: var(--muted); }
.dress-section { padding-block: 5.5rem; }
.dress-heading>p { font-size: 1rem; color: var(--muted); }
.dress-guide>a { border-radius: 22px; overflow: hidden; border: 1px solid var(--line); box-shadow: 0 20px 55px #172c4509; }
.dress-guide img { transition: transform .5s var(--ease); }
.dress-guide>a:hover img { transform: scale(1.012); }
.dress-guide figcaption { font-size: .875rem; color: var(--muted); margin-top: 1.4rem; }
.dress-text { border-radius: 14px; border: 1px solid var(--line); padding: 1.4rem 1.6rem; }
.dress-text summary { font-size: .95rem; font-weight: 500; }
.dress-text h3 { font: 600 1rem var(--ui); }
.dress-text p { font-size: .95rem; }
.prayer-reflection { max-width: 850px; padding-top: 2rem; }
.prayer-reflection blockquote p { color: var(--navy); }
.prayer-reflection cite { color: var(--muted); }
.topic-links { gap: .8rem; }
.topic-links a { background: white; border: 1px solid var(--line); text-decoration: none; border-radius: 999px; padding: .75rem 1.2rem; font-size: .9rem; transition: color .2s,border-color .2s; }
.topic-links a:hover { border-color: var(--teal); color: var(--teal); }
.faq-layout { grid-template-columns: .8fr 1.2fr; gap: 7%; }
.faq-layout>div:first-child>p { color: var(--muted); font-size: 1rem; }
.faq-layout h2 { font-size: 3.1rem; }
.faq-list details,.faq-list details:first-child { border: 1px solid var(--line); border-radius: 14px; padding: 1.35rem 1.5rem; margin-bottom: .8rem; background: white; transition: border-color .25s,box-shadow .25s; }
.faq-list details:hover,.faq-list details[open] { border-color: #bacdd7; box-shadow: 0 6px 25px #172c4505; }
.faq-list details[open] { background: #f8fafc; }
.faq-list summary { display: flex; align-items: center; justify-content: space-between; gap: 1.3rem; list-style: none; padding: 0; font: 500 1.02rem/1.5 var(--ui); color: var(--navy); }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: "+"; font: 300 1.5rem/1 var(--ui); color: var(--teal); flex-shrink: 0; transition: transform .3s var(--ease); }
.faq-list details[open]>summary::after { transform: rotate(45deg); }
.faq-list details p,.faq-answer-list { font-size: .98rem; line-height: 1.85; color: var(--muted); }
.faq-list a { color: var(--teal); }
.faq-list .faq-quote { border-color: var(--teal); }
.faq-quote cite { color: var(--teal); }
.donate-layout p { color: var(--muted); }
footer { background: #14273d; }
footer h3 { color: #afc4d7; font: 500 .875rem var(--ui); }
footer address,footer a { font-size: .95rem; line-height: 1.8; }
.footer-grid { grid-template-columns: 1.35fr 1fr 1fr; gap: 3rem; padding-block: 4rem; }
.copyright { font-size: .8rem; color: #bdccda; border-color: #ffffff1c; }

@media(max-width:1000px) {
  .daily-prayers { padding: 1.4rem; }
  .prayer-layout { grid-template-columns: minmax(0,1.45fr) minmax(265px,1fr); }
  .jumuah { padding: 1.7rem; }
  .schedule-heading h2 { font-size: 1.9rem; }
  .prayer-table th,.prayer-table td { padding-inline: .4rem; }
}

@media(max-width:1150px) {
  .site-header { flex-wrap: wrap; gap: 0 1rem; }
  .site-header .brand { font-size: 1.65rem; }
  .menu-toggle { display: flex; }
  .site-header nav { display: none; flex-basis: 100%; padding-top: 1.3rem; align-items: stretch; flex-direction: column; gap: .25rem; }
  .site-header nav.is-open { display: flex; }
  .site-header nav a { padding: .8rem .25rem; }
  .site-header nav a::after { display: none; }
  .site-header nav .nav-donate { text-align: center; margin-block: .5rem; }
  .hero-image { height: 580px; }
}
@media(max-width:780px) {
  .site-header { min-height: 78px; padding: 1rem 5%; }
  .site-header .brand { font-size: clamp(1.15rem,3.9vw,1.65rem); }
  .menu-toggle { width: 44px; height: 44px; min-height: 44px; }
  .hero { grid-template-columns: 1fr; gap: 2.7rem; padding: 2.5rem 6% 3.5rem; }
  .hero-content { grid-column: 1; grid-row: 1; }
  .hero-image { grid-column: 1; grid-row: 2; height: 380px; border-radius: 22px; }
  .hero h1 { font-size: clamp(2.85rem,8.4vw,4.7rem); }
  .hero .eyebrow { font-size: .75rem; }
  .hero-intro { font-size: 1rem; }
  .section-wrap { width: 88%; }
  .about-section { padding-block: 4rem; gap: 2.5rem; }
  .about-image { max-height: 460px; }
  h2 { font-size: clamp(2.5rem,7.7vw,3.5rem); }
  .page-heading { padding-block: 3rem; }
  .page-heading h1 { font-size: clamp(3rem,9vw,4.5rem); }
  .page-content { padding-block: 3rem 4rem; }
  .prayer-layout,.faq-layout { grid-template-columns: 1fr; gap: 2.5rem; }
  .prayer-layout { width: 92%; }
  .daily-prayers { padding: 1.4rem 1rem; }
  .schedule-heading h2 { font-size: 2rem; }
  .schedule-heading .eyebrow { font-size: .75rem; }
  .prayer-table { font-size: .95rem; }
  .prayer-table th,.prayer-table td { padding: 1rem .4rem; }
  .prayer-table tbody th { font-size: .95rem; }
  .date-controls { padding: .5rem; }
  .jumuah { padding: 2rem; }
  .jumuah .button { width: 100%; }
  .contact-grid { padding-block: 4rem; gap: 2rem; }
  .contact-form { padding: 1.5rem; }
  .etiquette-section,.dress-section { padding-block: 4rem; }
  .etiquette-list { grid-template-columns: 1fr; }
  .etiquette-list li { padding: 1.4rem 1.3rem 1.4rem 4rem; }
  .etiquette-list li::before { top: 1.4rem; left: 1.3rem; }
  .dress-guide>a { border-radius: 12px; }
  .dress-text { padding: 1.2rem; }
  .faq-list details,.faq-list details:first-child { padding: 1.2rem; }
  .faq-layout h2 { font-size: 2.8rem; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .footer-grid>.brand { grid-column: 1/-1; }
}
@media(max-width:360px) {
  .site-header { column-gap: .5rem; padding-inline: 4%; }
  .site-header .brand { font-size: 1.1rem; }
  .hero h1 { font-size: 2.6rem; }
  .schedule-heading h2 { font-size: 1.75rem; }
  .today-button { padding-inline: .7rem; }
  .prayer-table { font-size: .875rem; }
  .prayer-table .friday-reference { font-size: .875rem; }
}
@media(max-width:420px) { .footer-grid { grid-template-columns: 1fr; } }
@media(prefers-reduced-motion:reduce) {
  html { scroll-behavior: auto; }
  *,*::before,*::after { animation: none!important; transition: none!important; }
  .button:hover,.etiquette-list li:hover,.dress-guide>a:hover img { transform: none; }
}

/* Giving form: the amount and recurring commitment stay visible together. */
[hidden] { display: none!important; }
.donation-heading { padding-block: 3.5rem; }
.giving-layout { display: grid; grid-template-columns: .85fr 1.15fr; gap: 8%; align-items: start; }
.giving-intro h2 { font-size: clamp(2.6rem,4.1vw,3.8rem); }
.giving-intro>p { color: var(--muted); }
.giving-image { width: 100%; height: 340px; object-fit: cover; border-radius: 20px; margin-top: 2rem; }
.giving-help { margin-top: 2rem; padding-top: 1.8rem; border-top: 1px solid var(--line); }
.giving-help h3 { font: 600 1rem/1.5 var(--ui); margin-bottom: .5rem; }
.giving-help a { font-size: .95rem; color: var(--teal); }
.giving-help p { color: var(--muted); font-size: .9rem; margin-top: 1rem; }
.giving-form { padding: 2rem; border: 1px solid var(--line); border-radius: 24px; box-shadow: 0 20px 65px #172c4508; }
.giving-notice { padding: 1rem 1.1rem; background: var(--stone); border-radius: 12px; color: var(--muted); font-size: .9rem; line-height: 1.7; }
.giving-form fieldset { padding: 0; margin: 0 0 1.9rem; border: 0; min-width: 0; }
.giving-form legend { display: flex; align-items: center; gap: .7rem; padding: 0; margin-bottom: 1rem; font: 600 1rem/1.6 var(--ui); }
.giving-form legend>span { color: var(--teal); font: 500 .8rem/1.5 var(--ui); }
.fund-options { display: grid; gap: .65rem; }
.fund-options label { display: flex; gap: .85rem; align-items: center; padding: 1rem; border: 1px solid var(--line); border-radius: 12px; cursor: pointer; transition: background .2s,border-color .2s; }
.fund-options label:has(input:checked) { background: #f0f7f7; border-color: var(--teal); }
.fund-options label:focus-within { outline: 2px solid var(--teal); outline-offset: 3px; }
.fund-options input { accent-color: var(--teal); width: 18px; height: 18px; flex-shrink: 0; }
.fund-options label>span { display: grid; gap: .15rem; }
.fund-options strong { font: 500 .95rem/1.5 var(--ui); }
.fund-options label>span>span { font: .875rem/1.6 var(--ui); color: var(--muted); }
.frequency-options,.amount-options { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: .5rem; }
.frequency-options { grid-template-columns: repeat(auto-fit,minmax(5.25rem,1fr)); }
.frequency-options label { position: relative; cursor: pointer; }
.frequency-options input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.frequency-options span,.amount-options button { display: block; text-align: center; padding: .85rem .3rem; font: 500 .875rem/1.5 var(--ui); border: 1px solid var(--line); border-radius: 10px; background: white; color: var(--navy); transition: background .2s,color .2s,border-color .2s; }
.frequency-options input:checked+span,.amount-options button[aria-pressed="true"] { background: var(--navy); color: white; border-color: var(--navy); }
.frequency-options input:focus-visible+span { outline: 3px solid var(--teal); outline-offset: 3px; }
.field-note { color: var(--muted); font: .875rem/1.65 var(--ui); margin: .8rem 0 0; }
.amount-label { display: flex; justify-content: space-between; margin: 1rem 0 .5rem; font: 500 .875rem/1.5 var(--ui); }
.amount-label span { color: var(--muted); font-weight: 400; }
.amount-input { display: flex; align-items: center; gap: .6rem; border: 1px solid var(--line); border-radius: 12px; padding: .7rem 1rem; }
.amount-input>span { font-size: 1.5rem; color: var(--muted); }
.amount-input input { border: 0; min-width: 0; width: 100%; font: 500 1.7rem/1.5 var(--ui); color: var(--navy); background: transparent; }
.amount-input:focus-within { border-color: var(--teal); box-shadow: 0 0 0 3px #286f7314; }
#donor-details>label { display: block; margin: 1rem 0 .4rem; font-size: .9rem; }
#donor-details>input { padding: .8rem 1rem; width: 100%; font-size: 1rem; border: 1px solid var(--line); border-radius: 10px; }
.giving-summary { background: #f2f7f9; border-radius: 14px; padding: 1.3rem; margin-top: 1.5rem; }
.giving-summary>span { display: block; font-size: .875rem; color: var(--muted); }
.giving-summary>span strong { color: var(--navy); font-weight: 500; }
.giving-summary>div { display: flex; align-items: baseline; gap: .6rem; flex-wrap: wrap; margin-top: .2rem; }
#summary-amount { font: 500 2.5rem/1.5 var(--ui); letter-spacing: -.05em; }
#summary-frequency { font-size: .9rem; color: var(--muted); }
.checkout-button { width: 100%; margin-top: 1.2rem; }
.checkout-button:disabled { opacity: .7; transform: none; box-shadow: none; cursor: not-allowed; }
.checkout-note { text-align: center; }
.recurring-consent { display: flex; align-items: flex-start; gap: .75rem; margin-top: 1.3rem; font-size: .9rem; }
.recurring-consent input { accent-color: var(--teal); width: 18px; height: 18px; margin-top: .25rem; flex-shrink: 0; }
.donation-error { color: #8f2525; background: #fff2f2; padding: .9rem; border-radius: 10px; font-size: .9rem; margin: 1rem 0 0; }
@media(max-width:780px) { .giving-layout { grid-template-columns: 1fr; gap: 2.5rem; }.giving-form { padding: 1.3rem; }.giving-intro h2 { font-size: 3rem; }.giving-image { height: 230px; }.giving-intro { order: 2; }.giving-form { order: 1; } }
@media(max-width:360px) { .frequency-options { grid-template-columns: 1fr 1fr; }.giving-form { padding: 1rem; }.giving-layout { width: 92%; } }
