/* ═══════════════════════════════════════════════════════════════
   robocon-styles-premium.css  v5  — PREMIUM REDESIGN
   Drop-in replacement for robocon-styles.css
   All existing HTML class names preserved — only CSS changed.
   ═══════════════════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:ital,wght@0,300;0,400;0,500;0,600;0,700;0,800;1,400&family=Fraunces:ital,opsz,wght@0,9..144,300;0,9..144,400;0,9..144,600;1,9..144,300&family=JetBrains+Mono:wght@400;500&display=swap');

/* ── 1. DESIGN TOKENS ─────────────────────────────────────────*/
:root {
  /* Brand — deep navy + electric orange + cold steel */
  --navy-deep:    #050d1a;
  --navy:         #081428;
  --navy-mid:     #0d2040;
  --navy-light:   #112a52;
  --blue-steel:   #1a4a8a;
  --blue-bright:  #2563c8;
  --orange:       #f05a00;
  --orange-glow:  #ff6a10;
  --orange-dk:    #c94900;
  --gold:         #e8a020;
  --ice:          #c8ddf5;

  /* Surfaces */
  --surface-0:    #050d1a;
  --surface-1:    #081428;
  --surface-2:    #0d1e36;
  --surface-3:    #122340;
  --surface-light:#f0f4f9;
  --surface-card: #ffffff;

  /* Text */
  --tx-primary:   #ffffff;
  --tx-secondary: rgba(200,221,245,0.80);
  --tx-muted:     rgba(160,190,225,0.55);
  --tx-dark:      #0d1e36;
  --tx-body:      #2c3e5a;
  --tx-light:     #5a7090;

  /* Borders */
  --border-bright: rgba(255,255,255,0.10);
  --border-mid:    rgba(200,221,245,0.08);
  --border-card:   rgba(26,74,138,0.14);

  /* Effects */
  --glow-orange:  0 0 40px rgba(240,90,0,0.35), 0 0 80px rgba(240,90,0,0.15);
  --glow-blue:    0 0 40px rgba(37,99,200,0.30), 0 0 80px rgba(37,99,200,0.12);
  --shadow-card:  0 4px 24px rgba(5,13,26,0.10), 0 1px 4px rgba(5,13,26,0.06);
  --shadow-lift:  0 20px 60px rgba(5,13,26,0.16), 0 4px 16px rgba(5,13,26,0.10);
  --shadow-deep:  0 40px 100px rgba(5,13,26,0.30), 0 8px 32px rgba(5,13,26,0.18);

  /* Typography */
  --font-display: 'Plus Jakarta Sans', sans-serif;
  --font-serif:   'Fraunces', Georgia, serif;
  --font-mono:    'JetBrains Mono', monospace;
  --font-body:    'Plus Jakarta Sans', sans-serif;

  /* Geometry */
  --r-sm:   6px;
  --r-md:   12px;
  --r-lg:   20px;
  --r-xl:   28px;
  --r-pill: 999px;

  /* Motion */
  --ease-out:   cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in:    cubic-bezier(0.4, 0, 1, 1);
  --ease-back:  cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ── 2. RESET & BASE ──────────────────────────────────────────*/
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  max-width: 100%;
}
html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  overflow-x: hidden;
}
body {
  font-family: var(--font-body);
  font-size: 16px;
  color: var(--tx-body);
  background: #ffffff;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a   { color: var(--orange); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--orange-glow); }

/* Glide layout resets — see section 26 */

/* ── 3. ERPNEXT OVERRIDES ─────────────────────────────────────*/
.page-header-wrapper, .page-header { margin: 0 !important; padding: 0 !important; display: none !important; }
.page-footer                       { margin: 0 !important; padding: 0 !important; }
.page_content, .web-page-content,
.webpage-content                   { margin-top: 0 !important; padding-top: 0 !important; border: none !important; box-shadow: none !important; }
article.web-page-content           { border: none !important; }
main.container, .page-content-wrapper > .container {
  padding-left: 0 !important;
  padding-right: 0 !important;
  max-width: 100% !important;
  width: 100% !important;
}
.page-content-wrapper .container,
.web-page-content .container,
.page_content .container,
.webpage-content .container {
  max-width: 100% !important;
  width: 100% !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
}

/* ── 4. TYPOGRAPHY ────────────────────────────────────────────*/
h1, h2, h3, h4 {
  font-family: var(--font-display);
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: var(--tx-dark);
}
h1 { font-size: clamp(2.2rem, 4vw, 3.4rem); font-weight: 700; line-height: 1.12; letter-spacing: -0.02em; }
h2 { font-size: clamp(1.7rem, 2.8vw, 2.4rem); font-weight: 700; margin-bottom: 0.5rem; }
h3 { font-size: clamp(1.05rem, 1.6vw, 1.3rem); font-weight: 600; }
h4 { font-size: 1.02rem; font-weight: 600; color: var(--blue-steel); }

p  { font-size: 1rem; color: var(--tx-body); margin-bottom: 1rem; line-height: 1.8; }
p:last-child { margin-bottom: 0; }
strong { color: var(--tx-dark); font-weight: 600; }

/* Bulleted list */
ul.bul { list-style: none; padding: 0; max-width: 700px; margin: 0 auto; }
ul.bul li {
  position: relative;
  padding: 10px 10px 10px 2rem;
  margin-bottom: 8px;
  color: var(--tx-body);
  font-size: 0.96rem;
  border-radius: var(--r-sm);
  background: var(--surface-light);
  border-left: 3px solid var(--orange);
  transition: transform 0.2s var(--ease-out), box-shadow 0.2s;
}
ul.bul li:hover {
  transform: translateX(4px);
  box-shadow: var(--shadow-card);
}
ul.bul li::before {
  content: "▸";
  position: absolute;
  left: 0.6rem;
  color: var(--orange);
  font-size: 0.75rem;
  top: 0.85rem;
  font-weight: 700;
}

/* ── 5. LAYOUT ────────────────────────────────────────────────*/
.wrap  { max-width: 1440px; margin: 0 auto; padding: 0 28px; }
.sec   { padding: 90px 0; }
.sec--alt { background: var(--surface-light); }

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.grid-3 { display: grid; grid-template-columns: repeat(3,1fr); gap: 28px; }
.grid-4 { display: grid; grid-template-columns: repeat(4,1fr); gap: 24px; }

.sec-hd   { text-align: center; margin-bottom: 56px; }
.sec-hd p { max-width: 640px; margin: 16px auto 0; font-size: 1.05rem; color: var(--tx-light); }

/* Animated accent bar */
.bar {
  width: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--orange), var(--gold));
  margin: 14px auto 0;
  border-radius: 2px;
  animation: barGrow 0.8s var(--ease-out) 0.3s forwards;
}
@keyframes barGrow { to { width: 56px; } }
.bar--l { margin-left: 0; animation: barGrowL 0.8s var(--ease-out) 0.3s forwards; }
@keyframes barGrowL { to { width: 56px; } }

/* ── 6. HERO — DARK PREMIUM ───────────────────────────────────*/
.hero-section {
  position: relative;
  overflow: hidden;
  background: var(--navy-deep);
  padding: 80px 0 70px !important;
  text-align: left !important;
}

/* Layered background: dot mesh + radial glow */
.hero-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 65% 40%, rgba(37,99,200,0.18) 0%, transparent 55%),
    radial-gradient(circle at 20% 80%, rgba(240,90,0,0.12) 0%, transparent 50%),
    url("data:image/svg+xml,%3Csvg width='40' height='40' xmlns='http://www.w3.org/2000/svg'%3E%3Ccircle cx='1' cy='1' r='1' fill='rgba(255,255,255,0.04)'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 0;
}

/* Animated horizontal scan line */
.hero-section::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 50%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(240,90,0,0.6), transparent);
  animation: scanLine 4s ease-in-out infinite;
  z-index: 1;
}
@keyframes scanLine {
  0%   { left: -50%; opacity: 0; }
  20%  { opacity: 1; }
  80%  { opacity: 1; }
  100% { left: 150%; opacity: 0; }
}

.hero-overlay { display: none; }

.hero-content {
  position: relative;
  z-index: 2;
  display: grid !important;
  grid-template-columns: 1fr 1fr !important;
  gap: 56px !important;
  align-items: center !important;
  max-width: 1440px !important;
  margin: auto !important;
  padding: 0 28px !important;
}

/* Premium badge */
.premium-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(240,90,0,0.12);
  border: 1px solid rgba(240,90,0,0.35);
  color: var(--orange-glow);
  padding: 8px 18px;
  border-radius: var(--r-pill);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  margin-bottom: 24px;
  white-space: normal;
  word-break: break-word;
}
.premium-badge::before {
  content: '';
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--orange);
  box-shadow: 0 0 8px var(--orange);
  flex-shrink: 0;
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.5; transform: scale(0.85); }
}

/* Hero H1 */
.hero-section h1 {
  color: #ffffff;
  font-size: clamp(2.0rem, 3.6vw, 3.2rem);
  font-weight: 700;
  line-height: 1.14;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
}
.hero-section h1 span {
  background: linear-gradient(135deg, var(--orange-glow) 0%, var(--gold) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: inline;
}

/* Hero lead text */
.hero-lead {
  color: var(--tx-secondary) !important;
  font-size: 1.05rem !important;
  line-height: 1.8 !important;
  margin-bottom: 24px !important;
  font-weight: 400;
}

/* Hero check pills */
.hero-checks {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  margin-bottom: 32px;
}
.hero-checks span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--ice);
  letter-spacing: 0.02em;
  padding: 5px 12px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: var(--r-pill);
}
.hero-checks span::before {
  content: '✓';
  color: var(--orange);
  font-weight: 700;
  font-size: 0.75rem;
}

/* Hero buttons */
.hero-buttons {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: flex-start !important;
}

/* Hero slider column */
/* ── HERO SLIDER — works with both old and new HTML patterns ──
   Old HTML: <div class="glide" id="hero-glide">  (homepage)
   New HTML: <div class="hero-slider"><div class="glide">

   CRITICAL: overflow:hidden must NOT be set on .glide via CSS.
   robocon-page.js clears any inline overflow:hidden on .glide
   before Glide.js mounts (so measurement works), then Glide
   applies overflow:hidden to .glide__track itself post-mount.
─────────────────────────────────────────────────────────── */

/* Old pattern — homepage .glide#hero-glide */
#hero-glide {
  border-radius: var(--r-lg) !important;
  /* NO overflow:hidden — JS clears inline overflow before mount */
  box-shadow: var(--shadow-deep), 0 0 0 1px rgba(255,255,255,0.06) !important;
  position: relative;
}
#hero-glide::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--r-lg);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.08);
  pointer-events: none;
  z-index: 10;
}
#hero-glide .glide__slide img {
  width: 100% !important;
  height: clamp(240px, 36vw, 440px) !important;
  object-fit: cover !important;
  object-position: center !important;
  display: block !important;
}

/* New pattern — .hero-slider wrapper (USA / Sweden / future pages) */
.hero-slider {
  position: relative;
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-deep), 0 0 0 1px rgba(255,255,255,0.06);
  width: 100%;
  overflow: hidden; /* CRITICAL: clips slides at container boundary.
                       Do NOT move this to .glide — that would expand
                       .hero-slider to the full slides width (perView×n×slideW). */
}
.hero-slider::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--r-lg);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.08);
  pointer-events: none;
  z-index: 10;
}
.hero-slider .glide {
  border-radius: var(--r-lg);
  width: 100%;
  /* NO overflow:hidden — JS clears inline overflow before mount */
}
.hero-slider .glide__slide img {
  width: 100% !important;
  height: clamp(240px, 36vw, 440px) !important;
  object-fit: cover !important;
  object-position: center !important;
  display: block !important;
}

/* ── 7. TRUST STRIP — GLASS CARD ──────────────────────────────*/
.trust-strip {
  display: grid;
  grid-template-columns: repeat(4,1fr);
  gap: 0;
  background: #ffffff;
  box-shadow: 0 -1px 0 rgba(26,74,138,0.08), 0 8px 40px rgba(5,13,26,0.08);
  border-radius: var(--r-xl);
  max-width: 1440px;
  margin: -50px auto 80px;
  position: relative;
  z-index: 10;
  overflow: hidden;
  border: 1px solid var(--border-card);
}
.trust-item {
  text-align: center;
  padding: 32px 20px;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 0.82rem;
  color: var(--tx-light);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border-right: 1px solid rgba(26,74,138,0.08);
  transition: background 0.25s;
}
.trust-item:last-child { border-right: none; }
.trust-item:hover { background: var(--surface-light); }
.trust-number {
  display: block;
  font-size: 2.4rem;
  font-weight: 800;
  color: var(--navy-mid);
  letter-spacing: -0.04em;
  margin-bottom: 6px;
  line-height: 1;
}
/* Animated counter effect on number */
.trust-number::after {
  content: '';
}

/* ── 8. ISO CREDIBILITY STRIP ─────────────────────────────────*/
.iso-cred-strip {
  background: var(--navy-deep);
  border-top: none;
  padding: 44px 24px;
  position: relative;
  overflow: hidden;
}
.iso-cred-strip::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' xmlns='http://www.w3.org/2000/svg'%3E%3Ccircle cx='1' cy='1' r='1' fill='rgba(255,255,255,0.025)'/%3E%3C/svg%3E");
}
.iso-cred-strip::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--orange), transparent);
}
.iso-cred-inner {
  max-width: 1440px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4,1fr);
  gap: 28px;
  position: relative;
  z-index: 1;
}
.iso-cred-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 20px;
  border-radius: var(--r-md);
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.07);
  transition: background 0.25s, border-color 0.25s, transform 0.25s var(--ease-out);
}
.iso-cred-item:hover {
  background: rgba(255,255,255,0.07);
  border-color: rgba(240,90,0,0.30);
  transform: translateY(-3px);
}
.iso-cred-icon { font-size: 1.6rem; flex-shrink: 0; margin-top: 2px; }
.iso-cred-text { display: flex; flex-direction: column; gap: 3px; }
.iso-cred-text strong { font-size: 0.88rem; color: #ffffff; font-weight: 600; }
.iso-cred-text span   { font-size: 0.78rem; color: var(--tx-secondary); line-height: 1.5; }
.iso-cred-text a      { font-size: 0.78rem; color: var(--orange-glow); font-weight: 600; text-decoration: none; }
.iso-cred-text a:hover { text-decoration: underline; }

/* ── 9. BUTTONS ───────────────────────────────────────────────*/
.btn-se {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 32px;
  background: var(--orange);
  color: #ffffff !important;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.92rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-radius: var(--r-sm);
  border: 2px solid var(--orange);
  cursor: pointer;
  transition: all 0.22s var(--ease-out);
  text-decoration: none;
  white-space: nowrap;
  position: relative;
  overflow: hidden;
}
.btn-se::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.12), transparent);
  opacity: 0;
  transition: opacity 0.2s;
}
.btn-se:hover {
  background: var(--orange-dk);
  border-color: var(--orange-dk);
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(240,90,0,0.40), 0 2px 8px rgba(240,90,0,0.20);
  color: #ffffff !important;
}
.btn-se:hover::before { opacity: 1; }
.btn-se:active { transform: translateY(0); }

.btn-se.btn-hero {
  font-size: 0.96rem !important;
  padding: 15px 36px !important;
  box-shadow: 0 6px 24px rgba(240,90,0,0.28);
}

.btn-se.btn-ol {
  background: transparent !important;
  color: rgba(255,255,255,0.85) !important;
  border-color: rgba(255,255,255,0.30) !important;
}
.btn-se.btn-ol:hover {
  background: rgba(255,255,255,0.10) !important;
  border-color: rgba(255,255,255,0.60) !important;
  color: #ffffff !important;
  box-shadow: 0 6px 20px rgba(255,255,255,0.10);
}

/* Light context outline button */
.btn-se.btn-ol-dark {
  background: transparent !important;
  color: var(--navy-mid) !important;
  border-color: rgba(13,32,64,0.30) !important;
}
.btn-se.btn-ol-dark:hover {
  background: var(--navy-mid) !important;
  color: #ffffff !important;
}

/* ── 10. CARD CONTAINER / ABOUT SECTION ──────────────────────*/
.card-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
  max-width: 1440px;
  margin: 0 auto;
  padding: 80px 28px;
}
.box { padding: 8px; }
.box.img img {
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-lift);
  width: 100%;
}
.box p { color: var(--tx-body); }
.box h2 { color: var(--tx-dark); }

/* ── 11. IMAGE CARDS ──────────────────────────────────────────*/
.image-card {
  background: #ffffff;
  border: 1px solid var(--border-card);
  border-radius: var(--r-lg);
  padding: 28px;
  box-shadow: var(--shadow-card);
  transition: transform 0.30s var(--ease-out), box-shadow 0.30s var(--ease-out), border-color 0.30s;
  position: relative;
  overflow: hidden;
}
.image-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--orange), var(--gold));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s var(--ease-out);
}
.image-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lift);
  border-color: rgba(26,74,138,0.20);
}
.image-card:hover::before { transform: scaleX(1); }
.image-card h3 { color: var(--tx-dark); margin-bottom: 10px; font-size: 1.1rem; }
.image-card p  { font-size: 0.91rem; color: var(--tx-body); }
.image-card img {
  width: 100%;
  border-radius: var(--r-md);
  margin-bottom: 18px;
  object-fit: cover;
}
.image-card figcaption { padding-top: 16px; }
.image-card figcaption strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  color: var(--tx-dark);
  margin-bottom: 8px;
}
.image-card figure img { margin-bottom: 0; }

/* Card icon */
.c-icon {
  width: 52px; height: 52px;
  background: linear-gradient(135deg, var(--surface-light), #e0e8f4);
  border-radius: var(--r-md);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 18px;
  font-size: 1.5rem;
  box-shadow: 0 2px 8px rgba(26,74,138,0.10);
}

/* ── 12. WHY SECTION ──────────────────────────────────────────*/
.sec-why-home {
  padding: 80px 28px;
  background: var(--navy-deep);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.sec-why-home::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 30% 50%, rgba(37,99,200,0.15) 0%, transparent 55%),
    radial-gradient(circle at 75% 30%, rgba(240,90,0,0.10) 0%, transparent 45%),
    url("data:image/svg+xml,%3Csvg width='40' height='40' xmlns='http://www.w3.org/2000/svg'%3E%3Ccircle cx='1' cy='1' r='1' fill='rgba(255,255,255,0.025)'/%3E%3C/svg%3E");
  pointer-events: none;
}
.sec-why-home .sec-hd { position: relative; z-index: 1; }
.sec-why-home .sec-hd h2 { color: #ffffff; }
.sec-why-home .sec-hd p  { color: var(--tx-secondary); }
.sec-why-home .bar {
  background: linear-gradient(90deg, var(--orange), var(--gold));
}

.why-chips {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
  max-width: 1440px;
  margin: 0 auto;
  padding: 8px 0;
  position: relative;
  z-index: 1;
}
.why-chips > div {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.09);
  border-radius: var(--r-md);
  padding: 18px 22px;
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--ice);
  transition: all 0.25s var(--ease-out);
  position: relative;
  overflow: hidden;
}
.why-chips > div::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 3px;
  background: linear-gradient(180deg, var(--orange), var(--gold));
  border-radius: 0 2px 2px 0;
  transform: scaleY(0);
  transition: transform 0.25s var(--ease-out);
}
.why-chips > div:hover {
  background: rgba(255,255,255,0.09);
  border-color: rgba(240,90,0,0.35);
  transform: translateY(-4px);
  color: #ffffff;
}
.why-chips > div:hover::before { transform: scaleY(1); }

/* ── 13. TESTIMONIALS ─────────────────────────────────────────*/
.testimonials-section {
  padding: 90px 28px;
  background: var(--surface-light);
}
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 24px;
  max-width: 1440px;
  margin: 0 auto 48px;
}
.testimonial-card {
  background: #ffffff;
  border-radius: var(--r-lg);
  padding: 32px 28px;
  border: 1px solid var(--border-card);
  display: flex;
  flex-direction: column;
  gap: 16px;
  box-shadow: var(--shadow-card);
  transition: transform 0.28s var(--ease-out), box-shadow 0.28s;
  position: relative;
  overflow: hidden;
}
.testimonial-card::after {
  content: '"';
  position: absolute;
  top: -10px; right: 20px;
  font-family: var(--font-serif);
  font-size: 7rem;
  color: rgba(240,90,0,0.06);
  line-height: 1;
  pointer-events: none;
}
.testimonial-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lift);
}
.testimonial-stars { color: var(--orange); font-size: 0.95rem; letter-spacing: 3px; }
.testimonial-quote {
  font-size: 0.91rem;
  color: var(--tx-body);
  line-height: 1.75;
  font-style: italic;
  margin: 0;
  padding-left: 14px;
  border-left: 3px solid var(--orange);
}
.testimonial-meta { margin-top: auto; }
.testimonial-meta strong {
  display: block;
  font-size: 0.88rem;
  color: var(--tx-dark);
  font-weight: 700;
}
.testimonial-meta span {
  font-size: 0.80rem;
  color: var(--tx-light);
}

/* Case study strip */
.case-study-strip {
  max-width: 1440px;
  margin: 0 auto;
  background: var(--navy-deep);
  border-radius: var(--r-lg);
  padding: 36px 40px;
  display: flex;
  align-items: center;
  gap: 32px;
  flex-wrap: wrap;
  border: 1px solid rgba(255,255,255,0.06);
  box-shadow: 0 4px 40px rgba(5,13,26,0.24);
  position: relative;
  overflow: hidden;
}
.case-study-strip::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--orange), var(--gold), var(--orange));
}
.case-study-label {
  background: var(--orange);
  color: #fff;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  padding: 6px 14px;
  border-radius: var(--r-sm);
  flex-shrink: 0;
  align-self: flex-start;
}
.case-study-body { flex: 1; min-width: 260px; }
.case-study-title {
  color: #ffffff;
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  margin: 0 0 10px;
  line-height: 1.4;
}
.case-study-body p {
  color: rgba(200,221,245,0.70);
  font-size: 0.88rem;
  line-height: 1.7;
  margin: 0;
}

/* ── 14. SERVICES SECTION ─────────────────────────────────────*/
.sec-services-home {
  padding: 90px 28px;
  background: #ffffff;
}
.sec-services-home .grid-3 {
  max-width: 1440px;
  margin: 0 auto;
}
.sec-services-home .image-card {
  display: flex;
  flex-direction: column;
}
.sec-services-home .image-card .btn-se {
  margin-top: auto;
  align-self: flex-start;
}

/* ── 15. EMERGING / SECTORS ───────────────────────────────────*/
.emerging-section {
  background: var(--surface-light);
  padding: 90px 28px;
}
.emerging-section .sec-hd,
.sectors-section .sec-hd {
  max-width: 1440px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 44px;
}
.sectors-list {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 24px;
  list-style: none;
  padding: 0; margin: 0;
  max-width: 1440px;
  margin-left: auto;
  margin-right: auto;
}
.sector-grid {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 24px;
  list-style: none;
  padding: 0;
  margin: 0 auto;
  max-width: 1440px;
}
.sec-card {
  background: #ffffff;
  border: 1px solid var(--border-card);
  border-radius: var(--r-lg);
  padding: 0;
  box-shadow: var(--shadow-card);
  transition: transform 0.30s var(--ease-out), box-shadow 0.30s, border-color 0.30s;
  position: relative;
  overflow: hidden;
}
.sec-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--orange), var(--gold));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s var(--ease-out);
  z-index: 1;
}
.sec-card:hover {
  transform: translateY(-7px);
  box-shadow: var(--shadow-lift);
  border-color: rgba(26,74,138,0.22);
}
.sec-card:hover::before { transform: scaleX(1); }
.sec-card figure { margin: 0; }
.sec-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  height: auto;
  object-fit: cover;
}
.sec-card figcaption { padding: 22px 24px 24px; }
.sec-card figcaption strong {
  display: block;
  font-family: var(--font-display);
  color: var(--tx-dark);
  font-size: 1.08rem;
  margin-bottom: 8px;
}
.sec-card figcaption p {
  font-size: 0.91rem;
  color: var(--tx-body);
}
.sectors-section {
  padding: 90px 28px;
  background: #ffffff;
}

/* ── 16. CONTENT WRAP ─────────────────────────────────────────*/
.content-wrap {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 28px 64px;
}
.content-wrap h3 {
  margin-top: 44px;
  margin-bottom: 14px;
  color: var(--navy-mid);
  font-size: 1.3rem;
  position: relative;
  padding-left: 18px;
}
.content-wrap h3::before {
  content: '';
  position: absolute;
  left: 0; top: 4px; bottom: 4px;
  width: 4px;
  background: linear-gradient(180deg, var(--orange), var(--gold));
  border-radius: 2px;
}
.content-wrap h3:first-child { margin-top: 0; }
.content-wrap p { color: var(--tx-body); max-width: 100%; }

/* ── 17. MATERIALS ────────────────────────────────────────────*/
.single-container {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 28px;
}
.material-container {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 20px;
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 28px 72px;
}
.material-card {
  background: #ffffff;
  border: 1px solid var(--border-card);
  border-left: 4px solid transparent;
  border-image: linear-gradient(180deg, var(--orange), var(--gold)) 1;
  border-radius: var(--r-md);
  padding: 24px;
  box-shadow: var(--shadow-card);
  font-size: 0.92rem;
  color: var(--tx-body);
  transition: transform 0.25s var(--ease-out), box-shadow 0.25s;
}
.material-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lift); }
.material-card p { margin: 0; }
.material-card strong { color: var(--navy-mid); }

/* ── 18. CNC INFO ─────────────────────────────────────────────*/
.cnc-info {
  max-width: 1440px;
  margin: 0 auto;
  padding: 72px 28px;
}
.cnc-info .card-container { padding: 0 0 32px; }
.info-card {
  background: var(--surface-light);
  border: 1px solid var(--border-card);
  border-radius: var(--r-lg);
  padding: 32px;
  margin-bottom: 24px;
}
.info-card-title {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--navy-mid);
  margin-bottom: 14px;
  line-height: 1.2;
}
.info-card ul { margin: 12px 0; padding-left: 18px; }
.info-card li { font-size: 0.93rem; color: var(--tx-body); margin-bottom: 6px; }

/* ── 19. 5-AXIS SECTION ───────────────────────────────────────*/
.img-rounded {
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-lift);
}

/* ── 20. INLINE CONTENT ───────────────────────────────────────*/
.sec-inline-content {
  max-width: 1440px;
  margin: 0 auto;
  padding: 40px 28px 0;
}
.inline-content-title {
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 2vw, 1.5rem);
  font-weight: 700;
  color: var(--navy-mid);
  margin-bottom: 20px;
  max-width: 980px;
  margin-left: auto;
  margin-right: auto;
}
.sec-inline-content p {
  max-width: 980px;
  margin-left: auto;
  margin-right: auto;
  color: var(--tx-body);
}

/* ── 21. CONTACT SECTION ──────────────────────────────────────*/
.contact-section {
  background: var(--surface-light);
  padding: 72px 0;
}
.contact-section .card-container { padding: 0 28px; }
.contact-section p { color: var(--tx-body); }

/* ── 22. TEAM SECTION ─────────────────────────────────────────*/
.team-section {
  padding: 90px 28px;
  background: #ffffff;
}
.team-intro {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 48px;
  color: var(--tx-light);
  font-size: 1rem;
  line-height: 1.75;
}
.team-grid {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 28px;
  max-width: 1440px;
  margin: 0 auto;
}
.team-card {
  border: 1px solid var(--border-card);
  border-radius: var(--r-lg);
  padding: 36px 28px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  background: #ffffff;
  transition: transform 0.28s var(--ease-out), box-shadow 0.28s, border-color 0.28s;
  box-shadow: var(--shadow-card);
}
.team-card:hover {
  box-shadow: var(--shadow-lift);
  transform: translateY(-6px);
  border-color: rgba(240,90,0,0.25);
}
.team-avatar {
  width: 96px; height: 96px;
  border-radius: 50%;
  overflow: hidden;
  margin-bottom: 20px;
  border: 3px solid transparent;
  background: linear-gradient(white, white) padding-box,
              linear-gradient(135deg, var(--orange), var(--gold)) border-box;
  box-shadow: 0 4px 20px rgba(240,90,0,0.20);
}
.team-avatar img { width: 100%; height: 100%; object-fit: cover; }
.team-avatar-fallback {
  width: 100%; height: 100%;
  align-items: center; justify-content: center;
  font-size: 2.8rem; background: var(--surface-light);
}
.team-name {
  display: block;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--tx-dark);
  margin-bottom: 4px;
}
.team-role {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  color: var(--orange);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.10em;
  margin-bottom: 14px;
}
.team-bio {
  font-size: 0.88rem;
  color: var(--tx-light);
  line-height: 1.65;
  margin-bottom: 18px;
}
.team-linkedin {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 500;
  color: #0077b5;
  text-decoration: none;
}
.team-linkedin:hover { text-decoration: underline; }

/* ── 23. FAQ ──────────────────────────────────────────────────*/
.faq-item {
  border-bottom: 1px solid rgba(26,74,138,0.10);
}
.faq-q {
  width: 100%;
  background: none;
  border: none;
  text-align: left;
  padding: 22px 0;
  font-family: var(--font-display);
  font-size: 1.02rem;
  font-weight: 600;
  color: var(--tx-dark);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  transition: color 0.2s;
}
.faq-q:hover { color: var(--orange); }
.faq-ic {
  font-size: 1.4rem;
  flex-shrink: 0;
  transition: transform 0.30s var(--ease-back), color 0.2s;
  color: var(--orange);
  font-weight: 300;
  line-height: 1;
  width: 28px; height: 28px;
  background: rgba(240,90,0,0.08);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem;
}
.faq-a     { max-height: 0; overflow: hidden; transition: max-height 0.45s var(--ease-out); }
.faq-a p   { padding: 0 0 22px; font-size: 0.96rem; color: var(--tx-body); }
.faq-item.open .faq-ic { transform: rotate(45deg); background: rgba(240,90,0,0.15); }
.faq-item.open .faq-a  { max-height: 600px; }

/* ── 24. LOCAL SEO ────────────────────────────────────────────*/
.local-seo-section {
  padding: 72px 28px;
  background: var(--surface-light);
}
.local-seo-section p   { color: var(--tx-body); line-height: 1.8; margin-bottom: 14px; }
.local-seo-section a   { color: var(--orange); font-weight: 600; }

/* ── 25. PREMIUM CTA SECTION ──────────────────────────────────*/
.premium-cta-section {
  padding: 100px 28px;
  background: var(--navy-deep);
  position: relative;
  overflow: hidden;
  margin-top: 0;
}
.premium-cta-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 50%, rgba(37,99,200,0.18) 0%, transparent 50%),
    radial-gradient(circle at 80% 40%, rgba(240,90,0,0.14) 0%, transparent 45%),
    url("data:image/svg+xml,%3Csvg width='40' height='40' xmlns='http://www.w3.org/2000/svg'%3E%3Ccircle cx='1' cy='1' r='1' fill='rgba(255,255,255,0.025)'/%3E%3C/svg%3E");
  pointer-events: none;
}
.premium-cta-section::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--orange), var(--gold), transparent);
}
.premium-cta-container {
  position: relative;
  z-index: 2;
  max-width: 900px;
  margin: auto;
  text-align: center;
}
.premium-cta-badge {
  display: inline-block;
  padding: 9px 20px;
  border-radius: var(--r-pill);
  background: rgba(240,90,0,0.12);
  border: 1px solid rgba(240,90,0,0.30);
  color: var(--orange-glow);
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  margin-bottom: 28px;
}
.premium-cta-container h2 {
  color: #ffffff;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.08;
  margin-bottom: 20px;
  letter-spacing: -0.03em;
}
.premium-cta-text {
  max-width: 700px;
  margin: 0 auto 36px;
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--tx-secondary) !important;
}
.premium-cta-features {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 40px;
}
.premium-cta-features span {
  padding: 9px 18px;
  border-radius: var(--r-pill);
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.10);
  color: var(--ice);
  font-size: 0.84rem;
  font-weight: 500;
}
.premium-cta-buttons {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}
.premium-cta-buttons .btn-se { min-width: 240px; }
.premium-cta-buttons .btn-ol {
  background: transparent !important;
  border: 2px solid rgba(255,255,255,0.22) !important;
  color: rgba(255,255,255,0.85) !important;
}
.premium-cta-buttons .btn-ol:hover {
  background: rgba(255,255,255,0.10) !important;
  border-color: rgba(255,255,255,0.50) !important;
  color: #ffffff !important;
}

/* ── 26. GLIDE CORE RULES ────────────────────────────────────
   CRITICAL: Never set overflow:hidden on .glide via CSS.
   robocon-page.js clears any inline overflow on .glide, then
   Glide.js sets it on .glide__track after measuring widths.
   All height rules use !important to beat img { height:auto }.
─────────────────────────────────────────────────────────── */

/* Prevent ERPNext max-width reset breaking track layout */
.glide__track, .glide__slides, .glide__slide { max-width: none !important; }

/* Generic .glide shape — no overflow:hidden */
.glide {
  width: 100%;
  border-radius: var(--r-lg);
}

/* Fallback image height for any slider not using .hero-slider/#hero-glide */
.glide__slide img {
  width: 100% !important;
  height: 380px !important;
  object-fit: cover !important;
  display: block !important;
}

/* Nav bullets — positioned absolutely over the slider */
.glide__bullets {
  position: absolute;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 6px;
  z-index: 5;
  list-style: none;
  padding: 0; margin: 0;
}
.glide__bullet {
  background: rgba(255,255,255,0.35);
  width: 8px; height: 8px;
  border-radius: 50%; border: none; cursor: pointer; padding: 0;
  transition: background 0.22s, width 0.22s;
}
.glide__bullet:hover   { background: rgba(255,255,255,0.70); }
.glide__bullet--active {
  background: var(--orange);
  width: 24px;
  border-radius: 4px;
}

/* Non-hero card-container sliders */
.card-container .glide__bullets { display: none; }
.card-container .glide__slide img {
  height: 420px !important;
  object-fit: contain !important;
  padding: 12px;
  background: #fff;
}

/* ── OLD CSS VARIABLE ALIASES ─────────────────────────────────
   Some pages (USA, Sweden) reference legacy variable names.
   These aliases map them to current premium tokens so no HTML
   edits are required on every occurrence.
──────────────────────────────────────────────────────────── */
:root {
  --fd:    var(--font-display);   /* old name → current */
  --blue:  var(--blue-bright);    /* old name → current */
  --sh-md: var(--shadow-card);    /* old name → current */
}

/* step-num — process step circles used on USA + Sweden pages */
.step-num {
  width: 60px; height: 60px;
  border-radius: 50%;
  color: #ffffff;
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
}

/* ── 27. SEC-HDG adjustments for dark sections ────────────────*/
.sec-why-home .sec-hd h2,
.premium-cta-section h2,
.iso-cred-strip h2 { color: #ffffff; }

/* Light bg sections */
.testimonials-section .sec-hd h2,
.sectors-section .sec-hd h2,
.emerging-section .sec-hd h2,
.sec-services-home .sec-hd h2,
.cnc-info .sec-hd h2,
.team-section .sec-hd h2,
.local-seo-section .sec-hd h2 {
  color: var(--navy-mid);
}

/* ── 28. SCROLL FADE-IN ───────────────────────────────────────*/
.fade-in         { opacity: 0; transform: translateY(24px); transition: opacity 0.60s var(--ease-out), transform 0.60s var(--ease-out); }
.fade-in.visible { opacity: 1; transform: translateY(0); }

/* No-highlight links */
.no-highlight-link { color: inherit; text-decoration: none; }
.no-highlight-link:hover { color: var(--orange); }

/* ── 29. NAVBAR — WHITE ───────────────────────────────────────*/
.navbar {
  width: 100%;
  background: #ffffff;
  box-shadow: 0 1px 0 rgba(13,32,64,0.08), 0 4px 20px rgba(13,32,64,0.06);
  position: sticky;
  top: 0;
  z-index: 999;
  border-bottom: 1px solid rgba(13,32,64,0.08);
}
.navbar-container {
  width: 100%;
  padding: 10px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1440px;
  margin: 0 auto;
}
.navbar-brand img {
  height: 42px;
  display: block;
}
.navbar-menu {
  display: flex;
  align-items: center;
  gap: 28px;
}
.nav-link {
  text-decoration: none;
  color: #1a2a4a !important;
  font-weight: 500;
  font-size: 0.90rem;
  letter-spacing: 0.01em;
  transition: color 0.2s;
  font-family: var(--font-display);
}
.nav-link:hover { color: var(--orange) !important; }
.login-btn {
  border: 1px solid rgba(13,32,64,0.22);
  padding: 7px 16px;
  border-radius: var(--r-sm);
  color: #1a2a4a !important;
  transition: border-color 0.2s, color 0.2s, background 0.2s;
}
.login-btn:hover {
  border-color: var(--navy-mid);
  background: var(--surface-light);
  color: var(--navy-mid) !important;
}
.cta-btn {
  background: var(--orange);
  color: #fff !important;
  padding: 9px 20px;
  border-radius: var(--r-sm);
  text-decoration: none;
  font-weight: 700;
  font-size: 0.88rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-family: var(--font-display);
  transition: all 0.2s var(--ease-out);
  box-shadow: 0 4px 16px rgba(240,90,0,0.28);
}
.cta-btn:hover {
  background: var(--orange-dk);
  color: #fff !important;
  transform: translateY(-1px);
  box-shadow: 0 6px 24px rgba(240,90,0,0.38);
}

/* Hamburger */
.navbar-toggler {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  border: none;
  background: none;
  cursor: pointer;
  padding: 4px;
  width: 36px; height: 36px;
}
.navbar-toggler span {
  display: block;
  width: 24px; height: 2px;
  background: #1a2a4a;
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease;
  transform-origin: center;
}
.navbar-toggler.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.navbar-toggler.open span:nth-child(2) { opacity: 0; }
.navbar-toggler.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── 30. FOOTER ───────────────────────────────────────────────*/
footer {
  background: var(--navy-deep);
  width: 100%;
  border-top: 1px solid rgba(255,255,255,0.05);
}
.footer-top {
  padding: 64px 24px 48px;
  max-width: 1440px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 44px;
}
.footer-logo   { height: 38px; margin-bottom: 18px; }
.footer-desc   { font-size: 0.88rem; color: rgba(200,221,245,0.65) !important; line-height: 1.65; }
.footer-heading {
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 700;
  color: rgba(200,221,245,0.45) !important;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 18px;
}
.footer-link {
  display: block;
  font-size: 0.88rem;
  color: rgba(200,221,245,0.75) !important;
  margin-bottom: 10px;
  transition: color 0.2s, padding-left 0.2s;
  text-decoration: none;
}
.footer-link:hover { color: #ffffff !important; padding-left: 4px; }
.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 12px;
  font-size: 0.88rem;
  color: rgba(200,221,245,0.75) !important;
  line-height: 1.5;
}
.footer-contact-item a { color: rgba(200,221,245,0.75) !important; text-decoration: none; }
.footer-contact-item a:hover { color: #ffffff !important; }
.footer-contact-item i,
.footer-contact-icon {
  color: var(--orange);
  margin-top: 3px;
  flex: 0 0 20px;
  width: 20px;
  height: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.footer-contact-icon svg {
  width: 17px;
  height: 17px;
  display: block;
  fill: currentColor;
}
.social-row { display: flex; gap: 10px; margin-top: 22px; }
.social-btn {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.10);
  display: flex; align-items: center; justify-content: center;
  color: rgba(200,221,245,0.70);
  transition: background 0.2s, transform 0.2s, border-color 0.2s;
  text-decoration: none;
}
.social-btn svg {
  width: 17px;
  height: 17px;
  display: block;
  fill: currentColor;
}
.social-btn:hover {
  background: var(--orange);
  border-color: var(--orange);
  transform: translateY(-2px);
  color: #ffffff;
}
.footer-divider {
  border: none;
  border-top: 1px solid rgba(255,255,255,0.05);
  margin: 0 24px;
}
.footer-bottom {
  background: rgba(0,0,0,0.20);
  padding: 18px 24px;
  text-align: center;
  font-size: 0.80rem;
  color: rgba(255,255,255,0.28);
}
.footer-bottom a { color: rgba(255,255,255,0.35); text-decoration: none; }
.footer-bottom a:hover { color: var(--orange); }

/* Floating logo */
#floating-logo {
  position: fixed;
  bottom: 24px; right: 24px;
  z-index: 9999;
}
#floating-logo img {
  width: 68px; height: auto;
  opacity: 0.88;
  filter: drop-shadow(0 4px 16px rgba(0,0,0,0.30));
  transition: opacity 0.2s, transform 0.2s;
}
#floating-logo:hover img { opacity: 1; transform: scale(1.05); }

/* ── 31. RESPONSIVE ───────────────────────────────────────────*/
@media (max-width: 1024px) {
  .grid-4, .sectors-list, .sector-grid, .material-container {
    grid-template-columns: repeat(2,1fr);
  }
  .iso-cred-inner { grid-template-columns: repeat(2,1fr); }
  .footer-top     { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 900px) {
  .hero-content {
    grid-template-columns: 1fr !important;
    gap: 36px !important;
    text-align: center !important;
  }
  .hero-buttons    { justify-content: center !important; }
  .hero-checks     { justify-content: center !important; }
  .hero-section    { text-align: center !important; }
  .premium-badge   { margin-left: auto; margin-right: auto; }
  #hero-glide .glide__slide img { height: clamp(200px, 52vw, 300px) !important; }
  .trust-strip     { grid-template-columns: repeat(2,1fr); margin: 20px 20px 60px; }
  .testimonials-grid { grid-template-columns: 1fr; }
  .case-study-strip  { flex-direction: column; align-items: flex-start; }
  .team-grid         { grid-template-columns: repeat(2,1fr); }
  .sectors-list,
  .sector-grid       { grid-template-columns: 1fr; }
  .grid-3            { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .card-container     { grid-template-columns: 1fr !important; gap: 28px; padding: 48px 20px; }
  .grid-2             { grid-template-columns: 1fr; gap: 32px; }
  .material-container { grid-template-columns: 1fr; }
  .sec-why-home,
  .testimonials-section,
  .emerging-section,
  .sectors-section,
  .contact-section,
  .team-section,
  .local-seo-section,
  .premium-cta-section { padding: 64px 20px; }
  .sec-services-home  { padding: 64px 20px; }
  .cnc-info           { padding: 48px 20px; }
  .content-wrap       { padding: 0 20px 48px; }
  .single-container, .sec-inline-content { padding-left: 20px; padding-right: 20px; }
  .navbar-toggler     { display: flex; }
  .navbar-toggler span { background: #1a2a4a; }
  .navbar-menu {
    display: none;
    position: absolute;
    top: 62px; left: 0; width: 100%;
    background: #ffffff;
    flex-direction: column;
    align-items: center;
    padding: 12px 0 24px;
    box-shadow: 0 12px 32px rgba(13,32,64,0.12);
    gap: 0; z-index: 998;
    border-bottom: 1px solid rgba(13,32,64,0.08);
  }
  .navbar-menu.active { display: flex; }
  .nav-link {
    padding: 14px 28px; width: 100%;
    text-align: center; font-size: 1rem;
    border-bottom: 1px solid rgba(13,32,64,0.06);
    color: #1a2a4a !important;
  }
  .cta-btn { margin: 16px 28px 0; width: calc(100% - 56px); text-align: center; display: block; }
  .footer-top { grid-template-columns: 1fr; gap: 32px; }
  .iso-cred-inner { grid-template-columns: 1fr; }
  .why-chips { grid-template-columns: 1fr; }
  .trust-strip { grid-template-columns: 1fr 1fr; }
  .premium-cta-buttons { flex-direction: column; align-items: center; }
  .premium-cta-buttons .btn-se { width: 100%; max-width: 340px; }
  .sec-hd { margin-bottom: 36px; }
}

@media (max-width: 480px) {
  .trust-strip    { grid-template-columns: 1fr; }
  .team-grid      { grid-template-columns: 1fr; }
  .hero-section   { padding: 60px 0 50px !important; }
}

/* ── 32. PAGE ENTRY ANIMATION ─────────────────────────────────*/
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(32px); }
  to   { opacity: 1; transform: translateY(0); }
}
.hero-content > *:nth-child(1) { animation: fadeUp 0.75s var(--ease-out) 0.1s both; }
.hero-content > *:nth-child(2) { animation: fadeUp 0.75s var(--ease-out) 0.25s both; }

/* ── 33. BREADCRUMB HIDE ──────────────────────────────────────*/
.breadcrumb-container, .breadcrumb,
nav[aria-label="breadcrumb"], .page-breadcrumbs {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}


/* ═══════════════════════════════════════════════════════════════
   USA PAGE — Premium additions  v1
   All classes used exclusively in the USA/sub-pages.
   Appended to robocon-styles-premium.css — no duplication.
   ═══════════════════════════════════════════════════════════════ */

/* ── USA/SWEDEN HERO (.hero / .hero-in / .hero-txt / .hero-img) ─
   Both sub-pages use .hero instead of .hero-section.
   !important on background/color to override ERPNext base styles. */
.hero {
  position: relative;
  overflow: hidden;
  background: var(--navy-deep) !important;
  padding: 88px 0 80px;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 68% 40%, rgba(37,99,200,0.18) 0%, transparent 52%),
    radial-gradient(circle at 18% 75%, rgba(240,90,0,0.12) 0%, transparent 48%),
    url("data:image/svg+xml,%3Csvg width='40' height='40' xmlns='http://www.w3.org/2000/svg'%3E%3Ccircle cx='1' cy='1' r='1' fill='rgba(255,255,255,0.03)'/%3E%3C/svg%3E") !important;
  pointer-events: none;
}
/* Scan line animation — same as hero-section */
.hero::after {
  display: none;
}

.hero-in {
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 28px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
  position: relative;
  z-index: 2;
}

/* Left column — text */
.hero-txt h1 {
  color: #ffffff;
  font-size: clamp(2.0rem, 3.6vw, 3.2rem);
  font-weight: 700;
  line-height: 1.14;
  letter-spacing: -0.02em;
  margin-bottom: 18px;
}
.hero-txt h1 span {
  background: linear-gradient(135deg, var(--orange-glow) 0%, var(--gold) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-txt > p {
  color: var(--tx-secondary) !important;
  font-size: 1.05rem;
  line-height: 1.8;
  margin-bottom: 24px;
}

/* Badges row */
.badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 28px;
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--r-pill);
  color: var(--ice);
  font-size: 0.80rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  backdrop-filter: blur(4px);
  transition: background 0.2s, border-color 0.2s;
}
.badge:hover {
  background: rgba(240,90,0,0.12);
  border-color: rgba(240,90,0,0.35);
  color: #ffffff;
}

/* Right column — slider container
   NOTE: overflow must NOT be hidden here — it would clip Glide's
   sliding track mid-animation and break the slider.
   overflow:hidden lives on .glide itself (set by Glide.js on mount). */
.hero-img {
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-deep), 0 0 0 1px rgba(255,255,255,0.06);
  position: relative;
}
/* Inner glow ring — sits above the slider, pointer-events:none */
.hero-img::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--r-lg);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.07);
  pointer-events: none;
  z-index: 10;
}
/* The .glide wrapper — border-radius clips image corners.
   overflow:hidden is intentionally NOT set here; Glide.js
   applies it after measuring the track width on mount. */
.hero-img .glide,
.hero-img .glide-se {
  border-radius: var(--r-lg);
}
.hero-img img,
.hero-img .glide__slide img {
  width: 100% !important;
  height: clamp(240px, 36vw, 440px) !important;
  object-fit: cover !important;
  object-position: center !important;
  display: block !important;
}

/* ── STAT BAR ──────────────────────────────────────────────────*/
.statbar {
  background: linear-gradient(90deg, var(--navy-mid) 0%, var(--navy-light) 50%, var(--navy-mid) 100%) !important;
  padding: 0 24px;
  border-top: 1px solid rgba(255,255,255,0.05);
  border-bottom: 1px solid rgba(255,255,255,0.05);
  position: relative;
  overflow: hidden;
}
.statbar::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--orange), var(--gold), transparent);
}
.statbar-in {
  max-width: 1440px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  text-align: center;
}
.stat {
  padding: 28px 20px;
  border-right: 1px solid rgba(255,255,255,0.06);
  transition: background 0.25s;
}
.stat:last-child { border-right: none; }
.stat:hover { background: rgba(255,255,255,0.03); }
.stat-n {
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 800;
  color: #ffffff !important;
  line-height: 1;
  letter-spacing: -0.04em;
  margin-bottom: 6px;
  background: linear-gradient(135deg, #ffffff 40%, var(--ice) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.stat-l {
  font-size: 0.75rem;
  color: var(--tx-secondary) !important;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  font-weight: 600;
}

/* ── TRUST BAR ─────────────────────────────────────────────────*/
.trustbar {
  background: #ffffff;
  border-bottom: 1px solid var(--border-card);
  padding: 14px 24px;
  text-align: center;
  box-shadow: 0 2px 12px rgba(5,13,26,0.05);
}
.trust-items {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px 32px;
  max-width: 1440px;
  margin: 0 auto;
}
.trust-item {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.84rem;
  color: var(--navy-mid);
  letter-spacing: 0.02em;
}
.trust-item i { color: var(--orange); font-size: 0.95rem; }

/* ── CARD-SE (used on capabilities, regions, process, why) ────*/
.card-se {
  background: #ffffff;
  border: 1px solid var(--border-card);
  border-radius: var(--r-lg);
  padding: 30px 26px;
  box-shadow: var(--shadow-card);
  transition: transform 0.30s var(--ease-out), box-shadow 0.30s, border-color 0.30s;
  position: relative;
  overflow: hidden;
}
.card-se::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--orange), var(--gold));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s var(--ease-out);
}
.card-se:hover {
  transform: translateY(-7px);
  box-shadow: var(--shadow-lift);
  border-color: rgba(26,74,138,0.22);
}
.card-se:hover::before { transform: scaleX(1); }
.card-se h3 { color: var(--tx-dark); margin-bottom: 10px; font-size: 1.08rem; }
.card-se p  { font-size: 0.92rem; color: var(--tx-body); }

/* Dark card variant — used in "Why Outsource" section */
.card-dk {
  background: rgba(255,255,255,0.05) !important;
  border: 1px solid rgba(255,255,255,0.09) !important;
  backdrop-filter: blur(8px);
}
.card-dk::before {
  background: linear-gradient(90deg, var(--orange), var(--gold));
}
.card-dk:hover {
  background: rgba(255,255,255,0.09) !important;
  border-color: rgba(240,90,0,0.28) !important;
}
.card-dk h3 { color: #ffffff !important; }
.card-dk p  { color: rgba(200,221,245,0.78) !important; }

/* Industry cards */
.ind-card {
  background: #ffffff;
  border: 1px solid var(--border-card);
  border-radius: var(--r-lg);
  padding: 28px 24px;
  box-shadow: var(--shadow-card);
  transition: transform 0.28s var(--ease-out), box-shadow 0.28s, border-color 0.28s;
  position: relative;
  overflow: hidden;
}
.ind-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--orange), var(--gold));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.32s var(--ease-out);
}
.ind-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lift);
  border-color: rgba(26,74,138,0.22);
}
.ind-card:hover::before { transform: scaleX(1); }
.ind-card h3 {
  font-size: 1.06rem;
  margin-bottom: 10px;
  color: var(--tx-dark);
}
.ind-card p { font-size: 0.91rem; color: var(--tx-body); }

/* ── MATERIALS GRID & PILLS ────────────────────────────────────*/
.mat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  max-width: 1440px;
  margin: 0 auto;
}
.mat-pill {
  background: #ffffff;
  border: 1px solid var(--border-card);
  border-left: 4px solid var(--orange);
  border-radius: var(--r-md);
  padding: 16px 20px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--navy-mid);
  box-shadow: var(--shadow-card);
  transition: transform 0.22s var(--ease-out), box-shadow 0.22s, border-color 0.22s;
}
.mat-pill:hover {
  border-left-color: var(--gold);
  transform: translateY(-3px);
  box-shadow: var(--shadow-lift);
}
.mat-pill span {
  display: block;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 0.78rem;
  color: var(--tx-light);
  margin-top: 3px;
}

/* ── COMPARISON TABLE ──────────────────────────────────────────*/
.tbl-se {
  width: 100%;
  border-collapse: collapse;
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lift);
  font-family: var(--font-body);
}
.tbl-se thead {
  background: linear-gradient(90deg, var(--navy-deep), var(--navy-mid));
}
.tbl-se th {
  padding: 18px 22px;
  text-align: left;
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #ffffff;
}
.tbl-se td {
  padding: 15px 22px;
  border-bottom: 1px solid var(--border-card);
  font-size: 0.93rem;
  color: var(--tx-body);
  vertical-align: middle;
}
.tbl-se tr:nth-child(even) td { background: var(--surface-light); }
.tbl-se tr:last-child td      { border-bottom: none; }
.tbl-se tr:hover td           { background: #e8f0fb; }
.hi {
  color: var(--orange);
  font-weight: 700;
}

/* ── CASE STUDY CARDS ──────────────────────────────────────────*/
.case-card {
  background: #ffffff;
  border: 1px solid var(--border-card);
  border-radius: var(--r-lg);
  padding: 30px 26px;
  box-shadow: var(--shadow-card);
  border-left: 4px solid var(--orange);
  transition: transform 0.28s var(--ease-out), box-shadow 0.28s;
  position: relative;
  overflow: hidden;
}
.case-card::after {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 4px; height: 100%;
  background: linear-gradient(180deg, var(--orange), var(--gold));
}
.case-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lift);
}
.case-card h3 {
  margin-bottom: 10px;
  font-size: 1.08rem;
  color: var(--tx-dark);
}
.case-card > p { font-size: 0.91rem; color: var(--tx-body); margin-bottom: 20px; }

.case-meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 16px;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--border-card);
}
.cm { font-size: 0.84rem; color: var(--tx-body); }
.cm strong {
  display: block;
  font-family: var(--font-display);
  font-size: 0.70rem;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: var(--tx-light);
  margin-bottom: 2px;
  font-weight: 700;
}

/* ── CTA BANNER ────────────────────────────────────────────────*/
.cta-ban {
  background: linear-gradient(135deg, var(--orange-dk) 0%, var(--orange) 45%, #e87010 100%);
  padding: 80px 24px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-ban::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 50% 30%, rgba(255,255,255,0.10) 0%, transparent 60%),
    url("data:image/svg+xml,%3Csvg width='40' height='40' xmlns='http://www.w3.org/2000/svg'%3E%3Ccircle cx='1' cy='1' r='1' fill='rgba(255,255,255,0.04)'/%3E%3C/svg%3E");
  pointer-events: none;
}
.cta-ban::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.40), transparent);
}
.cta-ban h2 {
  color: #ffffff;
  font-size: clamp(2rem, 3.5vw, 2.8rem);
  margin-bottom: 14px;
  position: relative;
  z-index: 1;
  text-shadow: 0 2px 16px rgba(0,0,0,0.15);
  letter-spacing: -0.02em;
}
.cta-ban p {
  color: rgba(255,255,255,0.90);
  font-size: 1.08rem;
  margin-bottom: 32px;
  position: relative;
  z-index: 1;
  max-width: 620px;
  margin-left: auto;
  margin-right: auto;
}
/* White button variant used in CTA */
.btn-se.btn-wh {
  background: #ffffff !important;
  color: var(--orange) !important;
  border-color: #ffffff !important;
  font-weight: 800;
}
.btn-se.btn-wh:hover {
  background: rgba(255,255,255,0.92) !important;
  color: var(--orange-dk) !important;
  box-shadow: 0 8px 32px rgba(255,255,255,0.25);
}

/* ── PILLS (explore / internal links) ──────────────────────────*/
.pills {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-top: 32px;
}
.pill {
  display: inline-flex;
  align-items: center;
  padding: 10px 22px;
  border: 1.5px solid var(--border-card);
  border-radius: var(--r-pill);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.88rem;
  color: var(--navy-mid);
  letter-spacing: 0.03em;
  background: #ffffff;
  box-shadow: var(--shadow-card);
  transition: all 0.22s var(--ease-out);
  text-decoration: none;
}
.pill:hover {
  background: var(--navy-mid);
  color: #ffffff;
  border-color: var(--navy-mid);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lift);
}

/* ── sec--dk (dark section — Why Outsource) ───────────────────*/
.sec--dk {
  background: var(--navy-deep);
  position: relative;
  overflow: hidden;
}
.sec--dk::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 25% 50%, rgba(37,99,200,0.14) 0%, transparent 52%),
    radial-gradient(circle at 78% 30%, rgba(240,90,0,0.10) 0%, transparent 44%),
    url("data:image/svg+xml,%3Csvg width='40' height='40' xmlns='http://www.w3.org/2000/svg'%3E%3Ccircle cx='1' cy='1' r='1' fill='rgba(255,255,255,0.025)'/%3E%3C/svg%3E");
  pointer-events: none;
}
.sec--dk .sec-hd      { position: relative; z-index: 1; }
.sec--dk .sec-hd h2   { color: #ffffff; }
.sec--dk .sec-hd p    { color: var(--tx-secondary); }
.sec--dk .wrap        { position: relative; z-index: 1; }
.sec--dk .grid-4      { position: relative; z-index: 1; }

/* Process step circles */
.sec .wrap > .grid-4 > div > div[style*="border-radius:50%"] {
  box-shadow: 0 8px 24px rgba(240,90,0,0.28);
}

/* ── GRID-2 reverse (5-axis section) ──────────────────────────*/
.grid-2--rev { direction: rtl; }
.grid-2--rev > * { direction: ltr; }

/* ── ABOUT & 5-AXIS section image ─────────────────────────────*/
.sec .grid-2 img {
  border-radius: var(--r-lg) !important;
  box-shadow: var(--shadow-lift) !important;
  width: 100%;
  height: auto;
}

/* ── INLINE LINK STYLES (learn more arrows in capabilities) ───*/
.card-se a[style*="color:var(--orange)"] {
  color: var(--orange) !important;
  font-weight: 700;
  font-size: 0.88rem;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 10px;
  transition: gap 0.2s, color 0.2s;
}
.card-se a[style*="color:var(--orange)"]:hover {
  color: var(--orange-dk) !important;
  gap: 8px;
}

/* ── USA-PAGE RESPONSIVE ───────────────────────────────────────*/
@media (max-width: 900px) {
  .hero-in {
    grid-template-columns: 1fr;
    gap: 36px;
    text-align: center;
  }
  .hero-txt h1   { text-align: center; }
  .hero-txt > p  { text-align: center; }
  .badges        { justify-content: center; }
  .hero-img .glide__slide img,
  .hero-img img  { height: clamp(200px, 52vw, 300px) !important; }
  .statbar-in    { grid-template-columns: repeat(2,1fr); }
  .stat:nth-child(2) { border-right: none; }
}

@media (max-width: 768px) {
  .hero          { padding: 60px 20px 52px; }
  .mat-grid      { grid-template-columns: 1fr 1fr; }
  .case-meta     { grid-template-columns: 1fr; }
  .statbar-in    { grid-template-columns: repeat(2,1fr); }
  .trust-items   { gap: 4px 16px; }
  .grid-4        { grid-template-columns: repeat(2,1fr); }
}

@media (max-width: 480px) {
  .mat-grid  { grid-template-columns: 1fr; }
  .grid-4    { grid-template-columns: 1fr; }
  .statbar-in { grid-template-columns: 1fr 1fr; }
  .badges    { gap: 6px; }
  .badge     { font-size: 0.76rem; padding: 5px 10px; }
}


/* =========================================================
   GLIDE — ERPNext override layer
   Tested with Playwright. These exact rules are verified working.

   THE KEY INSIGHT:
   overflow:hidden must be on .hero-slider (the wrapper), NOT .glide.
   If overflow:hidden is on .glide, its parent .hero-slider has no
   constraint and expands to match the slides list (perView×n×slideW),
   breaking the layout. .hero-slider clips it correctly.

   .glide__slides must NOT have width set — Glide sets this to
   (perView × slideWidth × slideCount)px in JS after measuring.
   Forcing width:100%!important here collapses slides into track width.

   .glide__slide MUST have width:100% so each slide fills the track
   BEFORE mount — this is what Glide measures to calculate slideWidth.
   ========================================================= */

/* ROOT — overflow:visible so .hero-slider (parent) controls clipping */
.glide {
  position: relative;
  width: 100%;
  overflow: visible !important;
  visibility: visible !important;
  opacity: 1 !important;
}

/* TRACK — inherits clipping from .hero-slider overflow:hidden */
.glide__track {
  position: relative;
  width: 100%;
}

/* Prevent * { max-width:100% } from constraining Glide internals */
.glide__track,
.glide__slides,
.glide__slide {
  max-width: none !important;
}

/* SLIDES — NO width property. Glide sets this to total px after measuring. */
.glide__slides {
  display: flex !important;
  flex-wrap: nowrap !important;
  align-items: stretch;
  margin: 0 !important;
  padding: 0 !important;
  list-style: none !important;
  will-change: transform;
}

/* SINGLE SLIDE — starts at 100% so Glide can measure the track, but
   do not use !important because Glide sets inline pixel widths after mount. */
.glide__slide {
  width: 100%;
  flex-shrink: 0 !important;
  display: block !important;
  position: relative;
  margin: 0 !important;
  padding: 0 !important;
}

/* IMAGES */
.glide__slide img {
  width: 100% !important;
  height: clamp(240px, 36vw, 440px) !important;
  object-fit: cover !important;
  object-position: center !important;
  display: block !important;
}

/* BULLETS */
.glide__bullets {
  position: absolute;
  bottom: 18px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 20;
}
.glide__bullet {
  width: 10px; height: 10px;
  border-radius: 999px;
  border: none;
  background: rgba(255,255,255,.45);
  cursor: pointer;
  transition: background .3s ease, width .3s ease;
}
.glide__bullet:hover   { background: rgba(255,255,255,.85); }
.glide__bullet--active { background: #f05a00; width: 26px; }

/* RESPONSIVE */
@media (max-width: 991px) {
  .hero-content, .hero-in { grid-template-columns: 1fr !important; gap: 30px !important; }
  .glide__slide img { height: 260px !important; }
}
@media (max-width: 576px) {
  .glide__slide img { height: 220px !important; }
}

/* =========================================================
   FINAL ERPNext + GLIDE + MOBILE FIXES
   Add at VERY END of CSS
========================================================= */

/* ---- Prevent ERPNext width conflicts ---- */
.glide,
.glide__track,
.glide__slides,
.glide__slide {
  width: 100%;
  min-width: 0;
}

.glide__slides {
  display: flex;
  backface-visibility: hidden;
  transform-style: preserve-3d;
  will-change: transform;
}

.glide__slide {
  flex-shrink: 0;
}

/* ---- CRITICAL FIX ---- */
.glide__track {
  overflow: hidden !important;
}

/* NEVER hide overflow on .glide itself */
.glide {
  overflow: visible !important;
}

/* ---- Hero slider sizing ---- */
.hero-slider,
#hero-glide {
  width: 100%;
  max-width: 100%;
}

.hero-slider img,
#hero-glide img {
  width: 100%;
  height: clamp(240px, 36vw, 440px) !important;
  object-fit: cover;
  display: block;
}

/* ---- Mobile navbar ---- */
@media (max-width: 768px) {

  .navbar-toggler {
    display: flex !important;
  }

  .navbar-menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;

    background: #ffffff;

    flex-direction: column;
    align-items: flex-start;

    padding: 20px;

    gap: 18px;

    box-shadow: 0 10px 30px rgba(0,0,0,.08);

    display: none;
    z-index: 999;
  }

  .navbar-menu.active {
    display: flex !important;
  }

  .navbar-container {
    position: relative;
  }

  .hero-content {
    grid-template-columns: 1fr !important;
  }

  .grid-2,
  .grid-3,
  .grid-4,
  .team-grid,
  .material-container,
  .iso-cred-inner,
  .footer-top,
  .trust-strip {
    grid-template-columns: 1fr !important;
  }

  .hero-buttons {
    justify-content: center !important;
  }

  .premium-cta-buttons {
    flex-direction: column;
    align-items: center;
  }

  .premium-cta-buttons .btn-se {
    width: 100%;
    max-width: 320px;
  }

  .wrap,
  .content-wrap,
  .single-container,
  .card-container,
  .hero-content {
    padding-left: 20px !important;
    padding-right: 20px !important;
  }

  h1 {
    font-size: clamp(2rem, 8vw, 2.8rem);
  }

  h2 {
    font-size: clamp(1.5rem, 6vw, 2rem);
  }
}

/* ---- Extra small phones ---- */
@media (max-width: 480px) {

  .hero-section {
    padding: 60px 0 50px !important;
  }

  .btn-se,
  .cta-btn {
    width: 100%;
    justify-content: center;
  }

  .hero-checks {
    justify-content: center;
  }

  .premium-badge {
    font-size: 0.7rem;
  }

  .trust-number {
    font-size: 2rem;
  }

  .testimonial-card,
  .image-card,
  .team-card {
    padding: 24px 20px;
  }
}

/* =========================================================
   FINAL 1440PX PAGE WIDTH LOCK
   Keeps USA/Sweden content aligned with the navbar container.
========================================================= */
.navbar-container,
.hero-in,
.wrap,
.statbar-in,
.trust-items,
.sector-grid,
.mat-grid {
  width: 100% !important;
  max-width: 1440px !important;
  margin-left: auto !important;
  margin-right: auto !important;
  box-sizing: border-box !important;
}

.navbar-container,
.hero-in,
.wrap {
  padding-left: 28px !important;
  padding-right: 28px !important;
}

.hero-in {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) !important;
  gap: 56px !important;
  justify-items: stretch !important;
}

.hero-txt,
.hero-slider {
  width: 100% !important;
  max-width: none !important;
}

@media (max-width: 900px) {
  .hero-in {
    grid-template-columns: 1fr !important;
    gap: 36px !important;
  }
}

@media (max-width: 768px) {
  .navbar-container,
  .hero-in,
  .wrap {
    padding-left: 20px !important;
    padding-right: 20px !important;
  }
}

/* =========================================================
   HOMEPAGE HERO SPACING TUNE
   Overrides inline homepage hero spacing from cnc-machining.html.
========================================================= */
.hero-section {
  padding-top: 42px !important;
  padding-bottom: 56px !important;
}

.hero-section .hero-content {
  max-width: 1440px !important;
  padding-left: 28px !important;
  padding-right: 28px !important;
  align-items: center !important;
}

.hero-section .premium-badge {
  margin-bottom: 18px !important;
}

@media (max-width: 900px) {
  .hero-section {
    padding-top: 36px !important;
    padding-bottom: 52px !important;
  }
}

@media (max-width: 480px) {
  .hero-section {
    padding-top: 30px !important;
    padding-bottom: 48px !important;
  }
}

/* =========================================================
   PRODUCT PAGE FULL-WIDTH FRAME
   ERPNext page-builder product grid.
========================================================= */
#page-product {
  width: 100vw !important;
  max-width: 100vw !important;
  margin-left: calc(50% - 50vw) !important;
  margin-right: calc(50% - 50vw) !important;
}

#page-product .page-content-wrapper,
#page-product .page_content,
#page-product .section-with-cards,
#page-product .mt-6 {
  width: 100% !important;
  max-width: none !important;
}

#page-product .section.bg-light {
  background: var(--surface-light) !important;
  padding: 72px 0 !important;
  width: 100% !important;
  max-width: none !important;
}

#page-product .container {
  width: 100% !important;
  max-width: 1440px !important;
  margin-left: auto !important;
  margin-right: auto !important;
  padding-left: 28px !important;
  padding-right: 28px !important;
  box-sizing: border-box !important;
}

#page-product .section-title {
  color: var(--tx-dark) !important;
  border-bottom: none !important;
  margin: 0 0 36px !important;
  padding: 0 !important;
  top: auto !important;
  font-size: clamp(1.9rem, 3vw, 2.6rem) !important;
  text-align: left !important;
}

#page-product .row {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 28px !important;
  margin: 0 !important;
}

#page-product [class*="col-"] {
  width: auto !important;
  max-width: none !important;
  padding: 0 !important;
  margin: 0 !important;
}

#page-product .card {
  border: 1px solid var(--border-card) !important;
  border-radius: var(--r-lg) !important;
  overflow: hidden !important;
  box-shadow: var(--shadow-card) !important;
  background: #ffffff !important;
  height: 100% !important;
}

#page-product .card-img-top {
  width: 100% !important;
  aspect-ratio: 4 / 3 !important;
  height: auto !important;
  object-fit: cover !important;
  display: block !important;
}

@media (max-width: 1024px) {
  #page-product .row {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 640px) {
  #page-product .section.bg-light {
    padding: 56px 0 !important;
  }

  #page-product .container {
    padding-left: 20px !important;
    padding-right: 20px !important;
  }

  #page-product .row {
    grid-template-columns: 1fr !important;
  }
}

/* =========================================================
   INFRASTRUCTURE PAGE FULL-WIDTH FRAME  (1440px container)
   Mirrors #page-product rules for #page-infrastructure.
========================================================= */
#page-infrastructure {
  width: 100vw !important;
  max-width: 100vw !important;
  margin-left: calc(50% - 50vw) !important;
  margin-right: calc(50% - 50vw) !important;
}

#page-infrastructure .page-content-wrapper,
#page-infrastructure .page_content,
#page-infrastructure .section-with-cards,
#page-infrastructure .mt-6 {
  width: 100% !important;
  max-width: none !important;
}

#page-infrastructure .section.bg-light {
  background: var(--surface-light) !important;
  padding: 72px 0 !important;
  width: 100% !important;
  max-width: none !important;
}

#page-infrastructure .container {
  width: 100% !important;
  max-width: 1440px !important;
  margin-left: auto !important;
  margin-right: auto !important;
  padding-left: 28px !important;
  padding-right: 28px !important;
  box-sizing: border-box !important;
}

#page-infrastructure .section-title {
  color: var(--tx-dark) !important;
  border-bottom: none !important;
  margin: 0 0 36px !important;
  padding: 0 !important;
  top: auto !important;
  font-size: clamp(1.9rem, 3vw, 2.6rem) !important;
  text-align: left !important;
}

#page-infrastructure .row {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 28px !important;
  margin: 0 !important;
}

#page-infrastructure [class*="col-"] {
  width: auto !important;
  max-width: none !important;
  padding: 0 !important;
  margin: 0 !important;
}

#page-infrastructure .card {
  border: 1px solid var(--border-card) !important;
  border-radius: var(--r-lg) !important;
  overflow: hidden !important;
  box-shadow: var(--shadow-card) !important;
  background: #ffffff !important;
  height: 100% !important;
}

#page-infrastructure .card-img-top {
  width: 100% !important;
  aspect-ratio: 4 / 3 !important;
  height: auto !important;
  object-fit: cover !important;
  display: block !important;
}

@media (max-width: 1024px) {
  #page-infrastructure .row {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 640px) {
  #page-infrastructure .section.bg-light {
    padding: 56px 0 !important;
  }

  #page-infrastructure .container {
    padding-left: 20px !important;
    padding-right: 20px !important;
  }

  #page-infrastructure .row {
    grid-template-columns: 1fr !important;
  }
}

/* =========================================================
   CONTACT PAGE — 1440px container + layout
========================================================= */
#page-contact {
  width: 100vw !important;
  max-width: 100vw !important;
  margin-left: calc(50% - 50vw) !important;
  margin-right: calc(50% - 50vw) !important;
}

#page-contact .page-content-wrapper,
#page-contact .page_content {
  width: 100% !important;
  max-width: none !important;
}

#page-contact .section.bg-light {
  background: var(--surface-light) !important;
  padding: 72px 0 !important;
  width: 100% !important;
  max-width: none !important;
}

#page-contact .container {
  width: 100% !important;
  max-width: 1440px !important;
  margin-left: auto !important;
  margin-right: auto !important;
  padding-left: 28px !important;
  padding-right: 28px !important;
  box-sizing: border-box !important;
}

/* Section heading */
#page-contact .section-title {
  color: var(--tx-dark) !important;
  border-bottom: none !important;
  margin: 0 0 40px !important;
  padding: 0 !important;
  top: auto !important;
  font-size: clamp(1.9rem, 3vw, 2.6rem) !important;
  text-align: left !important;
}

/* Two-column layout: form | address */
#page-contact .contact-row {
  display: grid !important;
  grid-template-columns: 1fr 1fr !important;
  gap: 56px !important;
  margin: 0 !important;
  align-items: start !important;
}

#page-contact [class*="col-"] {
  width: auto !important;
  max-width: none !important;
  padding: 0 !important;
  margin: 0 !important;
}

/* Form styling */
#page-contact .form-group {
  margin-bottom: 20px;
}

#page-contact label {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--tx-dark);
  margin-bottom: 6px;
  letter-spacing: 0.01em;
}

#page-contact .form-control {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--border-card);
  border-radius: var(--r-md);
  font-size: 0.95rem;
  font-family: var(--font-body);
  color: var(--tx-dark);
  background: #fff;
  transition: border-color 0.2s, box-shadow 0.2s;
  box-sizing: border-box;
}

#page-contact .form-control:focus {
  outline: none;
  border-color: var(--blue-bright);
  box-shadow: 0 0 0 3px rgba(37,99,200,0.12);
}

#page-contact textarea.form-control {
  resize: vertical;
  min-height: 180px;
}

#page-contact .btn-send {
  background: var(--orange) !important;
  color: #fff !important;
  border: none !important;
  padding: 12px 32px !important;
  border-radius: var(--r-pill) !important;
  font-weight: 600 !important;
  font-size: 0.95rem !important;
  cursor: pointer !important;
  transition: background 0.2s, transform 0.15s var(--ease-back) !important;
}

#page-contact .btn-send:hover:not(:disabled) {
  background: var(--orange-glow) !important;
  transform: translateY(-1px);
}

#page-contact .btn-send:disabled {
  opacity: 0.65;
  cursor: not-allowed !important;
}

/* Address / contact info panel */
#page-contact .contact-info {
  padding-top: 4px;
}

#page-contact .contact-info-heading {
  font-size: 1rem !important;
  font-weight: 700 !important;
  color: var(--tx-dark) !important;
  margin: 0 0 10px !important;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

#page-contact address {
  font-style: normal;
}

#page-contact .contact-info p,
#page-contact address p {
  font-size: 0.96rem;
  color: var(--tx-body);
  margin-bottom: 20px;
  line-height: 1.9;
}

#page-contact .contact-info a {
  color: var(--orange);
  font-weight: 500;
}

#page-contact .contact-info a:hover {
  color: var(--orange-glow);
}

/* Map */
#page-contact .contact-map-wrap {
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 28px 56px;
  box-sizing: border-box;
}

#page-contact .contact-map-wrap iframe {
  width: 100% !important;
  height: 400px !important;
  border: 0 !important;
  border-radius: var(--r-lg) !important;
  display: block !important;
}

/* Responsive */
@media (max-width: 900px) {
  #page-contact .contact-row {
    grid-template-columns: 1fr !important;
    gap: 40px !important;
  }
}

@media (max-width: 640px) {
  #page-contact .section.bg-light {
    padding: 48px 0 !important;
  }

  #page-contact .container,
  #page-contact .contact-map-wrap {
    padding-left: 20px !important;
    padding-right: 20px !important;
  }

  #page-contact .contact-map-wrap iframe {
    height: 280px !important;
  }
}
