/* Islamia Pharmacy — site styles */

:root {
  --green: #087A3B;
  --green-dark: #06612F;
  --green-deep: #064D27;
  --green-ink: #0B3D24;
  --tint: #E8F5EC;
  --tint-soft: #F2F9F4;
  --red: #D7191F;
  --ink: #1D1E20;
  --text: #3B3D45;
  --muted: #5B5E6B;
  --line: #E3E5E8;
  --line-soft: #EDEFF1;
  --line-strong: #D5D8DD;
  --bg: #F4F6F5;
  --white: #FFFFFF;
  --placeholder: #E3ECE6;
  --placeholder-ink: #5E7266;
  --radius: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  --shadow-xs: 0 1px 2px rgba(16, 24, 40, .04);
  --shadow: 0 8px 24px rgba(16, 24, 40, .06);
  --shadow-lg: 0 16px 40px rgba(16, 24, 40, .10);
  --header-h: 72px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0;
  font-family: 'Manrope', system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-size: 16px;
  line-height: 1.5;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
h1, h2, h3 { margin: 0; line-height: 1.15; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
a { color: var(--green); }
a:hover { color: var(--green-dark); }
:focus-visible { outline: 3px solid #7EB8FF; outline-offset: 2px; }

.icon { flex: none; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.section { padding-top: 72px; }
.card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-xs); }

.skip-link { position: absolute; left: 16px; top: -48px; padding: 10px 16px; background: var(--ink); color: var(--white); border-radius: 8px; z-index: 100; }
.skip-link:focus { top: 12px; color: var(--white); }

.section-label {
  display: inline-flex; align-items: center; gap: 6px; margin-bottom: 12px;
  padding: 5px 10px; border-radius: 999px; background: var(--tint); color: var(--green);
  font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 44px; padding: 0 18px; border-radius: 10px; border: 1px solid transparent;
  font: inherit; font-size: 15px; font-weight: 600; text-decoration: none; white-space: nowrap; cursor: pointer;
  transition: background-color .15s, border-color .15s, color .15s, transform .15s var(--ease), box-shadow .15s;
}
.btn:active { transform: translateY(1px); }
.btn--lg { height: 50px; padding: 0 22px; font-size: 16px; }
.btn--primary { background: var(--green); color: var(--white); box-shadow: 0 1px 2px rgba(6, 77, 39, .3), inset 0 1px 0 rgba(255, 255, 255, .12); }
.btn--primary:hover { background: var(--green-dark); color: var(--white); }
.btn--outline { background: var(--white); border-color: var(--line-strong); color: var(--ink); }
.btn--outline:hover { border-color: var(--ink); color: var(--ink); }
.btn--light { background: var(--white); color: var(--ink); box-shadow: 0 1px 2px rgba(0, 0, 0, .12); }
.btn--light:hover { background: #F4F5F6; color: var(--ink); }
.btn--ghost-light { border-color: rgba(255, 255, 255, .5); color: var(--white); }
.btn--ghost-light:hover { background: rgba(255, 255, 255, .12); color: var(--white); }
.btn--text { background: none; color: var(--green); padding: 0 10px; }
.btn--text:hover { background: var(--tint); }
.btn--whatsapp { background: #E8FAEF; border-color: #BFEBD0; color: #0A6B38; }
.btn--whatsapp .icon { color: #1DAA55; }
.btn--whatsapp:hover { background: #D6F6E3; border-color: #25D366; color: #0A6B38; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .92); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--line); transition: box-shadow .2s; }
.site-header.is-scrolled { box-shadow: 0 6px 20px rgba(16, 24, 40, .07); }
.site-header__inner { min-height: var(--header-h); display: flex; align-items: center; gap: 32px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; flex: none; }
.brand__mark { width: 40px; height: 40px; }
.brand__wordmark { width: 196px; height: auto; }
.site-nav { display: flex; align-items: center; gap: 4px; flex: 1 1 auto; }
.site-nav a:not(.btn) { padding: 10px 14px; border-radius: 10px; color: var(--ink); font-size: 15px; font-weight: 500; text-decoration: none; transition: background-color .15s; }
.site-nav a:not(.btn):hover { background: #F1F3F2; }
.site-nav a[aria-current="page"] { background: var(--tint); color: var(--green); font-weight: 600; }
.site-nav__cta { margin-left: auto; }
.nav-toggle { display: none; margin-left: auto; width: 44px; height: 44px; border-radius: 10px; border: 1px solid var(--line); background: var(--white); color: var(--ink); align-items: center; justify-content: center; cursor: pointer; }

@media (max-width: 900px) {
  .nav-toggle { display: inline-flex; }
  .site-nav {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 2px;
    padding: 12px 16px 20px; background: var(--white); border-bottom: 1px solid var(--line); box-shadow: var(--shadow);
  }
  .site-header.is-open .site-nav { display: flex; }
  .site-nav a:not(.btn) { padding: 14px; }
  .site-nav__cta { margin: 8px 0 0; height: 48px; }
}
@media (max-width: 400px) {
  .brand { gap: 10px; }
  .brand__mark { width: 34px; height: 34px; }
  .brand__wordmark { width: 168px; }
}

/* Carousels (banner + branch photos). Tracks scroll-snap so touch swipe works natively. */
.carousel { position: relative; overflow: hidden; }
.carousel__track {
  display: flex; height: 100%; overflow-x: auto; overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory; scroll-behavior: smooth; scrollbar-width: none;
}
.carousel__track::-webkit-scrollbar { display: none; }
.carousel__track > * { flex: 0 0 100%; scroll-snap-align: start; scroll-snap-stop: always; }
.carousel__btn {
  width: 44px; height: 44px; border-radius: 999px; border: 0; cursor: pointer;
  background: rgba(255, 255, 255, .94); color: var(--ink);
  display: inline-flex; align-items: center; justify-content: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .16); transition: transform .15s var(--ease), background-color .15s;
}
.carousel__btn:hover { background: var(--white); transform: scale(1.06); }
.carousel__dots { display: flex; align-items: center; }
.carousel__dots button { width: 28px; height: 28px; padding: 0; border: 0; background: none; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; }
.carousel__dots button::before { content: ""; display: block; width: 8px; height: 8px; border-radius: 999px; background: rgba(255, 255, 255, .45); transition: width .25s var(--ease), background-color .2s; }
.carousel__dots button[aria-current="true"]::before { width: 26px; background: var(--white); }
.carousel__dots--dark button { width: 20px; height: 20px; }
.carousel__dots--dark button::before { width: 6px; height: 6px; background: rgba(29, 30, 32, .3); }
.carousel__dots--dark button[aria-current="true"]::before { width: 18px; background: var(--ink); }
@media (prefers-reduced-motion: reduce) { .carousel__track { scroll-behavior: auto; } }

/* Hero */
.hero { display: grid; grid-template-columns: minmax(0, 2.2fr) minmax(300px, 1fr); gap: 20px; padding-top: 28px; padding-bottom: 20px; }
/* The banner keeps one shape (2:1, like the storefront photos) at every width.
   When it gets too narrow for text on top, the text moves below the photo. */
.banner { align-self: start; container-type: inline-size; border-radius: var(--radius-xl); background: var(--green-deep); box-shadow: var(--shadow); }
.banner .carousel__track { aspect-ratio: 2 / 1; height: auto; }
.slide {
  position: relative; height: 100%; padding: 4.5cqw 5cqw 10cqw 6cqw; color: var(--white);
  display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); align-items: center; gap: 24px;
  background:
    radial-gradient(circle at 82% 35%, rgba(255, 255, 255, .10), transparent 50%),
    url('../img/pattern-plus-white.svg'),
    var(--slide-bg, var(--green-deep));
}
.slide--image { grid-template-columns: minmax(0, 1fr); background: linear-gradient(90deg, rgba(4, 38, 20, .9) 0%, rgba(4, 38, 20, .72) 42%, rgba(4, 38, 20, .15) 100%), var(--slide-image) center / cover no-repeat, var(--slide-bg); }
.slide--image .slide__content { max-width: 62%; }
.slide__content { display: flex; flex-direction: column; align-items: flex-start; gap: clamp(10px, 1.8cqw, 18px); }
.slide__eyebrow { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px; background: rgba(255, 255, 255, .14); border: 1px solid rgba(255, 255, 255, .16); font-size: 14px; font-weight: 600; }
.slide__eyebrow .dot { width: 8px; height: 8px; border-radius: 999px; background: #7EE0A3; box-shadow: 0 0 0 4px rgba(126, 224, 163, .2); }
.slide__title { font-size: clamp(26px, 5cqw, 46px); line-height: 1.06; font-weight: 700; letter-spacing: -.025em; }
.slide__text { font-size: clamp(14px, 2.1cqw, 17px); line-height: 1.55; max-width: 460px; color: rgba(255, 255, 255, .85); }
.slide__actions { display: flex; flex-wrap: wrap; gap: 12px; padding-top: 4px; }
.slide__art { align-self: center; justify-self: center; width: 100%; max-width: 340px; }
.slide__art .art { width: 100%; height: auto; overflow: visible; filter: drop-shadow(0 18px 30px rgba(0, 0, 0, .18)); }
.banner__controls { position: absolute; left: calc(6cqw - 8px); right: 24px; bottom: 2.4cqw; display: flex; align-items: center; gap: 10px; }
.banner__controls .carousel__dots { flex: 1 1 auto; }
@container (max-width: 640px) {
  .banner .carousel__track { aspect-ratio: auto; }
  .slide { display: flex; flex-direction: column; gap: 0; height: auto; padding: 0; background: url('../img/pattern-plus-white.svg'), var(--slide-bg, var(--green-deep)); }
  .slide--image::before { content: ""; display: block; flex: none; width: 100%; aspect-ratio: 2 / 1; background: var(--slide-image) center / cover no-repeat; }
  .slide__content, .slide--image .slide__content { max-width: none; padding: 22px 22px 64px; }
  .slide__art { display: none; }
  .slide__title { font-size: 28px; }
  .slide__text { font-size: 15px; }
  .banner__controls { left: 14px; right: 14px; bottom: 12px; }
}

/* Picture-only gallery: each slide is just its photo at 2:1 on every screen, with a soft
   shade at the bottom so the dots stay visible. */
.banner.banner--gallery .carousel__track { aspect-ratio: 2 / 1; }
.banner--gallery .slide { display: block; height: 100%; padding: 0; background: var(--slide-image) center / cover no-repeat, var(--slide-bg); }
.banner--gallery .slide::before { content: none; }
.banner--gallery .slide::after { content: ""; position: absolute; inset: auto 0 0; height: 30%; background: linear-gradient(transparent, rgba(0, 0, 0, .32)); pointer-events: none; }
.banner--gallery .banner__controls { left: 18px; right: 14px; bottom: 10px; }
@container (max-width: 640px) {
  .banner--gallery .banner__controls { left: 10px; bottom: 4px; }
}

.finder { padding: 20px 20px 18px; display: flex; flex-direction: column; gap: 8px; }
.finder__head { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding-bottom: 8px; }
.finder__head h2 { font-size: 18px; }
.finder__count { flex: none; display: inline-flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 600; color: var(--green-dark); padding: 5px 10px 5px 9px; border-radius: 999px; background: var(--tint); }
.finder__row { flex: 1 1 auto; display: flex; align-items: center; gap: 14px; padding: 9px 12px; border: 1px solid var(--line-soft); border-radius: 12px; color: var(--ink); text-decoration: none; transition: border-color .15s, background-color .15s, box-shadow .15s; }
.finder__row:hover { border-color: #BFDDCB; color: var(--ink); background: var(--tint-soft); }
.finder__label { flex: 1 1 auto; display: flex; flex-direction: column; }
.finder__label strong { font-size: 16px; font-weight: 600; }
.finder__label small { font-size: 13px; color: var(--muted); }
.finder__go { width: 32px; height: 32px; border-radius: 999px; background: #F1F3F2; color: var(--muted); display: inline-flex; align-items: center; justify-content: center; transition: background-color .15s, color .15s, transform .2s var(--ease); }
.finder__row:hover .finder__go { background: var(--green); color: var(--white); transform: translateX(2px); }
.live-dot { width: 8px; height: 8px; border-radius: 999px; background: #1DB45E; box-shadow: 0 0 0 0 rgba(29, 180, 94, .5); animation: pulse 2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 8px rgba(29, 180, 94, 0); } 100% { box-shadow: 0 0 0 0 rgba(29, 180, 94, 0); } }
.icon-tile { width: 42px; height: 42px; border-radius: 12px; background: var(--tint); color: var(--green); display: inline-flex; align-items: center; justify-content: center; flex: none; }

@media (max-width: 1100px) {
  .hero { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .slide { grid-template-columns: 1fr; }
  .slide__art { display: none; }
}
@media (max-width: 640px) {
  .hero { padding-top: 16px; }
  .banner__controls .carousel__btn { display: none; }
}
@media (prefers-reduced-motion: reduce) { .live-dot { animation: none; } }

/* Stats */
/* Home: "Open 7/365" band under the banner */
.open-band-wrap { padding-bottom: 56px; }
.open-band {
  position: relative; overflow: hidden; display: flex; flex-wrap: wrap; align-items: center; gap: 14px 32px;
  padding: 22px 30px; border-radius: var(--radius-xl); color: var(--white); box-shadow: 0 14px 34px rgba(6, 77, 39, .22);
  background:
    radial-gradient(circle at 8% 120%, rgba(126, 224, 163, .28), transparent 42%),
    radial-gradient(circle at 96% -30%, rgba(237, 28, 36, .32), transparent 38%),
    url('../img/pattern-plus-white.svg'),
    linear-gradient(115deg, var(--green-deep) 0%, var(--green) 100%);
}
.open-band::after { /* large faint "365" watermark */
  content: "365"; position: absolute; right: -12px; bottom: -46px; font-size: 150px; font-weight: 800; letter-spacing: -.06em;
  color: rgba(255, 255, 255, .06); pointer-events: none; line-height: 1;
}
.open-band__lead { display: flex; flex-direction: column; gap: 4px; }
.open-band__label { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: #BFF0D2; }
.open-band__big { font-size: 40px; line-height: 1; font-weight: 800; letter-spacing: -.03em; white-space: nowrap; }
.open-band__big span { color: var(--white); }
.open-band__big i { font-style: normal; color: #FF5A5F; margin: 0 2px; }
.open-band__note {
  position: relative; z-index: 1; margin-left: auto; display: inline-flex; align-items: center; gap: 10px;
  padding: 12px 18px; border-radius: 999px; background: var(--white); color: var(--green-deep);
  font-size: 15px; font-weight: 700; box-shadow: 0 8px 20px rgba(4, 38, 20, .22);
}
.open-band__note .icon { color: var(--green); }
@media (max-width: 860px) {
  .open-band { flex-direction: column; align-items: flex-start; gap: 12px; padding: 22px 22px 24px; }
  .open-band__note { margin: 4px 0 0; }
}
@media (max-width: 480px) {
  .open-band__big { font-size: 36px; }
  .open-band::after { font-size: 120px; bottom: -36px; }
}

.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; padding-bottom: 64px; }
.stat { border-radius: var(--radius); padding: 18px 20px; display: flex; align-items: center; gap: 14px; }
.stat div { display: flex; flex-direction: column; }
.stat strong { font-size: 28px; font-weight: 700; line-height: 1.1; letter-spacing: -.01em; font-variant-numeric: tabular-nums; }
.stat span:not(.icon-tile) { font-size: 14px; color: var(--muted); }
@media (max-width: 900px) { .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; } }
@media (max-width: 640px) {
  .stat { padding: 14px; gap: 10px; }
  .stat .icon-tile { width: 36px; height: 36px; }
  .stat strong { font-size: 22px; }
}

/* Stores band */
.band { background: var(--white); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.band__inner { padding-top: 72px; padding-bottom: 72px; display: flex; flex-direction: column; gap: 32px; }
.section-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 20px 24px; }
.section-head h2 { font-size: 36px; letter-spacing: -.02em; }
.section-head p { margin-top: 8px; color: var(--muted); }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  height: 40px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line); background: var(--white); color: var(--ink);
  font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; display: inline-flex; align-items: center; gap: 8px;
  transition: border-color .15s, background-color .15s, color .15s;
}
.chip span { min-width: 22px; height: 22px; padding: 0 6px; border-radius: 999px; background: #F1F3F2; color: var(--muted); font-size: 12px; display: inline-flex; align-items: center; justify-content: center; }
.chip:hover { border-color: #9FB3A7; }
.chip[aria-pressed="true"] { background: var(--green); border-color: var(--green); color: var(--white); }
.chip[aria-pressed="true"] span { background: rgba(255, 255, 255, .2); color: var(--white); }
@media (max-width: 640px) {
  .section-head h2 { font-size: 28px; }
  .chips { flex-wrap: nowrap; overflow-x: auto; margin: 0 -24px; padding: 0 24px 4px; scrollbar-width: none; }
  .chip { flex: none; }
}

/* Branch cards */
.branch-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px; }
.branch-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; display: flex; flex-direction: column; box-shadow: var(--shadow-xs); transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .2s; }
.branch-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); border-color: #D3DDD7; }
.branch-card__body { padding: 20px; display: flex; flex-direction: column; gap: 12px; flex: 1 1 auto; }
.branch-card__meta { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.branch-no { font-size: 13px; font-weight: 700; color: var(--muted); padding: 3px 9px; border-radius: 8px; background: #F1F3F2; font-variant-numeric: tabular-nums; letter-spacing: .04em; }
.badge { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; padding: 4px 10px; border-radius: 999px; background: var(--tint); color: var(--green); }
.badge__dot { width: 6px; height: 6px; border-radius: 999px; background: currentColor; }
.branch-card__title { font-size: 19px; font-weight: 700; letter-spacing: -.01em; }
.branch-card__line { display: flex; gap: 10px; font-size: 14px; line-height: 1.5; color: var(--muted); }
.branch-card__line .icon { margin-top: 1px; color: #8A9A90; }
.branch-card__hours { color: var(--ink); font-weight: 700; white-space: nowrap; }
.branch-card__phone a { color: var(--ink); font-size: 15px; font-weight: 600; text-decoration: none; font-variant-numeric: tabular-nums; }
.branch-card__phone a:hover { color: var(--green); }
.branch-card__actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; padding-top: 6px; border-top: 1px dashed var(--line); padding-top: 14px; }
.branch-card--grid .branch-card__actions { display: grid; grid-template-columns: 1fr 1fr; }
.branch-card--grid .branch-card__actions .btn { padding: 0 12px; }
.branch-card--grid .branch-card__actions .btn--outline { grid-column: 1 / -1; }

.photo-carousel { aspect-ratio: 2 / 1; background: var(--placeholder); }
.photo { margin: 0; height: 100%; }
.photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.branch-card:hover .photo img { transform: scale(1.03); }
.photo__placeholder {
  height: 100%; color: var(--placeholder-ink); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px;
  font-size: 13px; font-weight: 600; text-align: center; padding: 0 48px;
  background: url('../img/pattern-plus-green.svg'), var(--placeholder);
}
.photo:nth-child(3n+2) .photo__placeholder { background: url('../img/pattern-plus-green.svg'), #EAE7DF; color: #6B665A; }
.photo:nth-child(3n) .photo__placeholder { background: url('../img/pattern-plus-green.svg'), #E2E7EE; color: #5D6675; }
.art-mini { opacity: .8; }
.photo-count { position: absolute; right: 10px; top: 10px; padding: 4px 8px; border-radius: 8px; background: rgba(29, 30, 32, .7); backdrop-filter: blur(4px); color: var(--white); font-size: 12px; font-weight: 600; font-variant-numeric: tabular-nums; }
.photo-carousel .carousel__btn { position: absolute; top: 50%; transform: translateY(-50%); width: 38px; height: 38px; opacity: 0; transition: opacity .15s; }
.photo-carousel .carousel__btn:hover { transform: translateY(-50%) scale(1.06); }
.photo-carousel:hover .carousel__btn, .photo-carousel .carousel__btn:focus-visible { opacity: 1; }
.carousel__btn--prev { left: 10px; }
.carousel__btn--next { right: 10px; }
.photo-carousel .carousel__dots { position: absolute; left: 0; right: 0; bottom: 4px; justify-content: center; }
@media (hover: none) { .photo-carousel .carousel__btn { display: none; } }

/* Store locations list: the storefront photo runs full width on top at the photos' own 2:1 shape */
.branch-card--row .branch-card__body { padding: 18px 20px; }
.branch-card--row:hover { transform: none; box-shadow: var(--shadow); }
.branch-card.is-selected { border-color: var(--green); box-shadow: 0 0 0 1px var(--green), var(--shadow); }

/* Values panel */
.panel { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-xl); overflow: hidden; box-shadow: var(--shadow-xs); }
.panel__head { padding: 28px 32px; border-bottom: 1px solid var(--line); display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 8px 24px; background: url('../img/pattern-plus-green.svg') right top / 36px, var(--white); }
.panel__head h2 { font-size: 26px; letter-spacing: -.015em; }
.panel__head p { font-size: 15px; color: var(--muted); }
/* 2 × 2 grid; the 1px gap over a line-coloured background draws the dividers */
.values { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; background: var(--line); }
/* Icon and title share the first row; the description runs full width underneath */
.value { padding: 28px 32px; display: flex; flex-direction: column; gap: 14px; background: var(--white); transition: background-color .2s; }
.value:hover { background: var(--tint-soft); }
.value__head { display: flex; align-items: center; gap: 14px; }
.value h3 { font-size: 17px; line-height: 1.3; }
.value p { font-size: 15px; line-height: 1.55; color: var(--muted); }
.duo-tile { width: 54px; height: 54px; border-radius: 16px; background: var(--tint-soft); border: 1px solid #D9EEE1; display: inline-flex; align-items: center; justify-content: center; flex: none; }
@media (max-width: 860px) {
  .values { grid-template-columns: minmax(0, 1fr); }
  .panel__head, .value { padding: 22px; }
}

/* About + owner teaser */
.duo { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; padding-top: 24px; }
.duo__about { padding: 36px; display: flex; flex-direction: column; gap: 14px; align-items: flex-start; border-radius: var(--radius-xl); }
.duo__about .section-label { margin-bottom: 0; }
.duo__about h2 { font-size: 28px; letter-spacing: -.015em; }
.duo__about p { line-height: 1.7; color: var(--muted); }
.link-arrow { display: inline-flex; align-items: center; gap: 6px; padding: 10px 0; font-weight: 600; text-decoration: none; margin-top: auto; }
.link-arrow .icon { transition: transform .2s var(--ease); }
.link-arrow:hover .icon { transform: translateX(3px); }
/* Owner card: large portrait beside the quote; stacks (photo on top) when the card is narrow */
.owner-teaser {
  container-type: inline-size; position: relative; overflow: hidden; color: var(--white); border-radius: var(--radius-xl); padding: 28px; box-shadow: var(--shadow);
  background: radial-gradient(circle at 100% 0%, rgba(255, 255, 255, .12), transparent 45%), url('../img/pattern-plus-white.svg'), var(--green);
}
.owner-teaser__inner { display: grid; grid-template-columns: minmax(150px, 40%) minmax(0, 1fr); gap: 24px; height: 100%; align-items: start; }
.owner-teaser__body { height: 100%; }
.owner-teaser__photo {
  width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; object-position: center 20%;
  border-radius: 18px; border: 3px solid rgba(255, 255, 255, .85); box-shadow: 0 14px 30px rgba(4, 38, 20, .35); background: rgba(255, 255, 255, .12);
}
.owner-teaser__photo--empty { display: flex; align-items: center; justify-content: center; }
.owner-teaser__body { display: flex; flex-direction: column; gap: 16px; }
.owner-teaser__mark { width: 48px; height: 48px; border-radius: 14px; background: rgba(255, 255, 255, .14); display: inline-flex; align-items: center; justify-content: center; }
.owner-teaser__quote { font-size: 22px; line-height: 1.35; font-weight: 700; letter-spacing: -.01em; }
.owner-teaser__text { font-size: 15px; line-height: 1.65; color: rgba(255, 255, 255, .88); }
.owner-teaser__by { display: flex; align-items: center; gap: 14px; margin-top: auto; flex-wrap: wrap; padding-top: 18px; border-top: 1px solid rgba(255, 255, 255, .18); }
.owner-teaser__name { flex: 1 1 auto; display: flex; flex-direction: column; }
.owner-teaser__name strong { font-size: 17px; }
.owner-teaser__name small { font-size: 14px; opacity: .85; }
.owner-teaser .btn--light { color: var(--green); }
@container (max-width: 480px) {
  .owner-teaser__inner { grid-template-columns: minmax(0, 1fr); }
  .owner-teaser__photo { aspect-ratio: 1 / 1; }
}
@media (max-width: 860px) {
  .duo { grid-template-columns: 1fr; }
  .duo__about { padding: 24px; }
  .owner-teaser { padding: 20px; }
}

.area-links { font-size: 14px; color: var(--muted); }
.area-links a { font-weight: 600; }

/* Area pages: questions and links to other areas */
.faq { display: flex; flex-direction: column; gap: 10px; margin-top: 28px; max-width: 820px; }
.faq__item { background: var(--white); border: 1px solid var(--line-soft); border-radius: 14px; }
.faq__item summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 18px 20px; font-weight: 600; font-size: 16px; }
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary .icon { flex: none; color: var(--muted); transition: transform .2s var(--ease); }
.faq__item[open] summary .icon { transform: rotate(90deg); color: var(--green); }
.faq__item p { padding: 0 20px 18px; color: var(--muted); line-height: 1.65; }
.other-areas h2 { font-size: 22px; margin-bottom: 16px; }
.other-areas__links { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.other-areas__links .finder__row { background: var(--white); padding: 12px 14px; }

/* The Islamia Promise (Owner's message page) */
.promise {
  padding: 40px; border-radius: var(--radius-xl); color: var(--white); box-shadow: var(--shadow);
  background: radial-gradient(circle at 100% 0%, rgba(126, 224, 163, .16), transparent 45%), url('../img/pattern-plus-white.svg'), var(--green-deep);
}
.promise__head h2 { font-size: 32px; letter-spacing: -.02em; }
.section-label--light { background: rgba(255, 255, 255, .14); color: var(--white); }
.promise__list { list-style: none; margin: 28px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.promise__list li {
  display: grid; grid-template-columns: 46px minmax(0, 1fr); align-items: center; gap: 14px 14px;
  padding: 22px; border-radius: 18px; background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .13);
  transition: background-color .2s, transform .2s var(--ease);
}
.promise__list li:hover { background: rgba(255, 255, 255, .11); transform: translateY(-2px); }
.promise__icon { width: 46px; height: 46px; border-radius: 14px; background: rgba(126, 224, 163, .16); border: 1px solid rgba(126, 224, 163, .32); color: #A6F0C6; display: inline-flex; align-items: center; justify-content: center; }
.promise__list strong { font-size: 16px; line-height: 1.3; letter-spacing: -.005em; }
.promise__list li > span:last-child { grid-column: 1 / -1; padding-top: 14px; border-top: 1px solid rgba(255, 255, 255, .12); font-size: 14px; line-height: 1.6; color: rgba(255, 255, 255, .8); }
@media (max-width: 1000px) { .promise__list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) {
  .owner-layout .letter { padding: 20px 18px; }
  .promise { padding: 26px 20px; }
  .promise__head h2 { font-size: 26px; }
  .promise__list { grid-template-columns: minmax(0, 1fr); }
}

/* Call band (above footer, every page) */
.prefooter { padding-top: 72px; padding-bottom: 72px; }
.call-band {
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 24px;
  padding: 32px 40px; border-radius: var(--radius-xl); color: var(--white); box-shadow: var(--shadow);
  background: radial-gradient(circle at 0% 100%, rgba(126, 224, 163, .18), transparent 40%), url('../img/pattern-plus-white.svg'), var(--green-deep);
}
.call-band__icon { width: 60px; height: 60px; border-radius: 18px; background: rgba(255, 255, 255, .14); border: 1px solid rgba(255, 255, 255, .18); display: inline-flex; align-items: center; justify-content: center; }
.call-band h2 { font-size: 26px; letter-spacing: -.015em; }
.call-band p { margin-top: 6px; color: rgba(255, 255, 255, .85); }
.call-band .btn--light { color: var(--green-deep); }
@media (max-width: 760px) {
  .call-band { grid-template-columns: 1fr; padding: 26px 24px; gap: 16px; }
  .call-band__icon { width: 52px; height: 52px; }
  .call-band__actions .btn { width: 100%; }
}

/* Inner pages */
.page-head { position: relative; padding-top: 48px; padding-bottom: 28px; display: flex; flex-direction: column; gap: 8px; }
.page-head::after {
  content: ""; position: absolute; right: 24px; top: 28px; width: 320px; height: 150px; pointer-events: none;
  background: url('../img/pattern-plus-green.svg');
  -webkit-mask-image: radial-gradient(closest-side, #000, transparent); mask-image: radial-gradient(closest-side, #000, transparent);
}
.page-head h1 { font-size: 42px; letter-spacing: -.025em; }
.page-head p { font-size: 17px; color: var(--muted); max-width: 640px; }
.breadcrumb { font-size: 14px; color: var(--muted); }
.breadcrumb a { color: var(--muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--ink); }
@media (max-width: 640px) { .page-head { padding-top: 28px; } .page-head h1 { font-size: 30px; } .page-head::after { display: none; } }

.stores-layout { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 24px; align-items: start; }
.stores-list { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.result-count { font-size: 14px; color: var(--muted); }
.stores-map { position: sticky; top: calc(var(--header-h) + 24px); padding: 10px; height: min(640px, calc(100vh - var(--header-h) - 48px)); border-radius: var(--radius-xl); display: flex; flex-direction: column; gap: 10px; transition: box-shadow .3s; }
.stores-map iframe { flex: 1 1 auto; width: 100%; min-height: 0; border: 0; border-radius: 12px; background: var(--placeholder); }
.stores-map__label { display: flex; align-items: center; gap: 6px; padding: 4px 6px 0; font-size: 14px; color: var(--muted); }
.stores-map__label .icon { color: var(--green); }
.stores-map__label strong { color: var(--ink); }
/* Brief green glow when "Show on map" changes the map, so the change is noticed */
.stores-map.is-updated { box-shadow: 0 0 0 3px rgba(8, 122, 59, .35), var(--shadow); }
@media (max-width: 960px) {
  .stores-layout { grid-template-columns: minmax(0, 1fr); }
  .stores-map { position: static; height: 380px; order: -1; }
}

/* Our Story (About page) reuses the letter styles from the Owner's message page */
.story { max-width: 880px; margin: 0 auto; align-items: stretch; }
.story > .section-label { align-self: flex-start; margin-bottom: 0; }
.story__heading { font-size: 34px; line-height: 1.2; letter-spacing: -.02em; }
@media (max-width: 560px) {
  .letter.story { padding: 22px 18px; }
  .story__heading { font-size: 26px; }}

/* Wide 2:1 photo, the same shape as the home banner */
.about-photo { display: block; width: 100%; aspect-ratio: 2 / 1; border-radius: var(--radius-xl); object-fit: cover; box-shadow: var(--shadow); }
.about-photo--art {
  display: flex; align-items: center; justify-content: center; padding: 32px;
  background: radial-gradient(circle at 70% 30%, rgba(255, 255, 255, .1), transparent 50%), url('../img/pattern-plus-white.svg'), var(--green-deep);
}
.about-photo--art .art { width: 100%; max-width: 400px; height: auto; overflow: visible; filter: drop-shadow(0 18px 30px rgba(0, 0, 0, .2)); }

.owner-layout { display: grid; grid-template-columns: minmax(260px, 1fr) minmax(0, 2fr); gap: 24px; align-items: start; }
.owner-profile { padding: 24px; display: flex; flex-direction: column; gap: 16px; border-radius: var(--radius-xl); position: sticky; top: calc(var(--header-h) + 24px); }
.owner-profile__photo { aspect-ratio: 4 / 5; border-radius: var(--radius); object-fit: cover; width: 100%; }
.owner-profile div:last-child { display: flex; flex-direction: column; gap: 4px; color: var(--muted); font-size: 15px; }
.owner-profile strong { font-size: 20px; color: var(--ink); }
.letter { padding: 48px; display: flex; flex-direction: column; gap: 22px; border-radius: var(--radius-xl); }
.letter__mark { width: 60px; height: 60px; border-radius: 18px; background: var(--tint); color: var(--green); display: inline-flex; align-items: center; justify-content: center; }
.letter__quote { font-size: 24px; line-height: 1.5; font-weight: 600; letter-spacing: -.01em; }
.letter p:not(.letter__quote) { font-size: 17px; line-height: 1.8; color: var(--text); }
/* Justified letter text only where lines are long enough (computers) for even word gaps.
   Narrower screens and the bullet boxes stay left-aligned, which avoids large gaps. */
.letter p { text-wrap: pretty; }
@media (min-width: 1000px) {
  .letter p:not(.letter__greeting) { text-align: justify; hyphens: auto; -webkit-hyphens: auto; }
}
.letter__greeting { font-size: 19px !important; font-weight: 600; color: var(--ink) !important; }
.principle { display: flex; flex-direction: column; gap: 14px; padding-top: 26px; border-top: 1px solid var(--line-soft); }
.principle__title { display: flex; flex-direction: column; gap: 8px; font-size: 23px; line-height: 1.3; letter-spacing: -.015em; }
.principle__no { display: inline-flex; align-items: center; gap: 10px; font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--green); }
.principle__no::before { content: ""; width: 22px; height: 2px; border-radius: 2px; background: var(--green); }
.pull-quote { margin: 4px 0; padding: 22px 24px; display: flex; flex-direction: column; gap: 12px; align-items: flex-start; border-radius: 16px; background: var(--tint-soft); border: 1px solid #D9EEE1; }
.pull-quote__mark { flex: none; width: 40px; height: 40px; border-radius: 12px; background: var(--green); color: var(--white); display: inline-flex; align-items: center; justify-content: center; }
.letter .pull-quote p { font-size: 20px; line-height: 1.5; font-weight: 600; letter-spacing: -.01em; color: var(--ink); text-align: left; hyphens: manual; }
.principle__points { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
/* Icon + title on the first line, description below at full width (no empty column under the icon) */
.principle__points li { display: flex; flex-direction: column; gap: 6px; padding: 14px 16px; border-radius: 12px; background: var(--tint-soft); font-size: 16px; line-height: 1.65; color: var(--text); }
.point__head { display: flex; align-items: center; gap: 8px; color: var(--ink); line-height: 1.35; }
.principle__points .icon { flex: none; color: var(--green); }
.letter__sign { border-top: 1px solid var(--line); padding-top: 22px; display: flex; flex-direction: column; gap: 4px; }
.letter__sign span { color: var(--muted); font-size: 15px; }
.letter__sign strong { font-size: 18px; }
@media (max-width: 860px) {
  .owner-layout { grid-template-columns: minmax(0, 1fr); }
  /* Photo stays large and sits above the name on phones and tablets */
  .owner-profile { position: static; padding: 16px 16px 20px; }
  .owner-profile__photo { width: 100%; max-width: 420px; }
  .letter { padding: 24px; }
  .letter__quote { font-size: 20px; }
  .principle__title { font-size: 20px; }
  .pull-quote { padding: 18px; }
  .letter .pull-quote p { font-size: 18px; }
  .principle__points li { padding: 12px 14px; font-size: 15px; }
}

/* Footer */
.site-footer { background: var(--white); color: var(--ink); border-top: 1px solid var(--line-soft); }
.site-footer__grid { padding-top: 64px; padding-bottom: 40px; display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 40px; }
.site-footer h2 { font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
.site-footer nav { display: flex; flex-direction: column; gap: 12px; font-size: 15px; }
.site-footer a { color: var(--ink); text-decoration: none; }
.site-footer a:hover { color: var(--green); }
.site-footer__logo { display: inline-flex; align-items: center; gap: 10px; }
.site-footer__brand p { margin-top: 16px; font-size: 14px; line-height: 1.7; color: var(--muted); max-width: 380px; }
.site-footer__bottom { padding-top: 20px; padding-bottom: 20px; border-top: 1px solid var(--line-soft); font-size: 13px; color: var(--muted); display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; }
.site-footer__top { display: inline-flex; align-items: center; gap: 6px; padding: 8px 0; }
.site-footer { padding-bottom: 72px; } /* room for the floating WhatsApp button */

/* Floating WhatsApp button with branch picker */
.wa-float { position: fixed; right: 20px; bottom: 20px; z-index: 60; }
.wa-float__toggle {
  list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: 10px;
  height: 56px; padding: 0 22px 0 18px; border-radius: 999px; background: #128C4A; color: var(--white);
  font-weight: 700; font-size: 15px; box-shadow: 0 10px 28px rgba(18, 140, 74, .35), 0 2px 6px rgba(0, 0, 0, .12);
  transition: background-color .15s, transform .2s var(--ease);
}
.wa-float__toggle::-webkit-details-marker { display: none; }
.wa-float__toggle:hover { background: #0E7A40; transform: translateY(-1px); }
.wa-float__toggle:focus-visible { outline: 3px solid #7EE0A3; outline-offset: 3px; }
.wa-float[open] .wa-float__toggle { background: #0E7A40; }
.wa-float__panel {
  position: absolute; right: 0; bottom: calc(100% + 12px); width: min(340px, calc(100vw - 32px));
  background: var(--white); border: 1px solid var(--line-soft); border-radius: 18px; overflow: hidden;
  box-shadow: 0 24px 60px rgba(11, 61, 36, .22), 0 4px 12px rgba(0, 0, 0, .08);
  animation: wa-pop .18s var(--ease);
}
@keyframes wa-pop { from { opacity: 0; transform: translateY(8px) scale(.98); } }
.wa-float__head { padding: 16px 18px; background: url('../img/pattern-plus-white.svg'), #128C4A; color: var(--white); display: flex; flex-direction: column; gap: 2px; }
.wa-float__head strong { font-size: 16px; }
.wa-float__head span { font-size: 13px; color: rgba(255, 255, 255, .85); }
.wa-float__list { list-style: none; margin: 0; padding: 8px; max-height: min(480px, 65vh); overflow-y: auto; }
.wa-float__list a { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 12px; color: var(--ink); text-decoration: none; transition: background-color .15s; }
.wa-float__list a:hover { background: #E8FAEF; color: var(--ink); }
.wa-float__list a .icon { margin-left: auto; color: var(--muted); flex: none; }
.wa-float__list a:hover .icon { color: #128C4A; }
.wa-float__name { display: flex; flex-direction: column; font-weight: 600; font-size: 15px; }
.wa-float__name small { font-weight: 500; font-size: 13px; color: var(--muted); }
@media (max-width: 640px) {
  .wa-float { right: 16px; bottom: 16px; }
  .wa-float__toggle { width: 56px; padding: 0; justify-content: center; }
  .wa-float__label { display: none; }
}
@media (prefers-reduced-motion: reduce) { .wa-float__panel { animation: none; } }
@media (max-width: 760px) { .site-footer__grid { grid-template-columns: 1fr; gap: 28px; padding-top: 48px; } }

/* Scroll reveal (only when JS runs) */
.js [data-reveal] { opacity: 0; transform: translateY(14px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.js [data-reveal].is-visible { opacity: 1; transform: none; }
.js .branch-card[data-reveal].is-visible:hover { transform: translateY(-3px); }
.js .branch-card--row[data-reveal].is-visible:hover { transform: none; }
@media (prefers-reduced-motion: reduce) {
  .js [data-reveal] { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}
