/* ==========================================================================
   Kalmedia | Photography Service Page — Design System & Full Stylesheet
   Namespace: .ph-* — zero impact on any other page in the project
   Reference: Visual direction matches the commercial photography landing reference
   Typography: Cairo (display) + IBM Plex Sans Arabic (body) — same as project
   Palette:
     Primary Blue  : #0756C9
     Dark Navy     : #0B1730
     Light Blue BG : #F5F9FF
     White         : #FFFFFF
   ========================================================================== */

/* ── 1. Photography Page CSS Custom Properties (scoped, no :root override) ── */
.ph-page {
  /* ── Colors ── */
  --ph-blue:        #0756C9;
  --ph-blue-dark:   #0544A8;
  --ph-blue-light:  #3A80E0;
  --ph-blue-glow:   rgba(7, 86, 201, 0.08);
  --ph-blue-glow-md:rgba(7, 86, 201, 0.15);
  --ph-navy:        #0B1730;
  --ph-navy-mid:    #162444;
  --ph-ink:         #1A2B45;
  --ph-ink-muted:   #5A708A;
  --ph-line:        #D8E8F8;
  --ph-bg:          #FFFFFF;
  --ph-bg-light:    #F5F9FF;
  --ph-bg-section:  #EEF5FF;
  --ph-white:       #FFFFFF;
  --ph-sky-100:     #E6F0FD;
  --ph-sky-200:     #C8DDF9;
  --ph-amber:       #F59E0B;
  --ph-success:     #10B981;

  /* ── Typography ── */
  --ph-font-display: 'Cairo', 'IBM Plex Sans Arabic', sans-serif;
  --ph-font-body:    'IBM Plex Sans Arabic', 'Cairo', sans-serif;

  /* ── Spacing Scale ── */
  --ph-sp-1:  0.4rem;
  --ph-sp-2:  0.8rem;
  --ph-sp-3:  1.2rem;
  --ph-sp-4:  1.75rem;
  --ph-sp-5:  2.5rem;
  --ph-sp-6:  4rem;
  --ph-sp-7:  6rem;

  /* ── Border Radius ── */
  --ph-r-xs:   6px;
  --ph-r-sm:   10px;
  --ph-r-md:   18px;
  --ph-r-lg:   28px;
  --ph-r-xl:   36px;
  --ph-r-pill: 999px;

  /* ── Shadows ── */
  --ph-shadow-xs:   0 2px 8px -4px rgba(11, 23, 48, 0.12);
  --ph-shadow-sm:   0 6px 18px -8px rgba(7, 86, 201, 0.14);
  --ph-shadow-md:   0 12px 32px -10px rgba(11, 23, 48, 0.16);
  --ph-shadow-lg:   0 20px 48px -12px rgba(11, 23, 48, 0.2);
  --ph-shadow-blue: 0 10px 28px -8px rgba(7, 86, 201, 0.35);

  /* ── Easing ── */
  --ph-ease:        cubic-bezier(0.22, 1, 0.36, 1);
  --ph-ease-in:     cubic-bezier(0.55, 0, 1, 0.45);
}

/* ── 2. Section Base Rhythm ── */
.ph-page section {
  padding-block: var(--ph-sp-7);
  max-width: 100vw;
  box-sizing: border-box;
  overflow: hidden; /* prevent horizontal bleed on most sections */
}

/* Hero must be overflow:visible so absolute geo elements show outside the card */
.ph-page .ph-hero {
  overflow: visible;
}

/* ── Global Image Quality Baseline (scoped to ph-page) ── */
.ph-page img {
  image-rendering: -webkit-optimize-contrast;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}

/* All images must never stretch EXCEPT those inside fixed-height containers */
/* Use a conservative approach: only apply height:auto to standalone images */
.ph-page img[class=""],
.ph-page img:not([class]) {
  max-width: 100%;
  height: auto;
}

.ph-page .ph-section-light {
  background: var(--ph-bg-light);
  border-top: 1px solid var(--ph-line);
  border-bottom: 1px solid var(--ph-line);
}

.ph-page .ph-section-white {
  background: var(--ph-bg);
}

.ph-page .ph-section-navy {
  background: var(--ph-navy);
}

/* ── 3. Container ──
   Inherits the global .container from style.css (max-width:1280px)
   ph-container-narrow for centered text sections */
.ph-container-narrow {
  max-width: 780px;
  margin-inline: auto;
}

/* ── 4. Section Header (Eyebrow + Title + Bar + Subtitle) ── */
.ph-section-header {
  text-align: center;
  max-width: 760px;
  margin: 0 auto var(--ph-sp-6);
}

.ph-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--ph-font-display);
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--ph-blue);
  background: var(--ph-sky-100);
  border: 1px solid var(--ph-sky-200);
  padding: 0.35rem 1.1rem;
  border-radius: var(--ph-r-pill);
  margin-bottom: 0.85rem;
  letter-spacing: 0.02em;
}

.ph-eyebrow .ph-dot {
  width: 6px;
  height: 6px;
  background: var(--ph-blue);
  border-radius: 50%;
  flex-shrink: 0;
}

.ph-section-title {
  font-family: var(--ph-font-display);
  font-size: clamp(1.85rem, 3.2vw, 2.55rem);
  font-weight: 800;
  color: var(--ph-navy);
  line-height: 1.25;
  margin-bottom: 0.75rem;
  overflow-wrap: break-word;
  word-wrap: break-word;
}

.ph-section-title .accent {
  color: var(--ph-blue);
}

.ph-title-bar {
  display: block;
  width: 44px;
  height: 3px;
  background: var(--ph-blue);
  border-radius: var(--ph-r-pill);
  margin: 0.75rem auto 1rem;
}

.ph-section-subtitle {
  font-family: var(--ph-font-body);
  font-size: 1.05rem;
  color: var(--ph-ink-muted);
  line-height: 1.8;
  max-width: 640px;
  margin-inline: auto;
}

/* ═══════════════════════════════════════════════════════════════
   TASK 03 — HEADER: Reference-matched white, compact, RTL header
   Scoped exclusively to .ph-page — zero impact on other pages
   ═══════════════════════════════════════════════════════════════ */

/* ── A. Header Shell ── */
.ph-page .site-header {
  background: #FFFFFF !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  border-bottom: none !important;
  box-shadow: none !important;
  transition: box-shadow 0.35s var(--ph-ease) !important;
}

/* subtle shadow only when scrolled — JS adds .scrolled class */
.ph-page .site-header.scrolled {
  box-shadow: 0 2px 20px -6px rgba(11, 23, 48, 0.10) !important;
}

/* ── B. Header Row — compact 72px tall, 3-column flex ── */
.ph-page .header-row {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  height: 72px !important;
  padding-block: 0 !important;
  gap: 1.5rem !important;
}

/* ── C. Logo (far right in RTL) ── */
.ph-page .site-header .logo {
  display: flex !important;
  align-items: center !important;
  gap: 0.45rem !important;
  font-family: var(--ph-font-display) !important;
  font-weight: 800 !important;
  font-size: 1.38rem !important;
  color: var(--ph-navy) !important;
  letter-spacing: -0.01em !important;
  white-space: nowrap !important;
  text-decoration: none !important;
  flex-shrink: 0 !important;
}

.ph-page .site-header .logo strong {
  color: var(--ph-blue) !important;
  font-weight: 800 !important;
}

.ph-page .site-header .logo .dot-mark {
  width: 10px !important;
  height: 10px !important;
  border-radius: 50% !important;
  background: var(--ph-blue) !important;
  flex-shrink: 0 !important;
}

/* Firestore dynamic logo image → tint to navy/blue on white bg */
.ph-page .site-header .logo img.site-logo-img {
  filter: brightness(0) saturate(100%) invert(18%) sepia(80%) saturate(2200%) hue-rotate(210deg) brightness(90%) contrast(100%);
  height: 44px !important;
  width: auto !important;
}

/* ── D. Desktop Navigation ── */
.ph-page .desktop-nav {
  display: none; /* hidden mobile-first, shown at ≥860px */
  flex: 1 !important;
  justify-content: center !important;
}

@media (min-width: 860px) {
  .ph-page .desktop-nav {
    display: flex !important;
  }
}

.ph-page .desktop-nav-list {
  display: flex !important;
  align-items: center !important;
  gap: 0.25rem !important;
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

.ph-page .desktop-nav-link {
  font-family: var(--ph-font-display) !important;
  font-size: 0.96rem !important;
  font-weight: 600 !important;
  color: var(--ph-ink) !important;
  padding: 0.5rem 0.85rem !important;
  border-radius: 8px !important;
  text-decoration: none !important;
  transition: color 0.22s var(--ph-ease),
              background 0.22s var(--ph-ease) !important;
  white-space: nowrap !important;
}

.ph-page .desktop-nav-link:hover {
  color: var(--ph-blue) !important;
  background: var(--ph-bg-light) !important;
}

.ph-page .desktop-nav-link.active {
  color: var(--ph-blue) !important;
  font-weight: 700 !important;
}

/* ── E. Header End (CTA + lang) ── */
.ph-page .header-end {
  display: flex !important;
  align-items: center !important;
  gap: 0.75rem !important;
  flex-shrink: 0 !important;
}

/* Reference CTA button — blue pill "اطلب عرض سعر" */
.ph-page .header-cta {
  display: inline-flex !important;
  align-items: center !important;
  gap: 0.4rem !important;
  background: var(--ph-blue) !important;
  color: #FFFFFF !important;
  font-family: var(--ph-font-display) !important;
  font-size: 0.93rem !important;
  font-weight: 700 !important;
  padding: 0.6rem 1.5rem !important;
  border-radius: var(--ph-r-pill) !important;
  border: none !important;
  box-shadow: 0 4px 16px -4px rgba(7, 86, 201, 0.38) !important;
  text-decoration: none !important;
  white-space: nowrap !important;
  transition: background 0.25s var(--ph-ease),
              transform 0.22s var(--ph-ease),
              box-shadow 0.25s var(--ph-ease) !important;
}

.ph-page .header-cta:hover {
  background: var(--ph-blue-dark) !important;
  transform: translateY(-1px) !important;
  box-shadow: 0 8px 22px -6px rgba(7, 86, 201, 0.48) !important;
}

/* ── F. Hamburger Button (mobile only) ── */
.ph-page .hamburger {
  display: flex !important;
  flex-direction: column !important;
  justify-content: center !important;
  gap: 5px !important;
  width: 40px !important;
  height: 40px !important;
  padding: 8px !important;
  border-radius: 8px !important;
  border: 1.5px solid var(--ph-line) !important;
  background: transparent !important;
  cursor: pointer !important;
  transition: border-color 0.22s var(--ph-ease),
              background 0.22s var(--ph-ease) !important;
}

.ph-page .hamburger:hover {
  border-color: var(--ph-blue) !important;
  background: var(--ph-bg-light) !important;
}

.ph-page .hamburger span {
  display: block !important;
  height: 2px !important;
  width: 100% !important;
  background: var(--ph-ink) !important;
  border-radius: 2px !important;
  transition: background 0.22s var(--ph-ease) !important;
}

.ph-page .hamburger:hover span {
  background: var(--ph-blue) !important;
}

/* Hide hamburger on desktop */
@media (min-width: 860px) {
  .ph-page .hamburger {
    display: none !important;
  }

  /* CTA must show on desktop */
  .ph-page .header-cta {
    display: inline-flex !important;
  }
}

/* Hide CTA on mobile (uses sticky bar instead) */
@media (max-width: 859px) {
  .ph-page .header-cta {
    display: none !important;
  }
}

/* ── G. Language switcher — keep in floating controls only ── */
.ph-page .header-end .lang-switch {
  display: none !important;
}

.ph-page .floating-controls .lang-switch {
  display: none !important;
}

/* ── H. Body top-padding compensation for fixed header ── */
.ph-page main {
  padding-top: 72px;
}

/* ─────────────────────────────────────────────────────────────── */

/* ═══════════════════════════════════════════════════════════════
   TASK 04 — HERO: Reference-matched geometric composition
   ═══════════════════════════════════════════════════════════════ */

/* ── Hero Section Shell ── */
.ph-hero {
  position: relative;
  padding-top: clamp(2rem, 3.5vw, 3.5rem);
  padding-bottom: 0;
  background: radial-gradient(circle at 85% 35%, rgba(7, 86, 201, 0.05) 0%, transparent 55%), #FFFFFF;
  overflow: visible;
}

/* ── Hero Grid — 2 columns: Visual Left = Text, Visual Right = Image ── */
.ph-hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 1.05fr;
  direction: ltr; /* Ensures col 1 is visual left (text) & col 2 is visual right (camera) */
  gap: clamp(2rem, 4vw, 4.5rem);
  align-items: center;
  position: relative;
  z-index: 2;
}

/* ── Text Content Column (Visual Left) ── */
.ph-hero-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  direction: rtl; /* Retains natural Arabic RTL reading and alignment */
  text-align: right;
  z-index: 2;
}

/* ── Badge / Eyebrow ── */
.ph-hero-eyebrow {
  margin-bottom: 1.1rem;
}

.ph-hero-eyebrow-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  background: #EBF3FE;
  border: 1.5px solid #C8DDF9;
  color: var(--ph-blue);
  font-family: var(--ph-font-display);
  font-size: 0.86rem;
  font-weight: 700;
  padding: 0.45rem 1.15rem;
  border-radius: var(--ph-r-pill);
  letter-spacing: 0.01em;
  box-shadow: 0 2px 8px rgba(7, 86, 201, 0.06);
}

.ph-hero-eyebrow-badge svg {
  width: 17px;
  height: 17px;
  stroke: var(--ph-blue);
  stroke-width: 1.8;
  fill: none;
  flex-shrink: 0;
}

/* ── H1 Heading ── */
.ph-hero-title {
  font-family: var(--ph-font-display);
  font-size: clamp(2.5rem, 4.3vw, 3.85rem);
  font-weight: 800;
  color: var(--ph-navy);
  line-height: 1.2;
  margin-bottom: 1.25rem;
  letter-spacing: -0.015em;
}

/* Second line of H1 → royal blue accent */
.ph-hero-title .accent {
  display: block;
  color: var(--ph-blue);
}

/* ── Description ── */
.ph-hero-desc {
  font-family: var(--ph-font-body);
  font-size: clamp(1rem, 1.15vw, 1.1rem);
  color: var(--ph-ink-muted);
  line-height: 1.85;
  margin-bottom: 2.2rem;
  max-width: 520px;
}

/* ── CTA Buttons Row ── */
.ph-hero-actions {
  display: flex;
  align-items: center;
  gap: 1.1rem;
  flex-wrap: wrap;
  margin-bottom: 0;
}

/* ══════════════════════════════════════════════════════════════════
   HERO IMAGE COMPOSITION — Geometric camera visual on Right
   ══════════════════════════════════════════════════════════════════ */

.ph-hero-media {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  direction: rtl;
  width: 100%;
}

.ph-hero-composition {
  position: relative;
  width: 100%;
  max-width: 540px;
  min-height: 440px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ── Main Camera Photo Card ── */
.ph-hero-image-card {
  position: relative;
  width: 100%;
  height: 420px;
  border-radius: 28px;
  overflow: hidden;
  box-shadow: 0 20px 50px -10px rgba(11, 23, 48, 0.16);
  background: #FFFFFF;
  border: 4px solid #FFFFFF;
  z-index: 2;
}

.ph-hero-image-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform 0.6s var(--ph-ease);
}

.ph-hero-image-card:hover img {
  transform: scale(1.03);
}

/* ── Blue Geometric Parallelogram Accent at Bottom-LEFT of image (matches reference) ── */
.ph-hero-geo-blue {
  position: absolute;
  bottom: -22px;
  left: -22px;   /* reference: geo block sits at lower-left corner */
  width: 160px;
  height: 130px;
  background: var(--ph-blue);
  border-radius: 22px;
  z-index: 1;
  clip-path: polygon(0% 0%, 85% 0%, 100% 100%, 0% 100%); /* diagonal cut toward top-right */
  box-shadow: 0 10px 30px rgba(7, 86, 201, 0.4);
  opacity: 0.95;
}

/* ── Decorative Blue Dot Matrix Pattern Cluster ── */
/* Positioned at LEFT side of composition, between text and camera image */
.ph-hero-dots-wrap {
  position: absolute;
  top: 50%;
  left: -45px;  /* extends left of image into the text/camera gap */
  transform: translateY(-50%);
  z-index: 3;
  width: 96px;
  height: 96px;
  pointer-events: none;
  opacity: 0.75;
}

.ph-hero-dots-cluster {
  width: 100%;
  height: 100%;
}

/* ── 3. Trust / Value Indicators Strip ── */
.ph-trust-strip {
  margin-top: clamp(2.5rem, 4vw, 3.5rem);
  padding: 1.85rem 0 2.2rem;
  border-top: 1px solid var(--ph-line);
  position: relative;
  z-index: 2;
}

.ph-trust-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  direction: rtl;
}

.ph-trust-item {
  display: flex;
  align-items: center;
  gap: 1.1rem;
  padding: 0.5rem 0.75rem;
  background: transparent;
  transition: transform 0.25s var(--ph-ease);
}

.ph-trust-item:hover {
  transform: translateY(-2px);
}

.ph-trust-icon {
  width: 50px;
  height: 50px;
  border-radius: 14px;
  background: #EBF3FE;
  border: 1.5px solid #C8DDF9;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ph-blue);
  flex-shrink: 0;
  transition: all 0.3s var(--ph-ease);
}

.ph-trust-item:hover .ph-trust-icon {
  background: var(--ph-blue);
  color: #FFFFFF;
  border-color: var(--ph-blue);
  box-shadow: 0 6px 18px rgba(7, 86, 201, 0.25);
}

.ph-trust-icon svg {
  width: 22px;
  height: 22px;
  stroke: currentColor;
  stroke-width: 1.9;
  fill: none;
}

.ph-trust-text {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.ph-trust-title {
  font-family: var(--ph-font-display);
  font-size: 1.02rem;
  font-weight: 700;
  color: var(--ph-navy);
  line-height: 1.3;
}

.ph-trust-sub {
  font-family: var(--ph-font-body);
  font-size: 0.85rem;
  color: var(--ph-ink-muted);
  line-height: 1.4;
}

/* ─────────────────────────────────────────────────────────────── */




/* ── 5. Typography Utilities ── */
.ph-page h1,
.ph-page h2,
.ph-page h3,
.ph-page h4 {
  font-family: var(--ph-font-display);
  line-height: 1.25;
  font-weight: 800;
  color: var(--ph-navy);
  overflow-wrap: break-word;
  word-wrap: break-word;
}

.ph-page p {
  font-family: var(--ph-font-body);
  line-height: 1.8;
  color: var(--ph-ink-muted);
}

.ph-text-navy   { color: var(--ph-navy) !important; }
.ph-text-blue   { color: var(--ph-blue) !important; }
.ph-text-muted  { color: var(--ph-ink-muted) !important; }
.ph-text-white  { color: var(--ph-white) !important; }

/* ── 6. Button System ── */

/* Primary — Solid Blue */
.ph-btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  background: var(--ph-blue);
  color: var(--ph-white) !important;
  font-family: var(--ph-font-display);
  font-size: 1rem;
  font-weight: 700;
  padding: 0.9rem 2rem;
  border-radius: var(--ph-r-pill);
  border: 2px solid var(--ph-blue);
  text-decoration: none;
  box-shadow: var(--ph-shadow-blue);
  transition: background 0.28s var(--ph-ease),
              border-color 0.28s var(--ph-ease),
              transform 0.28s var(--ph-ease),
              box-shadow 0.28s var(--ph-ease);
  cursor: pointer;
  white-space: nowrap;
}

.ph-btn-primary:hover {
  background: var(--ph-blue-dark);
  border-color: var(--ph-blue-dark);
  transform: translateY(-2px);
  box-shadow: 0 14px 36px -8px rgba(7, 86, 201, 0.45);
}

.ph-btn-primary:focus-visible {
  outline: 3px solid var(--ph-blue);
  outline-offset: 3px;
}

.ph-btn-primary svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  stroke-width: 2.2;
  fill: none;
  flex-shrink: 0;
  transition: transform 0.25s var(--ph-ease);
}

html[dir="rtl"] .ph-btn-primary:hover svg { transform: translateX(-4px); }
html[dir="ltr"] .ph-btn-primary:hover svg { transform: translateX(4px); }

/* Secondary — Outlined Blue */
.ph-btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  background: var(--ph-white);
  color: var(--ph-blue) !important;
  font-family: var(--ph-font-display);
  font-size: 1rem;
  font-weight: 700;
  padding: 0.9rem 2rem;
  border-radius: var(--ph-r-pill);
  border: 2px solid var(--ph-blue);
  text-decoration: none;
  box-shadow: var(--ph-shadow-xs);
  transition: background 0.28s var(--ph-ease),
              color 0.28s var(--ph-ease),
              transform 0.28s var(--ph-ease),
              box-shadow 0.28s var(--ph-ease);
  cursor: pointer;
  white-space: nowrap;
}

.ph-btn-secondary:hover {
  background: var(--ph-blue);
  color: var(--ph-white) !important;
  transform: translateY(-2px);
  box-shadow: var(--ph-shadow-blue);
}

.ph-btn-secondary:focus-visible {
  outline: 3px solid var(--ph-blue);
  outline-offset: 3px;
}

.ph-btn-secondary svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  stroke-width: 2;
  fill: none;
  flex-shrink: 0;
  transition: transform 0.25s var(--ph-ease);
}

/* Ghost — Transparent / White border (for dark backgrounds) */
.ph-btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  background: rgba(255,255,255,0.12);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: var(--ph-white) !important;
  font-family: var(--ph-font-display);
  font-size: 1rem;
  font-weight: 700;
  padding: 0.9rem 2rem;
  border-radius: var(--ph-r-pill);
  border: 1.5px solid rgba(255,255,255,0.35);
  text-decoration: none;
  transition: background 0.28s var(--ph-ease),
              border-color 0.28s var(--ph-ease),
              transform 0.28s var(--ph-ease);
  cursor: pointer;
  white-space: nowrap;
}

.ph-btn-ghost:hover {
  background: rgba(255,255,255,0.22);
  border-color: rgba(255,255,255,0.6);
  transform: translateY(-2px);
}

/* White (inverse, on dark bg) */
.ph-btn-white {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  background: var(--ph-white);
  color: var(--ph-blue) !important;
  font-family: var(--ph-font-display);
  font-size: 1rem;
  font-weight: 700;
  padding: 0.9rem 2rem;
  border-radius: var(--ph-r-pill);
  border: 2px solid transparent;
  text-decoration: none;
  box-shadow: 0 10px 30px rgba(0,0,0,0.18);
  transition: background 0.28s var(--ph-ease),
              color 0.28s var(--ph-ease),
              transform 0.28s var(--ph-ease),
              box-shadow 0.28s var(--ph-ease);
  cursor: pointer;
  white-space: nowrap;
}

.ph-btn-white:hover {
  background: var(--ph-bg-light);
  transform: translateY(-2px);
  box-shadow: 0 14px 36px rgba(0,0,0,0.24);
}

/* ═══════════════════════════════════════════════════════════════
   TASK 05 — MATCH REFERENCE VISUAL LANGUAGE ACROSS ALL SECTIONS
   Colors: #0756C9 (Blue) | #0B1730 (Navy) | #F5F9FF (Light) | #FFFFFF
   ═══════════════════════════════════════════════════════════════ */

/* ── 4. Services Section (.ph-services) ── */
.ph-services {
  background: var(--ph-bg);
  padding-block: clamp(4.5rem, 6.5vw, 6.5rem);
}

.ph-services-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1.35rem;
  direction: rtl;
}

.ph-service-card {
  background: #FFFFFF;
  border: 1px solid #E2EDF8;
  border-radius: 22px;
  padding: 2.35rem 1.35rem 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  min-height: 290px;
  box-shadow: 0 4px 18px -4px rgba(11, 23, 48, 0.05);
  transition: transform 0.3s var(--ph-ease),
              box-shadow 0.3s var(--ph-ease),
              border-color 0.3s var(--ph-ease);
  position: relative;
  overflow: hidden;
}

.ph-service-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 14px 34px -8px rgba(7, 86, 201, 0.12);
  border-color: #C8DDF9;
}

.ph-service-card .ph-icon-wrap {
  width: 64px;
  height: 64px;
  border-radius: 18px;
  background: #EBF3FE;
  border: 1.5px solid #C8DDF9;
  color: var(--ph-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.35rem;
  transition: all 0.3s var(--ph-ease);
  flex-shrink: 0;
}

.ph-service-card .ph-icon-wrap svg {
  width: 30px;
  height: 30px;
  stroke: currentColor;
  stroke-width: 1.8;
  fill: none;
}

.ph-service-card:hover .ph-icon-wrap {
  background: var(--ph-blue);
  color: #FFFFFF;
  border-color: var(--ph-blue);
  box-shadow: 0 8px 20px rgba(7, 86, 201, 0.25);
  transform: scale(1.05);
}

.ph-service-card .ph-card-title {
  font-family: var(--ph-font-display);
  font-size: 1.12rem;
  font-weight: 700;
  color: var(--ph-navy);
  margin-bottom: 0.65rem;
  line-height: 1.35;
}

.ph-service-card .ph-card-desc {
  font-family: var(--ph-font-body);
  font-size: 0.88rem;
  color: var(--ph-ink-muted);
  line-height: 1.65;
  max-width: 220px;
  margin: 0 auto;
}

/* ── 5. Process Section (.ph-process) ── */
.ph-process {
  background: var(--ph-bg);
  padding-block: clamp(4.5rem, 6.5vw, 6.5rem);
}

.ph-process-track {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1.5rem;
  position: relative;
  margin-top: 1.5rem;
  direction: rtl;
}

/* Connecting dotted line behind process step circles */
.ph-process-track::before {
  content: '';
  position: absolute;
  top: 42px;
  left: calc(10% + 40px);
  right: calc(10% + 40px);
  height: 3px;
  border-top: 3px dotted #70A6E8;
  z-index: 1;
  opacity: 0.8;
}

.ph-process-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
  z-index: 2;
}

.ph-process-circle-wrap {
  position: relative;
  margin-bottom: 1.35rem;
  z-index: 2;
}

.ph-process-circle {
  width: 84px;
  height: 84px;
  border-radius: 50%;
  background: #FFFFFF;
  border: 2px solid #C8DDF9;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ph-blue);
  box-shadow: 0 8px 24px -6px rgba(7, 86, 201, 0.12);
  transition: all 0.3s var(--ph-ease);
  position: relative;
  z-index: 2;
}

.ph-process-step:hover .ph-process-circle {
  border-color: var(--ph-blue);
  background: #F0F6FF;
  transform: translateY(-4px);
  box-shadow: 0 12px 28px -4px rgba(7, 86, 201, 0.22);
}

.ph-process-circle svg {
  width: 32px;
  height: 32px;
  stroke: var(--ph-blue);
  stroke-width: 1.8;
  fill: none;
  transition: transform 0.3s var(--ph-ease);
}

.ph-process-step:hover .ph-process-circle svg {
  transform: scale(1.08);
}

.ph-process-badge {
  position: absolute;
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--ph-blue);
  color: #FFFFFF;
  font-family: var(--ph-font-display);
  font-size: 0.76rem;
  font-weight: 800;
  padding: 0.18rem 0.65rem;
  border-radius: var(--ph-r-pill);
  box-shadow: 0 2px 8px rgba(7, 86, 201, 0.35);
  border: 2px solid #FFFFFF;
  z-index: 3;
}

.ph-process-title {
  font-family: var(--ph-font-display);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--ph-navy);
  margin-bottom: 0.45rem;
  line-height: 1.35;
}

.ph-process-desc {
  font-family: var(--ph-font-body);
  font-size: 0.88rem;
  color: var(--ph-ink-muted);
  line-height: 1.65;
  max-width: 190px;
  margin: 0 auto;
}

/* ── 6. Portfolio Section (.ph-portfolio) ── */
.ph-portfolio {
  background: var(--ph-bg);
  padding-block: clamp(4.5rem, 6.5vw, 6.5rem);
}

.ph-portfolio-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1.35rem;
  direction: rtl;
}

.ph-portfolio-card {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  height: 270px;
  box-shadow: 0 10px 28px -6px rgba(11, 23, 48, 0.12);
  background: #F0F6FF;
}

/* Subtle dark gradient overlay at bottom */
.ph-portfolio-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(11, 23, 48, 0.45) 0%, rgba(11, 23, 48, 0.08) 45%, transparent 70%);
  pointer-events: none;
  transition: opacity 0.3s;
  z-index: 1;
}

.ph-portfolio-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;  /* favor upper-center for portrait/corporate shots */
  display: block;
  transition: transform 0.6s var(--ph-ease);
}

/* Art-direction: food shots — center is best */
.ph-portfolio-card:nth-child(4) img {
  object-position: center center;
}

/* Art-direction: product/cosmetic shots — center */
.ph-portfolio-card:nth-child(3) img {
  object-position: center center;
}

/* Art-direction: architectural/travel — lower third for horizon */
.ph-portfolio-card:nth-child(5) img {
  object-position: center 40%;
}

.ph-portfolio-card:hover img {
  transform: scale(1.08);
}

.ph-portfolio-tag {
  position: absolute;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  background: #FFFFFF;
  color: var(--ph-navy);
  font-family: var(--ph-font-display);
  font-size: 0.85rem;
  font-weight: 700;
  padding: 0.45rem 1.25rem;
  border-radius: var(--ph-r-pill);
  white-space: nowrap;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.9);
  transition: all 0.25s var(--ph-ease);
  z-index: 2;
}

.ph-portfolio-card:hover .ph-portfolio-tag {
  background: var(--ph-blue);
  color: #FFFFFF;
  border-color: var(--ph-blue);
  box-shadow: 0 6px 16px rgba(7, 86, 201, 0.3);
}

.ph-portfolio-cta-wrap {
  text-align: center;
  margin-top: 3.25rem;
}

/* ── 7. Articles Section (.ph-articles) ── */
.ph-articles {
  background: var(--ph-bg);
  padding-block: clamp(4.5rem, 6.5vw, 6.5rem);
}

.ph-articles-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  direction: rtl;
}

.ph-article-card {
  background: #FFFFFF;
  border: 1px solid #E2EDF8;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 4px 16px -4px rgba(11, 23, 48, 0.05);
  transition: transform 0.3s var(--ph-ease),
              box-shadow 0.3s var(--ph-ease),
              border-color 0.3s var(--ph-ease);
  display: flex;
  flex-direction: column;
}

.ph-article-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 14px 32px -8px rgba(7, 86, 201, 0.12);
  border-color: #C8DDF9;
}

.ph-article-img-wrap {
  position: relative;
  height: 190px;
  overflow: hidden;
  background: #F0F6FF;
}

.ph-article-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.6s var(--ph-ease);
}

.ph-article-card:hover .ph-article-img-wrap img {
  transform: scale(1.06);
}

.ph-article-category {
  position: absolute;
  top: 12px;
  inset-inline-end: 12px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  color: var(--ph-blue);
  font-family: var(--ph-font-display);
  font-size: 0.78rem;
  font-weight: 700;
  padding: 0.3rem 0.9rem;
  border-radius: var(--ph-r-pill);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.ph-article-body {
  padding: 1.35rem 1.4rem 1.6rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  text-align: right;
}

.ph-article-title {
  font-family: var(--ph-font-display);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--ph-navy);
  line-height: 1.45;
  margin-bottom: 0.9rem;
  flex-grow: 1;
}

.ph-article-meta {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  color: var(--ph-ink-muted);
  font-family: var(--ph-font-body);
  font-size: 0.82rem;
}

.ph-article-meta svg {
  width: 15px;
  height: 15px;
  stroke: var(--ph-blue);
  stroke-width: 1.8;
  fill: none;
}

.ph-articles-cta-wrap {
  text-align: center;
  margin-top: 3.25rem;
}

/* ── 8. Why Choose Us Section (.ph-why) ── */
.ph-why {
  background: #F5F9FF;
  border-top: 1px solid #E2EDF8;
  border-bottom: 1px solid #E2EDF8;
  padding-block: clamp(4.5rem, 6.5vw, 6.5rem);
}

.ph-why-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  direction: rtl;
}

.ph-why-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 1rem 1.75rem;
  border-inline-start: 1px dashed #C8DDF9;
  transition: transform 0.3s var(--ph-ease);
}

/* Remove divider from first (rightmost in RTL) feature */
.ph-why-item:first-child {
  border-inline-start: none;
}

.ph-why-item:hover {
  transform: translateY(-3px);
}

.ph-why-icon {
  width: 64px;
  height: 64px;
  border-radius: 18px;
  background: #FFFFFF;
  border: 1.5px solid #C8DDF9;
  color: var(--ph-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.35rem;
  box-shadow: 0 4px 14px rgba(7, 86, 201, 0.08);
  transition: all 0.3s var(--ph-ease);
}

.ph-why-item:hover .ph-why-icon {
  background: var(--ph-blue);
  color: #FFFFFF;
  border-color: var(--ph-blue);
  box-shadow: 0 8px 22px rgba(7, 86, 201, 0.28);
  transform: scale(1.05);
}

.ph-why-icon svg {
  width: 28px;
  height: 28px;
  stroke: currentColor;
  stroke-width: 1.8;
  fill: none;
}

.ph-why-title {
  font-family: var(--ph-font-display);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--ph-navy);
  margin-bottom: 0.55rem;
  line-height: 1.35;
}

.ph-why-desc {
  font-family: var(--ph-font-body);
  font-size: 0.92rem;
  color: var(--ph-ink-muted);
  line-height: 1.7;
  max-width: 240px;
  margin: 0 auto;
}

/* ── 9. Testimonials Section (.ph-testimonials) ── */
.ph-testimonials {
  background: var(--ph-bg);
  padding-block: clamp(4.5rem, 6.5vw, 6.5rem);
}

.ph-testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.6rem;
  direction: rtl;
}

.ph-testimonial-card {
  background: #FFFFFF;
  border: 1px solid #E2EDF8;
  border-radius: 22px;
  padding: 2rem 1.85rem 1.75rem;
  display: flex;
  flex-direction: column;
  position: relative;
  box-shadow: 0 4px 16px -4px rgba(11, 23, 48, 0.05);
  text-align: right;
  min-height: 250px;
  transition: transform 0.3s var(--ph-ease),
              box-shadow 0.3s var(--ph-ease),
              border-color 0.3s var(--ph-ease);
}

.ph-testimonial-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 14px 32px -8px rgba(7, 86, 201, 0.12);
  border-color: #C8DDF9;
}

.ph-quote-icon {
  position: absolute;
  top: 1rem;
  left: 1.4rem;
  font-size: 2.8rem;
  line-height: 1;
  color: #D2E4FC;
  font-family: Georgia, serif;
  font-weight: bold;
  pointer-events: none;
}

.ph-testimonial-text {
  font-family: var(--ph-font-body);
  font-size: 0.96rem;
  color: var(--ph-ink);
  line-height: 1.75;
  margin-bottom: 1.1rem;
  flex-grow: 1;
  padding-inline-end: 1rem;
}

.ph-stars {
  display: flex;
  gap: 3px;
  color: #F59E0B;
  margin-bottom: 1.15rem;
}

.ph-stars svg {
  width: 15px;
  height: 15px;
  fill: currentColor;
  stroke: none;
}

.ph-client-meta {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin-top: auto;
  padding-top: 1rem;
  border-top: 1px solid #F0F6FF;
}

.ph-client-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #EBF3FE;
  color: var(--ph-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border: 1.5px solid #C8DDF9;
}

.ph-client-avatar svg {
  width: 20px;
  height: 20px;
  stroke: currentColor;
  stroke-width: 1.8;
  fill: none;
}

.ph-client-name {
  font-family: var(--ph-font-display);
  font-size: 0.98rem;
  font-weight: 700;
  color: var(--ph-navy);
  line-height: 1.25;
  margin-bottom: 0.15rem;
}

.ph-client-role {
  font-family: var(--ph-font-body);
  font-size: 0.82rem;
  color: var(--ph-ink-muted);
}

/* ── 10. FAQ Section (.ph-faq) ── */
.ph-faq {
  background: var(--ph-bg);
  padding-block: clamp(4.5rem, 6.5vw, 6.5rem);
}

.ph-faq-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  max-width: 1040px;
  margin: 0 auto;
  direction: rtl;
}

.ph-faq-col {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.ph-faq-item {
  background: #FFFFFF;
  border: 1px solid #E2EDF8;
  border-radius: 16px;
  padding: 1.25rem 1.45rem;
  transition: all 0.3s var(--ph-ease);
  text-align: right;
}

.ph-faq-item:hover {
  border-color: #C8DDF9;
  box-shadow: 0 6px 18px -4px rgba(7, 86, 201, 0.06);
}

.ph-faq-item[open] {
  border-color: #C8DDF9;
  background: #F8FAFF;
  box-shadow: 0 8px 22px -6px rgba(7, 86, 201, 0.08);
}

.ph-faq-q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  font-family: var(--ph-font-display);
  font-weight: 700;
  font-size: 1rem;
  color: var(--ph-navy);
  cursor: pointer;
  list-style: none;
  user-select: none;
}

.ph-faq-q::-webkit-details-marker {
  display: none;
}

.ph-faq-plus {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #EBF3FE;
  color: var(--ph-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  font-weight: 700;
  flex-shrink: 0;
  transition: all 0.3s var(--ph-ease);
  line-height: 1;
}

.ph-faq-item[open] .ph-faq-plus {
  transform: rotate(45deg);
  background: var(--ph-blue);
  color: #FFFFFF;
}

.ph-faq-a {
  padding-top: 0.95rem;
  font-family: var(--ph-font-body);
  font-size: 0.92rem;
  color: var(--ph-ink-muted);
  line-height: 1.75;
  border-top: 1px solid #EBF3FE;
  margin-top: 0.85rem;
  animation: phFaqExpand 0.3s var(--ph-ease);
}

@keyframes phFaqExpand {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ── 11. Final CTA Section (.ph-cta-section) ── */
.ph-cta-section {
  padding-block: clamp(4rem, 6vw, 6.5rem);
  background: var(--ph-bg);
  position: relative;
}

.ph-cta-card {
  background: var(--ph-blue);
  border-radius: 32px;
  padding: clamp(3rem, 5vw, 4.5rem) clamp(2rem, 5vw, 4.5rem);
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  align-items: center;
  gap: clamp(2rem, 4vw, 4rem);
  position: relative;
  overflow: visible;
  box-shadow: 0 24px 60px -12px rgba(7, 86, 201, 0.45);
  direction: rtl;
  color: #FFFFFF;
}

/* Ambient lighting on the blue card */
.ph-cta-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(circle at 90% 20%, rgba(255, 255, 255, 0.16) 0%, transparent 60%),
              radial-gradient(circle at 10% 80%, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
  pointer-events: none;
  z-index: 0;
}

.ph-cta-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: right;
  position: relative;
  z-index: 2;
}

.ph-cta-avatars {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.25);
  padding: 0.35rem 1rem 0.35rem 0.6rem;
  border-radius: var(--ph-r-pill);
  margin-bottom: 1.25rem;
}

.ph-avatar-group {
  display: flex;
  align-items: center;
}

.ph-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 2px solid var(--ph-blue);
  background: #FFFFFF;
  color: var(--ph-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-inline-start: -10px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.ph-avatar:first-child {
  margin-inline-start: 0;
}

.ph-avatar svg {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  stroke-width: 2;
  fill: none;
}

.ph-cta-badge-text {
  font-family: var(--ph-font-display);
  font-size: 0.82rem;
  font-weight: 700;
  color: #FFFFFF;
}

.ph-cta-title {
  font-family: var(--ph-font-display);
  font-size: clamp(1.9rem, 3.2vw, 2.65rem);
  font-weight: 800;
  color: #FFFFFF;
  line-height: 1.2;
  margin-bottom: 1rem;
  letter-spacing: -0.01em;
}

.ph-cta-desc {
  font-family: var(--ph-font-body);
  font-size: clamp(1rem, 1.15vw, 1.12rem);
  color: rgba(255, 255, 255, 0.92);
  line-height: 1.75;
  margin-bottom: 2rem;
  max-width: 500px;
}

.ph-cta-actions {
  display: flex;
  align-items: center;
}

.ph-btn-white {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  background: #FFFFFF;
  color: var(--ph-blue) !important;
  font-family: var(--ph-font-display);
  font-size: 1.05rem;
  font-weight: 800;
  padding: 1rem 2.5rem;
  border-radius: var(--ph-r-pill);
  border: none;
  text-decoration: none;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.2);
  transition: transform 0.28s var(--ph-ease),
              box-shadow 0.28s var(--ph-ease),
              background 0.28s var(--ph-ease);
  cursor: pointer;
}

.ph-btn-white:hover {
  background: #F5F9FF;
  transform: translateY(-3px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.28);
}

.ph-btn-white svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  stroke-width: 2.2;
  fill: none;
  transition: transform 0.25s var(--ph-ease);
}

html[dir="rtl"] .ph-btn-white:hover svg { transform: translateX(-4px); }

/* Visual Side: Camera Image with overlap */
.ph-cta-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
}

.ph-cta-img-wrapper {
  position: relative;
  width: 100%;
  max-width: 440px;
  height: 300px;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 24px 50px rgba(0, 0, 0, 0.35);
  border: 4px solid rgba(255, 255, 255, 0.3);
  transform: rotate(-2deg) translateY(-8px);
  transition: transform 0.5s var(--ph-ease);
}

.ph-cta-card:hover .ph-cta-img-wrapper {
  transform: rotate(0deg) translateY(-12px) scale(1.03);
}

.ph-cta-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

/* ── 12. Footer Overrides (.site-footer) ── */
.ph-page .site-footer {
  background: var(--ph-navy);
  color: #FFFFFF;
  padding-top: clamp(4.5rem, 6vw, 6rem);
  padding-bottom: 2.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.ph-page .footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: clamp(2rem, 3.5vw, 3.5rem);
  direction: rtl;
  text-align: right;
}

.ph-page .footer-brand p {
  color: #94A3B8;
  font-family: var(--ph-font-body);
  font-size: 0.94rem;
  line-height: 1.8;
  margin-top: 1rem;
  max-width: 340px;
}

.ph-page .footer-social-links {
  display: flex;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.ph-page .footer-social-links a {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #FFFFFF;
  text-decoration: none;
  transition: all 0.3s var(--ph-ease);
}

.ph-page .footer-social-links a:hover {
  background: var(--ph-blue);
  border-color: var(--ph-blue);
  transform: translateY(-3px);
  box-shadow: 0 6px 16px rgba(7, 86, 201, 0.4);
}

.ph-page .footer-grid h4 {
  color: #FFFFFF;
  font-family: var(--ph-font-display);
  font-size: 1.12rem;
  font-weight: 700;
  margin-bottom: 1.35rem;
  position: relative;
  display: inline-block;
}

.ph-page .footer-grid ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.ph-page .footer-grid ul li a,
.ph-page .footer-grid ul li span {
  color: #94A3B8;
  font-family: var(--ph-font-body);
  font-size: 0.92rem;
  text-decoration: none;
  transition: color 0.25s var(--ph-ease), transform 0.25s var(--ph-ease);
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.ph-page .footer-grid ul li a:hover {
  color: #60A5FA;
  transform: translateX(-3px);
}

.ph-page .footer-bottom {
  margin-top: clamp(3rem, 4.5vw, 4rem);
  padding-top: 1.75rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  text-align: center;
  color: #64748B;
  font-family: var(--ph-font-body);
  font-size: 0.88rem;
}

/* ═══════════════════════════════════════════════════════════════
   13. RESPONSIVE BREAKPOINTS
   ═══════════════════════════════════════════════════════════════ */

/* ── Tablet wide (≤1024px) ── */
@media (max-width: 1024px) {

  /* Services: 3 across */
  .ph-services .ph-grid-5 {
    grid-template-columns: repeat(3, 1fr);
  }

  /* Portfolio: 3 across */
  .ph-portfolio .ph-grid-5 {
    grid-template-columns: repeat(3, 1fr);
  }

  /* Process: 3 across, hide connector line */
  .ph-process-track {
    grid-template-columns: repeat(3, 1fr);
  }
  .ph-process-track::before {
    display: none;
  }

  /* Articles: 2 across */
  .ph-articles-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Why Us: 2x2 grid, remove vertical dividers */
  .ph-why-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2.5rem 1.5rem;
  }
  .ph-why-item {
    border-inline-start: none;
    padding: 0.5rem;
  }

  /* CTA card: stack, center content */
  .ph-cta-card {
    grid-template-columns: 1fr;
    gap: 2.5rem;
    padding: 3rem 2rem;
    text-align: center;
  }
  .ph-cta-content {
    align-items: center;
    text-align: center;
  }
  .ph-cta-actions {
    justify-content: center;
  }
  .ph-cta-img-wrapper {
    max-width: 360px;
    height: 220px;
    transform: none;
  }

  /* Footer: 2x2 */
  .ph-page .footer-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2.5rem;
  }
}

/* ── Tablet portrait / large mobile (≤900px) ── */
@media (max-width: 900px) {

  /* Hero: single column — text on top, image below */
  .ph-hero-grid {
    grid-template-columns: 1fr;
    direction: rtl; /* restore RTL flow so text block comes first */
    gap: 2.75rem;
  }

  .ph-hero-content {
    align-items: center;
    text-align: center;
    order: 1; /* text first visually */
  }

  .ph-hero-title {
    font-size: clamp(2rem, 6vw, 2.8rem);
  }

  .ph-hero-desc {
    max-width: 90%;
    margin-inline: auto;
    font-size: 1rem;
  }

  .ph-hero-actions {
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.85rem;
  }

  /* Camera visual below text, maintain geometry */
  .ph-hero-media {
    order: 2;
    width: 100%;
    display: flex;
    justify-content: center;
  }

  .ph-hero-composition {
    width: min(480px, 88vw);
    height: auto;
  }

  .ph-hero-image-card {
    height: clamp(240px, 52vw, 360px);
  }

  /* Trust strip: 3 col on tablet */
  .ph-trust-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
  }
}

/* ── Mobile (≤768px) ── */
@media (max-width: 768px) {

  /* ── Section Rhythm ── */
  .ph-page section {
    padding-block: clamp(3rem, 8vw, 4.5rem);
  }

  .ph-section-header {
    margin-bottom: 2rem;
  }

  .ph-section-title {
    font-size: clamp(1.65rem, 5.5vw, 2rem);
  }

  /* ── Services: 1 column ── */
  .ph-services .ph-grid-5 {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .ph-service-card {
    padding: 1.5rem 1.35rem;
    flex-direction: row;
    align-items: flex-start;
    text-align: right;
    gap: 1rem;
  }

  .ph-service-icon {
    flex-shrink: 0;
    margin-bottom: 0;
    width: 52px;
    height: 52px;
  }

  /* ── Process: vertical timeline ── */
  .ph-process-track {
    display: flex;
    flex-direction: column;
    gap: 0;
    position: relative;
    padding-inline-start: 0;
  }

  /* Vertical dotted connector — runs along the icon centers */
  .ph-process-track::before {
    display: block;
    content: '';
    position: absolute;
    top: 44px;
    bottom: 44px;
    inset-inline-end: calc(50% - 1.5px);
    left: auto;
    right: auto;
    width: 0;
    height: auto;
    border-top: none;
    border-left: none;
    border-right: none;
    border-inline-end: 3px dotted #70A6E8;
    z-index: 1;
    opacity: 0.7;
  }

  .ph-process-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding-block: 1.75rem;
    position: relative;
    z-index: 2;
  }

  .ph-process-circle-wrap {
    margin-bottom: 0.85rem;
    flex-shrink: 0;
  }

  .ph-process-title {
    font-size: 1rem;
  }

  .ph-process-desc {
    max-width: 80%;
    margin-inline: auto;
    text-align: center;
  }

  /* ── Portfolio: 2 columns ── */
  .ph-portfolio .ph-grid-5 {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.9rem;
  }

  .ph-portfolio-card {
    height: 200px;
    border-radius: 16px;
  }

  /* ── Articles: 1 column ── */
  .ph-articles-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  .ph-article-img-wrap {
    height: 200px;
  }

  /* ── Why Us: 1 column, remove all dividers ── */
  .ph-why-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    direction: rtl;
  }

  .ph-why-item {
    border-inline-start: none;
    border-bottom: 1px dashed #D2E4FC;
    border-radius: 16px;
    padding: 1.5rem 1.25rem;
    background: #FFFFFF;
    box-shadow: 0 2px 12px -4px rgba(11, 23, 48, 0.06);
    flex-direction: row;
    align-items: flex-start;
    text-align: right;
    gap: 1rem;
  }

  .ph-why-item:last-child {
    border-bottom: none;
  }

  .ph-why-icon {
    flex-shrink: 0;
    margin-bottom: 0;
  }

  .ph-why-desc {
    max-width: 100%;
  }

  /* ── Testimonials: 1 column ── */
  .ph-testimonials-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  .ph-testimonial-card {
    min-height: auto;
    padding: 1.5rem 1.35rem;
  }

  /* ── FAQ: 1 column ── */
  .ph-faq-grid {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .ph-faq-col {
    gap: 0.75rem;
  }

  .ph-faq-item {
    padding: 1rem 1.2rem;
  }

  /* ── Trust Strip: 1 column ── */
  .ph-trust-grid {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }

  .ph-trust-item {
    justify-content: flex-start;
    text-align: right;
    padding: 1rem 1.25rem;
    background: #F8FAFC;
    border-radius: 14px;
    border: 1px solid #E2EDF8;
  }

  /* ── CTA: single column, centered ── */
  .ph-cta-card {
    padding: 2.5rem 1.5rem;
    gap: 2rem;
    border-radius: 24px;
  }

  .ph-cta-title {
    font-size: clamp(1.65rem, 6vw, 2.1rem);
  }

  .ph-cta-desc {
    font-size: 0.97rem;
  }

  .ph-cta-img-wrapper {
    max-width: 100%;
    height: 200px;
    border-radius: 18px;
  }

  /* ── Footer: 1 column ── */
  .ph-page .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .ph-page .footer-brand p {
    max-width: 100%;
  }
}

/* ── Small Mobile (≤550px) ── */
@media (max-width: 550px) {

  /* Hero adjustments for 360–430px */
  .ph-hero {
    padding-top: 1.5rem;
  }

  .ph-hero-title {
    font-size: clamp(1.9rem, 7.5vw, 2.4rem);
  }

  .ph-hero-eyebrow-badge {
    font-size: 0.8rem;
    padding: 0.4rem 0.9rem;
  }

  .ph-hero-image-card {
    height: clamp(200px, 55vw, 280px);
    border-radius: 20px;
  }

  /* Hero composition: scale down geometric elements */
  .ph-hero-geo-blue {
    width: 100px;
    height: 85px;
    bottom: -12px;
    right: -12px;
  }

  .ph-hero-dots-wrap {
    width: 65px;
    height: 65px;
    bottom: 12px;
    left: -18px;
  }

  /* Section headers: smaller */
  .ph-section-title {
    font-size: clamp(1.5rem, 5.5vw, 1.8rem);
  }

  /* Portfolio: 1 column below 550px */
  .ph-portfolio .ph-grid-5 {
    grid-template-columns: 1fr;
  }

  .ph-portfolio-card {
    height: 220px;
  }

  /* Services: card text comfortable */
  .ph-service-card {
    padding: 1.2rem 1rem;
  }

  /* Hero actions: full width pills */
  .ph-hero-actions {
    width: 100%;
  }

  .ph-hero-actions .ph-btn-primary,
  .ph-hero-actions .ph-btn-secondary {
    width: 100%;
    justify-content: center;
  }

  /* Why Us: compact card */
  .ph-why-item {
    padding: 1.1rem 1rem;
  }

  /* FAQ items */
  .ph-faq-q {
    font-size: 0.95rem;
  }

  /* CTA section */
  .ph-cta-section {
    padding-block: 2.5rem;
  }

  .ph-cta-actions .ph-btn-white {
    width: 100%;
    justify-content: center;
  }

  /* Testimonials */
  .ph-testimonial-card {
    padding: 1.25rem 1.1rem;
  }

  .ph-quote-icon {
    font-size: 2.2rem;
    top: 0.75rem;
    left: 1rem;
  }
}

/* ── Extra small (≤390px — iPhone SE range) ── */
@media (max-width: 390px) {

  .ph-hero-title {
    font-size: 1.75rem;
  }

  .ph-hero-desc {
    font-size: 0.93rem;
  }

  .ph-hero-image-card {
    height: 185px;
  }

  .ph-cta-title {
    font-size: 1.5rem;
  }

  .ph-section-title {
    font-size: 1.45rem;
  }

  .ph-article-title {
    font-size: 0.97rem;
  }

  .ph-portfolio-card {
    height: 185px;
  }

  /* Trust strip: compact text */
  .ph-trust-title {
    font-size: 0.9rem;
  }

  /* Footer minimal padding */
  .ph-page .site-footer {
    padding-top: 3rem;
  }
}

/* ── Overflow guard — no section breaks viewport ── */
.ph-page,
.ph-page * {
  min-width: 0;
  word-break: break-word;
}

/* ── 14. Accessibility ── */
.ph-page *:focus-visible {
  outline: 3px solid var(--ph-blue);
  outline-offset: 3px;
  border-radius: 4px;
}

@media (prefers-reduced-motion: reduce) {
  .ph-page *,
  .ph-page *::before,
  .ph-page *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* =========================================================================
   LTR Direction Overrides for Photography Page
   ========================================================================= */

html[dir="ltr"] .ph-hero-content,
html[dir="ltr"] .ph-trust-item,
html[dir="ltr"] .ph-card-body,
html[dir="ltr"] .ph-process-body,
html[dir="ltr"] .ph-article-body,
html[dir="ltr"] .ph-faq-content,
html[dir="ltr"] .ph-cta-content,
html[dir="ltr"] .ph-section-header {
  text-align: left;
  direction: ltr;
}
