/* almuhimma.com page layer: sits on top of the original site.css.
   Dark ink hero, cream content sections, fire-orange accents. */
:root {
  --pg-ink: #0d0b0a;
  --pg-ink-2: #171310;
  --pg-cream: #faf6ef;
  --pg-paper: #ffffff;
  --pg-text: #1a1613;
  --pg-muted: #6f675f;
  --pg-line: #e8dfd1;
  --pg-line-dark: #2a221d;
  --pg-fire: #f03c0c;
  --pg-amber: #fc8400;
  --pg-fire-grad: linear-gradient(120deg, #f03c0c 0%, #fc8400 100%);
}

.pg-hero {
  position: relative;
  overflow: hidden;
  background: var(--pg-ink);
  color: var(--pg-cream);
  padding: clamp(150px, 20vw, 190px) 0 clamp(64px, 8vw, 100px);
}
.pg-hero::before {
  content: "";
  position: absolute;
  inset-inline-start: 55%;
  top: -20%;
  width: 70vw;
  height: 70vw;
  background: radial-gradient(circle, rgba(240, 60, 12, 0.32), transparent 62%);
  pointer-events: none;
}
.pg-hero__grid {
  position: relative;
  display: grid;
  gap: 36px;
  align-items: center;
}
@media (min-width: 900px) {
  .pg-hero__grid { grid-template-columns: 1.1fr 0.9fr; }
}
.pg-hero h1 {
  font-size: clamp(2.4rem, 6vw, 4.8rem);
  line-height: 1.06;
  font-weight: 800;
  margin: 14px 0 18px;
}
.pg-hero .lead {
  color: #cfc6b8;
  max-width: 52ch;
  font-size: clamp(1rem, 1.5vw, 1.15rem);
}
.pg-hero__ph {
  margin: 0;
  border-radius: 24px;
  overflow: hidden;
  aspect-ratio: 4 / 3;
}
.pg-hero__ph img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.pg-hero__cta,
.pg-cta__row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}

.pg-kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--pg-fire);
  margin: 0;
}
.pg-kicker::before {
  content: "";
  width: 28px;
  height: 2px;
  background: var(--pg-fire-grad);
}
.pg-kicker--light { color: var(--pg-amber); }

.pg-sec {
  padding: clamp(64px, 9vw, 120px) 0;
  background: var(--pg-cream);
  color: var(--pg-text);
}
.pg-sec--dark {
  background: var(--pg-ink);
  color: var(--pg-cream);
}
.pg-head {
  max-width: 760px;
  margin-bottom: 40px;
}
.pg-head h2,
.pg-h2 {
  font-size: clamp(1.9rem, 4vw, 3rem);
  line-height: 1.14;
  font-weight: 800;
  margin: 12px 0 14px;
}
.pg-head p { color: var(--pg-muted); font-size: 1.05rem; margin: 0; }
.pg-sec--dark .pg-head p,
.pg-muted { color: #cfc6b8; }
.pg-muted { margin: 14px 0 0; font-size: 1.05rem; }

.pg-split {
  display: grid;
  gap: 40px;
  align-items: center;
}
@media (min-width: 900px) {
  .pg-split { grid-template-columns: 1fr 1fr; }
}

.pg-grid { display: grid; gap: 20px; }
@media (min-width: 760px) {
  .pg-grid--2 { grid-template-columns: repeat(2, 1fr); }
  .pg-grid--3 { grid-template-columns: repeat(3, 1fr); }
}
.pg-card {
  display: flex;
  flex-direction: column;
  background: var(--pg-paper);
  border: 1px solid var(--pg-line);
  border-radius: 22px;
  overflow: hidden;
  margin: 0;
}
.pg-card__img {
  margin: 0;
  aspect-ratio: 16 / 10;
  overflow: hidden;
}
.pg-card__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.pg-card__body {
  display: flex;
  flex-direction: column;
  padding: 24px;
  flex: 1;
}
.pg-card h3 {
  font-size: 1.25rem;
  font-weight: 800;
  margin: 0 0 10px;
}
.pg-card p {
  color: var(--pg-muted);
  margin: 0 0 16px;
}
.pg-link {
  margin-top: auto;
  color: var(--pg-fire);
  font-weight: 800;
  text-decoration: none;
}
.pg-num {
  font-size: 0.9rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--pg-fire);
  margin: 0 0 10px;
}

.pg-values {
  border-top: 1px solid var(--pg-line);
}
.pg-value {
  display: grid;
  gap: 8px;
  padding: 24px 0;
  border-bottom: 1px solid var(--pg-line);
}
@media (min-width: 760px) {
  .pg-value { grid-template-columns: 70px 1fr 1.3fr; align-items: baseline; }
}
.pg-value h3 { margin: 0; font-size: 1.2rem; font-weight: 800; }
.pg-value p { margin: 0; color: var(--pg-muted); }

.pg-client {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 28px;
  background: var(--pg-ink);
  color: var(--pg-cream);
  border-radius: 28px;
  padding: clamp(28px, 4vw, 44px);
}
.pg-client__logo {
  display: inline-flex;
  background: var(--pg-fire-grad);
  border-radius: 18px;
  padding: 22px 30px;
}
.pg-client__logo img {
  display: block;
  height: 44px;
  width: auto;
}
.pg-client p {
  margin: 0;
  color: #cfc6b8;
  max-width: 46ch;
}

.pg-steps {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 18px;
}
@media (min-width: 760px) {
  .pg-steps { grid-template-columns: repeat(4, 1fr); }
}
.pg-step {
  background: var(--pg-ink-2);
  border: 1px solid var(--pg-line-dark);
  border-radius: 20px;
  padding: 24px;
}
.pg-step__n {
  display: block;
  font-size: 2.2rem;
  font-weight: 800;
  background: var(--pg-fire-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 10px;
}
.pg-step h3 { margin: 0 0 8px; font-size: 1.15rem; font-weight: 800; }
.pg-step p { margin: 0; color: #cfc6b8; }

.pg-cta {
  background: var(--pg-fire-grad);
  color: #fff;
  border-radius: 28px;
  padding: clamp(32px, 5vw, 56px);
}
.pg-cta h2 {
  margin: 0;
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 800;
  line-height: 1.15;
}
.pg-cta p {
  margin: 12px 0 0;
  opacity: 0.94;
  max-width: 56ch;
}
.pg-cta--dark {
  background: var(--pg-ink-2);
  border: 1px solid var(--pg-line-dark);
  color: var(--pg-cream);
}
.pg-cta--dark p { color: #cfc6b8; }

.pg-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 22px;
  border-radius: 999px;
  font-weight: 800;
  text-decoration: none;
  background: var(--pg-ink);
  color: var(--pg-cream);
  border: 0;
}
.pg-btn--light {
  background: #ffffff;
  color: var(--pg-ink);
}
.pg-btn--fire {
  background: var(--pg-fire-grad);
  color: #ffffff;
}

.pg-spacer { height: clamp(120px, 14vw, 160px); background: var(--pg-ink); }

/* a single service card shown as photo + text side by side on wide screens */
.pg-card--split { display: grid; grid-template-columns: 1fr; }
.pg-card--split .pg-card__img { aspect-ratio: 16 / 10; }
@media (min-width: 760px) {
  .pg-card--split { grid-template-columns: 1.1fr 1fr; }
  .pg-card--split .pg-card__img { aspect-ratio: auto; min-height: 340px; height: 100%; }
  .pg-card--split .pg-card__body { justify-content: center; padding: 40px; }
  .pg-card--split h3 { font-size: 1.6rem; }
}

/* site.js fades in .ph images only after it adds is-loaded; the explicit pictures
   on these pages never get that class, so they must always be visible */
.ph img,
.ph img.is-loaded { opacity: 1; }

.pg-fit-top { object-position: center 30%; }

/* home stats: bold dark cards with a fire accent and a large index number */
.facts .facts__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  counter-reset: fact;
}
@media (min-width: 900px) {
  .facts .facts__grid { grid-template-columns: repeat(4, 1fr); gap: 20px; }
}
.facts .fact {
  position: relative;
  overflow: hidden;
  background: var(--pg-ink);
  color: var(--pg-cream);
  border: 0;
  border-radius: 26px;
  padding: 34px 24px 26px;
  box-shadow: 0 22px 44px -26px rgba(13, 11, 10, 0.6);
  counter-increment: fact;
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}
.facts .fact:hover {
  transform: translateY(-6px);
  box-shadow: 0 30px 56px -26px rgba(240, 60, 12, 0.55);
}
.facts .fact::before {
  content: "";
  position: absolute;
  top: 0;
  inset-inline-start: 24px;
  width: 64px;
  height: 5px;
  border-radius: 0 0 6px 6px;
  background: var(--pg-fire-grad);
}
.facts .fact::after {
  content: "0" counter(fact);
  position: absolute;
  top: 14px;
  inset-inline-end: 20px;
  font-size: 2.6rem;
  font-weight: 900;
  line-height: 1;
  color: rgba(250, 246, 239, 0.1);
}
.facts .fact__num {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 4px 10px;
  margin: 0;
}
.facts .fact__num span {
  font-size: clamp(1.7rem, 2.8vw, 2.7rem);
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.02em;
  white-space: nowrap;
  background: linear-gradient(120deg, #ffffff 35%, #fdb35a 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.facts .fact__num small {
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--pg-amber);
  letter-spacing: 0.01em;
}
.facts .fact__label {
  margin: 16px 0 0;
  color: #cfc6b8;
  font-size: 0.98rem;
  font-weight: 600;
  line-height: 1.5;
}

/* about page: hero collage, story photo, tiles */
.pg-collage {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  grid-template-rows: repeat(2, minmax(170px, 1fr));
  gap: 14px;
}
@media (min-width: 900px) {
  .pg-collage { grid-template-rows: repeat(2, minmax(200px, 1fr)); }
}
.pg-collage figure {
  margin: 0;
  border-radius: 24px;
  overflow: hidden;
  min-height: 0;
}
.pg-collage__big { grid-row: 1 / span 2; }
.pg-collage picture,
.pg-collage img {
  display: block;
  width: 100%;
  height: 100%;
}
.pg-collage img { object-fit: cover; }

.pg-photo {
  position: relative;
  margin: 0;
  border-radius: 26px;
  overflow: hidden;
  aspect-ratio: 4 / 5;
}
.pg-photo picture,
.pg-photo img {
  display: block;
  width: 100%;
  height: 100%;
}
.pg-photo img { object-fit: cover; }
.pg-photo figcaption {
  position: absolute;
  inset-inline-start: 18px;
  bottom: 18px;
  padding: 9px 16px;
  border-radius: 999px;
  background: rgba(13, 11, 10, 0.72);
  color: var(--pg-cream);
  font-weight: 800;
  font-size: 0.85rem;
}

.pg-body {
  color: var(--pg-muted);
  font-size: 1.05rem;
  margin: 14px 0 0;
}
.pg-tiles {
  display: grid;
  gap: 14px;
  grid-template-columns: 1fr;
  margin-top: 28px;
}
@media (min-width: 560px) {
  .pg-tiles { grid-template-columns: repeat(3, 1fr); }
}
.pg-tile {
  background: var(--pg-paper);
  border: 1px solid var(--pg-line);
  border-radius: 20px;
  padding: 20px;
}
.pg-tile b {
  display: block;
  font-size: 1.6rem;
  font-weight: 900;
  color: var(--pg-ink);
  margin-bottom: 6px;
}
.pg-tile span {
  color: var(--pg-muted);
  font-size: 0.9rem;
  line-height: 1.5;
}

/* home stats: glass cards on a dark, drifting gradient */
.facts.sg {
  position: relative;
  overflow: hidden;
  border: 0;
  padding: clamp(64px, 9vw, 110px) 0;
  background:
    radial-gradient(60% 70% at 12% 0%, rgba(240, 60, 12, 0.35), transparent 60%),
    radial-gradient(50% 60% at 95% 100%, rgba(252, 132, 0, 0.28), transparent 60%),
    linear-gradient(160deg, #17110e 0%, #0d0b0a 60%, #1d1410 100%);
  color: var(--pg-cream);
}
.facts.sg::before,
.facts.sg::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  opacity: 0.45;
  pointer-events: none;
  animation: sgDrift 14s ease-in-out infinite alternate;
}
.facts.sg::before {
  width: 380px;
  height: 380px;
  background: #f03c0c;
  top: -140px;
  inset-inline-start: -90px;
}
.facts.sg::after {
  width: 320px;
  height: 320px;
  background: #fc8400;
  bottom: -130px;
  inset-inline-end: -70px;
  animation-delay: -6s;
}
.facts.sg .wrap { position: relative; z-index: 1; }

.sg-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}
.sg-card {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-height: 230px;
  padding: 26px 24px 24px;
  border-radius: 26px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.04));
  border: 1px solid rgba(255, 255, 255, 0.22);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35), 0 24px 50px -28px rgba(0, 0, 0, 0.7);
  -webkit-backdrop-filter: blur(18px) saturate(150%);
  backdrop-filter: blur(18px) saturate(150%);
  animation: sgIn 0.8s cubic-bezier(0.2, 0.7, 0.2, 1) both;
  transition: transform 0.4s cubic-bezier(0.2, 0.7, 0.2, 1), border-color 0.4s ease, box-shadow 0.4s ease;
}
.sg-card:nth-child(2) { animation-delay: 0.08s; }
.sg-card:nth-child(3) { animation-delay: 0.16s; }
.sg-card:nth-child(4) { animation-delay: 0.24s; }
.sg-card:nth-child(5) { animation-delay: 0.32s; }

/* light sheen that sweeps across on hover */
.sg-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(115deg, transparent 30%, rgba(255, 255, 255, 0.22) 50%, transparent 70%);
  transform: translateX(-120%);
  transition: transform 1s ease;
}
.sg-card:hover {
  transform: translateY(-8px);
  border-color: rgba(255, 255, 255, 0.42);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.4), 0 36px 70px -30px rgba(240, 60, 12, 0.6);
}
.sg-card:hover::before { transform: translateX(120%); }

.sg-ico {
  display: grid;
  place-items: center;
  width: 50px;
  height: 50px;
  border-radius: 16px;
  background: linear-gradient(135deg, #f03c0c, #fc8400);
  box-shadow: 0 12px 26px -12px rgba(240, 60, 12, 0.9);
  animation: sgBob 4.5s ease-in-out infinite;
}
.sg-card:nth-child(2) .sg-ico { animation-delay: -1s; }
.sg-card:nth-child(3) .sg-ico { animation-delay: -2s; }
.sg-card:nth-child(4) .sg-ico { animation-delay: -3s; }
.sg-card:nth-child(5) .sg-ico { animation-delay: -4s; }
.sg-ico svg {
  width: 26px;
  height: 26px;
  fill: none;
  stroke: #ffffff;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.sg-num {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 6px 10px;
  margin: auto 0 0;
}
.sg-val {
  font-size: clamp(2.1rem, 3.4vw, 3.2rem);
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.03em;
  white-space: nowrap;
  background: linear-gradient(100deg, #ffffff 0%, #ffd9a8 40%, #fc8400 60%, #ffffff 100%);
  background-size: 220% auto;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: sgShine 6s linear infinite;
}
.sg-unit {
  font-size: 0.98rem;
  font-weight: 800;
  color: #fdb35a;
}
.sg-label {
  margin: 0;
  font-size: 1.02rem;
  font-weight: 600;
  line-height: 1.5;
  color: #f1eadf;
}

@keyframes sgIn {
  from { opacity: 0; transform: translateY(26px) scale(0.98); }
  to { opacity: 1; transform: none; }
}
@keyframes sgBob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
}
@keyframes sgShine {
  to { background-position: 220% center; }
}
@keyframes sgDrift {
  from { transform: translate(0, 0) scale(1); }
  to { transform: translate(40px, -30px) scale(1.1); }
}

@media (max-width: 520px) {
  .sg-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .sg-card { min-height: 200px; padding: 20px 18px; }
  .sg-val { font-size: clamp(1.7rem, 7vw, 2.2rem); }
  .sg-label { font-size: 0.92rem; }
}

@media (prefers-reduced-motion: reduce) {
  .sg-card, .sg-val, .sg-ico, .facts.sg::before, .facts.sg::after {
    animation: none !important;
  }
}

.foot__links {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  justify-content: center;
}
.foot__links a {
  color: inherit;
  text-decoration: none;
  opacity: 0.85;
}

@media (max-width: 759px) {
  .pg-card__body { padding: 20px; }
  .pg-cta, .pg-client { border-radius: 22px; }
}
