/* ===================================================================
   SERVICE DETAIL PAGE — WEB DEVELOPMENT
   Dedicated stylesheet for /service-web-development.html
   ===================================================================
   The component classes below (.service-hero, .included-grid,
   .process-phases, .examples-grid, .related-grid, etc.) are designed
   to be reused across all 8 service detail pages. To create another
   service page, copy this file and update the accent treatments at
   the top if desired.
   =================================================================== */

/* ============== BREADCRUMB ============== */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 32px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.breadcrumb a {
  color: var(--ink-3);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  padding-bottom: 2px;
  transition: all 0.2s;
}
.breadcrumb a:hover {
  color: var(--warm);
  border-bottom-color: var(--warm);
}
.bc-sep {
  color: var(--ink-4);
}
.bc-current {
  color: var(--ink);
}

/* ============== SERVICE HERO ============== */
.service-hero {
  padding: 70px 0 70px;
}
.service-hero-lead {
  font-family: 'Fraunces', serif;
  font-size: clamp(20px, 2vw, 26px);
  font-weight: 300;
  line-height: 1.55;
  letter-spacing: -0.012em;
  color: var(--ink-2);
  max-width: 760px;
  margin: -32px 0 60px;
}

/* ============== SERVICE SECTION HEADS ============== */
.service-section-head {
  max-width: 880px;
  margin-bottom: 64px;
}
.service-section-head .section-title {
  margin-top: 24px;
}
.service-section-head .section-lead {
  margin-top: 24px;
}

/* ============== WHAT'S INCLUDED ============== */
.service-included {
  padding: 120px 0;
}
.included-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}
[dir='rtl'] .included-grid {
  border-left: none;
  border-right: 1px solid var(--line);
}
.included-item {
  padding: 40px 36px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: background 0.3s ease;
}
[dir='rtl'] .included-item {
  border-right: none;
  border-left: 1px solid var(--line);
}
.included-item:hover {
  background: var(--bg-2);
}
.included-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid var(--line-2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  color: var(--ink);
  background: var(--bg);
  transition: all 0.3s ease;
}
.included-item:hover .included-icon {
  background: var(--ink);
  color: var(--bg);
  border-color: var(--ink);
}
.included-name {
  font-family: 'Fraunces', serif;
  font-size: 22px;
  font-weight: 400;
  letter-spacing: -0.012em;
  color: var(--ink);
  line-height: 1.25;
}
.included-desc {
  font-size: 14px;
  color: var(--ink-3);
  line-height: 1.7;
  font-weight: 300;
}

/* ============== STACK ============== */
.service-stack {
  padding: 120px 0;
  background: var(--bg-2);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  transition: background 0.3s ease;
}
.stack-head {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 56px;
}
.stack-head .section-eyebrow {
  justify-content: center;
}
.stack-head .section-lead {
  margin: 24px auto 0;
}
.stack-head .section-title {
  margin-top: 24px;
}
.stack-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}
.stack-pill {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--ink);
  padding: 10px 18px;
  border: 1px solid var(--line-2);
  border-radius: 99px;
  background: var(--bg);
  transition: all 0.2s;
}
.stack-pill:hover {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--bg);
}
[data-theme='dark'] .stack-pill:hover {
  background: var(--base);
  color: var(--bg-dark);
  border-color: var(--base);
}

/* ============== PROCESS PHASES ============== */
.service-process {
  padding: 120px 0;
}
.process-phases {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--line);
}
.phase {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 60px;
  padding: 56px 0;
  border-bottom: 1px solid var(--line);
  align-items: start;
}
.phase-num {
  font-family: 'Fraunces', serif;
  font-style: italic;
  font-size: clamp(64px, 7vw, 96px);
  font-weight: 300;
  line-height: 1;
  color: var(--warm);
  letter-spacing: -0.03em;
}
.phase-name {
  font-family: 'Fraunces', serif;
  font-size: clamp(32px, 3.6vw, 44px);
  font-weight: 300;
  letter-spacing: -0.02em;
  line-height: 1.05;
  color: var(--ink);
  margin-bottom: 16px;
}
.phase-desc {
  font-size: 17px;
  color: var(--ink-2);
  line-height: 1.7;
  font-weight: 300;
  max-width: 640px;
  margin-bottom: 28px;
}
.phase-deliverables {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 24px;
  max-width: 640px;
}
.phase-deliverables li {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--ink-3);
  padding-left: 18px;
  position: relative;
  line-height: 1.55;
}
.phase-deliverables li::before {
  content: '+';
  position: absolute;
  left: 0;
  color: var(--base);
  font-weight: 500;
}
[dir='rtl'] .phase-deliverables li {
  padding-left: 0;
  padding-right: 18px;
}
[dir='rtl'] .phase-deliverables li::before {
  left: auto;
  right: 0;
}

/* ============== REAL EXAMPLES ============== */
.service-examples {
  padding: 120px 0;
  background: var(--bg-2);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  transition: background 0.3s ease;
}
.examples-head {
  max-width: 720px;
  margin-bottom: 56px;
}
.examples-head .section-title {
  margin-top: 24px;
}
.examples-head .section-lead {
  margin-top: 24px;
}
.examples-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.example-tile {
  display: block;
  text-decoration: none;
  color: inherit;
  transition: transform 0.3s ease;
}
.example-tile:hover {
  transform: translateY(-4px);
}
.example-image {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: 12px;
  background: var(--bg);
  border: 1px solid var(--line);
  margin-bottom: 18px;
  transition: border-color 0.3s ease;
}
.example-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  transition: transform 0.5s ease;
}
.example-tile:hover .example-image {
  border-color: var(--ink-3);
}
.example-tile:hover .example-image img {
  transform: scale(1.04);
}
.example-external {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--bg);
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  color: var(--ink);
  transition: all 0.3s ease;
}
[dir='rtl'] .example-external {
  right: auto;
  left: 14px;
}
[dir='rtl'] .example-external i {
  transform: scaleX(-1);
}
.example-tile:hover .example-external {
  background: var(--ink);
  color: var(--bg);
  border-color: var(--ink);
  transform: rotate(-45deg);
}
[dir='rtl'] .example-tile:hover .example-external {
  transform: rotate(45deg);
}
[dir='rtl'] .example-tile:hover .example-external i {
  transform: scaleX(-1);
}
.example-meta {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.example-tag {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--base-deep);
  text-transform: uppercase;
}
.example-name {
  font-family: 'Fraunces', serif;
  font-size: 22px;
  font-weight: 400;
  letter-spacing: -0.015em;
  line-height: 1.15;
  color: var(--ink);
}
.example-desc {
  font-size: 14px;
  color: var(--ink-3);
  line-height: 1.65;
  font-weight: 300;
}
.examples-cta {
  margin-top: 56px;
  display: flex;
  justify-content: center;
}

/* ============== SERVICE FAQ ============== */
.service-faq {
  padding: 120px 0;
}

/* ============== RELATED SERVICES ============== */
.related-services {
  padding: 100px 0 120px;
}
.related-head {
  margin-bottom: 48px;
  max-width: 720px;
}
.related-head .section-title {
  margin-top: 24px;
}
.related-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}
[dir='rtl'] .related-grid {
  border-left: none;
  border-right: 1px solid var(--line);
}
.related-card {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 18px;
  padding: 32px 28px;
  align-items: center;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  text-decoration: none;
  color: inherit;
  transition: all 0.25s ease;
}
[dir='rtl'] .related-card {
  border-right: none;
  border-left: 1px solid var(--line);
}
.related-card:hover {
  background: var(--bg-2);
}
.related-num {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  color: var(--ink-4);
  letter-spacing: 0.1em;
}
.related-name {
  font-family: 'Fraunces', serif;
  font-size: 19px;
  font-weight: 400;
  letter-spacing: -0.012em;
  color: var(--ink);
  line-height: 1.2;
}
.related-arrow {
  font-size: 18px;
  color: var(--ink-3);
  transition: all 0.25s ease;
}
[dir='rtl'] .related-arrow {
  transform: scaleX(-1);
}
.related-card:hover .related-arrow {
  color: var(--warm);
  transform: rotate(-45deg);
}
[dir='rtl'] .related-card:hover .related-arrow {
  transform: scaleX(-1) rotate(45deg);
}

/* ============== RESPONSIVE ============== */
@media (max-width: 1100px) {
  .included-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .examples-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .related-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .phase {
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 48px 0;
  }
  .phase-deliverables {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 700px) {
  .service-hero {
    padding: 40px 0 60px;
  }
  .service-hero-lead {
    margin: -16px 0 40px;
  }
  .service-included,
  .service-stack,
  .service-process,
  .service-examples,
  .service-faq,
  .related-services {
    padding: 70px 0;
  }
  .included-grid {
    grid-template-columns: 1fr;
  }
  .included-item {
    padding: 32px 24px;
  }
  .related-grid {
    grid-template-columns: 1fr;
  }
  .related-card {
    padding: 24px;
  }
  .stack-pill {
    font-size: 11px;
    padding: 8px 14px;
  }
  .phase-num {
    font-size: 56px;
  }
  .phase-name {
    font-size: 28px;
  }
  .phase-desc {
    font-size: 16px;
  }
}

/* ============== RTL / ARABIC TYPOGRAPHY ============== */
[dir='rtl'] .service-hero-lead,
[dir='rtl'] .included-name,
[dir='rtl'] .phase-name,
[dir='rtl'] .example-name,
[dir='rtl'] .related-name {
  font-family: 'Reem Kufi', serif;
}
[dir='rtl'] .service-hero-lead em,
[dir='rtl'] .phase-name em {
  font-style: normal;
  font-weight: 700;
  color: var(--warm);
}
[dir='rtl'] .service-hero-lead {
  font-weight: 500;
  line-height: 1.7;
  letter-spacing: 0;
}
[dir='rtl'] .included-name {
  font-weight: 600;
  line-height: 1.3;
}
[dir='rtl'] .phase-name {
  font-weight: 600;
  line-height: 1.15;
}
[dir='rtl'] .example-name {
  font-weight: 600;
  line-height: 1.25;
}
[dir='rtl'] .related-name {
  font-weight: 600;
}

/* Phase number — Arabic-Indic, keep italic look via weight */
[dir='rtl'] .phase-num {
  font-style: normal;
  font-weight: 700;
  font-family: 'Tajawal', sans-serif;
  font-size: clamp(56px, 6vw, 80px);
}

/* Body text in Arabic */
[dir='rtl'] .included-desc,
[dir='rtl'] .phase-desc,
[dir='rtl'] .example-desc {
  font-family: 'Tajawal', sans-serif;
}
[dir='rtl'] .included-desc {
  font-size: 15px;
  line-height: 1.85;
}
[dir='rtl'] .phase-desc {
  font-size: 17px;
  line-height: 1.85;
}
[dir='rtl'] .example-desc {
  font-size: 15px;
  line-height: 1.8;
}

/* Mono labels become Tajawal */
[dir='rtl'] .breadcrumb,
[dir='rtl'] .related-num,
[dir='rtl'] .example-tag,
[dir='rtl'] .phase-deliverables li,
[dir='rtl'] .stack-pill {
  font-family: 'Tajawal', sans-serif;
  letter-spacing: 0;
  text-transform: none;
  font-weight: 500;
}
[dir='rtl'] .breadcrumb {
  font-size: 13px;
}
[dir='rtl'] .example-tag {
  font-size: 12px;
  font-weight: 700;
}
[dir='rtl'] .phase-deliverables li {
  font-size: 15px;
  line-height: 1.7;
}
[dir='rtl'] .stack-pill {
  font-size: 13px;
  font-weight: 500;
}
[dir='rtl'] .related-num {
  font-size: 12px;
}
