/*
Theme Name: Masam Logistics
Theme URI: https://masamshipping.com/
Author: OpenAI
Description: A responsive logistics and freight-forwarding WordPress theme for Masam Shipping Services.
Version: 1.1.0
Requires at least: 6.4
Tested up to: 7.0
Requires PHP: 7.4
Text Domain: masam-logistics
*/

:root {
  --ms-teal: #0180AA;
  --ms-teal-dark: #00698D;
  --ms-navy: #024574;
  --ms-navy-deep: #032F50;
  --ms-sky: #0180AA;
  --ms-gold: #0180AA;
  --ms-ink: #172432;
  --ms-muted: #647383;
  --ms-line: #dfe6eb;
  --ms-soft: #EAF7FC;
  --ms-white: #ffffff;
  --ms-shadow: 0 18px 50px rgba(7, 31, 53, .10);
  --ms-radius: 18px;
  --ms-container: 1240px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ms-ink);
  background: var(--ms-white);
  font-family: "Poppins", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
body.admin-bar .site-header { top: 32px; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
p { margin: 0 0 1.25rem; }
h1, h2, h3, h4 { margin: 0 0 1rem; color: var(--ms-navy-deep); line-height: 1.16; letter-spacing: -.025em; }
h1 { font-size: clamp(2.85rem, 6vw, 5.7rem); }
h2 { font-size: clamp(2.05rem, 4vw, 3.55rem); }
h3 { font-size: 1.35rem; }
ul { margin: 0; padding: 0; }

.ms-container { width: min(calc(100% - 40px), var(--ms-container)); margin-inline: auto; }
.ms-section { padding: 105px 0; }
.ms-section-sm { padding: 72px 0; }
.ms-soft { background: var(--ms-soft); }
.ms-dark { color: var(--ms-white); background: var(--ms-navy-deep); }
.ms-dark h2, .ms-dark h3, .ms-dark p { color: var(--ms-white); }
.ms-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
  color: var(--ms-teal);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
}
.ms-eyebrow::before { content: ""; width: 34px; height: 2px; background: var(--ms-gold); }
.ms-section-head { max-width: 760px; margin-bottom: 44px; }
.ms-section-head.center { margin-inline: auto; text-align: center; }
.ms-section-head.center .ms-eyebrow::before { display: none; }
.ms-lead { color: var(--ms-muted); font-size: 1.08rem; }
.ms-grid { display: grid; gap: 28px; }
.ms-grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.ms-grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.ms-grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.ms-card { background: var(--ms-white); border: 1px solid var(--ms-line); border-radius: var(--ms-radius); box-shadow: 0 10px 35px rgba(7,31,53,.06); }
.ms-card-pad { padding: 32px; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 999; box-shadow: 0 5px 24px rgba(7,31,53,.08); }
.ms-topbar { min-height: 55px; color: #fff; background: var(--ms-teal); font-size: .92rem; font-weight: 600; }
.ms-topbar-inner { min-height: 55px; display: flex; align-items: center; justify-content: space-between; gap: 30px; }
.ms-contact-row { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.ms-contact-link { display: inline-flex; align-items: center; gap: 9px; transition: opacity .2s ease; }
.ms-contact-link:hover { opacity: .78; }
.ms-contact-link svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 2; }
.ms-navbar { background: #fff; }
.ms-navbar-inner { min-height: 98px; display: grid; grid-template-columns: 270px 1fr 190px; align-items: center; gap: 28px; }
.custom-logo-link { display: inline-flex; align-items: center; }
.custom-logo { width: auto; max-width: 255px; max-height: 76px; }
.ms-brand-fallback { display: flex; align-items: center; gap: 12px; color: var(--ms-navy); font-size: 1.45rem; font-weight: 800; }
.ms-brand-mark { width: 52px; height: 52px; display: grid; place-items: center; color: #fff; background: var(--ms-navy); border-radius: 14px; }
.ms-primary-nav ul { list-style: none; display: flex; justify-content: center; align-items: center; gap: 41px; }
.ms-primary-nav a { position: relative; display: block; padding: 36px 0; color: #262b30; font-size: 1rem; font-weight: 500; }
.ms-primary-nav a::after { content: ""; position: absolute; left: 0; right: 100%; bottom: 25px; height: 2px; background: var(--ms-teal); transition: right .25s ease; }
.ms-primary-nav a:hover, .ms-primary-nav .current-menu-item > a { color: var(--ms-teal); }
.ms-primary-nav a:hover::after, .ms-primary-nav .current-menu-item > a::after { right: 0; }
.ms-primary-nav .menu-item-has-children { position: relative; }
.ms-primary-nav .menu-item-has-children > a::before { content: "⌄"; position: absolute; right: -18px; top: 35px; font-size: 1rem; }
.ms-primary-nav .sub-menu { position: absolute; left: -25px; top: calc(100% - 15px); min-width: 245px; display: block; padding: 12px; opacity: 0; visibility: hidden; transform: translateY(10px); background: #fff; border: 1px solid var(--ms-line); border-radius: 12px; box-shadow: var(--ms-shadow); transition: .22s ease; }
.ms-primary-nav .menu-item-has-children:hover > .sub-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.ms-primary-nav .sub-menu a { padding: 11px 14px; border-radius: 7px; }
.ms-primary-nav .sub-menu a::after, .ms-primary-nav .sub-menu a::before { display: none; }
.ms-primary-nav .sub-menu a:hover { color: var(--ms-teal); background: var(--ms-soft); }
.ms-nav-cta { justify-self: end; }
.ms-btn { display: inline-flex; align-items: center; justify-content: center; gap: 9px; min-height: 52px; padding: 13px 28px; border: 0; border-radius: 8px; cursor: pointer; font-family: inherit; font-weight: 700; transition: transform .2s ease, background .2s ease, color .2s ease, box-shadow .2s ease; }
.ms-btn:hover { transform: translateY(-2px); }
.ms-btn-gold { color: #101820; background: var(--ms-gold); box-shadow: 0 10px 22px rgba(244,179,76,.24); }
.ms-btn-gold:hover { color: #fff; background: var(--ms-teal); }
.ms-btn-teal { color: #fff; background: var(--ms-teal); }
.ms-btn-teal:hover { background: var(--ms-teal-dark); }
.ms-btn-outline { color: #fff; border: 1px solid rgba(255,255,255,.5); background: transparent; }
.ms-btn-outline:hover { color: var(--ms-navy-deep); background: #fff; }
.ms-mobile-toggle { display: none; justify-self: end; width: 46px; height: 46px; border: 0; border-radius: 8px; color: var(--ms-navy); background: var(--ms-soft); cursor: pointer; }
.ms-mobile-toggle span, .ms-mobile-toggle::before, .ms-mobile-toggle::after { content: ""; display: block; width: 22px; height: 2px; margin: 5px auto; background: currentColor; }

/* Hero */
.ms-hero { position: relative; isolation: isolate; min-height: 770px; display: flex; align-items: center; overflow: hidden; color: #fff; background: linear-gradient(105deg, rgba(4,28,48,.97) 0%, rgba(7,49,84,.92) 52%, rgba(8,111,109,.76) 100%); }
.ms-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background: url('assets/images/hero-logistics.svg') center center / cover no-repeat;
  opacity: 1;
}
.ms-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(
    90deg,
    rgba(9, 44, 92, 0.97) 0%,
    rgba(9, 44, 92, 0.88) 38%,
    rgba(9, 44, 92, 0.58) 62%,
    rgba(9, 44, 92, 0.25) 100%
  );
}
.ms-hero-content { max-width: 790px; padding: 110px 0 120px; }
.ms-hero .ms-eyebrow { color: #bce9e8; }
.ms-hero h1 { color: #fff; }
.ms-hero h1 span { display: block; color: var(--ms-gold); }
.ms-hero p { max-width: 710px; color: rgba(255,255,255,.83); font-size: 1.08rem; }
.ms-hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 34px; }
.ms-hero-badges { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 42px; }
.ms-badge { padding: 9px 14px; border: 1px solid rgba(255,255,255,.22); border-radius: 999px; color: rgba(255,255,255,.85); background: rgba(255,255,255,.07); font-size: .82rem; }

/* About */
.ms-about-grid { display: grid; grid-template-columns: 1.02fr .98fr; align-items: center; gap: 70px; }
.ms-check-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 15px 22px; margin: 28px 0 34px; }
.ms-check { display: flex; align-items: center; gap: 10px; font-weight: 600; }
.ms-check i { width: 22px; height: 22px; display: grid; place-items: center; flex: 0 0 auto; color: #fff; background: var(--ms-teal); border-radius: 50%; font-style: normal; font-size: .72rem; }
.ms-illustration-wrap { position: relative; padding: 24px 28px 0; background: linear-gradient(145deg,#e8f7f7,#f7fbfd); border-radius: 28px; }
.ms-year-card { position: absolute; left: -28px; bottom: 30px; padding: 20px 24px; color: #fff; background: var(--ms-navy); border-radius: 14px; box-shadow: var(--ms-shadow); }
.ms-year-card strong { display: block; color: var(--ms-gold); font-size: 1.65rem; }

/* Services */
.ms-service-card { position: relative; overflow: hidden; padding: 36px; transition: transform .25s ease, box-shadow .25s ease; }
.ms-service-card:hover { transform: translateY(-8px); box-shadow: var(--ms-shadow); }
.ms-icon-box { width: 64px; height: 64px; display: grid; place-items: center; margin-bottom: 25px; color: var(--ms-teal); background: #e8f6f6; border-radius: 15px; }
.ms-icon-box svg { width: 34px; height: 34px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.ms-service-card p { color: var(--ms-muted); }
.ms-text-link { display: inline-flex; align-items: center; gap: 8px; color: var(--ms-teal); font-weight: 700; }
.ms-text-link:hover { gap: 12px; }

/* Trading strip */
.ms-trade-grid { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 72px; }
.ms-trade-features { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 20px; margin-top: 28px; }
.ms-trade-feature { padding: 20px; border: 1px solid rgba(255,255,255,.13); border-radius: 14px; background: rgba(255,255,255,.045); }
.ms-trade-feature strong { display: block; margin-bottom: 3px; color: #fff; }
.ms-trade-feature span { color: rgba(255,255,255,.65); font-size: .9rem; }
.ms-trade-visual { padding: 28px; background: linear-gradient(135deg,rgba(21,152,207,.16),rgba(8,111,109,.13)); border: 1px solid rgba(255,255,255,.11); border-radius: 30px; }

/* Stats */
.ms-stats { background: var(--ms-teal); }
.ms-stats-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); }
.ms-stat { padding: 38px 24px; text-align: center; border-right: 1px solid rgba(255,255,255,.16); }
.ms-stat:last-child { border: 0; }
.ms-stat strong { display: block; color: #fff; font-size: 2.55rem; line-height: 1; }
.ms-stat span { display: block; margin-top: 10px; color: rgba(255,255,255,.75); }

/* Why + process */
.ms-feature-card { padding: 30px; }
.ms-feature-number { width: 42px; height: 42px; display: grid; place-items: center; margin-bottom: 21px; color: var(--ms-teal); background: #e8f6f6; border-radius: 50%; font-weight: 800; }
.ms-process { counter-reset: step; }
.ms-process-card { position: relative; padding: 28px 28px 28px 34px; border-left: 3px solid var(--ms-teal); background: #fff; border-radius: 0 14px 14px 0; box-shadow: 0 10px 30px rgba(7,31,53,.06); }
.ms-process-card::before { counter-increment: step; content: "0" counter(step); display: block; margin-bottom: 18px; color: var(--ms-gold); font-size: 2rem; font-weight: 800; line-height: 1; }

/* CTA */
.ms-cta { position: relative; overflow: hidden; padding: 78px 0; color: #fff; background: linear-gradient(100deg,var(--ms-navy-deep),var(--ms-teal)); }
.ms-cta::after { content: ""; position: absolute; width: 360px; height: 360px; right: -110px; top: -180px; border: 70px solid rgba(255,255,255,.06); border-radius: 50%; }
.ms-cta-inner { position: relative; z-index: 1; display: flex; align-items: center; justify-content: space-between; gap: 35px; }
.ms-cta h2 { margin-bottom: 12px; color: #fff; }
.ms-cta p { margin: 0; color: rgba(255,255,255,.75); }
.ms-cta-actions { display: flex; gap: 12px; flex-wrap: wrap; flex: 0 0 auto; }

/* Internal page hero */
.ms-page-hero { position: relative; overflow: hidden; padding: 105px 0 98px; color: #fff; background: linear-gradient(108deg,var(--ms-navy-deep),var(--ms-teal)); }
.ms-page-hero::after { content: ""; position: absolute; right: -130px; top: -210px; width: 550px; height: 550px; border: 110px solid rgba(255,255,255,.06); border-radius: 50%; }
.ms-page-hero h1 { max-width: 900px; color: #fff; font-size: clamp(2.5rem,5vw,4.65rem); }
.ms-page-hero p { max-width: 770px; color: rgba(255,255,255,.78); }
.ms-breadcrumb { margin-bottom: 18px; color: #bce9e8; font-size: .8rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }

/* About page */
.ms-quote { padding: 38px; border-left: 5px solid var(--ms-gold); background: var(--ms-soft); border-radius: 0 18px 18px 0; }
.ms-values .ms-card { padding: 30px; }
.ms-affiliation { display: grid; grid-template-columns: 90px 1fr; gap: 20px; align-items: center; padding: 28px; }
.ms-affiliation-mark { width: 80px; height: 80px; display: grid; place-items: center; color: var(--ms-teal); background: #e8f6f6; border-radius: 20px; font-size: 1.4rem; font-weight: 800; }
.ms-timeline { position: relative; margin-top: 40px; }
.ms-timeline::before { content: ""; position: absolute; left: 20px; top: 10px; bottom: 10px; width: 2px; background: var(--ms-line); }
.ms-timeline-item { position: relative; display: grid; grid-template-columns: 42px 100px 1fr; gap: 18px; margin-bottom: 28px; }
.ms-timeline-dot { width: 14px; height: 14px; margin: 7px 0 0 14px; background: var(--ms-gold); border: 4px solid #fff; border-radius: 50%; box-shadow: 0 0 0 2px var(--ms-teal); }
.ms-timeline-year { color: var(--ms-teal); font-weight: 800; }

/* Service page */
.ms-service-list { list-style: none; display: grid; gap: 11px; }
.ms-service-list li { position: relative; padding-left: 28px; }
.ms-service-list li::before { content: "✓"; position: absolute; left: 0; color: var(--ms-teal); font-weight: 800; }
.ms-service-visual { padding: 25px; background: linear-gradient(145deg,#e7f4f7,#f9fcfd); border-radius: 28px; }

/* Contact */
.ms-contact-layout { display: grid; grid-template-columns: .9fr 1.1fr; gap: 54px; }
.ms-contact-card { display: flex; gap: 18px; padding: 22px 0; border-bottom: 1px solid var(--ms-line); }
.ms-contact-card:last-child { border: 0; }
.ms-contact-icon { width: 46px; height: 46px; display: grid; place-items: center; flex: 0 0 auto; color: #fff; background: var(--ms-teal); border-radius: 12px; }
.ms-form { padding: 38px; }
.ms-form-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 18px; }
.ms-field.full { grid-column: 1/-1; }
.ms-field label { display: block; margin-bottom: 7px; font-size: .86rem; font-weight: 700; }
.ms-field input, .ms-field select, .ms-field textarea { width: 100%; min-height: 51px; padding: 12px 14px; border: 1px solid #d5dfe5; border-radius: 8px; outline: none; color: var(--ms-ink); background: #fff; font: inherit; }
.ms-field textarea { min-height: 140px; resize: vertical; }
.ms-field input:focus, .ms-field select:focus, .ms-field textarea:focus { border-color: var(--ms-teal); box-shadow: 0 0 0 3px rgba(8,111,109,.10); }
.ms-alert { margin-bottom: 22px; padding: 13px 16px; border-radius: 8px; }
.ms-alert-success { color: #0c5f3f; background: #e5f7ef; }
.ms-alert-error { color: #8d2929; background: #fbe9e9; }

/* Blog */
.ms-post-card { overflow: hidden; }
.ms-post-thumb { aspect-ratio: 16/9; display: grid; place-items: center; color: #fff; background: linear-gradient(135deg,var(--ms-navy),var(--ms-teal)); }
.ms-post-body { padding: 26px; }
.ms-post-meta { margin-bottom: 10px; color: var(--ms-teal); font-size: .8rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.ms-pagination { margin-top: 38px; }
.ms-pagination .page-numbers { display: inline-grid; place-items: center; min-width: 42px; height: 42px; margin-right: 6px; border: 1px solid var(--ms-line); border-radius: 8px; }
.ms-pagination .current, .ms-pagination .page-numbers:hover { color: #fff; background: var(--ms-teal); border-color: var(--ms-teal); }

/* Footer */
.site-footer { color: rgba(255,255,255,.72); background: #061a2b; }
.ms-footer-main { padding: 75px 0 55px; }
.ms-footer-grid { display: grid; grid-template-columns: 1.4fr .75fr .9fr 1.15fr; gap: 55px; }
.ms-footer-logo { margin-bottom: 20px; color: #fff; font-size: 1.45rem; font-weight: 800; }
.ms-footer-title { margin-bottom: 20px; color: #fff; font-size: 1rem; }
.ms-footer-list { list-style: none; display: grid; gap: 10px; }
.ms-footer-list a:hover { color: var(--ms-gold); }
.ms-socials { display: flex; gap: 9px; margin-top: 20px; }
.ms-socials a { width: 39px; height: 39px; display: grid; place-items: center; color: #fff; background: rgba(255,255,255,.08); border-radius: 8px; }
.ms-socials a:hover { background: var(--ms-teal); }
.ms-footer-bottom { padding: 20px 0; border-top: 1px solid rgba(255,255,255,.10); }
.ms-footer-bottom-inner { display: flex; justify-content: space-between; gap: 25px; color: rgba(255,255,255,.55); font-size: .85rem; }

/* Generic content */
.entry-content { padding: 80px 0; }
.entry-content > * { max-width: 860px; margin-inline: auto; }
.screen-reader-text { position: absolute; clip: rect(1px,1px,1px,1px); width: 1px; height: 1px; overflow: hidden; }

@media (max-width: 1080px) {
  .ms-navbar-inner { grid-template-columns: 230px 1fr 175px; gap: 18px; }
  .ms-primary-nav ul { gap: 25px; }
  .ms-primary-nav a { font-size: .92rem; }
  .ms-grid-4 { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .ms-footer-grid { grid-template-columns: 1.2fr .8fr 1fr; }
  .ms-footer-grid > :last-child { grid-column: 1/-1; }
}

@media (max-width: 900px) {
  body.admin-bar .site-header { top: 46px; }
  .ms-topbar { display: none; }
  .ms-navbar-inner { min-height: 78px; grid-template-columns: 1fr auto; }
  .custom-logo { max-height: 58px; max-width: 210px; }
  .ms-mobile-toggle { display: block; }
  .ms-primary-nav { position: absolute; left: 20px; right: 20px; top: 78px; display: none; padding: 18px; background: #fff; border: 1px solid var(--ms-line); border-radius: 12px; box-shadow: var(--ms-shadow); }
  .ms-primary-nav.is-open { display: block; }
  .ms-primary-nav ul { display: block; }
  .ms-primary-nav a { padding: 11px 12px; }
  .ms-primary-nav a::after, .ms-primary-nav .menu-item-has-children > a::before { display: none; }
  .ms-primary-nav .sub-menu { position: static; min-width: 0; display: block; padding: 0 0 0 14px; opacity: 1; visibility: visible; transform: none; border: 0; box-shadow: none; }
  .ms-nav-cta { display: none; }
  .ms-hero { min-height: 650px; }
  .ms-hero::before { background-size: cover; background-position: center center; opacity: 1; }
  .ms-hero::after { background: rgba(9, 44, 92, 0.78); }
  .ms-about-grid, .ms-trade-grid, .ms-contact-layout { grid-template-columns: 1fr; }
  .ms-trade-visual { order: -1; }
  .ms-grid-3 { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .ms-stats-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .ms-stat:nth-child(2) { border-right: 0; }
  .ms-stat:nth-child(-n+2) { border-bottom: 1px solid rgba(255,255,255,.16); }
  .ms-cta-inner { align-items: flex-start; flex-direction: column; }
  .ms-footer-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .ms-footer-grid > :last-child { grid-column: auto; }
}

@media (max-width: 640px) {
  .ms-container { width: min(calc(100% - 28px), var(--ms-container)); }
  .ms-section { padding: 78px 0; }
  .ms-section-sm { padding: 58px 0; }
  .ms-navbar-inner { min-height: 72px; }
  .custom-logo { max-width: 180px; max-height: 52px; }
  .ms-primary-nav { top: 72px; left: 14px; right: 14px; }
  .ms-hero { min-height: 620px; }
  .ms-hero-content { padding: 80px 0 90px; }
  .ms-hero h1 { font-size: 2.75rem; }
  .ms-grid-2, .ms-grid-3, .ms-grid-4, .ms-check-grid, .ms-trade-features, .ms-form-grid, .ms-footer-grid { grid-template-columns: 1fr; }
  .ms-stats-grid { grid-template-columns: 1fr 1fr; }
  .ms-stat { padding: 27px 12px; }
  .ms-stat strong { font-size: 2rem; }
  .ms-year-card { left: 14px; bottom: 14px; }
  .ms-timeline-item { grid-template-columns: 42px 70px 1fr; gap: 10px; }
  .ms-cta { padding: 64px 0; }
  .ms-cta-actions, .ms-hero-actions { width: 100%; }
  .ms-cta-actions .ms-btn, .ms-hero-actions .ms-btn { flex: 1 1 100%; }
  .ms-footer-bottom-inner { flex-direction: column; }
  .ms-form { padding: 24px; }
}

/* MASAM SHIPPING SERVICES – SAVED BRAND OVERRIDES */
.ms-topbar {
  background-color: #092c5c !important;
  color: #ffffff !important;
}

.ms-topbar a,
.ms-topbar span,
.ms-topbar p,
.ms-topbar i {
  color: #ffffff !important;
}

.ms-topbar svg {
  color: #ffffff !important;
  stroke: #ffffff !important;
  fill: none !important;
}

.ms-navbar {
  background-color: #ffffff !important;
}

.ms-btn-gold {
  background-color: #092c5c !important;
  color: #ffffff !important;
  border: 1px solid #2599ab !important;
  box-shadow: 0 10px 22px rgba(9, 44, 92, .20);
}

.ms-btn-gold:hover {
  background-color: #092c5c !important;
  color: #ffffff !important;
  border-color: #024574 !important;
}

.ms-navbar a:hover,
.ms-navbar .current-menu-item > a,
.ms-navbar .current-menu-parent > a {
  color: #0180AA !important;
}

.site-footer {
  background-color: #092c5c !important;
}



/* =========================================================
   MASAM SHIPPING SERVICES — IMAGE UPDATE PACKAGE v1.2.0
   ========================================================= */

/* Homepage About image: larger, balanced and responsive */
@media (min-width: 901px) {
  .ms-about-grid {
    grid-template-columns: .90fr 1.10fr;
    gap: 52px;
  }

  .ms-illustration-wrap {
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 18px 22px 0;
  }

  .ms-illustration-wrap > img {
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    object-position: center center;
    border-radius: 16px;
  }

  .ms-year-card {
    left: -24px;
    bottom: 26px;
    z-index: 2;
  }
}

@media (max-width: 900px) {
  .ms-illustration-wrap {
    width: 100%;
    max-width: 640px;
    margin-inline: auto;
    padding: 16px 20px 0;
  }

  .ms-illustration-wrap > img {
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    object-position: center center;
    border-radius: 15px;
  }

  .ms-year-card {
    left: 12px;
    bottom: 12px;
    z-index: 2;
  }
}

@media (max-width: 640px) {
  .ms-illustration-wrap {
    padding: 10px;
    border-radius: 18px;
  }

  .ms-illustration-wrap > img {
    aspect-ratio: 4 / 3;
    border-radius: 11px;
  }

  .ms-year-card {
    left: 18px;
    bottom: 18px;
    padding: 13px 16px;
    border-radius: 10px;
  }

  .ms-year-card strong {
    font-size: 1.3rem;
  }
}

/* Homepage trading visual */
.ms-trade-visual {
  overflow: hidden;
}

.ms-trade-visual > img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 520px;
  object-fit: contain;
  object-position: center;
  border-radius: 20px;
}

/* Service capability illustration used across service pages */
.ms-service-visual {
  width: 100%;
  padding: 20px;
  overflow: hidden;
  background: #eaf7fc;
  border-radius: 28px;
}

.ms-service-capability-image {
  display: block;
  width: 100%;
  height: 470px;
  object-fit: contain;
  object-position: center;
  border-radius: 18px;
}

/* Internal page hero backgrounds */
.ms-page-hero.ms-photo-hero {
  isolation: isolate;
  background-color: #092c5c;
  background-repeat: no-repeat;
  background-position: center center;
  background-size: cover;
}

.ms-page-hero.ms-photo-hero .ms-container {
  position: relative;
  z-index: 2;
}

.ms-page-hero.ms-photo-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  width: auto;
  height: auto;
  right: auto;
  top: auto;
  border: 0;
  border-radius: 0;
  background: linear-gradient(
    90deg,
    rgba(4, 28, 48, .98) 0%,
    rgba(9, 44, 92, .92) 42%,
    rgba(9, 44, 92, .68) 70%,
    rgba(9, 44, 92, .38) 100%
  );
  pointer-events: none;
}

.ms-service-hero--air-freight {
  background-image: url('assets/images/page-hero-air-freight.webp');
  background-position: center 58%;
}

.ms-service-hero--sea-freight {
  background-image: url('assets/images/page-hero-sea-freight.jpg');
  background-position: center 48%;
}

.ms-service-hero--road-transport {
  background-image: url('assets/images/page-hero-road-transport.jpg');
  background-position: center 53%;
}

.ms-service-hero--trading {
  background-image: url('assets/images/page-hero-trading.webp');
  background-position: center 48%;
}

.ms-service-hero--import-export {
  background-image: url('assets/images/page-hero-import-export.jpg');
  background-position: center 52%;
}

.ms-service-hero--other-services {
  background-image: url('assets/images/page-hero-other-services.webp');
  background-position: center 48%;
}

.ms-about-page-hero {
  background-image: url('assets/images/page-hero-about-us.svg');
  background-position: center 52%;
}

/* Global CTA background shown across the site */
.ms-cta {
  background-image:
    linear-gradient(
      90deg,
      rgba(4, 28, 48, .96) 0%,
      rgba(9, 44, 92, .88) 50%,
      rgba(9, 44, 92, .64) 100%
    ),
    url('assets/images/global-cta-background.webp');
  background-repeat: no-repeat;
  background-position: center center;
  background-size: cover;
}

.ms-cta::after {
  content: none;
}

.ms-cta-inner {
  position: relative;
  z-index: 2;
}

.ms-cta h2,
.ms-cta p {
  color: #fff;
}

.ms-cta p {
  color: rgba(255, 255, 255, .88);
}

@media (max-width: 900px) {
  .ms-page-hero.ms-photo-hero {
    background-position: center center;
  }

  .ms-page-hero.ms-photo-hero::after {
    background: rgba(9, 44, 92, .86);
  }

  .ms-service-visual {
    max-width: 650px;
    margin-inline: auto;
  }

  .ms-service-capability-image {
    height: 420px;
  }
}

@media (max-width: 640px) {
  .ms-page-hero.ms-photo-hero {
    padding: 82px 0 76px;
  }

  .ms-service-visual {
    padding: 10px;
    border-radius: 18px;
  }

  .ms-service-capability-image {
    width: 100%;
    height: auto;
    max-height: 330px;
    border-radius: 12px;
  }

  .ms-cta {
    background-position: center center;
  }
}