/* iMuslim – Global Styles */

:root {
  --color-bg: #f8f4ee;
  --color-bg-alt: #ffffff;
  --color-primary: #0f3b33;
  --color-primary-soft: #1b5448;
  --color-accent: #c9a45b;
  --color-text: #18231f;
  --color-muted: #6c7a73;
  --shadow-soft: 0 18px 45px rgba(0, 0, 0, 0.06);
  --radius-xl: 32px;
  --radius-lg: 20px;
  --radius-pill: 999px;
  --transition-fast: 180ms ease-out;
  --transition-med: 260ms ease-out;
  --max-width: 1120px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "SF Pro Text",
    "San Francisco", "Segoe UI", sans-serif;
  background: radial-gradient(circle at top left, #f3e7d9 0, #f7f3ed 40%, #f9f7f2 70%, #ffffff 100%);
  color: var(--color-text);
  -webkit-font-smoothing: antialiased;
}

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

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

button {
  font-family: inherit;
}

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

main {
  flex: 1;
}

.shell {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 20px 20px 64px;
}

@media (min-width: 768px) {
  .shell {
    padding: 28px 32px 80px;
  }
}

/* Top Navigation */

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 28px;
}

.nav-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand-mark {
  width: 36px;
  height: 36px;
  border-radius: 16px;
  background: radial-gradient(circle at 30% 20%, #ffffff, #f3e7d9 40%, #0f3b33 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.14);
  position: relative;
  overflow: hidden;
}

.brand-mark::before {
  content: "";
  position: absolute;
  inset: 20%;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.6);
}

.brand-mark svg {
  width: 18px;
  height: 18px;
  color: #fdf9f1;
}

.brand-title {
  font-weight: 600;
  letter-spacing: 0.04em;
  font-size: 0.92rem;
  text-transform: uppercase;
}

.nav-links {
  display: none;
  gap: 18px;
  align-items: center;
  font-size: 0.9rem;
  color: var(--color-muted);
}

.nav-links a {
  position: relative;
  padding-bottom: 4px;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 1px;
  background: linear-gradient(90deg, var(--color-accent), var(--color-primary-soft));
  transition: width var(--transition-med);
}

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

.nav-cta {
  display: none;
}

@media (min-width: 768px) {
  .nav-links {
    display: flex;
  }
  .nav-cta {
    display: inline-flex;
  }
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: var(--radius-pill);
  border: 0;
  cursor: pointer;
  font-size: 0.9rem;
  padding: 9px 18px;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast),
    background var(--transition-fast), color var(--transition-fast);
}

.btn-primary {
  background: linear-gradient(135deg, var(--color-primary), var(--color-primary-soft));
  color: #fdfaf4;
  box-shadow: 0 14px 30px rgba(6, 41, 34, 0.28);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 18px 40px rgba(6, 41, 34, 0.4);
}

.btn-outline {
  border: 1px solid rgba(24, 35, 31, 0.16);
  background: rgba(255, 255, 255, 0.9);
  color: var(--color-text);
}

.btn-outline:hover {
  background: #ffffff;
  border-color: rgba(24, 35, 31, 0.28);
}

/* Hero */

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr);
  gap: 32px;
  align-items: center;
  margin-top: 8px;
}

.hero-content {
  max-width: 520px;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: var(--radius-pill);
  padding: 5px 11px;
  font-size: 0.78rem;
  color: var(--color-muted);
  background: rgba(255, 255, 255, 0.6);
  border: 1px solid rgba(201, 164, 91, 0.35);
  margin-bottom: 14px;
}

.pill-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 20%, #ffe9b8, #c9a45b);
  box-shadow: 0 0 0 4px rgba(201, 164, 91, 0.22);
}

.hero h1 {
  font-size: 2.15rem;
  line-height: 1.1;
  letter-spacing: -0.04em;
  margin: 0 0 14px;
}

.hero h1 span {
  background: linear-gradient(120deg, var(--color-primary), #376b5f);
  -webkit-background-clip: text;
  color: transparent;
}

.hero-subtitle {
  color: var(--color-muted);
  font-size: 0.99rem;
  line-height: 1.6;
  margin-bottom: 18px;
}

.hero-subtitle strong {
  font-weight: 600;
  color: var(--color-primary-soft);
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-bottom: 10px;
}

.hero-badge {
  font-size: 0.78rem;
  color: var(--color-muted);
}

.store-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border-radius: 999px;
  padding: 9px 14px;
  border: 1px solid rgba(24, 35, 31, 0.16);
  background: rgba(255, 255, 255, 0.95);
  cursor: pointer;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.04);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast),
    border-color var(--transition-fast), background var(--transition-fast);
}

.store-btn:hover {
  transform: translateY(-1px);
  border-color: rgba(24, 35, 31, 0.34);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.08);
  background: #ffffff;
}

.store-icon {
  width: 26px;
  height: 26px;
  border-radius: 999px;
  background: radial-gradient(circle at 30% 20%, #ffffff, #d5c4a3, #0f3b33);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fdf8ee;
}

.store-label {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.store-label span {
  font-size: 0.7rem;
  color: var(--color-muted);
}

.store-label strong {
  font-size: 0.95rem;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 12px;
  font-size: 0.78rem;
  color: var(--color-muted);
}

.hero-meta span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: rgba(24, 35, 31, 0.4);
}

.hero-visual {
  position: relative;
}

.hero-app-screen {
  width: min(340px, 100%);
  margin-left: auto;
  margin-right: auto;
  border-radius: 32px;
  box-shadow: var(--shadow-soft);
}

.phone-notch {
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  width: 96px;
  height: 16px;
  background: rgba(14, 32, 27, 0.96);
  border-radius: 999px;
}

.moon-arc {
  position: absolute;
  top: 24px;
  right: -20px;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  border: 1px solid rgba(255, 240, 214, 0.45);
}

.moon-arc::after {
  content: "";
  position: absolute;
  inset: 10%;
  border-radius: inherit;
  border: 1px solid rgba(255, 240, 214, 0.45);
}

.qibla-marker {
  position: absolute;
  top: 120px;
  right: 36px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 20%, #ffe7b2, #c9a45b);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.28);
}

.qibla-marker svg {
  width: 22px;
  height: 22px;
}

.phone-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
  z-index: 1;
}

.phone-header span {
  font-size: 0.78rem;
  opacity: 0.9;
}

.chip {
  font-size: 0.73rem;
  padding: 4px 9px;
  border-radius: 999px;
  background: rgba(4, 25, 20, 0.76);
  border: 1px solid rgba(255, 255, 255, 0.16);
}

.prayer-card {
  margin-top: 40px;
  padding: 14px 13px;
  border-radius: 22px;
  background: rgba(2, 22, 18, 0.84);
  border: 1px solid rgba(229, 219, 197, 0.2);
  backdrop-filter: blur(12px);
  position: relative;
  overflow: hidden;
}

.prayer-card::before {
  content: "";
  position: absolute;
  inset: -40%;
  background-image: radial-gradient(circle at 10% 0, rgba(255, 255, 255, 0.14), transparent 55%),
    radial-gradient(circle at 80% 120%, rgba(201, 164, 91, 0.32), transparent 60%);
  opacity: 0.9;
}

.prayer-card-inner {
  position: relative;
  z-index: 1;
}

.prayer-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.prayer-label {
  font-size: 0.82rem;
  opacity: 0.85;
}

.prayer-time {
  font-size: 1.24rem;
  font-weight: 600;
}

.countdown {
  font-size: 0.8rem;
  opacity: 0.9;
}

.pill-soft {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 0.75rem;
  background: rgba(4, 25, 20, 0.92);
  border: 1px solid rgba(201, 164, 91, 0.4);
  margin-top: 10px;
}

.pill-soft-dot {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: rgba(201, 164, 91, 0.9);
}

.mini-row {
  display: flex;
  justify-content: space-between;
  gap: 4px;
  margin-top: 10px;
  font-size: 0.76rem;
  opacity: 0.9;
}

.mini-tag {
  padding: 3px 8px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(4, 25, 20, 0.82);
}

.phone-footer {
  margin-top: 18px;
  padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  display: flex;
  justify-content: center;
  gap: 16px;
}

.nav-dot {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: rgba(248, 235, 205, 0.7);
}

.nav-dot.active {
  width: 26px;
  background: linear-gradient(120deg, #ffe5b3, #c9a45b);
}

@media (min-width: 960px) {
  .hero {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    gap: 40px;
    margin-top: 22px;
  }
  .hero h1 {
    font-size: 2.6rem;
  }
}

/* Sections */

section {
  margin-top: 40px;
}

section:first-of-type {
  margin-top: 32px;
}

.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 16px;
  margin-bottom: 18px;
}

.section-title {
  font-size: 1.32rem;
  letter-spacing: -0.02em;
}

.section-eyebrow {
  font-size: 0.78rem;
  text-transform: uppercase;
  color: var(--color-muted);
  letter-spacing: 0.12em;
}

.section-description {
  font-size: 0.9rem;
  color: var(--color-muted);
  max-width: 380px;
}

/* Features */

.features-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 14px;
}

.card {
  border-radius: var(--radius-lg);
  padding: 16px 16px 15px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(206, 191, 163, 0.35);
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.06);
  position: relative;
  overflow: hidden;
}

.card::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: radial-gradient(circle at 0 0, rgba(201, 164, 91, 0.22), transparent 55%);
  opacity: 0;
  transition: opacity var(--transition-med);
}

.card:hover::before {
  opacity: 1;
}

.card-header {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 8px;
}

.card-icon {
  width: 30px;
  height: 30px;
  border-radius: 12px;
  background: radial-gradient(circle at 20% 0, #ffffff, #e0cfb2, #0f3b33);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fdf6e6;
  flex-shrink: 0;
}

.card-title {
  font-size: 0.98rem;
  margin-bottom: 2px;
}

.card-sub {
  font-size: 0.8rem;
  color: var(--color-muted);
}

.card-body {
  font-size: 0.86rem;
  color: var(--color-muted);
  line-height: 1.6;
}

.card-label-row {
  margin-bottom: 6px;
  font-size: 0.78rem;
  color: var(--color-muted);
}

.card-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.card-label-dot {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: rgba(201, 164, 91, 0.8);
}

@media (min-width: 680px) {
  .features-grid {
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1.2fr);
  }
}

@media (min-width: 1040px) {
  .features-grid {
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1.2fr) minmax(0, 1.2fr);
  }
}

/* Testimonials */

.testimonials {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr);
  gap: 14px;
}

.quote-card {
  border-radius: var(--radius-lg);
  padding: 18px 16px 16px;
  background: linear-gradient(135deg, #f7f1e6, #ffffff);
  border: 1px solid rgba(201, 164, 91, 0.35);
  box-shadow: var(--shadow-soft);
  position: relative;
}

.quote-icon {
  font-size: 1.6rem;
  color: var(--color-accent);
  margin-bottom: 6px;
}

.quote-text {
  font-size: 0.9rem;
  color: var(--color-text);
  line-height: 1.7;
  margin-bottom: 10px;
}

.quote-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  font-size: 0.8rem;
  color: var(--color-muted);
}

.quote-name {
  font-weight: 600;
  color: var(--color-primary-soft);
}

.quote-tag {
  padding: 3px 9px;
  border-radius: 999px;
  border: 1px solid rgba(201, 164, 91, 0.45);
  background: rgba(255, 255, 255, 0.9);
  font-size: 0.75rem;
}

.trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 0.8rem;
  color: var(--color-muted);
}

@media (min-width: 860px) {
  .testimonials {
    grid-template-columns: minmax(0, 1.35fr) minmax(0, 1.05fr);
  }
}

/* CTA Section */

.cta {
  margin-top: 50px;
}

.cta-card {
  border-radius: var(--radius-xl);
  padding: 20px 18px 20px;
  background: radial-gradient(circle at 10% 0, #ffffff 0, #f2e3ce 40%, #f9f3e9 100%);
  border: 1px solid rgba(201, 164, 91, 0.4);
  box-shadow: 0 22px 65px rgba(0, 0, 0, 0.08);
  position: relative;
  overflow: hidden;
}

.cta-card::before {
  content: "";
  position: absolute;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  border: 1px solid rgba(15, 59, 51, 0.16);
  top: -80px;
  right: -40px;
}

.cta-card::after {
  content: "";
  position: absolute;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  border: 1px solid rgba(201, 164, 91, 0.35);
  bottom: -60px;
  left: -20px;
}

.cta-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.3fr);
  gap: 16px;
  align-items: center;
}

.cta-title {
  font-size: 1.3rem;
  margin-bottom: 6px;
}

.cta-subtitle {
  font-size: 0.9rem;
  color: var(--color-muted);
}

.cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.cta-badge {
  font-size: 0.8rem;
  color: var(--color-muted);
}

@media (min-width: 860px) {
  .cta-inner {
    grid-template-columns: minmax(0, 1.3fr) minmax(0, 1.1fr);
  }
}

/* Footer */

footer {
  border-top: 1px solid rgba(206, 191, 163, 0.55);
  background: rgba(248, 244, 235, 0.96);
}

.footer-inner {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 18px 20px 28px;
  font-size: 0.8rem;
  color: var(--color-muted);
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.footer-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
}

.footer-links a {
  text-decoration: none;
  position: relative;
}

.footer-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 0;
  height: 1px;
  background: rgba(24, 35, 31, 0.6);
  transition: width var(--transition-med);
}

.footer-links a:hover::after {
  width: 100%;
}

/* Layout for subpages (About, Contact, Legal) */

.page-header {
  margin-top: 10px;
  margin-bottom: 20px;
}

.page-title {
  font-size: 1.8rem;
  margin: 0 0 8px;
  letter-spacing: -0.03em;
}

.page-intro {
  max-width: 520px;
  font-size: 0.96rem;
  color: var(--color-muted);
}

.split-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr);
  gap: 20px;
  margin-top: 16px;
}

.split-layout-aside {
  border-radius: var(--radius-lg);
  padding: 14px 14px 16px;
  background: linear-gradient(140deg, #0f3b33, #182e29);
  color: #fdf7ed;
  font-size: 0.86rem;
  line-height: 1.6;
  box-shadow: var(--shadow-soft);
}

.split-layout-aside h3 {
  margin-top: 0;
  font-size: 1rem;
}

@media (min-width: 880px) {
  .split-layout {
    grid-template-columns: minmax(0, 1.7fr) minmax(0, 1.2fr);
  }
}

/* Contact */

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr);
  gap: 22px;
}

@media (min-width: 840px) {
  .contact-grid {
    grid-template-columns: minmax(0, 1.3fr) minmax(0, 1.15fr);
  }
}

.form-card {
  border-radius: var(--radius-lg);
  padding: 18px 16px 18px;
  background: rgba(255, 255, 255, 0.98);
  border: 1px solid rgba(206, 191, 163, 0.55);
  box-shadow: var(--shadow-soft);
}

.form-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.form-group {
  margin-bottom: 12px;
  flex: 1 1 160px;
}

label {
  display: block;
  font-size: 0.82rem;
  margin-bottom: 5px;
  color: var(--color-muted);
}

input,
textarea {
  width: 100%;
  border-radius: 12px;
  border: 1px solid rgba(24, 35, 31, 0.16);
  padding: 9px 11px;
  font-size: 0.9rem;
  font-family: inherit;
  background: rgba(255, 255, 255, 0.95);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast),
    background var(--transition-fast);
}

textarea {
  min-height: 120px;
  resize: vertical;
}

input:focus,
textarea:focus {
  outline: none;
  border-color: rgba(15, 59, 51, 0.5);
  box-shadow: 0 0 0 1px rgba(15, 59, 51, 0.06);
  background: #ffffff;
}

.helper-text {
  font-size: 0.78rem;
  color: var(--color-muted);
  margin-top: 6px;
}

.contact-aside {
  border-radius: var(--radius-lg);
  padding: 18px 16px;
  background: linear-gradient(150deg, #0f3b33, #1f4a41);
  color: #fdf7ed;
  font-size: 0.86rem;
  line-height: 1.7;
  position: relative;
  overflow: hidden;
}

.contact-aside::before {
  content: "";
  position: absolute;
  inset: -40%;
  background-image: radial-gradient(circle at 0 0, rgba(201, 164, 91, 0.35), transparent 60%);
  opacity: 0.9;
}

.contact-aside-inner {
  position: relative;
  z-index: 1;
}

.contact-email {
  font-weight: 600;
  margin-top: 3px;
}

.contact-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 4px 9px;
  border-radius: 999px;
  background: rgba(4, 25, 20, 0.86);
  border: 1px solid rgba(201, 164, 91, 0.45);
  font-size: 0.76rem;
  margin-bottom: 8px;
}

/* Legal text */

.legal-block {
  border-radius: var(--radius-lg);
  padding: 18px 16px 20px;
  background: rgba(255, 255, 255, 0.98);
  border: 1px solid rgba(206, 191, 163, 0.55);
  box-shadow: var(--shadow-soft);
  font-size: 0.9rem;
  line-height: 1.8;
}

.legal-block h2 {
  margin: 12px 0 6px;
  font-size: 1.05rem;
}

.legal-block h2:first-child {
  margin-top: 0;
}

.legal-block p {
  margin: 6px 0;
}

.legal-block ul {
  padding-left: 18px;
  margin: 6px 0 10px;
}

.legal-block li {
  margin-bottom: 4px;
}

.legal-meta {
  margin-top: 10px;
  font-size: 0.8rem;
  color: var(--color-muted);
}

/* Arabic-inspired subtle pattern */

.pattern-corner {
  position: absolute;
  inset: auto 12px 12px auto;
  width: 76px;
  height: 76px;
  opacity: 0.16;
  background-image: radial-gradient(circle at 0 0, rgba(24, 35, 31, 0.7) 0, transparent 55%),
    radial-gradient(circle at 100% 100%, rgba(201, 164, 91, 0.9) 0, transparent 60%);
  border-radius: 40% 60% 60% 20%;
  transform: rotate(-8deg);
}

/* Scroll reveal animation */

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 600ms ease-out, transform 600ms ease-out;
}

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

.reveal.delay-1 {
  transition-delay: 80ms;
}

.reveal.delay-2 {
  transition-delay: 160ms;
}

.reveal.delay-3 {
  transition-delay: 240ms;
}

.reveal.delay-4 {
  transition-delay: 320ms;
}

