/* ==========================================================================
   Jai Santhosh Offset Press — static site stylesheet
   Values taken from the computed styles of the live site (jaisanthosh.com,
   WordPress "Lounge" theme + Simple Custom CSS). Class names follow the
   original theme so the layout behaves the same.

   NOTE on fonts: like the live site, only Open Sans 300 + 400 are loaded.
   Headings use font-weight 700 and the menu 600, which the browser renders
   by emboldening the 400 face — exactly how the live site looks.
   ========================================================================== */

/* ---------- 1. Base (theme defaults) ---------- */
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: 'Open Sans', sans-serif;
  font-size: 13px;
  color: #7c7c7c;
  background-color: #fff;
  overflow-y: scroll;
  overflow-x: hidden;
}
/* rainbow strip above the footer — home page only */
body.home { background: #fff url('../images/ui/body_bg.jpg') 50% 100% repeat-x; }

img { border: 0; vertical-align: middle; max-width: 100%; height: auto; }
a { color: #7c7c7c; text-decoration: none; line-height: 21px; transition: all .3s ease 0s; }
p { margin: 5px 0; line-height: 21px; }
h1, h2 { color: #2b2b2b; font-family: 'Open Sans', sans-serif; }
h3 { color: #2b2b2b; font-family: Georgia, sans-serif; font-size: 18px; font-weight: 400; margin: 20px 0 13px; }
hr { margin: 0 0 6.5px; }     /* UA style: 1px inset grey border */
ul { margin: 0; padding: 0; list-style: none; }

.clearfix::before,
.clearfix::after { content: ' '; display: table; }   /* ::before also stops child margins collapsing (as in the theme) */
.clearfix::after { clear: both; }
.container { width: 1100px; margin: 0 auto; position: relative; }
.container_inner { width: 100%; }

.screen-reader-text,
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
}
.skip-link { position: absolute; left: 8px; top: -60px; z-index: 10001; background: #398ead; color: #fff; padding: 8px 14px; }
.skip-link:focus { top: 8px; color: #fff; }
:focus-visible { outline: 2px solid #398ead; outline-offset: 2px; }

/* ---------- 2. Header ---------- */
header {
  position: relative;
  z-index: 1000;
  margin: 0 0 -4px;
  text-align: center;
}

.generation_img { position: fixed; top: 0; right: 0; z-index: 9999; pointer-events: none; }
.generation_img img { display: block; width: 218px; }

/* top grey bar */
.header_top_outer { position: relative; z-index: 1001; min-height: 44px; }
.header_top_middle { background-color: #757575; padding: 5px 0; height: 34px; }
.header_top_inner {
  display: inline-block;
  width: 1100px;
  height: 30px;
  padding-right: 180px;
  font-size: 12px;
  text-align: center;
  position: relative;
  vertical-align: top;
}
.header_top_left { float: right; width: 106px; margin-left: 20px; line-height: 30px; }
.header_top_right { float: right; width: 202px; line-height: 30px; }
.social_icons { float: left; margin-top: 3px; }
.social_icons a { line-height: 21px; }
.social_icons img { width: 26px; height: 26px; vertical-align: baseline; }
.social_icons a:hover { opacity: .8; }

#searchform input[type="text"] {
  float: left;
  width: 180px;
  height: 26px;
  margin: 0 8px 0 0;
  padding: 4px 12px 4px 10px;
  border: 0;
  border-radius: 20px;
  background-color: #515153;
  color: #fff;
  font: 13px/26px 'Open Sans', sans-serif;
  outline: none;
}
#searchform input[type="submit"] {
  float: left;
  width: 24px;
  height: 30px;
  margin: 0 0 0 -40px;
  padding: 0;
  border: 0;
  background: transparent url('../images/ui/search-icon.jpg') center bottom no-repeat;
  color: transparent;
  font-size: 0;
  cursor: pointer;
}

/* dark bar: logo (absolute) + phone / email / menu on the right */
.header_inner { position: relative; z-index: 1000; background-color: #1f1f1f; height: 140px; text-align: left; }
.header_inner .container_inner { height: 140px; position: relative; }

.logo { position: absolute; top: 49px; left: 0; }
.logo a { display: block; position: relative; }
.logo img { display: block; width: 414px; height: 97px; }

.contact_phone {
  margin-top: 20px;
  padding-right: 50px;
  text-align: right;
  font-size: 14px;
  color: #d8d6d6;
}
.contact_phone a { color: #d8d6d6; line-height: normal; }
.contact_mail { margin-top: 10px; padding-right: 12px; text-align: right; line-height: 21px; }
.contact_mail a { font-size: 14px; color: #d8d6d6; }
.contact_mail a:hover, .contact_phone a:hover { color: #d8d6d6; text-decoration: underline; }

/* ---------- 3. Main menu (drop_down2) ---------- */
nav.main_nav { float: right; position: relative; z-index: 100; text-align: left; }
nav.main_nav > ul { margin: 30px 0 0; }
nav.main_nav > ul > li { float: left; position: relative; margin: 0 0 10px; height: 30px; }

nav.main_nav > ul > li > a,
nav.main_nav > ul > li > button {
  display: inline-block;
  position: relative;
  padding: 0 10px;
  border: 0;
  background: transparent;
  color: #fff;
  font-family: 'open sans', sans-serif;
  font-size: 14px;
  font-weight: 600;
  font-style: normal;
  line-height: 30px;
  cursor: pointer;
  transition: none;
}
nav.main_nav > ul > li > button { cursor: default; }   /* "Cartons" — dropdown trigger only */
nav.main_nav > ul > li:hover > a,
nav.main_nav > ul > li:hover > button,
nav.main_nav > ul > li > a.current,
nav.main_nav > ul > li > button.current { color: #fff; background-color: #398ead; }

/* dropdown panel — shown on hover (script.js adds the original slide-down) */
nav.main_nav .second {
  position: absolute;
  left: 0;
  top: 32px;
  margin: 0;
  height: auto;
  visibility: hidden;
  overflow: hidden;
}
nav.main_nav li:hover > .second,
nav.main_nav li:focus-within > .second,
nav.main_nav li.open > .second { visibility: visible; overflow: visible; }

nav.main_nav .second .inner2 { display: inline-block; background-color: rgba(43, 43, 43, .95); }
nav.main_nav .second ul { float: left; position: relative; width: 200px; margin: -2px 0 0; padding: 10px 0; }
nav.main_nav .second ul li { display: block; position: relative; margin: 0 0 5px; }
nav.main_nav .second ul li a {
  display: block;
  margin: 0;
  padding: 0 15px 0 10px;
  color: #fff;
  font-family: 'Open Sans', sans-serif;
  font-size: 12px;
  font-weight: 600;
  line-height: 30px;
  transition: all .3s ease 0s;
}
nav.main_nav .second ul li:hover a,
nav.main_nav .second ul li a:focus-visible,
nav.main_nav .second ul li a[aria-current="page"] { color: #398ead; }

nav.main_nav > ul > li > button.submenu-toggle, .nav-toggle { display: none; }   /* mobile-only controls */

.separator_holder { position: relative; display: block; width: 100%; height: 4px; background-image: url('../images/ui/shadow.png'); }

/* ---------- 4. Content wrapper ---------- */
.content { padding-top: 5px; }
.content_inner { min-height: 400px; }

/* page title + breadcrumbs */
.title { display: inline-block; width: 100%; padding: 0 0 38px; vertical-align: top; }
.title h1 {
  display: inline-block;
  margin: 34px 0 0;
  font-size: 35px;
  font-weight: 700;
  font-style: normal;
  color: #2b2b2b;
}
.breadcrumbs { float: right; margin: 42px 0 0; font-size: 14px; font-style: normal; font-family: 'Open Sans', sans-serif; }
.breadcrumbs a { margin: 0 10px 0 0; color: #398ead; }
.breadcrumbs a:hover { text-decoration: underline; }
.breadcrumbs span { color: #398ead; }
.breadcrumbs .delimiter { margin: 0 10px 0 0; }

.page_inner { max-width: 1100px; margin: 15px auto 0; clear: both; }

/* ---------- 5. Home slider (Revolution Slider replica) ---------- */
.main_slider { position: relative; }
.hero {
  --k: 1;                                   /* scale factor, set by script.js: min(1, width / 1349) */
  position: relative;
  height: calc(600px * var(--k));
  overflow: hidden;
  background: #fff url('../images/home-slider/slide_bg.jpg') 50% 0 / calc(1024px * var(--k)) auto no-repeat;
}
/* tablet / mobile: show the complete scene (1024 x 768) scaled, arrows in the white side space */
.hero.is-fit { height: calc(768px * var(--k)); }
.hero-slide { position: absolute; inset: 0; visibility: hidden; }
.hero-slide.is-active,
.hero-slide.is-leaving { visibility: visible; }
.hero-slide.is-leaving { z-index: 1; }
.hero-slide.is-active { z-index: 2; }

.hero-slide img {
  position: absolute;
  left: 50%;
  bottom: calc(var(--vo, 25px) * var(--k));
  width: calc(350px * var(--k));
  max-width: none;
  margin-left: calc((-175px + var(--ho, -5px)) * var(--k));
  opacity: 0;
  transform-origin: 50% 50%;
}
/* caption "customin": from offset + scale + transparent, 1000ms Power3.easeInOut */
.hero-slide.is-active img {
  animation: hero-customin 1000ms cubic-bezier(.645, .045, .355, 1) var(--start, 0ms) both;
}
/* caption "fadeout": 300ms when the slide changes */
.hero-slide.is-leaving img { opacity: 1; animation: hero-fadeout 300ms linear both; }

@keyframes hero-customin {
  from {
    opacity: 0;
    transform: perspective(600px) translate(calc(var(--x) * var(--k)), calc(var(--y) * var(--k))) scale(var(--s));
  }
  to { opacity: 1; transform: perspective(600px) translate(0, 0) scale(1); }
}
@keyframes hero-fadeout { from { opacity: 1; } to { opacity: 0; } }

/* navigation arrows: 54x54 white squares, 20px from the edges */
.tp-arrow {
  position: absolute;
  top: 50%;
  z-index: 100;
  width: 54px;
  height: 54px;
  margin-top: -27px;
  padding: 0;
  border: 0;
  background: #fff 50% 50% no-repeat;
  cursor: pointer;
}
.tp-leftarrow { left: 20px; background-image: url('../images/ui/flex_arrow_left.png'); }
.tp-rightarrow { right: 20px; background-image: url('../images/ui/flex_arrow_right.png'); }

/* ---------- 6. Home welcome block ---------- */
.welcome_info_part { background: url('../images/ui/welcome_bg.jpg') repeat-x; padding-bottom: 20px; }
.welcome_heading {
  margin: 0;
  background-color: #000;
  color: #fff;
  text-align: center;
  font-size: 26px;
  font-weight: 700;
  font-style: inherit;
}
.welcome_heading span { font-weight: 400; }
.welcome_sub {
  margin: 0;
  padding: 5px 0 20px;
  color: #008ecf;
  text-align: center;
  font-size: 16px;
  font-weight: 400;
  font-style: italic;
}
.welcome_content { padding: 0 10px; font-size: 14px; font-weight: 400; color: #626262; line-height: 2; text-align: justify; }
.welcome_content p { line-height: 2; }
.welcome_content strong { font-weight: 700; }

/* ---------- 7. Buttons (original .ai-bule-button / .ai-green-button) ---------- */
.ai-bule-button,
.ai-green-button {
  position: relative;
  margin: 5px auto;
  color: #fff;
  font-family: Frutiger, "Frutiger Linotype", Univers, Calibri, "Gill Sans", "Gill Sans MT", "Myriad Pro", Myriad, "DejaVu Sans Condensed", "Liberation Sans", "Nimbus Sans L", Tahoma, Geneva, "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
  text-transform: capitalize;
  word-wrap: break-word;
  word-break: break-word;
}
.ai-bule-button a,
.ai-green-button a {
  display: inline-block;
  padding: 7px 18px;
  border-radius: 3px;
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  line-height: 21px;
  text-decoration: none;
  background-clip: padding-box;
}
.ai-bule-button a {
  border: 1px solid #2268a5;
  box-shadow: inset 0 1px 0 0 #86b0d5;
  background-color: #448ccb;
  background-image: linear-gradient(#448ccb, #2570b2);
  text-shadow: 0 1px 0 #1a5e9a;
}
.ai-bule-button a:hover { animation: swing 1s ease both; }
.ai-green-button a {
  border: 1px solid #007225;
  box-shadow: inset 0 1px 0 0 #13f25c;
  background-color: #02b73d;
  background-image: linear-gradient(#02b73d, #00812a);
  text-shadow: 0 1px 0 #005d1e;
}
.ai-green-button a:hover { animation: flash 1s ease both; }
@keyframes swing { 20% { transform: rotate(15deg); } 40% { transform: rotate(-10deg); } 60% { transform: rotate(5deg); } 80% { transform: rotate(-5deg); } 100% { transform: rotate(0deg); } }
@keyframes flash { 0%, 50%, 100% { opacity: 1; } 25%, 75% { opacity: 0; } }

/* ---------- 8. Service-style sections (heading on a rule) ---------- */
.servcie_sub_pages { text-align: center; }
.servcie_sub_pages p { margin: 15px 0; font-size: 16px; color: #000; line-height: 21px; }

.service_title {
  display: inline-block;
  margin: .83em 0;
  padding: 0 12px;
  background-color: #fff;
  font-family: 'Open Sans', sans-serif;
  font-size: 32px;
  font-weight: 700;
  font-style: inherit;
}
h2.service_titles {
  display: inline-block;
  margin: .83em 0;
  padding: 0 12px;
  background-color: #fff;
  font-family: 'Open Sans', sans-serif;
  font-size: 25px;
  font-weight: 700;
}
.servcie_sub_pages hr { margin-top: -35px; }
h1.service_title + hr { margin-top: -45px; }

/* two-column text with divider (original .after_image) */
.after_image { text-align: left; }
.two_columns_50_50 { width: 100%; }
.two_columns_50_50 .column1 { float: left; width: 49%; border-right: 1px solid #000; }
.two_columns_50_50 .column2 { float: left; width: 49%; }
.two_columns_50_50 .column1 .column_inner { padding: 0 20px 0 0; }
.two_columns_50_50 .column2 .column_inner { padding: 0 0 0 20px; }
.after_image a { color: royalblue; text-decoration: underline; }
.after_image a:hover { color: midnightblue; }
.after_image ul li {
  margin-top: 15px;
  padding: 0 0 5px 30px;
  font-size: 16px;
  color: #000;
  vertical-align: top;
  background: url('../images/ui/listCheck.png') no-repeat;
}
.after_image sup { vertical-align: super !important; }

/* full-width parallax image (Consultation) */
.parallax { margin: 0 0 27px; }
.parallax section {
  height: 430px;
  padding: 1px 40px;
  background-color: transparent;
  background-repeat: no-repeat;
  background-attachment: fixed;
  background-position: center 0;
}

/* "Page Under Development" (Printing / Transparent Boxes / Poly Bags) */
.under_development {
  margin: 34px 0 0;
  color: #c5702a;
  font-family: Georgia, sans-serif;
  font-size: 36px;
  font-style: italic;
  font-weight: 400;
  line-height: normal;
  text-align: center;
}

/* ---------- 9. Product carousel (logo-showcase / slick replica) ---------- */
.product-carousel { position: relative; padding: 0 25px; text-align: center; clear: both; }
.carousel-viewport { position: relative; overflow: hidden; touch-action: pan-y; }
.carousel-track { display: flex; align-items: center; will-change: transform; transition: transform 500ms ease; }
.carousel-track.no-anim { transition: none; }
.carousel-slide {
  flex: 0 0 calc(100% / var(--per-view, 6) - 20px);
  margin: 0 10px;
  text-align: center;
}
.carousel-slide img {
  display: inline-block;
  max-width: 100%;
  max-height: 250px;
  vertical-align: baseline;
  user-select: none;
  -webkit-user-drag: none;
}
.carousel-dots { padding: 10px 15px; margin: 0; line-height: 0; text-align: center; }
.dot {
  display: inline-block;
  box-sizing: border-box;
  width: 12px;
  height: 12px;
  margin: 0 3px;
  padding: 0;
  border: 2px solid #444;
  border-radius: 50%;
  background-color: #fff;
  vertical-align: top;
  cursor: pointer;
}
.dot.is-active { background: #8d8c8c; }

/* ---------- 10. Contact page (two_columns_66_33 + Contact Form 7 look) ---------- */
.two_columns_66_33 { width: 100%; }
.two_columns_66_33 .column1 { float: left; width: 66.66%; }
.two_columns_66_33 .column1 .column_inner { padding: 0 20px 0 0; }
.two_columns_66_33 .column2 { float: left; width: 33.33%; }
.two_columns_66_33 .column2 .column_inner { padding: 0 0 0 20px; }

.enquiry-form .form-group { margin: 5px 0; line-height: 21px; }
.enquiry-form label { display: block; line-height: 21px; color: #7c7c7c; font-size: 13px; }
.enquiry-form input[type="text"],
.enquiry-form input[type="email"],
.enquiry-form input[type="tel"] {
  display: block;
  width: 92%;
  height: 20px;
  margin: 0;
  padding: 5px;
  border: 1px solid #d3cece;
  background-color: #fff;
  color: #7c7c7c;
  font: 14px/30px 'Open Sans', sans-serif;
  outline: none;
}
.enquiry-form textarea {
  display: inline-block;
  vertical-align: baseline;
  width: 92%;
  height: 60px;
  margin: 0;
  padding: 5px;
  border: 1px solid #d3cece;
  background-color: #fff;
  color: #7c7c7c;
  font: 14px 'Open Sans', sans-serif;
  resize: vertical;
  outline: none;
}
.enquiry-form input:focus, .enquiry-form textarea:focus { border-color: #398ead; }
.form-field.has-error input, .form-field.has-error textarea { border-color: #f00; }
.field-error { display: block; color: #f00; font-size: 1em; line-height: 21px; }
.field-error:empty { display: none; }
/* Simple maths captcha — "Solve: 4 + 7 = ?" */
.captcha-question { font-weight: 700; color: #398ead; white-space: nowrap; }
.enquiry-form #captcha { display: inline-block; width: 90px; text-align: center; vertical-align: middle; }
.captcha-refresh {
  margin: 0 0 0 12px;
  padding: 0;
  border: 0;
  background: none;
  color: #398ead;
  font: 13px 'Open Sans', sans-serif;
  text-decoration: underline;
  vertical-align: middle;
  cursor: pointer;
}
.captcha-refresh:hover, .captcha-refresh:focus { color: #2b6f88; }

.enquiry-form input[type="submit"] {
  float: none;
  width: 20%;
  min-width: 120px;
  height: 40px;
  padding: 0;
  border: none;
  background: #398ead url('../images/ui/button_pixel.png') 0 0 repeat-x;
  color: #fff;
  font: 14px/12px 'Open Sans', sans-serif;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
}
.enquiry-form input[type="submit"]:hover { background-image: none; }
.enquiry-form input[type="submit"][disabled] { opacity: .6; cursor: wait; }
.form-status { margin: 10px 0 0; line-height: 21px; font-size: 13px; }
.form-status:empty { display: none; }
.form-status.ok { color: #398f14; border: 2px solid #398f14; padding: 4px 10px; }
.form-status.err { color: #444; border: 2px solid #f7e700; padding: 4px 10px; }   /* CF7 validation style */
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.contact_info .column_content { margin: 10px; font-size: 14px; font-weight: 400; line-height: 2; color: #626262; clear: both; }
.contact_info .column_content strong,
.contact_info .column_content b { font-weight: 700; }
.contact_info .column_content p { margin: 5px 0; line-height: 21px; }
.contact_info .column_content a:hover { color: #626262; text-decoration: underline; }
.contact_info h3.phone_contact,
.contact_info h3.contact_email { margin: 0; padding-left: 25px; background-position: 0; background-repeat: no-repeat; }

/* ---------- 11. Search results (theme blog list "posts_holder2", values from the live site) ---------- */
.search_title { height: 42px; padding-bottom: 38px; }
.posts_holder2 article { display: inline-block; width: 100%; margin: 0 0 46px; vertical-align: top; }
.posts_holder2 article h2 {
  margin: 20px 0 5px;
  padding-left: 100px;
  font: 400 25px Georgia, sans-serif;
  color: #2b2b2b;
}
.posts_holder2 article h2 a { color: #2b2b2b; line-height: 21px; }
.posts_holder2 article h2 a:hover { color: #c20b58; }
.posts_holder2 .text { margin: 0 0 30px; }
.posts_holder2 .date {
  position: relative;
  float: left;
  width: 65px;
  height: 46px;
  margin-top: -30px;
  padding: 10px 5px;
  background-color: #c20b58;
  color: #fff;
  font-style: italic;
  text-align: center;
}
.posts_holder2 .date .number { font: italic 20px/28px Georgia, sans-serif; }
.posts_holder2 .date .month,
.posts_holder2 .date .year { font: italic 13px Georgia, sans-serif; }
.posts_holder2 .create {
  display: block;
  position: relative;
  margin: 0 0 20px;
  padding-left: 100px;
  font: italic 13px Georgia, sans-serif;
  color: #7c7c7c;
}
.posts_holder2 .text_holder { padding-left: 100px; }
.posts_holder2 .text_holder p { margin: 5px 0; font-size: 13px; line-height: 21px; color: #7c7c7c; }
.posts_holder2 .info {
  display: inline-block;
  width: 100%;
  padding: 13px 0;
  border-top: 1px solid #cccacf;
  border-bottom: 1px solid #cccacf;
}
.posts_holder2 .info .left { float: left; }
.posts_holder2 .info .right { float: right; }
.posts_holder2 .info a { font: italic 13px/21px Georgia, sans-serif; color: #7c7c7c; }
.posts_holder2 .info a:hover { color: #c20b58; }
.posts_holder2 .entry p { margin: 0; line-height: 21px; }

/* ---------- 12. Footer ---------- */
footer { display: block; margin: 0 auto; padding: 80px 0 0; background: none; }
.footer_holder { background-color: #161616; padding: 20px 0 0; }
.footer_bottom { padding: 10px 0; }
.footer_bottom .left { text-align: center; }
.footer_bottom ul { line-height: 21px; }
.footer_bottom ul li {
  display: inline;
  padding: 0 10px;
  font-size: 12px;
  font-weight: 300;
  line-height: normal;
  color: #9a9b9b;
  font-family: 'Open Sans', sans-serif;
}
.footer_bottom ul li a { font-size: 12px; font-weight: 300; color: #9a9b9b; }
.footer_bottom ul li a:hover { color: #fff; }

/* ---------- 13. Responsive (below the 1100px desktop layout) ---------- */
@media (max-width: 1180px) {
  .container { width: auto; margin: 0 16px; }
  .page_inner { margin-left: 16px; margin-right: 16px; }
  /* search box + social icons side by side, kept clear of the "3rd Generation" badge */
  .header_top_inner {
    display: flex; justify-content: flex-end; align-items: center; gap: 20px;
    width: auto; padding: 0 238px 0 16px;
  }
  .header_top_right { order: 1; float: none; width: auto; }
  .header_top_left { order: 2; float: none; width: auto; margin: 0; display: flex; gap: 2px; }
  .header_top_left .social_icons { float: none; margin: 0; line-height: 0; }
  .header_top_left .social_icons a { display: block; line-height: 0; }
  #searchform { display: flex; align-items: center; }
  #searchform input[type="text"] { float: none; }
  #searchform input[type="submit"] { float: none; }
  .contact_phone, .contact_mail { padding-right: 230px; }
  .logo img { width: 330px; height: auto; }
  .logo { top: 58px; }
  nav.main_nav > ul > li > a,
  nav.main_nav > ul > li > button { padding: 0 7px; font-size: 13px; }
}

@media (max-width: 1000px) {
  /* ---- Tablet header (as on the live site): badge + search + social icons in the grey bar;
          logo, then e-mail + phone on one line, then the menu icon on the right ---- */
  .generation_img { position: absolute; }
  .generation_img img { width: 218px; }
  .header_top_inner { padding-right: 232px; gap: 20px; }

  .header_inner { height: auto; }
  .header_inner .container { margin: 0 8px; }
  .header_inner .container_inner {
    display: flex; flex-wrap: wrap; justify-content: flex-end; align-items: center;
    height: auto; padding: 10px 0 8px;
  }
  .header_inner .container_inner::before { display: none; }
  .header_inner .container_inner::after { content: ''; display: block; flex-basis: 100%; height: 0; order: 3; }  /* line break before the menu icon */
  .logo { position: static; flex: 0 0 100%; order: 0; }
  .logo img { width: 400px; max-width: 100%; height: auto; }
  .contact_mail { order: 1; margin: 6px 0 0; padding-right: 12px; }
  .contact_phone { order: 2; margin: 6px 0 0; padding: 0 50px 0 30px; line-height: 21px; }

  /* menu icon: plain white "hamburger", turns into an X when open */
  .nav-toggle {
    display: flex; flex-direction: column; align-items: flex-end; justify-content: center; gap: 4px;
    position: relative; order: 4;
    width: 34px; height: 30px; padding: 0 2px 0 0; margin: 8px 0 0 auto;
    background: none; border: 0; cursor: pointer;
  }
  .nav-toggle:focus-visible { outline: 2px solid #398ead; outline-offset: 2px; }
  .nav-toggle span {
    display: block; width: 24px; height: 3px; border-radius: 1px; background: #fff;
    transition: transform .3s, opacity .3s, background-color .2s;
  }
  .nav-toggle:hover span, .nav-toggle[aria-expanded="true"] span { background: #398ead; }
  .nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  nav.main_nav {
    float: none;
    position: absolute;
    top: 100%;
    left: -8px; right: -8px;
    background: #1f1f1f;
    border-top: 1px solid #333;
    box-shadow: 0 8px 18px rgba(0, 0, 0, .35);
    max-height: 0;
    overflow: hidden;
    transition: max-height .35s ease;
  }
  nav.main_nav.open { max-height: 85vh; overflow-y: auto; }
  nav.main_nav > ul { margin: 0; padding-bottom: 10px; }
  nav.main_nav > ul > li { float: none; height: auto; margin: 0; display: flex; flex-wrap: wrap; border-bottom: 1px solid #2c2c2c; }
  nav.main_nav > ul > li > a,
  nav.main_nav > ul > li > button { flex: 1; padding: 6px 16px; font-size: 14px; line-height: 32px; text-align: left; }
  nav.main_nav > ul > li > button { cursor: pointer; display: flex; justify-content: space-between; align-items: center; }
  nav.main_nav > ul > li:hover > a:not(.current),
  nav.main_nav > ul > li:hover > button:not(.current) { background: transparent; }

  nav.main_nav > ul > li > button.submenu-toggle {
    display: flex; align-items: center; justify-content: center; flex: 0 0 52px;
    width: 52px; padding: 0; border: 0; border-left: 1px solid #2c2c2c;
    background: transparent; color: #fff; cursor: pointer;
  }
  .submenu-toggle::before,
  nav.main_nav > ul > li > button::after {
    content: ''; display: inline-block; width: 8px; height: 8px;
    border-right: 2px solid currentColor; border-bottom: 2px solid currentColor;
    transform: rotate(45deg); transition: transform .25s;
  }
  nav.main_nav > ul > li > button.submenu-toggle::after { display: none; }
  li.open > .submenu-toggle::before,
  li.open > button::after { transform: rotate(-135deg); }

  nav.main_nav .second { position: static; flex-basis: 100%; display: none; visibility: visible; overflow: visible; }
  nav.main_nav li:hover > .second,
  nav.main_nav li:focus-within > .second { display: none; }
  nav.main_nav li.open > .second { display: block; }
  nav.main_nav .second .inner2 { display: block; background: #181818; }
  nav.main_nav .second ul { float: none; width: auto; margin: 0; padding: 0 0 6px; }
  nav.main_nav .second ul li { margin: 0; }
  nav.main_nav .second ul li a { padding: 4px 32px; font-size: 13px; }

  .two_columns_50_50 .column1,
  .two_columns_50_50 .column2,
  .two_columns_66_33 .column1,
  .two_columns_66_33 .column2 { float: none; width: auto; border-right: 0; }
  .two_columns_50_50 .column_inner,
  .two_columns_66_33 .column_inner { padding: 0 !important; }

  /* Parallax on phones/tablets: mobile browsers ignore background-attachment: fixed (iOS never supports it),
     so the image is drawn on a viewport-fixed layer that is clipped to the section — it stays still
     while the page scrolls over it, exactly like the desktop effect. */
  .parallax section {
    position: relative;
    height: 300px;
    padding: 0;
    background-size: 0 0;                     /* the image is painted by ::before instead */
    -webkit-clip-path: inset(0);
    clip-path: inset(0);
  }
  .parallax section::before {
    content: '';
    position: fixed;
    top: 0; left: 0;
    width: 100%;
    height: 100vh;
    height: 100lvh;                            /* no jump when the phone's address bar hides */
    background-image: inherit;                 /* same image as set on the section */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    pointer-events: none;
  }
  .tp-arrow { width: 40px; height: 40px; margin-top: -20px; }
  .tp-leftarrow { left: 8px; }
  .tp-rightarrow { right: 8px; }
}

@media (max-width: 700px) {
  .generation_img img { width: 150px; }
  .header_top_inner { padding-right: 162px; }
}

@media (max-width: 600px) {
  .title h1 { font-size: 26px; margin-top: 22px; }
  .breadcrumbs { float: none; display: block; margin: 6px 0 0; }
  .title { padding-bottom: 20px; }
  .welcome_heading { font-size: 19px; }
  .service_title { font-size: 24px; }
  h1.service_title + hr { margin-top: -38px; }
  h2.service_titles { font-size: 20px; }
  .servcie_sub_pages hr { margin-top: -31px; }
  .under_development { font-size: 28px; }
  .enquiry-form input[type="text"], .enquiry-form input[type="email"],
  .enquiry-form input[type="tel"], .enquiry-form textarea { width: calc(100% - 12px); }
}

/* ---- Mobile header (as on the live site): badge on top, then search + social icons;
        full-width logo, phone and e-mail on their own lines, menu icon below ---- */
@media (max-width: 500px) {
  .header_top_outer { padding-top: 60px; background-color: #757575; }
  .generation_img img { width: 150px; }
  .header_top_inner { justify-content: flex-end; gap: 20px; padding: 0 2px 0 0; }
  #searchform input[type="text"] { width: 150px; }
  .logo img { width: 414px; }
  .contact_phone, .contact_mail { flex: 0 0 100%; text-align: right; }
  .contact_phone { order: 1; margin: 8px 0 0; padding: 0 50px 0 0; }
  .contact_mail { order: 2; margin: 0; padding-right: 12px; }
}

@media (max-width: 360px) {
  .header_top_inner { gap: 10px; }
  #searchform input[type="text"] { width: 120px; }
}

@media (prefers-reduced-motion: reduce) {
  .hero-slide.is-active img, .hero-slide.is-leaving img { animation-duration: 1ms !important; }
}
