/*--------------------------------------------------------------
# CHIN-RET brand layer
# Loaded after main.css (Passion template). Brand colours come
# from the CHIN-RET logo: indigo #3e4095 and charcoal #201e1f.
--------------------------------------------------------------*/
:root {
  --default-color: #2b2d3a;
  --heading-color: #1b1d3a;
  --accent-color: #3e4095;
  --accent-bright: #5b5fd6;
  --amber: #f2a900;
  --nav-hover-color: #a9adff;
  --nav-dropdown-color: #1b1d3a;
  --nav-dropdown-hover-color: #3e4095;
}

.light-background {
  --background-color: #f4f5fb;
}

.dark-background {
  --background-color: #12132a;
  --surface-color: #23254a;
  --accent-color: #7f84ff;
}

.footer.dark-background {
  --background-color: #101125;
}

/* Accessibility */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 10000;
  background: var(--accent-color);
  color: #fff;
  padding: 10px 16px;
}

.skip-link:focus {
  left: 10px;
  top: 10px;
  color: #fff;
}

:focus-visible {
  outline: 3px solid var(--amber);
  outline-offset: 2px;
}

/* Header & logo */
.header .logo img {
  max-height: 46px;
  width: auto;
  margin-right: 10px;
}

.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1;
}

.logo-text .sitename {
  font-family: var(--heading-font);
  font-size: 26px;
  font-weight: 800;
  letter-spacing: 1px;
  color: #fff;
}

.logo-text small {
  font-family: var(--nav-font);
  font-size: 11px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.7);
  margin-top: 4px;
}

.scrolled .header,
.inner-page .header {
  --background-color: rgba(16, 17, 37, 0.96);
}

/* Blur only on desktop. On mobile, backdrop-filter traps the fixed
   mobile menu inside the header bar (it becomes the containing block). */
@media (min-width: 1200px) {
  .scrolled .header,
  .inner-page .header {
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
  }
}

.inner-page .header .topbar {
  --background-color: #0b0c1d;
}

@media (min-width: 1200px) {
  .navmenu .nav-cta {
    margin-left: 10px;
  }

  .navmenu .nav-cta a.btn-getquote {
    background: var(--amber);
    color: #1b1d3a !important;
    padding: 10px 22px;
    border-radius: 50px;
    font-weight: 600;
  }

  .navmenu .nav-cta a.btn-getquote:hover {
    background: #ffc233;
  }
}

@media (max-width: 1199px) {
  .navmenu .nav-cta a.btn-getquote {
    color: var(--accent-color);
    font-weight: 700;
  }
}

/* Generic helpers */
.eyebrow {
  display: inline-block;
  font-family: var(--nav-font);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--accent-color);
  margin-bottom: 10px;
}

.eyebrow::before {
  content: "";
  display: inline-block;
  width: 28px;
  height: 3px;
  background: var(--amber);
  vertical-align: middle;
  margin-right: 10px;
  border-radius: 2px;
}

.check-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.check-list li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 6px 0;
}

.check-list li i {
  color: var(--accent-color);
  margin-top: 2px;
}

.check-list.two-col {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 24px;
}

@media (max-width: 575px) {
  .check-list.two-col {
    grid-template-columns: 1fr;
  }
}

.btn-primary {
  --bs-btn-bg: var(--accent-color);
  --bs-btn-border-color: var(--accent-color);
  --bs-btn-hover-bg: #2f3178;
  --bs-btn-hover-border-color: #2f3178;
  --bs-btn-active-bg: #2f3178;
}

.btn-outline-primary {
  --bs-btn-color: var(--accent-color);
  --bs-btn-border-color: var(--accent-color);
  --bs-btn-hover-bg: var(--accent-color);
  --bs-btn-hover-border-color: var(--accent-color);
}

.btn-accent {
  background: var(--amber);
  color: #1b1d3a;
  border: 0;
  font-weight: 600;
}

.btn-accent:hover {
  background: #ffc233;
  color: #1b1d3a;
}

/* Hero */
.hero .hero-background .overlay {
  background: linear-gradient(100deg, rgba(14, 15, 38, 0.92) 0%, rgba(30, 32, 80, 0.75) 55%, rgba(14, 15, 38, 0.45) 100%);
}

.hero .hero-content h1 {
  text-wrap: balance;
}

.hero .hero-content .hero-badge {
  background: rgba(242, 169, 0, 0.15);
  color: var(--amber);
  border-color: rgba(242, 169, 0, 0.4);
}

/* About floating card */
.about .floating-card i {
  color: var(--accent-color);
}

/* Partner logos */
.clients .client-logo img {
  max-height: 90px;
  width: auto;
  filter: grayscale(100%);
  opacity: 0.75;
  transition: 0.3s;
}

.clients .client-logo:hover img {
  filter: none;
  opacity: 1;
}

/* Sector & feature images */
.features .image-box img,
.services-image img {
  aspect-ratio: 4 / 3;
  object-fit: cover;
  width: 100%;
}

/* Call to action (home) */
.call-to-action .cta-image-container .main-image {
  border-radius: 16px;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  width: 100%;
  max-height: 460px;
}

/* CTA banner (inner pages) */
.cta-banner {
  position: relative;
  background-size: cover;
  background-position: center;
  padding: 80px 0;
}

.cta-banner::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(16, 17, 37, 0.94), rgba(62, 64, 149, 0.82));
}

.cta-banner h2 {
  font-size: 34px;
  font-weight: 700;
  margin-bottom: 10px;
}

.cta-banner p {
  color: rgba(255, 255, 255, 0.85);
}

/* Page title banner */
.page-title {
  background-size: cover;
  background-position: center;
  padding: 190px 0 80px;
}

.page-title:before {
  background: linear-gradient(90deg, rgba(14, 15, 38, 0.9), rgba(30, 32, 80, 0.7)) !important;
}

/* Vision & mission */
.vm-card {
  position: relative;
  background: var(--surface-color);
  border-radius: 18px;
  padding: 40px;
  box-shadow: 0 10px 40px rgba(27, 29, 58, 0.07);
  overflow: hidden;
  border-top: 4px solid var(--accent-color);
}

.vm-card .vm-number {
  position: absolute;
  right: 24px;
  top: 10px;
  font-family: var(--heading-font);
  font-size: 80px;
  font-weight: 800;
  color: color-mix(in srgb, var(--accent-color), transparent 90%);
}

.vm-card .vm-icon {
  width: 60px;
  height: 60px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: color-mix(in srgb, var(--accent-color), transparent 88%);
  color: var(--accent-color);
  font-size: 28px;
  margin-bottom: 20px;
}

.vm-card h3 {
  font-size: 26px;
  font-weight: 700;
}

.vm-card p {
  font-size: 18px;
  margin: 0;
}

.mini-card {
  display: flex;
  gap: 14px;
  background: var(--surface-color);
  border: 1px solid color-mix(in srgb, var(--default-color), transparent 90%);
  border-radius: 12px;
  padding: 18px;
  height: 100%;
}

.mini-card i {
  font-size: 26px;
  color: var(--accent-color);
}

.mini-card h5 {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 4px;
}

.mini-card p {
  font-size: 14px;
  margin: 0;
}

.badge-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.badge-grid span {
  background: color-mix(in srgb, var(--accent-color), transparent 90%);
  color: var(--heading-color);
  font-weight: 600;
  font-size: 14px;
  padding: 8px 14px;
  border-radius: 50px;
}

/* Services listing tiles */
.svc-tile {
  background: var(--surface-color);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 10px 35px rgba(27, 29, 58, 0.08);
  transition: transform 0.3s, box-shadow 0.3s;
  display: flex;
  flex-direction: column;
}

.svc-tile:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 45px rgba(27, 29, 58, 0.14);
}

.svc-tile-img {
  position: relative;
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
}

.svc-tile-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}

.svc-tile:hover .svc-tile-img img {
  transform: scale(1.06);
}

.svc-tile-num {
  position: absolute;
  top: 14px;
  right: 16px;
  font-family: var(--heading-font);
  font-weight: 800;
  font-size: 22px;
  color: #fff;
  background: rgba(16, 17, 37, 0.6);
  border-radius: 8px;
  padding: 2px 10px;
}

.svc-tile-body {
  position: relative;
  padding: 40px 28px 28px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.svc-tile-icon {
  position: absolute;
  top: -30px;
  left: 28px;
  width: 60px;
  height: 60px;
  border-radius: 14px;
  background: var(--accent-color);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  box-shadow: 0 8px 20px rgba(62, 64, 149, 0.35);
}

.svc-tile h3 {
  font-size: 22px;
  font-weight: 700;
}

.svc-tile h3 a {
  color: var(--heading-color);
}

.svc-tile h3 a:hover {
  color: var(--accent-color);
}

.svc-tile p {
  flex: 1;
}

.svc-tile-link {
  font-weight: 600;
}

.svc-tile-link i {
  transition: margin 0.3s;
}

.svc-tile-link:hover i {
  margin-left: 6px;
}

/* Service details */
.service-details .service-hero img {
  aspect-ratio: 16 / 8;
  object-fit: cover;
  width: 100%;
}

.service-details .service-includes {
  margin-bottom: 40px;
}

.service-details .service-includes h4 {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 18px;
}

.service-details .service-gallery img {
  aspect-ratio: 4 / 3;
  object-fit: cover;
  width: 100%;
}

.service-details .contact-card .contact-item a {
  color: inherit;
}

/* Management team */
.leader-card {
  background: var(--surface-color);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 10px 35px rgba(27, 29, 58, 0.08);
  display: flex;
  flex-direction: column;
}

.leader-photo {
  aspect-ratio: 4 / 4;
  background: linear-gradient(135deg, #1b1d3a, #3e4095);
  overflow: hidden;
}

.leader-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

.leader-initials {
  width: 100%;
  height: 100%;
  min-height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--heading-font);
  font-size: 72px;
  font-weight: 800;
  letter-spacing: 4px;
  color: rgba(255, 255, 255, 0.92);
  background: linear-gradient(135deg, #1b1d3a, #3e4095);
}

.leader-body {
  padding: 24px 26px 28px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.leader-role {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--accent-color);
  margin-bottom: 6px;
}

.leader-card h3,
.leader-modal h3 {
  font-size: 21px;
  font-weight: 700;
  margin-bottom: 12px;
}

.leader-card h3 small,
.leader-modal h3 small {
  font-size: 13px;
  font-weight: 600;
  color: color-mix(in srgb, var(--default-color), transparent 40%);
}

.leader-body p {
  font-size: 15px;
  flex: 1;
}

.leader-more {
  background: none;
  border: 0;
  padding: 0;
  font-weight: 600;
  color: var(--accent-color);
  text-align: left;
}

.leader-modal .modal-content {
  border-radius: 18px;
  border: 0;
}

.leader-modal .modal-header {
  padding: 24px 28px 8px;
  border: 0;
  align-items: flex-start;
}

.leader-modal .modal-body {
  padding: 8px 28px 28px;
}

/* Contact form */
.contact .form-label {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 6px;
}

.contact .php-email-form .form-select {
  padding: 12px 15px;
}

.contact .php-email-form .error-message {
  display: none;
  background: #df1529;
  color: #fff;
  text-align: left;
  padding: 12px 16px;
  border-radius: 8px;
}

.contact .php-email-form .sent-message {
  display: none;
  background: #059652;
  color: #fff;
  text-align: center;
  padding: 12px 16px;
  border-radius: 8px;
}

.contact .php-email-form button[type=submit]:disabled {
  opacity: 0.6;
}

.contact .contact-card a {
  color: inherit;
}

.contact .contact-card a.small {
  color: var(--accent-color);
}

.hp-field {
  position: absolute !important;
  left: -10000px !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* Legal pages */
.legal-page h2 {
  font-size: 22px;
  font-weight: 700;
  margin-top: 34px;
  margin-bottom: 12px;
}

/* 404 */
.error-404 .error-icon i {
  color: var(--amber);
}

/* Footer */
.footer .footer-logo {
  max-height: 52px;
  width: auto;
  margin-right: 10px;
}

.footer .footer-contact a {
  color: inherit;
}

/* WhatsApp floating button */
.whatsapp-float {
  position: fixed;
  left: 16px;
  bottom: 16px;
  z-index: 99999;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: #25d366;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
  transition: transform 0.3s;
}

.whatsapp-float:hover {
  color: #fff;
  transform: scale(1.08);
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* Template references an image that is not shipped with it */
.services::before {
  background: none;
}

.clients .client-logo img {
  max-height: 110px;
}

/* FAQ: no empty gap under collapsed questions */
.faq .faq-item .faq-content .content-inner {
  padding-bottom: 0;
  transition: padding 0.3s ease-in-out;
}

.faq .faq-item.faq-active .faq-content .content-inner {
  padding-bottom: 25px;
}

/*--------------------------------------------------------------
# Mobile menu fix (v1.1)
--------------------------------------------------------------*/
@media (max-width: 1199px) {
  .mobile-nav-toggle {
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
    padding: 8px;
    margin-right: -8px;
  }

  .mobile-nav-active .header {
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
  }

  .mobile-nav-active .navmenu {
    z-index: 100000;
    background: rgba(12, 13, 30, 0.85);
    transition: none;
  }

  .mobile-nav-active .navmenu > ul {
    position: fixed;
    inset: 70px 16px auto 16px;
    max-height: calc(100vh - 90px);
    max-height: calc(100dvh - 90px);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
    animation: cgrMenuIn 0.18s ease-out;
  }

  .mobile-nav-active .mobile-nav-toggle {
    position: fixed;
    top: 14px;
    right: 16px;
    z-index: 100001;
  }

  /* keep floating buttons out of the way while the menu is open */
  .mobile-nav-active .whatsapp-float,
  .mobile-nav-active .scroll-top {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
  }

  .navmenu .dropdown > .dropdown-active {
    animation: cgrMenuIn 0.15s ease-out;
  }
}

@keyframes cgrMenuIn {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: none; }
}

/* WhatsApp button sits below the header/menu layers */
.whatsapp-float {
  z-index: 996;
}
