/* =====================================================================
   modern.css — "clean industrial" refresh for bhasingroupindia.com
   ---------------------------------------------------------------------
   HOW THIS FILE WORKS
   The site still uses its original 2015 WordPress theme CSS
   (style.css, layout.css, style-colors.css, responsive.css ...).
   This file is linked LAST in every page's <head>, so any rule here
   wins over the theme's rule for the same element. Nothing in the
   theme files was edited:
     - to tweak the new look  -> edit this file only
     - to undo the new look   -> remove the <link> to modern.css
   Sections:
     1. Design tokens (colours, fonts)      6. Product grids & cards
     2. Base typography                     7. Buttons
     3. Page background & frame             8. Tables (lab chemicals)
     4. Header, menu, mobile top bar        9. Footer
     5. Page title band (Subheader)        10. Mobile adjustments
   ===================================================================== */


/* ---------------------------------------------------------------------
   1. DESIGN TOKENS
   CSS variables used everywhere below. Change a value here and it
   updates the whole site (e.g. --brand is the Bhasin red).
   --------------------------------------------------------------------- */
:root {
  --brand: #f94c3f;          /* Bhasin red: buttons, links, accents only   */
  --brand-dark: #d63a2f;     /* hover state of red elements                */
  --ink: #1f2933;            /* main text colour (dark charcoal)           */
  --ink-strong: #111827;     /* headings                                   */
  --muted: #5b6573;          /* secondary text (captions, breadcrumbs)     */
  --line: #e3e6ea;           /* thin borders and dividers                  */
  --surface: #ffffff;        /* cards and page body                        */
  --surface-alt: #f5f6f8;    /* alternate section / page background        */
  --charcoal: #1f2933;       /* dark bars: social bar, footer              */
  --radius: 6px;             /* corner rounding for cards and buttons      */
  --shadow: 0 1px 2px rgba(17, 24, 39, .06), 0 4px 12px rgba(17, 24, 39, .06);
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  --font-head: "Barlow Semi Condensed", "Inter", Arial, sans-serif;
}


/* ---------------------------------------------------------------------
   2. BASE TYPOGRAPHY
   The theme used thin, pale-grey Raleway at 14px, which was hard to
   read. Body text is now 16px Inter in dark charcoal; headings use a
   condensed industrial face (Barlow Semi Condensed).
   --------------------------------------------------------------------- */
body, button, input, textarea, select {
  font-family: var(--font-body);
}
body {
  color: var(--ink);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
p, li, td, th { color: var(--ink); }

h1, h2, h3, h4, h5, h6,
h1 a, h2 a, h3 a, h4 a, h5 a, h6 a {
  font-family: var(--font-head);
  font-weight: 600;
  color: var(--ink-strong);
  letter-spacing: .2px;
}
h1 { font-size: 40px; line-height: 1.15; }
h2 { font-size: 34px; line-height: 1.2; }
h3 { font-size: 28px; line-height: 1.25; }
h4 { font-size: 22px; line-height: 1.3; }
h5 { font-size: 19px; line-height: 1.35; }
h6 { font-size: 17px; line-height: 1.4; }

a { color: var(--brand); }
a:hover { color: var(--brand-dark); }
::selection { background: var(--brand); color: #fff; }


/* ---------------------------------------------------------------------
   3. PAGE BACKGROUND & FRAME
   Replace the triangle-pattern background with a flat light grey, and
   give the centred white page box ("boxed layout") a softer shadow.
   --------------------------------------------------------------------- */
html {
  background: var(--surface-alt) !important;   /* theme sets a pattern image here */
}
#Wrapper {
  background: var(--surface);
  box-shadow: 0 0 0 1px var(--line), 0 8px 30px rgba(17, 24, 39, .05);
}


/* ---------------------------------------------------------------------
   4. HEADER, MENU, MOBILE TOP BAR
   --------------------------------------------------------------------- */
/* Phone / email block at the top right */
#Header .contact_details .label {
  font-family: var(--font-body);
  font-size: 14px !important;           /* theme sets this inline */
  color: var(--muted) !important;
  line-height: 1.7;
}

/* Red navigation bar: flatter, bolder labels, darker red on hover */
#Header #menu { background-color: var(--brand); }
#Header .menu > li > a,
#menu > ul > li > a {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: .8px;
}
#Header .menu > li > a:hover,
#Header .menu > li.hover > a {
  background: var(--brand-dark);
}
/* Drop-down menus: white card with a shadow */
#Header .menu > li ul {
  border-radius: 0 0 var(--radius) var(--radius);
  box-shadow: var(--shadow);
}
#Header .menu > li ul li a {
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--ink);
}
#Header .menu > li ul li a:hover { color: var(--brand); }

/* Social icons bar (LinkedIn / Skype): charcoal instead of brown */
.social { background-color: var(--charcoal); }
.social li a { color: #c9ced6 !important; }
.social li a:hover { color: #fff !important; }

/* Mobile-only top bar with phone + email */
#top_bar { background: var(--surface-alt); border-bottom: 1px solid var(--line); }
#top_bar p, #top_bar a { color: var(--ink); font-size: 14px; }


/* ---------------------------------------------------------------------
   5. PAGE TITLE BAND (the strip under the menu with the page name)
   Was a faded image with a thin, very light title; now a plain light
   band with a bold dark title and a short red underline.
   --------------------------------------------------------------------- */
#Subheader {
  background: var(--surface-alt) !important;
  background-image: none !important;
  border-bottom: 1px solid var(--line);
}
#Subheader .title {
  font-family: var(--font-head);
  font-weight: 700 !important;
  font-size: 40px;
  color: var(--ink-strong);
  margin: 36px 0 8px;
}
#Subheader .title:after {           /* short red accent line under the title */
  content: "";
  display: block;
  width: 48px;
  height: 3px;
  margin: 12px auto 0;
  background: var(--brand);
  border-radius: 2px;
}
#Subheader ul.breadcrumbs li,
#Subheader ul.breadcrumbs li a { color: var(--muted); font-size: 13px; }


/* ---------------------------------------------------------------------
   6. PRODUCT GRIDS & CARDS
   Product pages show photos in columns (one-fourth / one-third ...).
   Each product becomes a white card with a thin border; photos sit in
   a fixed 4:3 frame so rows line up even when photo sizes differ.
   --------------------------------------------------------------------- */
.single-portfolio .column_column:has(.portfolio_photo) {
  box-sizing: border-box;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 12px 12px 4px;
  transition: box-shadow .2s ease, transform .2s ease, border-color .2s ease;
}
.single-portfolio .column_column:has(.portfolio_photo):hover {
  border-color: transparent;
  box-shadow: var(--shadow);
  transform: translateY(-2px);       /* small "lift" on hover */
}
.single-portfolio .portfolio_photo img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: contain;               /* show the whole product, no cropping */
  background: #fff;
}
/* Product name under each photo (theme sets size inline on <strong>) */
.single-portfolio .column_column:has(.portfolio_photo) h6,
.single-portfolio .column_column:has(.portfolio_photo) h6 strong {
  font-family: var(--font-body);
  font-size: 15px !important;
  font-weight: 600 !important;
  color: var(--ink-strong);
  line-height: 1.4;
}
/* Reserve two lines for every product name so all cards in a row are the
   same height (otherwise the theme's floating columns snag on a taller
   card and the next row starts in the wrong place). */
.single-portfolio .column_column:has(.portfolio_photo) h6 { min-height: 2.8em; margin-bottom: 8px; }
/* Category heading above a grid (e.g. "Fuel Filter") */
.single-portfolio h3,
.single-portfolio h4 {
  text-align: left !important;        /* some pages centre these via align="center" */
  border-left: 4px solid var(--brand);
  padding-left: 14px !important;
  margin-left: 10px;
}

/* Row-style product lists (cleaning items, brake parts ...):
   image on the left, text + button on the right */
.items_group .scale-with-grid {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}
.brdr { border-color: var(--line) !important; }


/* ---------------------------------------------------------------------
   7. BUTTONS
   "Request a quote" and "Enquiry Now" share one solid red style.
   --------------------------------------------------------------------- */
a.button, input[type="submit"], input[type="button"], input[type="reset"] {
  background-color: var(--brand) !important;
  color: #fff !important;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: .3px;
  border-radius: var(--radius);
  padding: 10px 20px;
  box-shadow: none;
}
a.button:hover, input[type="submit"]:hover {
  background-color: var(--brand-dark) !important;
}
a.button:after { display: none; }   /* theme's sliding-colour effect */

/* Email / call buttons on Home, Contact and Career pages.
   They were added with an inline blue style (background:#0089F7), so we
   match on that and switch them to the brand red. */
a[style*="#0089F7"] {
  background: var(--brand) !important;
  border-radius: var(--radius) !important;
  font-weight: 600;
  font-size: 15px;
}
a[style*="#0089F7"]:hover { background: var(--brand-dark) !important; color: #fff !important; }


/* ---------------------------------------------------------------------
   7b. TESTIMONIALS (homepage quote box)
   The theme shows quotes in a serif font; use the body font instead.
   --------------------------------------------------------------------- */
.testimonials_wrapper blockquote,
.testimonials_wrapper blockquote p,
blockquote {
  font-family: var(--font-body) !important;
  font-style: normal;
  font-size: 15px;
  line-height: 1.6;
  color: var(--ink);
}
.testimonials_wrapper { border-radius: var(--radius); }


/* ---------------------------------------------------------------------
   8. TABLES (laboratory chemicals list)
   --------------------------------------------------------------------- */
table {
  border-collapse: collapse;
  width: 100%;
  font-size: 15px;
}
table th, table td {
  border: 1px solid var(--line) !important;
  padding: 10px 14px !important;
  text-align: left;
}
table tr:first-child td, table th {          /* header row */
  background: var(--charcoal);
  color: #fff;
  font-weight: 600;
}
table tr:nth-child(even) td { background: var(--surface-alt); }


/* ---------------------------------------------------------------------
   9. FOOTER
   Solid charcoal footer with readable light text (was light grey text
   on a patterned background).
   --------------------------------------------------------------------- */
#Footer {
  background: var(--charcoal);
  font-size: 15px;
}
#Footer .widgets_wrapper { color: #c9ced6; }
#Footer .widgets_wrapper p,
#Footer .widgets_wrapper li,
#Footer .widgets_wrapper strong,
#Footer .widget_text b { color: #c9ced6; }
#Footer .widgets_wrapper aside > h4 {
  color: #fff;
  font-family: var(--font-head);
  font-weight: 600;
  letter-spacing: 1px;
}
#Footer .widgets_wrapper a { color: #ff8a80; }           /* lighter red: readable on dark */
#Footer .widgets_wrapper a:hover { color: #fff; }
#Footer .company_box p.copy,
#Footer .company_box p.copy strong { color: #9aa3af; }
#Footer .widgets_wrapper i { color: #9aa3af; }
/* Bottom link row (Home / Who We Are / Career / Contact) */
#Footer .footer_menu .container {
  background: none;
  border-top: 1px solid rgba(255, 255, 255, .12);
}
#Footer .footer_menu ul li { border-right-color: rgba(255, 255, 255, .15); }
#Footer .footer_menu ul li a { color: #c9ced6; }
#Footer .footer_menu ul li.current-menu-item a,
#Footer .footer_menu ul li a:hover { background: rgba(255, 255, 255, .08); color: #fff; }
#Footer iframe { border-radius: var(--radius); max-width: 100%; }


/* ---------------------------------------------------------------------
   10. MOBILE ADJUSTMENTS (phones, < 768px wide)
   --------------------------------------------------------------------- */
@media only screen and (max-width: 767px) {
  /* Theme fixes the page at 300px (420px on large phones) with grey
     margins around it. Use the full phone width with a 16px gutter. */
  body { padding-top: 0; }
  #Wrapper { width: 100% !important; box-shadow: none; }
  .section_wrapper,
  .container,
  .four.columns { width: calc(100% - 32px) !important; }
  /* Full-bleed bars inside the header: pull out by the 16px gutter */
  #Header .social, #Header #menu { margin-left: -16px; margin-right: -16px; }

  /* Header order on phones: logo + menu button first, then the three
     category shortcuts in one row, then LinkedIn/Skype bar, then menu.
     (Uses flexbox "order" so the HTML stays untouched.) */
  #Header .column.one { display: flex; flex-wrap: wrap; position: relative; }
  #Header .logo   { order: 1; width: 100%; text-align: left; }
  #Header .logo #logo { padding: 18px 0 !important; display: inline-block; }
  #Header .logo img { max-height: 44px; width: auto; }
  #Header .addons { order: 2; display: flex; padding: 0 0 12px; }
  #Header .addons .language {
    flex: 1; text-align: center; padding: 6px 0;
    border-top: 1px solid var(--line);
  }
  #Header .addons .language img { max-height: 34px; width: auto; }
  #Header .social { order: 3; width: auto; flex-basis: calc(100% + 32px); }
  #Header #menu   { order: 4; flex-basis: calc(100% + 32px); }
  /* Hamburger button sits at the right of the logo row */
  #Header a.responsive-menu-toggle { top: 22px !important; right: 0; }

  body { font-size: 15px; }
  h1, #Subheader .title { font-size: 30px; }
  h2 { font-size: 26px; }
  h3 { font-size: 23px; }
  /* Product grids: two cards per row on phones (theme shows one huge
     photo per row). Flexbox lays the cards out; headings span the row. */
  .single-portfolio .section_wrapper {
    display: flex; flex-wrap: wrap; gap: 12px; align-items: stretch;
  }
  .single-portfolio .section_wrapper:before,
  .single-portfolio .section_wrapper:after,
  .single-portfolio .section_wrapper > br { display: none; }  /* theme clearfix + stray line breaks */
  .single-portfolio .section_wrapper > h3,
  .single-portfolio .section_wrapper > h4,
  .single-portfolio .section_wrapper > :not(.column_column:has(.portfolio_photo)) {
    flex-basis: 100%; width: 100% !important; margin: 0 !important;
  }
  .single-portfolio .column_column:has(.portfolio_photo) {
    width: calc(50% - 6px) !important;
    margin: 0 !important;
    padding: 8px 8px 2px;
  }
  .single-portfolio .column_column:has(.portfolio_photo) h6,
  .single-portfolio .column_column:has(.portfolio_photo) h6 strong { font-size: 13px !important; }
  /* Tables scroll sideways instead of squashing */
  table { display: block; overflow-x: auto; }
}


/* ---------------------------------------------------------------------
   11. FIXES FROM THE PAGE-BY-PAGE REVIEW
   --------------------------------------------------------------------- */
/* Space below each product grid so the last row doesn't touch the next
   heading or the footer. */
.single-portfolio .section_wrapper { padding-bottom: 24px; }

/* Breadcrumbs: hide the "/" after the last item ("Home / Filter /") */
#Subheader ul.breadcrumbs li:last-child span { display: none; }

/* Footer: gap between the email lines and the copyright line */
.company_box p.copy { margin-top: 16px; }

/* Intro sentences written as <h5> right under a section title
   (About Us, Vision): read as text, not as a heading */
#Content h3.title ~ h5 {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 17px;
  line-height: 1.6;
  letter-spacing: 0;
}

@media only screen and (max-width: 767px) {
  /* Homepage banner: images are 1920x390 with text baked in. The theme
     keeps them 390px tall on phones and crops the sides (cutting the
     text); size the slider to the image's proportions instead. */
  #mfn-slider .swiper-container,
  #mfn-slider .swiper-slide { height: 20.3vw !important; line-height: normal; }
  #mfn-slider .swiper-background { height: 100% !important; background-size: cover !important; background-position: center !important; }

  /* Product grids: spacing above category headings */
  .single-portfolio .section_wrapper > h3,
  .single-portfolio .section_wrapper > h4 { margin-top: 12px; }

  /* Footer link row: keep Home / Who We Are / Career / Contact tidy */
  #Footer .footer_menu ul li { border-right: 0; padding: 0; }
  #Footer .footer_menu ul li a { padding: 4px 10px; font-size: 13px; }
}
