/* ---------- IPCO Website Stylesheet ---------- */

:root {
  --navy: #1a2b4a;
  --navy-deep: #11203a;
  --navy-soft: #2a3f63;
  --gold: #c9a44c;
  --gold-soft: #e3c87e;
  --cream: #f7f3ec;
  --paper: #fbfaf6;
  --ink: #1c1c1c;
  --muted: #5a5a5a;
  --line: #e6e1d6;
  --shadow-sm: 0 4px 14px rgba(26, 43, 74, 0.06);
  --shadow-md: 0 18px 40px rgba(26, 43, 74, 0.10);
  --shadow-lg: 0 30px 60px rgba(26, 43, 74, 0.14);
  --radius: 14px;
  --radius-lg: 24px;
  --ease: cubic-bezier(.2,.7,.2,1);
  --container: 1200px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Inter', system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
html[dir="rtl"] body {
  font-family: 'Cairo', 'Tajawal', system-ui, sans-serif;
  line-height: 1.85;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; transition: color .25s var(--ease); }
button { font: inherit; cursor: pointer; border: 0; background: none; }
h1,h2,h3,h4 { font-family: 'Playfair Display', Georgia, serif; font-weight: 600; letter-spacing: -.01em; line-height: 1.18; color: var(--navy-deep); margin: 0 0 .6em; }
html[dir="rtl"] h1, html[dir="rtl"] h2, html[dir="rtl"] h3, html[dir="rtl"] h4 {
  font-family: 'Cairo', sans-serif; font-weight: 700; letter-spacing: 0;
}
h1 { font-size: clamp(2rem, 4.4vw, 3.6rem); }
h2 { font-size: clamp(1.55rem, 3vw, 2.4rem); }
h3 { font-size: clamp(1.15rem, 1.8vw, 1.4rem); }
p { margin: 0 0 1em; color: #2c2c2c; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.section { padding: clamp(56px, 9vw, 110px) 0; }
.section-tight { padding: clamp(40px, 6vw, 72px) 0; }
.eyebrow {
  display: inline-block;
  font-size: .78rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 600;
  margin-bottom: 18px;
}
html[dir="rtl"] .eyebrow { letter-spacing: 0; }
.lead { font-size: 1.12rem; color: #3a3a3a; max-width: 62ch; }

/* ---------- Header ---------- */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(251, 250, 246, 0.82);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s var(--ease), background .3s var(--ease), box-shadow .3s var(--ease);
}
.site-header.scrolled { border-color: var(--line); box-shadow: 0 2px 20px rgba(26,43,74,.05); }
.nav-wrap {
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px; height: 84px;
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand img { height: 52px; width: auto; transition: transform .35s var(--ease); }
.brand:hover img { transform: translateY(-1px) scale(1.02); }
.nav-links {
  display: flex; align-items: center; gap: 4px; list-style: none; margin: 0; padding: 0;
}
.nav-links a {
  position: relative;
  padding: 10px 14px;
  font-size: .94rem;
  font-weight: 500;
  color: var(--navy-deep);
  border-radius: 8px;
  transition: color .25s var(--ease), background .25s var(--ease);
}
.nav-links a::after {
  content: ""; position: absolute; left: 14px; right: 14px; bottom: 6px;
  height: 2px; background: var(--gold);
  transform: scaleX(0); transform-origin: left;
  transition: transform .35s var(--ease);
}
html[dir="rtl"] .nav-links a::after { transform-origin: right; }
.nav-links a:hover { color: var(--navy); }
.nav-links a:hover::after, .nav-links a.active::after { transform: scaleX(1); }
.nav-links a.active { color: var(--navy); }

.nav-links a.nav-cta {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--navy); color: #fff;
  padding: 12px 22px; border-radius: 999px;
  font-weight: 600; font-size: .9rem;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s var(--ease), color .25s var(--ease);
  box-shadow: 0 8px 22px rgba(26,43,74,.18);
}
.nav-links a.nav-cta::after { display: none; }
.nav-links a.nav-cta:hover { background: var(--gold); color: var(--navy-deep); transform: translateY(-2px); box-shadow: 0 12px 28px rgba(201,164,76,.35); }

.nav-links a.lang-toggle {
  font-size: .85rem; font-weight: 600; color: var(--navy-deep);
  padding: 8px 14px; border: 1px solid var(--line); border-radius: 999px;
  transition: background .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease);
}
.nav-links a.lang-toggle::after { display: none; }
.nav-links a.lang-toggle:hover { background: var(--navy); color: #fff; border-color: var(--navy); }

/* Footer social icons */
.footer-social {
  display: flex; gap: 12px; margin-top: 14px; list-style: none; padding: 0;
}
.footer-social a {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: 50%;
  background: rgba(255,255,255,.08); color: #fff;
  border: 1px solid rgba(255,255,255,.14);
  transition: background .25s var(--ease), border-color .25s var(--ease), transform .25s var(--ease), color .25s var(--ease);
}
.footer-social a:hover { background: var(--gold); border-color: var(--gold); color: var(--navy-deep); transform: translateY(-2px); }
.footer-social svg { width: 18px; height: 18px; }

/* Inline social icons (contact page) */
.social-row a {
  display: inline-flex; align-items: center; gap: 8px;
}
.social-row svg { width: 16px; height: 16px; }

.menu-btn {
  display: none; width: 44px; height: 44px;
  flex-direction: column; align-items: center; justify-content: center; gap: 6px;
  border: 1px solid var(--line); border-radius: 12px;
  background: #fff;
}
.menu-btn span { display: block; width: 20px; height: 2px; background: var(--navy-deep); transition: transform .3s var(--ease), opacity .3s var(--ease); }
.menu-btn.open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.menu-btn.open span:nth-child(2) { opacity: 0; }
.menu-btn.open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* spacer to offset fixed header */
main { padding-top: 84px; }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(1200px 600px at 80% -10%, rgba(201,164,76,.18), transparent 60%),
    radial-gradient(900px 500px at -10% 110%, rgba(26,43,74,.10), transparent 60%),
    linear-gradient(180deg, #fbfaf6 0%, #f3eedf 100%);
  padding: clamp(80px, 12vw, 150px) 0 clamp(72px, 10vw, 130px);
}
.hero-grid {
  display: grid; gap: 56px;
  grid-template-columns: 1.15fr .85fr;
  align-items: center;
}
@media (max-width: 900px) { .hero-grid { grid-template-columns: 1fr; gap: 36px; } }
.hero h1 .accent { color: var(--gold); }
.hero .sub { font-size: 1.18rem; color: var(--navy-soft); font-weight: 500; margin-bottom: 18px; }
.hero .tag { font-size: 1.05rem; color: #3a3a3a; max-width: 56ch; margin-bottom: 32px; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 14px; }

.btn-primary, .btn-secondary, .btn-ghost {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 15px 28px; border-radius: 999px;
  font-weight: 600; font-size: .98rem;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s var(--ease), color .25s var(--ease);
}
.btn-primary { background: var(--navy); color: #fff; box-shadow: 0 12px 30px rgba(26,43,74,.22); }
.btn-primary:hover { background: var(--gold); color: var(--navy-deep); transform: translateY(-2px); box-shadow: 0 16px 36px rgba(201,164,76,.38); }
.btn-secondary { background: #fff; color: var(--navy-deep); border: 1px solid var(--line); }
.btn-secondary:hover { border-color: var(--navy); transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.btn-ghost { color: var(--navy-deep); padding: 10px 0; }
.btn-ghost .arr { transition: transform .25s var(--ease); }
.btn-ghost:hover { color: var(--gold); }
.btn-ghost:hover .arr { transform: translateX(6px); }
html[dir="rtl"] .btn-ghost:hover .arr { transform: translateX(-6px); }

/* hero visual */
.hero-visual {
  position: relative;
  aspect-ratio: 4 / 5;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  background:
    linear-gradient(135deg, rgba(26,43,74,.55), rgba(26,43,74,.15)),
    linear-gradient(160deg, #2a3f63 0%, #1a2b4a 55%, #c9a44c 160%);
}
.hero-visual::before {
  content: "";
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px);
  background-size: 40px 40px;
  mask-image: radial-gradient(ellipse at center, #000 30%, transparent 75%);
}
.hero-visual .floating {
  position: absolute;
  border-radius: 14px;
  background: rgba(255,255,255,.95);
  padding: 18px 22px;
  box-shadow: var(--shadow-md);
  font-size: .9rem;
  color: var(--navy-deep);
  animation: floaty 6s ease-in-out infinite;
}
.hero-visual .floating strong { display: block; font-family: 'Playfair Display', serif; font-size: 1.6rem; color: var(--navy); }
html[dir="rtl"] .hero-visual .floating strong { font-family: 'Cairo', sans-serif; font-weight: 700; }
.hero-visual .f1 { top: 22%; left: -20px; animation-delay: 0s; }
.hero-visual .f2 { bottom: 22%; right: -10px; animation-delay: 1.5s; }
.hero-visual .f3 { top: 8%; right: 24px; animation-delay: 3s; }
@keyframes floaty {
  0%,100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

/* ---------- Stats ---------- */
.stats {
  background: var(--navy-deep);
  color: #fff;
  position: relative;
  overflow: hidden;
}
.stats::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(700px 300px at 80% 30%, rgba(201,164,76,.18), transparent 60%);
}
.stats-grid {
  position: relative;
  display: grid; gap: 28px;
  grid-template-columns: repeat(4, 1fr);
}
@media (max-width: 800px) { .stats-grid { grid-template-columns: repeat(2, 1fr); } }
.stat { padding: 18px 8px; text-align: center; }
.stat .num {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2.4rem, 4vw, 3.6rem);
  color: var(--gold-soft);
  font-weight: 600;
  display: block;
  line-height: 1;
  margin-bottom: 10px;
}
html[dir="rtl"] .stat .num { font-family: 'Cairo', sans-serif; font-weight: 700; }
.stat .label { font-size: .96rem; color: rgba(255,255,255,.78); }

/* ---------- Section common ---------- */
.section-head { max-width: 760px; margin: 0 auto clamp(36px, 5vw, 56px); text-align: center; }
.section-head.left { margin-left: 0; text-align: left; }
html[dir="rtl"] .section-head.left { text-align: right; }

/* ---------- Services grid ---------- */
.services-grid {
  display: grid; gap: 22px;
  grid-template-columns: repeat(2, 1fr);
}
@media (max-width: 760px) { .services-grid { grid-template-columns: 1fr; } }
.service-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 36px 32px;
  position: relative;
  overflow: hidden;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s var(--ease);
}
.service-card::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--navy), var(--gold));
  transform: scaleX(0); transform-origin: left;
  transition: transform .5s var(--ease);
}
html[dir="rtl"] .service-card::before { transform-origin: right; }
.service-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: transparent; }
.service-card:hover::before { transform: scaleX(1); }
.service-num {
  display: inline-block;
  font-family: 'Playfair Display', serif;
  color: var(--gold);
  font-size: 1.1rem;
  letter-spacing: .15em;
  margin-bottom: 14px;
}
html[dir="rtl"] .service-num { font-family: 'Cairo', sans-serif; letter-spacing: 0; }
.service-card h3 { margin-bottom: 10px; }
.service-card p { color: #444; margin-bottom: 0; }

/* ---------- Projects table / cards ---------- */
.projects-table-wrap { overflow-x: auto; border-radius: var(--radius-lg); border: 1px solid var(--line); background: #fff; }
.projects-table { width: 100%; border-collapse: collapse; min-width: 720px; }
.projects-table th, .projects-table td { padding: 18px 22px; text-align: left; border-bottom: 1px solid var(--line); font-size: .96rem; }
html[dir="rtl"] .projects-table th, html[dir="rtl"] .projects-table td { text-align: right; }
.projects-table thead th { background: var(--navy-deep); color: #fff; font-weight: 600; letter-spacing: .04em; }
.projects-table tbody tr { transition: background .25s var(--ease); }
.projects-table tbody tr:hover { background: var(--cream); }
.projects-table tbody tr:last-child td { border-bottom: 0; }
.tag {
  display: inline-block; padding: 4px 12px; border-radius: 999px;
  background: var(--cream); color: var(--navy-deep);
  font-size: .8rem; font-weight: 600;
}

/* Projects cards */
.project-cards {
  display: grid; gap: 22px;
  grid-template-columns: repeat(3, 1fr);
}
@media (max-width: 980px) { .project-cards { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .project-cards { grid-template-columns: 1fr; } }
.project-card {
  background: #fff; border-radius: var(--radius-lg); overflow: hidden;
  border: 1px solid var(--line);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
.project-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.project-cover {
  aspect-ratio: 16/10;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-deep) 60%, var(--gold) 160%);
  position: relative; overflow: hidden;
}
.project-cover::after {
  content: ""; position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.06) 1px, transparent 1px);
  background-size: 32px 32px;
}
.project-cover.v2 { background: linear-gradient(135deg, #2a3f63, #1a2b4a 55%, #c9a44c 160%); }
.project-cover.v3 { background: linear-gradient(135deg, #c9a44c 0%, #8a6e2e 50%, #1a2b4a 150%); }
.project-cover.v4 { background: linear-gradient(135deg, #1a2b4a 0%, #2a3f63 50%, #e3c87e 160%); }
.project-cover.v5 { background: linear-gradient(135deg, #11203a 0%, #1a2b4a 60%, #c9a44c 170%); }
.project-cover.v6 { background: linear-gradient(135deg, #2a3f63, #c9a44c 170%); }
.project-body { padding: 24px 24px 28px; }
.project-body .tag { margin-bottom: 12px; }
.project-body h3 { font-size: 1.18rem; margin-bottom: 8px; }
.project-meta { font-size: .85rem; color: var(--muted); margin-bottom: 12px; letter-spacing: .04em; }
.project-body p { color: #444; font-size: .95rem; margin: 0; }

/* Filters */
.filters {
  display: flex; flex-wrap: wrap; gap: 10px;
  justify-content: center;
  margin-bottom: 36px;
}
.filter-chip {
  padding: 9px 18px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--line);
  color: var(--navy-deep);
  font-size: .88rem;
  font-weight: 500;
  transition: all .25s var(--ease);
}
.filter-chip:hover { border-color: var(--navy); }
.filter-chip.active { background: var(--navy); color: #fff; border-color: var(--navy); }

/* ---------- Partners ---------- */
.partners-grid {
  display: grid; gap: 24px;
  grid-template-columns: repeat(3, 1fr);
}
@media (max-width: 800px) { .partners-grid { grid-template-columns: 1fr; } }
.partner-block {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 32px; transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.partner-block:hover { transform: translateY(-4px); box-shadow: var(--shadow-sm); }
.partner-block h3 { font-size: 1.1rem; color: var(--gold); margin-bottom: 14px; }
.partner-list { list-style: none; padding: 0; margin: 0; }
.partner-list li { padding: 10px 0; border-bottom: 1px dashed var(--line); color: #333; }
.partner-list li:last-child { border-bottom: 0; }

/* ---------- Royal patronage panel ---------- */
.patronage {
  background: linear-gradient(135deg, var(--navy-deep), var(--navy) 70%);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: clamp(36px, 6vw, 64px);
  position: relative; overflow: hidden;
}
.patronage::before {
  content: ""; position: absolute; top: -50%; right: -10%;
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(201,164,76,.25), transparent 60%);
}
.patronage h2 { color: #fff; max-width: 24ch; }
.patronage p { color: rgba(255,255,255,.86); max-width: 60ch; }
.patronage .award {
  margin-top: 28px;
  padding: 20px 24px;
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 14px;
  backdrop-filter: blur(8px);
}
.patronage .award strong { color: var(--gold-soft); display: block; margin-bottom: 6px; font-family: 'Playfair Display', serif; font-weight: 600; font-size: 1.05rem; }
html[dir="rtl"] .patronage .award strong { font-family: 'Cairo', sans-serif; font-weight: 700; }

/* ---------- CTA section ---------- */
.cta-band {
  background: linear-gradient(135deg, var(--cream) 0%, #f0e8d4 100%);
  text-align: center;
  border-radius: 0;
}
.cta-band h2 { max-width: 22ch; margin-left: auto; margin-right: auto; }
.cta-band p { max-width: 56ch; margin-left: auto; margin-right: auto; color: #3a3a3a; }
.cta-band .hero-ctas { justify-content: center; margin-top: 28px; }

/* ---------- Timeline ---------- */
.timeline { position: relative; max-width: 880px; margin: 0 auto; padding: 16px 0; }
.timeline::before {
  content: ""; position: absolute; left: 20px; top: 0; bottom: 0;
  width: 2px; background: linear-gradient(180deg, var(--navy) 0%, var(--gold) 100%);
}
html[dir="rtl"] .timeline::before { left: auto; right: 20px; }
.timeline-item {
  position: relative; padding: 18px 0 28px 60px;
}
html[dir="rtl"] .timeline-item { padding: 18px 60px 28px 0; }
.timeline-item::before {
  content: ""; position: absolute; left: 12px; top: 26px;
  width: 18px; height: 18px; border-radius: 50%;
  background: #fff; border: 3px solid var(--gold);
  box-shadow: 0 0 0 5px rgba(201,164,76,.18);
  transition: transform .3s var(--ease), background .3s var(--ease);
}
html[dir="rtl"] .timeline-item::before { left: auto; right: 12px; }
.timeline-item:hover::before { background: var(--gold); transform: scale(1.15); }
.timeline-year {
  display: inline-block;
  font-family: 'Playfair Display', serif;
  font-size: 1.1rem; font-weight: 600;
  color: var(--gold);
  letter-spacing: .04em;
  margin-bottom: 6px;
}
html[dir="rtl"] .timeline-year { font-family: 'Cairo', sans-serif; font-weight: 700; }
.timeline-item p { color: #2c2c2c; margin: 0; max-width: 64ch; }

/* ---------- MVV tabs ---------- */
.mvv-grid {
  display: grid; gap: 22px;
  grid-template-columns: repeat(3, 1fr);
}
@media (max-width: 800px) { .mvv-grid { grid-template-columns: 1fr; } }
.mvv-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
.mvv-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.mvv-card .label {
  font-size: .8rem; letter-spacing: .22em; text-transform: uppercase;
  color: var(--gold); font-weight: 700; margin-bottom: 12px;
}
html[dir="rtl"] .mvv-card .label { letter-spacing: 0; }
.mvv-card ul { padding-left: 1.1em; margin: 0; color: #333; }
html[dir="rtl"] .mvv-card ul { padding-left: 0; padding-right: 1.1em; }
.mvv-card li { margin-bottom: 8px; }

/* ---------- Team ---------- */
.team-grid {
  display: grid; gap: 22px;
  grid-template-columns: repeat(2, 1fr);
}
@media (max-width: 700px) { .team-grid { grid-template-columns: 1fr; } }
.team-card {
  display: grid; gap: 22px; grid-template-columns: 120px 1fr;
  align-items: center;
  background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius-lg); padding: 28px;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.team-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-sm); }
.team-avatar {
  width: 120px; height: 120px; border-radius: 50%;
  background: linear-gradient(135deg, var(--navy), var(--gold));
  display: flex; align-items: center; justify-content: center;
  font-family: 'Playfair Display', serif;
  color: #fff; font-size: 2.4rem; font-weight: 600;
}
html[dir="rtl"] .team-avatar { font-family: 'Cairo', sans-serif; font-weight: 700; }
.team-card h3 { margin: 0 0 4px; font-size: 1.2rem; }
.team-card .role { color: var(--gold); font-weight: 600; font-size: .92rem; margin-bottom: 8px; }
.team-card p { margin: 0; color: #444; font-size: .94rem; }

/* ---------- Awards table ---------- */
.awards-wrap { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; }
.awards-wrap table { width: 100%; border-collapse: collapse; }
.awards-wrap th, .awards-wrap td { padding: 18px 22px; text-align: left; border-bottom: 1px solid var(--line); }
html[dir="rtl"] .awards-wrap th, html[dir="rtl"] .awards-wrap td { text-align: right; }
.awards-wrap thead th { background: var(--cream); color: var(--navy-deep); font-weight: 600; }
.awards-wrap tr:last-child td { border-bottom: 0; }

/* ---------- Service detail block ---------- */
.svc-block {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(28px, 4vw, 48px);
  margin-bottom: 24px;
  transition: box-shadow .35s var(--ease);
  position: relative;
  overflow: hidden;
}
.svc-block:hover { box-shadow: var(--shadow-md); }
.svc-head { display: flex; gap: 22px; align-items: baseline; margin-bottom: 18px; flex-wrap: wrap; }
.svc-head .num {
  font-family: 'Playfair Display', serif;
  font-size: 3rem; color: var(--gold); line-height: 1;
}
html[dir="rtl"] .svc-head .num { font-family: 'Cairo', sans-serif; font-weight: 700; }
.svc-head .tt h2 { margin: 0 0 4px; }
.svc-head .tt .sub { color: var(--navy-soft); font-weight: 500; font-style: italic; }
html[dir="rtl"] .svc-head .tt .sub { font-style: normal; }
.svc-body { color: #2f2f2f; }
.svc-list-label { font-weight: 600; color: var(--navy-deep); margin: 18px 0 10px; }
.svc-list { columns: 2; column-gap: 36px; list-style: none; padding: 0; margin: 0; }
@media (max-width: 700px) { .svc-list { columns: 1; } }
.svc-list li {
  position: relative;
  padding-left: 22px;
  margin-bottom: 10px;
  break-inside: avoid;
  color: #333;
}
html[dir="rtl"] .svc-list li { padding-left: 0; padding-right: 22px; }
.svc-list li::before {
  content: ""; position: absolute; left: 0; top: 11px;
  width: 8px; height: 2px; background: var(--gold);
}
html[dir="rtl"] .svc-list li::before { left: auto; right: 0; }

/* ---------- Why IPCO ---------- */
.why-grid {
  display: grid; gap: 22px;
  grid-template-columns: repeat(2, 1fr);
}
@media (max-width: 700px) { .why-grid { grid-template-columns: 1fr; } }
.why-card {
  background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius-lg); padding: 30px;
  transition: transform .3s var(--ease), border-color .3s var(--ease);
}
.why-card:hover { transform: translateY(-4px); border-color: var(--gold); }
.why-card h3 { font-size: 1.15rem; margin-bottom: 10px; }
.why-card p { margin: 0; color: #444; }

/* ---------- News / Media ---------- */
.news-grid { display: grid; gap: 22px; grid-template-columns: repeat(3, 1fr); }
@media (max-width: 900px) { .news-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 620px) { .news-grid { grid-template-columns: 1fr; } }
.news-card {
  background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius-lg); overflow: hidden;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.news-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.news-cover {
  aspect-ratio: 16/9;
  background: linear-gradient(135deg, var(--navy), var(--gold));
}
.news-cover.alt1 { background: linear-gradient(135deg, var(--navy-deep), #c9a44c 140%); }
.news-cover.alt2 { background: linear-gradient(135deg, #2a3f63, var(--gold-soft) 140%); }
.news-body { padding: 22px 24px 26px; }
.news-body .date { color: var(--muted); font-size: .82rem; margin-bottom: 8px; }
.news-body h3 { font-size: 1.08rem; margin-bottom: 8px; }
.news-body p { font-size: .94rem; color: #444; margin: 0; }

/* ---------- Contact page ---------- */
.contact-grid {
  display: grid; gap: 36px;
  grid-template-columns: 1.4fr 1fr;
}
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }
.form-card {
  background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(28px, 4vw, 44px);
  box-shadow: var(--shadow-sm);
}
.form-step { margin-bottom: 28px; }
.form-step-title {
  font-family: 'Playfair Display', serif;
  font-weight: 600;
  font-size: 1.1rem; color: var(--navy-deep);
  margin-bottom: 16px;
  display: flex; align-items: center; gap: 12px;
}
html[dir="rtl"] .form-step-title { font-family: 'Cairo', sans-serif; font-weight: 700; }
.form-step-title .step-num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--navy); color: #fff;
  font-family: 'Inter', sans-serif; font-size: .92rem; font-weight: 600;
}
.form-row { display: grid; gap: 18px; grid-template-columns: 1fr 1fr; margin-bottom: 18px; }
@media (max-width: 600px) { .form-row { grid-template-columns: 1fr; } }
.form-field { display: flex; flex-direction: column; gap: 8px; }
.form-field label { font-size: .88rem; font-weight: 600; color: var(--navy-deep); }
.form-field input, .form-field select, .form-field textarea {
  padding: 13px 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  font: inherit;
  background: var(--paper);
  transition: border-color .25s var(--ease), background .25s var(--ease), box-shadow .25s var(--ease);
}
.form-field input:focus, .form-field select:focus, .form-field textarea:focus {
  outline: none; border-color: var(--navy);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(26,43,74,.08);
}
.form-field textarea { min-height: 130px; resize: vertical; }
.checkbox-row { display: flex; flex-wrap: wrap; gap: 10px; }
.chip-check {
  padding: 10px 18px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--paper);
  font-size: .88rem; color: var(--navy-deep);
  cursor: pointer; transition: all .25s var(--ease);
  user-select: none;
}
.chip-check input { display: none; }
.chip-check.on, .chip-check:has(input:checked) {
  background: var(--navy); color: #fff; border-color: var(--navy);
}
.submit-row { margin-top: 20px; }
.form-note {
  margin-top: 14px;
  background: var(--cream);
  border-radius: 12px;
  padding: 14px 18px;
  font-size: .9rem;
  color: var(--navy-deep);
  display: none;
}
.form-note.show { display: block; animation: fadeUp .4s var(--ease); }
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.contact-side .info-card {
  background: var(--navy-deep);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: clamp(28px, 3vw, 36px);
  margin-bottom: 18px;
}
.contact-side .info-card h3 { color: #fff; margin-bottom: 14px; font-size: 1.05rem; }
.contact-side .info-card .item { padding: 10px 0; border-bottom: 1px solid rgba(255,255,255,.1); }
.contact-side .info-card .item:last-child { border-bottom: 0; }
.contact-side .info-card .item .lbl { font-size: .8rem; color: var(--gold-soft); margin-bottom: 4px; letter-spacing: .08em; text-transform: uppercase; }
html[dir="rtl"] .contact-side .info-card .item .lbl { letter-spacing: 0; text-transform: none; }
.contact-side .info-card .item .val { font-size: .98rem; color: #fff; }
.contact-side .info-card .item .val a { color: #fff; transition: color .25s var(--ease); }
.contact-side .info-card .item .val a:hover { color: var(--gold-soft); }
.social-row { display: flex; gap: 10px; margin-top: 18px; }
.social-row a {
  padding: 10px 16px; border-radius: 999px;
  background: rgba(255,255,255,.08); color: #fff;
  font-size: .85rem; font-weight: 600;
  transition: all .25s var(--ease);
}
.social-row a:hover { background: var(--gold); color: var(--navy-deep); }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--navy-deep);
  color: rgba(255,255,255,.78);
  padding: clamp(48px, 7vw, 80px) 0 28px;
}
.footer-grid {
  display: grid; gap: 36px;
  grid-template-columns: 1.4fr 1fr 1fr;
  margin-bottom: 40px;
}
@media (max-width: 800px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-brand img { height: 60px; background: rgba(255,255,255,.95); padding: 8px 14px; border-radius: 10px; width: max-content; }
.footer-brand p { margin-top: 18px; max-width: 38ch; color: rgba(255,255,255,.7); }
.footer-col h4 { color: #fff; font-family: 'Inter', sans-serif; font-size: .82rem; letter-spacing: .18em; text-transform: uppercase; font-weight: 600; margin-bottom: 18px; }
html[dir="rtl"] .footer-col h4 { font-family: 'Cairo', sans-serif; letter-spacing: 0; text-transform: none; font-weight: 700; font-size: 1rem; }
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col li { padding: 7px 0; }
.footer-col a { color: rgba(255,255,255,.78); transition: color .2s var(--ease); }
.footer-col a:hover { color: var(--gold-soft); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.08);
  padding-top: 24px;
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px;
  font-size: .85rem; color: rgba(255,255,255,.6);
}

/* ---------- Page hero (non-home) ---------- */
.page-hero {
  background:
    radial-gradient(800px 400px at 90% -20%, rgba(201,164,76,.16), transparent 60%),
    linear-gradient(180deg, #fbfaf6 0%, #f0e8d4 100%);
  padding: clamp(80px, 10vw, 130px) 0 clamp(48px, 6vw, 80px);
  text-align: center;
}
.page-hero .lead { margin-left: auto; margin-right: auto; }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.in { opacity: 1; transform: translateY(0); }
.reveal.d1 { transition-delay: .08s; }
.reveal.d2 { transition-delay: .16s; }
.reveal.d3 { transition-delay: .24s; }
.reveal.d4 { transition-delay: .32s; }
@media (prefers-reduced-motion: reduce) {
  .reveal, .reveal.in { opacity: 1; transform: none; transition: none; }
  .hero-visual .floating { animation: none; }
}

/* ---------- Mobile nav drawer ---------- */
@media (max-width: 980px) {
  .menu-btn { display: inline-flex; }
  .nav-links {
    position: fixed; inset: 84px 0 0 0;
    flex-direction: column; align-items: stretch;
    background: rgba(251,250,246,.98);
    backdrop-filter: blur(14px);
    padding: 28px 24px;
    gap: 4px;
    transform: translateY(-100%);
    transition: transform .35s var(--ease);
    border-bottom: 1px solid var(--line);
    z-index: 90;
  }
  .nav-links.open { transform: translateY(0); }
  .nav-links a { padding: 16px 14px; font-size: 1.05rem; }
  .nav-links a::after { display: none; }
  .nav-cta { margin-top: 8px; justify-content: center; }
  .lang-toggle { order: -1; }
}
