/* ===== Apple-clean + OnePress-inspired theme ===== */

/* --- CSS Variables --- */
:root{
  --bg:#ffffff;
  --ink:#0b1320;
  --muted:#5f6b7a;
  --brand:#0f4c81;
  --brand-2:#2f6c9f;
  --ring: rgba(15,76,129,.2);
}

html{
  scroll-behavior:smooth;
  font-size: 17px;   /* default is 16px — this increases everything proportionally */
}

/* --- Base / Reset --- */
*{ box-sizing:border-box }
html,body{ height:100% }
html{ scroll-behavior:smooth }
body{
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Inter", Segoe UI, Roboto, Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ====================== NAVBAR ====================== */
.navbar{
  padding: 14px 0;
  transition: background .3s ease, box-shadow .3s ease;
  background: transparent !important;
  z-index: 1050;
}
.navbar.scrolled{
  background: rgba(255,255,255,.85) !important;
  backdrop-filter: saturate(180%) blur(12px);
  box-shadow: 0 6px 24px rgba(0,0,0,.06);
}

/* Brand */
.navbar .navbar-brand{ font-weight:700; letter-spacing:.5px; position:relative; z-index:1051; }
.navbar .navbar-brand img{ height:80px; width:auto; display:block; }
.navbar .brand-text{ font-weight:700; letter-spacing:.75px; font-size: 16; color: #000 !important;}
.navbar .navbar-logo{ display:block; height:80px; width:auto; }

/* Links */
/* Default link */
.navbar .nav-link{
  color: var(--ink);
  opacity:.9;
  font-size: 0.95rem;
  font-weight: bold;
  margin:0 .35rem;
  transition: color .2s ease, opacity .2s ease;
}
/* Hover */
.navbar .nav-link:hover{
  color: #ff6700;              /* SME orange on hover */
  opacity:1;
}
/* ACTIVE / CLICKED PAGE */
.navbar .nav-link.active,
.navbar .nav-link:focus,
.navbar .nav-link[aria-current="page"]{
  color: #ff6700 !important;   /* force orange */
  opacity:1;
  position: relative;
}

/* Optional subtle underline indicator */
.navbar .nav-link.active::after,
.navbar .nav-link[aria-current="page"]::after{
  content:"";
  position:absolute;
  left:0; right:0; bottom:-4px;
  height:3px;
  background:#ff6700;
  border-radius:2px;
}

/* Toggler (Bootstrap default icon; light/dark variants) */
.navbar .navbar-toggler{
  border-color: rgba(0,0,0,.2);
  padding:.35rem .5rem;
  position:relative; z-index:1051;
}
.navbar-dark .navbar-toggler{ border-color: rgba(255,255,255,.35); }
.navbar .navbar-toggler:focus{ box-shadow: 0 0 0 .15rem var(--ring); }

/* Icon for light navbar */
.navbar.navbar-light .navbar-toggler-icon{
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(0,0,0,0.85)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}
/* Icon for dark/transparent navbar */
.navbar.navbar-dark .navbar-toggler-icon{
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(255,255,255,0.9)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* Mobile menu: semi-transparent panel */
@media (max-width: 991.98px){
  .navbar .navbar-collapse.show{
    position:absolute; left:0; right:0; top:100%;
    background: rgba(255,255,255,0.85);
    backdrop-filter: blur(10px) saturate(180%);
    -webkit-backdrop-filter: blur(10px) saturate(180%);
    box-shadow: 0 14px 34px rgba(0,0,0,.12);
    padding: 12px 16px;
    border-bottom-left-radius: 14px;
    border-bottom-right-radius: 14px;
    z-index:1049; /* under brand (1051) */
  }
  .navbar .navbar-collapse.show .nav-link{
    color: #ff6700 !important; opacity:.9; padding:.5rem .25rem;
  }
  .navbar .navbar-collapse.show .nav-link:hover,
  .navbar .navbar-collapse.show .nav-link.active{ opacity:1; }
}

/* ====================== HERO ====================== */
.hero{
  min-height:88vh;
  display:grid; place-items:center;
  text-align:center; position:relative;
  color: var(--ink);
  background: none;
  overflow:hidden;
}
.hero .container{ position:relative; z-index:2 }
.hero h1{
  font-size: clamp(2rem, 5vw, 3.2rem);
  line-height:1.1; letter-spacing:-.2px; margin-bottom:14px;
}
.hero p.lead{
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
  color: var(--muted); margin-bottom:28px;
}

/* Buttons */
.hero .btn{ padding:.8rem 1.3rem; border-radius:14px; font-weight:600; }
.btn-primary{ background: linear-gradient(90deg, var(--brand), var(--brand-2)); border:none; }
.btn-outline{ border:1px solid rgba(11,19,32,.12); background: rgba(255,255,255,.7); }
.btn-outline:hover{ border-color: rgba(11,19,32,.2); }

/* Decorative blobs */
.hero .blob{ position:absolute; border-radius:50%; filter: blur(40px); opacity:.35; z-index:1; }
.hero .b1{ width:340px; height:340px; background:#cfe8ff; top:-60px; right:-60px; }
.hero .b2{ width:280px; height:280px; background:#e9f3ff; bottom:-40px; left:-60px; }

/* ====================== SECTIONS / CARDS / FOOTER ====================== */
.section{ padding:72px 0; }
.section-title{ text-align:center; margin-bottom:32px; }
.section-title h2{ font-size: clamp(1.2rem, 3.4vw, 2.2rem); letter-spacing:-.2px; }
.section-title p{ color: var(--muted); }

/* Cards */
.card{
  border:1px solid rgba(11,19,32,.06);
  border-radius:16px;
  box-shadow:0 10px 30px rgba(0,0,0,.04);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
  background: rgba(255,255,255,.86);
  backdrop-filter: blur(6px);
}
.card:hover{
  transform: translateY(-4px);
  box-shadow:0 20px 40px rgba(0,0,0,.06);
  border-color: rgba(15,76,129,.18);
}
.card .card-icon{ font-size:2rem }

/* Bands / Footer */
.band{ background: linear-gradient(180deg, #f7fafc, #ffffff); }
footer{ background:#f8f9fb; }
footer a{ text-decoration:none; }

/* ====================== UTILITIES ====================== */
.reveal{ opacity:0; transform: translateY(12px); transition: all .5s ease; }
.reveal.show{ opacity:1; transform: translateY(0); }

/* Bullet-proof hamburger: draws 3 bars via CSS, no image needed */
.navbar .navbar-toggler {
  padding: .35rem .5rem;
  border-color: rgba(0,0,0,.25);
}
.navbar.navbar-dark .navbar-toggler {
  border-color: rgba(255,255,255,.35);
}

/* Replace the default image icon with CSS bars */
.navbar .navbar-toggler-icon{
  background-image: none !important;
  position: relative;
  width: 24px; height: 16px; display: inline-block;
}

/* Draw the bars using one pseudo element + box-shadows */
.navbar .navbar-toggler-icon::before{
  content: "";
  position: absolute; left: 0; right: 0; top: 0;
  height: 2px; border-radius: 1px;
  background: rgba(0,0,0,.9); /* light nav */
  box-shadow: 0 7px 0 0 rgba(0,0,0,.9), 0 14px 0 0 rgba(0,0,0,.9);
}

/* When navbar is dark/transparent, make bars white */
.navbar.navbar-dark .navbar-toggler-icon::before{
  background: rgba(255,255,255,.95); /* dark nav */
  box-shadow: 0 7px 0 0 rgba(255,255,255,.95), 0 14px 0 0 rgba(255,255,255,.95);
}

/* Focus ring so it’s obviously interactive */
.navbar .navbar-toggler:focus{
  box-shadow: 0 0 0 .15rem rgba(0,0,0,.15);
}
.navbar.navbar-dark .navbar-toggler:focus{
  box-shadow: 0 0 0 .15rem rgba(255,255,255,.25);
}

/* Keep it above the translucent mobile menu panel */
.navbar { z-index: 1050; }
.navbar .navbar-toggler { position: relative; z-index: 1051; }





/* Draw our own bars; ignore Bootstrap's data-URI */
.navbar .navbar-toggler-icon{
  background-image: none !important;
  position: relative;
  width: 24px; height: 16px; display: inline-block;
}
.navbar .navbar-toggler-icon::before{
  content: "";
  position: absolute; left: 0; right: 0; top: 0;
  height: 2px; border-radius: 1px;
  background: rgba(0,0,0,.9); /* light nav */
  box-shadow: 0 7px 0 0 rgba(0,0,0,.9), 0 14px 0 0 rgba(0,0,0,.9);
}

/* ==== ALWAYS-VISIBLE HAMBURGER (overrides everything else) ==== */
.navbar .navbar-toggler-icon{
  background-image: none !important;   /* ignore Bootstrap's data-URI */
  position: relative;
  display: inline-block;
  width: 26px; height: 18px;
}

/* Draw 3 black bars so they show on light/transparent hero backgrounds */
.navbar .navbar-toggler-icon::before{
  content:"";
  position:absolute; left:0; right:0; top:0;
  height:2px; border-radius:1px;
  background:#000;                             /* black bars */
  box-shadow: 0 8px 0 0 #000, 0 16px 0 0 #000; /* middle + bottom */
  /* add a soft outline so bars stay visible even over busy imagery */
  filter: drop-shadow(0 0 2px rgba(255,255,255,.6));
}

/* Optional: when your navbar is scrolled on a light background, keep black bars */
.navbar.scrolled .navbar-toggler-icon::before{
  background:#000;
  box-shadow: 0 8px 0 0 #000, 0 16px 0 0 #000;
}

/* Optional: add a subtle pill behind the button for contrast */
.navbar .navbar-toggler{
  border-color: rgba(0,0,0,.25);
  background: rgba(255,255,255,.25);
  backdrop-filter: blur(4px);
}
.navbar .navbar-toggler:hover{
  background: rgba(255,255,255,.4);
}

/* Make sure nothing intercepts clicks */
.navbar .navbar-toggler-icon,
.navbar .navbar-toggler-icon::before { pointer-events: none; }

/* Inline-SVG hamburger: always visible */
.navbar .hamburger{
  display:block;
  color:#000; /* black bars on transparent/light hero */
  filter: drop-shadow(0 0 2px rgba(255,255,255,.7));
  pointer-events: none; /* clicks go to the button */
}

/* When navbar is declared dark, use white bars */
.navbar.navbar-dark .hamburger{
  color:#fff;
  filter: drop-shadow(0 0 2px rgba(0,0,0,.4));
}

/* When scrolled (light background), force black */
.navbar.scrolled .hamburger{
  color:#000;
  filter: drop-shadow(0 0 2px rgba(255,255,255,.7));
}

/* Toggler button contrast + stacking */
.navbar .navbar-toggler{
  border-color: rgba(0,0,0,.25);
  background: rgba(255,255,255,.25);
  backdrop-filter: blur(4px);
  position: relative; z-index: 1051;
}
.navbar.navbar-dark .navbar-toggler{ border-color: rgba(255,255,255,.35); }

/* If you still have .navbar-toggler-icon anywhere, neutralize it */
.navbar .navbar-toggler-icon{ background-image: none !important; width:0; height:0; }

/* Global page background image */

body.has-page-bg {
  position: relative;
  min-height: 100vh;
  z-index: 0;
}

/* Use a pseudo-element so the background sits "behind" everything */
body.has-page-bg::before {
  content: "";
  position: fixed;       /* stays still while you scroll */
  inset: 0;
  background-image: var(--page-bg-image);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: var(--page-bg-opacity, 0.18);
  filter: var(--page-bg-filter, none);
  z-index: -1;
  pointer-events: none;  /* don't block clicks */
}

/* Optional: mode-specific tweaks */

body.has-page-bg.bg-mono::before {
  /* mono mode already handled by --page-bg-filter, but you could add extra tweaks here */
}

body.has-page-bg.bg-colour::before {
  /* keep it in colour; you could add blur, saturation, etc. if desired */
  /* example: filter: blur(1px); */
}

/* If needed, ensure your main content stays readable */
main, .hero, .container {
  position: relative;
  z-index: 1;
}

/* === SME Card-Stack Button Style === */
.stack-btn {
  background: #ff6700;
  color: #000;
  border: 3px solid #000;
  border-radius: 12px;
  font-weight: 700;
  padding: 0.45rem 1.2rem;
  transition: all .15s ease-in-out;
  box-shadow: 0 4px 0 #000;
  text-transform: none;
}

/* Hover and active press effect */
.stack-btn:hover {
  background: #ff7f1a;
  color: #000;
  box-shadow: 0 3px 0 #000;
  transform: translateY(1px);
}

.stack-btn:active {
  background: #e65f00;
  box-shadow: 0 2px 0 #000;
  transform: translateY(2px);
}

/* Keep spacing consistent */
.testimonial-controls .stack-btn {
  min-width: 120px;
}
