/* Hurmuz-MED – overrides for clean PHP rebuild */

:root {
  --hm-blue: #4593ff;
  --hm-blue-dark: #2f78e0;
  --hm-text: #323232;
  --hm-muted: #6b7280;
  --hm-header-shadow: 0 8px 24px rgba(15, 40, 80, 0.1);
}

body {
  font-family: Lato, Helvetica, Arial, sans-serif;
  color: var(--hm-text);
}

body.hm-nav-open {
  overflow: hidden;
}

#sp-main-body {
  padding: 0 !important;
  margin: 0 !important;
  background: #fff;
}

/* ========== HEADER ========== */
#sp-header.hm-header,
.hm-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: auto !important;
  min-height: 0;
  background: #fff;
  box-shadow: none;
  transition: box-shadow 0.25s ease, transform 0.25s ease;
}

.hm-header.is-sticky {
  box-shadow: var(--hm-header-shadow);
}

.hm-header-spacer {
  display: block;
  width: 100%;
  margin: 0;
  padding: 0;
  line-height: 0;
  font-size: 0;
  background: transparent;
}

.hm-top-bar {
  background: linear-gradient(90deg, #3b82f6 0%, #4593ff 55%, #5aa0ff 100%);
  color: #fff;
  font-size: 13px;
  transition: max-height 0.3s ease, opacity 0.3s ease, padding 0.3s ease;
  overflow: hidden;
}

.hm-header.is-compact .hm-top-bar {
  max-height: 0;
  opacity: 0;
  padding-top: 0;
  padding-bottom: 0;
  pointer-events: none;
}

.hm-top-bar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 34px;
  padding: 4px 0;
}

.hm-contact-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 18px;
}

.hm-contact-list a,
.hm-contact-list span,
.hm-top-meta {
  color: #fff;
  text-decoration: none;
}

.hm-contact-list a:hover {
  color: #eef6ff;
}

.hm-contact-list i,
.hm-top-meta i {
  margin-right: 6px;
  opacity: 0.95;
}

.hm-header-main {
  background: #fff;
  border-bottom: 0;
}

.hm-header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 64px;
  transition: min-height 0.25s ease;
}

.hm-header.is-compact .hm-header-bar {
  min-height: 56px;
}

.hm-logo {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
}

.hm-logo img {
  display: block;
  height: 48px;
  width: auto;
  transition: height 0.25s ease;
}

.hm-header.is-compact .hm-logo img {
  height: 40px;
}

.hm-nav {
  flex: 1 1 auto;
  display: flex;
  justify-content: flex-end;
}

.hm-main-menu {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 2px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.hm-menu-item {
  position: relative;
}

.hm-menu-link-wrap {
  display: flex;
  align-items: center;
}

.hm-menu-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  padding: 10px 12px;
  color: var(--hm-text);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  text-decoration: none;
  transition: color 0.2s ease;
}

.hm-menu-link::after {
  content: '';
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 6px;
  height: 2px;
  background: var(--hm-blue);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.22s ease;
}

.hm-menu-item:hover > .hm-menu-link-wrap .hm-menu-link,
.hm-menu-item.is-active > .hm-menu-link-wrap .hm-menu-link,
.hm-menu-item.is-hover > .hm-menu-link-wrap .hm-menu-link {
  color: var(--hm-blue);
  text-decoration: none;
}

.hm-menu-item:hover > .hm-menu-link-wrap .hm-menu-link::after,
.hm-menu-item.is-active > .hm-menu-link-wrap .hm-menu-link::after,
.hm-menu-item.is-hover > .hm-menu-link-wrap .hm-menu-link::after {
  transform: scaleX(1);
}

.hm-submenu-toggle {
  display: none;
  width: 36px;
  height: 36px;
  border: 0;
  background: transparent;
  color: var(--hm-text);
  margin-left: -8px;
}

.hm-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  min-width: 250px;
  margin: 0;
  padding: 10px 0;
  list-style: none;
  background: #fff;
  border: 1px solid #e8eef8;
  border-radius: 8px;
  box-shadow: 0 14px 36px rgba(20, 50, 100, 0.14);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
  z-index: 1200;
}

.hm-dropdown::before {
  content: '';
  position: absolute;
  top: -7px;
  left: 22px;
  width: 12px;
  height: 12px;
  background: #fff;
  border-left: 1px solid #e8eef8;
  border-top: 1px solid #e8eef8;
  transform: rotate(45deg);
}

.hm-menu-item.is-hover > .hm-dropdown,
.hm-menu-item:hover > .hm-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.hm-dropdown a {
  display: block;
  padding: 10px 18px;
  color: var(--hm-text);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.15s ease, color 0.15s ease, padding-left 0.15s ease;
}

.hm-dropdown a:hover,
.hm-dropdown li.is-active > a,
.hm-dropdown li.is-active > .hm-dropdown-link-wrap > a {
  background: #f3f8ff;
  color: var(--hm-blue);
}

.hm-dropdown-link-wrap {
  display: flex;
  align-items: center;
}

.hm-dropdown-link-wrap > a {
  flex: 1 1 auto;
}

.hm-subsubmenu-toggle {
  display: none;
  width: 36px;
  height: 36px;
  border: 0;
  background: transparent;
  color: var(--hm-text);
  flex: 0 0 36px;
}

.hm-dropdown .has-sub {
  position: relative;
}

.hm-dropdown-sub {
  top: 0;
  left: calc(100% + 4px);
  margin-top: 0;
}

.hm-dropdown .has-sub:hover > .hm-dropdown-sub,
.hm-dropdown .has-sub.is-hover > .hm-dropdown-sub {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

@media (min-width: 992px) {
  .hm-dropdown .has-sub > .hm-dropdown-link-wrap > a::after {
    content: '\f105';
    font-family: FontAwesome;
    float: right;
    margin-left: 12px;
    color: #8aa0bd;
  }

  .hm-dropdown .has-sub > .hm-dropdown-link-wrap > a:hover {
    padding-left: 18px;
  }
}

.hm-menu-cta {
  margin-left: 8px;
}

.hm-btn-appoint {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 18px;
  border-radius: 4px;
  background: var(--hm-blue);
  color: #fff !important;
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.04em;
  text-decoration: none !important;
  box-shadow: 0 6px 16px rgba(69, 147, 255, 0.28);
  transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.hm-btn-appoint:hover {
  background: var(--hm-blue-dark);
  color: #fff !important;
  transform: translateY(-1px);
  box-shadow: 0 10px 20px rgba(69, 147, 255, 0.35);
}

.hm-nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 8px;
  background: var(--hm-blue);
  color: #fff;
  align-items: center;
  justify-content: center;
  padding: 0;
}

.hm-burger {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 18px;
}

.hm-burger span {
  display: block;
  height: 2px;
  width: 100%;
  background: #fff;
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.hm-nav-toggle.is-active .hm-burger span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.hm-nav-toggle.is-active .hm-burger span:nth-child(2) {
  opacity: 0;
}

.hm-nav-toggle.is-active .hm-burger span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ========== HERO / CONTENT ========== */
.hm-hero {
  position: relative;
  height: clamp(380px, 48vw, 520px);
  min-height: 380px;
  margin: 8px 0 0;
  overflow: hidden;
  background: #0f2744;
}

.hm-hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.9s ease;
  background: #0f2744;
}

.hm-hero-slide.is-active {
  opacity: 1;
  z-index: 1;
}

.hm-hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: var(--hm-hero-pos, center center);
  display: block;
}

.hm-hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(90deg, rgba(8, 24, 48, 0.62) 0%, rgba(8, 24, 48, 0.28) 42%, rgba(8, 24, 48, 0.08) 72%, rgba(8, 24, 48, 0.02) 100%);
  display: flex;
  align-items: center;
}

.hm-hero-panel {
  max-width: 520px;
  color: #fff;
  padding: 8px 0 28px;
}

.hm-hero-badge {
  display: inline-block;
  margin: 0 0 10px;
  padding: 5px 11px;
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.22);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.hm-hero-title {
  margin: 0 0 8px;
  font-size: clamp(26px, 3.6vw, 38px);
  font-weight: 700;
  line-height: 1.12;
  color: #fff;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.35);
}

.hm-hero-lead {
  margin: 0 0 16px;
  max-width: 400px;
  color: rgba(255, 255, 255, 0.92);
  font-size: clamp(14px, 1.4vw, 16px);
  line-height: 1.5;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.3);
}

.hm-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.hm-hero-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 8px 18px;
  border-radius: 4px;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.02em;
  text-decoration: none;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.hm-hero-btn-primary {
  background: #fff;
  border: 1px solid #fff;
  color: #2f507d;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.18);
}

.hm-hero-btn-primary:hover,
.hm-hero-btn-primary:focus {
  background: #f3f7fc;
  color: var(--hm-blue);
  text-decoration: none;
  transform: translateY(-1px);
}

.hm-hero-btn-ghost {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.85);
  color: #fff;
}

.hm-hero-btn-ghost:hover,
.hm-hero-btn-ghost:focus {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  text-decoration: none;
}

.hm-hero-dots {
  position: absolute;
  left: 50%;
  bottom: 18px;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 3;
}

.hm-hero-dots button {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 0;
  padding: 0;
  background: rgba(255, 255, 255, 0.45);
  transition: transform 0.2s ease, background 0.2s ease;
}

.hm-hero-dots button.is-active {
  background: #fff;
  transform: scale(1.2);
}

.hm-section {
  padding: 70px 0;
}

.hm-feature {
  margin-bottom: 28px;
}

.hm-feature img {
  width: 64px;
  height: auto;
  margin-right: 14px;
}

.hm-feature h3 {
  margin-top: 0;
  font-size: 18px;
  font-weight: 700;
  color: var(--hm-text);
}

.hm-feature p {
  color: #555;
  font-size: 14px;
  line-height: 1.6;
}

.hm-section.alt,
.hm-why {
  background: #f5f8fc;
}

.hm-section-head {
  text-align: center;
  margin-bottom: 36px;
}

.hm-section-head h2 {
  margin: 0 0 8px;
  font-size: 30px;
  font-weight: 700;
}

.hm-eyebrow {
  margin: 0 0 8px;
  color: var(--hm-blue);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hm-section-sub {
  color: var(--hm-muted);
  margin: 8px auto 0;
  max-width: 720px;
  font-size: 15px;
  line-height: 1.55;
}

.hm-motto {
  text-align: center;
  margin: 0 auto 8px;
  color: var(--hm-blue);
  font-weight: 700;
  font-size: clamp(18px, 2.4vw, 24px);
  line-height: 1.45;
  max-width: 920px;
}

.hm-service-card {
  background: #fff;
  border: 1px solid #e6eef8;
  border-radius: 10px;
  padding: 24px 20px;
  margin-bottom: 24px;
  min-height: 320px;
  box-shadow: 0 8px 24px rgba(30, 70, 130, 0.05);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.hm-service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 30px rgba(30, 70, 130, 0.1);
}

.hm-service-card-wide {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  min-height: 0;
}

.hm-service-icon {
  width: 64px;
  height: 64px;
  flex: 0 0 64px;
  margin-bottom: 14px;
}

.hm-service-icon img {
  width: 64px;
  height: auto;
}

.hm-service-card h3 {
  margin: 0 0 10px;
  font-size: 18px;
  font-weight: 700;
  color: var(--hm-text);
}

.hm-service-card p {
  color: #5b6573;
  font-size: 14px;
  line-height: 1.65;
  margin-bottom: 14px;
}

.hm-link {
  color: var(--hm-blue);
  font-weight: 700;
  text-decoration: none;
}

.hm-link:hover {
  color: var(--hm-blue-dark);
  text-decoration: none;
}

.hm-why-layout {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
}

.hm-why-layout > [class*="col-"] {
  display: flex;
  flex-direction: column;
}

.hm-why-photo {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 16px 40px rgba(20, 50, 90, 0.16);
  background: #dbe7f7;
}

.hm-why-photo img {
  width: 100%;
  height: auto;
  display: block;
}

.hm-why-content {
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-left: 18px;
}

.hm-why h2 {
  margin-top: 0;
  margin-bottom: 12px;
  font-size: 30px;
  font-weight: 700;
}

.hm-why-intro {
  color: #5b6573;
  margin: 0 0 20px;
  line-height: 1.7;
  font-size: 15px;
}

.hm-why-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 14px;
}

.hm-why-item {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #fff;
  border: 1px solid #e6eef8;
  border-radius: 10px;
  padding: 12px 14px;
  min-height: 72px;
  box-shadow: 0 6px 18px rgba(30, 70, 130, 0.04);
}

.hm-why-icon {
  flex: 0 0 48px;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hm-why-icon img {
  width: 44px;
  height: auto;
  display: block;
}

.hm-why-item h4 {
  font-size: 13px;
  font-weight: 700;
  line-height: 1.35;
  margin: 0;
  color: var(--hm-text);
  text-align: left;
}

@media (max-width: 991px) {
  .hm-why-content {
    padding-left: 0;
    margin-top: 20px;
  }

  .hm-why-photo img {
    width: 100%;
    height: auto;
  }
}

@media (max-width: 575px) {
  .hm-why-grid {
    grid-template-columns: 1fr;
  }
}

.hm-departments .hm-dept-tabs .nav-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 0;
}

.hm-departments .hm-dept-tabs .nav-pills > li {
  float: none;
  flex: 1 1 180px;
}

.hm-departments .hm-dept-tabs .nav-pills > li > a {
  border-radius: 8px;
  color: var(--hm-text);
  font-weight: 700;
  background: #fff;
  border: 1px solid #e6eef8;
  padding: 14px 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 64px;
}

.hm-departments .hm-dept-tabs .nav-pills > li.active > a,
.hm-departments .hm-dept-tabs .nav-pills > li > a:hover {
  background: var(--hm-blue);
  border-color: var(--hm-blue);
  color: #fff;
}

.hm-dept-tabs .tab_image {
  width: 28px;
  margin-right: 0;
}

.hm-dept-panels {
  margin-top: 16px;
}

.hm-dept-panel {
  background: #fff;
  border: 1px solid #e6eef8;
  border-radius: 10px;
  padding: 28px;
  min-height: 160px;
}

.hm-dept-panel h3 {
  margin-top: 0;
  font-weight: 700;
}

.hm-dept-soon {
  background: linear-gradient(135deg, #4593ff 0%, #646efa 100%);
  color: #fff;
  border: 0;
}

.hm-dept-soon h3,
.hm-dept-soon p {
  color: #fff;
}

.hm-form-home {
  max-width: 920px;
  margin: 0 auto;
  background: #fff;
  border: 1px solid #e6eef8;
  border-radius: 12px;
  padding: 28px;
  box-shadow: 0 10px 28px rgba(30, 70, 130, 0.06);
}

.hm-form-home textarea.form-control {
  min-height: 238px;
}

.hm-cta-bar {
  background: var(--hm-blue);
  color: #fff;
  padding: 16px 0;
}

.hm-cta-bar h2 {
  margin: 6px 0;
  font-size: 22px;
  color: #fff;
}

.hm-cta-bar .btn {
  background: #fff;
  color: var(--hm-blue);
  border: 0;
  font-weight: 700;
  margin-top: 2px;
  padding: 8px 16px;
  font-size: 13px;
}

.hm-heading-icon {
  margin: 0 0 12px;
}

.hm-heading-icon img {
  width: 32px;
  margin-bottom: 0;
}

.hm-contact-strip {
  padding: 20px 0;
  background: #f7faff;
  border-top: 1px solid #e6eef8;
}

.hm-contact-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 24px;
}

.hm-contact-item {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1 1 220px;
  min-height: 52px;
}

.hm-contact-item img {
  width: 36px;
  height: auto;
  flex: 0 0 36px;
  margin: 0;
}

.hm-contact-item p {
  margin: 0;
  font-size: 14px;
  line-height: 1.4;
  color: #3a4452;
}

.hm-contact-item a {
  color: #3a4452;
  text-decoration: none;
  font-weight: 600;
}

.hm-contact-item a:hover {
  color: var(--hm-blue);
}

@media (max-width: 767px) {
  .hm-contact-item {
    flex: 1 1 100%;
    justify-content: flex-start;
  }
}

#sp-footer {
  background: #1a1f26;
  color: #f3f5f7;
  padding: 16px 0;
  font-size: 13px;
}

#sp-footer .hm-copy {
  margin: 0 0 6px;
  color: #f3f5f7;
  font-weight: 600;
}

#sp-footer .hm-concept {
  margin: 0;
  font-size: 13px;
  color: #d7dde5;
}

#sp-footer .hm-concept a {
  color: #7eb6ff;
  font-weight: 700;
  text-decoration: none;
}

#sp-footer .hm-concept a:hover {
  color: #fff;
  text-decoration: underline;
}

.hm-gotop {
  position: fixed;
  right: 20px;
  bottom: 20px;
  width: 42px;
  height: 42px;
  line-height: 42px;
  text-align: center;
  background: var(--hm-blue);
  color: #fff;
  border-radius: 3px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
  z-index: 50;
  text-decoration: none;
}

.hm-gotop.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.hm-gotop:hover {
  color: #fff;
  opacity: 0.9;
}

.hm-page-title {
  position: relative;
  background-color: var(--hm-blue);
  background-position: center center;
  background-size: cover;
  background-repeat: no-repeat;
  color: #fff;
  padding: 0;
  margin: 8px 0 0;
  height: 160px;
  overflow: hidden;
}

.hm-page-title-overlay {
  display: flex;
  align-items: center;
  height: 100%;
  background: linear-gradient(90deg, rgba(45, 110, 200, 0.78) 0%, rgba(69, 147, 255, 0.72) 55%, rgba(69, 147, 255, 0.55) 100%);
}

.hm-page-title h1 {
  margin: 0;
  font-size: 34px;
  color: #fff;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.25);
}

@media (max-width: 767px) {
  .hm-page-title {
    height: 120px;
  }

  .hm-page-title h1 {
    font-size: 26px;
  }
}

.hm-form .form-control,
.hm-form select.form-control,
.hm-form textarea.form-control {
  margin-bottom: 12px;
  height: auto;
  padding: 10px 12px;
}

.hm-form textarea.form-control {
  min-height: 180px;
}

.hm-alert {
  padding: 12px 16px;
  margin-bottom: 16px;
  border-radius: 3px;
}

.hm-alert.success {
  background: #e8f7ee;
  color: #1b7a3d;
  border: 1px solid #b7e0c5;
}

.hm-alert.error {
  background: #fdecea;
  color: #a12622;
  border: 1px solid #f5c2c0;
}

.hm-accordion .panel-heading {
  cursor: pointer;
  font-weight: 700;
}

.hm-blog-post {
  margin-bottom: 20px;
}

.hm-blog-title {
  margin-top: 0;
  font-size: 22px;
}

.hm-blog-title a {
  color: var(--hm-text);
  text-decoration: none;
}

.hm-blog-title a:hover {
  color: var(--hm-blue);
}

.hm-blog-meta {
  font-size: 13px;
  margin-bottom: 12px;
}

.hm-side-box {
  background: #f5f5f5;
  padding: 18px 20px;
  margin-bottom: 20px;
  border-radius: 3px;
}

.hm-side-box h4 {
  margin-top: 0;
  font-weight: 700;
  font-size: 16px;
}

.hm-cat-list li {
  padding: 6px 0;
  border-bottom: 1px solid #e5e5e5;
}

.hm-cat-list li:last-child {
  border-bottom: 0;
}

.hm-cat-list a {
  color: var(--hm-text);
  text-decoration: none;
}

.hm-cat-list a:hover {
  color: var(--hm-blue);
}

.hm-team img {
  max-width: 200px;
  height: auto;
  border-radius: 4px;
}

/* Homepage – denser spacing */
.page-home .hm-hero {
  height: clamp(380px, 48vw, 520px);
  min-height: 380px;
}

.page-home .hm-hero-title {
  margin-bottom: 10px;
}

.page-home .hm-hero-dots {
  bottom: 14px;
}

.page-home .hm-section {
  padding: 40px 0;
}

.page-home .hm-section-head {
  margin-bottom: 20px;
}

.page-home .hm-section-head h2,
.page-home .hm-why h2 {
  font-size: 26px;
}

.page-home .hm-motto {
  font-size: clamp(16px, 2vw, 20px);
}

.page-home .hm-service-card {
  padding: 16px 14px;
  margin-bottom: 14px;
  min-height: 250px;
}

.page-home .hm-service-card-wide {
  min-height: 0;
  margin-bottom: 14px;
}

.page-home .hm-service-icon {
  width: 52px;
  height: 52px;
  flex-basis: 52px;
  margin-bottom: 10px;
}

.page-home .hm-service-icon img {
  width: 52px;
}

.page-home .hm-service-card h3 {
  font-size: 16px;
  margin-bottom: 6px;
}

.page-home .hm-service-card p {
  font-size: 13px;
  margin-bottom: 10px;
  line-height: 1.5;
}

.page-home .hm-why-photo {
  min-height: 0;
}

.page-home .hm-why-intro {
  margin-bottom: 14px;
  font-size: 14px;
}

.page-home .hm-why-item {
  min-height: 64px;
  padding: 10px 12px;
}

.page-home .hm-why-icon {
  width: 40px;
  height: 40px;
  flex-basis: 40px;
}

.page-home .hm-why-icon img {
  width: 38px;
}

.page-home .hm-why-item h4 {
  font-size: 12px;
}

.page-home .hm-departments .hm-dept-tabs .nav-pills > li > a {
  padding: 10px 8px;
  min-height: 52px;
  font-size: 12px;
}

.page-home .hm-dept-panel {
  padding: 18px;
  min-height: 110px;
}

.page-home .hm-form-home {
  padding: 18px;
}

.page-home .hm-form-home textarea.form-control {
  min-height: 180px;
}

.page-home .hm-form .form-control {
  margin-bottom: 8px;
  padding: 8px 10px;
}

.page-home .hm-services-bottom {
  margin-top: 0;
}

.page-home .hm-services .row {
  margin-bottom: 0;
}

.hm-lead {
  font-size: 18pt;
  font-weight: 600;
  color: var(--hm-text);
}

.hm-team-row h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 12px;
}

.hm-tag-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 24px;
}

.hm-tag {
  display: inline-block;
  padding: 10px 18px;
  border: 1px solid #d7e4f8;
  border-radius: 999px;
  background: #f7faff;
  color: var(--hm-text);
  font-weight: 700;
  font-size: 13px;
}

.hm-urgent-box {
  background: var(--hm-blue);
  color: #fff;
  padding: 36px 0;
}

.hm-urgent-box h4 {
  color: #fff;
  margin-top: 0;
  font-weight: 700;
  font-size: 22px;
}

.hm-urgent-box a {
  color: #fff;
  text-decoration: underline;
}

.hm-urgent-box .btn {
  text-decoration: none;
  margin-right: 8px;
  margin-top: 8px;
}

.hm-urgent-box .btn-default {
  background: #fff;
  color: var(--hm-blue);
  border: 0;
}

.hm-urgent-box .btn-primary {
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid #fff;
  color: #fff;
}

.hm-timetable {
  background: var(--hm-blue);
  color: #fff;
  padding: 24px 20px;
  min-height: 100%;
}

.hm-timetable h3 {
  color: #fff;
  font-size: 18px;
  margin-top: 0;
  margin-bottom: 20px;
}

.hm-timetable h3 img {
  width: 28px;
  margin-right: 8px;
  vertical-align: middle;
}

.hm-timetable ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.hm-timetable li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.25);
}

.hm-timetable li:last-child {
  border-bottom: 0;
}

.hm-contact-details .media {
  margin-bottom: 18px;
}

.hm-contact-details img {
  width: 42px;
}

.hm-contact-details h6 {
  margin: 4px 0 0;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.45;
}

.hm-partner-card {
  background: #f7faff;
  border: 1px solid #e4edf8;
  border-radius: 6px;
  padding: 18px;
}

.hm-partner-card h4 {
  margin-top: 0;
  font-weight: 700;
}

/* Tablet / mobile navigation */
@media (max-width: 991px) {
  .hm-nav-toggle {
    display: inline-flex;
    margin-left: auto;
  }

  .hm-nav {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    justify-content: stretch;
    background: #fff;
    border-bottom: 1px solid #e8eef8;
    box-shadow: 0 16px 28px rgba(15, 40, 80, 0.12);
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
    transition: max-height 0.3s ease, opacity 0.25s ease;
  }

  .hm-header.nav-open .hm-nav {
    max-height: 80vh;
    opacity: 1;
    overflow: auto;
    pointer-events: auto;
  }

  .hm-main-menu {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    padding: 8px 0 16px;
  }

  .hm-menu-item {
    width: 100%;
    border-bottom: 1px solid #f0f3f8;
  }

  .hm-menu-link-wrap {
    width: 100%;
    justify-content: space-between;
  }

  .hm-menu-link {
    flex: 1 1 auto;
    padding: 14px 18px;
  }

  .hm-menu-link::after {
    display: none;
  }

  .hm-submenu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .hm-submenu-toggle i {
    transition: transform 0.2s ease;
  }

  .hm-menu-item.is-open .hm-submenu-toggle i {
    transform: rotate(180deg);
  }

  .hm-dropdown {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    display: none;
    box-shadow: none;
    border: 0;
    border-radius: 0;
    background: #f7faff;
    padding: 0 0 8px;
    min-width: 0;
  }

  .hm-dropdown::before {
    display: none;
  }

  .hm-menu-item.is-open > .hm-dropdown {
    display: block;
  }

  .hm-dropdown-link-wrap {
    width: 100%;
  }

  .hm-subsubmenu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .hm-subsubmenu-toggle i {
    transition: transform 0.2s ease;
  }

  .hm-dropdown .has-sub.is-open > .hm-dropdown-link-wrap .hm-subsubmenu-toggle i {
    transform: rotate(90deg);
  }

  .hm-dropdown-sub {
    position: static;
    display: none;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    border: 0;
    border-radius: 0;
    background: #eef5ff;
    padding: 0 0 6px;
    min-width: 0;
  }

  .hm-dropdown-sub::before {
    display: none;
  }

  .hm-dropdown .has-sub.is-open > .hm-dropdown-sub {
    display: block;
  }

  .hm-dropdown-sub a {
    padding-left: 40px;
  }

  .hm-dropdown a {
    padding: 10px 18px 10px 28px;
  }

  .hm-menu-cta {
    margin: 12px 18px 0;
  }

  .hm-btn-appoint {
    width: 100%;
  }

  .hm-header-bar {
    min-height: 58px;
    position: relative;
  }

  .hm-logo img {
    height: 42px;
  }
}

@media (max-width: 767px) {
  .hm-hero,
  .page-home .hm-hero {
    height: 340px;
    min-height: 300px;
  }

  .hm-hero-panel {
    max-width: 100%;
    padding: 6px 0 30px;
  }

  .hm-hero-title {
    font-size: 24px;
    margin-bottom: 8px;
  }

  .hm-hero-lead {
    font-size: 13px;
    margin-bottom: 14px;
  }

  .hm-hero-actions {
    gap: 8px;
  }

  .hm-hero-btn {
    min-height: 40px;
    padding: 9px 14px;
    font-size: 13px;
  }

  .hm-service-card,
  .hm-service-card-wide {
    min-height: 0;
  }

  .hm-service-card-wide {
    flex-direction: column;
  }

  .hm-form-home {
    padding: 18px;
  }

  .hm-form-home textarea.form-control {
    min-height: 160px;
  }

  .hm-cta-bar .text-right {
    text-align: left !important;
    margin-top: 12px;
  }

  .hm-top-bar-inner {
    justify-content: center;
  }

  .hm-contact-list {
    justify-content: center;
  }
}

.hm-skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 10000;
  padding: 10px 14px;
  background: #fff;
  color: var(--hm-blue);
  font-weight: 700;
}

.hm-skip-link:focus {
  left: 12px;
  top: 12px;
}

.hm-mobile-cta {
  display: none;
}

@media (max-width: 991px) {
  .hm-hero-panel {
    max-width: 92%;
  }

  .hm-service-card {
    min-height: 0;
  }

  .hm-why-item {
    min-height: 60px;
  }

  .hm-contact-row {
    gap: 16px;
  }

  .hm-page-title {
    height: 120px;
  }

  .hm-page-title h1 {
    font-size: 26px;
  }
}

@media (max-width: 767px) {
  body {
    padding-bottom: 64px;
  }

  .hm-mobile-cta {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1100;
    display: flex;
    gap: 8px;
    padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
    background: rgba(255, 255, 255, 0.96);
    border-top: 1px solid #e5eef8;
    box-shadow: 0 -8px 24px rgba(15, 40, 80, 0.12);
  }

  .hm-mobile-cta-btn {
    flex: 1 1 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    border-radius: 8px;
    border: 1px solid #c9daf0;
    background: #fff;
    color: #2f507d;
    font-weight: 700;
    font-size: 14px;
    text-decoration: none;
  }

  .hm-mobile-cta-btn.is-primary {
    background: var(--hm-blue);
    border-color: var(--hm-blue);
    color: #fff;
  }

  .hm-gotop {
    bottom: 78px;
  }

  .hm-hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .hm-hero-btn {
    width: 100%;
  }

  .hm-form .form-control,
  .hm-form select.form-control,
  .hm-form textarea.form-control,
  .hm-form-home .btn {
    min-height: 44px;
    font-size: 16px;
  }

  .hm-cta-bar h2 {
    font-size: 18px;
    line-height: 1.35;
  }

  .hm-contact-item {
    flex-direction: column;
    text-align: center;
  }

  .hm-team-row .hm-team {
    margin-bottom: 24px;
  }

  .hm-accordion .panel-heading {
    min-height: 48px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
  }
}

