/* GOVR — Photo Guidelines (standalone)
 * Self-contained stylesheet for page-photo-guidelines.php.
 * Mirrors the brand palette used by home-redesign.css. */

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --pg-gold: #B8960C;
  --pg-gold-light: #D4AF37;
  --pg-gold-dark: #8B7209;
  --pg-gold-deep: #92722A;
  --pg-navy: #0E1B3D;
  --pg-navy-soft: #1B2A52;
  --pg-bg: #FFFFFF;
  --pg-bg-soft: #FAF8F2;
  --pg-bg-section: #F6F5F2;
  --pg-border: #E8E6E1;
  --pg-border-light: #F0EEEA;
  --pg-text: #1A1A1A;
  --pg-text-secondary: #5C5C5C;
  --pg-text-muted: #6c6c6c;
  --pg-radius: 14px;
  --pg-radius-lg: 18px;
  --pg-shadow-sm: 0 1px 3px rgba(0,0,0,0.04), 0 1px 2px rgba(0,0,0,0.03);
  --pg-shadow-md: 0 6px 20px rgba(0,0,0,0.06);
  --pg-shadow-lg: 0 12px 36px rgba(14, 27, 61, 0.10);
  --pg-font-en: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --pg-font-ar: 'Tajawal', 'Inter', system-ui, -apple-system, sans-serif;
}

html { scroll-behavior: smooth; }

body.pg-body {
  font-family: var(--pg-font-en);
  background: var(--pg-bg);
  color: var(--pg-text);
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
}

body.pg-body[dir="rtl"],
body.pg-body[lang^="ar"],
body.pg-body.is-rtl,
[lang="ar"] {
  font-family: var(--pg-font-ar);
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }

.pg-container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ====== NAV (matches home-redesign.css visual language) ====== */
.pg-nav {
  position: sticky; top: 0; z-index: 100;
  background: #fff;
  border-bottom: 2px solid #C08B0D;
}
.pg-nav-inner {
  max-width: 1240px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 15px; height: 64px;
}
.pg-logo { display: inline-flex; align-items: center; text-decoration: none; }
.pg-logo-img { display: block; height: 40px; width: auto; max-width: 100%; }
.pg-logo-footer .pg-logo-img { height: 44px; }

.pg-nav-links { display: flex; gap: 2px; align-items: center; }
.pg-nav-links a {
  text-decoration: none; color: var(--pg-text-secondary);
  font-size: 13.5px; font-weight: 500;
  padding: 8px 14px; border-radius: 8px;
  transition: background .2s, color .2s;
}
.pg-nav-links a:hover { color: var(--pg-text); background: var(--pg-bg-section); }

.pg-nav-right { display: flex; align-items: center; gap: 8px; }

/* Weglot language switcher — hide chrome we don't need, style the link. */
.wgcurrent { display: none; }
.weglot-inline input { display: none; }
li.wg-li.weglot-lang.weglot-language { list-style: none; }
li.wg-li.weglot-lang.weglot-language a {
  text-decoration: none;
  font-family: 'Tajawal';
  font-weight: 500;
}

.pg-nav-toggle {
  display: none;
  align-items: center; justify-content: center;
  flex-direction: column; gap: 5px;
  width: 40px; height: 40px;
  padding: 0; margin-inline-start: 4px;
  background: none; border: 1px solid var(--pg-border);
  border-radius: 8px; cursor: pointer;
  transition: border-color .2s, background .2s;
}
.pg-nav-toggle:hover { border-color: var(--pg-gold); background: var(--pg-bg-section); }
.pg-nav-toggle-bar {
  display: block; width: 20px; height: 2px;
  background: var(--pg-text); border-radius: 2px;
  transition: transform .25s ease, opacity .2s ease;
  transform-origin: center;
}
.pg-nav-toggle[aria-expanded="true"] .pg-nav-toggle-bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.pg-nav-toggle[aria-expanded="true"] .pg-nav-toggle-bar:nth-child(2) { opacity: 0; }
.pg-nav-toggle[aria-expanded="true"] .pg-nav-toggle-bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.pg-mobile-menu {
  display: none;
  flex-direction: column; gap: 2px;
  padding: 16px 24px 24px;
  background: rgba(255,255,255,0.98);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--pg-border-light);
  box-shadow: 0 8px 20px rgba(0,0,0,0.06);
}
.pg-mobile-menu[data-open="true"] { display: flex; }
.pg-mobile-menu-link {
  display: block;
  padding: 12px 14px;
  font-size: 15px; font-weight: 500;
  color: var(--pg-text-secondary);
  text-decoration: none;
  border-radius: 8px;
  transition: background .15s, color .15s;
}
.pg-mobile-menu-link:hover,
.pg-mobile-menu-link:focus-visible {
  background: var(--pg-bg-section); color: var(--pg-text); outline: none;
}

/* ====== HERO / TITLE ====== */
.pg-main { background: var(--pg-bg); }

.pg-hero {
  padding: 64px 0 36px;
  background:
    radial-gradient(80% 60% at 50% 0%, #FBF7EC 0%, #FFFFFF 70%),
    var(--pg-bg);
  text-align: center;
}
.pg-title {
  font-family: var(--pg-font-en);
  font-weight: 800;
  letter-spacing: -0.01em;
  line-height: 1.02;
  margin: 0 auto 14px;
  max-width: 900px;
  text-transform: uppercase;
}
.pg-title-line { display: block; }
.pg-title-passport { color: var(--pg-gold); }
.pg-title-guidelines { color: var(--pg-navy); }
.pg-title { font-size: clamp(40px, 7vw, 78px); }

.pg-subtitle {
  font-size: clamp(15px, 1.6vw, 19px);
  color: var(--pg-gold);
  margin: 0 auto;
  max-width: 720px;
  font-weight: 500;
  line-height: 1.5;
}

.pg-sample {
  display: inline-block;
  margin: 36px auto 0;
  padding: 6px;
  background: #fff;
  border: 1px solid var(--pg-border);
  border-radius: 6px;
  box-shadow: var(--pg-shadow-md);
}
.pg-sample img,
.pg-sample .pg-sample-fallback {
  display: block;
  width: clamp(220px, 28vw, 320px);
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

/* ====== GUIDELINE GRID ====== */
.pg-guidelines { padding: 56px 0 56px; }
.pg-grid {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 36px 48px;
  counter-reset: pg-step;
}
.pg-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 8px 4px;
  text-align: center;
  align-items: center;
}
.pg-card-number {
  display: inline-flex;
  align-items: center; justify-content: center;
  width: 56px; height: 56px;
  border-radius: 50%;
  background: var(--pg-navy);
  color: #fff;
  font-weight: 700;
  font-size: 22px;
  margin-bottom: 14px;
  box-shadow: 0 4px 10px rgba(14,27,61,.18);
  line-height: 1;
}
.pg-card-icon {
  display: inline-flex;
  align-items: center; justify-content: center;
  width: 86px; height: 86px;
  color: var(--pg-navy);
  margin-bottom: 16px;
}
.pg-card-icon svg { width: 100%; height: 100%; }
.pg-card-title {
  font-family: var(--pg-font-en);
  font-size: clamp(15px, 1.4vw, 17px);
  font-weight: 800;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--pg-gold);
  margin: 0 0 10px;
  line-height: 1.25;
}
.pg-card-text {
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--pg-text-secondary);
  max-width: 280px;
  margin: 0 auto;
}

/* Arabic variants — Tajawal scales differently. */
body.is-rtl .pg-card-title,
[lang="ar"] .pg-card-title {
  font-family: var(--pg-font-ar);
  letter-spacing: 0;
}
body.is-rtl .pg-card-text,
[lang="ar"] .pg-card-text,
body.is-rtl .pg-subtitle,
[lang="ar"] .pg-subtitle {
  font-family: var(--pg-font-ar);
  font-size: 16px;
}
body.is-rtl .pg-title,
[lang="ar"] .pg-title {
  font-family: var(--pg-font-ar);
  letter-spacing: 0;
}

/* ====== QUALITY STRIP ====== */
.pg-quality {
  background: var(--pg-gold-dark);
  color: #fff;
  padding: 26px 0;
  max-width: 1200px;
  margin: 8px auto 80px;
}
.pg-quality-list {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  align-items: center;
}
.pg-quality-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: #fff;
}
.pg-quality-check {
  display: inline-flex;
  width: 36px; height: 36px;
  color: #fff;
}
.pg-quality-check svg { width: 100%; height: 100%; }
.pg-quality-label {
  font-size: 14.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
body.is-rtl .pg-quality-label,
[lang="ar"] .pg-quality-label {
  font-family: var(--pg-font-ar);
  letter-spacing: 0;
}

/* ====== FOOTER (mirrors home-redesign visual) ====== */
.pg-footer {
  background: #fff;
  color: var(--pg-text);
  border-top: 1px solid var(--pg-border-light);
  padding: 56px 0 0;
}
.pg-footer-inner {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 36px;
}
.pg-footer-brand { max-width: 440px; }
.pg-footer-brand .pg-logo-img { height: 44px; margin-bottom: 14px; }
.pg-footer-brand-text {
  font-size: 9px;
  line-height: 1.6;
  color: var(--pg-text-muted);
  max-width: 560px;
}
.pg-footer-col {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.pg-footer-col a {
  font-size: 14px;
  color: var(--pg-text-secondary);
  text-decoration: none;
  transition: color .2s;
}
.pg-footer-col a:hover { color: var(--pg-gold-dark); }

.pg-footer-bottom {
  max-width: 1240px;
  margin: 36px auto 0;
  padding: 18px 24px;
  border-top: 1px solid var(--pg-border-light);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 13px;
  color: var(--pg-text-muted);
}
.pg-footer-platform {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.pg-footer-platform-icon { width: 14px; height: 14px; display: inline-block; }

/* ====== RESPONSIVE ====== */
@media (max-width: 980px) {
  .pg-nav-links { display: none; }
  .pg-nav-toggle { display: inline-flex; }
  .pg-grid { grid-template-columns: repeat(2, 1fr); gap: 30px 28px; }
  .pg-footer-inner { grid-template-columns: 1fr 1fr; }
  .pg-footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 640px) {
  .pg-hero { padding: 44px 0 24px; }
  .pg-title { font-size: clamp(32px, 9vw, 48px); }
  .pg-subtitle { font-size: 14.5px; }
  .pg-sample { margin-top: 24px; }
  .pg-sample img,
  .pg-sample .pg-sample-fallback { width: min(78vw, 280px); }

  .pg-guidelines { padding: 36px 0 40px; }
  .pg-grid { gap: 28px 16px; }
  .pg-card-number { width: 48px; height: 48px; font-size: 19px; }
  .pg-card-icon { width: 70px; height: 70px; margin-bottom: 12px; }
  .pg-card-title { font-size: 14.5px; }
  .pg-card-text { font-size: 13.5px; max-width: 230px; }

  .pg-quality-list { grid-template-columns: repeat(2, 1fr); gap: 18px 8px; }
  .pg-quality-check { width: 28px; height: 28px; }
  .pg-quality-label { font-size: 13px; }

  .pg-footer { padding-top: 36px; }
  .pg-footer-inner { grid-template-columns: 1fr; gap: 24px; padding: 0 18px; }
  .pg-footer-brand-text { font-size: 8px; }
  .pg-footer-bottom { flex-direction: column; align-items: flex-start; padding: 18px; }
}

@media (max-width: 420px) {
  .pg-grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
  html { scroll-behavior: auto; }
}
