/* ==========================================================================
   AK GLOBAL — COMPONENTS (SAIF ARCHITECTURE + DUAL THEMES)
   Replicating the exact structural hierarchy of saifaudit.com
   ========================================================================== */

/* --------------------------------------------------------------------------
   01 — TOP BAR (.top)
   -------------------------------------------------------------------------- */
.top {
  background-color: var(--topbar-bg);
  color: var(--topbar-text);
  font-size: 0.78rem;
  padding: 0.35rem 0;
  border-bottom: 1px solid var(--border-subtle);
  transition: background-color var(--transition);
}

.top-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.top .info-text {
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--saif-sky);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.top-right {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.top-social-links {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.top-social-links a {
  color: var(--topbar-text);
  font-size: 0.82rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: color var(--transition);
}

.top-social-links a:hover {
  color: var(--saif-sky);
}

.top-quick-contact {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.top-quick-contact a {
  color: var(--topbar-text);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.top-quick-contact a:hover {
  color: var(--saif-sky);
}

/* --------------------------------------------------------------------------
   02 — HEADER TIER 1: WIDGET HEADER (.widget-header)
   -------------------------------------------------------------------------- */
.flat-header-wrap {
  position: relative;
  z-index: 1000;
}

.widget-header {
  background-color: var(--header-widget-bg);
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--border-subtle);
  transition: background-color var(--transition);
}

.header-wrap-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
}

.logo-area {
  display: inline-flex;
  align-items: center;
}

.logo-area img {
  height: 48px;
  width: auto;
  max-width: 150px;
  object-fit: contain;
  display: block;
  transition: opacity var(--transition);
}

.logo-dark {
  display: none !important;
}

.logo-light {
  display: block !important;
}

[data-theme="dark"] .logo-dark {
  display: block !important;
}

[data-theme="dark"] .logo-light {
  display: none !important;
}

.footer-logo-wrap img {
  height: 40px;
  width: auto;
  max-width: 145px;
  object-fit: contain;
  display: block;
}

.logo-brand-name {
  font-family: var(--font-heading);
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1.05;
}

.logo-brand-name span {
  color: var(--saif-cyan);
}

.logo-brand-sub {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.wrap-widget-header {
  display: flex;
  align-items: center;
  gap: 1.35rem;
}

.widget-info {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.widget-info .info-icon {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-xs);
  background-color: var(--blue-chip-bg);
  color: var(--saif-cyan);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border: 1px solid var(--blue-border);
}

.widget-info .info-icon svg {
  width: 16px;
  height: 16px;
}

.widget-info .info-text h6 {
  font-size: 0.86rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.1rem;
  line-height: 1.2;
}

.widget-info .info-text h6 a:hover {
  color: var(--saif-cyan);
}

.widget-info .info-text p {
  font-size: 0.74rem;
  color: var(--text-muted);
  line-height: 1.2;
  margin: 0;
}

.widget-header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

/* --------------------------------------------------------------------------
   03 — HEADER TIER 2: CLASSIC STICKY NAV (.header-classic)
   -------------------------------------------------------------------------- */
.header-classic {
  background-color: var(--navbar-bg);
  border-bottom: 1px solid var(--navbar-border);
  position: sticky;
  top: 0;
  z-index: 999;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
  transition: background-color var(--transition);
}

.nav-bar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 46px;
}

.mainnav .menu {
  display: flex;
  align-items: center;
  gap: 0.15rem;
  list-style: none;
}

.mainnav .menu > li {
  position: relative;
}

.mainnav .menu > li > a {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.55rem 0.85rem;
  font-family: var(--font-heading);
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--navbar-link);
  letter-spacing: 0.02em;
  transition: var(--transition);
}

.mainnav .menu > li > a:hover,
.mainnav .menu > li.active > a {
  background-color: rgba(0, 153, 255, 0.16);
  color: var(--saif-sky);
}

.mainnav .menu > li > a svg {
  width: 10px;
  height: 10px;
  opacity: 0.8;
}

/* Submenu Dropdown (Saif Style) */
.mainnav .submenu {
  position: absolute;
  top: 100%;
  left: 0;
  width: 290px;
  background-color: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-top: 3px solid var(--saif-cyan);
  box-shadow: var(--shadow-lg);
  padding: 0.5rem 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: var(--transition);
  z-index: 1050;
  list-style: none;
}

.mainnav .menu > li:hover .submenu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.mainnav .submenu li a {
  display: block;
  padding: 0.65rem 1.25rem;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-primary);
  border-bottom: 1px solid var(--border-subtle);
  transition: var(--transition);
}

.mainnav .submenu li:last-child a {
  border-bottom: none;
}

.mainnav .submenu li a:hover {
  background-color: var(--bg-elevated);
  color: var(--saif-cyan);
  padding-left: 1.5rem;
}

/* Extra Icons on Right of Nav (Saif WhatsApp, Phone, Search) */
.menu-extra {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.nav-quick-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: var(--radius-xs);
  background-color: rgba(255, 255, 255, 0.1);
  color: #FFFFFF;
  transition: var(--transition);
}

.nav-quick-btn:hover {
  background-color: var(--saif-cyan);
  color: #FFFFFF;
  transform: translateY(-2px);
}

.btn-menu-mobile {
  display: none;
  background: none;
  border: none;
  color: #FFFFFF;
  cursor: pointer;
  padding: 0.4rem;
}

/* --------------------------------------------------------------------------
   SUBPAGE TITLE BANNER (SAIF STYLE WITH BREADCRUMBS)
   -------------------------------------------------------------------------- */
.page-title-banner {
  background: linear-gradient(135deg, #042254 0%, #00458C 100%);
  color: #FFFFFF;
  padding: 3.5rem 0 3rem 0;
  position: relative;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .page-title-banner {
  background: linear-gradient(135deg, #060D18 0%, #0E1B2E 100%);
  border-bottom: 1px solid var(--border-card);
}

.page-title-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.page-title-content h1 {
  color: #FFFFFF;
  font-size: clamp(1.8rem, 3.2vw, 2.5rem);
  margin-bottom: 0.5rem;
}

.page-title-content p {
  color: rgba(255, 255, 255, 0.85);
  font-size: 1.05rem;
  max-width: 650px;
}

.breadcrumbs {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.86rem;
  color: rgba(255, 255, 255, 0.7);
  background: rgba(255, 255, 255, 0.1);
  padding: 0.4rem 1rem;
  border-radius: var(--radius-xs);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.breadcrumbs a {
  color: #FFFFFF;
  font-weight: 600;
}

.breadcrumbs a:hover {
  color: var(--saif-sky);
}

.breadcrumbs .sep {
  opacity: 0.6;
}

.breadcrumbs .current {
  color: var(--saif-sky);
  font-weight: 600;
}

/* --------------------------------------------------------------------------
   04 — HERO SECTION (BIG IMAGE HERO BANNER WITH SAIF CONTENT OVERLAY)
   -------------------------------------------------------------------------- */
.hero-slider-section {
  position: relative;
  overflow: hidden;
  min-height: 460px;
  display: flex;
  align-items: center;
  background-color: #050E1D;
}

.slide-media {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.slide-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero-img-dark,
.theme-img-dark {
  display: none !important;
}

.hero-img-light,
.theme-img-light {
  display: block !important;
}

[data-theme="dark"] .hero-img-dark,
[data-theme="dark"] .theme-img-dark {
  display: block !important;
}

[data-theme="dark"] .hero-img-light,
[data-theme="dark"] .theme-img-light {
  display: none !important;
}

/* Saif Deep Blue/Navy Gradient Overlay */
.slide-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    rgba(4, 34, 84, 0.92) 0%,
    rgba(4, 34, 84, 0.82) 55%,
    rgba(4, 34, 84, 0.55) 100%
  );
  z-index: 2;
}

[data-theme="dark"] .slide-overlay {
  background: linear-gradient(
    90deg,
    rgba(5, 8, 14, 0.90) 0%,
    rgba(5, 8, 14, 0.72) 50%,
    rgba(5, 8, 14, 0.35) 100%
  );
}

.slide-content {
  position: relative;
  z-index: 3;
  max-width: 760px;
  padding: 3rem 0;
}

.slide-eyebrow {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--saif-sky);
  margin-bottom: 0.85rem;
  padding: 0.25rem 0.7rem;
  background: rgba(0, 153, 255, 0.18);
  border-radius: var(--radius-xs);
  border: 1px solid rgba(0, 153, 255, 0.3);
}

.slide-title {
  font-family: var(--font-heading);
  font-size: clamp(1.85rem, 3.4vw, 2.75rem);
  font-weight: 800;
  color: #FFFFFF;
  line-height: 1.2;
  margin-bottom: 0.95rem;
}

.slide-sub {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.6;
  margin-bottom: 1.65rem;
  max-width: 680px;
}

.slide-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}

/* --------------------------------------------------------------------------
   05 — SAIF HIGHLIGHT BOXES DIRECTLY UNDER HERO (.wrap-iconbox)
   -------------------------------------------------------------------------- */
.hero-highlights-strip {
  position: relative;
  z-index: 10;
  margin-top: -38px;
  margin-bottom: 2.5rem;
}

.wrap-iconbox {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  list-style: none;
}

.iconbox-hero-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xs);
  box-shadow: var(--shadow-md);
  padding: 1.35rem 1.25rem;
  text-align: center;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.iconbox-hero-card::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--saif-cyan);
  opacity: 0;
  transition: opacity var(--transition);
}

.iconbox-hero-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--saif-cyan);
}

.iconbox-hero-card:hover::after {
  opacity: 1;
}

.iconbox-hero-card .box-icon {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--blue-chip-bg);
  color: var(--saif-cyan);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 0.85rem auto;
  border: 1px solid var(--blue-border);
}

.iconbox-hero-card .box-icon svg {
  width: 22px;
  height: 22px;
}

.iconbox-hero-card .box-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.45rem;
}

.iconbox-hero-card p {
  font-size: 0.84rem;
  line-height: 1.5;
}

/* --------------------------------------------------------------------------
   06 — SAIF SERVICES GRID (.iconbox.iconleft.style2) WITH FADED BACKGROUND
   -------------------------------------------------------------------------- */
.services-section-faded-bg {
  position: relative;
  overflow: hidden;
  background-color: var(--bg-primary);
}

.services-section-faded-bg::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: url('../assets/images/services-bg.jpg');
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  opacity: 0.08; /* gentle faded watermark in light mode */
  pointer-events: none;
  z-index: 0;
  transition: opacity var(--transition);
}

[data-theme="dark"] .services-section-faded-bg::before {
  opacity: 0.055; /* gentle faded watermark in dark mode */
  filter: grayscale(85%) brightness(0.8);
}

.services-section-faded-bg > .container {
  position: relative;
  z-index: 1;
}

.services-saif-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.35rem;
}

.iconbox-style2 {
  background: var(--bg-surface);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-xs);
  padding: 1.35rem;
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  transition: var(--transition);
}

.iconbox-style2:hover {
  border-color: var(--saif-cyan);
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}

.iconbox-style2 .box-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-xs);
  background-color: var(--blue-chip-bg);
  color: var(--saif-cyan);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border: 1px solid var(--blue-border);
  transition: var(--transition);
}

.iconbox-style2:hover .box-icon {
  background-color: var(--saif-cyan);
  color: #FFFFFF;
}

.iconbox-style2 .box-icon svg {
  width: 20px;
  height: 20px;
}

.iconbox-style2 .box-content h3 {
  font-size: 1.05rem;
  margin-bottom: 0.45rem;
  color: var(--text-primary);
}

.iconbox-style2:hover .box-content h3 {
  color: var(--saif-cyan);
}

.iconbox-style2 .box-content p {
  font-size: 0.85rem;
  line-height: 1.55;
  margin-bottom: 0.65rem;
}

.iconbox-style2 .readmore {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--saif-cyan);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.iconbox-style2 .readmore:hover {
  color: var(--saif-blue);
  gap: 0.5rem;
}

/* Service Card Capabilities Features Checklist */
.service-features-list {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  margin: 0.85rem 0 1.15rem 0;
  padding-top: 0.75rem;
  border-top: 1px solid var(--border-card);
}

.service-feature-item {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.8rem;
  color: var(--text-secondary);
  line-height: 1.35;
}

.service-feature-item svg {
  color: var(--saif-cyan);
  flex-shrink: 0;
}

/* --------------------------------------------------------------------------
   07 — SAIF INLINE QUICK CONSULTATION BAR (.wrap-formrequest)
   -------------------------------------------------------------------------- */
.quick-consultation-bar {
  background: linear-gradient(135deg, #042254 0%, #00458C 100%);
  color: #FFFFFF;
  padding: 3.25rem 0;
}

[data-theme="dark"] .quick-consultation-bar {
  background: linear-gradient(135deg, #060D18 0%, #0D1C33 100%);
  border-top: 1px solid var(--border-card);
  border-bottom: 1px solid var(--border-card);
}

.quick-bar-header {
  text-align: center;
  max-width: 740px;
  margin: 0 auto 1.75rem auto;
}

.quick-bar-header h2 {
  color: #FFFFFF;
  font-size: clamp(1.45rem, 2.2vw, 2rem);
  margin-bottom: 0.5rem;
}

.quick-bar-header p {
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.94rem;
}

.wrap-formrequest {
  max-width: 980px;
  margin: 0 auto;
  background: rgba(255, 255, 255, 0.08);
  padding: 1.25rem;
  border-radius: var(--radius-xs);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.saif-quick-form {
  display: grid;
  grid-template-columns: 1.3fr 1.2fr 1.2fr auto;
  gap: 0.75rem;
  align-items: center;
}

.saif-quick-form select,
.saif-quick-form input {
  width: 100%;
  height: 44px;
  padding: 0 0.85rem;
  border-radius: var(--radius-xs);
  border: 1px solid rgba(255, 255, 255, 0.25);
  background-color: #FFFFFF;
  color: #1A273A;
  font-family: var(--font-sans);
  font-size: 0.88rem;
}

.saif-quick-form select:focus,
.saif-quick-form input:focus {
  outline: none;
  border-color: var(--saif-cyan);
}

.saif-quick-form button {
  height: 44px;
  padding: 0 1.5rem;
  font-size: 0.82rem;
}

/* --------------------------------------------------------------------------
   08 — SAIF TWO-COLUMN DEEP DIVE (.content-page & .content-page-tick)
   -------------------------------------------------------------------------- */
.deep-dive-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.75rem;
}

.content-page {
  background: var(--bg-surface);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-xs);
  padding: 2.5rem 2rem;
  transition: var(--transition);
}

.content-page:hover {
  border-color: var(--saif-cyan);
  box-shadow: var(--shadow-sm);
}

.content-page h3 {
  font-size: 1.35rem;
  margin-bottom: 1rem;
  color: var(--text-primary);
}

.content-page p {
  font-size: 0.95rem;
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

.content-page-tick ul {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  list-style: none;
}

.content-page-tick li {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text-primary);
}

.content-page-tick li svg {
  width: 18px;
  height: 18px;
  color: var(--saif-cyan);
  flex-shrink: 0;
  margin-top: 0.15rem;
}

/* --------------------------------------------------------------------------
   09 — BIG IMAGE EDITORIAL FEATURE (SAIF SINGLE ABOUT SECTION)
   -------------------------------------------------------------------------- */
.editorial-media-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3.5rem;
  align-items: center;
}

.editorial-img-frame {
  position: relative;
  border-radius: var(--radius-xs);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
  border: 1px solid var(--border-subtle);
}

.editorial-img-frame img {
  width: 100%;
  height: 480px;
  object-fit: cover;
}

.editorial-floating-stat {
  position: absolute;
  bottom: 1.5rem;
  right: 1.5rem;
  background: var(--bg-surface);
  border-left: 4px solid var(--saif-cyan);
  border: 1px solid var(--border-subtle);
  border-left-width: 4px;
  border-left-color: var(--saif-cyan);
  padding: 1.25rem 1.5rem;
  border-radius: var(--radius-xs);
  box-shadow: var(--shadow-lg);
}

.editorial-floating-stat strong {
  display: block;
  font-family: var(--font-heading);
  font-size: 1.6rem;
  color: var(--saif-cyan);
  line-height: 1;
}

.editorial-floating-stat span {
  font-size: 0.8rem;
  color: var(--text-secondary);
}

/* --------------------------------------------------------------------------
   10 — SAIF INDUSTRY BOXES (.contenteh.colour-2)
   -------------------------------------------------------------------------- */
.industries-saif-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.contenteh {
  background: var(--bg-surface);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-xs);
  padding: 2rem 1.5rem;
  transition: var(--transition);
}

.contenteh:hover {
  border-color: var(--saif-cyan);
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.contenteh .box-title {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 1.15rem;
  margin-bottom: 0.85rem;
  color: var(--text-primary);
}

.contenteh .box-title svg {
  width: 22px;
  height: 22px;
  color: var(--saif-cyan);
  flex-shrink: 0;
}

.contenteh p {
  font-size: 0.88rem;
  line-height: 1.6;
}

/* --------------------------------------------------------------------------
   11 — SAIF MAP + CONTACT SPLIT
   -------------------------------------------------------------------------- */
.saif-map-section-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 2rem;
}

.map-responsive {
  border-radius: var(--radius-xs);
  overflow: hidden;
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-md);
  height: 100%;
  min-height: 450px;
}

.map-responsive iframe {
  width: 100%;
  height: 100%;
  min-height: 450px;
  border: 0;
}

.contact-info-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-xs);
  padding: 2.5rem;
  box-shadow: var(--shadow-md);
}

.contact-info-card h2 {
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
  color: var(--saif-cyan);
}

.contact-info-card h4 {
  font-size: 1.12rem;
  margin-bottom: 0.75rem;
  color: var(--text-primary);
}

.contact-address-block {
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  font-size: 0.92rem;
  font-style: normal;
}

.contact-address-line {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.contact-address-line svg {
  width: 16px;
  height: 16px;
  color: var(--saif-cyan);
  flex-shrink: 0;
}

/* --------------------------------------------------------------------------
   12 — SAIF ACCORDION (.flat-accordion & .flat-toggle)
   -------------------------------------------------------------------------- */
.flat-accordion {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  max-width: 860px;
  margin: 0 auto;
}

.flat-toggle {
  background: var(--bg-surface);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-xs);
  overflow: hidden;
  transition: var(--transition);
}

.flat-toggle.active {
  border-color: var(--saif-cyan);
  box-shadow: var(--shadow-sm);
}

.toggle-title {
  width: 100%;
  padding: 1.15rem 1.5rem;
  font-family: var(--font-heading);
  font-size: 1.02rem;
  font-weight: 700;
  color: var(--text-primary);
  background: none;
  border: none;
  text-align: left;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: color var(--transition);
}

.toggle-title:hover {
  color: var(--saif-cyan);
}

.toggle-icon {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--blue-chip-bg);
  color: var(--saif-cyan);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform var(--transition);
  flex-shrink: 0;
}

.flat-toggle.active .toggle-icon {
  transform: rotate(180deg);
  background: var(--saif-cyan);
  color: #FFFFFF;
}

.toggle-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease-out, padding 0.35s ease-out;
  padding: 0 1.5rem;
}

.flat-toggle.active .toggle-content {
  max-height: 600px;
  padding: 0 1.5rem 1.35rem 1.5rem;
}

/* --------------------------------------------------------------------------
   CONTACT & CONSULTATION RESPONSIVE LAYOUTS
   -------------------------------------------------------------------------- */
.contact-channels-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
  margin-bottom: 2.5rem;
}

@media (max-width: 1024px) {
  .contact-channels-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }
}

@media (max-width: 560px) {
  .contact-channels-grid {
    grid-template-columns: 1fr;
  }
}

.channel-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-xs);
  padding: 1.35rem 1.2rem;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  position: relative;
  overflow: hidden;
}

.channel-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: var(--saif-blue);
  opacity: 0;
  transition: opacity var(--transition);
}

.channel-card:hover {
  transform: translateY(-3px);
  border-color: var(--saif-cyan);
  box-shadow: var(--shadow-md);
}

.channel-card:hover::before {
  opacity: 1;
}

.channel-icon {
  width: 42px;
  height: 42px;
  border-radius: var(--radius-xs);
  background: var(--blue-chip-bg);
  color: var(--saif-cyan);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.channel-icon svg {
  width: 20px;
  height: 20px;
}

.channel-card h4 {
  font-size: 1rem;
  font-weight: 700;
  margin: 0;
  color: var(--text-primary);
}

.channel-card p {
  font-size: 0.84rem;
  line-height: 1.45;
  color: var(--text-secondary);
  margin: 0;
}

.channel-card a {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--saif-cyan);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-top: auto;
}

.channel-card a:hover {
  color: var(--saif-blue);
}

/* Contact & Consultation 2-Column Split Grid */
.contact-split-layout {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 2.25rem;
  align-items: start;
}

@media (max-width: 992px) {
  .contact-split-layout {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

/* Two-column Input Form Rows */
.form-row-2col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.15rem;
}

@media (max-width: 640px) {
  .form-row-2col {
    grid-template-columns: 1fr;
    gap: 0.85rem;
  }
}

/* Responsive Action Buttons */
.contact-btn-group {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.contact-btn-group .flat-button {
  flex: 1;
  min-width: 150px;
  justify-content: center;
  text-align: center;
}

@media (max-width: 560px) {
  .contact-btn-group {
    flex-direction: column;
  }
  .contact-btn-group .flat-button {
    width: 100%;
    flex: none;
  }
}

/* Responsive Meeting Mode Options */
.meeting-mode-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
  margin-top: 0.35rem;
}

@media (max-width: 640px) {
  .meeting-mode-grid {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }
}

/* Contact Form Specifics */
.contact-form-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-xs);
  padding: 2.25rem 2rem;
  box-shadow: var(--shadow-sm);
}

@media (max-width: 768px) {
  .contact-form-card {
    padding: 1.5rem 1.25rem;
  }
}

@media (max-width: 480px) {
  .contact-form-card {
    padding: 1.25rem 1rem;
  }
}

.contact-form-group {
  margin-bottom: 1.15rem;
}

.contact-form-group label {
  display: block;
  font-size: 0.84rem;
  font-weight: 700;
  margin-bottom: 0.35rem;
  color: var(--text-primary);
}

.contact-input,
.contact-select,
.contact-textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  background: var(--bg-secondary);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-xs);
  color: var(--text-primary);
  font-family: inherit;
  font-size: 0.9rem;
  transition: border-color var(--transition), box-shadow var(--transition);
}

.contact-input:focus,
.contact-select:focus,
.contact-textarea:focus {
  outline: none;
  border-color: var(--saif-cyan);
  box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.2);
}

.contact-trust-badges {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex-wrap: wrap;
  margin-top: 1.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border-subtle);
  font-size: 0.8rem;
  color: var(--text-secondary);
}

@media (max-width: 640px) {
  .contact-trust-badges {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.65rem;
  }

  .map-responsive,
  .map-responsive iframe {
    min-height: 320px;
    height: 320px;
  }
}

.contact-trust-item {
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.contact-trust-item svg {
  color: var(--saif-cyan);
  flex-shrink: 0;
}

/* --------------------------------------------------------------------------
   FAQ PAGE ENHANCEMENTS (TOPIC FILTER PILLS + 2-COLUMN SPLIT WITH SIDEBAR)
   -------------------------------------------------------------------------- */
.faq-filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 2.5rem;
  justify-content: center;
}

.faq-filter-btn {
  background: var(--bg-surface);
  border: 1px solid var(--border-card);
  padding: 0.55rem 1.15rem;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
  cursor: pointer;
  transition: var(--transition);
}

.faq-filter-btn:hover,
.faq-filter-btn.active {
  background: var(--saif-blue);
  color: #FFFFFF;
  border-color: var(--saif-blue);
  transform: translateY(-1px);
}

[data-theme="dark"] .faq-filter-btn:hover,
[data-theme="dark"] .faq-filter-btn.active {
  background: var(--saif-cyan);
  color: #05080E;
  border-color: var(--saif-cyan);
}

.faq-layout-grid {
  display: grid;
  grid-template-columns: 2fr 1.1fr;
  gap: 2.5rem;
  align-items: flex-start;
}

@media (max-width: 991px) {
  .faq-layout-grid {
    grid-template-columns: 1fr;
  }
}

.faq-sidebar-sticky {
  position: sticky;
  top: 100px;
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
}

.faq-sidebar-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-xs);
  padding: 1.75rem;
  box-shadow: var(--shadow-sm);
}

.faq-sidebar-card h4 {
  font-size: 1.15rem;
  margin-bottom: 0.75rem;
  color: var(--text-primary);
}

.faq-sidebar-card p {
  font-size: 0.88rem;
  line-height: 1.6;
  color: var(--text-secondary);
  margin-bottom: 1.25rem;
}

/* --------------------------------------------------------------------------
   13 — FOOTER (SAIF 4-COLUMN CORPORATE FOOTER)
   -------------------------------------------------------------------------- */
.site-footer {
  background-color: var(--bg-secondary);
  border-top: 1px solid var(--border-subtle);
  padding: 4.5rem 0 2rem 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1.2fr 1.2fr;
  gap: 3rem;
  margin-bottom: 3.5rem;
}

.footer-col h4 {
  font-size: 0.95rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-primary);
  margin-bottom: 1.35rem;
  position: relative;
  padding-bottom: 0.45rem;
}

.footer-col h4::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 28px;
  height: 2px;
  background-color: var(--saif-cyan);
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.footer-links a {
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.footer-links a:hover {
  color: var(--saif-cyan);
  padding-left: 4px;
}

.footer-bottom {
  padding-top: 2rem;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
}

/* --------------------------------------------------------------------------
   RESPONSIVE DESIGN (TABLET 1024px, MOBILE 768px & SMALL SCREENS 480px)
   -------------------------------------------------------------------------- */
@media (max-width: 1024px) {
  .wrap-widget-header .widget-info {
    display: none;
  }
  .wrap-iconbox,
  .services-saif-grid,
  .deep-dive-grid,
  .industries-saif-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .saif-quick-form {
    grid-template-columns: 1fr 1fr;
  }
  .editorial-media-grid,
  .saif-map-section-grid {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
  }
  .contact-channels-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .section {
    padding-top: 3.5rem;
    padding-bottom: 3.5rem;
  }

  /* Top Bar */
  .top-right {
    display: none;
  }
  .top-inner {
    justify-content: center;
    text-align: center;
  }
  .top .info-text {
    font-size: 0.76rem;
  }

  /* Widget Header: Keep actions (Theme toggle & CTA) */
  .widget-header {
    padding: 0.75rem 0;
  }
  .logo-area img {
    height: 44px;
    max-width: 135px;
  }
  .wrap-widget-header .widget-info {
    display: none;
  }
  .wrap-widget-header {
    display: flex;
    align-items: center;
  }
  .widget-header-actions {
    gap: 0.65rem;
  }
  .widget-header-actions .flat-button {
    padding: 0.55rem 0.9rem;
    font-size: 0.76rem;
    letter-spacing: 0.03em;
  }

  /* Sticky Header Classic */
  .mainnav {
    display: none;
  }
  .btn-menu-mobile {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
  }

  /* Hero Section */
  .hero-slider-section {
    min-height: 460px;
  }
  .slide-content {
    padding: 3rem 0;
    max-width: 100%;
  }
  .slide-eyebrow {
    font-size: 0.76rem;
    margin-bottom: 0.75rem;
  }
  .slide-title {
    font-size: clamp(1.65rem, 5.5vw, 2.35rem);
    line-height: 1.22;
  }
  .slide-sub {
    font-size: 0.94rem;
    line-height: 1.6;
    margin-bottom: 1.75rem;
  }
  .slide-cta {
    flex-direction: column;
    width: 100%;
    gap: 0.75rem;
  }
  .slide-cta .flat-button {
    width: 100%;
    justify-content: center;
  }

  /* Highlight Strip & Grids */
  .hero-highlights-strip {
    margin-top: 1.5rem;
  }
  .wrap-iconbox,
  .services-saif-grid,
  .deep-dive-grid,
  .industries-saif-grid,
  .faq-layout-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  /* Quick Consultation Bar */
  .quick-consultation-bar {
    padding: 3rem 0;
  }
  .wrap-formrequest {
    padding: 1.25rem 1rem;
  }
  .saif-quick-form {
    grid-template-columns: 1fr;
    gap: 0.85rem;
  }
  .saif-quick-form button {
    width: 100%;
    justify-content: center;
  }

  /* Two Column Forms in Contact & Consultation */
  .contact-form-card {
    padding: 1.5rem 1.25rem;
  }
  .contact-form-group > div[style*="grid"] {
    grid-template-columns: 1fr !important;
    gap: 0.85rem !important;
  }

  /* Editorial Showcase & Floater */
  .editorial-img-frame {
    margin-bottom: 1.25rem;
  }
  .editorial-floating-stat {
    bottom: 12px;
    right: 12px;
    padding: 0.65rem 1rem;
  }
  .editorial-floating-stat strong {
    font-size: 1.35rem;
  }

  /* Page Title Banner */
  .page-title-banner {
    padding: 2.5rem 0 2rem 0;
  }
  .page-title-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }
  .breadcrumbs {
    font-size: 0.82rem;
  }

  /* Footer */
  .site-footer {
    padding: 3.5rem 0 1.5rem 0;
  }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2.25rem;
    margin-bottom: 2.5rem;
  }
  .footer-bottom {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .container {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .widget-header-actions .flat-button {
    display: none;
  }

  .slide-title {
    font-size: 1.65rem;
  }

  .iconbox-hero-card,
  .contenteh {
    padding: 1.5rem 1.25rem;
  }

  .contact-channels-grid {
    grid-template-columns: 1fr;
  }

  .faq-sidebar-sticky {
    position: static;
  }
}

/* Mobile Drawer */
.mobile-nav-drawer {
  position: fixed;
  top: 0;
  right: -100%;
  width: 320px;
  max-width: 88vw;
  height: 100vh;
  background: var(--bg-surface);
  box-shadow: var(--shadow-lg);
  z-index: 2000;
  padding: 1.75rem 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  transition: right 300ms ease;
}

.mobile-nav-drawer.open {
  right: 0;
}

.mobile-drawer-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border-subtle);
}

.mobile-nav-links {
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
}

.mobile-nav-link {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-primary);
}

.mobile-drawer-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.55);
  z-index: 1999;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
}

.mobile-drawer-backdrop.open {
  opacity: 1;
  visibility: visible;
}

/* --------------------------------------------------------------------------
   14 — FLOATING WHATSAPP ROUND ACTION BUTTON
   -------------------------------------------------------------------------- */
.floating-whatsapp {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 1500;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
  color: #FFFFFF;
  text-decoration: none;
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.42), 0 2px 6px rgba(0, 0, 0, 0.15);
  transition: transform 250ms cubic-bezier(0.16, 1, 0.3, 1), box-shadow 250ms ease;
}

.floating-whatsapp-icon {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.floating-whatsapp-icon svg {
  width: 32px;
  height: 32px;
  fill: currentColor;
}

.floating-whatsapp-text {
  display: none !important;
}

.floating-whatsapp::before {
  content: "";
  position: absolute;
  top: -4px;
  left: -4px;
  right: -4px;
  bottom: -4px;
  border-radius: 50%;
  border: 2px solid rgba(37, 211, 102, 0.6);
  animation: wa-pulse 2.4s infinite cubic-bezier(0.25, 0, 0, 1);
  pointer-events: none;
}

@keyframes wa-pulse {
  0% {
    transform: scale(0.95);
    opacity: 1;
  }
  70% {
    transform: scale(1.15);
    opacity: 0;
  }
  100% {
    transform: scale(1.15);
    opacity: 0;
  }
}

.floating-whatsapp:hover {
  transform: translateY(-3px) scale(1.08);
  box-shadow: 0 12px 28px rgba(37, 211, 102, 0.55), 0 4px 10px rgba(0, 0, 0, 0.2);
  color: #FFFFFF;
}

@media (max-width: 768px) {
  .floating-whatsapp {
    bottom: 20px;
    right: 20px;
    width: 52px;
    height: 52px;
  }

  .floating-whatsapp-icon,
  .floating-whatsapp-icon svg {
    width: 28px;
    height: 28px;
  }
}

/* --------------------------------------------------------------------------
   15 — SCROLL-DRIVEN ANIMATIONS & EFFECTS (UP & DOWN SCROLL INTERACTION)
   -------------------------------------------------------------------------- */
/* Dynamic Scroll Progress Bar at the top of the browser window */
.scroll-progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0%;
  background: linear-gradient(90deg, var(--saif-blue), var(--saif-cyan), var(--saif-sky));
  z-index: 10000;
  transition: width 90ms ease-out;
  pointer-events: none;
}

[data-theme="dark"] .scroll-progress-bar {
  background: linear-gradient(90deg, #0077CC, #00A3FF, #38BDF8);
  box-shadow: 0 0 8px rgba(0, 163, 255, 0.6);
}

/* Base Scroll Reveal Animation */
.reveal-on-scroll {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

.reveal-on-scroll.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Lateral Reveals (Left & Right Split Columns) */
.reveal-on-scroll.reveal-left {
  transform: translateX(-36px);
}

.reveal-on-scroll.reveal-left.is-visible {
  transform: translateX(0);
}

.reveal-on-scroll.reveal-right {
  transform: translateX(36px);
}

.reveal-on-scroll.reveal-right.is-visible {
  transform: translateX(0);
}

/* Scale & Pop Reveal (Images & Badges) */
.reveal-on-scroll.reveal-scale {
  transform: scale(0.94);
}

.reveal-on-scroll.reveal-scale.is-visible {
  transform: scale(1);
}

/* Staggered Grid Delays */
.reveal-delay-1 { transition-delay: 80ms; }
.reveal-delay-2 { transition-delay: 160ms; }
.reveal-delay-3 { transition-delay: 240ms; }
.reveal-delay-4 { transition-delay: 320ms; }

/* Sticky Header Scrolled Elevation */
.header-classic.scrolled {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.22);
}

[data-theme="dark"] .header-classic.scrolled {
  box-shadow: 0 8px 26px rgba(0, 0, 0, 0.65);
}

/* Scroll to Top Floating Button */
.btn-scroll-top {
  position: fixed;
  bottom: 96px;
  right: 28px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--bg-surface);
  color: var(--text-primary);
  border: 1px solid var(--border-card);
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 1400;
  opacity: 0;
  visibility: hidden;
  transform: translateY(14px);
  transition: opacity 250ms ease, transform 250ms ease, background-color var(--transition), border-color var(--transition);
}

.btn-scroll-top.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.btn-scroll-top:hover {
  background: var(--saif-cyan);
  color: #FFFFFF;
  border-color: var(--saif-cyan);
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

.btn-scroll-top svg {
  width: 18px;
  height: 18px;
}

@media (max-width: 768px) {
  .btn-scroll-top {
    bottom: 80px;
    right: 20px;
    width: 38px;
    height: 38px;
  }
}

/* Accessibility: Respect Reduced Motion Preference */
@media (prefers-reduced-motion: reduce) {
  .reveal-on-scroll,
  .reveal-on-scroll.reveal-left,
  .reveal-on-scroll.reveal-right,
  .reveal-on-scroll.reveal-scale {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
  .scroll-progress-bar {
    display: none;
  }
}
