/* =========================================================
   GLOBAL
   ========================================================= */
:root {
  --container-max:1100px;
  --container-pad:16px;
  --brand-cta:#5AB562;
  --ink:#111827;
  --ink-2:#222;
  --text:#444;
  --bg:#fff;
  --muted:#f3f4f6;
  --stroke:#e5e7eb;
  --shadow:0 20px 40px rgba(0,0,0,.08);
  --radius:12px;

  /* z-index scale */
  --z-header: 10000;   /* sticky header */
  --z-drawer: 10010;   /* mobile nav drawer */
  --z-cookie: 10020;   /* cookie banner/modal */
  --z-overlay: 20000;  /* video & image lightbox overlays – always on top */
  --header-offset: 70px;   /* match your fixed header’s true height */
  --z-subnav: 9999;        /* just below header (10000), above everything else */
}
*,*::before,*::after { box-sizing:border-box }
html,body { height:100% }
body {
  font-family:'Poppins',Arial,Helvetica,sans-serif;
  margin:0;
  color:var(--ink-2);
  background:var(--bg);
  line-height:1.6;
}
a {
  text-decoration:none;
  color:inherit;
  transition:color .2s ease, background-color .2s ease;
}
img { max-width:100%; height:auto; display:block }
.container { max-width:var(--container-max); margin:0 auto; padding:0 var(--container-pad) }
.full-width { width:100%; margin:0; padding:0 }

/* =========================================================
   GLOBAL FOOTER WRAPPER (no extra spacing)
   ========================================================= */
#footer {
  background: transparent;
  border: 0;
  padding: 0;
  margin: 0;
}
/* --- Prevent stray pseudo-content on <html> or <body> --- */
html::before,
html::after,
body::before,
body::after {
  content: none !important;
  display: none !important;
}

/* =========================================================
   TYPOGRAPHY
   ========================================================= */
h1 { font-size:2.5rem; font-weight:600; margin:0 0 1rem; line-height:1.2;   letter-spacing: -0.03em;}
h2 { font-size:2rem; font-weight:600; margin:2rem 0 1rem; line-height:1.25;   letter-spacing: -0.03em;}
h3 { font-size:1.5rem; font-weight:500; margin:1.5rem 0 1rem; line-height:1.3;   letter-spacing: -0.03em;}
p  { font-size:1rem; font-weight:400; margin:0 0 1rem; color:var(--text); line-height:1.6; }

/* =========================================================
   HEADER & NAV 
   ========================================================= */
#header,#header .site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: var(--z-header);
  background: var(--bg);
  border-bottom: 1px solid var(--stroke);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
  overflow: visible !important;
}
#header .header-inner {
  max-width:var(--container-max);
  margin:0 auto;
  padding:10px var(--container-pad);
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
}
#header .logo img.site-logo { display:block; height:56px }
#header .site-nav { display:block }
#header .nav-list {
  list-style:none;
  margin:0;
  padding:0;
  display:flex;
  align-items:center;
  gap:18px;
}

/* top-level links + Business Types trigger */
#header .nav-list a,
#header .nav-link {
  color:var(--ink);
  padding:10px 8px;
  border-radius:8px;
  font-weight:600;
  font-size:1rem;
  line-height:1;
  background:transparent;
  border:0;
  appearance:none;
  cursor:pointer;
  display:inline-block;
  text-align:left;
}
#header .nav-list a:hover,
#header .nav-link:hover,
#header .nav-list a.is-active { background:var(--muted) }

#header .has-caret { position:relative }
#header .has-caret::after { content:none !important; display:none !important }

/* CTA button */
#header .nav-list .cta.primary a,
#header .nav-link.cta.primary {
  background:var(--brand-cta);
  color:#fff;
  border:1px solid var(--brand-cta);
  padding:6px 12px;
  border-radius:6px;
  font-weight:600;
}

/* Mobile toggle */
#header .nav-toggle {
  display:none;
  width:40px;
  height:40px;
  border:1px solid var(--stroke);
  background:var(--bg);
  border-radius:8px;
  cursor:pointer;
  align-items:center;
  justify-content:center;
  padding:6px;
  z-index: calc(var(--z-header) + 1);
}
#header .nav-toggle__bar {
  width:22px;
  height:2px;
  background:var(--ink);
  display:block;
  margin:3px 0;
}

/* =========================================================
   MEGA MENU 
   ========================================================= */
#header .nav-list > li { position:relative }         
#header .has-mega { position:relative!important }

#header .mega {
  position:absolute;
  top:calc(100% - 2px); /* Position the menu directly below the selected option */
  left:0; /* Align left with the menu item */
  transform:none;
  width:auto;
  min-width:720px;
  max-width:calc(100vw - 32px);
  display:none;
  background:#fff;
  border:1px solid var(--stroke);
  border-radius:var(--radius);
  box-shadow:var(--shadow);
  padding:16px;
  z-index: calc(var(--z-header) + 1);
  overflow:visible;
  max-height: 80vh; /* Allow vertical scrolling */
  overflow-y: auto; /* Enable vertical scroll */
  overflow-x: hidden; /* Disable horizontal scroll */
}

/* open states (desktop) */
@media (min-width:901px) {
  /* ONLY open via JS, not hover */
  #header .has-mega.is-open > .mega {
    display: block !important;
  }
}


  /* Align the mega menu to the left on larger screens */
  #header .mega {
    left: 0; /* Align to the left of the screen */
    transform: none;
  }
}

/* hover bridges */
#header .has-mega::after {
  content:"";
  position:absolute;
  left:0; right:0; top:100%;
  height:10px;
  background:transparent;
  pointer-events:auto;
}
#header .mega::before {
  content:"";
  position:absolute;
  left:0; right:0; top:-10px;
  height:10px;
  background:transparent;
  pointer-events:auto;
}

/* inner grid — fixed 3 columns */
#header .mega-inner {
  margin:0;
  padding:0;
  display:grid;
  grid-template-columns:repeat(3, minmax(200px,1fr)); /* Keeps 3 columns */
  gap:24px; /* Spacing between columns */
  align-items:start;
  max-width:none;
  width:auto;
}

#header .mega h4 {
  font-size:.85rem;
  letter-spacing:.08em;
  text-transform:uppercase;
  color:#6b7280;
  margin:6px 0 10px;
}

#header .mega ul { list-style:none; margin:0; padding:0 }
#header .mega li + li { margin-top:8px }
#header .mega a { color:var(--ink); font-weight:400; font-size:0.95rem; }
#header .mega a:hover { text-decoration:underline }

/* =========================================================
   Mega Menu – Sub-item styling (TapaPay group)
   ========================================================= */
.mega-links .parent-link {
  font-weight: 600;
  color: var(--ink);
}

.mega-links li.sub {
  margin-left: 1rem;              /* indent */
  list-style: none;
}

.mega-links li.sub a {
  font-weight: 400;
  color: #555;
  font-size: 0.95rem;
}

.mega-links li.sub a:hover {
  color: var(--brand-cta);
}

/* =========================================================
   Mega Menu (icon middle-left, full click area)
   ========================================================= */
.mega-links.with-icons li {
  list-style: none;
  margin-bottom: 18px;
}

/* Whole row is clickable */
.mega-links.with-icons li a {
  display: flex;
  align-items: center;          /* center icon + text vertically */
  gap: 16px;
  text-decoration: none !important;
  background: transparent;
  border-radius: 12px;
  padding: 12px 18px;
  transition: background 0.25s ease, box-shadow 0.25s ease;
  color: inherit;
}

/* Remove all link underlines */
.mega-links.with-icons li a:link,
.mega-links.with-icons li a:visited,
.mega-links.with-icons li a:hover,
.mega-links.with-icons li a:active {
  text-decoration: none !important;
}

/* Icon perfectly centred beside text */
.mega-links.with-icons li a img.menu-icon {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
  filter: brightness(0) saturate(100%) invert(55%) sepia(9%)
          saturate(1821%) hue-rotate(83deg) brightness(94%) contrast(89%);
  opacity: 0.9;
}

/* Text block */
.mega-links.with-icons li a .menu-text {
  display: flex;
  flex-direction: column;
  justify-content: center;      /* vertically centre text block */
  align-items: flex-start;
  line-height: 1.4;
  text-align: left;
}

/* Title */
.mega-links.with-icons li a .menu-text .title {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--ink);
  margin: 0 0 3px 0;
}

/* Description */
.mega-links.with-icons li a .menu-text .desc {
  font-size: 0.8rem;
  color: #666;
  margin: 0;
  max-width: 260px;
}

/* Hover */
.mega-links.with-icons li a:hover {
  background-color: rgba(90,181,98,0.08);
  box-shadow: 0 0 0 1px rgba(90,181,98,0.2) inset;
}

.mega-links.with-icons li a:hover .title {
  color: var(--brand-cta);
}

/* =========================================================
   Mega Menu on Small Screens
   ========================================================= */
@media (max-width: 900px) {
  #header .mega {
    max-height: 80vh; /* Allow vertical scrolling */
    overflow-y: auto; /* Vertical scroll */
    overflow-x: hidden; /* Disable horizontal scroll */
    position: absolute;
    left: 50%; /* Center the menu horizontally */
    transform: translateX(-50%); /* Offset to center the menu */
    top: 100%; /* Position it just below the header */
    width: auto;
    min-width: 600px; /* Minimum width for the smaller screen layout */
  }

  /* Ensure content inside mega menu is displayed inline for scrolling */
  #header .mega-inner {
    display: grid; /* Keep grid layout */
    grid-template-columns: repeat(3, minmax(200px, 1fr)); /* Ensure 3 columns */
    gap: 24px; /* Spacing between columns */
    min-width: 900px; /* Ensure the inner content is wide enough for 3 columns */
  }
}



/* =========================================================
   HERO
   ========================================================= */

.hero {
  /* theme tokens (defaults) */
  --hero-bg-img: url("../images/hero/hero_back_blue.webp");
  --hero-bg-color: #0b79b7;
  --hero-overlay: linear-gradient(180deg, rgba(0,0,0,0.00) 0%, rgba(0,0,0,.15) 100%);
  --hero-ink: #fff;
  --hero-cta: #ff6f3c;
  --hero-cta-hover: #e85a25;

  color: var(--hero-ink);
  position: relative;
  padding: 80px 20px;
  margin-top: 0px;

  /* supports either image or solid colour */
  background:
    var(--hero-overlay),
    var(--hero-bg-img) no-repeat left top / cover,
    var(--hero-bg-color);
}

.hero-overlay { background: rgba(0,0,0,0); padding: 0 }

.hero-inner {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 40px;
  max-width: 1200px;
  margin: 0 auto;
}

.hero-media img { 
  max-width: 600px; 
  height: auto; 
  display: block; 
}

.hero-content { flex: 1 }

.hero-content h1 {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 1rem;
  line-height: 1.2;
}

/* Ensure .hero-copy text inherits correct hero ink colour */
.hero-copy h1,
.hero-copy p,
.hero-copy a {
  color: var(--hero-ink);
}

/* Existing hero paragraph styles */
.hero-content p {
  font-size: 1.125rem;
  font-weight: 300;
  margin-bottom: 1rem;
  color: var(--hero-ink);
}

/* CTA inherits theme colours */
.hero-cta {
  display: inline-block;
  background: var(--hero-cta);
  color: #fff;
  font-weight: 600;
  padding: 14px 24px;
  border-radius: 8px;
  text-decoration: none;
  transition: background .3s ease;
}
.hero-cta:hover { background: var(--hero-cta-hover) }

/* ---------- Theme modifiers ---------- */

/* BLUE (default) */
.hero--blue {
  --hero-bg-img: url("../images/hero/hero_back_blue.webp");
  --hero-bg-color: #0b79b7;
  --hero-cta: #f3712d;
  --hero-cta-hover: #5ab562;
}

/* GREEN */
.hero--green {
  --hero-bg-img: url("../images/hero/hero_back_green.webp");
  --hero-bg-color: #5ab562;
  --hero-cta: #ff6f3c;
  --hero-cta-hover: #1a1c49;
}

/* ORANGE */
.hero--orange {
  --hero-bg-img: url("../images/hero/hero_back_orange.webp");
  --hero-bg-color: #f3712d;
  --hero-cta: #5ab562;         
  --hero-cta-hover: #1a1c49;
}

/* NAVY */
.hero--navy {
  --hero-bg-img: url("../images/hero/hero_back_navy.webp");
  --hero-bg-color: #1a1c49;
  --hero-cta: #f3712d;         
  --hero-cta-hover: #5ab562;
}

/* SOLID colour hero (no image), add .hero--solid */
.hero--solid { --hero-bg-img: none; }
/* ---------- Mobile: center hero content and CTA ---------- */
@media (max-width: 800px) {
  .hero-inner {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 24px;
  }

  .hero-content {
    text-align: center;
  }

  .hero-cta {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    margin: 16px auto 0;
    text-align: center;
    width: auto;
  }

  .hero-media img {
    max-width: 100%;
    height: auto;
  }
}
.hero-content .hero-logo {
  display: block;
  margin: 0 0 1rem 0;   
  width: 250px;          
  height: auto;
  filter: drop-shadow(0 2px 6px rgba(0,0,0,0.25));
}
/* =========================================================
   HERO HEADINGS — Responsive clamp scaling
   ========================================================= */
.hero-content h1 {
  font-size: clamp(1.9rem, 3vw + 1rem, 3rem);
  line-height: 1.2;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--hero-ink);
}

/* Optional fine-tuning for ultra-wide screens */
@media (min-width: 1600px) {
  .hero-content h1 {
    font-size: 3.2rem;
  }
}

/* =========================================================
   MAIN
   ========================================================= */
main { padding: 0 }

/* =========================================================
   RESPONSIVE (≤900px)
   ========================================================= */
@media (max-width: 900px) {
  .index-hero .hero-inner {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 24px;
  }

  /* ✅ Ensure hero image always appears ABOVE text */
  .index-hero .hero-media {
    order: -1;
    text-align: center;
    margin-bottom: 20px;
  }

  .index-hero .hero-media img {
    width: 100%;
    max-width: 520px;
    height: auto;
    margin: 0 auto;
    display: block;
  }

  .index-hero .hero-content,
  .index-hero .hero-media {
    width: 100%;
    min-width: 0;
    flex: unset;
  }

  .index-hero .hero-content h1 {
    font-size: 1.75rem;
    line-height: 1.25;
  }

  .index-hero .hero-content p {
    font-size: 1rem;
  }

  .index-hero .hero-cta {
    display: block;
    width: 100%;
    max-width: 280px;
    margin: 12px auto 0;
  }
}


/* =========================================================
   MAIN
   ========================================================= */
main { padding:0 }  /* no extra space at bottom before footer */

/* =========================================================
   RESPONSIVE (≤900px)
   ========================================================= */
@media (max-width:900px) {
  /* hamburger + stacking */
  #header .nav-toggle { display:inline-flex; position:relative; z-index: calc(var(--z-header) + 1); }
  #header .nav-link { width:100%; text-align:left }

  /* drawer */
  #header .site-nav {
    position:fixed;
    inset:60px 0 0 0;
    background:var(--bg);
    border-top:1px solid var(--stroke);
    display:none!important;
    padding:10px 14px;
    z-index: var(--z-drawer);
    overflow:auto;
  }
  #header .site-nav.nav--open { display:block!important }
  #header .nav-list { flex-direction:column; align-items:stretch; gap:8px }
  #header .nav-list a { padding:12px 10px; font-size:1.05rem }
  body.no-scroll { overflow:hidden }

  /* mega accordion */
  #header .mega {
    position:static;
    left:auto; top:auto;
    transform:none;
    width:auto; min-width:0; max-width:none;
    box-shadow:none;
    border-radius:10px;
    padding:12px;
    display:none!important;
  }
  #header .mega-inner { grid-template-columns:1fr; gap:16px }
  #header .has-mega.is-open > .mega { display:block!important }

  /* hero stacked */
  .index-hero .hero-inner {
    display:flex;
    flex-direction:column;
    align-items:center;
    text-align:left;
    gap:24px;
  }
  .index-hero .hero-media,
  .index-hero .hero-content { width:100%; min-width:0; flex:unset }
  .index-hero .hero-media img {
    width:100%;
    max-width:520px;
    height:auto;
    margin:0 auto;
    display:block;
  }
  .index-hero .hero-content h1 { font-size:1.75rem; line-height:1.25 }
  .index-hero .hero-content p { font-size:1rem; color:#fff }
  .index-hero .hero-cta {
    display:block;
    width:100%;
    max-width:280px;
    margin:12px auto 0;
  }
}

/* ===== Benefits ===== */
.benefits {
  background:#0c77a0; 
  color:#fff;
  padding:64px 0 80px;
}
.benefits-header { text-align:center; max-width:900px; margin:0 auto 32px; }
.benefits-header h2 {
  font-size:2.2rem;
  font-weight:700;
  letter-spacing:.01em;
  margin:0 0 12px;
}
.benefits-intro { color:#e9f4f8; line-height:1.7; margin:0 auto; }

/* Grid */
.benefits-grid {
  display:grid;
  grid-template-columns:repeat(2, minmax(280px, 1fr));
  gap:40px 56px;
  max-width:1100px;
  margin:40px auto 0;
}
.benefit { text-align:center; }
.benefit-icon {
  width:72px;
  height:auto;
  margin:0 auto 14px;
  display:block;
  filter:brightness(0) invert(1);
}
.benefit h3 { font-size:2rem; font-weight:800; margin:10px 0 10px; letter-spacing:.01em; }
.benefit p { color:#d8ecf3; line-height:1.7; margin:0; }

/* Responsive */
@media (max-width:900px){
  .benefits { padding:48px 0 60px; }
  .benefits-header h2 { font-size:1.9rem; }
  .benefits-grid { grid-template-columns:1fr; gap:28px; margin-top:28px; }
  .benefit h3 { font-size:1.6rem; }
}

/* ===== Customer Logos Carousel ===== */
.logos { 
  background:#fff; 
  padding:28px 0 36px; 
}

.logos-title { 
  text-align:center; 
  color:#6b7280; 
  font-size:1.0rem; 
  margin:0 0 18px; 
}

.logos-marquee {
  position:relative; 
  overflow:hidden;
  -webkit-mask-image: linear-gradient(to right, transparent 0, #000 64px, #000 calc(100% - 64px), transparent 100%);
          mask-image: linear-gradient(to right, transparent 0, #000 64px, #000 calc(100% - 64px), transparent 100%);
}

.logos-track {
  display:flex; 
  align-items:center; 
  gap:56px;
  will-change: transform; 
  animation: logos-scroll var(--logos-duration, 30s) linear infinite;
}

.logos-track img {
  height:100px; 
  width:auto; 
  filter: grayscale(1); 
  opacity:0.9;
  transition: filter .2s ease, opacity .2s ease, transform .2s ease; 
  user-select:none; 
  pointer-events:auto;
}

.logos-track img:hover { 
  filter:none; 
  opacity:1; 
  transform: translateY(-2px); 
}

.logos-marquee:hover .logos-track { 
  animation-play-state: paused; 
}

@keyframes logos-scroll { 
  from { transform: translateX(0); } 
  to { transform: translateX(-50%); } 
}

/* ---------- Responsive (≤900px) ---------- */
@media (max-width:900px){
  .logos-title { font-size:1.1rem; }
  .logos-track { gap:6vw; } 
  .logos-track img { 
    height:15vw;           
    max-height:80px;       
  }
}


/* ===== Videos section ===== */
.videos { 
  background:#fff; 
  padding:56px 0; 
  color:var(--ink); 
}
.videos__header { 
  text-align:center; 
  max-width:900px; 
  margin:0 auto 28px; 
}
.videos__header h2 { 
  font-size:2rem; 
  font-weight:700; 
  margin:0 0 8px; 
  line-height:1;
}
.videos__intro { 
  color:#556; 
  margin:0; 
}

/* Grid layout  */
.values__grid { 
  display:grid; 
  grid-template-columns:repeat(3,1fr); 
  gap:24px; 
}

/* Tablet and mobile: 2 columns */
@media (max-width:1024px) {
  .values__grid { 
    grid-template-columns:repeat(2,1fr); 
  }
}

/* Keep 2 columns even on smaller phones */
@media (max-width:640px) {
  .values__grid { 
    grid-template-columns:repeat(2,1fr); 
  }
}

/* Optional: 1 column only on very small screens */
@media (max-width:400px) {
  .values__grid { 
    grid-template-columns:1fr; 
  }
}

/* Card */
.value-card {
  border:1px solid var(--stroke);
  border-radius:16px;
  padding:16px;
  background:#fff;
  display:grid;
  justify-items:center;
  text-align:center;
  gap:14px;
  content-visibility:auto;
  contain-intrinsic-size:520px 420px;
}

.value-card__shot {
  width:100%;
  max-width:520px;
  aspect-ratio:16/9;
  border:1px solid var(--stroke);
  border-radius:12px;
  overflow:hidden;
  background:#f8fafc;
  cursor:pointer;
  position:relative;
}

.value-card__shot img { 
  width:100%; 
  height:100%; 
  object-fit:cover; 
  display:block; 
}

/* Play badge */
.value-card__shot::after {
  content:"▶";
  position:absolute; 
  top:50%; 
  left:50%; 
  transform:translate(-50%,-50%);
  width:56px; 
  height:56px; 
  border-radius:50%;
  display:grid; 
  place-items:center;
  background:rgba(0,0,0,.6); 
  color:#fff; 
  font-size:28px;
}

/* Text */
.value-card__title { 
  font-size:1.25rem; 
  font-weight:800; 
  margin:0; 
}

.value-card__content p { 
  color:#666; 
  margin:0; 
}

/* Lightbox */
#img-modal { 
  position:fixed; 
  inset:0; 
  z-index: var(--z-overlay); 
  display:grid; 
  place-items:center;
  opacity:0; 
  visibility:hidden; 
  pointer-events:none; 
  transition:opacity .18s ease; 
}
#img-modal[aria-hidden="false"] { 
  opacity:1; 
  visibility:visible; 
  pointer-events:auto; 
}
.img-modal__backdrop { 
  position:fixed; 
  inset:0; 
  background:rgba(0,0,0,.7); 
  pointer-events:auto; 
}
.img-modal__dialog { 
  position:relative; 
  width:min(1024px,94vw); 
  aspect-ratio:16/9;
  background:#000; 
  border-radius:14px; 
  overflow:hidden; 
  box-shadow:0 20px 60px rgba(0,0,0,.6); 
  pointer-events:auto; 
}
.img-modal__close { 
  position:absolute; 
  top:10px; 
  right:12px; 
  z-index:2; 
  background:transparent; 
  border:none; 
  color:#fff; 
  font-size:28px; 
  cursor:pointer; 
}
.img-modal__frame { 
  width:100%; 
  height:100%; 
}
.img-modal__frame > * { 
  width:100%; 
  height:100%; 
  border:0; 
}


/* =========================
   CTA Section
   ========================= */
.cta-section {
  background: #5AB562;
  padding: 60px 0;
  color: #fff;
}

.cta-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 40px;
  align-items: flex-start;
}

.cta-content h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
  color: #fff;
  line-height: 1.2;
}

.cta-content p {
  color: #f0fdf4;
}

/* Transparent framed form box */
.cta-form {
  background: rgba(255, 255, 255, 0.15); /* semi-transparent overlay */
  border-radius: 16px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.25);
  padding: 24px;
}

.cta-form form {
  width: 100% !important;
  max-width: none !important;
}

/* Responsive layout */
@media (max-width: 768px) {
  .cta-grid {
    grid-template-columns: 1fr;
  }
  .cta-form {
    margin-top: 20px;
  }
}


/* integration logos */
.integration-logos {
  width:100%;
  background:#fff;
  padding:10px 0;
  overflow:hidden;
}
.integration-logos .logos-marquee { position:relative; overflow:hidden; width:100%; }
.integration-logos .logos-track { display:flex; gap:60px; animation:scroll 30s linear infinite; }
.integration-logos img { height:100px; width:auto; object-fit:contain; flex-shrink:0; filter:grayscale(100%); transition:filter .3s ease; }
.integration-logos img:hover { filter:grayscale(0%); }
@keyframes scroll { 0%{ transform:translateX(0);} 100%{ transform:translateX(-50%);} }

/* ==========================
   Footer Styles
   ========================== */
.site-footer {
  background:#0b0e3f;
  color:#fff;
  font-size:.95rem;
  padding:40px 20px;

  /* Full bleed */
  width:100vw;
  position:relative;
  left:50%;
  right:50%;
  margin-left:-50vw;
  margin-right:-50vw;

  border:none;
  box-shadow:none;
  z-index:10;
}

/* Inner container stays neat */
.site-footer .footer-container { max-width:1200px; margin:0 auto; padding:0 20px; }

/* Columns */
.footer-columns {
  display:grid;
  grid-template-columns:repeat(auto-fit, minmax(200px, 1fr));
  gap:30px;
  margin-bottom:30px;
}
.footer-col h4 { margin-bottom:15px; font-weight:600; color:#fff; text-align:left; }
.footer-col ul { list-style:none; padding:0; margin:0; }
.footer-col ul li { margin:8px 0; }
.footer-col ul li a { color:#fff; text-decoration:underline; display:block; text-align:left; font-weight:200; }
.footer-col ul li a:hover { color:#ccc; }

/* Footer Note */
.footer-note { margin:20px 0; font-size:.9rem; line-height:1.6; text-align:center; }
.footer-note p, .footer-note strong { color:#fff !important; font-weight:300; }

/* Socials */
.footer-socials { margin-top:15px; text-align:center; }
.footer-socials a { margin:0 10px; display:inline-block; line-height:0; }
.footer-socials img { width:32px; height:32px; filter:brightness(0) invert(1); transition:opacity .2s ease, transform .2s ease; }
.footer-socials img:hover { opacity:.75; transform:translateY(-1px); }

/* Bottom strip */
.footer-bottom { border-top:1px solid rgba(255,255,255,0.2); padding-top:15px; font-size:.85rem; text-align:center; margin-top:20px; }
.footer-bottom p { margin:0; color:#fff !important; }

/* Responsive tweaks */
@media (max-width: 640px) {
  .site-footer { padding:28px 16px; font-size:.9rem; }
  .footer-columns { gap:18px; margin-bottom:22px; }
  .footer-socials img { width:22px; height:22px; }
}

/* ==========================
   Cookie Banner & Modal 
   ========================== */

/* --- Cookie banner (bottom-left) --- */
.cookie-banner {
  position: fixed !important;
  left: 16px !important;
  bottom: 16px !important;
  max-width: 360px;
  background: #fff;
  color: #111827 !important;
  padding: 16px;
  border-radius: 12px;
  box-shadow: 0 20px 40px rgba(0,0,0,.2);
  z-index: var(--z-cookie);
  display: none;
  font-size: 0.7rem;   
  line-height: 1.4;
}
.cookie-banner p {
  margin: 0 0 12px;
  color: #111827 !important;
  font-size: 0.7rem;   
}
.cookie-actions {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.cookie-banner .btn {
  cursor: pointer;
  border: 0;
  padding: 6px 10px;   
  border-radius: 8px;
  font-size: 0.7rem;
}
.cookie-banner .btn-primary { background: #5AB562; color: #fff; }
.cookie-banner .btn-secondary { background: #e5e7eb; color: #111827; }
.cookie-banner .btn-neutral { background: #d1d5db; color: #111827; }
.cookie-banner .btn:hover { opacity: 0.9; }

/* --- Cookie modal overlay --- */
.cookie-modal {
  position: fixed !important;
  inset: 0;
  background: rgba(0,0,0,.5);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: calc(var(--z-cookie) + 1);
}
.cookie-modal__card {
  width: min(560px, 92vw);
  background: #fff;
  color: #111827 !important;
  border-radius: 16px;
  box-shadow: 0 20px 50px rgba(0,0,0,.4);
  padding: 16px;   
  position: relative;
  font-size: 0.7rem;   
  line-height: 1.4;
}
.cookie-modal__card h3 {
  margin: 0 0 6px;
  font-size: 0.8rem;   
  color: #111827 !important;
}
.cookie-modal__card p {
  margin: 0 0 12px;
  color: #333 !important;
  font-size: 0.7rem;
}
.cookie-group .row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #f3f4f6;
  padding: 8px;        
  border-radius: 8px;
  margin-bottom: 8px;
  font-size: 0.7rem;
}
.cookie-group .row span { color: #111827; }
.cookie-modal__close {
  position: absolute;
  top: 6px;
  right: 8px;
  background: transparent;
  border: 0;
  color: #111827;
  font-size: 18px;   
  cursor: pointer;
}
.cookie-modal .btn {
  cursor: pointer;
  border: 0;
  padding: 6px 10px;
  border-radius: 8px;
  font-size: 0.7rem;
}
.cookie-modal .btn-primary { background: #5AB562; color: #fff; }
.cookie-modal .btn-secondary { background: #e5e7eb; color: #111827; }

/* --- Mobile tweak --- */
@media (max-width: 480px) {
  .cookie-banner {
    left: 12px;
    right: 12px;
    bottom: 12px;
    max-width: none;
  }
}
/* ==========================
   Apps Section 
   ========================== */
.apps {
  position: relative;
  padding: 2rem 1rem;
  background: #f9f9f9;
  overflow: hidden;
}

/* Two-column layout */
.apps__inner {
  display: grid;
  gap: 2rem;
  align-items: center;
}

/* Header block */
.apps-header {
  max-width: 700px;
  margin: 0 auto 1.5rem;
  text-align: center;
}

.apps-header h2 {
  font-size: 1.8rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  margin-bottom: 0.5rem;
}

.apps-header p {
  color: #555;
  font-size: 1rem;
  line-height: 1.5;
}

/* Carousel wrapper */
.apps-rail {
  position: relative;
  overflow: hidden;
}

/* Moving track */
.apps-container {
  display: flex;
  flex-wrap: nowrap;
  gap: 1rem;
  animation: appsLoop 40s linear infinite;
  will-change: transform;
}

/* Keyframes for continuous horizontal motion */
@keyframes appsLoop {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* App cards */
.app-card {
  flex: 0 0 auto;
  width: 130px;
  height: 130px;
  padding: 0.75rem;
  background: #fff;
  border: 1px solid #5ab562;
  border-radius: 10px;
  text-decoration: none;
  color: #0b0e3f;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: transform .2s ease, background-color .2s ease, color .2s ease;
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.app-card:hover {
  background: #0b0e3f;
  color: #fff;
  transform: translateY(-2px);
}

/* Icon styling */
.app-card img {
  width: 36px;
  height: 36px;
  margin-bottom: 0.5rem;
  border-radius: 0;
  background: transparent;
  display: block;
  transition: filter .2s ease;
}

/* Hover recolour */
.app-card:hover img {
  filter: brightness(0) invert(1);
}

/* Text below icon */
.app-card span {
  font-size: 0.9rem;
  text-align: center;
  font-weight: 400;
}

/* Hide arrow buttons */
.scroll-btn { display: none !important; }

/* --------- Responsive --------- */

/* Tablet & below */
@media (max-width: 991px) {
  .apps__inner {
    grid-template-columns: 1fr;
  }
  .apps-header {
    text-align: center;
    margin: 0 auto 1.5rem;
    max-width: 90%;
    padding-left: 0;
  }
}

/* Desktop: 25% text / 75% carousel */
@media (min-width: 992px) {
  .apps__inner {
    grid-template-columns: 25% 75%;
  }
  .apps-header {
    text-align: left;
    margin: 0;
    padding-left: 20%;
    justify-self: end;
  }
}

/* Mobile: smaller cards + tighter spacing */
@media (max-width: 767px) {
  .app-card {
    width: 110px;
    height: 110px;
    padding: 0.1rem;
  }

  .apps-header h2 {
    font-size: 1.5rem;
    margin-bottom: 0.3rem;
  }

  .apps-header p {
    font-size: 0.9rem;
    line-height: 1.4;
    margin-bottom: 0.0rem;
  }

  /* if you have any CTA buttons inside .apps-header, tighten them */
  .apps-header .btn,
  .apps-header button {
    margin-top: 0.1rem;
  }

  /* reduce overall gaps */
  .apps__inner {
    gap: .8rem;
  }
}

/* =========================================================
   TapaPOS Feature Cards
   ========================================================= */

.tp-features {
  padding: 0px 0px;
}
.tp-features .tp-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  column-gap: 32px !important;
  row-gap: 32px !important;
  isolation: isolate;
  width: 100%;
  height: 100%;
}
.tp-features .tp-wrap {
  background-color: #f5f5f5;
  padding: 40px;
  border-radius: 12px; /* optional for rounded corners */
}
.tp-features .tp-intro h2 {
  font-weight: 700;          /* tweak as needed */
  line-height: 1.2;
  letter-spacing: -0.03em;
}
/* Responsive grid */
@media (max-width: 1024px) {
  .tp-features .tp-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 640px) {
  .tp-features .tp-grid {
    grid-template-columns: 1fr;
  }
}

/* Card styling */
.tp-features .tp-card {
  position: relative;
  border: 1px solid #5AB562;
  border-radius: 16px;
  background: transparent;
  padding: 32px 24px;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease, z-index .2s;
  z-index: 0;
  box-sizing: border-box;
}

.tp-features .tp-card:hover,
.tp-features .tp-card:focus {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(2,8,23,.06);
  border-color: #0f172a;
  z-index: 2; /* lift above neighbours */
  outline: none;
}

/* Icon + text */
.tp-features .tp-icon {
  margin-bottom: 16px;
  color: #5AB562;
  display: grid;
  place-items: center;
}

.tp-features .tp-card__title {
  margin: 0 0 12px;
  font-size: 1.5rem;
  font-weight: 700;
  color: #0f172a;
}

.tp-features .tp-card__text {
  margin: 0;
  font-size: 1rem;
  line-height: 1.6;
  color: #475569;
}

/* =========================
   Testimonial Videos
   ========================= */
.testi {
  position: relative;
  isolation: isolate;
  padding: 56px 0 48px;
  color: #fff;
}
.testi__bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(160deg, rgba(0,0,0,0), rgba(0,0,0,0)),
    url("../images/hero/hero_back_orange.webp") center/cover no-repeat;
}

/* header */
.testi__header { text-align: center; }
.testi__header h2 {
  font-size: clamp(2rem, 2.2rem + 1vw, 3rem);
  font-weight: 700;
  margin: 0 0 28px;
  line-height: 1.2; 
}

/* grid */
.testi__grid {
  display: grid;
  gap: 28px;
  grid-template-columns: 1fr;
  align-items: stretch;           /* ensure cards stretch evenly */
  grid-auto-rows: 1fr;            /* equal-height rows */
}
@media (min-width: 768px) {
  .testi__grid { grid-template-columns: repeat(3, 1fr); }
}

/* card: make it a column flex container */
.testi-item {
  display: flex;                  /* <-- key */
  flex-direction: column;         /* quote on top, video at bottom */
  background: rgba(255,255,255,0.08);
  border-radius: 14px;
  box-shadow: 0 20px 40px rgba(0,0,0,.08);
  padding: 16px;
  height: 100%;                   /* fill grid cell height */
}

/* quote grows to fill space above the video */
.testi-item__quote {
  text-align: center;
  margin: 0 0 14px;
  flex: 1 1 auto;                 /* <-- grows to push video down */
}
.testi-item__quote blockquote { margin: 0 0 8px; font-weight: 600; line-height: 1.4; }
.testi-item__quote figcaption { opacity: .95; font-weight: 500; }

/* thumbnail button pinned at the bottom */
.testi-item__shot {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  line-height: 0;
  border-radius: 10px;
  overflow: hidden;
  margin-top: auto;               /* <-- pins to bottom of the card */
}
.testi-item__shot img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  display: block;
}

/* play icon */
.testi-item__play {
  position: absolute;
  left: 12px;
  bottom: 12px;
  width: 44px;
  height: 44px;
  display: inline-grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(0,0,0,.55);
  color: #fff;
  font-size: 18px;
  pointer-events: none;
  transition: transform .2s ease, background-color .2s ease;
}
.testi-item__shot:hover .testi-item__play,
.testi-item__shot:focus-visible .testi-item__play {
  transform: scale(1.05);
  background: rgba(0,0,0,.7);
}

/* modal */
.video-modal { position: fixed; inset: 0; z-index: var(--z-overlay); }
.video-modal[hidden] { display: none !important; }
.video-modal__backdrop { position: absolute; inset: 0; background: rgba(0,0,0,.6); pointer-events:auto; }
.video-modal__dialog {
  position: relative;
  max-width: min(1100px, 92vw);
  margin: 6vh auto;
  background: #000;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 30px 60px rgba(0,0,0,.4);
  pointer-events:auto;
}
.video-modal__close {
  position: absolute; right: 10px; top: 8px; z-index: 2;
  border: 0; background: rgba(0,0,0,.5); color: #fff;
  width: 36px; height: 36px; border-radius: 50%;
  font-size: 26px; cursor: pointer;
}
.video-embed { position: relative; width: 100%; aspect-ratio: 16/9; }
.video-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* ======================================
   Testimonials – Plain Style
   ====================================== */

.testi_plain {
  background: #f3f4f6; /* light grey background */
  padding: 64px 0;
  color: #222;
  font-family: 'Poppins', Arial, sans-serif;
  line-height: 1.6;
}

/* Section wrapper */
.testi_plain {
  padding: 64px 0;
}

.testi_plain__header {
  text-align: center;
  margin-bottom: 40px;
}

.testi_plain__header h2 {
  font-size: clamp(1.8rem, 2.2vw, 2.6rem);
  font-weight: 700;
  margin: 0;
  color: #111;
}

/* Grid layout */
.testi_plain__grid {
  display: grid;
  gap: 32px;
  grid-template-columns: 1fr;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px;
}

@media (min-width: 768px) {
  .testi_plain__grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Each testimonial card */
.testi_plain__item {
  background: #ffffff;
  border-radius: 14px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.05);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 100%;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.testi_plain__item:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.08);
}

/* Quote area */
.testi_plain__quote {
  text-align: center;
  padding: 20px 16px 0;
}

.testi_plain__logo {
  width: 100px;
  height: 100px;
  object-fit: contain;
  margin: 0 auto 10px;
  display: block;
  filter: grayscale(100%);
  opacity: 0.9;
  transition: filter 0.2s ease, opacity 0.2s ease;
}

.testi_plain__item:hover .testi_plain__logo {
  filter: grayscale(0%);
  opacity: 1;
}

.testi_plain__quote figcaption {
  font-weight: 600;
  margin-bottom: 0.6rem;
  color: #111;
}

.testi_plain__quote blockquote {
  margin: 0;
  color: #444;
  font-style: quotes;
  line-height: 1.5;
}

/* Thumbnail / video shot */
.testi_plain__shot {
  position: relative;
  border: 0;
  padding: 0;
  background: none;
  cursor: pointer;
  margin-top: auto;
  line-height: 0;
}

.testi_plain__shot img {
  width: 100%;
  height: auto;
  aspect-ratio: 16/9;
  object-fit: cover;
  display: block;
  border-top: 1px solid #eee;
}

.testi_plain__play {
  position: absolute;
  left: 12px;
  bottom: 12px;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  border-radius: 50%;
  font-size: 18px;
  pointer-events: none;
  transition: background 0.2s ease, transform 0.2s ease;
}

.testi_plain__shot:hover .testi_plain__play {
  background: rgba(0, 0, 0, 0.7);
  transform: scale(1.05);
}

/* Modal (uses existing JS) */
.video-modal {
  position: fixed;
  inset: 0;
  z-index: 20000;
}

.video-modal[hidden] {
  display: none !important;
}

.video-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  pointer-events: auto;
}

.video-modal__dialog {
  position: relative;
  max-width: min(1100px, 92vw);
  margin: 6vh auto;
  background: #000;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4);
  pointer-events: auto;
}

.video-modal__close {
  position: absolute;
  right: 10px;
  top: 8px;
  z-index: 2;
  border: 0;
  background: rgba(0, 0, 0, 0.5);
  color: #fff;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  font-size: 26px;
  cursor: pointer;
}

.video-embed {
  position: relative;
  width: 100%;
  aspect-ratio: 16/9;
}

.video-embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* =========================================================
   About Us 
   ========================================================= */
.tp-features .tp-intro {
  text-align: center !important;
  max-width: 900px;
  margin: 0 auto 28px;
}
.tp-features .tp-intro h2,
.tp-features .tp-intro p {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}
/* =========================================================
   Hero with Form
   ========================================================= */
/* --- Layout: two equal columns --- */
.hero.index-hero .hero-inner{
  display:grid;
  grid-template-columns:1fr 1fr;   /* 50 / 50 */
  gap:40px;
  align-items:start;               /* top align both columns */
  padding-top:40px;                /* visual top balance */
}

/* Left column: copy */
.hero.index-hero .hero-content{
  align-self:start;
  padding-top:10px;                /* aligns first line with form’s inner padding */
  max-width:720px;                 /* comfortable line length; remove if you want full column width */
}
/* Right column: form card */
.hero.index-hero .hero-form{
  background:#fff;
  color:#111;
  border:1px solid rgba(2,8,23,.06);
  border-radius:12px;
  box-shadow:0 16px 40px rgba(0,0,0,.15);
  padding:28px 24px 32px;
  width:100%;
  max-width:560px;
  margin-left:auto;                /* hug right edge visually */
  display:flex;
  flex-direction:column;
  align-items:stretch;
}

/* Headings & supporting text in form card */
.hero.index-hero .hero-form h2{
  margin:0 0 .5rem;
  font-size:1.25rem;
  font-weight:700;
  color:#0f172a;
}
.hero.index-hero .hero-form .sub{
  margin:0 0 1rem;
  color:#455;
  font-size:.95rem;
}
.hero.index-hero .hero-form .assure{
  margin:.75rem 0 0;
  font-size:.9rem;
  color:#6b7280;
}

/* CTA button in hero copy (uses hero tokens when available) */
.hero.index-hero .hero-cta,
.hero.index-hero .btn-primary{
  display:inline-block;
  background:var(--hero-cta, #5AB562);
  color:#fff;
  font-weight:700;
  padding:12px 18px;
  border-radius:10px;
  text-decoration:none;
  border:0;
  transition:transform .15s ease, background-color .2s ease;
}
.hero.index-hero .hero-cta:hover,
.hero.index-hero .btn-primary:hover{
  transform:translateY(-1px);
  background:var(--hero-cta-hover, #469e4f);
}
.hero.index-hero .hero-cta:focus-visible,
.hero.index-hero .btn-primary:focus-visible{
  outline:2px solid #0b63ff;
  outline-offset:2px;
}

/* ---------------------------------------------------------
   HubSpot form normalisation (scoped to hero only)
   --------------------------------------------------------- */
.hero.index-hero .hero-form .hs-form{ max-width:520px; width:100%; }
.hero.index-hero .hero-form .hs-form fieldset{ max-width:100% !important; }

/* Labels */
.hero.index-hero .hero-form .hs-form label{
  display:inline-block;
  font-size:.9rem;
  color:#111827;
  margin:0 0 6px;
  font-weight:600;
}

/* Inputs / selects / textareas */
.hero.index-hero .hero-form .hs-form input[type="text"],
.hero.index-hero .hero-form .hs-form input[type="email"],
.hero.index-hero .hero-form .hs-form input[type="tel"],
.hero.index-hero .hero-form .hs-form input[type="url"],
.hero.index-hero .hero-form .hs-form select,
.hero.index-hero .hero-form .hs-form textarea{
  width:100% !important;
  background:#fff;
  color:#0f172a;
  border:1px solid #e5e7eb;
  border-radius:10px;
  padding:12px 12px;
  font-size:1rem;
  line-height:1.4;
  transition:border-color .15s ease, box-shadow .15s ease;
  appearance:none;
}
.hero.index-hero .hero-form .hs-form input:focus,
.hero.index-hero .hero-form .hs-form select:focus,
.hero.index-hero .hero-form .hs-form textarea:focus{
  outline:none;
  border-color:#0b63ff;
  box-shadow:0 0 0 3px rgba(11,99,255,.15);
}

/* Field spacing */
.hero.index-hero .hero-form .hs-form .hs-form-field,
.hero.index-hero .hero-form .hs-form .field,
.hero.index-hero .hero-form .hs-form .input{
  margin:0 0 14px !important;
}

/* Submit button */
.hero.index-hero .hero-form .hs-form input[type="submit"],
.hero.index-hero .hero-form .hs-form .hs-button{
  width:100%;
  background:var(--brand-cta, #5AB562);
  color:#fff;
  border:0;
  border-radius:10px;
  padding:12px 16px;
  font-weight:700;
  cursor:pointer;
  transition:transform .15s ease, background-color .2s ease, box-shadow .2s ease;
}
.hero.index-hero .hero-form .hs-form input[type="submit"]:hover,
.hero.index-hero .hero-form .hs-form .hs-button:hover{
  transform:translateY(-1px);
  background:#469e4f;
  box-shadow:0 8px 18px rgba(2,8,23,.08);
}
.hero.index-hero .hero-form .hs-form input[type="submit"]:focus-visible,
.hero.index-hero .hero-form .hs-form .hs-button:focus-visible{
  outline:2px solid #0b63ff;
  outline-offset:2px;
}

/* Errors & legal text */
.hero.index-hero .hero-form .hs-error-msg{ color:#b42318; font-size:.85rem; margin-top:6px; }
.hero.index-hero .hero-form .legal-consent-container,
.hero.index-hero .hero-form .hs-richtext{ font-size:.85rem; color:#4b5563; }

/* ---------------------------------------------------------
   Proof bar 
   --------------------------------------------------------- */
.hero.index-hero .proof-bar{
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); /* responsive columns */
  gap: 8px 16px;                      
  list-style: disc outside;           
  padding-inline-start: 1.25rem;      
  margin: 14px 0 0;
  color: #e9edf9;                     
}

/* Ensure items render markers even if a reset changed display */
.hero.index-hero .proof-bar li{
  display: list-item;
  margin: 0;
}

/* Optional: make bullets brighter (or use your brand color) */
.hero.index-hero .proof-bar li::marker{
  color: #ffffff;                     
  font-size: 0.9em;
}
@media (max-width: 768px) {
  .hero.index-hero .proof-bar {
    display: block;          /* stack items vertically */
    padding-left: 1.25rem;   /* keep bullet indentation */
    text-align: left;        /* ensure text aligns left */
  }

  .hero.index-hero .proof-bar li {
    margin-bottom: 6px;      /* add spacing between items */
  }
}


/* ---------------------------------------------------------
   Quote Boxes (Frosted-Glass Dark Tint for Light Backgrounds)
   --------------------------------------------------------- */
.hero.index-hero .quote-chips{
  display:flex;
  flex-direction:column;
  gap:20px;
  margin:16px 0 0;
  width:90%;
}

.hero.index-hero .quote-chip{
  display:flex;
  flex-direction:column;            
  align-items:center;               
  justify-content:center;
  width:100%;
  min-height:120px;
  padding:20px 16px;
  border-radius:14px;
  border:1px solid rgba(0,0,0,0.15);

  /* Frosted glass effect (dark tint for light backgrounds) */
  background:rgba(0,0,0,0.25);
  backdrop-filter:blur(8px);
  -webkit-backdrop-filter:blur(8px);

  color:#fff;
  font-weight:300;
  font-size:1rem;
  line-height:1.5;
  text-align:center;
  text-decoration:none;
  transition:
    background .25s ease,
    border-color .25s ease,
    transform .15s ease,
    box-shadow .25s ease;
}

.hero.index-hero .quote-chip:hover{
  background:rgba(0,0,0,0.35);      /* darker hover */
  border-color:rgba(0,0,0,0.25);
  transform:translateY(-3px);
  box-shadow:0 8px 16px rgba(0,0,0,0.25);
}

.hero.index-hero .quote-chip:focus-visible{
  outline:2px solid rgba(255,255,255,0.6);
  outline-offset:2px;
}

/* Logo inside quote */
.hero.index-hero .quote-chip__logo{
  width:100px;
  height:100px;
  object-fit:contain;
  margin-bottom:10px;
  filter:brightness(0) invert(1);
  opacity:0.9;
  transition:opacity .2s ease;
}

.hero.index-hero .quote-chip:hover .quote-chip__logo{
  opacity:1;
}

/* ---------------------------------------------------------
   Responsive (Quote Chips + Logo)
   --------------------------------------------------------- */
@media (max-width: 1200px){
  .hero.index-hero .quote-chips{ width:92%; gap:18px; }
  .hero.index-hero .quote-chip{ padding:18px 16px; border-radius:12px; }
  .hero.index-hero .quote-chip__logo{ width:96px; height:96px; }
}

@media (max-width: 1024px){
  .hero.index-hero .hero-inner{ gap:28px; }
  .hero.index-hero .quote-chips{ width:94%; gap:16px; }
  .hero.index-hero .quote-chip{
    min-height:110px;
    padding:16px 14px;
    font-size:.98rem;
  }
  .hero.index-hero .quote-chip__logo{ width:88px; height:88px; }
}

@media (max-width: 900px){
  .hero.index-hero .hero-inner{
    grid-template-columns:1fr;
    padding-top:20px;
  }
  .hero.index-hero .hero-content,
  .hero.index-hero .hero-form{
    max-width:100%; margin:0;
  }

  .hero.index-hero .quote-chips{
    width:100%;
    gap:16px;
    margin:12px 0 0;
  }
  .hero.index-hero .quote-chip{
    padding:16px;
    font-size:.96rem;
  }
  .hero.index-hero .quote-chip__logo{ width:84px; height:84px; }
}

@media (max-width: 640px){
  .hero.index-hero .quote-chip{
    padding:14px;
    border-radius:10px;
    line-height:1.45;
  }
  .hero.index-hero .quote-chip__logo{ width:76px; height:76px; margin-bottom:8px; }
}

@media (max-width: 420px){
  .hero.index-hero .quote-chip{
    font-size:.92rem;
    padding:12px;
  }
  .hero.index-hero .quote-chip__logo{ width:68px; height:68px; }
}


/* ---------------------------------------------------------
   Reduced motion
   --------------------------------------------------------- */
@media (prefers-reduced-motion:reduce){
  .hero.index-hero .hero-cta,
  .hero.index-hero .btn-primary,
  .hero.index-hero .quote-chip{
    transition:none !important;
  }
}
/* =========================
   Why Us
   ========================= */
.why-us{
  background: var(--muted, #f3f4f6);         /* light grey */
  padding: clamp(48px, 6vw, 96px) 0;
}
.why-us .container{
  max-width: var(--container-max, 1100px);
  margin: 0 auto;
  padding: 0 var(--container-pad, 16px);
}

.why-us__header{
  text-align: center;
  max-width: 820px;
  margin: 0 auto 24px;
}
.why-us__header h2{
  margin: 0 0 8px;
  font-size: clamp(1.75rem, 1.4rem + 1vw, 2.25rem);
  font-weight: 700;
  color: var(--ink, #111827);
}
.why-us__intro{
  margin: 0;
  color: var(--text, #444);
  line-height: 1.6;
}

.why-us__grid{
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}
@media (max-width: 1024px){
  .why-us__grid{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px){
  .why-us__grid{ grid-template-columns: 1fr; }
}

.why-card{
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 18px;
  background: #fff;
  border: 1px solid var(--stroke, #e5e7eb);
  border-radius: var(--radius, 12px);
  box-shadow: var(--shadow, 0 6px 18px rgba(2,8,23,.06));
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.why-card:hover,
.why-card:focus-within{
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(2,8,23,.08);
  border-color: var(--ink, #111827);
}

.why-card__img{
  width: 48px;
  height: 48px;
  object-fit: contain;
  flex-shrink: 0;
}
.why-card__body h3{
  margin: 0 0 6px;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--ink, #111827);
}
.why-card__body p{
  margin: 0;
  font-size: 1rem;
  line-height: 1.55;
  color: var(--text, #444);
}

/* =========================
   Feature Cards (Green Background)
   ========================= */
.feature-cards {
  background: #5AB562; /* green background */
  padding: clamp(48px, 6vw, 96px) 0;
  color: var(--ink, #111827);
}

.feature-cards .container {
  max-width: var(--container-max, 1100px);
  margin: 0 auto;
  padding: 0 var(--container-pad, 16px);
}

/* Header */
.feature-cards__header {
  text-align: center;
  max-width: 820px;
  margin: 0 auto 24px;
}

.feature-cards__header h2 {
  margin: 0 0 8px;
  font-size: clamp(1.75rem, 1.4rem + 1vw, 2.25rem);
  font-weight: 700;
  color: #fff; /* white heading for contrast */
}

.feature-cards__intro {
  margin: 0;
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.6;
}

/* Grid layout */
.feature-cards__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

@media (max-width: 1024px) {
  .feature-cards__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .feature-cards__grid { grid-template-columns: 1fr; }
}

/* Individual cards */
.feature-card {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 20px;
  background: #fff; /* white cards */
  border: 1px solid var(--stroke, #e5e7eb);
  border-radius: var(--radius, 12px);
  box-shadow: var(--shadow, 0 6px 18px rgba(2,8,23,.06));
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.feature-card:hover,
.feature-card:focus-within {
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(2,8,23,.12);
  border-color: var(--ink, #111827);
}

.feature-card__img {
  width: 48px;
  height: 48px;
  object-fit: contain;
  flex-shrink: 0;
}

.feature-card__body h3 {
  margin: 0 0 6px;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--ink, #111827);
}

.feature-card__body p {
  margin: 0;
  font-size: 1rem;
  line-height: 1.55;
  color: var(--text, #444);
}


/* =========================================================
   BLOG THEME 
   ========================================================= */

/* Page wrapper (keeps the global site styles intact) */
.is-blog { background:#fff; color:#0f172a; }

/* ---------- Breadcrumb ---------- */
.is-blog .breadcrumb{
  max-width:1100px; margin:14px auto 0; padding:0 16px;
}
.is-blog .breadcrumb ol{
  list-style:none; display:flex; gap:8px;
  padding:0; margin:0; color:#6b7280; font-size:.95rem;
}
.is-blog .breadcrumb a{ text-decoration:underline; }

/* ---------- Hero (clean, no colored background) ---------- */
.is-blog .post-hero{
  background:transparent;
  padding:40px 0 8px;
  margin:0 0 12px;
}
.is-blog .post-hero .container{
  max-width:1100px; margin:0 auto; padding:0 16px;
}
.is-blog .post-hero h1{
  margin:.25rem 0 10px;
  font-size:clamp(2rem,1.4rem + 1.8vw,2.6rem);
  line-height:1.2; letter-spacing:.005em;
}
.is-blog .post-meta{ color:#6b7280; font-size:.95rem; }

/* Hero image: rounded, natural ratio, subtle shadow */
.is-blog .post-hero__media{
  margin-top:18px; border-radius:14px; overflow:hidden;
  box-shadow:0 10px 30px rgba(2,8,23,.06);
}
.is-blog .post-hero__media img{
  display:block; width:100%; height:auto; /* keep original ratio */
}

/* If you ever want a shallower banner look, uncomment:
.is-blog .post-hero__media img{ max-height:520px; object-fit:cover; }
*/

/* ---------- Article body ---------- */
.is-blog .post{
  max-width:840px; margin:0 auto;
  padding:0 16px 56px;
}
.is-blog .post p{ color:#374151; line-height:1.8; }
.is-blog .post h2{ margin:2rem 0 .75rem; font-size:1.55rem; line-height:1.3; }
.is-blog .post h3{ margin:1.25rem 0 .5rem; font-size:1.15rem; }
.is-blog .post ul{ padding-left:1.25rem; }

/* Key bullet grid (for short lists of features) */
.is-blog .key-list{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(260px,1fr));
  gap:8px 16px;
}
.is-blog .key-list li{ margin:0; }

/* ---------- TOC / Note / CTA ---------- */
.is-blog .toc{
  background:#f9fafb;
  border:1px solid #e5e7eb;
  border-radius:12px;
  padding:16px;
  margin:16px 0 24px;
}
.is-blog .toc h2{ font-size:1.1rem; margin:0 0 8px; }
.is-blog .toc a{ text-decoration:underline; }

.is-blog .note{
  background:#fff8e1;
  border:1px solid #f7d070;
  border-radius:10px;
  padding:12px 14px;
  margin:14px 0;
}

.is-blog .cta-box{
  background:#eeeeee; color:#000000;
  border-radius:14px; padding:18px;
  margin:28px 0 0; display:grid; gap:8px;
}
.is-blog .cta-box a.btn{
  display:inline-block;
  background:#5AB562; color:#fff;
  padding:10px 14px; border-radius:10px;
  font-weight:700; text-decoration:none;
}

/* ---------- Tags ---------- */
.is-blog .tags{ display:flex; flex-wrap:wrap; gap:8px; margin:24px 0 0; }
.is-blog .tag{
  border:1px solid #e5e7eb; background:#fff;
  color:#374151; border-radius:999px;
  padding:6px 10px; font-size:.85rem;
}

/* ---------- Small screens ---------- */
@media (max-width:640px){
  .is-blog .post{ padding-bottom:44px; }
}
/* =========================================================
   Articles / Blog Index
   ========================================================= */

.articles-index .skip-link{position:absolute;left:-9999px;top:auto}
.articles-index .skip-link:focus{left:16px;top:16px;background:#fff;color:#111;padding:8px 12px;border-radius:6px;z-index:10000}

/* Page header */
.archive-hero{background:#fff}
.archive-wrap{max-width:1100px;margin:0 auto;padding:24px 16px}
.archive-hero h1{margin:0 0 6px;font-size:clamp(1.6rem,1.2rem + 1.4vw,2.2rem);line-height:1.2}
.archive-hero .lede{margin:6px 0 14px;color:#4b5563}
.archive-filters{display:flex;gap:8px;flex-wrap:wrap;margin-top:8px}
.chip{
  appearance:none;border:1px solid #e5e7eb;background:#fff;color:#374151;
  border-radius:999px;padding:6px 12px;font-weight:600;font-size:.9rem;cursor:pointer
}
.chip--active,.chip:hover{border-color:#cbd5e1;box-shadow:0 2px 8px rgba(2,8,23,.06)}

/* Grid */
.archive-main{background:#f6f7f9}
.cards{
  list-style:none;margin:24px 0 64px;padding:0;
  display:grid;gap:28px;
  grid-template-columns:repeat(3, minmax(0,1fr));
}
@media (max-width:1024px){ .cards{grid-template-columns:repeat(2, minmax(0,1fr));} }
@media (max-width:640px){ .cards{grid-template-columns:1fr;} }

/* Card */
.card{
  background:#fff;border:1px solid #e5e7eb;border-radius:12px;overflow:hidden;
  box-shadow:0 8px 24px rgba(2,8,23,.06);
  display:flex;flex-direction:column;transition:transform .18s ease, box-shadow .18s ease;
}
.card:hover{transform:translateY(-2px);box-shadow:0 14px 30px rgba(2,8,23,.08);}
.card__media{display:block;aspect-ratio:16/9;overflow:hidden}
.card__media img{width:100%;height:100%;object-fit:cover;display:block}
.card__body{padding:16px 18px 18px;display:flex;flex-direction:column;gap:8px;flex:1}
.pill{
  align-self:flex-start;display:inline-block;background:#fff;border:1px solid #e5e7eb;
  border-radius:999px;padding:6px 10px;font-size:.75rem;font-weight:700;color:#374151;
  box-shadow:0 2px 6px rgba(2,8,23,.06);
}
.card__title{margin:2px 0 2px;font-size:1.1rem;line-height:1.35}
.card__title a{color:#0f172a;text-decoration:none}
.card__title a:hover{text-decoration:underline}
.card__excerpt{margin:0;color:#4b5563;font-size:.95rem}

/* =========================================================
   STICKY SUBMENU  always visible under header
   ========================================================= */
:root{
  --subnav-bg:#fff;
  --subnav-border:rgba(2,8,23,.08);
  --subnav-shadow:0 6px 18px rgba(0,0,0,.06);
  --subnav-height:56px;
  --header-offset: 70px;   /* match your header height */
  --z-subnav: 9999;        /* below header (10000), above everything else */
}

/* Fixed bar itself */
.subnav{
  position: fixed;
  top: var(--header-offset);
  left: 0;
  right: 0;
  z-index: var(--z-subnav);
  background: #fff;
  border-bottom: 1px solid var(--subnav-border);
  margin-top: 0;
  transition: box-shadow .3s ease, background-color .3s ease;
}
.subnav.is-stuck{
  background:#fff;
  box-shadow: var(--subnav-shadow);
}

/* Add body offset so content clears header + subnav */
body{
  padding-top: calc(var(--header-offset) + var(--subnav-height));
}

/* Layout */
.subnav .container{
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-pad);
}
.subnav__wrap{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:24px;
  height:var(--subnav-height);
}

/* Desktop inline links */
.subnav__links{
  display:flex;
  align-items:center;
  gap:24px;
}
.subnav__link{
  color:var(--ink);
  font-weight:500;
  font-size:.95rem;
  padding:6px 0;
  border-bottom:2px solid transparent;
  transition: color .2s, border-color .2s;
}
.subnav__link:hover,
.subnav__link:focus,
.subnav__link.is-active{
  color:var(--brand-cta);
  border-color:var(--brand-cta);
}

/* === Right-side CTAs (Scoped for Subnav) === */
.subnav__actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Only affect buttons inside subnav */
.subnav__actions .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  font-size: 0.95rem;
  line-height: 1.2;
  border-radius: 10px;
  padding: 8px 16px;
  min-height: 38px;
  font-weight: 600;
  border: 1px solid transparent;
  transition: background 0.25s, color 0.25s;
}

/* Primary button (green) */
.subnav__actions .btn-primary {
  background: var(--brand-cta, #5ab562);
  color: #fff;
  border-color: var(--brand-cta, #5ab562);
}

.subnav__actions .btn-primary:hover {
  background: #4ea956;
}

/* Neutral button (outline) */
.subnav__actions .btn-neutral {
  background: transparent;
  color: var(--brand-cta, #5ab562);
  border: 1px solid var(--brand-cta, #5ab562);
}

.subnav__actions .btn-neutral:hover {
  background: var(--brand-cta, #5ab562);
  color: #fff;
}

/* Mobile: slightly smaller, maintain alignment */
@media (max-width: 760px) {
  .subnav__actions .btn {
    font-size: 0.9rem;
    padding: 7px 12px;
    min-height: 36px;
  }
}
/* === Fix sticky header buttons on mobile === */
@media (max-width: 800px) {
  header .subnav__actions,
  #header .subnav__actions {
    flex-direction: row !important;
    flex-wrap: nowrap;
    justify-content: center;
    gap: 8px;
  }

  header .subnav__actions .btn,
  #header .subnav__actions .btn {
    display: inline-flex !important;
    width: auto !important;
    min-width: 130px;
    text-align: center;
  }
}


/* Mobile burger (hidden on desktop) */
.subnav__toggle{
  display:none;
  width:42px; height:42px;
  border:none; border-radius:8px;
  background:var(--brand-cta); color:#fff;
  font-size:1.25rem; line-height:1;
  cursor:pointer; align-items:center; justify-content:center;
}

/* Dropdown panel */
.subnav__panel{
  display:none;
  position:absolute;
  top:100%;
  left:0; right:0;
  background:#fff;
  border-bottom:1px solid rgba(0,0,0,.08);
  box-shadow:0 6px 18px rgba(0,0,0,.06);
  z-index: calc(var(--z-subnav) + 2); /* sits above subnav */
  padding:0;
}
.subnav__panel[aria-hidden="false"]{ display:block; }

/* List + links inside panel (bullet reset) */
.subnav__panel ul{
  list-style: none !important;
  margin: 0;
  padding: 12px 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.subnav__panel li{ list-style: none !important; }
.subnav__panel li::marker{ content: ""; }

.subnav__panel a{
  color:var(--ink);
  font-weight:500;
  font-size:1rem;
  padding:8px 0;
  display:block;
}
.subnav__panel a:hover{ color:var(--brand-cta); }

/* Back-to-previous item */
.subnav__panel li.back-link a{
  display:block;
  padding:8px 0;
  font-weight:600;
}

/* Backdrop (only used on mobile) */
.subnav__backdrop{
  display:none;
  position:fixed; inset:0;
  background:rgba(0,0,0,.3);
  z-index: calc(var(--z-subnav) + 1);
}
.subnav__backdrop[aria-hidden="false"]{ display:block; }

/* ---------------------------
   MOBILE
---------------------------- */
@media (max-width:900px){
  .subnav__links {
    display: none; /* hide inline links */
  }

  .subnav__toggle {
    display: inline-flex; /* show burger */
  }

  /* Keep items aligned in one row */
  .subnav__wrap {
    flex-wrap: nowrap !important;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    min-height: 50px;
  }

  /* Right-side button group */
  .subnav__actions {
    margin-left: auto;
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    gap: 8px;
  }

  /* Buttons inside sticky header */
  .subnav__actions .btn,
  .subnav__ctas .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 7px 12px;
    font-size: 0.9rem;
    border-radius: 8px;
    min-height: 36px;
    white-space: nowrap;
  }

  /* Mobile animation for dropdown */
  .subnav__panel[aria-hidden="false"] {
    animation: subnavSlideDown .25s ease forwards;
  }
}

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

/* Anchor offset: keep anchored content clear of fixed bars */
:target {
  scroll-margin-top: calc(var(--header-offset, 70px) + var(--subnav-height, 56px));
}
/* =====================================
   FIX: Keep Sticky Submenu Buttons Inline on Mobile
===================================== */
@media (max-width: 768px) {
  .subnav__actions {
    flex-wrap: nowrap !important;
    justify-content: center;
    align-items: center;
    gap: 8px;
  }

  .subnav__actions .btn {
    flex: 1 1 auto;
    min-width: unset;
    white-space: nowrap;
    padding: 7px 10px;
  }

  /* Slightly shrink text to fit side-by-side */
  .subnav__actions .btn span {
    font-size: 0.85rem;
  }
}


/* =========================================================
   FAQS  
   ========================================================= */
.faqs {
  background: var(--muted);   /* light grey band */
  padding: 48px 0;            /* space inside the band */
  margin: 0;                  /* remove outside gap so band touches neighbors cleanly */
}
@media (max-width: 900px){
  .faqs { padding: 32px 0; }
}

.faqs h2 { 
  margin: 0 0 16px; 
}

.faq {
  border: 1px solid var(--stroke);
  border-radius: 10px;
  background: #ffffff;        /* white cards on grey background */
  margin: 10px 0;
  padding: 0;
  overflow: hidden;
}

.faq > summary {
  list-style: none;
  cursor: pointer;
}

.faq > summary::-webkit-details-marker { display: none; }

.faq > summary h3 {
  margin: 0;
  font-size: 1rem;
  font-weight: 600;
  color: var(--ink);
  padding: 14px 16px;
  position: relative;
}

.faq > summary h3::after {
  content: "＋";
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  font-weight: 600;
}

.faq[open] > summary h3::after { content: "–"; }

.faq__a {
  padding: 0 16px 14px 16px;
  color: var(--text);
  font-size: .98rem;
  line-height: 1.6;
}

.faq__a a { 
  color: var(--brand-cta); 
  text-decoration: underline; 
}
/* =========================================================
   SUPPORT CARDS
   ========================================================= */

:root {
  /* tune these if you change card padding/borders */
  --support-card-pad: 16px;
  --support-card-border: 1px;
}

/* Section chrome */
.support {
  background: #5AB562; /* brand green background */
  border-top: 1px solid var(--stroke);
  border-bottom: 1px solid var(--stroke);
  padding: 56px 0 48px;
}

.support .container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-pad);
}

/* Header (aligned with card INNER content) */
.support__header {
  text-align: left;
  max-width: 820px;
  margin: 0 0 24px;
  color: #fff;
  padding-left: calc(var(--support-card-pad) + var(--support-card-border));
}

.support__header h2 {
  margin: 0 0 8px;
  color: #fff;
}

.support .support__header p {
  color: #fff !important;
}

/* Grid of cards: 2 cols desktop, 1 col mobile */
.support__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(240px, 1fr));
  gap: 16px;
  margin: 8px 0 24px;
}

@media (max-width: 760px) {
  .support__grid {
    grid-template-columns: 1fr;
  }
}

/* =========================================================
   CARD BASE
   ========================================================= */
.support-card {
  background: #fff;
  border: 1px solid var(--stroke);
  border-radius: 12px;
  padding: var(--support-card-pad);
  box-shadow: 0 4px 12px rgba(0, 0, 0, .03);
}

.support-card h3 {
  margin: 0 0 8px;
  font-size: 1.15rem;
  color: #0f172a;
}

.support-card p {
  margin: 0 0 12px;
  color: var(--text);
}

/* =========================================================
   OFFICE HOURS CARD
   ========================================================= */
.support-card--office .support-intro {
  color: #444;
  margin-bottom: 10px;
  line-height: 1.6;
}

.support-hours-time {
  margin: 0 0 12px;
  font-size: 0.95rem;
  font-weight: 500;
  color: #333;
}

/* Lists inside cards */
.support-channels,
.support-links,
.support-list,
.support-sla {
  list-style: none;
  margin: 0;
  padding: 0;
}

.support-channels li,
.support-links li,
.support-list li,
.support-sla li {
  padding: 6px 0;
  border-bottom: 1px dashed var(--stroke);
  display: flex;
  align-items: center;
  gap: 8px;
}

.support-channels li:last-child,
.support-links li:last-child,
.support-list li:last-child,
.support-sla li:last-child {
  border-bottom: 0;
}

.support-channels svg {
  flex-shrink: 0;
  color: var(--brand-cta, #5ab562);
  width: 18px;
  height: 18px;
}

.support-channels a {
  color: var(--text);
  text-decoration: none;
  font-weight: 500;
}

.support-channels a:hover {
  text-decoration: underline;
}

/* =========================================================
   EMERGENCY SUPPORT CARD
   ========================================================= */
.support-card--emergency {
  border: 2px solid var(--brand-cta, #5ab562);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.06);
}

.support-note {
  background: #f9fafb;
  border-left: 0px solid var(--brand-cta, #5ab562);
  padding: 10px 12px;
  border-radius: 8px;
  font-size: 0.9rem;
  color: #333;
  margin: 6px 0 14px;
  line-height: 1.5;
}

/* =========================================================
   BUTTONS (consistent with brand palette)
   ========================================================= */
.btn {
  display: inline-block;
  text-decoration: none;
  border-radius: 6px;
  font-weight: 600;
}

.btn.btn-primary {
  background: var(--brand-cta, #5ab562);
  color: #fff;
  padding: 10px 14px;
  border: 1px solid var(--brand-cta, #5ab562);
}

.btn.btn-primary:hover {
  background: #489c4d;
  border-color: #489c4d;
}

.btn.btn-neutral {
  background: transparent;
  color: var(--brand-cta, #5ab562);
  padding: 10px 14px;
  border: 1px solid var(--brand-cta, #5ab562);
}

.btn.btn-neutral:hover {
  background: var(--brand-cta, #5ab562);
  color: #fff;
}

/* =========================================================
   RESPONSIVE TWEAKS
   ========================================================= */
@media (max-width: 640px) {
  .support-card {
    padding: 20px;
  }

  .support__header {
    padding-left: 0;
    text-align: center;
  }

  .support__header p {
    margin-bottom: 16px;
  }

  .btn {
    display: block;
    width: 100%;
    text-align: center;
  }
}
/* =========================================================
   SVG ICON FIX — prevents clipping in flex lists
   ========================================================= */
.support-channels li {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 6px;
  font-size: 1rem;
  line-height: 1.4;           /* ensures enough vertical space */
  overflow: visible;           /* allows icons to render fully */
}

.support-channels svg {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  min-width: 20px;
  min-height: 20px;
  vertical-align: middle;
  overflow: visible;           /* fixes Safari/Firefox clipping */
}

.support-channels a {
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
}

.support-channels a:hover {
  text-decoration: underline;
}


/* ---------------------------------------------------------
   Common questions (FAQ)
   - Same left inset as card inner text
   --------------------------------------------------------- */
.support__faq{
  margin-top: 12px;
  padding-left: calc(var(--support-card-pad) + var(--support-card-border));
  padding-right: calc(var(--support-card-pad) + var(--support-card-border));
}

.support__faq-title{
  margin: 36px 0 12px;
}

/* FAQ cards */
.faq{
  border:1px solid var(--stroke);
  border-radius:12px;
  background:#ffffff;
  margin: 12px 0;
  overflow:hidden;
}

/* clickable row */
.faq > summary{
  display:flex;
  align-items:center;
  cursor:pointer;
  list-style:none;
  padding: 16px 20px;
  position:relative;
  user-select:none;
}

/* remove native marker */
.faq > summary::-webkit-details-marker{ display:none; }

/* single plus/minus icon on the summary itself */
.faq > summary::after{
  content: "＋";
  position:absolute;
  right:16px;
  top:50%;
  transform: translateY(-50%);
  font-weight:600;
  line-height:1;
}
.faq[open] > summary::after{ content:"–"; }

/* title text inside summary */
.faq > summary h3{
  margin:0;
  font-size:1.05rem;
  font-weight:700;
  color:var(--ink);
}

/* -- IMPORTANT: kill any legacy icon on the H3 so we don't double up */
.faq > summary h3::after{ content:none !important; }

/* answer body */
.faq__a{
  padding: 0 20px 16px 20px;
  color: var(--text);
  font-size: .98rem;
  line-height: 1.6;
}
.faq__a a{ color: var(--brand-cta); text-decoration: underline; }

/* Small screens: keep the same visual rhythm */
@media (max-width:700px){
  .support__header{ padding-left: calc(var(--support-card-pad) + var(--support-card-border)); }
  .support__faq{ padding-left: calc(var(--support-card-pad) + var(--support-card-border)); padding-right: calc(var(--support-card-pad) + var(--support-card-border)); }
}
/* =========================================================
   HARDWARE
   ========================================================= */
.hardware{
  background: var(--bg);
  padding: 56px 0;
  border-top: 1px solid var(--stroke);
}
.hardware .container{ max-width: var(--container-max); margin: 0 auto; padding: 0 var(--container-pad); }

/* Header + tabs */
.hardware__header{ margin: 0 0 12px; }
.hardware__header h2{ margin: 0 0 8px; }
.hardware__intro{ margin: 0 0 16px; color: var(--text); }

.hardware__tabs{
  display:flex; gap:8px; align-items:center; flex-wrap:wrap;
  border-bottom:1px solid var(--stroke); padding-bottom:8px;
}
.hardware__tab{
  appearance:none; border:1px solid var(--stroke); background:#fff; color:var(--ink);
  border-radius: 999px; padding:8px 14px; font-weight:600; cursor:pointer;
}
.hardware__tab.is-active{
  border-color: var(--brand-cta);
  background: var(--brand-cta);
  color: #fff;
}

/* Panels */
.hardware__panels{ margin-top: 20px; }
.hardware__panel[hidden]{ display:none !important; }
.hardware__panel.is-active{ display:block; }

/* Grid */
.hardware__grid{
  display:grid;
  grid-template-columns: repeat(3, minmax(240px,1fr));
  gap:16px;
}
@media (max-width:1100px){
  .hardware__grid{ grid-template-columns: repeat(2, minmax(240px,1fr)); }
}
@media (max-width:700px){
  .hardware__grid{ grid-template-columns: 1fr; }
}

/* Card */
.hw-card{
  background:#fff;
  border:1px solid var(--stroke);
  border-radius:12px;
  overflow:hidden;                 /* keeps rounded corners */
  box-shadow:0 8px 24px rgba(0,0,0,.04);
  display:flex;
  flex-direction:column;
}

/* Media: no crop, no baseline gap, no grey band */
.hw-card .hw-card__media{
  background:transparent;          /* ensure no strip shows */
  padding:0;
  margin:0;
  height:auto !important;
  aspect-ratio:auto !important;
  display:block;
  overflow:visible;                /* cropping handled by .hw-card */
  line-height:0;                   /* remove inline-image gap */
}

.hw-card .hw-card__media img{
  display:block;                   /* removes baseline gap */
  width:100%;
  height:auto !important;          /* keep 500×300 ratio */
  max-height:none !important;
  object-fit:contain !important;   /* no crop */
  object-position:top center !important;
  position:static !important;      /* nuke any absolute/offsets */
  top:auto !important;
  transform:none !important;
  margin:0;
  vertical-align:bottom;           /* belt-and-braces against gaps */
}

/* Body: title at top, CTA at bottom */
.hw-card__body{
  flex:1;
  padding:16px;
  display:flex;
  flex-direction:column;
  justify-content:flex-start;
}

.hw-card__title{
  margin:0 0 6px;
  font-size:1.1rem;
  align-self:flex-start;
}

.hw-card__blurb{ margin:0 0 10px; color:var(--text); }
.hw-card__bullets{ margin:0 0 12px; padding-left:18px; }
.hw-card__bullets li{ margin:6px 0; }

.hw-card__cta{
  margin-top:auto;
  display:flex;
  gap:8px;
  flex-wrap:wrap;
}

/* Compare */
.hardware__compare{
  margin: 24px 0 8px;
  background: var(--muted);
  border: 1px solid var(--stroke);
  border-radius: 12px;
}
.hardware__compare-inner{ padding: 8px; }
.hardware__compare-row{
  display:grid;
  grid-template-columns: 1.2fr 1fr 1fr 1.2fr;
  gap: 12px;
  padding: 10px 8px;
  border-top: 1px dashed var(--stroke);
}
.hardware__compare-row:first-child{
  border-top: 0;
  background: #fff;
  font-weight: 700;
}
@media (max-width:800px){
  .hardware__compare-row{
    grid-template-columns: 1fr;
  }
}

/* CTA */
.hardware__cta{
  margin-top: 20px;
  text-align: center;
  background: #fff;
  border: 1px solid var(--stroke);
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 8px 24px rgba(0,0,0,.04);
}
.hardware__cta h3{ margin: 0 0 6px; }
.hardware__cta p{ margin: 0 0 12px; color: var(--text); }
.hardware__cta-actions{ display:flex; gap:8px; flex-wrap:wrap; justify-content:center; }

/* Anchor offset so headings aren't hidden under sticky bars */
#hardware{ scroll-margin-top: calc(var(--header-offset, 70px) + 56px); }

/* Prevent tiny rows */
.hardware__grid{
  grid-auto-rows: minmax(560px, auto);  /* adjust height to taste */
}

/* Make media robust and always filled */
.hw-card__media{
  position: relative;
  aspect-ratio: 16 / 9;                  /* or 4/3 */
  min-height: 200px;                     /* safety floor */
  background: var(--muted);
  overflow: hidden;
}
.hw-card__media img{
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;                      /* use 'contain' if needed */
  top: auto;                              /* override old top:20px */
}


/* ===============================
   Hardware top visual nav (sticky)
   =============================== */
:root{
  --hw-topnav-h: 140px; /* same height for desktop & mobile */
  --hw-sticky-offset: calc(var(--header-offset,70px) + 0px); /* + var(--subnav-height) if a subnav sits above */
}

.hw-topnav{
  position: sticky;
  top: var(--hw-sticky-offset);
  z-index: var(--z-header);
  background: #fff;
  border-bottom: 1px solid var(--stroke);
}
.hw-topnav .container{
  max-width: var(--container-max);
  padding: 0 var(--container-pad);
  height: var(--hw-topnav-h);
  display: flex;
  align-items: center;
  gap: 16px;
  overflow: hidden; /* prevent inner rail from pushing a global scrollbar */
}

/* Icon rail — horizontally scrollable on mobile, hidden scrollbar */
.hw-topnav__rail{
  --hw-item-w: 160px;
  display: flex;
  align-items: center;
  gap: 16px;
  height: 100%;
  overflow-x: auto;          /* allow swipe/drag */
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  scroll-snap-type: x proximity;

  /* hide scrollbar visuals */
  scrollbar-width: none;     /* Firefox */
  -ms-overflow-style: none;  /* IE/Edge legacy */
}
.hw-topnav__rail::-webkit-scrollbar{ display: none; } /* WebKit */

/* Desktop: don't scroll the rail, so no scrollbar can appear */
@media (min-width: 901px){
  .hw-topnav__rail{
    overflow-x: visible;
  }
}

.hw-topnav {
  display: flex;
  align-items: stretch; /* ensures all children are same height */
  gap: 12px; /* optional spacing */
}

.hw-topnav__item {
  flex: 0 0 var(--hw-item-w);
  min-width: var(--hw-item-w);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 10px;
  border-radius: 12px;
  scroll-snap-align: center;
  border: 1px solid transparent;
  text-align: center;
  font-weight: 500;
  color: var(--ink);
  transition: background .2s ease, border-color .2s ease, transform .2s ease;
}


/* Kill hamburger + dropdown entirely (we're using the rail) */
.hw-topnav__toggle,
.hw-topnav__panel,
.hw-topnav__backdrop{
  display: none !important;
}

/* Anchor offset so sections don't hide under sticky bars */
.hw-section{
  scroll-margin-top: calc(var(--hw-sticky-offset) + var(--hw-topnav-h));
}

/* ===============================
   Hardware hero (dark + collage)
   =============================== */
.hw-hero{
  background: #0b0e3f; color: #fff;
  padding: 64px 0;
}
.hw-hero__grid{
  display: grid;
  grid-template-columns: 1.05fr 1.2fr;
  gap: 36px; align-items: center;
}
.hw-hero .eyebrow{ letter-spacing: .12em; text-transform: uppercase; color: #ffffff; margin: 0 0 8px; font-size: 1.05rem; font-weight: 600; }
.hw-hero h1{ font-size: clamp(2rem, 4vw + 1rem, 3.5rem); line-height: 1.1; margin: 0 0 12px; }
.hw-hero .lede{ font-size: 1.05rem; color: #e6e8ee; margin: 0 0 16px; }
.hw-hero__actions{ display: flex; gap: 10px; flex-wrap: wrap; }

/* Collage */
.hw-hero__shots{
  display: grid; gap: 12px;
  grid-template-areas:
    "large tall"
    "wide  tall";
  grid-template-columns: 1.2fr .9fr;
}
.hw-hero__shots .shot{ width: 100%; height: auto; display: block; border-radius: 14px; box-shadow: 0 12px 32px rgba(0,0,0,.35); }
.shot--large{ grid-area: large; }
.shot--wide { grid-area: wide; }
.shot--tall { grid-area: tall; }

@media (max-width: 960px){
  .hw-hero__grid{ grid-template-columns: 1fr; }
  .hw-hero__shots{
    grid-template-areas:
      "large"
      "wide"
      "tall";
    grid-template-columns: 1fr;
  }
}

/* Smooth scroll (if not already set) */
html { scroll-behavior: smooth; }

/* ==========================
   Industries Section with Images
   ========================== */
.industries {
  padding: 40px 0;
  background: #fff;
}

.industries__header h2 {
  margin: 0 0 6px;
  font-size: clamp(1.5rem, 1.1rem + 1vw, 2rem);
  text-align: center;
}

.industries__intro {
  margin: 0 0 24px;
  color: var(--text, #444);
  text-align: center;
}

.industries__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

/* Card base */
.industries__card {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  background: #fff;
  border: 1px solid var(--stroke, #e5e7eb);
  border-radius: 14px;
  overflow: hidden;
  transition: all .25s ease;
}

.industries__card:hover {
  border-color: var(--brand-cta, #5AB562);
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0,0,0,.06);
}

/* =========================================================
   Image container
   ========================================================= */
.industries__media {
  position: relative;
  width: 100%;
  aspect-ratio: 900 / 540;
  overflow: hidden;
  background: var(--muted, #f3f4f6);
}

/* Only apply base rules to NON-overlay images */
.industries__media img:not(.industries__img--overlay) {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  user-select: none;
  -webkit-user-drag: none;
  pointer-events: none;
}

/* Blurred background image */
.industries__img--blur {
  filter: blur(0px) brightness(1.1);
  transform: scale(1.1);
  z-index: 1;
}

/* =========================================================
   Overlay image — visible immediately
   ========================================================= */
.industries__img--overlay {
  position: absolute;
  bottom: 0;                /* 👈 fully visible on load */
  left: 50%;
  transform: translateX(-50%);
  width: auto;
  height: auto;
  max-width: 85%;
  max-height: 100%;
  object-fit: contain;
  z-index: 2;
  opacity: 1;               /* ensure visible from start */
  transition:
    transform 0.5s ease,
    filter 0.4s ease;
}

/* =========================================================
   Hover: subtle lift + brightness
   ========================================================= */
.industries__card:hover .industries__img--overlay {
  transform: translateX(-50%) scale(1.05);
  filter: brightness(1.05);
}

/* Transparent overlay to block right-clicks / opens */
.industries__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: transparent;
  z-index: 3;
}



/* =========================================================
   Text content
   ========================================================= */
.industries__body {
  display: flex;
  flex-direction: column;
  padding: 14px;
  gap: 6px;
  flex: 1;
}

.industries__body h3 {
  margin: 0;
  font-size: 1.05rem;
  color: var(--ink, #111827);
}

.industries__body p {
  margin: 0 0 8px;
  color: var(--text, #444);
}

.industries__body .btn {
  margin-top: auto;
}

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 980px) {
  .industries__grid { grid-template-columns: repeat(2, 1fr); }
  .industries__media { aspect-ratio: auto; height: 140px; }
}

@media (max-width: 560px) {
  .industries__grid { grid-template-columns: repeat(2, 1fr); }
  .industries__media { height: 160px; }
}

@media (max-width: 400px) {
  .industries__grid { grid-template-columns: 1fr; }
  .industries__media { height: 150px; }
}


/* =========================================================
   Overlap Section Panels + Overlap Focus Variant
   ========================================================= */
:root {
  --ink: #0f172a;
  --muted: #f3f4f6;          /* soft grey backdrop */
  --stroke: #e5e7eb;
  --cta: #5AB562;
  --ok: #20b16a;
  --badge-bg: #fff;
  --radius: 12px;
  --stack-gap: 100px;         /* top & bottom gap of the whole section */
}

/* Base Reset & Layout */
* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: 'Poppins', Arial, Helvetica, sans-serif;
  color: var(--ink);
  background: #fff;
  line-height: 1.6;
}
img { display: block; width: 100%; height: auto; border-radius: 0; }
a { color: inherit; text-decoration: none; }
.wrap { max-width: 1100px; margin: 0 auto; padding: 0 20px; }

/* ===== Stack container ===== */
.stack {
  position: relative;
  background: var(--muted);
}
.stack::before,
.stack::after {
  content: "";
  display: block;
  height: var(--stack-gap);
}

/* Each panel is only as tall as its content */
.panel {
  position: sticky;
  top: 100px;
  height: auto;
  display: flex;
  align-items: stretch;
  background: var(--muted);
  padding-block: 8px;
  isolation: isolate;
}

/* === Panel stacking order === */
.panel1 { z-index: 1; }
.panel2 { z-index: 2; }
.panel3 { z-index: 3; }
.panel4 { z-index: 4; }

/* ===== Feature Card ===== */
.feature {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 100px;
  align-items: center;
  background: #fff;
  border: 1px solid var(--stroke);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, .12);
}
.feature--invert { grid-template-columns: .9fr 1.1fr; }

.panel2 .feature,
.panel3 .feature,
.panel4 .feature {
  box-shadow: 0 24px 60px rgba(0, 0, 0, .14);
}

/* === Feature Media === */
.feature__media {
  width: 100%;
  display: block;
  position: relative;
}

/* Default image behaviour (for non-focus panels) */
.feature__media img {
  width: 100%;
  height: auto;
  object-fit: contain;
  border-radius: var(--radius);
  display: block;
}

/* =========================================================
   Overlap Focus — centred focus image overlay
   ========================================================= */
.overlap-focus {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  min-height: 300px;
  background-color: #00000008;
}

/* Hide empty srcs */
.overlap-focus img[src=""],
.overlap-focus img:not([src]) {
  display: none !important;
}

/* Background layer (fills container) */
.overlap-focus .focus-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
  transition: opacity 0.4s ease, filter 0.4s ease;
}

/* Foreground (centred overlay) */
.overlap-focus .focus-fg {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: auto;
  height: auto;
  max-width: 80%;
  max-height: 80%;
  object-fit: contain;
  z-index: 2;
  border-radius: var(--radius);
  transition: transform 0.4s ease, filter 0.4s ease;
}

/* === Apply blur only when data-has-fg="true" === */
.overlap-focus[data-has-fg="true"] .focus-bg {
  opacity: 0.9;
  filter: blur(0.5px) saturate(1); /* softened blur */
}

/* Hover effect */
.overlap-focus[data-has-fg="true"]:hover .focus-fg {
  transform: translate(-50%, -50%) scale(1.02);
  filter: brightness(1.05);
}
.overlap-focus[data-has-fg="true"]:hover .focus-bg {
  opacity: 0.45;
}

/* Responsive tweak */
@media (max-width: 768px) {
  .overlap-focus {
    min-height: 200px;
  }
  .overlap-focus .focus-fg {
    max-width: 90%;
    max-height: 90%;
  }
}
/* =========================================================
   Adjusted Focus Background — match old panel layout
   ========================================================= */
.overlap-focus {
  position: relative;
  overflow: visible; /* allow full image visibility */
  border-radius: var(--radius);
  min-height: auto; /* match old flexible height */
}

.overlap-focus .focus-bg {
  position: relative;       /* remove absolute cropping */
  inset: unset;
  width: 100%;
  height: auto;
  object-fit: contain;      /* same as old layout */
  border-radius: var(--radius);
  opacity: 1;
  filter: none;
  transform: none;
}

.overlap-focus .focus-fg {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: auto;
  height: auto;
  max-width: 90%;           /* optional – adjust if you want less overlay */
  max-height: 90%;
  object-fit: contain;
  z-index: 2;
  border-radius: var(--radius);
}


/* =========================================================
   Text & Badges
   ========================================================= */
.feature__copy h2 {
  margin: 0 0 10px;
  font-size: clamp(1.6rem, 1.2rem + 1.2vw, 2.2rem);
}
.feature__copy p {
  margin: 0 0 10px;
  color: #374151;
}
.ticks {
  list-style: none;
  padding: 0;
  margin: 0 0 14px;
}
.ticks li {
  position: relative;
  padding-left: 26px;
  margin: 8px 0;
}
.ticks li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  transform: translateY(2px);
  font-weight: 700;
  color: var(--ok);
}

/* Media + floating badges */
.badges {
  list-style: none;
  padding: 0;
  margin: 0;
  position: absolute;
  right: 18px;
  top: 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: min(300px, 60%);
}
.badge {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 10px;
  background: var(--badge-bg);
  border: 1px solid var(--stroke);
  border-radius: 10px;
  padding: 10px 12px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, .08);
}
.badge__icon { font-size: 18px; }
.badge__text { font-weight: 600; }
.badge__ok { color: #16a34a; font-weight: 800; }

/* Link with arrow */
.link-arrow {
  color: #2563eb;
  font-weight: 600;
}
.link-arrow::after {
  content: " →";
}

/* =========================================================
   Reduced Motion & Responsive
   ========================================================= */
@media (prefers-reduced-motion: reduce) {
  .panel { position: static; top: auto; }
}

@media (max-width: 980px) {
  .panel { top: 12px; padding-block: 12px; }
  .feature,
  .feature--invert {
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 16px;
  }
  .badges {
    position: static;
    width: 100%;
    margin-top: 12px;
  }
}

@media (max-width: 560px) {
  .wrap { padding: 0 16px; }
  :root { --stack-gap: 40px; }
  .overlap-focus { min-height: 200px; }
}


/* ==========================
   Offer Section
   ========================== */
.offer {
  background: #eeeeee;
  padding: clamp(32px, 4vw, 64px) 0;
}

.offer__container {
  max-width: var(--container-max, 1100px);
  margin: 0 auto;
  padding: 0 var(--container-pad, 16px);
}

.offer__grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: clamp(20px, 4vw, 48px);
}

.offer__copy {
  color: var(--ink-2, #222);
}

.offer__title {
  margin: 0 0 12px;
  font-size: clamp(1.8rem, 1.2rem + 2vw, 2.8rem);
  line-height: 1.15;
  color: var(--ink, #111827);
  letter-spacing: -0.2px;
}

.offer__lead {
  margin: 0 0 10px;
  font-size: clamp(1rem, .9rem + .3vw, 1.125rem);
  color: var(--text, #444);
}

.offer__blurb {
  margin: 0 0 10px;
  color: var(--text, #444);
}

/* ==========================
   Strong + Swoosh Underline
   ========================== */
strong.highlight-underline {
  position: relative;
  display: inline-block;
  font-weight: 700; /* keeps strong boldness */
  color: inherit;
  text-decoration: none;
}

strong.highlight-underline::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 12px;
  background-repeat: no-repeat;
  background-position: center bottom;
  background-size: 100% 100%;
  background-image: url("data:image/svg+xml;utf8,\
  <svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 12' preserveAspectRatio='none'>\
    <path d='M0 8 C25 2, 75 14, 100 6' fill='none' stroke='%235AB562' stroke-width='3' stroke-linecap='round'/>\
  </svg>");
  transform: translateY(2px);
  opacity: 0.95;
  transition: transform .3s ease, opacity .3s ease;
}

strong.highlight-underline:hover::after {
  opacity: 1;
  transform: translateY(0);
}


/* ==========================
   Buttons
   ========================== */
.offer__cta {
  margin-top: 18px;
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.offer__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 18px;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 600;
  line-height: 1;
  transition: transform .2s ease, box-shadow .2s ease, background-color .2s ease, color .2s ease;
  will-change: transform;
}

.offer__btn--primary {
  background: var(--brand-cta, #5AB562);
  color: #fff;
  box-shadow: 0 10px 24px rgba(0,0,0,.08);
}
.offer__btn--primary:hover { transform: translateY(-1px); }
.offer__btn--primary:active { transform: translateY(0); }

.offer__btn--link {
  background: transparent;
  color: #1d4ed8;
  padding-left: 0;
  padding-right: 0;
}
.offer__btn--link:hover { text-decoration: underline; }

/* ==========================
   Image Block (Anchored Drop Shadow)
   ========================== */
.offer__media {
  margin: 0;
  position: relative;
  display: block;
}

.offer__media img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 18px;
  background: transparent;
  filter: drop-shadow(0px 12px 22px rgba(0,0,0,0.22))
          drop-shadow(0px 4px 8px rgba(0,0,0,0.12));
  transition: filter .3s ease, transform .3s ease;
}

.offer__media:hover img {
  transform: translateY(-3px);
  filter: drop-shadow(0px 16px 26px rgba(0,0,0,0.24))
          drop-shadow(0px 6px 10px rgba(0,0,0,0.14));
}

/* ==========================
   Responsive
   ========================== */
@media (max-width: 980px) {
  .offer__grid {
    grid-template-columns: 1fr;
  }
  .offer__media {
    order: -1;
  }
  .offer__title {
    font-size: clamp(1.6rem, 1.2rem + 2vw, 2.2rem);
  }
}

/* ==========================
   Focus Styles (Accessibility)
   ========================== */
.offer__btn:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--brand-cta, #5AB562), #000 20%);
  outline-offset: 2px;
}


/* ==========================
   HERO Offer Section
   ========================== */
.hero_offer {
  background: var(--hero-offer-bg, #0b0e3f) center/cover no-repeat;
  position: relative;
  isolation: isolate;
  color: #fff;
  padding: clamp(64px, 8vw, 120px) 0;
}

/* Optional overlay for readability */
.hero_offer::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(0,0,0,0) 100%);
  z-index: 0;
}

.hero_offer__container {
  position: relative;
  z-index: 1;
  max-width: var(--container-max, 1100px);
  margin: 0 auto;
  padding: 0 var(--container-pad, 16px);
}

/* ==========================
   Grid Layout
   ========================== */
.hero_offer__grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: clamp(20px, 4vw, 48px);
}

/* Image on left modifier */
.hero_offer--left .hero_offer__grid {
  grid-template-columns: 0.9fr 1.1fr;
}
.hero_offer--left .hero_offer__media {
  order: -1;
}

/* ==========================
   Text
   ========================== */
.hero_offer__copy {
  color: #fff;
}

.hero_offer__title {
  margin: 0 0 12px;
  font-size: clamp(1.8rem, 1.2rem + 2vw, 2.8rem);
  color: #fff;
  font-weight: 700;
  letter-spacing: -0.03em;      
  line-height: 1.2;             
  margin: 0 0 8px;              
  text-wrap: balance;           
  font-family: inherit;         
}

.hero_offer__lead {
  margin: 0 0 10px;
  font-size: clamp(1rem, .9rem + .3vw, 1.125rem);
  color: color-mix(in srgb, #fff 92%, #ccc);
}

.hero_offer__blurb {
  margin: 0 0 10px;
  color: color-mix(in srgb, #fff 88%, #bbb);
}

/* ==========================
   Strong + Swoosh Underline
   ========================== */
strong.highlight-underline {
  position: relative;
  display: inline-block;
  font-weight: 700;
  color: inherit;
  text-decoration: none;
}

strong.highlight-underline::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 12px;
  background-repeat: no-repeat;
  background-position: center bottom;
  background-size: 100% 100%;
  background-image: url("data:image/svg+xml;utf8,\
  <svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 12' preserveAspectRatio='none'>\
    <path d='M0 8 C25 2, 75 14, 100 6' fill='none' stroke='%235AB562' stroke-width='3' stroke-linecap='round'/>\
  </svg>");
  transform: translateY(2px);
  opacity: 0.95;
  transition: transform .3s ease, opacity .3s ease;
}

strong.highlight-underline:hover::after {
  opacity: 1;
  transform: translateY(0);
}

/* ==========================
   Buttons
   ========================== */
.hero_offer__cta {
  margin-top: 18px;
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.offer__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 18px;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 600;
  line-height: 1;
  transition: transform .2s ease, box-shadow .2s ease, background-color .2s ease, color .2s ease;
  will-change: transform;
}

.offer__btn--primary {
  background: var(--brand-cta, #5AB562);
  color: #fff;
  box-shadow: 0 10px 24px rgba(0,0,0,.08);
}
.offer__btn--primary:hover { transform: translateY(-1px); }
.offer__btn--primary:active { transform: translateY(0); }

.offer__btn--link {
  background: transparent;
  color: #ffffff;
  padding-left: 0;
  padding-right: 0;
}
.offer__btn--link:hover { text-decoration: underline; }

/* ==========================
   Image Block (Anchored Drop Shadow)
   ========================== */
.hero_offer__media {
  margin: 0;
  position: relative;
  display: block;
}

.hero_offer__media img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 18px;
  background: transparent;
  filter: drop-shadow(0px 12px 22px rgba(0,0,0,0.22))
          drop-shadow(0px 4px 8px rgba(0,0,0,0.12));
  transition: filter .3s ease, transform .3s ease;
}

.hero_offer__media:hover img {
  transform: translateY(-3px);
  filter: drop-shadow(0px 16px 26px rgba(0,0,0,0.24))
          drop-shadow(0px 6px 10px rgba(0,0,0,0.14));
}

/* ==========================
   Responsive
   ========================== */
@media (max-width: 980px) {
  .hero_offer__grid {
    grid-template-columns: 1fr;
  }
  .hero_offer__media {
    order: -1; /* ensures image is always above text */
  }
  .hero_offer__title {
    font-size: clamp(1.6rem, 1.2rem + 2vw, 2.2rem);
  }
}

/* ==========================
   Focus Styles (Accessibility)
   ========================== */
.offer__btn:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--brand-cta, #5AB562), #000 20%);
  outline-offset: 2px;
}
/* ===== Contact page ===== */
.contact-page {
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
  width: 100vw;
  background: #f8f9fb;
  padding: 48px 20px;
}

.contact-page > * {
  max-width: 1200px;
  margin: 0 auto;
}

.contact-hero {
  text-align: left;
  margin-bottom: 32px;
}

.contact-hero h1,
.contact-hero h2 {
  margin: 0 0 6px;
}

.contact-hero p {
  color: #4b5563;
  margin: 0 0 16px;
}

.contact-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 10px;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.2s ease-in-out;
}

/* Primary (green) button */
.btn--primary {
  background: #5ab562;
  color: #fff;
  border-color: #5ab562;
}

.btn--primary:hover,
.btn--primary:focus {
  background: #4ea556;
  border-color: #4ea556;
  color: #fff;
}

/* Outline (secondary) button */
.btn--outline {
  background: #fff;
  color: #5ab562;
  border: 1px solid #5ab562;
}

.btn--outline:hover,
.btn--outline:focus {
  background: #5ab562;
  color: #fff;
}

/* Keep spacing consistent */
.contact-cta .btn {
  min-width: 140px;
}

/* ===== Offices grid ===== */
.offices {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  margin-top: 20px;
}

.office {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  padding: 14px;
}

/* ----- Map styling ----- */
.office__map {
  position: relative;
  border-radius: 5px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.office__map iframe {
  display: block;
  width: 100%;
  height: 260px;
  border: 0;
  border-radius: 10px;
  filter: grayscale(1);
}

/* “View larger map” button under each map */
.view-map-btn {
  display: inline-block;
  margin-top: 6px;
  font-size: 0.9rem;
  font-weight: 600;
  color: #5ab562;
  background: #fff;
  border: 1px solid #5ab562;
  border-radius: 6px;
  padding: 6px 12px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.view-map-btn:hover {
  background: #5ab562;
  color: #fff;
}

/* ----- Office content ----- */
.office__title {
  margin: 0 0 6px;
}

.office__addr {
  font-style: normal;
  line-height: 1.6;
}

.office__addr a {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px dotted #bbb;
}

.office__addr a:hover {
  border-bottom-color: #111;
}

.office__tel {
  margin-top: 8px;
  font-weight: 600;
}

/* ----- Section below offices ----- */
.contact-help {
  margin: 32px 0 8px;
}

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .office {
    grid-template-columns: 1fr;
  }
  .office__map iframe {
    height: 220px;
  }
}

@media (max-width: 760px) {
  .contact-page {
    padding: 32px 12px;
  }

  .contact-page > * {
    max-width: 95%;
  }

  .offices {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .office {
    padding: 20px;
  }

  .office__map iframe {
    height: 250px;
  }
}

/* ===== Map Overlay (view larger map) ===== */
.map-overlay-frame {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 99999;
  opacity: 0;
  pointer-events: none;
  transition: background 0.3s ease, opacity 0.3s ease;
}

.map-overlay-frame.is-active {
  opacity: 1;
  background: rgba(0,0,0,0.7);
  pointer-events: all;
}

.map-overlay-inner {
  background: #fff;
  border-radius: 12px;
  max-width: 90%;
  width: 900px;
  height: 600px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0,0,0,0.4);
  transform: translateY(30px);
  opacity: 0;
  transition: all 0.3s ease;
}

.map-overlay-frame.is-active .map-overlay-inner {
  transform: translateY(0);
  opacity: 1;
}

.map-overlay-inner iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

.map-close {
  position: absolute;
  top: 10px;
  right: 14px;
  background: #fff;
  border: none;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  color: #111;
  z-index: 2;
  border-radius: 50%;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease;
}

.map-close:hover {
  background: #f2f2f2;
}


/* =========================================================
   FOOTER OVERLAY
   ========================================================= */
.footer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.75);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(3px);
}

.footer-overlay__inner {
  background: #fff;
  padding: 32px 40px;
  border-radius: 12px;
  max-width: 520px;
  width: 90%;
  text-align: center;
  box-shadow: 0 10px 30px rgba(0,0,0,0.3);
  position: relative;
  animation: fadeInUp .3s ease;
}

.footer-overlay__inner h3 {
  margin-top: 0;
  color: #0f172a;
}

.footer-overlay__inner p {
  color: #444;
  line-height: 1.6;
  margin: 0 0 18px;
}

.footer-overlay__close {
  position: absolute;
  top: 10px;
  right: 14px;
  background: none;
  border: none;
  font-size: 1.8rem;
  line-height: 1;
  color: #333;
  cursor: pointer;
}

.footer-overlay__close:hover {
  color: #000;
}

/* Simple fade-up animation */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}


/* ==========================
   Accessibility: Skip Link
   ========================== */
.skip-link {
  position: absolute;
  left: -9999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.skip-link:focus {
  left: 16px;
  top: 16px;
  width: auto;
  height: auto;
  overflow: visible;
  background: #fff;
  color: #111;
  padding: 8px 12px;
  border-radius: 6px;
  z-index: 10000;
  box-shadow: 0 2px 6px rgba(0,0,0,.2);
  text-decoration: none;
  font-weight: 600;
}
/* Coming Soon banner */
.announce{background:#5AB562;color:#fff}
.announce[hidden]{display:none !important}
.announce__wrap{max-width:1200px;margin:0 auto;padding:10px 20px;display:flex;gap:12px;align-items:center;justify-content:space-between}
.announce__text{margin:0;font-weight:500}
.announce__text a{color:#fff;text-decoration:underline}
.announce__close{
  appearance:none;border:0;background:rgba(255,255,255,.18);
  color:#fff;border-radius:8px;padding:6px 10px;cursor:pointer;font:inherit;line-height:1
}
.announce__close:hover{background:rgba(255,255,255,.28)}

/* Footer link styling */
.footer-link {
  background: none;
  border: 0;
  padding: 0;
  color: inherit;
  text-decoration: underline;
  cursor: pointer;
  font: inherit;
}
.footer-link:focus {
  outline: 2px solid #0b0e3f;
  outline-offset: 2px;
}
/* =========================================================
   GRID SECTION (TapaPay Payment Options)
========================================================= */
.grid {
  background: #f9fafb;
  padding: clamp(48px, 6vw, 96px) 0;
}

/* --- Header --- */
.grid__header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 48px;
}

.grid__header h2 {
  font-size: clamp(1.6rem, 3vw, 2rem);
  margin-bottom: 12px;
  color: var(--ink);
  font-weight: 700;
}

.grid__header p {
  color: #555;
  font-size: 1.05rem;
  line-height: 1.6;
}

/* --- Wrapper Layout --- */
.grid__wrapper {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}

@media (max-width: 800px) {
  .grid__wrapper {
    grid-template-columns: 1fr;
  }
}

/* --- Cards --- */
.grid__card {
  background: #fff;
  border: 1px solid var(--stroke);
  border-radius: 16px;
  padding: 28px 24px;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.05);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 0.6s ease forwards;
}

.grid__card:nth-child(1) { animation-delay: 0.1s; }
.grid__card:nth-child(2) { animation-delay: 0.2s; }
.grid__card:nth-child(3) { animation-delay: 0.3s; }
.grid__card:nth-child(4) { animation-delay: 0.4s; }

.grid__card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.08);
  border-color: var(--brand-cta);
}

/* --- Icon --- */
.grid__icon {
  width: 48px;
  height: 48px;
  margin-bottom: 12px;
}

/* --- Card Headings --- */
.grid__card h3 {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--ink);
  margin: 0 0 10px;
}

/* --- Paragraphs --- */
.grid__card p {
  color: #444;
  margin: 0 0 10px;
  line-height: 1.5;
}

/* --- Bullet List --- */
.grid__card ul {
  list-style: none;
  padding: 0;
  margin: 0 0 12px;
}

.grid__card ul li {
  position: relative;
  padding-left: 22px;
  margin: 6px 0;
  color: #444;
  line-height: 1.5;
}

.grid__card ul li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--brand-cta);
  font-weight: 700;
}

/* --- Links --- */
.grid__link {
  display: inline-block;
  color: var(--brand-cta);
  font-weight: 600;
  text-decoration: none;
  transition: color 0.2s ease;
}

.grid__link:hover {
  text-decoration: underline;
  color: #21a159;
}

/* --- Animation --- */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* =========================================================
   RATES CALCULATOR SECTION
========================================================= */
.calc-section {
  background: #000;
  color: #fff;
  font-family: 'Poppins', sans-serif;
  padding: 60px 20px;
}

.calc-container {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  gap: 60px;
  align-items: flex-start;
  flex-wrap: wrap;
}

/* ==========================
   Left CTA Column
========================== */
.calc-cta {
  flex: 1 1 45%;
  max-width: 460px;
}

.calc-cta .cta-logo {
  width: 300px;
  margin-bottom: 10px;
}

.calc-cta .powered {
  font-size: 0.9rem;
  margin-bottom: 40px;
  color: #bbb;
}

.calc-cta .brand {
  color: #5ab562;
  font-weight: 600;
}

.calc-cta h2 {
  font-size: 2rem;
  font-weight: 600;
  margin-bottom: 20px;
  line-height: 1.2;
}

.calc-cta .cta-text {
  font-size: 1rem;
  color: #ddd;
  margin-bottom: 30px;
  max-width: 400px;
}

.calc-cta .cta-button {
  display: inline-block;
  padding: 12px 24px;
  background: #fff;
  color: #000;
  font-weight: 600;
  text-transform: uppercase;
  border-radius: 6px;
  text-decoration: none;
  transition: all 0.3s ease;
}
.calc-cta .cta-button:hover {
  background: #5ab562;
  color: #fff;
}

/* ==========================
   Calculator Panel
========================== */
.calculator {
  background-color: #2a2a2a;
  padding: 30px 25px;
  border-radius: 12px;
  flex: 1 1 45%;
  max-width: 480px;
}

.calculator h2 {
  text-align: center;
  margin-bottom: 20px;
}

.form-group {
  margin-bottom: 15px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.form-group label {
  flex: 1;
  font-size: 1rem;
}
.form-group input {
  flex: 1;
  padding: 5px;
  border-radius: 6px;
  border: 1px solid #555;
  background: #555;
  color: #fff;
  font-size: 1rem;
  transition: border-color 0.3s, background-color 0.3s;
}
.form-group input:focus {
  outline: none;
  border-color: #5ab562;
}

/* Highlight invalid fields */
.form-group input.error {
  border-color: #e74c3c;
  background: #662626;
}

/* ==========================
   Sliders
========================== */
.slider-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 10px;
}
.slider-container span {
  flex: 1;
  text-align: center;
  font-weight: 400;
  font-size: 0.95rem;
}
.slider-container input[type="range"] {
  flex: 2;
  margin: 0 10px;
  -webkit-appearance: none;
  height: 8px;
  background: #5ab562;
  border-radius: 5px;
  outline: none;
  cursor: pointer;
}
.slider-container input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: white;
  border: 2px solid #5ab562;
  cursor: pointer;
}

/* ==========================
   Buttons & Results
========================== */
.button-container {
  text-align: center;
  margin-top: 20px;
}

.button-container button {
  background: #5ab562;
  border: none;
  padding: 10px 15px;
  margin: 5px;
  border-radius: 6px;
  color: white;
  cursor: pointer;
  font-size: 1rem;
  transition: background 0.3s ease, opacity 0.3s ease;
}

/* Disabled button */
.button-container button:disabled {
  background: #999;
  cursor: not-allowed;
  opacity: 0.6;
}

/* Active button */
.button-container button.active {
  background: #5ab562;
  color: #fff;
  cursor: pointer;
  opacity: 1;
}

/* Hover state */
.button-container button:hover:not(:disabled) {
  background: #489d50;
}

#tierDisplay {
  margin-top: 10px;
  text-align: center;
  font-size: 0.95rem;
  color: #bbb;
}

#debugDetails {
  font-size: 0.9rem;
  margin-top: 15px;
  background: rgba(255,255,255,0.05);
  padding: 10px;
  border-radius: 8px;
  line-height: 1.6;
}

/* ==========================
   Responsive
========================== */
@media (max-width: 900px) {
  .calc-container {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  .calc-cta, .calculator {
    max-width: 100%;
  }
  .calc-cta {
    margin-bottom: 40px;
  }
}
/* =========================================================
   FORCE ICON TO THE LEFT — FINAL FIX
   ========================================================= */
.mega-links.with-icons li a {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  gap: 16px !important;
  text-decoration: none !important;
  padding: 12px 18px !important;
}

.mega-links.with-icons li a img.menu-icon {
  width: 28px !important;
  height: 28px !important;
  flex-shrink: 0 !important;
  display: inline-block !important;
  margin: 0 !important;
}

.mega-links.with-icons li a .menu-text {
  display: flex !important;
  flex-direction: column !important;
  justify-content: center !important;
  align-items: flex-start !important;
  text-align: left !important;
}

.mega-links.with-icons li a .menu-text .title,
.mega-links.with-icons li a .menu-text .desc {
  display: block !important;
}
/* =========================================================
   Compact Mega Menu Layout – Reduced Column + Row Spacing
   ========================================================= */

/* Tighter column spacing */
.mega-inner {
  display: flex;
  justify-content: flex-start;
  gap: 40px !important;   /* ↓ was likely 60–80px */
}

/* Make each column slightly wider */
.mega-col {
  flex: 1 1 240px;        /* each column grows a bit wider */
  min-width: 220px;
  max-width: 260px;
}

/* Reduce vertical space between rows (menu items) */
.mega-links.with-icons li {
  margin-bottom: 10px !important;  /* ↓ was 18px */
}

/* Tighter padding for the clickable area */
.mega-links.with-icons li a {
  padding: 10px 14px !important;   /* ↓ less padding for compactness */
  gap: 12px !important;            /* icon/text spacing */
}

/* Adjust text spacing */
.mega-links.with-icons li a .menu-text .title {
  margin-bottom: 2px !important;
}

.mega-links.with-icons li a .menu-text .desc {
  font-size: 0.78rem !important;
  line-height: 1.3 !important;
}
/* =========================================================
   Smaller description text in mega menu
   ========================================================= */
.mega-links.with-icons li a .menu-text .desc {
  font-size: 0.7rem !important;      /* smaller text */
  line-height: 1.25 !important;      /* tighter line height */
  color: #666 !important;            /* keep soft grey */
  margin-top: 1px !important;
}
/* =========================================================
   FIX: Mobile menu hidden behind hero on index page
========================================================= */

@media (max-width: 1024px) {
  /* Keep header/nav above hero overlay */
  .site-header {
    position: relative;
    z-index: 9999;
  }

  .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    box-shadow: 0 8px 24px rgba(0,0,0,.12);
    display: none;
  }

  .site-nav.nav--open {
    display: block !important;
    z-index: 10000;
  }

  /* Neutralise hero stacking that hides nav */
  .hero,
  .hero-overlay,
  .hero-inner {
    position: relative;
    z-index: 1 !important;
    overflow: visible !important;
  }
}
/* ==========================
   Anchor Offset for Sticky Header + Subnav
========================== */
:root {
  --header-offset: 70px;   /* your fixed header height */
  --subnav-height: 56px;   /* your subnav height */
}

section[id],
div[id] {
  scroll-margin-top: calc(var(--header-offset) + var(--subnav-height) + 20px);
}
/* =========================================================
   Sticky Subnav + FAQ Search
   ========================================================= */

.subnav {
  position: fixed;
  top: var(--header-offset, 70px);
  left: 0;
  right: 0;
  z-index: var(--z-subnav, 9999);
  background: #fff;
  border-bottom: 1px solid rgba(2, 8, 23, 0.08);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.06);
}

/* Wrapper */
.subnav__wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--container-max, 1100px);
  margin: 0 auto;
  padding: 6px 16px;
}

/* Left side (back link + search) */
.subnav__left {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.subnav__link.back-link {
  font-weight: 500;
  color: var(--ink, #0f172a);
}

/* =========================================================
   FAQ Search
   ========================================================= */

.faq-search-bar {
  display: flex;
  align-items: center;
}

.faq-search-box {
  position: relative;
  display: flex;
  align-items: center;
}

.faq-search-box input {
  width: 220px;
  padding: 6px 28px 6px 32px;
  font-size: 0.95rem;
  border: 1px solid var(--stroke, #e5e7eb);
  border-radius: 8px;
}

.faq-search-icon {
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
  color: #888;
}

/* Mobile toggle button (magnifier icon) */
.faq-toggle {
  display: none;
  background: none;
  border: 0;
  cursor: pointer;
}

/* =========================================================
   Visibility Rules
   ========================================================= */

/* Desktop: hide mobile-only elements */
@media (min-width: 901px) {
  .mobile-only {
    display: none !important;
  }
}

/* Mobile: show toggle, hide desktop-only */
@media (max-width: 900px) {
  .desktop-only {
    display: none !important;
  }

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

  .mobile-only {
    display: none;
  }

  .faq-search-bar.mobile-only.is-open {
    display: block;
    padding: 10px 16px;
    border-top: 1px solid #eee;
  }
}

/* =========================================================
   Mobile Button Layout Fix
   Keep Subnav Buttons Side-by-Side on Mobile
   ========================================================= */

/* =========================================================
   Fix: Prevent stretched Contact Us button on mobile
   ========================================================= */
@media (max-width: 900px) {
  .subnav__actions {
    flex: 0 0 auto !important;           /* Don't let it stretch */
  }

  .subnav__actions .btn {
    flex: 0 0 auto !important;           /* Button keeps natural width */
    width: auto !important;
    min-width: unset !important;
    white-space: nowrap;
    padding: 7px 14px;                   /* Slightly smaller padding for mobile */
  }

  /* Optional: ensure the whole subnav aligns neatly */
  .subnav__wrap {
    justify-content: space-between;
    align-items: center;
  }
}


/* =========================================================
   Rotator Section Header
   ========================================================= */
.rotator__header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 60px;
  padding: 0 20px;
}

.rotator__header h2 {
  font-size: 2rem;
  font-weight: 700;
  color: #0b0e3f;
  margin-bottom: 10px;
  line-height: 1.2;
}

.rotator__header p {
  font-size: 1.05rem;
  color: #444;
  line-height: 1.6;
  margin: 0 auto;
}

/* --- Responsive tweaks --- */
@media (max-width: 900px) {
  .rotator__header h2 {
    font-size: 1.6rem;
  }
  .rotator__header p {
    font-size: 0.95rem;
  }
}

/* =========================================================
   ROTATOR STYLES (v2.3 – Image + Video Hybrid, Working)
   ========================================================= */
.rotator {
  background: #fff;
  padding: 80px 0;
}

/* =========================================================
   MAIN CONTAINER
   ========================================================= */
.rotator__container {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 60px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* =========================================================
   LEFT BUTTON LIST
   ========================================================= */
.rotator__buttons {
  display: flex;
  flex-direction: column;
  gap: 20px;
  width: 380px;
  overflow: hidden;
  position: relative;
  height: calc(110px * 3 + 40px);
  will-change: transform;
  transform: translateZ(0);
}

.rotator__btn {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  flex-shrink: 0;
  height: 110px;
  background: #fff;
  border: 1px solid rgba(2, 8, 23, 0.08);
  border-radius: 12px;
  padding: 16px 18px;
  cursor: pointer;
  text-align: left;
  transition:
    background 0.3s ease,
    border 0.3s ease,
    opacity 0.4s ease,
    transform 0.5s ease;
}

.rotator__btn:hover {
  background: #f8faf8;
  border-color: #5AB562;
}

.rotator__btn.active {
  background: #f0f8f3;
  border: 1.5px solid #5AB562;
  transform: scale(1.03);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
  z-index: 5;
}

.rotator__btn .icon {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
}

.rotator__btn .text h3 {
  font-size: 1.1rem;
  margin: 0;
  color: #0b0e3f;
  font-weight: 600;
}

.rotator__btn .text p {
  font-size: 0.9rem;
  color: #555;
  margin: 4px 0 0;
  line-height: 1.4;
}

/* =========================================================
   RIGHT MEDIA PANEL
   ========================================================= */
.rotator__media {
  flex: 1;
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 12px;
}

/* --- Stack all media items --- */
.rotator__item {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transform: scale(1.03);
  transition:
    opacity 1s ease,
    visibility 0s linear 1s,
    transform 1s ease;
}

/* --- Active item --- */
.rotator__item.active {
  opacity: 1;
  visibility: visible;
  transform: scale(1);
  z-index: 1;
}

/* --- Shared media --- */
.rotator__item video,
.rotator__item img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border-radius: 12px;
  display: block;
}

/* =========================================================
   IMAGE BACKGROUND MODE (direct background-image)
   ========================================================= */
.rotator__item[data-bg="true"] {
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center center;
  background-color: #000;
}

/* Only hide videos if data-bg="true" */
.rotator__item[data-bg="true"] video {
  display: none !important;
}

/* =========================================================
   Conditional darkening — only if overlay image exists
   ========================================================= */
.rotator__item[data-bg="true"]::after {
  content: none; /* default: no darkening */
}

/* If overlay image exists, apply gradient background */
.rotator__item[data-bg="true"]:has(.rotator__overlay)::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 12px;
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0), rgba(255, 255, 255, 0));
  z-index: 0;
}


/* Transparent overlay image */
.rotator__overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  pointer-events: none;
  opacity: 0.9;
  transition: opacity 0.6s ease-in-out;
  z-index: 1;
}

.rotator__item.active .rotator__overlay {
  opacity: 1;
}

/* =========================================================
   VIDEO OVERLAY BUTTON
   ========================================================= */
.video-play-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.4);
  color: #fff;
  font-size: 3rem;
  line-height: 1;
  border: none;
  cursor: pointer;
  transition: background 0.25s, opacity 0.25s;
  z-index: 2;
}

.video-play-overlay:hover {
  background: rgba(0, 0, 0, 0.55);
}

.video-play-overlay.hidden {
  opacity: 0;
  pointer-events: none;
}

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 900px) {
  .rotator__container {
    flex-direction: column;
    gap: 40px;
  }

  .rotator__buttons {
    width: 100%;
    order: 2;
    height: calc(110px * 3 + 40px);
  }

  .rotator__media {
    order: 1;
    width: 100%;
    aspect-ratio: 16 / 9;
  }

  .rotator__item video,
  .rotator__item img {
    object-fit: contain;
    max-height: 70vh;
  }
}


/* =========================================================
   Alternate image alignment (left/right)
   ========================================================= */
.feature--split {
  display: flex;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
}

/* Default: image left, text right */
.feature--split .feature__media {
  flex: 1 1 45%;
  order: 0;
}

.feature--split .feature__copy {
  flex: 1 1 50%;
  order: 1;
}

/* Every even section: reverse layout */
.feature--split:nth-of-type(even) .feature__media {
  order: 1;
}
.feature--split:nth-of-type(even) .feature__copy {
  order: 0;
}

/* Responsive stacking on mobile */
@media (max-width: 768px) {
  .feature--split {
    flex-direction: column;
  }
  .feature--split .feature__media,
  .feature--split .feature__copy {
    order: initial;
    width: 100%;
  }
}
/* =========================================================
   Centred full-width look (matches feature--split width)
   ========================================================= */
.feature--wide {
  width: 100%;
  background: #f9fafc;
  color: #111;
  padding: 80px 20px;
  display: flex;
  justify-content: center;
}

.feature--wide .feature__copy {
  width: 100%;
  max-width: 1100px;  /* same width as feature--split sections */
}

.feature--wide h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
  color: #0b0e3f;
}

.feature--wide p,
.feature--wide ul {
  font-size: 1.05rem;
  line-height: 1.65;
}

/* Alternate tint for visual rhythm */
.feature--wide.feature--alt {
  background: #eef2f6;
}
/* =========================================================
   Integrations Page
   ========================================================= */

.integration-section {
  margin: 64px 0;
}

.section-title {
  font-size: 1.75rem;
  font-weight: 600;
  margin-bottom: 32px;
  color: var(--brand-ink, #0b0e3f);
  text-align: left;
}

/* ============================
   Grid Layout
============================ */
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

/* ============================
   Card Styles
============================ */
.card {
  background: #fff;
  border-radius: var(--radius, 12px);
  box-shadow: 0 4px 16px rgba(0,0,0,0.05);
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.08);
}

/* ============================
   Logo Container (Perfectly Centered)
============================ */
.card-logo {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 120px;
  width: 100%;
  background: #f8f8f8;
  flex-shrink: 0;
  margin-bottom: 6px;
}

.card-logo img {
  display: block;
  max-width: 100%;
  max-height: 120px;
  object-fit: contain;
}

/* ============================
   Card Body
============================ */
.card-body {
  padding: 8px 24px 24px;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  flex-grow: 1;
}

.card-body h3 {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 8px;
  color: #111;
}

.card-body p {
  font-size: 0.95rem;
  color: #444;
  line-height: 1.5;
  margin-bottom: 12px;
}

.text-link {
  color: var(--brand-cta, #ff6f3c);
  font-weight: 500;
  text-decoration: none;
}

.text-link:hover {
  text-decoration: underline;
}

/* ============================
   Optional: Dark Logo Backgrounds
============================ */
.card-logo--dark {
  background: #f2f2f2;
}

/* ============================
   Responsive Layouts
============================ */
@media (max-width: 992px) {
  .card-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }

  .card-logo {
    height: 110px;
  }
}

@media (max-width: 640px) {
  .card-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .section-title {
    font-size: 1.5rem;
    margin-bottom: 24px;
    text-align: center;
  }

  .card-logo {
    height: 100px;
  }

  .card-logo img {
    max-width: 80%;
    max-height: 80px;
  }
}
/* =========================================================
   Integrations Marquee Clickable Section
   ========================================================= */
.integration-logos {
  position: relative;
  cursor: pointer;
}

.integration-logos .integration-link {
  position: absolute;
  inset: 0;
  z-index: 10;
  display: block;
  content: "";
  text-indent: -9999px;
}

.integration-logos:hover {
  background: rgba(0, 0, 0, 0.02);
  transition: background 0.3s ease;
}
/* =====================================
   FIX for iPhone widths (375–390px)
   Keeps CTAs on one line beside menu
===================================== */
@media (max-width: 420px) {
  .subnav__wrap {
    gap: 4px !important;
  }

  .subnav__actions {
    flex: 1 1 auto;
    min-width: 0;
    gap: 4px !important;
  }

  .subnav__ctas {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: nowrap;
    gap: 4px !important;
    min-width: 0;
  }

  .subnav__ctas .btn {
    font-size: 0.8rem;
    padding: 5px 8px;
    line-height: 1.1;
    flex-shrink: 1;        /* allow buttons to compress */
    min-width: auto;
  }

  .subnav__toggle {
    flex-shrink: 0;
  }
}
/* =====================================
   FIX for iPhone widths (375–390px)
   Keeps CTAs on one line beside menu
===================================== */
@media (max-width: 420px) {
  .subnav__wrap {
    gap: 4px !important;
  }

  .subnav__actions {
    flex: 1 1 auto;
    min-width: 0;
    gap: 4px !important;
  }

  .subnav__ctas {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: nowrap;
    gap: 4px !important;
    min-width: 0;
  }

  .subnav__ctas .btn {
    font-size: 0.8rem;
    padding: 5px 8px;
    line-height: 1.1;
    flex-shrink: 1;        /* allow buttons to compress */
    min-width: auto;
  }

  .subnav__toggle {
    flex-shrink: 0;
  }
}
/* =====================================================
   FINAL FIX – Keep subnav CTAs inline on all mobiles
   ===================================================== */
@media (max-width: 900px) {
  .subnav__wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: nowrap !important;
    gap: 6px;
    min-width: 0;
  }

  .subnav__actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: nowrap !important;
    flex: 1 1 auto;
    min-width: 0;
    gap: 6px;
  }

  /* Force .subnav__ctas to stay in one line */
  .subnav__ctas {
    display: flex !important;
    flex-direction: row !important;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: nowrap !important;
    gap: 6px;
    flex: 1 1 auto;
    min-width: 0;
  }

  /* Buttons shrink proportionally instead of wrapping */
  .subnav__ctas .btn {
    flex: 0 1 auto;
    min-width: 0;
    white-space: nowrap;
    font-size: 0.85rem;
    padding: 6px 10px;
    line-height: 1.1;
  }

  /* Burger stays fixed width on the right */
  .subnav__toggle {
    flex: 0 0 auto;
  }
}
/* =========================================
   Tappy Chatbot — Pill Button Options
   ========================================= */

.cb-pill-wrap {
  margin: 10px 0;
}

.cb-pill-group {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 6px;
}

.cb-pill {
  background: var(--brand-cta, #0b79b7);
  color: #fff;
  border: none;
  border-radius: 999px;
  padding: 6px 14px;
  font-size: 0.9rem;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.15s ease;
  white-space: nowrap;
}

.cb-pill:hover {
  background: var(--brand-cta-hover, #095a87);
  transform: translateY(-1px);
}

.cb-pill:active {
  transform: scale(0.97);
  background: var(--brand-cta-hover, #074b70);
}

/* Optional – tidy the intro text spacing */
.cb-pill-wrap p {
  margin-bottom: 4px;
  line-height: 1.4;
}
/* =========================================
   Swipable Apps Rail
   ========================================= */

.apps-rail {
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}

.apps-rail::-webkit-scrollbar {
  display: none;
}

.apps-track {
  display: flex;
  gap: 1rem;
  width: max-content;
}

.apps-container a {
  scroll-snap-align: start;
  flex: 0 0 auto;
}
