/* Mitra Mandara Swasti brand layer — loaded after the vendored theme (style.css).
 *
 * There is no written brand guide; this is derived from the logo: the mark's
 * navy and red bars and its wide geometric wordmark (Montserrat is the closest
 * match). The theme shipped a yellow-green primary (#d5dd02) and Oswald /
 * Raleway / Poppins, none of which belong to MMS. Every rule here maps a theme
 * role to a brand one; the theme file itself stays untouched.
 *
 *   navy     #283891  primary: buttons, heading rules, links, photo tints
 *   deep     #1b2563  dark surfaces: header, footer (was near-black)
 *   red      #ed1c24  one accent: the page-title frame, active markers
 */
:root {
  --mms-navy: #283891;
  --mms-navy-hover: #1f2c78;
  --mms-deep: #1b2563;
  --mms-deeper: #141c4d;
  --mms-red: #ed1c24;
  --mms-ink: #1d2033;
  --mms-muted: #5b6075;
  --mms-on-dark: #c9cee6;
  --mms-font: 'Montserrat', system-ui, -apple-system, 'Segoe UI', sans-serif;
  /* Read by the unit/project components (they fell back to Bootstrap blue). */
  --primary-color: var(--mms-navy);
}

/* ---------- Type ---------- */
body,
p, li, input, select, textarea, button,
.site-button, .site-button-secondry, .site-button-link,
h1, h2, h3, h4, h5, h6,
.wt-small-title, .widget-title, .banner-title-name h2,
.counter-text-info, .wt-tilte, .post-title {
  font-family: var(--mms-font) !important;
}
body { color: var(--mms-ink); }
/* The theme letter-spaces body copy for Raleway; Montserrat is already wide. */
body, p, li { letter-spacing: normal !important; }
p { line-height: 1.7; }
h1, h2, h3, h4, h5, h6 { color: var(--mms-ink); font-weight: 600; letter-spacing: 0; }
/* Oswald is condensed; at the same size Montserrat runs ~40% wider. */
.section-head h2, .wt-tilte-main h2 { font-size: clamp(26px, 3vw, 36px); line-height: 1.2; }
.wt-small-title { font-weight: 500; letter-spacing: 0.08em; color: var(--mms-navy); }
.wt-bnr-inr-entry .banner-title-outer .banner-title-name h2 { font-size: clamp(26px, 3.6vw, 48px) !important; line-height: 1.15 !important; font-weight: 600; letter-spacing: 0.02em; }

/* ---------- Primary (was #d5dd02) ---------- */
a:hover, a:focus, a:active,
h1 a:hover, h2 a:hover, h3 a:hover, h4 a:hover, h5 a:hover, h6 a:hover,
.site-text-primary, .text-secondry, .text-yellow,
.wt-breadcrumb li a:hover,
.blog-social-icon ul li a:hover,
.projects-two-info.bg-white:hover .wt-tilte a:hover,
.block-bg-hover:hover a:hover,
.wt-team-arc2 .team-social-icon li a:hover,
.testimonial-1 .quote-left:before { color: var(--mms-navy) !important; }

/* Hero slider links sit on photos: white, underlined with the red accent. */
.rev-slider-custom-btn, .rev-slider-custom-btn2 {
  color: #fff !important;
  letter-spacing: 0.08em;
  padding-bottom: 6px;
  box-shadow: inset 0 -3px 0 var(--mms-red);
}
.rev-slider-custom-btn:hover, .rev-slider-custom-btn2:hover { color: #fff !important; box-shadow: inset 0 -6px 0 var(--mms-red); }

.site-bg-primary, .bg-green,
.site-button, .btn-half,
.wt-tabs .nav-tabs > li:after,
.hover-box-effect:hover,
.project-img-effect-1 i,
.social-tooltips-outer a .social-tooltips,
.number-dot.owl-carousel .owl-dots .owl-dot span { background-color: var(--mms-navy) !important; }

.site-button:hover, .site-button:focus, .site-button:active, .active > .site-button,
.btn-half.site-button-secondry:hover { background-color: var(--mms-navy-hover) !important; }
.site-button { color: #fff !important; }

.bdr-primary { border-color: var(--mms-navy) !important; }
.text-primary { color: var(--mms-navy) !important; }
.client-logo-media:before, .client-logo-media:after,
.latest-blog-2:after,
.work-carousel .wt-img-effect .wt-info,
.wt-team-arc2:hover:after,
.tp-thumbs-inner-wrapper .tp-thumb.selected:after { border-color: var(--mms-navy) !important; }
.social-tooltip:after, .social-tooltip:before,
.social-tooltips-outer .social-tooltips:before { border-left-color: var(--mms-navy) !important; }

/* Secondary buttons: a navy outline on light backgrounds (the theme's are bare
   dark text). On navy strips the .overlay-wraper rule below turns them white. */
.site-button-secondry, .site-button-outline {
  display: inline-block;
  color: var(--mms-navy) !important;
  background: transparent;
  border: 2px solid var(--mms-navy) !important;
  font-weight: 500;
}
.site-button-secondry:hover, .site-button-secondry:focus-visible,
.site-button-outline:hover, .site-button-outline:focus-visible {
  background-color: var(--mms-navy) !important;
  color: #fff !important;
}

/* ---------- The one red accent: the page-title frame, like the mark's red bar ---------- */
.wt-bnr-inr-entry .banner-title-outer .banner-title-name:before,
.wt-bnr-inr-entry .banner-title-outer .banner-title-name:after { border-color: var(--mms-red) !important; }

/* ---------- Photo overlays (page banners, CTA strips) ---------- */
.overlay-wraper .overlay-main.site-bg-primary { background-color: var(--mms-navy) !important; }
.wt-bnr-inr .overlay-main { opacity: 0.55 !important; }
/* The theme's secondary button is bare dark text; outline it on navy. */
.overlay-wraper .site-button-secondry { color: #fff !important; border-color: #fff !important; }
.overlay-wraper .site-button-secondry:hover,
.overlay-wraper .site-button-secondry:focus-visible { background-color: #fff; color: var(--mms-navy) !important; }

/* ---------- Dark surfaces: header and footer in deep navy ---------- */
.is-fixed .main-bar, .header-fixed .is-fixed .main-bar,
.header-style-1 .main-bar.color-fill { background-color: var(--mms-deep) !important; }
/* The menu is a side drawer at every width. The theme paints it white with
   #777 12px letter-spaced links; make it a navy panel with white 15px links,
   48px rows, and a red bar on the current page (red text on navy would be
   too low-contrast). */
.mobile-sider-drawer-menu .header-nav {
  background-color: var(--mms-deep) !important;
  border: 0 !important;
  box-shadow: 0 0 40px rgba(0, 0, 0, 0.35);
}
.header-nav .nav { background: transparent !important; }
.mobile-sider-drawer-menu .header-nav .nav { padding-top: 72px; }
.header-nav .nav > li { padding: 0 !important; }
.header-nav .nav > li > a,
.mobile-sider-drawer-menu .header-nav .nav > li > a {
  display: block;
  margin: 0 !important;
  min-height: 48px;
  padding: 14px 24px !important;
  color: #fff !important;
  font-size: 15px !important;
  font-weight: 500;
  letter-spacing: 0.04em !important;
  border-top: 1px solid rgba(255, 255, 255, 0.12) !important;
}
.header-nav .nav > li > a:hover,
.header-nav .nav > li > a:focus-visible { background-color: rgba(255, 255, 255, 0.08) !important; color: #fff !important; }
.header-nav .nav > li.active > a {
  background-color: rgba(255, 255, 255, 0.06) !important;
  box-shadow: inset 4px 0 0 var(--mms-red);
}
/* The drawer toggle and search sit on photos and on navy: always white. */
#mobile-side-drawer .icon-bar { background-color: #fff !important; }

.footer-dark .footer-top { background-color: var(--mms-deep) !important; }
.footer-dark .footer-bottom { background-color: var(--mms-deeper) !important; }
.footer-dark .footer-top p, .footer-dark .footer-top strong, .footer-dark .footer-top li,
.footer-dark .footer-top a, .footer-dark .footer-bottom .copyrights-text { color: var(--mms-on-dark) !important; }
.footer-dark .footer-top a:hover, .footer-dark .footer-top a:focus,
.footer-dark .social-icons li a, .footer-social-content ul li a,
.footer-light .social-icons li a,
.footer-light .widget_services ul li a:hover { color: #fff !important; }
.footer-dark .footer-top .widget-title::before { border-color: var(--mms-red) !important; }

/* Side social rail and accordion accents sit on dark backgrounds too. */
.side-social-nav a:hover, .side-social-nav a:hover.socialicon_close,
.acc-bg-dark .acod-head .fa,
.acc-bg-dark .acod-head .indicator .fa:after,
.acc-bg-dark .acod-head .indicator .fa:before { color: #fff !important; }

/* ---------- Touch targets: small text links get ≥40px of tappable height ---------- */
.wt-tilte a, .unit-title a,
.site-button-link,
.footer-top .widget_services ul li a,
.wt-breadcrumb li a,
.wt-info p a {
  display: inline-block;
  padding-top: 10px;
  padding-bottom: 10px;
}
.footer-top .widget_services ul li a { display: block; }
.wt-breadcrumb li a { padding-left: 4px; padding-right: 4px; }

/* ---------- Keyboard focus, visible on both light and navy ---------- */
a:focus-visible, button:focus-visible, .site-button:focus-visible {
  outline: 3px solid var(--mms-red);
  outline-offset: 2px;
}
