@import url('https://api.fontshare.com/v2/css?f[]=cabinet-grotesk@500,700,800&f[]=satoshi@400,500,700&display=swap');

/* ============================================================================
   MS Solutions — brand skin for the WordPress blog
   ----------------------------------------------------------------------------
   The blog runs Astra 4.11 with Elementor and Header Footer Elementor, so it
   arrives in Astra's own type and colour and reads as a different company next
   to ms-solutions.in. Every value below is copied from the live stylesheet of
   the main site (css/v6.css), not approximated: the two Fontshare families, the
   16.5px/1.7 body, the 24px card with its two-layer shadow, solid gold on navy.

   Gold is SOLID here, never a gradient — that is a standing rule on this brand.

   Install: WordPress admin → Appearance → Customize → Additional CSS, paste the
   whole file including the @import on line 1 (it has to stay the first line).
   ============================================================================ */

:root {
  --mb-ink: #0d1a3a;          /* headings */
  --mb-body: #3b4256;         /* body copy */
  --mb-read: #4f586d;         /* long-form paragraphs, a touch lighter */
  --mb-muted: #687085;        /* meta, dates, captions */
  --mb-line: #e6e9f0;
  --mb-line-2: #eaecf2;
  --mb-soft: #f5f6fa;
  --mb-navy: #1b3a8c;
  --mb-navy-700: #0f2257;
  --mb-gold: #c9a45c;
  --mb-gold-ink: #85662c;     /* gold that passes contrast on white */
  --mb-cream: #fcfaf5;
  --mb-font: "Satoshi", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mb-display: "Cabinet Grotesk", "Satoshi", system-ui, sans-serif;
  --mb-ease: cubic-bezier(.22, 1, .36, 1);
  --mb-card: 0 1px 2px rgba(15, 34, 87, .05), 0 14px 32px -22px rgba(15, 34, 87, .28);
  --mb-card-up: 0 2px 4px rgba(15, 34, 87, .06), 0 26px 50px -26px rgba(15, 34, 87, .36);
}

/* Astra and Elementor drive every button, link and accent from one shared
   palette, and slot 0 is #046bd2 — a stock blue that appears nowhere on the
   main site. Repointing the tokens recolours the lot in one move, including
   widgets and blocks this file never names. Elementor mirrors Astra's slots
   under its own prefix, so both sets have to be set. */
:root {
  --ast-global-color-0: #1b3a8c !important;   /* primary: links, accents */
  --ast-global-color-1: #0f2257 !important;   /* primary, pressed */
  --ast-global-color-2: #0d1a3a !important;   /* headings */
  --ast-global-color-3: #3b4256 !important;   /* body copy */
  --ast-global-color-4: #f5f6fa !important;   /* soft background */
  --ast-global-color-5: #ffffff !important;
  --ast-global-color-6: #e6e9f0 !important;   /* borders */
  --ast-global-color-7: #0d1a3a !important;
  --ast-global-color-8: #1b3a8c !important;
  --e-global-color-astglobalcolor0: #1b3a8c !important;
  --e-global-color-astglobalcolor1: #0f2257 !important;
  --e-global-color-astglobalcolor2: #0d1a3a !important;
  --e-global-color-astglobalcolor3: #3b4256 !important;
  --e-global-color-astglobalcolor4: #f5f6fa !important;
  --e-global-color-astglobalcolor5: #ffffff !important;
  --e-global-color-astglobalcolor6: #e6e9f0 !important;
}

/* ---------------------------------------------------------------- foundation */
body,
.ast-container,
.entry-content,
.ast-excerpt-container,
button, input, select, textarea {
  font-family: var(--mb-font);
}

body {
  font-size: 16.5px;
  line-height: 1.7;
  color: var(--mb-body);
  background: #fff;
  -webkit-font-smoothing: antialiased;
}

/* Astra ships Barlow Semi Condensed for headings; the brand face is Cabinet
   Grotesk, tightened, which is most of why the blog reads as another site. */
h1, h2, h3, h4, h5, h6,
.entry-title,
.ast-archive-title,
.elementor-heading-title {
  font-family: var(--mb-display);
  font-weight: 700;
  color: var(--mb-ink);
  letter-spacing: -.03em;
  line-height: 1.12;
}

h1, .entry-title { font-size: clamp(30px, 3.6vw, 46px); }
h2 { font-size: clamp(24px, 2.4vw, 32px); }
h3 { font-size: clamp(19px, 1.5vw, 22px); }

a { color: var(--mb-navy); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover, a:focus { color: var(--mb-gold-ink); }

/* the page itself is white; the cards do the separating */
.site, #content, .ast-separate-container, .ast-plain-container { background: #fff; }
.ast-separate-container .ast-article-single,
.ast-separate-container .comments-area,
.ast-separate-container .ast-comment-list li { background: #fff; }

/* the main site's container, so the blog lines up with it */
.ast-container { max-width: 1440px; padding-left: 20px; padding-right: 20px; }
.ast-separate-container .entry-content,
.single .entry-content { max-width: 760px; }   /* a readable measure for long copy */

/* ------------------------------------------------------------ archive cards */
/* Astra's plain container leaves each post as bare text in a column. These are
   the main site's cards: white, 24px, the same two-layer shadow, same lift. */
/* Astra sets the radius and padding from its own dynamic inline CSS, which wins
   on load order, so these two need the flag; the rest cascades normally. */
body.blog .ast-article-inner,
body.archive .ast-article-inner,
body.search .ast-article-inner {
  background: #fff;
  border: 1px solid var(--mb-line);
  border-radius: 24px !important;
  padding: 0 !important;
  overflow: hidden;
  box-shadow: var(--mb-card);
  transition: transform .3s var(--mb-ease), box-shadow .3s var(--mb-ease), border-color .3s;
  height: 100%;
}

body.blog .ast-article-inner:hover,
body.archive .ast-article-inner:hover {
  transform: translateY(-3px);
  box-shadow: var(--mb-card-up);
  border-color: #e0d3b4;
}

body.blog .ast-article-inner > .post-content,
body.archive .ast-article-inner > .post-content { padding: 0 0 22px; }

/* the thumbnail runs edge to edge at the top of the card */
.ast-blog-featured-section.post-thumb { margin: 0 0 18px; }
.ast-blog-featured-section.post-thumb img {
  display: block;
  width: 100%;
  /* 210px forced the slot to 1.64 while the uploads are 16:9, so every thumbnail was
     cover-cropped by 8% for nothing. Letting the ratio set the height means a
     1024x576 image fits exactly, with no crop at all. */
  aspect-ratio: 16 / 9;
  height: auto;
  object-fit: cover;
  /* Where a crop is unavoidable -- the square 1024x1024 uploads lose a lot somewhere
     -- take it off the bottom. These images carry their headline across the top. */
  object-position: center top;
  border-radius: 0;
}

body.blog .post-content > *:not(.ast-blog-featured-section),
body.archive .post-content > *:not(.ast-blog-featured-section) {
  padding-left: 24px;
  padding-right: 24px;
}

/* the category becomes the site's gold eyebrow */
.ast-taxonomy-container.cat-links {
  display: block;
  margin-bottom: 8px;
  font: 700 12px/1 var(--mb-font);
  letter-spacing: .08em;
  text-transform: uppercase;
}
.ast-taxonomy-container.cat-links a { color: var(--mb-gold-ink); text-decoration: none; }
.ast-taxonomy-container.cat-links a:hover { color: var(--mb-navy); }

body.blog .entry-title,
body.archive .entry-title { margin: 0 0 8px; font-size: clamp(19px, 1.5vw, 22px); line-height: 1.25; }
body.blog .entry-title a,
body.archive .entry-title a { color: var(--mb-ink); text-decoration: none; }
body.blog .entry-title a:hover,
body.archive .entry-title a:hover { color: var(--mb-navy); }

.ast-blog-meta-container,
.entry-meta, .posted-on, .post-author {
  font-size: 12.5px;
  color: var(--mb-muted);
  font-weight: 500;
}
.entry-meta a, .ast-blog-meta-container a { color: var(--mb-muted); text-decoration: none; }

.ast-excerpt-container { color: var(--mb-body); font-size: 14.5px; line-height: 1.6; }
.ast-excerpt-container p { margin-bottom: 0; }

/* "Read more" picks up the gold arrow link from the main site's cards */
.ast-blog-read-more a, .read-more a, .more-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 12px;
  font: 600 12.5px/1 var(--mb-font);
  color: var(--mb-gold-ink);
  text-decoration: none;
}
.ast-blog-read-more a:hover, .more-link:hover { color: var(--mb-navy); }

/* ------------------------------------------------------------- the article */
.single .site-content .ast-container { padding-top: 10px; }

.single .entry-content p { font-size: 18.5px; line-height: 1.7; color: var(--mb-read); }
.single .entry-content h2 { margin: 2em 0 .5em; }
.single .entry-content h3 { margin: 1.6em 0 .4em; }
.single .entry-content ul, .single .entry-content ol { color: var(--mb-read); font-size: 17px; line-height: 1.7; }
.single .entry-content li { margin-bottom: 6px; }
.single .entry-content a { color: var(--mb-navy); font-weight: 600; }

.single .entry-content img,
.wp-block-image img,
.post-thumb img { border-radius: 16px; }

/* pull quotes and callouts in the brand's cream-and-gold, as on the FAQ cards */
.single .entry-content blockquote,
.wp-block-quote {
  margin: 28px 0;
  padding: 18px 22px;
  border: 1px solid var(--mb-gold);
  border-left-width: 3px;
  border-radius: 14px;
  background: var(--mb-cream);
  color: var(--mb-ink);
  font-size: 17px;
  font-style: normal;
}
.single .entry-content blockquote p:last-child { margin-bottom: 0; }

/* tables get the office-card row treatment */
.entry-content table { width: 100%; border-collapse: collapse; font-size: 15px; }
.entry-content th, .entry-content td { padding: 11px 12px; border-bottom: 1px solid var(--mb-line); text-align: left; }
.entry-content th { font-family: var(--mb-display); font-weight: 700; color: var(--mb-ink); background: var(--mb-soft); }

/* ---------------------------------------------------------------- controls */
/* `.wp-element-button` is the block-editor class Astra paints from the palette
   above; naming it here is what turns the search, comment and block buttons
   gold rather than navy.

   Everything is scoped under #content on purpose. The site's own mega-menu
   triggers are <button> elements, and when this file is paired with the brand
   bridge an unscoped `button` rule turns Services, Products and Company into
   gold pills. Astra puts all post, sidebar and comment markup inside #content
   and the site's header and footer sit outside it, so the scope separates them
   in both modes. */
#content .ast-button, #content .button, #content button,
#content input[type="submit"], #content input.submit,
#content .wp-block-button__link, #content .wp-element-button, #content .wp-block-search__button,
#content .elementor-button, #content .search-submit {
  font-family: var(--mb-font) !important;
  font-weight: 700;
  font-size: 15px;
  border-radius: 12px !important;
  padding: 13px 20px;
  border: 0;
  background: var(--mb-gold) !important;   /* solid: no gold gradients on this brand */
  color: var(--mb-navy-700) !important;
  box-shadow: 0 10px 24px -12px rgba(168, 130, 63, .7);
  transition: background .25s, transform .25s var(--mb-ease), box-shadow .25s;
}
#content .ast-button:hover, #content .button:hover, #content button:hover,
#content input[type="submit"]:hover, #content input.submit:hover,
#content .wp-block-button__link:hover, #content .wp-element-button:hover, #content .wp-block-search__button:hover,
#content .elementor-button:hover, #content .search-submit:hover {
  background: #b8924c !important;
  color: var(--mb-navy-700) !important;
  transform: translateY(-2px);
}
/* the menu toggle is a <button> too, but it must stay transparent */
.ms-header .ms-menu-toggle {
  background: none !important;
  box-shadow: none !important;
  padding: 6px !important;
}

input[type="text"], input[type="email"], input[type="url"], input[type="tel"], textarea, select {
  font-family: var(--mb-font);
  font-size: 15px;
  padding: 12px 14px;
  border: 1px solid var(--mb-line);
  border-radius: 12px;
  background: #fff;
  color: var(--mb-ink);
  transition: border-color .2s, box-shadow .2s;
}
input:focus, textarea:focus, select:focus {
  outline: 0;
  border-color: var(--mb-navy);
  box-shadow: 0 0 0 3px rgba(27, 58, 140, .12);
}

/* --------------------------------------------------------------- pagination */
.ast-pagination { margin-top: 36px; }
.ast-pagination .page-numbers {
  display: inline-grid;
  place-items: center;
  min-width: 42px;
  height: 42px;
  padding: 0 12px;
  margin: 0 4px;
  border: 1px solid var(--mb-line);
  border-radius: 12px;
  background: #fff;
  font-weight: 700;
  font-size: 14.5px;
  color: var(--mb-ink);
  text-decoration: none;
  transition: border-color .25s, background .25s, color .25s;
}
.ast-pagination .page-numbers:hover { border-color: var(--mb-gold); color: var(--mb-gold-ink); }
.ast-pagination .page-numbers.current { background: var(--mb-navy); border-color: var(--mb-navy); color: #fff; }

/* ------------------------------------------------------------ related posts */
.ast-single-related-posts-container {
  margin-top: 46px;
  padding-top: 34px;
  border-top: 1px solid var(--mb-line);
  background: transparent;
}
.ast-single-related-posts-title {
  font-family: var(--mb-display);
  font-weight: 700;
  color: var(--mb-ink);
  letter-spacing: -.03em;
}
.ast-related-post-content {
  padding: 20px;
  background: #fff;
  border: 1px solid var(--mb-line);
  border-radius: 20px;
  box-shadow: var(--mb-card);
  transition: transform .3s var(--mb-ease), box-shadow .3s, border-color .3s;
}
.ast-related-post-content:hover { transform: translateY(-3px); box-shadow: var(--mb-card-up); border-color: #e0d3b4; }
.ast-related-post-title a { color: var(--mb-ink); text-decoration: none; font-family: var(--mb-display); }

/* ---------------------------------------------------------------- comments */
.comments-area { margin-top: 46px; padding-top: 32px; border-top: 1px solid var(--mb-line); }
.comments-title, .comment-reply-title { font-family: var(--mb-display); color: var(--mb-ink); letter-spacing: -.03em; }
.ast-comment-list .comment-body {
  padding: 18px;
  background: var(--mb-soft);
  border: 1px solid transparent;
  border-radius: 16px;
}

/* ------------------------------------------------- the archive title band */
/* Astra's banner is flat #eee. The main site opens every inner page on the
   velvet navy, so the blog index does the same. */
.ast-archive-entry-banner {
  background: var(--mb-navy-700) !important;
  background-image: radial-gradient(1200px 400px at 50% -40%, #1b3a8c 0%, transparent 70%) !important;
  padding: 44px 20px !important;
}
.ast-archive-entry-banner .ast-archive-title,
.ast-archive-entry-banner h1,
.ast-archive-entry-banner .page-title {
  color: #fff !important;
  font-family: var(--mb-display);
  letter-spacing: -.03em;
}
.ast-archive-entry-banner p, .ast-archive-entry-banner .ast-archive-description { color: #c9d1ea !important; }

/* ------------------------------------------------------- header and footer */
/* There are two headers: Astra's #masthead wrapper, and a hand-built .ms-header
   inside an Elementor HTML widget that holds the real nav. The black bar is an
   Elementor container between them, so all three need naming. The nav links are
   #fbb401, a bright amber that is not the brand gold. */
/* `.ehf-header header` would also match the site's own <header class="site-header">
   when the brand bridge injects it, so only Astra's wrapper is named here. */
header#masthead,
.elementor-location-header { background: #fff; }

header#masthead .elementor-element.e-con,
header#masthead .elementor-element > .e-con-inner,
.ms-header, .ms-header-container {
  background: #fff !important;
  background-image: none !important;
}

header#masthead { border-bottom: 1px solid var(--mb-line-2); box-shadow: 0 6px 24px -18px rgba(13, 26, 58, .35); }

/* The custom header ships its own <style> inside the Elementor HTML widget, in
   the BODY — so it lands after everything in the head and its
   `.ms-main-nav ul li a { color:#fbb401 !important }` (0,1,3) wins on document
   order. These selectors are deliberately one step more specific. */
.ms-header .ms-main-nav ul li a,
header#masthead .elementor-nav-menu a,
.elementor-location-header .elementor-nav-menu a {
  font-family: var(--mb-font) !important;
  font-weight: 600 !important;
  font-size: 15px !important;
  color: var(--mb-ink) !important;
  text-decoration: none;
  transition: color .2s;
}
.ms-header .ms-main-nav ul li a:hover,
.ms-header .ms-main-nav ul li.current-menu-item > a,
header#masthead .elementor-nav-menu a:hover { color: var(--mb-gold-ink) !important; }

/* the hamburger bars and the phone pill are the same amber */
.ms-header .ms-menu-toggle span { background: var(--mb-ink) !important; }
.ms-header .ms-topcall a:hover { background: var(--mb-gold) !important; border-color: var(--mb-gold) !important; color: var(--mb-navy-700) !important; }

/* the header's call to action, in the site's solid gold */
.ms-header a[href*="portfolio"],
.ms-header .ms-cta,
header#masthead .elementor-button {
  background: var(--mb-gold) !important;
  color: var(--mb-navy-700) !important;
  border: 0 !important;
  border-radius: 12px !important;
  font-weight: 700;
  box-shadow: 0 10px 24px -12px rgba(168, 130, 63, .7);
}

/* Same trap as the header: `.ehf-footer footer` catches the site's own
   <footer class="site-footer">, which paints its velvet in layers and must not
   have a flat colour forced onto the wrapper. */
footer#colophon,
.elementor-location-footer { background: var(--mb-navy-700); color: #c9d1ea; }
footer#colophon a, .elementor-location-footer a { color: #e8edf8; }
footer#colophon a:hover, .elementor-location-footer a:hover { color: var(--mb-gold); }
footer#colophon h1, footer#colophon h2, footer#colophon h3, footer#colophon h4,
.elementor-location-footer .elementor-heading-title { color: #fff; }

/* back-to-top button, to match the site's round controls */
.ast-scroll-top-icon {
  border-radius: 50%;
  background: var(--mb-navy);
  color: #fff;
  box-shadow: 0 14px 30px -14px rgba(7, 15, 44, .6);
}
.ast-scroll-top-icon:hover { background: var(--mb-navy-700); }

/* ---------------------------------------------------------------- narrow */
@media (max-width: 921px) {
  body { font-size: 16px; }
  .single .entry-content p { font-size: 17px; }
  .ast-blog-featured-section.post-thumb img { height: 180px; }
  .ast-container { padding-left: 16px; padding-right: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  body.blog .ast-article-inner,
  .ast-related-post-content,
  .ast-button, .button, button { transition: none; }
  body.blog .ast-article-inner:hover,
  .ast-related-post-content:hover { transform: none; }
}

/* ---------- related services, appended to a post body by msbb_related_services() ----------
   Added 5 Nov 2026 with plugin 1.27.0. The audit found the 27 posts carried 61 in-content
   links to the main site and 39 of those went to the homepage, so the service pages the posts
   are actually about were getting nothing. Styled as a quiet aside rather than a banner: it is
   a helpful next step at the end of an article, not an ad interrupting one. */
.msbb-svc {
  max-width: 760px;
  margin: 3em 0 1em;
  padding: 26px 26px 20px;
  background: var(--mb-cream);
  border: 1px solid var(--mb-line);
  border-left: 3px solid var(--mb-gold);
  border-radius: 18px;
}
.msbb-svc h2 {
  margin: 0 0 16px;
  font-family: var(--mb-display);
  font-size: 21px;
  line-height: 1.25;
  color: var(--mb-ink);
}
.msbb-svc ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.msbb-svc li { margin: 0; }
.msbb-svc li a {
  display: block;
  padding: 14px 16px;
  background: #fff;
  border: 1px solid var(--mb-line);
  border-radius: 12px;
  text-decoration: none;
  box-shadow: var(--mb-card);
  transition: transform .25s var(--mb-ease), box-shadow .25s, border-color .25s;
}
.msbb-svc li a:hover { transform: translateY(-2px); box-shadow: var(--mb-card-up); border-color: #e0d3b4; }
.msbb-svc li b { display: block; font-size: 16px; color: var(--mb-navy-700); }
.msbb-svc li span { display: block; margin-top: 3px; font-size: 14.5px; line-height: 1.5; color: var(--mb-muted); }
.msbb-svc-foot { margin: 14px 0 0; font-size: 14.5px; color: var(--mb-muted); }
.msbb-svc-foot a { color: var(--mb-gold-ink); }
@media (max-width: 600px) { .msbb-svc { padding: 20px 18px 16px; border-radius: 14px; } }

/* Astra injects an inline rule, .ast-single-post .entry-content a { text-decoration: underline },
   at specificity (0,2,1). The rule above is .msbb-svc li a at (0,1,2), so Astra won and the cards
   rendered as underlined links. Scoped one class higher here rather than reaching for !important,
   and kept separate from the card styling so that if the theme ever stops wrapping content in
   .entry-content only the underline returns, not the whole card treatment. The foot sentence is a
   real inline link and keeps its underline on purpose. */
.entry-content .msbb-svc li a { text-decoration: none; }
