/* EMSC — shared site styles */

:root {
  --navy: #003070;
  --navy-2: #004da0;
  --blue: #1686cc;
  --blue-light: #eaf1f6;
  --light: #f4f7f9;
  --ink: #112942;
  --muted: #637382;
  --white: #fff;
}

* { border-radius: 0 !important; }
html { scroll-behavior: smooth; }
body { font-family: "Roboto", sans-serif; color: var(--ink); line-height: 1.65; }

.navbar { background: var(--navy); padding: 1rem 0; }
.navbar-brand { color: #fff; font-size: 1.45rem; font-weight: 900; letter-spacing: .12em; }
.navbar-brand:hover { color: #fff; }
.navbar-logo { height: 42px; width: auto; }
.navbar .nav-link { color: rgba(255,255,255,.88); font-size: .9rem; padding: .65rem .7rem; border-bottom: 2px solid transparent; }
.navbar .nav-link:hover, .navbar .nav-link:focus { color: #fff; }
.navbar .nav-link.active { color: #fff; border-bottom-color: #fff; }
.dropdown-menu { background: var(--navy-2); border: 1px solid rgba(255,255,255,.15); padding: .5rem 0; }
.dropdown-item { color: rgba(255,255,255,.85); font-size: .9rem; padding: .55rem 1rem; }
.dropdown-item:hover { background: #067dc7; color: #fff; }

.btn-white { background: #fff; color: var(--navy); border: 1px solid #fff; font-weight: 700; padding: .8rem 1.35rem; }
.btn-white:hover { background: #dce7ef; border-color: #dce7ef; color: var(--navy); }
.btn-outline-white { color: #fff; border: 1px solid #fff; padding: .8rem 1.35rem; font-weight: 700; }
.btn-outline-white:hover { background: #fff; color: var(--navy); }

.eyebrow { color: var(--blue); font-size: .78rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; }
.eyebrow-light { color: #d5e3ed; }

.hero {
  min-height: 690px; display: flex; align-items: center; color: #fff;
  background: linear-gradient(90deg, rgba(3,18,31,.96), rgba(3,18,31,.78) 55%, rgba(3,18,31,.55)), url("web-hero.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  position: relative;
}
/* Home banner: four backgrounds, 6s each, crossfading */
.hero-rotating { background: var(--navy); isolation: isolate; overflow: hidden; }
.hero-slides, .hero-slide { position: absolute; inset: 0; }
.hero-slides { z-index: -1; }
.hero-slides::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(3,18,31,.96), rgba(3,18,31,.78) 55%, rgba(3,18,31,.55)); }
.hero-slide { background: center / cover no-repeat; opacity: 0; animation: hero-fade 24s infinite; }
.hero-slide--land { background-image: url("banner-land.jpg"); animation-delay: -1s; }
.hero-slide--maritime { background-image: url("banner-maritime.jpg"); animation-delay: 5s; }
.hero-slide--manpower { background-image: url("banner-manpower.jpg"); animation-delay: 11s; }
.hero-slide--special { background-image: url("banner-special.jpg"); animation-delay: 17s; }
@keyframes hero-fade { 0% { opacity: 0; } 4% { opacity: 1; } 25% { opacity: 1; } 29% { opacity: 0; } 100% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) {
  .hero-slide { animation: none; }
  .hero-slide--land { opacity: 1; }
}

.hero h1 { max-width: 1200px; font-size: clamp(2rem, 2.6vw, 2.4rem); line-height: 1.3; font-weight: 900; text-transform: uppercase; letter-spacing: -.01em; }
.hero p { max-width: 980px; color: rgba(255,255,255,.88); font-size: 1.08rem; }

.image-placeholder {
  width: 100%; min-height: 230px; height: 100%; display: flex; align-items: center; justify-content: center;
  text-align: center; padding: 1.5rem; color: #526575; background: repeating-linear-gradient(135deg,#e7edf2,#e7edf2 12px,#f3f6f8 12px,#f3f6f8 24px);
  border: 1px dashed #8da1b1; font-size: .88rem; font-weight: 700;
}
.image-placeholder i { display: block; font-size: 2rem; margin-bottom: .5rem; }

.page-header { background: var(--navy); color: #fff; padding: 3.5rem 0 3rem; min-height: 420px; display: flex; align-items: center; }
.page-header--about {
  background: linear-gradient(90deg, rgba(3,18,31,.96), rgba(3,18,31,.78) 55%, rgba(3,18,31,.55)), url("web-aboutbanner.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
.page-header--land {
  background: linear-gradient(90deg, rgba(3,18,31,.96), rgba(3,18,31,.78) 55%, rgba(3,18,31,.55)), url("web-land.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
.page-header--maritime {
  background: linear-gradient(90deg, rgba(3,18,31,.96), rgba(3,18,31,.78) 55%, rgba(3,18,31,.55)), url("web-maritime.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
.page-header--manpower {
  background: linear-gradient(90deg, rgba(3,18,31,.96), rgba(3,18,31,.78) 55%, rgba(3,18,31,.55)), url("web-manpower.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
.page-header--special {
  background: linear-gradient(90deg, rgba(3,18,31,.96), rgba(3,18,31,.78) 55%, rgba(3,18,31,.55)), url("web-special.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
.page-header--team {
  background: linear-gradient(90deg, rgba(3,18,31,.96), rgba(3,18,31,.78) 55%, rgba(3,18,31,.55)), url("web-teambanner.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
.page-header--contact { background: linear-gradient(90deg, rgba(3,18,31,.96), rgba(3,18,31,.78) 55%, rgba(3,18,31,.55)), url("Risk Advisory Services.jpg") center / cover no-repeat; }
.page-header .breadcrumb-trail {font-size: .85rem; color: rgba(255,255,255,.6); margin-bottom: .75rem; }
.page-header .breadcrumb-trail a { color: rgba(255,255,255,.85); text-decoration: none; }
.page-header .breadcrumb-trail a:hover { color: #fff; text-decoration: underline; }
.page-header h1 { font-weight: 900; font-size: clamp(2rem, 4vw, 3rem); letter-spacing: -.02em; max-width: 820px; }
.page-header p { color: rgba(255,255,255,.82); max-width: 720px; font-size: 1.05rem; margin: 0; }

.feature-list { padding: 1rem; border: 1px solid #dce4ea; height: 100%; font-weight: 700; color: var(--ink); background: #fff; display: flex; align-items: center; gap: .6rem; }
.feature-list i { color: var(--blue); font-size: 1.2rem; }

.section-pad { padding: 5rem 0; }
.section-title { color: var(--navy); font-weight: 900; letter-spacing: -.025em; }
.section-intro { max-width: 760px; color: var(--muted); }

.stats { background: var(--navy-2); color: #fff; }
.stat-item { padding: 3rem 1rem; text-align: center; height: 100%; border-right: 1px solid rgba(255,255,255,.18); }
.stat-item:last-child { border-right: 0; }
.stat-number { display: block; font-size: 2rem; font-weight: 900; line-height: 1.2; }
.stat-label { color: rgba(255,255,255,.72); font-size: .88rem; }

.about-panel { border-left: 4px solid #174663; background: var(--light); padding: 1.5rem; }
.map-embed { width: 100%; height: 210px; overflow: hidden; }
.map-embed iframe { width: 100%; height: 100%; border: 0; display: block; }
.map-embed--split { height: 100%; min-height: 280px; }
.office-content { height: 100%; display: flex; flex-direction: column; justify-content: center; font-size: 1.1rem; }
.office-content h3 { font-size: 1.4rem; }
.about-img { width: 100%; height: 100%; min-height: 390px; object-fit: cover; }
.duo-img { width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; }
.panel-icon { display: block; color: var(--navy); font-size: 2rem; margin-bottom: .6rem; }
.people-section {
  background: linear-gradient(rgba(3,18,31,.86), rgba(3,18,31,.86)), url("Our People, Our Strength.jpeg") center / cover no-repeat;
  color: #fff;
  min-height: 420px;
  display: flex;
  align-items: center;
}
.leader-photo { display: block; height: auto; min-height: 0; max-width: 260px; aspect-ratio: 3 / 4; object-fit: cover; object-position: center top; }

.service-card { height: 100%; background: #fff; border: 1px solid #dce4ea; }
.service-card-img { min-height: 210px; background-size: cover; background-position: center; background-repeat: no-repeat; }
.service-card-img--land { background-image: url("web-land.jpg"); }
.service-card-img--maritime { background-image: url("web-maritime.jpg"); }
.service-card-img--manpower { background-image: url("web-manpower.jpg"); }
.service-card-img--special { background-image: url("web-special.jpg"); }
.side-img { width: 100%; height: 100%; min-height: 320px; object-fit: cover; }
.side-img.side-img--fixed { height: auto; min-height: 0; aspect-ratio: 526 / 506; }
.side-img.side-img--wide { height: auto; min-height: 0; aspect-ratio: 16 / 9; }
.k9-banner { background: var(--navy-2); color: #fff; }
.service-card-photo { display: block; width: 100%; height: 210px; object-fit: cover; }
#risk-management .service-card-photo { height: auto; aspect-ratio: 634 / 210; }
.service-content { padding: 1.5rem; }
.service-content h3 { color: var(--navy); font-size: 1.25rem; font-weight: 800; }
.service-content p { color: var(--muted); }

.text-link { color: var(--blue); font-weight: 700; text-decoration: none; }
.text-link:hover { color: var(--navy); text-decoration: underline; }

.advantage-section { background: var(--navy); }
.advantage-section .section-title { color: #fff; }
.advantage-section .section-intro { color: rgba(255,255,255,.75); }
.advantage { height: 100%; padding: 1.4rem; border: 1px solid #dce4ea; background: #fff; }
.advantage i { color: var(--blue); font-size: 1.7rem; }
.advantage h3 { font-size: 1.1rem; color: var(--navy); font-weight: 800; margin-top: .8rem; }

.sectors { background: #fff; color: var(--ink); max-width: 1440px; padding: 3.5rem 0; }
.sectors h2 { color: var(--navy); }
.sectors-intro { color: var(--muted); }
.sector-img { width: 100%; height: 100%; min-height: 300px; object-fit: cover; }
.sector-item { padding: 1rem; border: 1px solid #dce4ea; height: 100%; font-weight: 700; color: var(--ink); background: #fff; }
.sector-item i { display: block; font-size: 1.7rem; color: var(--blue); margin-bottom: .6rem; }

.partner-cta {
  background: linear-gradient(rgba(0,77,160,.88), rgba(0,77,160,.93)), url("web-partner.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  color: #fff;
  min-height: 420px;
  display: flex;
  align-items: center;
}
.partner-cta-text { font-size: 1.3rem; color: rgba(255,255,255,.85); }
.btn-cta { font-size: 1.15rem; padding: 1.1rem 2rem; }

.testimonial { height: 100%; padding: 1.8rem; background: var(--light); border-left: 3px solid var(--blue); }
.testimonial blockquote { color: #526575; }

.accreditation-logo { min-height: 180px; background: #fff; display:flex; align-items:center; justify-content:center; text-align:center; padding:1.5rem; }
.accreditation-logo img { max-width: 100%; max-height: 140px; object-fit: contain; }

footer { background: #041522; color: rgba(255,255,255,.72); }
footer h3 { color: #fff; font-size: 1rem; font-weight: 700; }
footer a { color: rgba(255,255,255,.78); text-decoration: none; }
footer a:hover { color: #fff; text-decoration: underline; }
.footer-brand { color: #fff; font-size: 1.5rem; font-weight: 900; letter-spacing: .12em; }

@media (max-width: 991.98px) {
  .navbar .dropdown-menu { background: #0d2c45; }
  .stat-item { border-right: 0; border-bottom: 1px solid rgba(255,255,255,.18); }
}

@media (max-width: 767.98px) {
  .hero { min-height: 620px; }
  .page-header { min-height: 320px; }
  .section-pad { padding: 3.8rem 0; }
}

/* Keep every menu item on one line now that there are eight of them */
@media (min-width: 992px) { .navbar .nav-link { white-space: nowrap; } }
@media (min-width: 992px) and (max-width: 1199.98px) {
  .navbar .nav-link { font-size: .77rem; padding-left: .3rem; padding-right: .3rem; }
  .navbar-logo { height: 34px; }
}
@media (min-width: 1200px) and (max-width: 1399.98px) {
  .navbar .nav-link { font-size: .85rem; padding-left: .5rem; padding-right: .5rem; }
}

/* Five-step process: four cards per row on large screens */
.process-card { height: 100%; padding: 1.5rem; background: #fff; border: 1px solid #dce4ea; }
.process-number { display: flex; align-items: center; justify-content: center; width: 48px; height: 48px; margin-bottom: 1rem; background: var(--navy); color: #fff; font-size: 1.2rem; font-weight: 900; }
.process h3 { color: var(--navy); font-size: 1.1rem; font-weight: 800; margin-bottom: .5rem; }
.process p { color: var(--muted); margin: 0; }

/* Learning and Development banners */
.page-header.page-header--ld { background: linear-gradient(90deg, rgba(3,18,31,.96), rgba(3,18,31,.78) 55%, rgba(3,18,31,.55)), url("Learning & Development banner.jpg") center / cover no-repeat; }
.partner-cta.partner-cta--invest { background: linear-gradient(rgba(0,77,160,.88), rgba(0,77,160,.93)), url("Invest in Skills.jpg") center / cover no-repeat; }
