/* Hentrix GlobalTech brand theme: colours taken from the logo (deep blue, royal blue, light blue). */
:root {
  --hx-deep: #1c4fa0;
  --hx-royal: #3b78d8;
  --hx-light: #6b9be8;
  --hx-ice: #eaf1fc;
  --hx-navy: #0c1f45;

  --primary-color-1: #1c4fa0;
  --primary-color-2: #6b9be8;
  --primary-color-3: #3b78d8;
  --bg-heading-color: #0c1f45;
  --text-heading-color: #0c1f45;
  --color-1: #f2f6fd;
  --color-3: #3b78d8;
  --color-5: #0f2650;
  --color-6: #3b78d842;
  --color-7: #0c1f45;
}

/* ---- Logo: client mark (image) on the left, company name (live text) on the right ---- */
.hx-logo { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; line-height: 1; }
.hx-logo-mark { display: block; width: 58px; height: 58px; flex: none; }
.hx-logo-text { display: flex; flex-direction: column; justify-content: center; }
.hx-logo-name {
  font-family: "Bebas Neue", "Oswald", "Arial Narrow", Impact, sans-serif;
  font-size: 32px;
  line-height: 0.95;
  letter-spacing: 3.5px;
  color: var(--hx-deep);
  text-shadow: 1.5px 1.5px 0 #b9cff4;
}
.hx-logo-sub {
  font-family: "Bebas Neue", "Oswald", "Arial Narrow", Impact, sans-serif;
  font-size: 11.5px;
  line-height: 1;
  letter-spacing: 3.4px;
  color: var(--hx-light);
  margin-top: 5px;
  white-space: nowrap;
}
/* On dark areas the logo sits on a white rounded plate so it stays readable */
.hx-logo-light { background: #fff; border-radius: 14px; padding: 10px 16px; }
.hx-logo-light .hx-logo-mark { width: 54px; height: 54px; }
.footer__two-widget-about > .hx-logo { margin-bottom: 25px; }

/* ---- Hard-coded colours from the original theme ---- */
.footer__two-widget .hx-legal { margin-bottom: 14px; line-height: 1.8; }
.footer__two-widget-about-location-item-info a { line-height: 1.6; }

/* ---- Service pages ---- */
.hx-service-hero {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 38px 40px;
  border-radius: 20px;
  background: linear-gradient(120deg, var(--hx-deep) 0%, var(--hx-royal) 100%);
  color: #fff;
  margin-bottom: 40px;
}
.hx-service-hero-icon {
  flex: none;
  width: 96px;
  height: 96px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.16);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 40px;
}
.hx-service-hero h2 { color: #fff; margin: 0 0 8px; }
.hx-service-hero p { margin: 0; color: #e3ecfb; }
.hx-offer-card {
  height: 100%;
  padding: 28px 26px;
  border-radius: 16px;
  background: #fff;
  border: 1px solid var(--border-color-1);
  box-shadow: var(--box-shadow-1);
  transition: transform 0.3s, border-color 0.3s;
}
.hx-offer-card:hover { transform: translateY(-5px); border-color: var(--hx-royal); }
.hx-offer-card h4 { margin-bottom: 10px; color: var(--hx-deep); }
.hx-offer-card p { margin: 0; }
.hx-offer-grid { row-gap: 24px; margin-bottom: 40px; }
@media (max-width: 575px) {
  .hx-service-hero { flex-direction: column; text-align: center; padding: 30px 22px; }
}

/* ---- Home page service tiles ---- */
.hx-services-grid .hx-service-tile {
  display: block;
  height: 100%;
  padding: 30px 26px;
  border-radius: 16px;
  background: #fff;
  border: 1px solid var(--border-color-1);
  box-shadow: var(--box-shadow-1);
  text-decoration: none;
  transition: transform 0.3s, border-color 0.3s, background 0.3s;
}
.hx-services-grid .hx-service-tile:hover {
  transform: translateY(-6px);
  border-color: var(--hx-royal);
  background: var(--hx-ice);
}
.hx-service-tile-icon {
  width: 64px;
  height: 64px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--hx-deep), var(--hx-royal));
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  margin-bottom: 20px;
}
.hx-service-tile h4 { color: var(--hx-navy); margin-bottom: 8px; font-size: 21px; }
.hx-service-tile p { margin: 0; color: var(--body-color); }
.hx-services-grid { row-gap: 24px; }

/* ---- Call to action button ---- */
.hx-cta-btn {
  display: inline-block;
  margin-top: 20px;
  padding: 12px 30px;
  border: 2px solid #fff;
  color: #fff;
  background-color: transparent;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
}
.hx-cta-btn:hover { background-color: #fff; color: var(--hx-deep); }

/* Override the template fixed logo image sizing */
a.hx-logo { display: inline-flex !important; }
a.hx-logo img.hx-logo-mark { width: 58px !important; height: 58px !important; max-width: none !important; margin-top: 0 !important; }
.hx-logo-light img.hx-logo-mark { width: 54px !important; height: 54px !important; }
.hx-logo-text, .hx-logo-name, .hx-logo-sub { text-transform: uppercase; }
@media (max-width: 575px) {
  .hx-logo { gap: 9px; }
  a.hx-logo img.hx-logo-mark { width: 46px !important; height: 46px !important; }
  .hx-logo-name { font-size: 26px; letter-spacing: 2.8px; }
  .hx-logo-sub { font-size: 9.2px; letter-spacing: 2.7px; margin-top: 4px; }
}
/* The template capitalises most text; keep emails, domains and descriptions as written */
.footer__two-widget-about-location-item-info a,
.footer__two-widget-subscribe p,
.copyright__one-left p,
.hx-service-tile p,
.hx-offer-card p,
.hx-service-hero p,
.contact__two-single-info-content span,
.header__area-menubar-right-sidebar-popup-contact-item-content h6 a,
.service__details-content p a {
  text-transform: none;
}
.contact__two-single-info-content span { display: block; word-break: break-word; }

/* Breadcrumb on the dark page banner: keep the current page readable */
.page__banner-content > span { color: #9dbdf2; }
.page__banner-content > span > span { color: #9dbdf2; }

/* One point per line inside the "why" boxes */
.service__details-content-box-single .service-qualities { display: grid; grid-template-columns: 1fr; row-gap: 10px; }
.service__details-content-box-single .service-qualities li { width: 100%; margin: 0; text-transform: none; }

/* Body copy is written in sentence case; do not let the template title-case it */
p, .service-qualities li, .about__one-content-service .service span { text-transform: none !important; }

a.btn-outline-primary, .contact__two-single-info-content span, .contact__two-single-info-content a { text-transform: none !important; }

/* Contact info cards: even two-column grid instead of the template's staggered layout */
.contact__two-contact-info { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; align-items: stretch; }
.contact__two-contact-info .contact__two-single-info { margin: 0 !important; top: 0 !important; width: auto !important; height: 100%; }
@media (max-width: 575px) { .contact__two-contact-info { grid-template-columns: 1fr; } }

/* ---- Extra service-page sections: process steps, audience cards, chips, FAQ ---- */
.service__details-content .sub-heading { margin-top: 10px; }
.hx-steps { list-style: none; margin: 0 0 44px; padding: 0; counter-reset: none; }
.hx-step {
  position: relative;
  display: flex;
  gap: 20px;
  padding: 0 0 26px 0;
}
.hx-step:not(:last-child)::before {
  content: "";
  position: absolute;
  left: 23px;
  top: 50px;
  bottom: 2px;
  width: 2px;
  background: linear-gradient(var(--hx-royal), var(--hx-ice));
}
.hx-step-no {
  flex: none;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--hx-deep), var(--hx-royal));
  color: #fff;
  font-weight: 700;
  font-size: 19px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hx-step h4 { margin: 2px 0 6px; color: var(--hx-navy); }
.hx-step p { margin: 0; }
.hx-audience-card {
  height: 100%;
  padding: 24px 24px;
  border-radius: 14px;
  background: var(--hx-ice);
  border-left: 4px solid var(--hx-royal);
}
.hx-audience-card h4 { font-size: 19px; margin-bottom: 8px; color: var(--hx-deep); }
.hx-audience-card h4 i { color: var(--hx-royal); margin-right: 4px; }
.hx-audience-card p { margin: 0; }
.hx-stack { margin-bottom: 44px; }
.hx-chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.hx-chips li {
  padding: 8px 18px;
  border-radius: 50px;
  background: #fff;
  border: 1px solid var(--hx-light);
  color: var(--hx-deep);
  font-weight: 500;
  font-size: 15px;
  text-transform: none;
}
.hx-faq { margin-bottom: 34px; }
.hx-faq details {
  border: 1px solid var(--border-color-1);
  border-radius: 12px;
  padding: 0 22px;
  margin-bottom: 12px;
  background: #fff;
}
.hx-faq details[open] { border-color: var(--hx-royal); box-shadow: var(--box-shadow-1); }
.hx-faq summary {
  cursor: pointer;
  padding: 18px 0;
  font-weight: 600;
  color: var(--hx-navy);
  list-style: none;
  position: relative;
  padding-right: 28px;
  text-transform: none;
}
.hx-faq summary::-webkit-details-marker { display: none; }
.hx-faq summary::after { content: "+"; position: absolute; right: 0; top: 14px; font-size: 24px; color: var(--hx-royal); }
.hx-faq details[open] summary::after { content: "\2212"; }
.hx-faq details p { padding-bottom: 18px; margin: 0; }
.hx-offer-grid + .hx-offer-grid, .hx-steps + .sub-heading { margin-top: 10px; }

/* ======================================================================
   Mobile and iOS polish (iPhone X / 11 / 12 and newer: 375-430px wide, notch)
   ====================================================================== */
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body { overflow-x: hidden; -webkit-tap-highlight-color: rgba(59, 120, 216, 0.18); }
img { max-width: 100%; }

/* Keep content clear of the notch / rounded corners in landscape */
.container {
  padding-left: max(12px, env(safe-area-inset-left));
  padding-right: max(12px, env(safe-area-inset-right));
}
.copyright__one { padding-bottom: calc(10px + env(safe-area-inset-bottom)); }
.scroll-up { bottom: calc(20px + env(safe-area-inset-bottom)); }

/* Mobile menu: brand colours, large tap targets, scrolls if the Services list is open */
.mean-container a.meanmenu-reveal { color: var(--hx-navy) !important; }
.mean-container a.meanmenu-reveal span { background-color: var(--hx-navy) !important; }
.mean-container .mean-nav {
  background: var(--hx-navy) !important;
  border-radius: 0 0 14px 14px;
  max-height: calc(100vh - 120px);
  max-height: calc(100dvh - 120px);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
.mean-container .mean-nav ul li a {
  padding: 14px 20px !important;
  min-height: 48px;
  font-size: 16px;
  line-height: 1.3;
  border-top: 1px solid rgba(255, 255, 255, 0.12) !important;
}
.mean-container .mean-nav ul li a.mean-expand {
  width: 56px;
  min-height: 48px;
  padding: 0 !important;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 48px !important;
  background: rgba(255, 255, 255, 0.08) !important;
}
.mean-container .mean-nav ul li li a { font-size: 15px; text-transform: none; padding-left: 34px !important; }

/* Larger tap targets for text links in the footer and contact info */
.footer__two-widget-solution ul li a,
.copyright__one-right a,
.footer__two-widget-about-location-item-info a,
.contact__two-single-info-content a {
  display: inline-block;
  padding-top: 6px;
  padding-bottom: 6px;
  min-height: 36px;
}
.footer__two-widget-social ul li a { min-width: 44px; min-height: 44px; display: inline-flex; align-items: center; justify-content: center; }

/* Inputs at 16px+ so iOS Safari does not zoom the page when a field is focused */
input, select, textarea { font-size: 16px; }
input[type="text"], input[type="email"], input[type="tel"], textarea, select { -webkit-appearance: none; appearance: none; border-radius: 8px; }
.btn-one, .btn-two, button[type="submit"] { min-height: 48px; }

@media (max-width: 767px) {
  /* Decorative shapes sit on top of the headline on small screens */
  .banner__one .banner-shape-1, .banner__one .banner-shape-2 { display: none; }
  .section-padding { padding-top: 60px; padding-bottom: 60px; }
  .hx-service-hero { padding: 26px 20px; }
  .hx-service-hero h2 { font-size: 28px; line-height: 1.2; }
  .service__details-content .sub-heading { font-size: 26px; line-height: 1.25; }
  .hx-step { gap: 14px; }
  .hx-step-no { width: 42px; height: 42px; font-size: 17px; }
  .hx-step:not(:last-child)::before { left: 20px; top: 44px; }
  .hx-chips li { font-size: 14px; padding: 7px 14px; }
  .hx-faq details { padding: 0 16px; }
  .hx-faq summary { padding: 16px 28px 16px 0; font-size: 16px; line-height: 1.4; }
  .service__details-content-box-single { width: 100% !important; }
  .page__banner-content h2 { font-size: 34px; line-height: 1.2; }
  .footer__two { padding-top: 60px; }
}
@media (max-width: 575px) {
  .banner__one-content h2 { font-size: 40px; line-height: 1.2; }
}
@media (max-width: 767px) {
  .contact__two-single-info-content span,
  .contact__two-single-info-content span a { font-size: 15px; line-height: 1.6; color: var(--hx-navy); }
  .contact__two-single-info-content span a { color: var(--hx-deep); font-weight: 600; text-decoration: underline; }
}

/* Photos are stored at 2x for sharpness; pin them to the display size the layout was designed for */
img[src*="about/about-1."] { width: 329px; max-width: 100%; height: auto; }
img[src*="about/about-2."] { width: 300px; max-width: 100%; height: auto; }
img[src*="work-process/work-process-1."] { width: 600px; max-width: 100%; height: auto; }
img[src*="work-process/work-process-2."] { width: 378px; max-width: 100%; height: auto; }
