/*
Theme Name: Taif Decor
Theme URI: https://tm4adv.com/
Author: Taif
Author URI: https://tm4adv.com/
Description: Arabic one-page WordPress theme for Taif Decor interior design services.
Version: 1.1.1
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 7.4
Text Domain: taif-decor
*/

@import url("https://fonts.googleapis.com/css2?family=IBM+Plex+Sans+Arabic:wght@400;500;600;700&family=Noto+Kufi+Arabic:wght@500;600;700&display=swap");

:root {
  --ink: #2B2B2B;
  --muted: #746b60;
  --line: #e5d9c8;
  --paper: #F7F4EF;
  --soft: #efe6da;
  --sand: #D8C3A5;
  --charcoal: #2B2B2B;
  --gold: #C8A96B;
  --olive: #2B2B2B;
  --teal: #2B2B2B;
  --clay: #C8A96B;
  --brass: #C8A96B;
  --white: #ffffff;
  --shadow: 0 18px 55px rgba(43, 43, 43, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "IBM Plex Sans Arabic", Tahoma, Arial, sans-serif;
  line-height: 1.75;
}

body.admin-bar .site-header {
  top: 50px;
}

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

img {
  max-width: 100%;
  height: auto;
}

.site-header {
  position: fixed;
  inset: 18px 22px auto;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 10px 12px;
  border: 1px solid rgba(255, 255, 255, 0.45);
  background: rgba(247, 244, 239, 0.88);
  box-shadow: 0 10px 35px rgba(43, 43, 43, 0.1);
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: max-content;
}

.brand-mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  background: var(--teal);
  color: var(--gold);
  font-weight: 700;
}

.custom-logo {
  width: auto;
  max-height: 42px;
}

.brand strong,
.brand small {
  display: block;
}

.brand small {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.2;
}

.main-nav {
  display: flex;
  gap: 6px;
}

.main-nav ul {
  display: flex;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
  width: 100%;
}

.main-nav a,
.header-action {
  padding: 10px 13px;
  color: var(--ink);
  font-size: 14px;
}

.header-action {
  background: var(--olive);
  color: var(--white);
}

.hero {
  position: relative;
  min-height: 92svh;
  display: grid;
  align-items: center;
  overflow: hidden;
}

.hero-image,
.hero-overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-image {
  object-fit: cover;
}

.hero-overlay {
  background:
    linear-gradient(90deg, rgba(43, 43, 43, 0.08), rgba(43, 43, 43, 0.48) 48%, rgba(43, 43, 43, 0.86)),
    linear-gradient(0deg, rgba(43, 43, 43, 0.62), transparent 34%);
}

.hero-content {
  position: relative;
  z-index: 1;
  width: min(720px, calc(100% - 40px));
  margin-inline: auto;
  padding-block: 150px 78px;
  color: var(--white);
  transform: translateX(22%);
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--brass);
  font-weight: 700;
}

.hero h1,
.section h2,
.contact-band h2,
.content-page h1,
.content-page h2 {
  margin: 0;
  line-height: 1.18;
  letter-spacing: 0;
  font-family: "Noto Kufi Arabic", "IBM Plex Sans Arabic", Tahoma, Arial, sans-serif;
  font-weight: 700;
}

.hero h1 {
  max-width: 680px;
  font-size: clamp(42px, 7vw, 86px);
}

.hero-copy {
  max-width: 590px;
  margin: 22px 0 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: 19px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.primary-btn,
.secondary-btn {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 12px 22px;
  font-weight: 700;
}

.primary-btn {
  background: var(--clay);
  color: var(--charcoal);
}

.secondary-btn {
  border: 1px solid rgba(255, 255, 255, 0.55);
  color: var(--white);
}

.trust-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  width: min(1120px, calc(100% - 40px));
  margin: -54px auto 0;
  position: relative;
  z-index: 2;
  background: var(--white);
  box-shadow: var(--shadow);
}

.trust-strip div {
  padding: 24px;
  border-inline-start: 1px solid var(--line);
}

.trust-strip div:last-child {
  border-inline-start: 0;
}

.trust-strip strong,
.trust-strip span {
  display: block;
}

.trust-strip span,
.section-heading p,
.service-card p,
.work-grid p,
.split-section p,
.steps span,
.contact-band p,
.site-footer,
.content-page {
  color: var(--muted);
}

.section,
.content-page {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
  padding: 88px 0;
}

.section-heading {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 36px;
  align-items: end;
  margin-bottom: 28px;
}

.section-heading.compact {
  display: block;
  max-width: 670px;
}

.section-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: 12px;
  color: #2B2B2B;
  font-weight: 800;
}

.section-link .lni {
  margin: 0;
}

.section h2,
.contact-band h2,
.content-page h1 {
  font-size: clamp(30px, 4vw, 50px);
}

.service-grid,
.work-grid,
.package-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.service-card,
.work-grid article,
.package-card {
  background: var(--white);
  border: 1px solid var(--line);
  padding: 24px;
}

.service-card span {
  color: var(--brass);
  font-weight: 700;
}

.service-card h3,
.work-grid h3 {
  margin: 14px 0 10px;
  line-height: 1.35;
}

.service-price {
  display: inline-flex;
  gap: 7px;
  align-items: center;
  margin: 8px 0 0;
  padding: 7px 10px;
  background: #efe6da;
  color: #2B2B2B !important;
  font-size: 13px;
  font-weight: 800;
}

.service-price .lni {
  margin: 0;
  color: #C8A96B;
}

.work-section,
.packages-section {
  border-top: 1px solid var(--line);
}

.blog-preview-section {
  border-top: 1px solid var(--line);
}

.work-grid,
.package-grid {
  grid-template-columns: repeat(3, 1fr);
}

.gallery-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 18px;
}

.gallery-tabs a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 8px 14px;
  border: 1px solid var(--line);
  background: var(--white);
  color: var(--ink);
  font-weight: 700;
}

.gallery-category {
  margin: 16px 0 0;
  color: var(--brass);
  font-weight: 700;
}

.work-swatch {
  display: grid;
  place-items: center;
  min-height: 220px;
  border: 1px solid var(--line);
}

.work-photo {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border: 1px solid var(--line);
  background: #efe6da;
}

.work-photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.work-swatch span {
  display: inline-flex;
  padding: 8px 12px;
  background: rgba(247, 244, 239, 0.88);
  color: #2B2B2B;
  font-size: 13px;
  font-weight: 700;
}

.swatch-wood {
  background:
    linear-gradient(135deg, rgba(82, 101, 82, 0.25), transparent 42%),
    repeating-linear-gradient(90deg, #8d6046 0 18px, #6b4938 18px 32px, #b58561 32px 44px);
}

.swatch-marble {
  background:
    linear-gradient(135deg, transparent 0 42%, rgba(165, 167, 161, 0.52) 43% 45%, transparent 46%),
    linear-gradient(30deg, #f5f1e8, #c8c4b8);
}

.swatch-gypsum {
  background:
    linear-gradient(90deg, transparent 0 46%, rgba(181, 144, 88, 0.45) 47% 49%, transparent 50%),
    linear-gradient(180deg, #f7f6f0, #d9d5ca);
}

.swatch-wallpaper {
  background:
    linear-gradient(135deg, rgba(200, 169, 107, 0.28), transparent 42%),
    repeating-linear-gradient(45deg, #f7f4ef 0 18px, #e8d9c4 18px 20px, #d8c3a5 20px 34px);
}

.swatch-flooring {
  background:
    linear-gradient(120deg, rgba(43, 43, 43, 0.16), transparent 38%),
    repeating-linear-gradient(90deg, #c49b71 0 28px, #a77c55 28px 30px, #d8b58a 30px 56px);
}

.swatch-commercial {
  background:
    linear-gradient(90deg, rgba(43, 43, 43, 0.78), rgba(43, 43, 43, 0.42)),
    linear-gradient(135deg, #d8c3a5, #f7f4ef);
}

.package-grid {
  align-items: stretch;
}

.package-card {
  display: flex;
  flex-direction: column;
  min-height: 100%;
}

.package-card.featured {
  background: var(--teal);
  color: var(--white);
  border-color: var(--teal);
  box-shadow: var(--shadow);
}

.package-tag {
  margin: 0 0 12px;
  color: var(--brass);
  font-weight: 700;
}

.package-card h3 {
  margin: 0 0 14px;
  font-size: 24px;
  line-height: 1.3;
}

.package-card ul {
  display: grid;
  gap: 8px;
  margin: 0 0 28px;
  padding: 0;
  list-style: none;
  color: var(--muted);
}

.package-card.featured ul {
  color: rgba(255, 255, 255, 0.78);
}

.package-card li {
  position: relative;
  padding-inline-start: 18px;
}

.package-card li::before {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  top: 12px;
  width: 7px;
  height: 7px;
  background: var(--clay);
}

.package-card a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  margin-top: auto;
  padding: 11px 18px;
  background: var(--ink);
  color: var(--white);
  font-weight: 700;
}

.package-card.featured a {
  background: var(--white);
  color: var(--teal);
}

.split-section {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 44px;
  align-items: start;
}

.steps {
  display: grid;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.steps li {
  display: grid;
  gap: 4px;
  padding: 22px 24px;
  background: var(--soft);
  border-inline-start: 4px solid var(--teal);
}

.contact-band {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto 74px;
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: center;
  padding: 38px;
  background: var(--teal);
  color: var(--white);
}

.primary-btn.light {
  background: var(--white);
  color: var(--teal);
  min-width: 190px;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
  padding: 28px 22px;
  border-top: 1px solid var(--line);
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-weight: 700;
  min-width: max-content;
}

.footer-brand img {
  width: 54px;
  height: 54px;
  object-fit: contain;
  padding: 6px;
  background: var(--ink);
}

@media (hover: hover) and (pointer: fine) {
  html.taif-cursor-ready,
  html.taif-cursor-ready body,
  html.taif-cursor-ready a,
  html.taif-cursor-ready button,
  html.taif-cursor-ready [role="button"],
  html.taif-cursor-ready input,
  html.taif-cursor-ready textarea,
  html.taif-cursor-ready select {
    cursor: none !important;
  }

  .taif-cursor-dot,
  .taif-cursor-ring,
  .taif-cursor-glow {
    position: fixed;
    top: 0;
    right: auto;
    bottom: auto;
    left: 0;
    pointer-events: none;
    z-index: 99999;
    opacity: 0;
    transition: opacity 0.2s ease, border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease, width 0.2s ease, height 0.2s ease;
    will-change: transform;
  }

  .taif-cursor-ready .taif-cursor-dot,
  .taif-cursor-ready .taif-cursor-ring,
  .taif-cursor-ready .taif-cursor-glow {
    opacity: 1;
  }

  .taif-cursor-dot {
    width: 10px;
    height: 10px;
    border-radius: 999px;
    background: #F0B35C;
    box-shadow:
      0 0 10px rgba(240, 179, 92, 0.95),
      0 0 26px rgba(184, 111, 43, 0.72);
  }

  .taif-cursor-ring {
    width: 56px;
    height: 56px;
    border: 1px solid rgba(240, 179, 92, 0.20);
    border-radius: 48% 52% 50% 50% / 50% 48% 52% 50%;
    background:
      radial-gradient(circle at 50% 50%, rgba(240, 179, 92, 0.16), rgba(184, 111, 43, 0.07) 42%, rgba(184, 111, 43, 0) 70%),
      conic-gradient(from 30deg, rgba(240, 179, 92, 0.02), rgba(240, 179, 92, 0.24), rgba(184, 111, 43, 0.04), rgba(240, 179, 92, 0.20), rgba(240, 179, 92, 0.02));
    box-shadow:
      0 0 16px rgba(240, 179, 92, 0.22),
      inset 0 0 18px rgba(240, 179, 92, 0.10);
    animation: taifCursorMorph 5.8s ease-in-out infinite;
    transform-origin: center;
  }

  .taif-cursor-ring::before {
    content: "";
    position: absolute;
    inset: 12px;
    border: 1px solid rgba(247, 244, 239, 0.20);
    border-radius: 50%;
    filter: blur(0.2px);
  }

  .taif-cursor-glow {
    width: 152px;
    height: 152px;
    border-radius: 999px;
    background: radial-gradient(circle, rgba(240, 179, 92, 0.20), rgba(184, 111, 43, 0.10) 36%, rgba(184, 111, 43, 0) 70%);
    mix-blend-mode: multiply;
    z-index: 1;
  }

  .taif-cursor-hover .taif-cursor-dot {
    background: #F7F4EF;
    box-shadow:
      0 0 18px rgba(247, 244, 239, 0.95),
      0 0 34px rgba(240, 179, 92, 0.88);
  }

  .taif-cursor-hover .taif-cursor-ring {
    width: 64px;
    height: 64px;
    border-color: rgba(240, 179, 92, 0.30);
    background:
      radial-gradient(circle at 50% 50%, rgba(247, 244, 239, 0.14), rgba(240, 179, 92, 0.12) 44%, rgba(184, 111, 43, 0) 72%),
      conic-gradient(from 90deg, rgba(240, 179, 92, 0.04), rgba(240, 179, 92, 0.34), rgba(184, 111, 43, 0.06), rgba(240, 179, 92, 0.28), rgba(240, 179, 92, 0.04));
    box-shadow:
      0 0 24px rgba(240, 179, 92, 0.34),
      inset 0 0 22px rgba(240, 179, 92, 0.14);
  }

  @keyframes taifCursorMorph {
    0% {
      border-radius: 48% 52% 50% 50% / 50% 48% 52% 50%;
      filter: blur(0);
    }
    25% {
      border-radius: 54% 46% 57% 43% / 45% 55% 44% 56%;
      filter: blur(0.2px);
    }
    50% {
      border-radius: 46% 54% 43% 57% / 56% 44% 55% 45%;
      filter: blur(0);
    }
    75% {
      border-radius: 52% 48% 55% 45% / 47% 53% 46% 54%;
      filter: blur(0.15px);
    }
    100% {
      border-radius: 48% 52% 50% 50% / 50% 48% 52% 50%;
      filter: blur(0);
    }
  }
}

@media (prefers-reduced-motion: reduce) {
  .taif-cursor-dot,
  .taif-cursor-ring,
  .taif-cursor-glow {
    display: none !important;
  }
}

@media (max-width: 920px) {
  body.admin-bar .site-header {
    top: 56px;
  }

  .site-header {
    inset: 10px 10px auto;
    flex-wrap: wrap;
  }

  .main-nav {
    order: 3;
    width: 100%;
    overflow-x: auto;
  }

  .hero-content {
    transform: none;
    padding-top: 190px;
  }

  .hero-overlay {
    background: linear-gradient(90deg, rgba(30, 35, 32, 0.25), rgba(30, 35, 32, 0.86));
  }

  .trust-strip,
  .section-heading,
  .service-grid,
  .work-grid,
  .package-grid,
  .split-section,
  .contact-band {
    grid-template-columns: 1fr;
  }

  .trust-strip,
  .contact-band {
    display: grid;
  }

  .trust-strip div {
    border-inline-start: 0;
    border-top: 1px solid var(--line);
  }

  .trust-strip div:first-child {
    border-top: 0;
  }
}

@media (max-width: 782px) {
  body.admin-bar .site-header {
    top: 66px;
  }
}

@media (max-width: 560px) {
  .site-header {
    padding: 9px;
  }

  .brand-mark {
    width: 38px;
    height: 38px;
  }

  .header-action,
  .main-nav a {
    padding: 8px 10px;
    font-size: 13px;
  }

  .hero {
    min-height: 96svh;
  }

  .hero h1 {
    font-size: 40px;
  }

  .hero-copy {
    font-size: 16px;
  }

  .section,
  .content-page {
    padding: 62px 0;
  }

  .service-card,
  .work-grid article,
  .package-card,
  .contact-band {
    padding: 20px;
  }

  .site-footer {
    display: grid;
    align-items: flex-start;
  }
}

/* Polished live redesign. */
body {
  background:
    linear-gradient(180deg, rgba(216, 195, 165, 0.24), rgba(247, 244, 239, 0) 520px),
    #F7F4EF !important;
}

.site-header {
  position: fixed !important;
  inset: auto !important;
  top: 0 !important;
  right: 0 !important;
  left: 0 !important;
  z-index: 1000;
  width: 100%;
  padding: 10px 20px;
  border: 0;
  border-bottom: 1px solid rgba(216, 195, 165, 0.36);
  background: rgba(247, 244, 239, 0.94);
  box-shadow: 0 12px 38px rgba(43, 43, 43, 0.10);
  backdrop-filter: blur(18px);
}

body.admin-bar .site-header {
  top: 32px !important;
}

.header-inner {
  display: grid;
  grid-template-columns: auto minmax(360px, 1fr) auto;
  gap: 18px;
  align-items: center;
  width: min(1180px, 100%);
  margin-inline: auto;
}

.brand {
  gap: 12px;
  min-width: 210px;
}

.brand-logo {
  width: 68px;
  height: 68px;
  object-fit: contain;
  padding: 7px;
  background: #2B2B2B;
  box-shadow: 0 12px 28px rgba(43, 43, 43, 0.16);
}

.brand-copy strong {
  color: #2B2B2B;
  font-family: "Noto Kufi Arabic", "IBM Plex Sans Arabic", Tahoma, Arial, sans-serif;
  font-size: 18px;
  line-height: 1.25;
}

.brand-copy small {
  margin-top: 3px;
  color: #746b60;
  font-size: 12px;
  white-space: nowrap;
}

.main-nav {
  justify-content: center;
  gap: 4px;
  overflow: visible;
}

.main-nav a {
  min-height: 42px;
  padding: 9px 12px;
  border: 1px solid transparent;
  color: #2B2B2B;
  font-weight: 700;
  line-height: 1.2;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.main-nav a:hover,
.main-nav a:focus-visible {
  border-color: rgba(200, 169, 107, 0.42);
  background: rgba(216, 195, 165, 0.25);
  color: #2B2B2B;
}

.header-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

.header-meta,
.header-phone {
  color: #746b60;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.header-meta {
  max-width: 175px;
  overflow: hidden;
  text-overflow: ellipsis;
}

.header-phone {
  color: #2B2B2B;
}

.header-action {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  padding: 10px 18px;
  background: #2B2B2B;
  color: #F7F4EF;
  font-weight: 800;
  box-shadow: 0 12px 24px rgba(43, 43, 43, 0.16);
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.header-action:hover,
.header-action:focus-visible {
  background: #C8A96B;
  color: #2B2B2B;
  transform: translateY(-1px);
}

.nav-toggle,
.nav-toggle-label {
  display: none;
}

.hero {
  min-height: calc(100svh - 88px);
}

.hero-content {
  width: min(760px, calc(100% - 40px));
  padding-block: 112px 86px;
}

.hero h1 {
  text-wrap: balance;
}

.hero-copy {
  max-width: 650px;
}

.trust-strip {
  overflow: hidden;
  border: 1px solid rgba(229, 217, 200, 0.9);
}

.service-card,
.work-grid article,
.package-card {
  min-height: 100%;
  box-shadow: 0 10px 30px rgba(43, 43, 43, 0.06);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.service-card:hover,
.work-grid article:hover,
.package-card:hover {
  border-color: rgba(200, 169, 107, 0.62) !important;
  box-shadow: 0 18px 45px rgba(43, 43, 43, 0.10);
  transform: translateY(-3px);
}

.section-heading p:not(.eyebrow) {
  max-width: 640px;
}

.work-photo,
.work-swatch {
  border-color: rgba(229, 217, 200, 0.92);
}

.package-card.featured {
  position: relative;
  overflow: hidden;
}

.package-card.featured::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 5px;
  background: #C8A96B;
}

.contact-band {
  position: relative;
  overflow: hidden;
  box-shadow: 0 20px 55px rgba(43, 43, 43, 0.14);
}

.contact-band::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(200, 169, 107, 0.18), transparent 44%);
  pointer-events: none;
}

.contact-band > * {
  position: relative;
}

.taif-fluent-form-panel {
  width: min(480px, 100%);
  padding: 24px;
  background: #F7F4EF;
  color: #2B2B2B;
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.16);
}

.taif-fluent-form-panel .fluentform,
.taif-fluent-form-panel .frm-fluent-form {
  margin: 0;
}

.taif-fluent-form-panel .ff-el-group {
  margin-bottom: 14px;
}

.taif-fluent-form-panel label,
.taif-fluent-form-panel .ff-el-input--label label {
  display: block;
  margin: 0 0 6px;
  color: #2B2B2B;
  font-family: "IBM Plex Sans Arabic", Tahoma, Arial, sans-serif;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.5;
}

.taif-fluent-form-panel input[type="text"],
.taif-fluent-form-panel input[type="email"],
.taif-fluent-form-panel input[type="tel"],
.taif-fluent-form-panel input[type="number"],
.taif-fluent-form-panel input[type="url"],
.taif-fluent-form-panel select,
.taif-fluent-form-panel textarea,
.taif-fluent-form-panel .ff-el-form-control {
  width: 100%;
  min-height: 48px;
  border: 1px solid #D8C3A5;
  background: #ffffff;
  color: #2B2B2B;
  padding: 10px 12px;
  font: inherit;
  box-shadow: none;
  outline: 0;
}

.taif-fluent-form-panel textarea,
.taif-fluent-form-panel textarea.ff-el-form-control {
  min-height: 104px;
  resize: vertical;
}

.taif-fluent-form-panel input:focus,
.taif-fluent-form-panel select:focus,
.taif-fluent-form-panel textarea:focus,
.taif-fluent-form-panel .ff-el-form-control:focus {
  border-color: #C8A96B;
  box-shadow: 0 0 0 3px rgba(200, 169, 107, 0.22);
}

.taif-fluent-form-panel .ff-btn,
.taif-fluent-form-panel button[type="submit"],
.taif-fluent-form-panel input[type="submit"] {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  border: 0;
  background: #C8A96B;
  color: #2B2B2B;
  padding: 12px 22px;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.taif-fluent-form-panel .ff-btn:hover,
.taif-fluent-form-panel .ff-btn:focus-visible,
.taif-fluent-form-panel button[type="submit"]:hover,
.taif-fluent-form-panel button[type="submit"]:focus-visible,
.taif-fluent-form-panel input[type="submit"]:hover,
.taif-fluent-form-panel input[type="submit"]:focus-visible {
  background: #2B2B2B;
  color: #F7F4EF;
  transform: translateY(-1px);
}

.taif-fluent-form-panel .ff-el-is-error .ff-el-form-control {
  border-color: #8a1f11;
}

.taif-fluent-form-panel .error,
.taif-fluent-form-panel .ff-el-is-error .text-danger {
  color: #8a1f11;
  font-size: 13px;
  font-weight: 700;
}

.taif-fluent-form-panel .ff-message-success {
  border: 1px solid rgba(43, 43, 43, 0.16);
  background: rgba(200, 169, 107, 0.18);
  color: #2B2B2B;
  padding: 12px 14px;
}

.lni {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-inline-end: 7px;
  line-height: 1;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: 12px;
  color: #2B2B2B;
  font-weight: 800;
}

.text-link .lni {
  margin: 0;
}

.blog-shell,
.project-page {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
  padding: 142px 0 86px;
}

.archive-header,
.article-header,
.project-hero {
  margin-bottom: 34px;
}

.archive-header h1,
.article-header h1,
.project-hero h1 {
  max-width: 850px;
  margin: 0;
  color: #2B2B2B;
  font-family: "Noto Kufi Arabic", "IBM Plex Sans Arabic", Tahoma, Arial, sans-serif;
  font-size: clamp(34px, 5vw, 64px);
  line-height: 1.22;
  letter-spacing: 0;
}

.archive-description,
.project-lead {
  max-width: 720px;
  margin-top: 16px;
  color: #746b60;
  font-size: 18px;
}

.post-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.post-card {
  min-height: 100%;
  background: #ffffff;
  border: 1px solid #e5d9c8;
  box-shadow: 0 10px 30px rgba(43, 43, 43, 0.06);
}

.post-card-media {
  display: grid;
  min-height: 210px;
  place-items: center;
  overflow: hidden;
  background: #efe6da;
}

.post-card-media img {
  width: 100%;
  height: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.post-card-media span {
  display: grid;
  width: 72px;
  height: 72px;
  place-items: center;
  background: #2B2B2B;
  color: #C8A96B;
  font-size: 28px;
}

.post-card-body {
  padding: 22px;
}

.post-date,
.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  color: #746b60;
  font-size: 14px;
  font-weight: 700;
}

.post-date {
  margin: 0 0 10px;
}

.post-card h2 {
  margin: 0 0 10px;
  font-family: "Noto Kufi Arabic", "IBM Plex Sans Arabic", Tahoma, Arial, sans-serif;
  font-size: 24px;
  line-height: 1.35;
}

.home-post-grid .post-card h3 {
  margin: 0 0 10px;
  font-family: "Noto Kufi Arabic", "IBM Plex Sans Arabic", Tahoma, Arial, sans-serif;
  font-size: 24px;
  line-height: 1.35;
}

.post-card p {
  color: #746b60;
}

.home-blog-empty {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 22px;
  background: #ffffff;
  border: 1px solid #e5d9c8;
  color: #746b60;
  font-weight: 700;
}

.home-blog-empty .lni {
  width: 38px;
  height: 38px;
  margin: 0;
  background: #2B2B2B;
  color: #C8A96B;
}

.home-blog-empty p {
  margin: 0;
}

.pagination-wrap {
  margin-top: 34px;
}

.pagination-wrap .nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.pagination-wrap a,
.pagination-wrap span {
  display: inline-flex;
  min-width: 42px;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  padding: 8px 12px;
  border: 1px solid #e5d9c8;
  background: #ffffff;
  color: #2B2B2B;
  font-weight: 800;
}

.pagination-wrap .current {
  background: #2B2B2B;
  color: #F7F4EF;
}

.article-page {
  max-width: none;
  margin-inline: auto;
}

.seo-article {
  width: 100%;
}

.article-lead {
  max-width: 820px;
  margin: 18px 0 0;
  color: #746b60;
  font-size: 19px;
}

.article-featured {
  margin: 28px 0;
  overflow: hidden;
  border: 1px solid #e5d9c8;
}

.article-featured img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.article-featured figcaption {
  padding: 10px 14px;
  background: #ffffff;
  color: #746b60;
  font-size: 13px;
}

.article-tax-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.article-tax-list a,
.article-tags a {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  padding: 6px 10px;
  border: 1px solid #e5d9c8;
  background: #ffffff;
  color: #2B2B2B;
  font-size: 13px;
  font-weight: 800;
}

.article-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 34px;
  align-items: start;
}

.article-toc {
  position: sticky;
  top: 118px;
  grid-column: 2;
  grid-row: 1;
  padding: 18px;
  background: #ffffff;
  border: 1px solid #e5d9c8;
  box-shadow: 0 10px 30px rgba(43, 43, 43, 0.06);
}

.article-toc strong {
  display: block;
  margin-bottom: 12px;
  color: #2B2B2B;
  font-family: "Noto Kufi Arabic", "IBM Plex Sans Arabic", Tahoma, Arial, sans-serif;
}

.article-toc ol {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.article-toc a {
  color: #746b60;
  font-size: 14px;
  font-weight: 700;
}

.article-toc a:hover,
.article-toc a:focus-visible {
  color: #2B2B2B;
}

.article-toc .toc-level-3 {
  padding-inline-start: 14px;
}

.article-content,
.content-page {
  color: #2B2B2B;
  font-size: 18px;
  line-height: 2;
}

.article-layout .article-content {
  max-width: 760px;
}

.article-content > *,
.content-page article > * {
  margin-block-start: 0;
  margin-block-end: 22px;
}

.article-content h2,
.article-content h3,
.article-content h4,
.content-page h2,
.content-page h3,
.content-page h4 {
  margin-block-start: 38px;
  color: #2B2B2B;
  font-family: "Noto Kufi Arabic", "IBM Plex Sans Arabic", Tahoma, Arial, sans-serif;
  line-height: 1.35;
}

.article-content h2,
.content-page h2 {
  font-size: clamp(28px, 3.5vw, 42px);
}

.article-content h3,
.content-page h3 {
  font-size: 26px;
}

.article-content p,
.article-content li,
.content-page p,
.content-page li {
  color: #4c463f;
}

.article-content a,
.content-page a {
  color: #8b6a2f;
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.article-content ul,
.article-content ol,
.content-page ul,
.content-page ol {
  padding-inline-start: 1.4em;
}

.article-content blockquote,
.content-page blockquote {
  margin-inline: 0;
  padding: 18px 22px;
  border-inline-start: 4px solid #C8A96B;
  background: #efe6da;
  color: #2B2B2B;
}

.article-content img,
.content-page img {
  border: 1px solid #e5d9c8;
}

.article-footer {
  max-width: 760px;
  margin-top: 44px;
}

.article-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-bottom: 18px;
}

.article-tags strong {
  margin-inline-end: 4px;
  color: #2B2B2B;
}

.author-box {
  display: flex;
  gap: 16px;
  align-items: center;
  padding: 20px;
  background: #ffffff;
  border: 1px solid #e5d9c8;
}

.author-box img {
  width: 72px;
  height: 72px;
  flex: 0 0 72px;
}

.author-box strong {
  display: block;
  color: #2B2B2B;
  font-family: "Noto Kufi Arabic", "IBM Plex Sans Arabic", Tahoma, Arial, sans-serif;
}

.author-box p {
  margin: 6px 0 0;
  color: #746b60;
}

.article-post-nav {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin: 44px 0 0;
}

.article-post-nav a {
  display: flex;
  min-height: 78px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px;
  background: #ffffff;
  border: 1px solid #e5d9c8;
  color: #2B2B2B;
  font-weight: 800;
}

.article-post-nav span {
  display: block;
  color: #746b60;
  font-size: 12px;
}

.related-posts {
  margin-top: 64px;
  padding-top: 48px;
  border-top: 1px solid #e5d9c8;
}

.project-hero {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 1.1fr);
  gap: 30px;
  align-items: end;
}

.project-hero-image {
  display: block;
  overflow: hidden;
  border: 1px solid #e5d9c8;
  box-shadow: 0 18px 45px rgba(43, 43, 43, 0.10);
}

.project-hero-image img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.project-details {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin: 0 0 42px;
}

.project-details div {
  padding: 18px;
  background: #ffffff;
  border: 1px solid #e5d9c8;
}

.project-details i {
  width: 34px;
  height: 34px;
  margin: 0 0 10px;
  background: #2B2B2B;
  color: #C8A96B;
}

.project-details span,
.project-details strong {
  display: block;
}

.project-details span {
  color: #746b60;
  font-size: 13px;
  font-weight: 700;
}

.project-details strong {
  color: #2B2B2B;
  font-size: 18px;
}

.project-content {
  max-width: 850px;
  margin: 0 0 54px;
  color: #4c463f;
  font-size: 18px;
  line-height: 2;
}

.project-gallery {
  padding-top: 36px;
  border-top: 1px solid #e5d9c8;
}

.project-gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.project-gallery-grid a {
  display: block;
  overflow: hidden;
  background: #efe6da;
  border: 1px solid #e5d9c8;
}

.project-gallery-grid img {
  display: block;
  width: 100%;
  height: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform 0.25s ease;
}

.project-gallery-grid a:hover img {
  transform: scale(1.035);
}

.taif-lightbox-open {
  overflow: hidden;
}

.taif-lightbox {
  position: fixed;
  inset: 0;
  z-index: 999999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 56px;
  background: rgba(43, 43, 43, 0.86);
}

.taif-lightbox.is-open {
  display: flex;
}

.taif-lightbox img {
  max-width: min(1120px, 100%);
  max-height: calc(100svh - 112px);
  border: 1px solid rgba(247, 244, 239, 0.34);
  object-fit: contain;
}

.taif-lightbox button {
  position: absolute;
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 1px solid rgba(247, 244, 239, 0.34);
  background: #F7F4EF;
  color: #2B2B2B;
  cursor: pointer;
  font: inherit;
  font-size: 28px;
}

.taif-lightbox-close {
  top: 18px;
  inset-inline-end: 18px;
}

.taif-lightbox-prev,
.taif-lightbox-next {
  top: 50%;
  transform: translateY(-50%);
}

.taif-lightbox-prev {
  inset-inline-start: 18px;
}

.taif-lightbox-next {
  inset-inline-end: 18px;
}

.empty-state {
  padding: 24px;
  background: #ffffff;
  border: 1px solid #e5d9c8;
  color: #746b60;
}

.site-footer {
  display: block !important;
  padding: 0 !important;
  border-top: 1px solid rgba(229, 217, 200, 0.9);
  background: #2B2B2B;
  color: #F7F4EF;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr 0.85fr 0.95fr;
  gap: 34px;
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
  padding: 54px 0 38px;
}

.footer-column h3,
.footer-widget h3 {
  margin: 0 0 16px;
  color: #F7F4EF;
  font-family: "Noto Kufi Arabic", "IBM Plex Sans Arabic", Tahoma, Arial, sans-serif;
  font-size: 20px;
  line-height: 1.35;
}

.footer-column p,
.footer-column li,
.footer-widget,
.footer-widget p {
  color: rgba(247, 244, 239, 0.74);
}

.footer-column p {
  max-width: 460px;
  margin: 14px 0 0;
}

.footer-brand {
  display: inline-flex !important;
  align-items: center !important;
  gap: 12px !important;
  color: #F7F4EF !important;
  font-weight: 800 !important;
}

.footer-brand img {
  width: 64px;
  height: 64px;
  object-fit: contain;
  padding: 6px;
  background: #F7F4EF;
}

.footer-contact-list,
.footer-links ul,
.footer-widget ul {
  display: grid;
  gap: 10px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}

.footer-contact-list li {
  display: flex;
  gap: 8px;
  align-items: flex-start;
}

.footer-column a,
.footer-widget a {
  color: #F7F4EF;
  text-decoration: none;
}

.footer-column a:hover,
.footer-column a:focus-visible,
.footer-widget a:hover,
.footer-widget a:focus-visible {
  color: #C8A96B;
}

.footer-social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.footer-social-links a {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 9px 12px;
  border: 1px solid rgba(247, 244, 239, 0.18);
  background: rgba(247, 244, 239, 0.06);
  color: #F7F4EF;
  font-size: 13px;
  font-weight: 800;
}

.footer-social-links a:hover,
.footer-social-links a:focus-visible {
  border-color: rgba(200, 169, 107, 0.72);
  background: #C8A96B;
  color: #2B2B2B;
}

.footer-social-links .lni,
.footer-bottom .lni,
.footer-contact-list .lni {
  margin: 0;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
  padding: 18px 0 22px;
  border-top: 1px solid rgba(247, 244, 239, 0.12);
  color: rgba(247, 244, 239, 0.66);
  font-size: 14px;
}

.footer-bottom a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #C8A96B;
  font-weight: 800;
}

.footer-certificate-grid {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}

.footer-certificate-card {
  display: grid;
  gap: 8px;
  padding: 10px;
  border: 1px solid rgba(247, 244, 239, 0.18);
  background: rgba(247, 244, 239, 0.06);
}

.footer-certificate-card img {
  display: block;
  width: 100%;
  height: 88px;
  object-fit: contain;
  background: #F7F4EF;
  padding: 8px;
}

.footer-certificate-card span {
  color: #F7F4EF;
  font-size: 13px;
  font-weight: 800;
}

.footer-certificate-card:hover,
.footer-certificate-card:focus-visible {
  border-color: rgba(200, 169, 107, 0.72);
}

.service-page {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
  padding: 142px 0 86px;
}

.service-landing {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(320px, 1.05fr);
  gap: 34px;
  align-items: center;
  margin-bottom: 54px;
}

.service-landing h1 {
  max-width: 780px;
  margin: 0;
  color: #2B2B2B;
  font-family: "Noto Kufi Arabic", "IBM Plex Sans Arabic", Tahoma, Arial, sans-serif;
  font-size: clamp(36px, 5.5vw, 68px);
  line-height: 1.2;
  letter-spacing: 0;
}

.service-lead {
  max-width: 660px;
  margin: 18px 0 0;
  color: #746b60;
  font-size: 19px;
}

.service-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.secondary-btn.dark {
  border-color: rgba(43, 43, 43, 0.24);
  color: #2B2B2B;
}

.service-hero-media {
  display: block;
  overflow: hidden;
  border: 1px solid #e5d9c8;
  background: #efe6da;
  box-shadow: 0 18px 45px rgba(43, 43, 43, 0.10);
}

.service-hero-media img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.service-content {
  max-width: 850px;
  margin-bottom: 54px;
}

.service-section {
  margin-top: 54px;
}

.service-gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.service-gallery-grid a {
  display: block;
  overflow: hidden;
  border: 1px solid #e5d9c8;
  background: #efe6da;
}

.service-gallery-grid img {
  display: block;
  width: 100%;
  height: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform 0.25s ease;
}

.service-gallery-grid a:hover img {
  transform: scale(1.035);
}

.service-info-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-top: 54px;
}

.service-panel {
  padding: 26px;
  background: #ffffff;
  border: 1px solid #e5d9c8;
  box-shadow: 0 10px 30px rgba(43, 43, 43, 0.06);
}

.service-panel h2 {
  margin: 0 0 16px;
  color: #2B2B2B;
  font-family: "Noto Kufi Arabic", "IBM Plex Sans Arabic", Tahoma, Arial, sans-serif;
  font-size: 28px;
  line-height: 1.35;
}

.service-panel ul {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.service-panel li {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  color: #4c463f;
}

.service-panel li .lni {
  width: 24px;
  height: 24px;
  flex: 0 0 24px;
  margin: 4px 0 0;
  background: #C8A96B;
  color: #2B2B2B;
  font-size: 13px;
}

.faq-list {
  display: grid;
  gap: 10px;
}

.faq-list details {
  background: #ffffff;
  border: 1px solid #e5d9c8;
}

.faq-list summary {
  cursor: pointer;
  padding: 18px 20px;
  color: #2B2B2B;
  font-weight: 800;
}

.faq-list p {
  margin: 0;
  padding: 0 20px 20px;
  color: #746b60;
}

.service-form-section {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 1.1fr);
  gap: 24px;
  align-items: start;
  margin-top: 64px;
  padding: 34px;
  background: #2B2B2B;
  color: #F7F4EF;
}

.service-form-section h2 {
  margin: 0;
  color: #F7F4EF;
  font-family: "Noto Kufi Arabic", "IBM Plex Sans Arabic", Tahoma, Arial, sans-serif;
  font-size: clamp(30px, 4vw, 46px);
  line-height: 1.25;
}

.service-form-section p {
  color: rgba(247, 244, 239, 0.78);
}

.service-form-section .taif-fluent-form-panel {
  width: 100%;
}

.service-calculator {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 1.1fr);
  gap: 24px;
  align-items: center;
  margin-top: 54px;
  padding: 30px;
  background: #ffffff;
  border: 1px solid #e5d9c8;
  box-shadow: 0 14px 38px rgba(43, 43, 43, 0.07);
}

.service-calculator h2 {
  margin: 0;
  color: #2B2B2B;
  font-family: "Noto Kufi Arabic", "IBM Plex Sans Arabic", Tahoma, Arial, sans-serif;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.3;
}

.service-calculator p {
  color: #746b60;
}

.calculator-box {
  display: grid;
  gap: 14px;
  padding: 22px;
  background: #F7F4EF;
  border: 1px solid #e5d9c8;
}

.calculator-box label span,
.calculator-result span {
  display: block;
  margin-bottom: 7px;
  color: #746b60;
  font-size: 14px;
  font-weight: 800;
}

.calculator-box input[type="number"],
.calculator-box input[type="text"] {
  width: 100%;
  min-height: 48px;
  border: 1px solid #D8C3A5;
  background: #ffffff;
  color: #2B2B2B;
  padding: 10px 12px;
  font: inherit;
  outline: 0;
}

.calculator-box input[type="number"]:focus,
.calculator-box input[type="text"]:focus {
  border-color: #C8A96B;
  box-shadow: 0 0 0 3px rgba(200, 169, 107, 0.22);
}

.calculator-box input[type="range"] {
  width: 100%;
  accent-color: #C8A96B;
  cursor: pointer;
}

.calculator-quantity {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: center;
  padding: 12px 14px;
  background: #ffffff;
  border: 1px solid #e5d9c8;
}

.calculator-quantity span {
  margin: 0;
}

.calculator-quantity strong {
  color: #2B2B2B;
  font-family: "Noto Kufi Arabic", "IBM Plex Sans Arabic", Tahoma, Arial, sans-serif;
}

.calculator-result {
  padding: 16px;
  background: #2B2B2B;
  color: #F7F4EF;
}

.calculator-result strong {
  display: block;
  color: #C8A96B;
  font-family: "Noto Kufi Arabic", "IBM Plex Sans Arabic", Tahoma, Arial, sans-serif;
  font-size: 30px;
  line-height: 1.25;
}

.calculator-note {
  margin: 0;
  color: #746b60;
  font-size: 13px;
}

@media (max-width: 1100px) {
  .header-inner {
    grid-template-columns: auto auto;
  }

  .main-nav {
    grid-column: 1 / -1;
    grid-row: 2;
  }

  .header-actions {
    justify-self: end;
  }

  .header-meta {
    display: none;
  }

  .post-grid,
  .project-gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .article-layout {
    grid-template-columns: 1fr;
  }

  .article-toc {
    position: static;
    grid-column: auto;
    grid-row: auto;
  }

  .article-layout .article-content,
  .article-footer {
    max-width: none;
  }

  .project-hero,
  .project-details,
  .footer-inner,
  .service-landing,
  .service-form-section,
  .service-calculator {
    grid-template-columns: 1fr 1fr;
  }

  .service-gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 760px) {
  body.admin-bar .site-header {
    top: 46px !important;
  }

  .site-header {
    padding: 8px 12px;
  }

  .header-inner {
    grid-template-columns: auto auto;
    gap: 10px;
  }

  .brand {
    min-width: 0;
  }

  .brand-logo {
    width: 56px;
    height: 56px;
  }

  .brand-copy strong {
    font-size: 16px;
  }

  .brand-copy small,
  .header-phone {
    display: none;
  }

  .nav-toggle-label {
    display: inline-flex;
    grid-column: 2;
    grid-row: 1;
    width: 44px;
    height: 44px;
    align-items: center;
    justify-content: center;
    justify-self: end;
    border: 1px solid rgba(216, 195, 165, 0.7);
    background: #fff;
  }

  .nav-toggle-label span,
  .nav-toggle-label span::before,
  .nav-toggle-label span::after {
    display: block;
    width: 20px;
    height: 2px;
    background: #2B2B2B;
    content: "";
  }

  .nav-toggle-label span {
    position: relative;
  }

  .nav-toggle-label span::before,
  .nav-toggle-label span::after {
    position: absolute;
    right: 0;
  }

  .nav-toggle-label span::before {
    top: -7px;
  }

  .nav-toggle-label span::after {
    top: 7px;
  }

  .main-nav,
  .header-actions {
    display: none;
    grid-column: 1 / -1;
  }

  .nav-toggle:checked ~ .main-nav,
  .nav-toggle:checked ~ .header-actions {
    display: grid;
  }

  .main-nav {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    padding-top: 8px;
  }

  .main-nav ul {
    display: grid;
    grid-template-columns: inherit;
    gap: inherit;
  }

  .main-nav a {
    justify-content: center;
    background: #fff;
    border-color: rgba(229, 217, 200, 0.95);
  }

  .header-actions {
    justify-content: stretch;
  }

  .header-action {
    width: 100%;
  }

  .taif-fluent-form-panel {
    width: 100%;
  }

  .hero {
    min-height: calc(100svh - 72px);
  }

  .hero-content {
    padding-top: 104px;
  }

  .blog-shell,
  .project-page {
    padding-top: 118px;
  }

  .post-grid,
  .article-post-nav,
  .project-hero,
  .project-details,
  .project-gallery-grid,
  .footer-inner,
  .service-landing,
  .service-gallery-grid,
  .service-info-grid,
  .service-form-section,
  .service-calculator {
    grid-template-columns: 1fr;
  }

  .footer-bottom {
    display: grid;
    justify-items: start;
  }

  .article-content,
  .content-page,
  .project-content,
  .service-content {
    font-size: 16px;
  }

  .author-box {
    align-items: flex-start;
  }

  .service-page {
    padding-top: 118px;
  }

  .service-form-section {
    padding: 24px 20px;
  }

  .taif-lightbox {
    padding: 54px 16px;
  }

  .taif-lightbox-prev,
  .taif-lightbox-next {
    bottom: 14px;
    top: auto;
    transform: none;
  }
}

@media (max-width: 520px) {
  .main-nav {
    grid-template-columns: 1fr;
  }

  .hero h1 {
    font-size: 36px;
  }
}

/* Header and footer refresh for service archives, calculators, and cleaner CTAs. */
.site-header {
  background: rgba(247, 244, 239, 0.96) !important;
  border-bottom: 1px solid rgba(200, 169, 107, 0.28) !important;
  box-shadow: 0 12px 34px rgba(43, 43, 43, 0.09) !important;
}

.header-inner {
  grid-template-columns: minmax(210px, auto) minmax(320px, 1fr) minmax(330px, auto);
}

.brand-logo {
  border: 1px solid rgba(200, 169, 107, 0.28);
  border-radius: 8px;
}

.main-nav a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
}

.header-actions {
  min-width: 0;
}

.header-meta,
.header-phone,
.header-quote,
.header-action {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border-radius: 8px;
}

.header-meta .lni,
.header-phone .lni,
.header-quote .lni,
.header-action .lni {
  flex: 0 0 auto;
  margin: 0;
}

.header-quote {
  min-height: 44px;
  padding: 10px 14px;
  border: 1px solid rgba(200, 169, 107, 0.45);
  background: #fff;
  color: #2B2B2B;
  font-size: 13px;
  font-weight: 900;
  white-space: nowrap;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.header-quote:hover,
.header-quote:focus-visible {
  border-color: #C8A96B;
  background: rgba(200, 169, 107, 0.16);
}

.footer-cta {
  display: flex;
  justify-content: space-between;
  gap: 22px;
  align-items: center;
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
  padding: 28px 0;
  border-bottom: 1px solid rgba(247, 244, 239, 0.12);
}

.footer-cta span {
  display: block;
  margin-bottom: 4px;
  color: #C8A96B;
  font-size: 13px;
  font-weight: 900;
}

.footer-cta strong {
  display: block;
  max-width: 640px;
  color: #F7F4EF;
  font-family: "Noto Kufi Arabic", "IBM Plex Sans Arabic", Tahoma, Arial, sans-serif;
  font-size: clamp(21px, 2.5vw, 32px);
  line-height: 1.45;
}

.footer-cta-actions,
.footer-bottom-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.footer-cta-actions a {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 14px;
  border: 1px solid rgba(247, 244, 239, 0.18);
  border-radius: 8px;
  background: rgba(247, 244, 239, 0.08);
  color: #F7F4EF;
  font-weight: 900;
}

.footer-cta-actions a:first-child {
  border-color: #C8A96B;
  background: #C8A96B;
  color: #2B2B2B;
}

.footer-service-list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-service-list a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.footer-service-list a::before {
  width: 7px;
  height: 7px;
  border: 1px solid #C8A96B;
  border-radius: 999px;
  content: "";
}

.footer-social-title {
  margin-top: 26px !important;
  font-size: 16px !important;
}

.footer-bottom-links a {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  gap: 7px;
  padding: 5px 9px;
  border-radius: 8px;
  color: #C8A96B;
  font-weight: 800;
}

.footer-bottom-links a:hover,
.footer-bottom-links a:focus-visible {
  background: rgba(247, 244, 239, 0.08);
}

@media (max-width: 1080px) {
  .header-inner {
    grid-template-columns: auto minmax(260px, 1fr) auto;
  }

  .header-meta {
    display: none;
  }
}

@media (max-width: 860px) {
  .header-quote,
  .header-phone {
    display: none;
  }
}

@media (max-width: 760px) {
  .header-inner {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .main-nav {
    grid-template-columns: 1fr !important;
  }

  .main-nav ul {
    grid-template-columns: 1fr !important;
  }

  .main-nav a {
    min-height: 46px;
    justify-content: flex-start;
  }

  .nav-toggle:checked ~ .header-actions {
    display: flex;
  }

  .header-actions {
    gap: 8px;
  }

  .header-action {
    width: 100%;
  }

  .footer-cta {
    display: grid;
    padding: 24px 0;
  }

  .footer-cta-actions a {
    flex: 1 1 180px;
  }

  .footer-bottom-links {
    width: 100%;
  }
}

/* Five-service creative grid. */
.section .service-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  grid-auto-rows: minmax(250px, auto);
  gap: 18px;
}

.section .service-card {
  position: relative;
  display: grid;
  min-height: 280px;
  overflow: hidden;
  padding: 0 !important;
  border: 1px solid rgba(200, 169, 107, 0.22) !important;
  border-radius: 8px;
  background: #fff !important;
  box-shadow: 0 16px 40px rgba(43, 43, 43, 0.08);
}

.section .service-card:nth-child(1) {
  grid-column: span 3;
  grid-row: span 2;
}

.section .service-card:nth-child(2),
.section .service-card:nth-child(3) {
  grid-column: span 3;
}

.section .service-card:nth-child(4),
.section .service-card:nth-child(5) {
  grid-column: span 3;
}

.service-card-media {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background:
    linear-gradient(135deg, rgba(43, 43, 43, 0.92), rgba(74, 67, 58, 0.74)),
    #2B2B2B;
}

.service-card-media::after {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(43, 43, 43, 0.05), rgba(43, 43, 43, 0.72)),
    radial-gradient(circle at 18% 18%, rgba(200, 169, 107, 0.32), transparent 36%);
  content: "";
}

.service-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.92) contrast(1.04);
  transform: scale(1.02);
  transition: transform 0.35s ease, filter 0.35s ease;
}

.service-card-media .lni {
  position: relative;
  z-index: 1;
  width: 96px;
  height: 96px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(247, 244, 239, 0.16);
  border-radius: 8px;
  background: rgba(247, 244, 239, 0.08);
  color: #C8A96B;
  font-size: 44px;
}

.service-card-body {
  position: relative;
  z-index: 1;
  display: flex;
  min-height: 100%;
  flex-direction: column;
  justify-content: flex-end;
  padding: 28px;
  color: #F7F4EF;
}

.section .service-card span:not(.service-price) {
  width: fit-content;
  margin-bottom: 12px;
  padding: 5px 9px;
  border: 1px solid rgba(247, 244, 239, 0.18);
  border-radius: 8px;
  background: rgba(247, 244, 239, 0.1);
  color: #C8A96B;
  font-size: 13px;
  font-weight: 900;
}

.section .service-card h3 {
  max-width: 620px;
  margin: 0 0 10px;
  color: #fff;
  font-family: "Noto Kufi Arabic", "IBM Plex Sans Arabic", Tahoma, Arial, sans-serif;
  font-size: clamp(24px, 2.7vw, 42px);
  line-height: 1.25;
}

.section .service-card:not(:first-child) h3 {
  font-size: clamp(22px, 2vw, 30px);
}

.section .service-card p {
  max-width: 620px;
  margin: 0;
  color: rgba(247, 244, 239, 0.78) !important;
}

.section .service-card .service-price {
  width: fit-content;
  margin: 16px 0 0;
  border-color: rgba(200, 169, 107, 0.38);
  background: rgba(200, 169, 107, 0.14);
  color: #F7F4EF !important;
}

.section .service-card .text-link {
  width: fit-content;
  margin-top: 18px;
  color: #C8A96B;
  font-weight: 900;
}

.section .service-card:hover .service-card-media img,
.section .service-card:focus-within .service-card-media img {
  filter: saturate(1.05) contrast(1.08);
  transform: scale(1.08);
}

.services-archive-grid {
  grid-template-columns: repeat(6, minmax(0, 1fr));
}

.services-archive-grid .service-archive-card {
  grid-column: span 3;
  border-radius: 8px;
  overflow: hidden;
}

.services-archive-grid .service-archive-card:first-child {
  grid-column: span 6;
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
}

.services-archive-grid .post-card-media {
  min-height: 260px;
}

.service-archive-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  margin-top: 18px;
}

.service-archive-actions .service-price {
  margin: 0;
}

@media (max-width: 980px) {
  .section .service-grid,
  .services-archive-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .section .service-card:nth-child(n),
  .services-archive-grid .service-archive-card,
  .services-archive-grid .service-archive-card:first-child {
    grid-column: span 1;
    grid-row: auto;
    display: grid;
    grid-template-columns: 1fr;
  }

  .section .service-card:first-child {
    grid-column: span 2;
  }
}

@media (max-width: 640px) {
  .section .service-grid,
  .services-archive-grid {
    grid-template-columns: 1fr;
  }

  .section .service-card:nth-child(n),
  .section .service-card:first-child {
    grid-column: span 1;
    min-height: 320px;
  }

  .service-card-body {
    padding: 24px 20px;
  }
}
