:root {
  --navy: #0f1b2b;
  --navy-light: #16263c;
  --orange: #f5a623;
  --brand-red: #be1522;
  --text-light: #ffffff;
  --text-muted: #8fa3bd;
  --text-dark: #1a1a1a;
  --transition: 0.6s cubic-bezier(0.25, 0.8, 0.25, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
body {
  font-family: 'Poppins', sans-serif;
  color: var(--text-dark);
  line-height: 1.7;
  overflow-x: hidden;
}
h1, h2, h3, h4 { font-family: 'Playfair Display', serif; line-height: 1.25; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
a { color: inherit; }
img { max-width: 100%; display: block; }

/* ============ SPLASH SCREEN ============ */
.splash-screen {
  position: fixed; inset: 0; z-index: 9999; background: #fff;
  display: flex; align-items: center; justify-content: center;
  transition: opacity 0.6s ease, visibility 0.6s ease;
}
.splash-screen.hide { opacity: 0; visibility: hidden; pointer-events: none; }
.splash-logo { max-width: 160px; animation: splashPulse 1.4s ease-in-out infinite; }
@keyframes splashPulse {
  0%, 100% { opacity: 0.7; transform: scale(0.96); }
  50% { opacity: 1; transform: scale(1.02); }
}

/* ============ SCROLL REVEAL (re-triggers both directions) ============ */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.9s ease, transform 0.9s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal.delay-1.visible { transition-delay: 0.15s; }
.reveal.delay-2.visible { transition-delay: 0.3s; }

/* Image-specific reveal: fades + scales in, slightly more dramatic than text */
.reveal-img {
  opacity: 0;
  transform: scale(0.9);
  transition: opacity 1s ease, transform 1s ease;
}
.reveal-img.visible { opacity: 1; transform: scale(1); }

/* ============ HEADER ============ */
.site-header {
  position: sticky; top: 0; background: #fff; box-shadow: 0 1px 6px rgba(0,0,0,.06); z-index: 1000;
}
.header-inner { display: flex; align-items: center; justify-content: space-between; padding: 18px 24px; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.logo-chip {
  display: inline-flex; align-items: center; background: #fff; border-radius: 6px;
  padding: 6px 12px; box-shadow: 0 1px 4px rgba(0,0,0,.12);
}
.logo-chip img { height: 34px; width: auto; display: block; }
.footer-logo-chip { margin-bottom: 16px; }
.footer-logo-chip img { height: 30px; }
.main-nav { display: flex; align-items: center; gap: 28px; }
.nav-item { position: relative; }
.main-nav a { color: #1a1a1a; text-decoration: none; font-size: 14px; font-weight: 500; position: relative; padding-bottom: 4px; display: inline-block; }
.main-nav a:not(.nav-cta)::after {
  content: ''; position: absolute; left: 0; bottom: 0; width: 0; height: 2px; background: var(--orange);
  transition: width 0.3s ease;
}
.main-nav a:not(.nav-cta):hover::after { width: 100%; }
.nav-cta { background: var(--orange); color: var(--navy) !important; padding: 10px 20px; border-radius: 4px; font-weight: 600; }
.caret { font-size: 10px; display: inline-block; transition: transform 0.3s ease; }
.nav-item.has-dropdown:hover .caret { transform: rotate(180deg); }

/* Dropdown submenu - fade + slide down on hover */
.dropdown-menu {
  position: absolute; top: 100%; left: 0; margin-top: 14px;
  background: #fff; min-width: 200px; border-radius: 6px;
  box-shadow: 0 12px 28px rgba(0,0,0,.14); border: 1px solid #eee; padding: 8px 0;
  opacity: 0; visibility: hidden; transform: translateY(-8px);
  transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s ease;
  z-index: 10;
}
.nav-item.has-dropdown:hover .dropdown-menu,
.nav-item.has-dropdown.open .dropdown-menu {
  opacity: 1; visibility: visible; transform: translateY(0);
}
.dropdown-menu a {
  display: block; padding: 10px 20px; font-size: 13.5px; color: #1a1a1a !important; white-space: nowrap;
}
.dropdown-menu a::after { display: none !important; }
.dropdown-menu a:hover { background: rgba(245,166,35,.1); }
.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; }
.nav-toggle span { width: 24px; height: 2px; background: #1a1a1a; }

/* ============ HERO (multi-media crossfade slideshow) ============ */
.hero { position: relative; height: 100vh; min-height: 600px; display: flex; align-items: center; overflow: hidden; }
.hero-bg-wrap { position: absolute; inset: 0; overflow: hidden; }
.hero-slide {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  opacity: 0; transition: opacity 1.2s ease;
}
.hero-slide.active { opacity: 1; }
.hero-slide.hero-bg.active { animation: kenburns 18s ease-in-out infinite alternate; }
@keyframes kenburns {
  from { transform: scale(1) translate(0,0); }
  to   { transform: scale(1.12) translate(-1%, -1%); }
}
@keyframes kenburns-safe {
  from { transform: scale(0.92); }
  to   { transform: scale(1); }
}
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(15,27,43,.55) 0%, rgba(15,27,43,.75) 100%);
}
.hero-content { position: relative; z-index: 2; color: #fff; max-width: 700px; margin-left: 6%; margin-right: auto; }
.hero-content h1 { font-size: 56px; margin-bottom: 20px; }
.hero-content p { font-size: 17px; color: #dbe4ee; margin-bottom: 32px; max-width: 560px; }
.btn-cta {
  display: inline-block; background: var(--orange); color: var(--navy); padding: 14px 32px;
  border-radius: 4px; text-decoration: none; font-weight: 600; transition: transform 0.3s ease, background 0.3s ease;
}
.btn-cta:hover { background: #fff; transform: translateY(-3px); }

/* ============ CONTENT SECTIONS (About / Awards / Our Firm / Career) ============ */
.kicker { color: var(--brand-red); font-weight: 600; letter-spacing: 1.5px; text-transform: uppercase; font-size: 13px; }
.content-section { padding: 100px 0; background: #fff; }
.content-section.alt-bg { background: #f8f9fb; }
.section-intro { color: #566574; max-width: 720px; margin: 16px auto 0; }
.section-head.reveal { text-align: center; }

.content-block {
  display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center;
  margin: 70px 0;
}
.content-block.img-right { direction: rtl; }
.content-block.img-right > * { direction: ltr; }
.content-block-media img {
  width: 100%; object-fit: cover; border-radius: 10px;
  box-shadow: 0 20px 45px rgba(15,27,43,.12);
}
.content-block-media.orientation-horizontal img { height: 380px; }
.content-block-media.orientation-vertical img { height: 560px; }
.content-block-media.orientation-vertical { display: flex; justify-content: center; }
.content-block-media.orientation-vertical img { max-width: 380px; }
.content-block-text h3 { font-size: 26px; color: var(--brand-red); margin-bottom: 16px; }
.content-block-text p { color: #566574; margin-bottom: 20px; }
.btn-outline {
  display: inline-block; border: 2px solid var(--orange); color: var(--navy); padding: 10px 24px;
  border-radius: 4px; text-decoration: none; font-weight: 600; font-size: 14px;
  transition: background 0.3s ease, color 0.3s ease;
}
.btn-outline:hover { background: var(--orange); }

.mission-vision { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 50px; padding-top: 50px; border-top: 1px solid #eee; }
.mission-vision h4 { color: var(--brand-red); font-size: 16px; margin-bottom: 8px; }
.mission-vision p { font-size: 14px; color: #667085; }

/* ============ CV APPLICATION FORM (Career section) ============ */
.cv-apply-box {
  max-width: 640px; margin: 70px auto 0; background: #fff; border-radius: 10px;
  padding: 40px; box-shadow: 0 20px 45px rgba(15,27,43,.08); text-align: center;
}
.cv-apply-box h3 { font-size: 22px; color: var(--brand-red); margin-bottom: 12px; }
.cv-apply-box p { color: #667085; font-size: 14px; margin-bottom: 26px; }
.cv-apply-box form { text-align: left; }
.cv-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 14px; }
.cv-apply-box input[type=text], .cv-apply-box input[type=email], .cv-apply-box textarea {
  width: 100%; padding: 12px 14px; border: 1px solid #ddd; border-radius: 4px; font-size: 14px; font-family: inherit;
}
.cv-apply-box textarea { margin-bottom: 16px; }
.cv-file-row { margin-bottom: 20px; }
.cv-file-row label { display: block; font-size: 13px; color: #566574; margin-bottom: 8px; }
.cv-file-row input[type=file] { font-size: 13px; }
.cv-apply-box button {
  background: var(--orange); color: var(--navy); border: none; padding: 12px 32px; border-radius: 4px;
  font-weight: 600; font-size: 14px; cursor: pointer; transition: background 0.3s ease;
}
.cv-apply-box button:hover { background: #10233f; color: #fff; }
.cv-apply-box .form-status { text-align: left; margin-top: 12px; font-size: 13px; }
.cv-apply-box .form-status.success { color: #1a8a4a; }
.cv-apply-box .form-status.error { color: #c0392b; }
@media (max-width: 640px) {
  .cv-apply-box { padding: 26px 20px; }
  .cv-form-row { grid-template-columns: 1fr; }
}

/* ============ STATS (integrated into page flow, no hard color break) ============ */
.stats { background: #fff; padding: 20px 0 80px; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; text-align: center; border-top: 1px solid #eee; padding-top: 50px; }
.stat-box h3 { display: inline; font-size: 42px; color: var(--orange); }
.stat-box .suffix { font-size: 32px; color: var(--orange); font-family: 'Playfair Display', serif; }
.stat-box p { color: #667085; font-size: 14px; margin-top: 8px; }

/* ============ SERVICES ============ */
.services { padding: 110px 0; background: #f8f9fb; }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 60px; }
.section-head h2 { font-size: 32px; margin-top: 10px; color: var(--brand-red); }
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.service-card {
  background: #fff; border-radius: 10px; padding: 36px 28px; box-shadow: 0 4px 20px rgba(0,0,0,.04);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}
.service-card:hover { transform: translateY(-8px); box-shadow: 0 16px 32px rgba(0,0,0,.08); }
.service-icon {
  width: 54px; height: 54px; border-radius: 50%; background: rgba(245,166,35,.12);
  margin-bottom: 20px; display: flex; align-items: center; justify-content: center;
  color: var(--orange);
}
.service-icon svg { width: 26px; height: 26px; }
.service-card h3 { font-size: 19px; margin-bottom: 12px; color: var(--brand-red); }
.service-card p { color: #667085; font-size: 14.5px; }
.service-link { display: inline-block; margin-top: 14px; color: var(--orange); font-weight: 600; font-size: 13.5px; text-decoration: none; }
.service-link:hover { text-decoration: underline; }

/* ============ PROJECTS ============ */
.projects { padding: 110px 0; background: #fff; }
.projects-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 30px; }
.project-card { border-radius: 10px; overflow: hidden; background: #f8f9fb; box-shadow: 0 4px 20px rgba(0,0,0,.05); }
.project-img { height: 280px; background-size: cover; background-position: center; transition: transform 0.6s ease; }
.project-img.orientation-vertical { height: 420px; }
.project-card:hover .project-img { transform: scale(1.06); }
.project-info { padding: 24px; overflow: hidden; }
.project-category { color: var(--orange); font-size: 12px; font-weight: 600; text-transform: uppercase; }
.project-info h3 { margin: 8px 0 10px; font-size: 20px; color: var(--brand-red); }
.project-info p { font-size: 14px; color: #667085; }

/* ============ TESTIMONIALS ============ */
.testimonials { padding: 110px 0; background: #f8f9fb; }
.testimonials-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.testimonial-card { background: #fff; border-radius: 10px; padding: 30px; box-shadow: 0 4px 20px rgba(0,0,0,.04); }
.testimonial-card .quote { font-style: italic; color: #566574; margin-bottom: 20px; font-size: 14.5px; }
.testimonial-person { display: flex; align-items: center; gap: 12px; }
.testimonial-person img { width: 46px; height: 46px; border-radius: 50%; object-fit: cover; }
.testimonial-person strong { display: block; font-size: 14px; color: var(--navy); }
.testimonial-person span { font-size: 12px; color: #8492a6; }

/* ============ CLIENTS / PARTNERS ============ */
.clients { padding: 90px 0; background: #fff; border-top: 1px solid #eee; }
.clients-grid { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 40px; }
.client-logo { display: block; }
.client-logo img {
  max-height: 60px; max-width: 150px; width: auto; object-fit: contain;
  transition: transform 0.4s ease;
}
.client-logo:hover img { transform: scale(1.05); }

/* ============ FOOTER ============ */
.site-footer { background: #fff; color: #333; padding: 70px 0 0; border-top: 1px solid #eee; }
.footer-grid { display: grid; grid-template-columns: 1.2fr 1fr 1.3fr; gap: 50px; padding-bottom: 50px; }
.footer-logo { height: 40px; margin-bottom: 16px; }
.footer-about p { font-size: 14px; color: #555; margin-bottom: 20px; }
.social-icons { display: flex; gap: 14px; flex-wrap: wrap; }
.social-icons a { font-size: 13px; color: #333; text-decoration: none; border: 1px solid #ddd; padding: 6px 14px; border-radius: 20px; transition: all 0.3s ease; }
.social-icons a:hover { background: var(--orange); color: var(--navy); border-color: var(--orange); }
.footer-contact h4, .footer-form h4 { color: var(--brand-red); margin-bottom: 18px; font-size: 16px; }
.footer-contact p { font-size: 14px; margin-bottom: 14px; color: #555; }
.footer-contact a { text-decoration: none; color: #333; }
.footer-form input, .footer-form textarea {
  width: 100%; padding: 12px; margin-bottom: 12px; border-radius: 4px; border: 1px solid #ddd;
  background: #fafafa; color: #1a1a1a; font-family: inherit; font-size: 14px;
}
.footer-form input::placeholder, .footer-form textarea::placeholder { color: #999; }
.footer-form button {
  background: var(--orange); color: var(--navy); border: none; padding: 12px 28px; border-radius: 4px;
  font-weight: 600; cursor: pointer; transition: background 0.3s ease;
}
.footer-form button:hover { background: #10233f; color: #fff; }
.form-status { font-size: 13px; margin-top: 10px; min-height: 18px; }
.form-status.success { color: #1a8a4a; }
.form-status.error { color: #c0392b; }
.footer-bottom { border-top: 1px solid #eee; padding: 20px 0; text-align: center; font-size: 13px; color: #888; }

/* ============ RESPONSIVE ============ */
@media (max-width: 960px) {
  .footer-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .services-grid, .testimonials-grid { grid-template-columns: repeat(2, 1fr); }
  .projects-grid { grid-template-columns: 1fr; }
  .hero-content h1 { font-size: 40px; }
  .content-block, .content-block.img-right { grid-template-columns: 1fr; direction: ltr; gap: 30px; }
  .content-block-media img { height: 280px; }
}
@media (max-width: 640px) {
  .header-inner { position: relative; justify-content: center; }
  .logo { position: relative; z-index: 1; }
  .nav-toggle { display: flex; position: absolute; right: 16px; top: 50%; transform: translateY(-50%); }
  .main-nav { position: fixed; top: 0; right: -100%; height: 100vh; width: 75%; background: #fff; box-shadow: -4px 0 24px rgba(0,0,0,.12); flex-direction: column; justify-content: flex-start; align-items: flex-start; padding: 90px 30px 40px; transition: right 0.4s ease; overflow-y: auto; gap: 6px; }
  .main-nav.open { right: 0; }
  .nav-item { width: 100%; }
  .dropdown-menu { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: none; background: transparent; padding: 0 0 0 16px; max-height: 0; overflow: hidden; transition: max-height 0.3s ease; margin-top: 0; }
  .nav-item.open .dropdown-menu { max-height: 300px; margin-top: 8px; }
  .main-nav a { padding: 12px 0; }
  .dropdown-menu a { padding: 8px 0; }
  .services-grid, .testimonials-grid, .stats-grid { grid-template-columns: 1fr; }

  /* Hero: simple, reliable full-width box with full image visible (letterboxed if needed) */
  .hero { display: block; width: 100%; margin: 0; padding: 0; height: 55vh; min-height: 320px; }
  .hero-bg-wrap { position: absolute; inset: 0; width: 100%; height: 100%; background: #0f1b2b; }
  .hero-slide { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
  .hero-slide.hero-bg.active { animation: none; }
  .hero-content {
    position: absolute; inset: 0; z-index: 2; display: flex; flex-direction: column;
    justify-content: center; padding: 0 24px;
  }
  .hero-content h1 { font-size: 24px; margin-bottom: 12px; }
  .hero-content p { font-size: 14px; margin-bottom: 20px; }
  .btn-cta { padding: 11px 24px; font-size: 13px; width: fit-content; }
}
