/* =========================================================
   SysRidge - Full site styles (Clean + Hover cards move LEFT -> RIGHT)
   Notes:
   - Removed duplicate/contradicting .pcard/.cards-scroll blocks
   - Hover effect moves card to the right (desktop only)
   - Mobile keeps snap scroll and no hover movement
   ========================================================= */

/* ===== Reset / Base ===== */
*, *::before, *::after { box-sizing: border-box; }

html { height: 100%; }

body{
  min-height: 100vh;
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #0b1220;
  background: #ffffff;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img{ max-width: 100%; display: block; height: auto; }
a{ color: inherit; text-decoration: none; }
button{ font-family: inherit; cursor: pointer; }

/* ===== Layout helpers ===== */
.container{
  width: min(1120px, calc(100% - 48px));
  margin-inline: auto;
}

.section{ padding: 48px 0; }
.soft, .section-soft-blue{ background: #f1f5f9; }

.section-head h2{
  margin: 0 0 10px;
  font-size: 44px;
  letter-spacing: -0.02em;
  line-height: 1.05;
}
.section-head p{
  margin: 0;
  color: #516075;
  font-size: 18px;
  line-height: 1.6;
  max-width: 72ch;
}
.section-head.center{ text-align: center; }
.section-head.center p{ margin-inline: auto; }

/* ===== Header ===== */
.site-header{
  position: -webkit-sticky;
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,255,255,0.9);
  backdrop-filter: saturate(180%) blur(10px);
  -webkit-backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid rgba(15,23,42,0.08);
}

.header-inner{
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
}

.brand{ display: flex; align-items: center; gap: 10px; }

/* Desktop / Default View */
.brand-logo{
  height: 64px;
  width: auto;
  display: block;
  object-fit: contain;
  transform: scale(1.8);
  transform-origin: left center;
}

/* Mobile View */
@media (max-width: 640px){
  .brand-logo{ height: 42px; }
}

.nav{
  display: flex;
  align-items: center;
  gap: 22px;
  font-weight: 600;
  color: #233044;
}

/* Services dropdown */
.nav-dropdown{ position: relative; display: inline-flex; align-items: center; }

.nav-link{
  background: transparent;
  border: 0;
  padding: 10px 8px;
  font: inherit;
  font-weight: 600;
  color: #233044;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.dropdown-menu{
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  min-width: 180px;
  background: #fff;
  border: 1px solid rgba(15,23,42,0.10);
  box-shadow: 0 14px 36px rgba(2,8,23,0.12);
  border-radius: 14px;
  padding: 8px;
  display: none;
  z-index: 9999;
}

.dropdown-menu a{
  display: block;
  padding: 10px 12px;
  border-radius: 12px;
  font-weight: 600;
  color: #233044;
}

.dropdown-menu a:hover{ background: rgba(2,8,23,0.04); }

/* Click-open only */
.nav-dropdown:hover .dropdown-menu{ display: none; }
.nav-dropdown.open .dropdown-menu{ display: block; }

/* ===== Buttons ===== */
.btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 16px;
  border-radius: 14px;
  border: 1px solid transparent;
  background: #1d4ed8;
  color: #fff;
  font-weight: 700;
  box-shadow: 0 10px 24px rgba(2,8,23,0.10);
  transition: filter 0.2s ease, transform 0.1s ease;
  text-align: center;
}
.btn:hover{ filter: brightness(1.1); }
.btn:active{ transform: translateY(1px); }

.btn-outline{
  background: transparent;
  border-color: rgba(15,23,42,0.14);
  color: #0b1220;
  box-shadow: none;
}
.btn-outline:hover{ background: rgba(2,8,23,0.03); }

.btn-ghost{
  background: transparent;
  color: #1d4ed8;
  border-color: transparent;
  box-shadow: none;
}
.btn-ghost:hover{ background: rgba(29,78,216,0.08); }

.btn-small{ padding: 10px 14px; border-radius: 12px; }
.btn-full{ width: 100%; }

/* ===== Burger Button ===== */
.burger{
  display: none;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: 1px solid rgba(15,23,42,0.14);
  background: #fff;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  padding: 0;
  gap: 5px;
  z-index: 1001;
}
.burger span{
  display: block;
  height: 2px;
  width: 20px;
  background: #0b1220;
  border-radius: 2px;
  transition: 0.2s ease;
}

/* ===== Hero Section ===== */
.hero{ padding: 24px 0 32px; }

.hero-card{
  border-radius: 24px;
  background: linear-gradient(90deg, #f2f9ff 0%, #ffffff 100%);
  border: 1px solid rgba(15,23,42,0.08);
  box-shadow: 0 18px 50px rgba(2,8,23,0.08);
}

.hero-inner{ padding: 0; }

.hero-grid{
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: 20px;
  padding: 20px;
  align-items: center;
}

.hero-copy h1{
  margin: 0 0 14px;
  font-size: 54px;
  line-height: 1.02;
  letter-spacing: -0.03em;
}
.accent{ color: #1d4ed8; }

.lead{
  margin: 0 0 12px;
  color: #516075;
  font-size: 18px;
  line-height: 1.6;
  max-width: 64ch;
}

.hero-cta{ display: flex; gap: 12px; flex-wrap: wrap; margin: 12px 0; }

.trust-row{ display: flex; gap: 8px; flex-wrap: wrap; }
.trust-pill{
  font-size: 13px;
  font-weight: 700;
  color: #233044;
  background: #eef2ff;
  border: 1px solid rgba(29,78,216,0.18);
  padding: 8px 10px;
  border-radius: 999px;
}

.rightside-wrap{
  background: transparent;
  padding: 0;
  box-shadow: none;
  border-radius: 0;
  overflow: visible;
}

.rightside-img{
  display: block;
  width: 125%;
  max-width: none;
  height: auto;
  transform: translateX(-15%) translateY(2%) scale(1.02);
}

/* =========================================================
   Cards / Horizontal scroll + HOVER MOVES RIGHT (desktop)
   ========================================================= */


/* move RIGHT on hover (desktop only) */
/* =========================================================
   Cards / Horizontal scroll
   Hover moves card LEFT -> RIGHT (real layout shift)
   ========================================================= */

/* =========================================================
   Cards / Horizontal scroll
   Hover moves card LEFT -> RIGHT (real layout shift)
   ========================================================= */

.cards-scroll{
  display: flex;
  gap: 12px;
  padding: 12px 4px 22px;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  -ms-overflow-style: none;

  /* lets the last card scroll fully into view */
  padding-right: 48px;
}
.cards-scroll::-webkit-scrollbar{ display: none; }

.pcard{
  flex: 0 0 320px;
  padding: 12px;
  border-radius: 16px;
  border: 1px solid rgba(15,23,42,0.08);
  box-shadow: 0 8px 20px rgba(2,8,23,0.06);
  background: #fff;

  /* IMPORTANT: no translateX here */
  transform: none !important;

  /* smooth left->right shift */
  margin-left: 0;
  transition: margin-left 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.cards-scroll{
  cursor: grab;
  user-select: none;
  overflow-x: auto;
  overflow-y: visible;
  scroll-behavior: auto; /* IMPORTANT: don't fight JS */
  -webkit-overflow-scrolling: touch;
}

.cards-scroll.dragging{
  cursor: grabbing;
}

.cards-scroll .pcard{
  user-select: none;
}


/* Desktop hover: move RIGHT */
@media (hover:hover) and (pointer:fine){
  .pcard{
    transform: translateZ(0);
  }
  .pcard:hover{
    transform: translateY(-4px);
    box-shadow: 0 18px 40px rgba(2,8,23,0.14);
    border-color: rgba(29,78,216,0.22);
  }
}


/* Mobile: keep stable (no hover movement) */
@media (max-width: 900px){
  .pcard:hover{ margin-left: 0; }
}

/* Card text */
.pcard h3{ margin: 0 0 8px; font-size: 18px; letter-spacing: -0.02em; }
.pcard-summary{ margin: 0 0 10px; color: #516075; line-height: 1.55; }
.pcard-more p{ margin: 0; color: #233044; line-height: 1.55; }

/* Card tints */
.pbg-1 { background: #eff6ff; }
.pbg-2 { background: #fef9c3; }
.pbg-3 { background: #ecfdf3; }
.pbg-4 { background: #fef2f2; }
.pbg-5 { background: #f5f3ff; }
.pbg-6 { background: #f1f5f9; }
.pbg-7 { background: #f4f4ff; }




/* ===== Grids ===== */
.grid-2{
  display: grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 12px;
  margin-top: 12px;
}
.grid-3{
  display: grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 12px;
  margin-top: 12px;
}

/* ===== Icon cards ===== */
.icon-card{
  display: flex;
  gap: 12px;
  padding: 12px;
  border-radius: 16px;
  background: #fff;
  border: 1px solid rgba(15,23,42,0.08);
}
.icon{
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: #eef2ff;
  border: 1px solid rgba(29,78,216,0.20);
  font-weight: 900;
  color: #1d4ed8;
}
.icon-card h3{ margin: 0 0 6px; }
.icon-card p{ margin: 0; color: #516075; line-height: 1.55; }

/* ===== Logo row / Marquee ===== */
.logo-row{
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
  color: #516075;
}

.logo-marquee{ overflow: hidden; width: 100%; margin-top: 12px; }

.marquee-track{
  display: flex;
  gap: 24px;
  align-items: center;
  white-space: nowrap;
  animation: marquee 30s linear infinite;
  transform: translate3d(0, 0, 0);
  will-change: transform;
}
.marquee-track:hover{ animation-play-state: paused; }
.marquee-track > .logo-item{ flex-shrink: 0; }

.logo-item{ display: flex; align-items: center; gap: 12px; color: #516075; padding-right: 18px; }
.logo-item img{ height: 36px; width: auto; display: block; }
.logo-fallback{ font-weight: 700; color: #516075; font-size: 15px; }

@keyframes marquee{
  from{ transform: translateX(0%); }
  to{ transform: translateX(-50%); }
}

.logo-item img[style*="display: none"] + .logo-fallback{ display: inline-block; }
.logo-item img + .logo-fallback{ display: none; }

/* ===== Band / Steps / Solutions ===== */
.band{
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 20px;
  padding: 22px;
  border-radius: 24px;
  background: linear-gradient(135deg,#1d4ed8,#0b2b4a);
  color: #fff;
  overflow: hidden;
}
.band-copy h2{ margin: 0 0 10px; font-size: 38px; letter-spacing: -0.02em; }
.band-copy p{ margin: 0 0 14px; color: rgba(255,255,255,0.85); line-height: 1.6; }
.band-actions{ display: flex; gap: 12px; flex-wrap: wrap; margin: 12px 0; }

.btn-invert{ background: #fff; color: #0b1220; box-shadow: none; }
.btn-invert:hover{ background: #f8fafc; }
.btn-ghost-invert{ background: transparent; border: 1px solid rgba(255,255,255,0.28); color: #fff; box-shadow: none; }
.btn-ghost-invert:hover{ background: rgba(255,255,255,0.1); }

/* Band Pills */
.band-pills{ display: flex; gap: 8px; margin-top: 15px; flex-wrap: wrap; }
.band-pill{
  display: inline-block;
  padding: 8px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.25);
  background: rgba(255,255,255,0.10);
  font-weight: 700;
  font-size: 13px;
}
.band-media{ display: grid; place-items: center; }
.mini-screen{
  width: 100%;
  max-width: 340px;
  border-radius: 18px;
  background: rgba(255,255,255,0.10);
  border: 1px solid rgba(255,255,255,0.18);
  padding: 14px;
}
.mini-top{ height: 10px; border-radius: 999px; background: rgba(255,255,255,0.20); margin-bottom: 12px; }
.bars{ display: flex; gap: 8px; align-items: flex-end; height: 120px; }
.bars span{ flex: 1; border-radius: 10px; background: rgba(255,255,255,0.40); }
.mini-bottom{ display: flex; gap: 8px; margin-top: 12px; flex-wrap: wrap; }
.pill{ padding: 8px 10px; border-radius: 999px; background: rgba(255,255,255,0.16); font-weight: 700; font-size: 12px; }
.accent-pill{ background: rgba(255,255,255,0.28); }

.steps{
  display: grid;
  grid-template-columns: repeat(4, minmax(0,1fr));
  gap: 12px;
  margin-top: 12px;
}
.step{
  padding: 12px;
  border-radius: 16px;
  background: #fff;
  border: 1px solid rgba(15,23,42,0.08);
}
.step-num{
  width: 34px;
  height: 34px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: #eef2ff;
  border: 1px solid rgba(29,78,216,0.20);
  color: #1d4ed8;
  font-weight: 900;
  margin-bottom: 10px;
}
.step h3{ margin: 0 0 6px; }
.step p{ margin: 0; color: #516075; line-height: 1.55; }

.solution-card{
  position: relative;
  padding: 12px;
  border-radius: 16px;
  background: #fff;
  border: 1px solid rgba(15,23,42,0.08);
}
.solution-card h3{ margin: 12px 0 6px; }
.solution-card p{ margin: 0; color: #516075; line-height: 1.55; }

.tag{
  position: absolute;
  top: 14px;
  right: 14px;
  padding: 7px 10px;
  border-radius: 999px;
  background: #eef2ff;
  border: 1px solid rgba(29,78,216,0.20);
  color: #1d4ed8;
  font-weight: 800;
  font-size: 12px;
}
.solution-ill{ height: 56px; }
.solution-ill .circle{ width: 18px; height: 18px; border-radius: 999px; background: #1d4ed8; margin-bottom: 10px; }
.solution-ill .line{ height: 8px; border-radius: 999px; background: #e5e7eb; margin-bottom: 8px; }
.solution-ill .line.small{ width: 70%; }

/* ===== Accordion ===== */
.accordion{
  margin-top: 14px;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(15,23,42,0.08);
  background: #fff;
}
.acc-item{
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 18px;
  background: #fff;
  border: 0;
  border-bottom: 1px solid rgba(15,23,42,0.08);
  font-weight: 800;
  text-align: left;
}
.acc-panel{ padding: 14px 18px; background: #fff; overflow: hidden; }
.acc-panel[hidden]{ display: none; }
.acc-body{ color: #516075; line-height: 1.6; }
.acc-icon{ font-weight: 900; color: #1d4ed8; }

/* ===== Results Section ===== */
.results{
  display: grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 12px;
  margin-top: 12px;
}
.result-card{
  padding: 12px;
  border-radius: 16px;
  background: #fff;
  border: 1px solid rgba(15,23,42,0.08);
}
.result-card.highlight{
  background: #0b2b4a;
  color: #fff;
  border-color: rgba(255,255,255,0.12);
}
.result-big{
  font-size: 40px;
  font-weight: 900;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}
.result-card p{ color: #516075; }
.result-card.highlight p{ color: rgba(255,255,255,0.80); }

/* ===== Contact Section ===== */
.contact{
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 12px;
  align-items: start;
}
.contact-left h2{ margin: 0 0 10px; }
.contact-left p{ margin: 0 0 10px; color: #516075; line-height: 1.6; }
.contact-points{ color: #233044; font-weight: 600; display: grid; gap: 6px; }

/* Contact Details Box */
.contact-details{
  margin-top: 18px;
  padding: 18px 22px;
  border: 2px solid rgba(37, 99, 235, 0.45);
  border-radius: 18px;
  background: transparent;
  max-width: 520px;
  transition: border-color 0.2s;
}
.contact-details:hover{ border-color: #2563eb; }

.contact-title{
  font-weight: 800;
  color: #0b1220;
  margin-bottom: 12px;
  letter-spacing: -0.01em;
}
.contact-row{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
  border-top: 1px solid rgba(14,165,233,0.25);
}
.contact-row:first-of-type{ border-top: 0; padding-top: 0; }
.contact-label{ color: #516075; font-weight: 700; font-size: 14px; }
.contact-value{ color: #1d4ed8; font-weight: 800; }
.contact-value:hover{ text-decoration: underline; }

/* Contact Form */
.contact-card{
  background: #fff;
  border: 2px solid rgba(37, 99, 235, 0.45);
  border-radius: 18px;
  padding: 12px;
  box-shadow: 0 8px 20px rgba(2,8,23,0.06);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.contact-card:focus-within{
  border-color: #2563eb;
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.10);
}

.contact-card label{
  display: grid;
  gap: 6px;
  margin-bottom: 12px;
  font-weight: 700;
  color: #233044;
}
.contact-card input,
.contact-card textarea{
  width: 100%;
  padding: 12px 12px;
  border-radius: 14px;
  border: 1px solid rgba(15,23,42,0.14);
  outline: none;
  font: inherit;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.contact-card input::placeholder,
.contact-card textarea::placeholder{ color: rgba(11, 18, 32, 0.10); opacity: 1; }

.contact-card input:focus,
.contact-card textarea:focus{
  border-color: rgba(29,78,216,0.55);
  box-shadow: 0 0 0 4px rgba(29,78,216,0.12);
}

.char-count{
  margin-top: 8px;
  font-size: 12px;
  color: #94a3b8;
  text-align: right;
  font-weight: 600;
}
.hp-field{ position: absolute !important; left: -9999px !important; }

/* ===== Contact form typography (Calibri, not bold) ===== */
/* ===== Contact form: labels bold (site font), inputs Calibri normal ===== */

/* Labels (Name, Email, Phone, etc.) */
.contact-card label{
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-weight: 800;              /* bold like the rest of the site */
  color: #233044;
}

/* User-typed / entered text (Raja Nomi, etc.) */
.contact-card input,
.contact-card textarea{
  font-family: Calibri, "Segoe UI", Arial, sans-serif;  /* Calibri */
  font-weight: 400;                                     /* NOT bold */
  color: #0b1220;
}

/* Placeholder text */
.contact-card input::placeholder,
.contact-card textarea::placeholder{
  font-family: Calibri, "Segoe UI", Arial, sans-serif;
  font-weight: 400;
}

/* Autofill (Chrome) so it doesn't look bold/different */
.contact-card input:-webkit-autofill,
.contact-card textarea:-webkit-autofill{
  -webkit-text-fill-color: #0b1220;
  font-family: Calibri, "Segoe UI", Arial, sans-serif !important;
  font-weight: 400 !important;
  transition: background-color 9999s ease-in-out 0s;
}



/* ===== Footer ===== */
.footer{
  padding: 28px 0;
  border-top: 1px solid rgba(15,23,42,0.08);
  background: #fff;
}
.footer-inner{
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
  flex-wrap: wrap;
}
.footer-left p{ margin: 8px 0 0; color: #516075; }
.footer-cols{ display: flex; gap: 24px; flex-wrap: wrap; }
.footer-title{ font-weight: 900; margin-bottom: 10px; }
.footer-cols a{ display: block; color: #516075; margin: 8px 0; font-weight: 600; }
.footer-cols a:hover{ color: #1d4ed8; }

.footer-bottom{
  background: #f2f9ff;
  border-top: 1px solid #e6f2fb;
  padding: 18px 0;
  margin-top: 18px;
}
.footer-bottom-inner{
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  color: #516075;
  flex-wrap: wrap;
}
.footer-right{ text-align: right; display: grid; gap: 4px; }

/* =========================================================
   Responsive & Mobile Menu (Side Drawer)
   ========================================================= */

/* ===========================
   Mobile drawer - FIXED
   =========================== */

/* default: keep drawer OFF screen */

/* ===== Mobile Menu (OFF-CANVAS DRAWER) ===== */

/* =========================================================
   Mobile Drawer (clean + reliable)
   ========================================================= */
.mobile-overlay[hidden]{ display:none; }

.mobile-overlay{
  position: fixed;
  inset: 0;
  background: rgba(2,8,23,0.45);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  z-index: 999;
}

.mobile-menu{
  position: fixed;
  top: 0;
  right: 0;
  height: 100vh;
  width: min(86vw, 320px);
  background: #fff;
  border-left: 1px solid rgba(15,23,42,0.08);
  box-shadow: -18px 0 50px rgba(2,8,23,0.18);
  z-index: 1000;

  /* closed by default */
  transform: translateX(102%);
  opacity: 0.01;
  pointer-events: none;
  transition: transform 220ms ease, opacity 220ms ease;
  padding-top: 78px; /* space for sticky header */
}

.mobile-menu.is-open{
  transform: translateX(0);
  opacity: 1;
  pointer-events: auto;
}

.mobile-menu-inner{
  display: flex;
  flex-direction: column;
  padding: 0 22px 24px;
}

.mobile-menu-inner a{
  display: block;
  padding: 16px 2px;
  font-size: 18px;
  font-weight: 700;
  color: #0b1220;
  border-bottom: 1px solid rgba(15,23,42,0.06);
}

.mobile-menu-inner a:hover{
  background: rgba(2,8,23,0.03);
  border-radius: 12px;
  padding-left: 12px;
  padding-right: 12px;
}

.mobile-menu-inner .btn{
  margin-top: 18px;
  width: 100%;
  justify-content: center;
  border-bottom: 0;
}

/* Only show burger + drawer behavior on mobile */
@media (max-width: 900px){
  .nav{ display: none; }
  .burger{ display: inline-flex; }
}

/* prevent page scroll when menu is open */
body.menu-open{
  overflow: hidden;
}

/* show/hide mobile nav */
#mobileNav, .mobile-nav, .nav-links { display: none; }
#mobileNav.open, .mobile-nav.open, .nav-links.open { display: block; }

/* optional: prevent background scroll when menu open */
body.nav-open { overflow: hidden; }



/* ===== Tablet/Mobile breakpoint ===== */
@media (max-width: 900px){
  .nav{ display: none; }
  .burger{ display: inline-flex; }
  .mobile-menu{ display: block; }

  .hero-grid{ grid-template-columns: 1fr; }
  .band{ grid-template-columns: 1fr; }
  .steps{ grid-template-columns: repeat(2, minmax(0,1fr)); }
  .results{ grid-template-columns: 1fr; }
  .contact{ grid-template-columns: 1fr; }
  .grid-3{ grid-template-columns: 1fr; }

  .flip-grid{ grid-template-columns: repeat(2, minmax(0,1fr)); }

  .marquee-track{ animation-duration: 12s; }
  .logo-item img{ height: 30px; }

  .footer-inner{ flex-direction: column; }

  .rightside-img{
    width: 100%;
    max-width: 100%;
    transform: none;
    margin-top: 20px;
  }

  /* Disable hover movement on touch/mobile */
  .pcard:hover{ transform: none; }
}

/* Small phones */
@media (max-width: 640px){
  .section-head h2{ font-size: 36px; }
  .hero-copy h1{ font-size: 40px; }
  .grid-2{ grid-template-columns: 1fr; }
  .flip-grid{ grid-template-columns: 1fr; }
  .pcard{ flex: 0 0 280px; }
}


  /* =========================================================
   Mobile cards: smooth horizontal scroll + drag
   (no snap, no partial stuck)
   ========================================================= */
@media (max-width: 980px) {
  .cards-scroll,
  #supportCards,
  #painCards {
    display: flex;
    flex-wrap: nowrap;
    gap: 14px;
    padding: 10px 16px 22px;

    overflow-x: auto;
    overflow-y: visible;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;

    /* remove snap */
    scroll-snap-type: none;

    /* hide scrollbars */
    scrollbar-width: none;
    -ms-overflow-style: none;
  }
  .cards-scroll::-webkit-scrollbar,
  #supportCards::-webkit-scrollbar,
  #painCards::-webkit-scrollbar {
    display: none;
  }

  .cards-scroll .pcard,
  #supportCards .pcard,
  #painCards .pcard {
    flex: 0 0 86%;
    min-width: 86%;
    width: 86%;
    scroll-snap-align: unset; /* remove snap align */
  }
}

/* optional: show a little peek of next card on very small phones */
@media (max-width: 420px) {
  .cards-scroll .pcard,
  #supportCards .pcard,
  #painCards .pcard {
    flex-basis: 90%;
    min-width: 90%;
    width: 90%;
  }
}
.cards-scroll {
  user-select: none;
  -webkit-user-select: none;
  cursor: grab;
}
.cards-scroll:active { cursor: grabbing; }
.cards-scroll{
  touch-action: pan-x pan-y;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
}


/* Mobile drawer submenu */
.mnav-acc{
  width: 100%;
  text-align: left;
  background: transparent;
  border: 0;
  padding: 16px 2px;
  font-size: 18px;
  font-weight: 700;
  color: #0b1220;
  border-bottom: 1px solid rgba(15,23,42,0.06);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.mnav-sub a{
  display: block;
  padding: 14px 2px 14px 16px;
  font-size: 16px;
  font-weight: 700;
  color: #233044;
  border-bottom: 1px solid rgba(15,23,42,0.06);
}

.mnav-acc[aria-expanded="true"] .chev{
  transform: rotate(180deg);
  display: inline-block;
}


/* =========================================================
   Flip Card specific styles (kept as-is)
   ========================================================= */
.flip-tile{
  border: 0;
  padding: 0;
  background: transparent;
  width: 100%;
  height: 92px;
  cursor: pointer;
  perspective: 1200px;
  border-radius: 16px;
  -webkit-tap-highlight-color: transparent;
}

.flip-tile.is-flipped{ height: 240px; }

.flip-inner{
  position: relative;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  transition: transform 520ms cubic-bezier(.2,.8,.2,1);
  border-radius: 16px;
  will-change: transform;
}
.flip-tile.is-flipped .flip-inner{ transform: rotateY(180deg); }

.flip-face{
  position: absolute;
  inset: 0;
  border-radius: 16px;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  display: flex;
  flex-direction: column;
}

.flip-front{
  background: linear-gradient(135deg, #1d4ed8, #1e40af);
  color: #fff;
  align-items: center;
  justify-content: center;
  padding: 16px 18px;
  z-index: 2;
}
.flip-btn-title{ margin: 0; font-size: 18px; font-weight: 800; text-align: center; }

.flip-back{
  transform: rotateY(180deg) translateZ(1px);
  background: #fff;
  border: 1px solid rgba(15,23,42,0.10);
  padding: 18px;
  gap: 10px;
  overflow-y: auto;
  z-index: 1;
}

.flip-card-title{ margin: 0; font-size: 18px; font-weight: 800; flex-shrink: 0; }
.flip-text{ margin: 0; font-size: 14px; line-height: 1.55; color: #233044; }
.flip-more{ margin-top: auto; margin-bottom: 0; font-size: 13px; line-height: 1.55; color: #516075; flex-shrink: 0; }
.flip-hint{ margin-top: 8px; font-size: 12px; opacity: .75; }

/* ===== Social Links ===== */
/* ===== Footer social buttons (balanced + modern) ===== */

.social-links{
  margin-top: 16px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
}

/* Button */
.social-link{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;

  min-height: 42px;
  min-width: 150px;          /* makes all three equal width */
  padding: 10px 14px;

  border-radius: 14px;
  background: #ffffff;
  border: 1px solid rgba(15,23,42,0.12);
  box-shadow: 0 6px 18px rgba(2,8,23,0.08);

  color: #233044;            /* base text/icon color */
  font-weight: 700;
  font-size: 14px;

  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease, background-color .18s ease;
}

.social-link:hover{
  transform: translateY(-2px);
  box-shadow: 0 14px 28px rgba(2,8,23,0.14);
  border-color: rgba(29,78,216,0.28);
}

.social-link:active{
  transform: translateY(0);
  box-shadow: 0 8px 18px rgba(2,8,23,0.10);
}

/* Icon */
.social-link svg{
  width: 18px;
  height: 18px;
  fill: currentColor;
  flex: 0 0 auto;
}

/* Text */
.social-link span{
  line-height: 1;
  white-space: nowrap;
}

/* Brand accents (subtle, consistent) */
.social-link.facebook{ color: #1877F2; }
.social-link.linkedin{ color: #0A66C2; }
.social-link.x{ color: #0b1220; }
.social-link.youtube{ color:#FF0000; }


/* Small screens: full width buttons */
@media (max-width: 520px){
  .social-links{ width: 100%; }
  .social-link{ width: 100%; min-width: 0; }
}
/* smaller footer social buttons */
.social-links{ gap: 10px; }

.social-link{
  min-height: 36px;
  min-width: 128px;
  padding: 8px 12px;
  border-radius: 12px;
  font-size: 13px;
}

.social-link svg{
  width: 16px;
  height: 16px;
}

.footer-legal{
  color: inherit;
  text-decoration: none;
  opacity: .9;
  margin-right: 14px;
}
.footer-legal:hover{ text-decoration: underline; }

