/*==============================================================
# MIRAI GLOBAL LIMITED — Custom Design System
# Loaded after main.css. Uses brand tokens defined in main.css :root
==============================================================*/
:root { --mirai-radius: 14px; --mirai-shadow: 0 18px 45px rgba(15,29,58,.10); --mirai-shadow-sm: 0 8px 24px rgba(15,29,58,.08); }

/* --- Buttons --- */
.mirai-btn, .mirai-btn-outline, .mirai-btn-light {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 13px 30px; border-radius: 50px; font-family: var(--nav-font);
  font-weight: 700; font-size: 15px; letter-spacing: .3px; cursor: pointer;
  transition: all .3s ease; border: 2px solid transparent; line-height: 1;
}
.mirai-btn { background: var(--brand-orange); color: #fff; }
.mirai-btn:hover { background: var(--brand-navy); color: #fff; transform: translateY(-3px); box-shadow: 0 12px 26px rgba(21,40,79,.28); }
.mirai-btn-outline { background: transparent; color: var(--brand-navy); border-color: var(--brand-navy); }
.mirai-btn-outline:hover { background: var(--brand-navy); color: #fff; transform: translateY(-3px); }
.mirai-btn-light { background: #fff; color: var(--brand-navy); }
.mirai-btn-light:hover { background: var(--brand-orange); color: #fff; transform: translateY(-3px); }
.on-dark .mirai-btn-outline { color: #fff; border-color: rgba(255,255,255,.6); }
.on-dark .mirai-btn-outline:hover { background: #fff; color: var(--brand-navy); border-color: #fff; }

/* --- Small section label --- */
.sec-label { display: inline-flex; align-items: center; gap: 8px; text-transform: uppercase;
  letter-spacing: 3px; font-size: 13px; font-weight: 700; color: var(--brand-orange);
  font-family: var(--nav-font); margin-bottom: 14px; }
.sec-label::before { content: ""; width: 28px; height: 2px; background: var(--brand-orange); display: inline-block; }
.section-title .sec-label { justify-content: center; }
.section-title.text-start { text-align: left; }
.section-title.text-start h2::before, .section-title.text-start h2::after { left: 0; right: auto; margin: 0; }

/* --- Inner page hero --- */
.page-hero { padding-top: 0 !important; position: relative; background: var(--brand-navy-dark); overflow: hidden; }
.page-hero::before { content: ""; position: absolute; inset: 0;
  background: linear-gradient(120deg, rgba(15,29,58,.95) 0%, rgba(21,40,79,.86) 45%, rgba(21,40,79,.72) 100%); z-index: 2; }
.page-hero .hero-bg { position: absolute; inset: 0; z-index: 1; object-fit: cover; width: 100%; height: 100%; opacity: .55; }
.page-hero .heading { position: relative; z-index: 3; padding: 150px 0 70px; }
.page-hero .heading h1 { color: #fff; font-weight: 800; font-size: 44px; margin-bottom: 12px; }
.page-hero .heading p { color: rgba(255,255,255,.82); max-width: 640px; font-size: 17px; margin: 0; }
.page-hero nav { position: relative; z-index: 3; background: rgba(255,255,255,.08); backdrop-filter: blur(4px); border-top: 1px solid rgba(255,255,255,.12); }
.page-hero nav ol { color: rgba(255,255,255,.85); }
.page-hero nav ol a { color: var(--brand-orange-soft); }
.page-hero nav ol li+li::before { color: rgba(255,255,255,.5); }
@media (max-width: 768px){ .page-hero .heading { padding: 120px 0 50px; } .page-hero .heading h1 { font-size: 32px; } }

/* --- Service cards grid --- */
.svc-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 28px; }
@media (max-width: 992px){ .svc-grid { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 640px){ .svc-grid { grid-template-columns: 1fr; } }
.svc-card { background: #fff; border-radius: var(--mirai-radius); overflow: hidden; box-shadow: var(--mirai-shadow-sm);
  border: 1px solid #eef1f6; transition: all .35s ease; display: flex; flex-direction: column; height: 100%; }
.svc-card:hover { transform: translateY(-8px); box-shadow: var(--mirai-shadow); border-color: transparent; }
.svc-card .svc-media { position: relative; height: 208px; overflow: hidden; }
.svc-card .svc-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.svc-card:hover .svc-media img { transform: scale(1.08); }
.svc-card .svc-icon { position: absolute; left: 20px; bottom: -26px; width: 58px; height: 58px; border-radius: 14px;
  background: var(--brand-orange); color: #fff; display: grid; place-items: center; font-size: 26px; box-shadow: 0 8px 18px rgba(232,121,31,.4); }
.svc-card .svc-body { padding: 40px 26px 26px; display: flex; flex-direction: column; flex: 1; }
.svc-card .svc-body h3 { font-size: 21px; margin-bottom: 12px; }
.svc-card .svc-body h3 a { color: var(--brand-navy); }
.svc-card:hover .svc-body h3 a { color: var(--brand-orange); }
.svc-card .svc-body p { font-size: 15px; margin-bottom: 20px; flex: 1; }
.svc-card .svc-more { font-family: var(--nav-font); font-weight: 700; font-size: 14px; color: var(--brand-navy);
  display: inline-flex; align-items: center; gap: 8px; }
.svc-card .svc-more i { transition: transform .3s ease; }
.svc-card:hover .svc-more { color: var(--brand-orange); }
.svc-card:hover .svc-more i { transform: translateX(5px); }

/* --- Feature / value boxes --- */
.feature-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 26px; }
@media (max-width: 992px){ .feature-grid { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 575px){ .feature-grid { grid-template-columns: 1fr; } }
.feature-box { background: #fff; border-radius: var(--mirai-radius); padding: 34px 28px; box-shadow: var(--mirai-shadow-sm);
  border: 1px solid #eef1f6; transition: all .35s ease; height: 100%; }
.feature-box:hover { transform: translateY(-6px); box-shadow: var(--mirai-shadow); }
.feature-box .fb-icon { width: 62px; height: 62px; border-radius: 16px; display: grid; place-items: center; font-size: 27px;
  background: color-mix(in srgb, var(--brand-navy), transparent 92%); color: var(--brand-navy); margin-bottom: 20px; transition: all .35s ease; }
.feature-box:hover .fb-icon { background: var(--brand-orange); color: #fff; }
.feature-box h4 { font-size: 19px; margin-bottom: 10px; }
.feature-box p { font-size: 15px; margin: 0; }

/* --- Stat band --- */
.stat-band { background: var(--brand-navy); position: relative; overflow: hidden; }
.stat-band::after { content: ""; position: absolute; right: -60px; top: -60px; width: 260px; height: 260px; border-radius: 50%;
  background: radial-gradient(circle, rgba(232,121,31,.35), transparent 70%); }
.stat-band .stat-item { text-align: center; padding: 14px; position: relative; z-index: 2; }
.stat-band .stat-item .num { font-family: var(--heading-font); font-weight: 800; font-size: 46px; color: #fff; line-height: 1; }
.stat-band .stat-item .num span { color: var(--brand-orange-soft); }
.stat-band .stat-item .lbl { color: rgba(255,255,255,.75); font-size: 15px; margin-top: 8px; letter-spacing: .3px; }

/* --- Process steps --- */
.process-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 24px; }
@media (max-width: 992px){ .process-grid { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 480px){ .process-grid { grid-template-columns: 1fr; } }
.process-step { text-align: center; padding: 10px; }
.process-step .ps-num { width: 68px; height: 68px; margin: 0 auto 18px; border-radius: 50%; display: grid; place-items: center;
  font-family: var(--heading-font); font-weight: 800; font-size: 24px; color: #fff; background: var(--brand-navy); position: relative; }
.process-step .ps-num::after { content: ""; position: absolute; inset: -6px; border: 2px dashed color-mix(in srgb, var(--brand-orange), transparent 55%); border-radius: 50%; }
.process-step:hover .ps-num { background: var(--brand-orange); }
.process-step h4 { font-size: 18px; margin-bottom: 8px; }
.process-step p { font-size: 14.5px; margin: 0; }

/* --- Leadership --- */
.leader-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 28px; }
@media (max-width: 992px){ .leader-grid { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 575px){ .leader-grid { grid-template-columns: 1fr; max-width: 360px; margin: 0 auto; } }
.leader-card { background: #fff; border-radius: var(--mirai-radius); overflow: hidden; box-shadow: var(--mirai-shadow-sm);
  border: 1px solid #eef1f6; text-align: center; transition: all .35s ease; }
.leader-card:hover { transform: translateY(-6px); box-shadow: var(--mirai-shadow); }
.leader-card .lc-avatar { width: 110px; height: 110px; border-radius: 50%; margin: 32px auto 16px; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--brand-navy), #24467f); color: #fff; font-family: var(--heading-font); font-weight: 800; font-size: 38px;
  box-shadow: 0 10px 24px rgba(21,40,79,.28); }
.leader-card h4 { font-size: 20px; margin-bottom: 4px; }
.leader-card .lc-role { color: var(--brand-orange); font-weight: 700; font-size: 14px; font-family: var(--nav-font); text-transform: uppercase; letter-spacing: 1px; }
.leader-card .lc-body { padding: 0 24px 10px; }
.leader-card .lc-body p { font-size: 14.5px; margin: 14px 0 0; }
.leader-card .lc-social { display: flex; justify-content: center; gap: 10px; padding: 18px 0 26px; }
.leader-card .lc-social a { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: #f1f4f9; color: var(--brand-navy); transition: all .3s ease; }
.leader-card .lc-social a:hover { background: var(--brand-orange); color: #fff; }

/* --- Split feature (image + list) --- */
.split-list { list-style: none; padding: 0; margin: 22px 0 0; }
.split-list li { position: relative; padding-left: 34px; margin-bottom: 14px; font-size: 15.5px; }
.split-list li i { position: absolute; left: 0; top: 2px; color: var(--brand-orange); font-size: 20px; }
.mirai-media-frame { position: relative; border-radius: var(--mirai-radius); overflow: hidden; box-shadow: var(--mirai-shadow); }
.mirai-media-frame img { width: 100%; height: 100%; object-fit: cover; }
.mirai-media-frame.tall img { min-height: 420px; }
.media-badge { position: absolute; left: 24px; bottom: 24px; background: var(--brand-orange); color: #fff; padding: 16px 22px; border-radius: 12px; box-shadow: 0 10px 24px rgba(232,121,31,.4); }
.media-badge .mb-num { font-family: var(--heading-font); font-weight: 800; font-size: 30px; line-height: 1; }
.media-badge .mb-txt { font-size: 13px; opacity: .95; }

/* --- Sectors chips --- */
.sector-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; }
@media (max-width: 768px){ .sector-grid { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 460px){ .sector-grid { grid-template-columns: 1fr; } }
.sector-item { display: flex; align-items: center; gap: 14px; background: #fff; border: 1px solid #eef1f6; border-radius: 12px; padding: 18px 20px; box-shadow: var(--mirai-shadow-sm); transition: all .3s ease; }
.sector-item:hover { border-color: var(--brand-orange); transform: translateY(-4px); }
.sector-item i { font-size: 24px; color: var(--brand-orange); }
.sector-item span { font-weight: 600; color: var(--brand-navy); }

/* --- CTA band --- */
.cta-band { position: relative; background: var(--brand-navy); overflow: hidden; border-radius: 20px; padding: 54px 50px; }
.cta-band::before { content: ""; position: absolute; right: -80px; bottom: -80px; width: 320px; height: 320px; border-radius: 50%; background: radial-gradient(circle, rgba(232,121,31,.4), transparent 70%); }
.cta-band h2 { color: #fff; font-weight: 800; font-size: 32px; position: relative; z-index: 2; }
.cta-band p { color: rgba(255,255,255,.82); position: relative; z-index: 2; margin: 12px 0 0; }
.cta-band .cta-actions { position: relative; z-index: 2; display: flex; gap: 14px; flex-wrap: wrap; }
@media (max-width: 768px){ .cta-band { padding: 40px 26px; } .cta-band h2 { font-size: 26px; } }

/* --- Contact info cards --- */
.info-card { background: #fff; border: 1px solid #eef1f6; border-radius: var(--mirai-radius); padding: 30px 26px; box-shadow: var(--mirai-shadow-sm); height: 100%; transition: all .3s ease; }
.info-card:hover { transform: translateY(-5px); box-shadow: var(--mirai-shadow); }
.info-card .ic-icon { width: 56px; height: 56px; border-radius: 14px; display: grid; place-items: center; font-size: 24px; background: color-mix(in srgb, var(--brand-navy), transparent 92%); color: var(--brand-navy); margin-bottom: 18px; }
.info-card:hover .ic-icon { background: var(--brand-orange); color: #fff; }
.info-card h4 { font-size: 18px; margin-bottom: 8px; }
.info-card p, .info-card a { font-size: 15px; color: var(--default-color); display: block; margin: 2px 0; }
.info-card a:hover { color: var(--brand-orange); }

/* --- Projects gallery --- */
.proj-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; }
@media (max-width: 992px){ .proj-grid { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 575px){ .proj-grid { grid-template-columns: 1fr; } }
.proj-card { position: relative; border-radius: var(--mirai-radius); overflow: hidden; box-shadow: var(--mirai-shadow-sm); height: 260px; display: block; }
.proj-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.proj-card:hover img { transform: scale(1.08); }
.proj-card .proj-overlay { position: absolute; inset: 0; background: linear-gradient(to top, rgba(15,29,58,.92) 0%, rgba(15,29,58,.15) 55%, transparent 100%); display: flex; flex-direction: column; justify-content: flex-end; padding: 22px; opacity: 0; transition: opacity .35s ease; }
.proj-card:hover .proj-overlay { opacity: 1; }
.proj-card .proj-overlay span { color: var(--brand-orange-soft); font-size: 12.5px; font-weight: 700; text-transform: uppercase; letter-spacing: 1.5px; }
.proj-card .proj-overlay h4 { color: #fff; font-size: 18px; margin: 6px 0 0; }

/* --- Service detail helpers --- */
.detail-lead { font-size: 18px; color: var(--brand-navy); font-weight: 500; line-height: 1.7; }
.mini-list { list-style: none; padding: 0; margin: 0; }
.mini-list li { position: relative; padding-left: 30px; margin-bottom: 12px; font-size: 15px; }
.mini-list li::before { content: "\F26E"; font-family: "bootstrap-icons"; position: absolute; left: 0; top: 0; color: var(--brand-orange); }
.svc-side { background: var(--brand-navy); border-radius: var(--mirai-radius); padding: 8px; }
.svc-side a { display: flex; align-items: center; justify-content: space-between; padding: 15px 18px; color: rgba(255,255,255,.82); border-radius: 10px; font-family: var(--nav-font); font-weight: 600; font-size: 15px; }
.svc-side a:hover, .svc-side a.active { background: var(--brand-orange); color: #fff; }
.svc-side a i { transition: transform .3s ease; }
.svc-side a:hover i { transform: translateX(4px); }
.help-box { background: linear-gradient(135deg, var(--brand-navy), #24467f); border-radius: var(--mirai-radius); padding: 30px 26px; color: #fff; text-align: center; margin-top: 24px; }
.help-box i.hb-lead { font-size: 34px; color: var(--brand-orange-soft); }
.help-box h4 { color: #fff; margin: 12px 0 6px; font-size: 20px; }
.help-box p { color: rgba(255,255,255,.8); font-size: 14px; }
.help-box a.phone { display: block; font-size: 20px; font-weight: 800; color: #fff; font-family: var(--heading-font); margin-top: 6px; }

/* --- FAQ --- */
.mirai-faq .faq-item { background: #fff; border: 1px solid #eef1f6; border-radius: 12px; padding: 22px 26px; margin-bottom: 16px; box-shadow: var(--mirai-shadow-sm); transition: all .3s ease; }
.mirai-faq .faq-item h3 { font-size: 17px; margin: 0; padding-right: 34px; cursor: pointer; position: relative; color: var(--brand-navy); }
.mirai-faq .faq-item h3 .num { color: var(--brand-orange); font-weight: 700; margin-right: 8px; }
.mirai-faq .faq-item .faq-content { max-height: 0; overflow: hidden; transition: all .35s ease; }
.mirai-faq .faq-item .faq-content p { margin: 14px 0 0; font-size: 15px; }
.mirai-faq .faq-item .faq-toggle { position: absolute; top: 20px; right: 24px; font-size: 22px; color: var(--brand-orange); transition: transform .3s ease; cursor: pointer; }
.mirai-faq .faq-item.faq-active { border-color: color-mix(in srgb, var(--brand-orange), transparent 60%); }
.mirai-faq .faq-item.faq-active .faq-content { max-height: 400px; }
.mirai-faq .faq-item.faq-active .faq-toggle { transform: rotate(45deg); }

/* --- Contact form --- */
.mirai-form .form-control, .mirai-form .form-select { border-radius: 10px; border: 1px solid #dfe4ec; padding: 13px 16px; font-size: 15px; }
.mirai-form .form-control:focus, .mirai-form .form-select:focus { border-color: var(--brand-orange); box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand-orange), transparent 82%); }
.mirai-form label { font-weight: 600; font-size: 14px; color: var(--brand-navy); margin-bottom: 6px; }

/* --- Utilities --- */
.bg-navy { background: var(--brand-navy) !important; }
.bg-soft { background: #f5f7fb !important; --background-color: #f5f7fb; }
.text-orange { color: var(--brand-orange) !important; }
.hero .highlight, .highlight { color: var(--brand-orange); }
.lift { transition: all .35s ease; }

/*==============================================================
# Global fixes — overflow guard + solid header
==============================================================*/
html, body { overflow-x: hidden; max-width: 100%; }
img, svg, iframe, video { max-width: 100%; }
/* Solid white header on every page so nav is legible over dark page heroes */
.header { --background-color: #ffffff; background-color: #ffffff; }
.header .branding { min-height: 70px; }

/* Real logo sizing */
.header .logo img.site-logo, .header .logo img { max-height: 50px; width: auto; }
body.scrolled .header .logo img.site-logo { max-height: 44px; }

/* Clear gap between fixed header and the home hero (matches inner page heroes) */
.hero { padding-top: 130px; padding-bottom: 70px; }

/* Footer logo on a light chip so the navy logo reads on the dark footer */
.footer-16 .brand-section .logo { background: #ffffff; padding: 12px 20px; border-radius: 12px; display: inline-flex; box-shadow: 0 8px 22px rgba(0,0,0,.22); }
.footer-16 .brand-section .logo img { max-height: 46px; width: auto; }
@media (max-width: 767px){ .footer-16 .brand-section .logo { margin-left: auto; margin-right: auto; } }

/*==============================================================
# Dark Footer Theme
==============================================================*/
.footer-16 {
  --background-color: #0f1d3a;
  --default-color: #d8e0ee;
  --heading-color: #ffffff;
  background: linear-gradient(180deg, #15284f 0%, #0f1d3a 100%);
  color: var(--default-color);
  border-top: none;
  padding-top: 80px;
  position: relative;
}
.footer-16::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--brand-orange), var(--brand-orange-soft), var(--brand-orange));
}
.footer-16 .brand-section .brand-description { color: rgba(255,255,255,.72); font-weight: 400; }
.footer-16 .brand-section .contact-info .contact-item { color: rgba(255,255,255,.78); }
.footer-16 .brand-section .contact-info .contact-item i { color: var(--brand-orange-soft); }
.footer-16 .brand-section .contact-info .contact-item span a { color: rgba(255,255,255,.85); }
.footer-16 .brand-section .contact-info .contact-item span a:hover { color: var(--brand-orange-soft); }
.footer-16 .nav-column h6 {
  color: #fff; font-weight: 700; font-size: 15px; text-transform: uppercase; letter-spacing: 1.5px;
  position: relative; padding-bottom: 14px; margin-bottom: 20px;
}
.footer-16 .nav-column h6::after { content: ""; position: absolute; left: 0; bottom: 0; width: 30px; height: 2px; background: var(--brand-orange); }
.footer-16 .nav-column .footer-nav a { color: rgba(255,255,255,.70); font-weight: 400; }
.footer-16 .nav-column .footer-nav a:hover { color: var(--brand-orange-soft); transform: translateX(4px); }
.footer-16 .footer-bottom { background: rgba(0,0,0,.25); border-top: 1px solid rgba(255,255,255,.08); margin-top: 20px; }
.footer-16 .footer-bottom .copyright p { color: rgba(255,255,255,.65); }
.footer-16 .footer-bottom .copyright p .sitename { color: #fff; font-weight: 600; }
.footer-16 .footer-bottom .legal-links a { color: rgba(255,255,255,.6); }
.footer-16 .footer-bottom .legal-links a:hover { color: var(--brand-orange-soft); }

/*==============================================================
# Mobile & Responsive Polish
==============================================================*/
@media (max-width: 991px) {
  .hero.section { min-height: auto; padding: 150px 0 60px; }
  .hero .hero-visual { margin-top: 40px; }
  .cta-band .cta-actions { justify-content: flex-start; margin-top: 22px; }
  .cta-band { text-align: left; }
  .section-title { padding-bottom: 40px; }
}
@media (max-width: 767px) {
  .section, section { padding: 48px 0; }
  .section-title h2, .home-about .about-content .section-heading { font-size: 26px !important; }
  .cta-band h2 { font-size: 24px; }
  .stat-band .stat-item .num { font-size: 38px; }
  .mirai-media-frame.tall img { min-height: 300px; }
  .mirai-btn, .mirai-btn-outline, .mirai-btn-light { padding: 12px 24px; font-size: 14px; }
  .page-hero .heading p { font-size: 15px; }
  .leader-card .lc-avatar { width: 96px; height: 96px; font-size: 32px; }
  .footer-16 { text-align: left; }
}
@media (max-width: 575px) {
  .hero-actions { display: flex; flex-direction: column; gap: 12px; }
  .hero-actions .btn { width: 100%; text-align: center; justify-content: center; }
  .cta-band .cta-actions { flex-direction: column; }
  .cta-band .cta-actions a { width: 100%; text-align: center; justify-content: center; }
  .svc-card .svc-body { padding: 38px 22px 24px; }
  .info-card { text-align: center; }
  .info-card .ic-icon { margin-left: auto; margin-right: auto; }
}
