/* IPCS redesign inspired by the editorial rhythm and bold technology palette
   of Ivoire Tech Forum. IPCS content and imagery remain the source of truth. */
:root {
  /* IPCS logo palette: deep blue, clear blue and warm gold */
  --ink: #073b78;
  --ink-800: #0b4f98;
  --ink-700: #1769b2;
  --azure: #0b73be;
  --accent: #e59b18;
  --accent-600: #c77e00;
  --accent-soft: #fff1d5;
  --green: #0b73be;
  --green-600: #075a99;
  --green-soft: #e7f2fb;
  --lime: #e59b18;
  --orange: #e59b18;
  --orange-600: #c77e00;
  --bg: #fff;
  --bg-alt: #f4f7fb;
  --surface: #fff;
  --text: #17283f;
  --muted: #5a6c84;
  --line: #dce5ef;
  --gold: #e59b18;
  --container: 1200px;
  --radius: 18px;
  --radius-lg: 26px;
  --shadow-sm: 0 5px 18px rgba(8, 43, 99, .06);
  --shadow-md: 0 16px 42px rgba(8, 43, 99, .11);
  --shadow-lg: 0 26px 70px rgba(8, 43, 99, .18);
}

html { scroll-padding-top: 100px; }
body { color: var(--text); background: #fff; }
h1, h2, h3, h4 { color: var(--ink); letter-spacing: -.035em; }
p { color: inherit; }
a { text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { text-decoration: none; }
.container { width: min(var(--container), calc(100% - 48px)); }

/* Compact information strip and clear, fixed-feeling navigation */
.topbar { background: #061d42; color: #d7e8fb; }
.topbar-meta { font-size: .76rem; letter-spacing: .025em; }
.topbar a { color: #fff; }
.site-header { border-bottom: 1px solid rgba(8, 43, 99, .1); box-shadow: 0 5px 24px rgba(8, 43, 99, .045); }
.nav { min-height: 82px; }
.brand-logo { width: 168px; max-height: 58px; }
.nav-links > li > a { font-size: .84rem; font-weight: 700; }
.nav-links > li > a:hover, .nav-links > li > a.active { color: var(--accent); }
.dropdown { border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow-md); }
.dropdown a { font-weight: 600; }
.btn { border-radius: 12px; letter-spacing: .025em; font-weight: 800; }
.btn--primary { background: var(--accent); color: #fff; box-shadow: 0 7px 17px rgba(199, 126, 0, .2); }
.btn--primary:hover { background: var(--accent-600); transform: translateY(-2px); }
.btn--outline { border-color: var(--ink); color: var(--ink); }
.btn--outline:hover { background: var(--ink); color: #fff; }

/* Strong editorial page openings */
.page-hero {
  padding: clamp(62px, 7vw, 96px) 0 clamp(50px, 6vw, 76px);
  background: linear-gradient(118deg, #062d5b 0%, #073b78 58%, #0b73be 100%);
  color: #fff;
}
.page-hero:after { border-color: rgba(229, 155, 24, .18); }
.page-hero:before {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .28;
  background: linear-gradient(120deg, transparent 0 66%, rgba(229, 155, 24, .12) 66% 66.2%, transparent 66.2% 100%);
}
.page-hero .container { position: relative; z-index: 1; }
.page-hero .eyebrow, .hero-ipcs .eyebrow { color: #ffc65c; }
.page-hero h1 { max-width: 980px; font-size: clamp(2.6rem, 6vw, 5.3rem); line-height: .99; letter-spacing: -.06em; }
.page-hero p { max-width: 700px; color: #d3e3f5; font-size: 1.08rem; }
.eyebrow { font-size: .72rem; letter-spacing: .14em; font-weight: 800; text-transform: uppercase; }

/* Home hero: cinematic imagery, but with the crisp forum-style typography */
.hero-ipcs { min-height: 620px; background: #061d42; }
.hero-centered .hero-overlay {
  background: linear-gradient(90deg, rgba(5, 24, 56, .96) 0%, rgba(6, 32, 72, .85) 52%, rgba(6, 32, 72, .42) 100%);
}
.hero-container { min-height: 620px; grid-template-columns: 1fr; padding-top: 68px; padding-bottom: 76px; }
.hero-content { max-width: 820px; }
.hero-ipcs h1 { font-size: clamp(3.4rem, 8vw, 7rem); letter-spacing: -.075em; line-height: .91; }
.hero-ipcs h1 span { color: #ffc04d; }
.hero-short { max-width: 580px; font-size: clamp(1.1rem, 2vw, 1.35rem); }
.hero-kicker { border-radius: 999px; background: rgba(229, 155, 24, .14); border-color: rgba(229, 155, 24, .48); }
.hero-kicker span { background: #e59b18; box-shadow: 0 0 0 5px rgba(229, 155, 24, .16); }
.hero-mini-values span { border-radius: 999px; }
.hero-bottom-line { background: #061d42; border-top: 1px solid rgba(255,255,255,.12); }
.hero-bottom-line i { background: #e59b18; }

/* Distinct section rhythm, data cards and service pathways */
.section { padding-top: clamp(46px, 6vw, 76px); padding-bottom: clamp(46px, 6vw, 76px); }
.section--alt, .brochure-section, .expertise-band { background: var(--bg-alt); }
.section-head { max-width: 840px; margin-bottom: 30px; }
.section-head h2, .section-heading h2 { font-size: clamp(2rem, 4.4vw, 3.55rem); line-height: 1.02; letter-spacing: -.06em; }
.section-head p, .section-heading p { color: var(--muted); max-width: 720px; }
.stats-ipcs { background: #071f49; }
.stat-card, .service-card, .activity-card, .price-tile, .news-card {
  border-radius: 18px; border-color: var(--line); box-shadow: var(--shadow-sm);
}
.stat-card { border-top: 3px solid var(--green); }
.statValue { color: var(--accent); }
.stat-icon, .stat-index { color: var(--accent); }
.service-card:hover, .activity-card:hover { border-color: var(--green); box-shadow: var(--shadow-md); }
.service-icon, .service-card-icon { border-radius: 15px; background: var(--green-soft); color: var(--green-600); }
.activity-card > img, .activity-visual { height: 220px; }
.activity-card-body { padding: 25px; }
.activity-card-body > span { border-radius: 999px; background: #e7f2fb; color: var(--ink); }
@media (min-width: 1001px) {
  .activity-card:nth-child(4):nth-last-child(2), .activity-card:nth-child(5):last-child { grid-column: span 3; }
}
.service-method { border-top: 1px solid var(--line); }
.service-step-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.service-step { min-height: 190px; padding: 20px; border: 1px solid var(--line); border-top: 3px solid var(--green); border-radius: 18px; background: #fff; box-shadow: var(--shadow-sm); }
.service-step > span { display: inline-grid; width: 36px; height: 36px; place-items: center; margin-bottom: 16px; border-radius: 50%; background: var(--green-soft); color: var(--ink); font-size: .78rem; font-weight: 800; }
.service-step h3 { margin-bottom: 10px; font-size: 1.08rem; }
.service-step p { margin: 0; color: var(--muted); font-size: .91rem; line-height: 1.65; }
.service-method-cta { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-top: 22px; padding: 20px 24px; border-radius: 18px; background: #071f49; color: #fff; }
.service-method-cta p { margin: 0; color: #e0edf8; }
.editorial-section { overflow: hidden; }
.editorial-layout { display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); gap: clamp(24px, 4vw, 52px); align-items: center; }
.editorial-layout--reverse { grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); }
.editorial-visual { position: relative; min-height: 300px; overflow: hidden; border-radius: 24px; background: #071f49; box-shadow: var(--shadow-md); }
.editorial-visual img { display: block; width: 100%; height: 100%; min-height: 300px; object-fit: cover; transition: transform .9s cubic-bezier(.2,.75,.25,1), filter .8s ease; }
.editorial-visual.reveal img { transform: scale(1.06); filter: saturate(.78); }
.editorial-visual.reveal.in img { transform: scale(1); filter: saturate(1); }
.editorial-copy h2 { margin: 12px 0 16px; font-size: clamp(2rem, 4vw, 3.2rem); line-height: 1.03; }
.editorial-copy p { color: var(--muted); line-height: 1.8; }
.editorial-points { display: grid; gap: 8px; margin: 16px 0 0; padding: 0; list-style: none; }
.editorial-points li { position: relative; padding: 12px 14px 12px 42px; border: 1px solid var(--line); border-radius: 14px; background: #fff; color: var(--text); }
.editorial-points li::before { content: "✓"; position: absolute; left: 14px; top: 11px; color: var(--accent); font-weight: 900; }
.editorial-copy .btn { margin-top: 14px; }
.activity-card:nth-child(2n).reveal, .service-card:nth-child(2n).reveal, .service-step:nth-child(2n).reveal { transition-delay: .08s; }
.activity-card:nth-child(3n).reveal, .service-card:nth-child(3n).reveal { transition-delay: .14s; }
.oumrah-gallery figure.reveal { transition: opacity .7s ease, transform .7s cubic-bezier(.2,.75,.25,1); }
.oumrah-gallery img { transition: transform .8s cubic-bezier(.2,.75,.25,1); }
.oumrah-gallery figure.reveal:not(.in) img { transform: scale(1.04); }
.oumrah-gallery figure.reveal.in img { transform: scale(1); }
.ipcs-list li { border-radius: 8px; }
.ipcs-list li:before { color: var(--accent); background: var(--accent-soft); }
.cta-band-inner, .cta-home-inner { border-radius: 22px; background: linear-gradient(115deg, #062d5b, #0b73be); }
.cta-home-inner .eyebrow { color: #ffc65c; }
.cta-home-inner h2 { letter-spacing: -.04em; }

/* Contact, forms, editorial cards and footer */
.contact-card { border-radius: 22px; background: #071f49; }
.form-card { border-radius: 22px; box-shadow: var(--shadow-md); }
.form-card input, .form-card textarea, .form-card select { border-radius: 12px; }
.form-card input:focus, .form-card textarea:focus, .form-card select:focus { border-color: var(--green); box-shadow: 0 0 0 3px rgba(11, 115, 190, .16); outline: 0; }
.lead-form { display: grid; gap: 14px; }
.lead-form .form-section { min-width: 0; margin: 0; padding: 16px; border: 1px solid var(--line); border-radius: 16px; }
.lead-form .form-section legend { padding: 0 8px; color: var(--ink); font-size: .85rem; font-weight: 800; }
.lead-form .form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.lead-form .form-field { min-width: 0; margin: 0; color: var(--ink); font-size: .84rem; font-weight: 700; }
.lead-form .form-field--full { grid-column: 1 / -1; }
.lead-form .form-field input, .lead-form .form-field select, .lead-form .form-field textarea { margin-top: 7px; border: 1px solid var(--line); border-radius: 12px; padding: 12px 13px; color: var(--text); background: #fff; font: inherit; font-weight: 400; }
.lead-form .form-field textarea { min-height: 132px; resize: vertical; }
.lead-form .form-note { margin: 10px 0 0; color: var(--muted); font-size: .78rem; font-weight: 400; line-height: 1.5; }
.lead-form button[type="submit"] { justify-self: start; min-height: 48px; padding: 0 22px; }
.form-honeypot { position: absolute !important; left: -10000px !important; width: 1px !important; height: 1px !important; overflow: hidden !important; }
.service-faq { padding-top: 30px; }
.service-faq .section-head { margin-bottom: 24px; }
.service-faq .accordion { max-width: 920px; }
.about-story .service-card { align-self: start; padding: 34px; }
.about-story .btn { margin-top: 24px; }
.travel-offer-link { margin: 24px 0 0; }
.oumrah-gallery figure { border-radius: 18px; }
.ipcs-footer { background: #06172f; }
.ipcs-footer:before { border-color: rgba(11, 115, 190, .12); }
.footer-contact strong { color: #ffc65c; }
.footer-column li a:hover, .footer-contact a:hover { color: #ffc04d; }

:focus-visible { outline: 3px solid #e59b18; outline-offset: 3px; }

@media (max-width: 1080px) {
  .nav { min-height: 72px; }
  .nav-links { border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow-md); }
  .hero-container { min-height: 560px; }
}
@media (max-width: 700px) {
  .container { width: min(var(--container), calc(100% - 32px)); }
  .topbar-meta:first-child span:first-child { display: none; }
  .hero-container { min-height: 500px; padding-top: 54px; padding-bottom: 58px; }
  .hero-ipcs h1 { font-size: clamp(3rem, 13vw, 4.8rem); }
  .page-hero { padding-top: 58px; padding-bottom: 48px; }
  .page-hero h1 { font-size: clamp(2.45rem, 10vw, 3.5rem); }
  .section-head h2, .section-heading h2 { font-size: clamp(1.9rem, 8vw, 2.7rem); }
  .hero-actions .btn { width: auto; }
  .service-step-grid { grid-template-columns: 1fr; }
  .service-step { min-height: 0; }
  .service-method-cta { align-items: flex-start; flex-direction: column; }
  .editorial-layout, .editorial-layout--reverse { grid-template-columns: 1fr; }
  .editorial-visual, .editorial-visual img { min-height: 230px; }
  .lead-form .form-grid { grid-template-columns: 1fr; }
  .lead-form .form-field--full { grid-column: auto; }
  .lead-form button[type="submit"] { width: 100%; }
  .lead-form .form-section { padding: 14px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .editorial-visual.reveal img, .oumrah-gallery figure.reveal img { transform: none !important; }
}
