:root {
  --ink: #20241f;
  --ink-soft: #5c6158;
  --paper: #fbfbf9;
  --stone: #eeeee8;
  --ember: #d3560e;
  --ember-dark: #a83f06;
  --moss: #3c5a4a;
  --gold: #c69a3a;
  --line: #dcdcd2;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box
}

html {
  scroll-behavior: smooth
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto
  }

  *,
  *::before,
  *::after {
    animation-duration: .01ms !important;
    transition-duration: .01ms !important
  }
}

body {
  font-family: -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background: var(--paper);
  color: var(--ink);
  line-height: 1.55;
}

h1,
h2,
h3 {
  font-weight: 800;
  letter-spacing: -.02em;
  line-height: 1.08
}

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

a {
  color: inherit
}

button {
  font: inherit;
  cursor: pointer
}

:focus-visible {
  outline: 3px solid var(--ember);
  outline-offset: 2px
}

.wrap {
  max-width: 1150px;
  margin: 0 auto;
  padding: 0 1.2rem
}

/* hamburger — hidden on desktop */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--ink);
  font-size: 1.5rem;
  padding: .3rem .5rem;
  cursor: pointer
}

@media (max-width:760px) {
  .nav-toggle {
    display: block
  }

  header nav {
    display: none;
    position: absolute;
    top: 100%;
    left: .8rem;
    right: .8rem;
    background: #191c22;
    border-radius: 12px;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: .5rem;
    box-shadow: 0 12px 30px rgba(0, 0, 0, .35);
  }

  header nav.open {
    display: flex
  }

  header nav a {
    display: block;
    color: #efece4;
    border-bottom: none;
    padding: .8rem 1rem;
    font-size: 1rem;
  }

  header nav a:hover {
    background: rgba(255, 255, 255, .06)
  }

  header nav .nav-cta {
    margin-top: .4rem;
    text-align: center;
    border-radius: 8px;
  }
}


/* Single Spiritual Reminder */
.spiritual-reminder {
  position: fixed;
  bottom: 20px;
  right: 20px;
  /* Changed from center to right */
  background: linear-gradient(135deg, #065f46, #047857);
  color: white;
  padding: 12px 20px;
  /* Reduced padding for mobile */
  border-radius: 20px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.5s ease;
  z-index: 10;
  /* Lower z-index */
  cursor: pointer;
  font-size: 13px;
  /* Smaller font for mobile */
  line-height: 1.4;
  max-width: 280px;
  /* Reduced width */
  text-align: left;
  /* Left aligned for mobile */
}

.spiritual-reminder.show {
  opacity: 1;
  transform: translateY(0);
}

.spiritual-reminder:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.3);
}

.reminder-icon {
  margin-right: 8px;
  display: inline-block;
  vertical-align: middle;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .spiritual-reminder {
    bottom: 60px;
    /* Higher position to avoid buttons */
    right: 10px;
    max-width: 250px;
    /* Even smaller width */
    padding: 10px 16px;
    /* Smaller padding */
    font-size: 12px;
    /* Even smaller font */
    border-radius: 16px;
  }
}

/* ============================================================ */
/*                 SVG BISMILLAH BADGE                           */
/* ============================================================ */

/* SVG Bismillah Badge */
.bismillah-badge {
  position: fixed;
  top: 15px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 60;
  cursor: pointer;
  transition: all 300ms ease;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.2));
}

.bismillah-badge:hover {
  transform: translateX(-50%) scale(1.05);
  filter: drop-shadow(0 4px 16px rgba(0, 0, 0, 0.3));
}

/* Mobile optimization */
@media (max-width: 768px) {
  .bismillah-badge {
    top: 10px;
  }

  .bismillah-badge svg {
    width: 100px;
    height: 35px;
  }

  .bismillah-badge svg text:first-child {
    font-size: 10px;
  }

  .bismillah-badge svg text:last-child {
    font-size: 7px;
  }
}

/* ---------- header ---------- */
header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(251, 251, 249, .94);
  backdrop-filter: blur(6px);
  border-bottom: 2px solid var(--ink);
  display: block;
  align-items: center;
  justify-content: space-between;
  padding: .6rem 1.2rem;
}

.brand {
  display: flex;
  align-items: baseline;
  gap: .55rem;
  text-decoration: none
}

.brand b {
  font-size: 1.3rem;
  font-weight: 800;
  letter-spacing: -.02em
}

.brand span {
  font-size: .72rem;
  font-weight: 700;
  color: var(--ember);
  letter-spacing: .06em
}

nav {
  display: flex;
  gap: 1.3rem;
  align-items: center
}

nav a {
  text-decoration: none;
  font-size: .92rem;
  font-weight: 600;
  padding: .3rem 0;
  border-bottom: 3px solid transparent
}

nav a:hover {
  border-bottom-color: var(--ember)
}

.nav-cta {
  background: var(--ink);
  color: #fff;
  border-radius: 5px;
  padding: .5rem 1.05rem;
  border: none
}

.nav-cta:hover {
  background: var(--ember);
  border-bottom-color: transparent !important
}



/* ---------- hero ---------- */
.hero {
  padding: 3.4rem 0 0;
  overflow: hidden
}

.kicker {
  font-size: .8rem;
  font-weight: 800;
  letter-spacing: .12em;
  color: var(--ember);
  margin-bottom: .7rem
}

.hero h1 {
  font-size: clamp(2.1rem, 6vw, 4rem)
}

.hero h1 em {
  font-style: normal;
  color: var(--ember)
}

.hero-row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 2rem
}

.hero-row p {
  max-width: 44ch;
  color: var(--ink-soft);
  font-size: 1.02rem
}

.strip-controls {
  display: flex;
  gap: .5rem
}

.strip-controls button {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 2px solid var(--ink);
  background: transparent;
  font-size: 1.15rem;
  font-weight: 700;
}

.strip-controls button:hover {
  background: var(--ink);
  color: #fff
}

/* the scrolling cards — the main event */
.strip {
  display: flex;
  gap: 1.1rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  --edge: max(1.2rem, calc((100% - 1150px) / 2 + 1.2rem));
  margin: 0;
  padding: 0 var(--edge) 1.4rem;
  padding-left: var(--edge);
}

.strip::-webkit-scrollbar {
  display: none
}

.strip>article {
  flex: 0 0 min(420px, 82vw);
  scroll-snap-align: center;
  background: #fff;
  border: 2px solid var(--ink);
  border-radius: 14px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.strip .media {
  aspect-ratio: 4/3;
  background: var(--stone);
  position: relative
}

.strip .media img,
.strip .media video {
  width: 100%;
  height: 100%;
  object-fit: cover
}

.ba {
  position: absolute;
  top: .8rem;
  left: .8rem;
  background: var(--ember);
  color: #fff;
  font-size: .7rem;
  font-weight: 800;
  letter-spacing: .08em;
  padding: .3rem .65rem;
  border-radius: 4px;
}

.vidtag {
  position: absolute;
  bottom: .8rem;
  right: .8rem;
  background: rgba(32, 36, 31, .85);
  color: #fff;
  font-size: .7rem;
  font-weight: 700;
  padding: .25rem .6rem;
  border-radius: 4px;
}

.strip .body {
  padding: 1.05rem 1.15rem 1.25rem;
  border-top: 2px solid var(--ink)
}

.strip h3 {
  font-size: 1.25rem
}

.strip .work {
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .06em;
  color: var(--ember);
  margin-top: .15rem
}

.strip .desc {
  font-size: .93rem;
  color: var(--ink-soft);
  margin-top: .5rem
}

.strip .placeholder-note {
  position: absolute;
  inset: auto 0 0 0;
  padding: 1rem;
  text-align: center;
  color: var(--ink-soft);
  font-size: .85rem;
  background: linear-gradient(transparent, rgba(238, 238, 232, .95) 30%);
}

/* the multi-photo swipe carousel inside each landing card */
.card-cmp {
  position: absolute;
  inset: 0;
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}

.card-cmp::-webkit-scrollbar {
  display: none
}

.card-cmp img,
.card-cmp video {
  flex: 0 0 100%;
  width: 100%;
  height: 100%;
  object-fit: cover;
  scroll-snap-align: center;
  pointer-events: none;
  -webkit-user-drag: none;
  user-select: none;
}

.card-cmp video {
  pointer-events: auto
}

.card-dots {
  position: absolute;
  bottom: .7rem;
  left: 0;
  right: 0;
  display: flex;
  gap: .3rem;
  justify-content: center;
  z-index: 2
}

.card-dots button {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, .55);
  padding: 0;
  box-shadow: 0 1px 3px rgba(0, 0, 0, .3);
}

.card-dots button.on {
  background: #fff
}

.card-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, .9);
  color: var(--ink);
  font-weight: 800;
  box-shadow: 0 2px 6px rgba(0, 0, 0, .25);
  display: none;
}

.card-arrow.left {
  left: .55rem
}

.card-arrow.right {
  right: .55rem
}

.strip>article:hover .card-arrow,
.card-arrow:focus-visible {
  display: block
}

/* ---------- mobile-first refinements ---------- */
@media (max-width:760px) {
  section {
    padding: 2.5rem 0
  }

  .hero {
    padding: 2.5rem 0 0
  }

  header {
    padding: .55rem .9rem
  }

  .brand b {
    font-size: 1.08rem
  }

  .brand span {
    display: none
  }

  .strip {
    --edge: .9rem
  }

  .strip>article {
    flex: 0 0 86vw
  }

  .strip .body {
    padding: .9rem .95rem 1.1rem
  }

  .sec-head {
    margin-bottom: 1.6rem
  }

  .services .wrap {
    gap: .45rem 1.3rem;
    justify-content: flex-start
  }

  .services span {
    font-size: .86rem
  }

  .dawah-cards div {
    padding: 1.05rem
  }

  .contact-lines {
    font-size: .95rem;
    line-height: 2
  }

  .contact-lines a {
    display: inline-block
  }
}

/* on touch screens the photo arrows are always visible and thumb-sized */
@media (pointer:coarse) {
  .card-arrow {
    display: block;
    width: 42px;
    height: 42px;
    font-size: 1.15rem
  }

  .strip-controls button {
    width: 52px;
    height: 52px
  }

  .card-dots button {
    width: 10px;
    height: 10px
  }
}

.strip-hint {
  font-size: .82rem;
  color: var(--ink-soft);
  text-align: right;
  margin-top: .1rem
}

/* ---------- services ---------- */
.services {
  border-top: 2px solid var(--ink);
  border-bottom: 2px solid var(--ink);
  background: var(--stone)
}

.services .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: .6rem 2.4rem;
  justify-content: center;
  padding: 1.3rem 1.2rem
}

.services span {
  font-weight: 700;
  font-size: .95rem
}

.services span::before {
  content: "■ ";
  color: var(--ember);
  font-size: .7rem;
  vertical-align: .15em
}

/* ---------- generic section ---------- */
section {
  padding: 3.4rem 0
}

.sec-head {
  max-width: 58ch;
  margin-bottom: 2rem
}

.sec-head h2 {
  font-size: clamp(1.6rem, 3.4vw, 2.3rem);
  margin-bottom: .5rem
}

.sec-head p {
  color: var(--ink-soft)
}

.dark .sec-head h2 {
  color: #fff
}

.dark .sec-head p {
  color: #bcc9c0
}

/* ---------- reel section ---------- */
.reel-inner {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 2.6rem;
  align-items: center
}

@media (max-width:760px) {
  .reel-inner {
    grid-template-columns: 1fr;
    gap: 1.8rem
  }
}

.reel-copy h2 {
  font-size: clamp(1.6rem, 3.4vw, 2.3rem);
  margin-bottom: .6rem
}

.reel-copy .big-quote {
  font-family: Georgia, serif;
  font-style: italic;
  font-size: 1.15rem;
  color: var(--ember);
  margin: .9rem 0 1.4rem
}

.phone {
  width: min(300px, 78vw);
  margin: 0 auto;
  border: 3px solid var(--ink);
  border-radius: 28px;
  overflow: hidden;
  background: var(--ink);
  box-shadow: 10px 10px 0 var(--stone);
}

.phone .screen {
  aspect-ratio: 9/16;
  position: relative;
  background: var(--stone)
}

.phone .screen video,
.phone .screen iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border: 0
}

.phone .chip {
  position: absolute;
  top: .8rem;
  left: .8rem;
  background: var(--ember);
  color: #fff;
  font-size: .7rem;
  font-weight: 800;
  letter-spacing: .08em;
  padding: .3rem .65rem;
  border-radius: 4px;
  z-index: 2;
}

.phone .chip.after {
  top: auto;
  bottom: 2.6rem
}

.phone .placeholder-note {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  text-align: center;
  color: var(--ink-soft);
  font-size: .85rem;
  padding: 1.2rem;
}

/* the swipe-to-compare slider */
.cmp {
  position: absolute;
  inset: 0;
  touch-action: none;
  cursor: ew-resize
}

.cmp img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
  user-select: none;
  -webkit-user-drag: none
}

.cmp .bar {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 3px;
  background: #fff;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, .25);
  left: 50%;
  transform: translateX(-1.5px)
}

.cmp .knob {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #fff;
  color: var(--ink);
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 1.05rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .35);
  letter-spacing: -.1em;
}

.cmp .tag {
  position: absolute;
  bottom: .8rem;
  font-size: .68rem;
  font-weight: 800;
  letter-spacing: .08em;
  color: #fff;
  background: rgba(32, 36, 31, .8);
  padding: .25rem .55rem;
  border-radius: 4px
}

.cmp .tag.before {
  left: .8rem
}

.cmp .tag.after {
  right: .8rem;
  background: var(--ember)
}

.reel-caption {
  margin-top: .9rem;
  font-size: .9rem;
  color: var(--ink-soft);
  text-align: center
}

/* ---------- properties ---------- */
.filters {
  display: flex;
  flex-wrap: wrap;
  gap: .6rem;
  margin-bottom: 1.4rem
}

.filters input,
.filters select {
  padding: .55rem .7rem;
  border: 2px solid var(--ink);
  border-radius: 6px;
  font: inherit;
  font-size: 16px;
  background: #fff;
  /* 16px keeps phones from zooming into the field */
}

.filters input {
  flex: 1;
  min-width: 180px
}

.results-line {
  font-size: .87rem;
  color: var(--ink-soft);
  margin-bottom: 1rem
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(255px, 1fr));
  gap: 1.2rem
}

.pcard {
  background: #fff;
  border: 2px solid var(--ink);
  border-radius: 10px;
  overflow: hidden;
  display: flex;
  flex-direction: column
}

.pcard .media {
  aspect-ratio: 16/10;
  background: var(--stone);
  position: relative
}

.pcard .media img,
.pcard .media video {
  width: 100%;
  height: 100%;
  object-fit: cover
}

.pcard .type {
  position: absolute;
  top: .65rem;
  left: .65rem;
  background: #fff;
  border: 2px solid var(--ink);
  font-size: .68rem;
  font-weight: 800;
  padding: .2rem .55rem;
  border-radius: 4px
}

.pcard .body {
  padding: .95rem 1rem 1.1rem
}

.pcard .price {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--ember)
}

.pcard h3 {
  font-size: 1.02rem;
  font-weight: 700;
  margin: .15rem 0
}

.pcard .loc {
  font-size: .88rem;
  color: var(--ink-soft)
}

.pcard .meta {
  display: flex;
  gap: 1rem;
  font-size: .84rem;
  font-weight: 600;
  margin-top: .5rem;
  border-top: 1px solid var(--line);
  padding-top: .5rem
}

.empty {
  grid-column: 1/-1;
  padding: 2.2rem;
  text-align: center;
  color: var(--ink-soft);
  border: 2px dashed var(--line);
  border-radius: 10px
}

/* ---------- new builds ---------- */
.dark {
  background: var(--ink);
  color: #fff
}

.dark .pcard,
.dark .proj {
  background: rgba(255, 255, 255, .05);
  border-color: #454c44
}

.dark .pcard .price {
  color: var(--gold)
}

.dark .pcard .loc,
.dark .proj p {
  color: #bcc9c0
}

.dark .pcard .type {
  background: var(--ink);
  color: #fff;
  border-color: #454c44
}

/* ---------- dawah ---------- */
.dawah {
  background: var(--ember-dark);
  color: #fff;
  text-align: center
}

.dawah .ayah-ar {
  font-family: "Traditional Arabic", "Amiri", Georgia, serif;
  font-size: clamp(1.4rem, 3vw, 2rem);
  color: #ffe0c4
}

.dawah .ayah-en {
  font-family: Georgia, serif;
  font-style: italic;
  font-size: clamp(1.1rem, 2.4vw, 1.45rem);
  max-width: 44ch;
  margin: .6rem auto .4rem
}

.dawah .ayah-src {
  font-size: .82rem;
  color: #ffd9b8;
  margin-bottom: 2.2rem
}

.dawah-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.1rem;
  max-width: 980px;
  margin: 0 auto 2.2rem;
  text-align: left
}

.dawah-cards div {
  background: rgba(0, 0, 0, .18);
  border-radius: 10px;
  padding: 1.25rem
}

.dawah-cards h3 {
  font-size: 1.05rem;
  margin-bottom: .4rem
}

.dawah-cards p {
  font-size: .92rem;
  color: #ffe8d5
}

.dawah a.cta {
  display: inline-block;
  background: #fff;
  color: var(--ember-dark);
  text-decoration: none;
  font-weight: 800;
  padding: .85rem 2rem;
  border-radius: 6px;
}

.dawah a.cta:hover {
  background: var(--ink);
  color: #fff
}

.dawah .note {
  margin-top: 1.1rem;
  font-size: .85rem;
  color: #ffd9b8
}

/* ---------- contact / footer ---------- */
.contact-lines {
  font-size: 1.05rem;
  margin: 1.2rem 0;
  text-align: center
}

.contact-lines a {
  color: var(--ember);
  font-weight: 700;
  text-decoration: none
}

.contact-lines a:hover {
  text-decoration: underline
}

footer {
  background: var(--ink);
  color: #9aa69c;
  padding: 2rem 1.2rem;
  text-align: center;
  font-size: .85rem
}

footer .dua {
  color: var(--gold);
  font-family: Georgia, serif;
  margin-top: .6rem
}

/* header: row 1 bismillah, row 2 brand + menu */


.bismillah-badge p {
  margin: 0;
  line-height: 0.5
}

.header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .5rem;
  padding: .45rem .2rem;
}

.soon {
  display: inline-block;
  background: var(--ember);
  color: #fff;
  font-size: .55em;
  font-weight: 800;
  letter-spacing: .08em;
  padding: .35em .8em;
  border-radius: 6px;
  vertical-align: middle;
  margin-left: .5rem;
}