/* ==========================================================================
   template.css — Big Bold UI Kit (Bootstrap 5.3 friendly)
   - Huge readable type
   - Huge buttons
   - Lots of padding/margin
   - Solid colors (minimal gradients)
   - Hero: solid / image / video / slideshow (fade/slide/kenburns)
   ========================================================================== */

/* -----------------------------
   0) Design Tokens (Edit these)
------------------------------ */
:root{
  /* Brand */
  --brand: #0B5ED7;             /* primary */
  --brand-2: #FFC107;           /* accent (gold/yellow) */
  --ink: #0B1220;               /* main text */
  --muted: #5B6473;             /* secondary text */
  --bg: #FFFFFF;
  --surface: #F5F7FB;           /* light section band */
  --surface-2: #EEF2F9;
  --line: rgba(11,18,32,.12);

  /* Typography (BIG by default) */
  --font-sans: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  --fs-base: 19px;              /* base paragraph size */
  --fs-small: 16px;             /* still readable */
  --lh-base: 1.65;

  /* Headings */
  --h1: clamp(2.7rem, 4vw + 1rem, 4.1rem);
  --h2: clamp(2.1rem, 2.6vw + 1rem, 3.1rem);
  --h3: clamp(1.55rem, 1.2vw + 1rem, 2.1rem);
  --h4: 1.35rem;

  /* Spacing */
  --radius: 18px;
  --radius-sm: 14px;
  --shadow: 0 18px 40px rgba(11,18,32,.10);
  --shadow-sm: 0 10px 22px rgba(11,18,32,.08);

  --container-max: 1180px;

  /* Section padding */
  --section-py: 96px;
  --section-py-sm: 64px;

  /* Buttons (HUGE) */
  --btn-h: 58px;
  --btn-pad-x: 30px;
  --btn-fs: 19px;

  /* Hero */
  --hero-min: 72vh;
  --hero-min-mobile: 68vh;
  --hero-overlay: rgba(11,18,32,.55);
  --hero-overlay-strong: rgba(11,18,32,.68);

  /* Slideshow */
  --hero-speed: 6500ms;
  --hero-fade: 650ms;
}

/* -----------------------------
   1) Base resets
------------------------------ */
*{ box-sizing: border-box; }

html, body { height: 100%; }

body{
  margin: 0;
  font-family: var(--font-sans);
  font-size: var(--fs-base);
  line-height: var(--lh-base);
  color: var(--ink);
  background: var(--bg);
  text-rendering: optimizeLegibility;
}

img{ max-width: 100%; height: auto; display: block; }
a{ color: inherit; text-decoration: none; }
a:hover{ text-decoration: none; }

:focus-visible{
  outline: 3px solid rgba(255,193,7,.65);
  outline-offset: 3px;
  border-radius: 10px;
}

/* Utility */
.u-container{
  width: min(100% - 2rem, var(--container-max));
  margin-inline: auto;
}
.u-band{ background: var(--surface); }
.u-band-2{ background: #F0EEF9; }
.u-divider{ border-top: 1px solid var(--line); }
.u-muted{ color: var(--muted); }
.u-pill{
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  padding: .45rem .8rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.85);
  font-weight: 700;
  font-size: var(--fs-small);
}

/* -----------------------------
   2) Big Type Scale
------------------------------ */
h1, h2, h3, h4{
  margin: 0 0 .6rem 0;
  line-height: 1.12;
  letter-spacing: -0.02em;
}
h1{ font-size: var(--h1); font-weight: 900; }
h2{ font-size: var(--h2); font-weight: 900; }
h3{ font-size: var(--h3); font-weight: 850; }
h4{ font-size: var(--h4); font-weight: 800; }

p{ margin: 0 0 1rem 0; }
small{ font-size: var(--fs-small); }

/* Eyebrow label */
.kicker{
  display: inline-block;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .12em;
  font-size: .9rem;
  color: #fff;
}

/* -----------------------------
   3) Buttons (huge + clean)
------------------------------ */
.btn-xl{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: var(--btn-h);
  padding: 0 var(--btn-pad-x);
  border-radius: var(--radius);
  font-weight: 900;
  font-size: var(--btn-fs);
  letter-spacing: .01em;
  border: 2px solid transparent;
  transition: transform .12s ease, box-shadow .12s ease, background .12s ease, color .12s ease;
  user-select: none;
  gap: .6rem;
}

.btn-xl:active{ transform: translateY(1px); }

.btn-brand{
  background: var(--brand);
  color: #fff;
  box-shadow: var(--shadow-sm);
}
.btn-brand:hover{
  filter: brightness(.98);
  box-shadow: var(--shadow);
  transform: translateY(-1px);
}
.btn-outline{
  background: transparent;
  border-color: rgba(233, 233, 233, 0.9);
  color: var(--ink);
}
.btn-outline:hover{
  background: rgba(11,18,32,.04);
  transform: translateY(-1px);
}
.btn-accent{
  background: var(--brand-2);
  color: #0B1220;
  box-shadow: var(--shadow-sm);
}
.btn-accent:hover{
  filter: brightness(.99);
  box-shadow: var(--shadow);
  transform: translateY(-1px);
}

/* Bootstrap buttons feel bigger too */
.btn{ border-radius: var(--radius-sm); }
.btn.btn-lg{
  min-height: 52px;
  font-size: 18px;
  font-weight: 800;
  padding: 14px 22px;
  border-radius: var(--radius);
}

/* -----------------------------
   4) Sections (padding-first)
------------------------------ */
.section{
  padding: var(--section-py) 0;
}
@media (max-width: 991px){
  .section{ padding: var(--section-py-sm) 0; }
}

/* -----------------------------
   5) Cards (big + bold)
------------------------------ */
.card-xl{
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: 28px;
}
.card-xl:hover{ box-shadow: var(--shadow); }

.card-title-xl{
  font-weight: 900;
  font-size: 1.45rem;
  margin-bottom: .35rem;
}
.card-icon{
  width: 54px;
  height: 54px;
  border-radius: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(11,94,215,.10);
  color: var(--brand);
  font-size: 28px;
  font-weight: 900;
}

/* -----------------------------
   6) Header / Nav Styles
------------------------------ */
.site-header{ position: relative; z-index: 50; }
.site-topbar{
  background: #fff;
  border-bottom: 1px solid var(--line);
}
.site-topbar .topbar-inner{
  width: min(100% - 2rem, var(--container-max));
  margin-inline: auto;
  min-height: 74px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

/* Brand */
.brand{
  display: flex;
  align-items: center;
  gap: .8rem;
  font-weight: 950;
  letter-spacing: -0.02em;
}
.brand .brand-mark{
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: var(--ink);
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 20px;
}
.brand .brand-name{
  font-size: 1.25rem;
  line-height: 1.05;
}

/* Nav links */
.nav-links{
  display: flex;
  align-items: center;
  gap: 1.1rem;
  flex-wrap: wrap;
  font-weight: 900;
}
.nav-links a{
  padding: .7rem .85rem;
  border-radius: 14px;
  color: rgba(11,18,32,.86);
}
.nav-links a:hover{ background: rgba(11,18,32,.05); }

/* Actions */
.header-actions{
  display: flex;
  align-items: center;
  gap: .75rem;
}
.header-phone{
  display: none;
  font-weight: 900;
  color: rgba(11,18,32,.82);
  white-space: nowrap;
}
@media (min-width: 992px){
  .header-phone{ display: inline-flex; gap: .5rem; align-items: center; }
}

/* Sticky */
.site-header.is-sticky .site-topbar{
  position: sticky;
  top: 0;
  backdrop-filter: blur(10px);
  background: rgba(255,255,255,.92);
}

/* Subnav */
.site-subnav{
  background: var(--ink);
  color: #fff;
}
.site-subnav .subnav-inner{
  width: min(100% - 2rem, var(--container-max));
  margin-inline: auto;
  display: flex;
  align-items: center;
  gap: 1.1rem;
  padding: 12px 0;
  overflow-x: auto;
  scrollbar-width: thin;
}
.site-subnav a{
  color: rgba(255,255,255,.92);
  font-weight: 900;
  padding: 10px 14px;
  border-radius: 14px;
  white-space: nowrap;
}
.site-subnav a:hover{ background: rgba(255,255,255,.12); }

/* Mobile toggle */
.mobile-toggle{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: #fff;
  font-size: 22px;
  font-weight: 900;
}
@media (min-width: 992px){
  .mobile-toggle{ display: none; }
}

/* -----------------------------
   7) Hero System
------------------------------ */
.hero{
  position: relative;
  min-height: var(--hero-min);
  display: grid;
  align-items: center;
  overflow: hidden;
  background: var(--ink);
  color: #fff;
}
@media (max-width: 991px){
  .hero{ min-height: var(--hero-min-mobile); }
}

.hero .hero-inner{
  width: min(100% - 2rem, var(--container-max));
  margin-inline: auto;
  position: relative;
  z-index: 2;
  padding: 56px 0;
}

.hero .hero-title{
  font-size: var(--h1);
  font-weight: 950;
  line-height: 1.05;
  margin-bottom: 1rem;
}
.hero .hero-lead{
  font-size: clamp(1.15rem, .75vw + 1rem, 1.55rem);
  max-width: 60ch;
  color: rgba(255,255,255,.88);
  margin-bottom: 1.6rem;
}
.hero .hero-actions{
  display: flex;
  gap: .9rem;
  flex-wrap: wrap;
  align-items: center;
}

/* Overlay */
.hero::before{
  content: "";
  position: absolute;
  inset: 0;
  background: var(--hero-overlay);
  z-index: 1;
}
.hero.hero--overlay-strong::before{ background: var(--hero-overlay-strong); }
.hero.hero--overlay-none::before{ display: none; }

/* Solid hero */
.hero.hero--solid{ background: var(--ink); }

/* Image hero */
.hero.hero--image{
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

/* Video */
.hero .hero-video{
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero .hero-bg{
  position: absolute;
  inset: 0;
  z-index: 0;
  background-size: cover;
  background-position: center;
}

/* Hero points */
.hero-points{
  display: grid;
  gap: .8rem;
  margin-top: 1.25rem;
}
.hero-point{
  display: flex;
  gap: .9rem;
  align-items: flex-start;
  color: rgba(255,255,255,.92);
  font-weight: 800;
  font-size: 1.05rem;
}
.hero-point .dot{
  width: 42px; height: 42px;
  border-radius: 14px;
  display: grid; place-items: center;
  background: rgba(255,255,255,.14);
  font-size: 20px;
}

/* -----------------------------
   8) Slideshow layers
------------------------------ */
.hero-slideshow{
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-slide{
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: translateX(0);
  transition: opacity var(--hero-fade) ease, transform var(--hero-fade) ease;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
.hero-slide.is-active{ opacity: 1; }

/* Fade default */
.hero--fade .hero-slide{ transform: none; }

/* Slide effect */
.hero--slide .hero-slide{
  opacity: 1;
  transform: translateX(100%);
}
.hero--slide .hero-slide.is-active{ transform: translateX(0); }
.hero--slide .hero-slide.is-prev{ transform: translateX(-100%); }

/* Ken Burns */
@keyframes kenburnsZoom {
  0%   { transform: scale(1) translateZ(0); }
  100% { transform: scale(1.12) translateZ(0); }
}
.hero--kenburns .hero-slide{ transform: scale(1); }
.hero--kenburns .hero-slide.is-active{
  opacity: 1;
  animation: kenburnsZoom calc(var(--hero-speed) + 900ms) ease-in-out both;
}

/* Dots */
.hero-controls{
  position: absolute;
  right: 18px;
  bottom: 18px;
  z-index: 3;
  display: flex;
  gap: .5rem;
}
.hero-dot{
  width: 14px;
  height: 14px;
  border-radius: 999px;
  border: 2px solid rgba(255,255,255,.55);
  background: transparent;
  cursor: pointer;
}
.hero-dot.is-active{
  background: rgba(255,255,255,.92);
  border-color: rgba(255,255,255,.92);
}

/* -----------------------------
   9) Reveal Animations
------------------------------ */
.reveal{
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 520ms ease, transform 520ms ease;
}
.reveal.is-in{
  opacity: 1;
  transform: translateY(0);
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce){
  *{ scroll-behavior: auto !important; }
  .reveal{ opacity: 1; transform: none; transition: none; }
  .hero--kenburns .hero-slide.is-active{ animation: none; }
  .btn-xl, .card-xl{ transition: none; }
}

/* ==========================================================================
   DECORATIONS (floating elements)
   - fixed stacking so they never “break” your content
   ========================================================================== */

.section-decorated{
  position: relative;
  overflow: hidden;
}

/* Ensure section content stays above decor */
.section-decorated .u-container,
.section-decorated .container,
.section-decorated .container-fluid{
  position: relative;
  z-index: 3;
}

/* Decor base */
.decor{
  position: absolute;
  z-index: 2;          /* behind content (z=3), above section background */
  pointer-events: none;
  will-change: transform;
}

.decor img{
  max-width: 520px;
  opacity: 0.9;
}

/* Left item */
.decor-left{
  left: -100px;
  top: 15%;
  /* aligned:; */
}

/* Right item */
.decor-right{
  right: -10px;
  top: 0%;
}

/* Smaller screens */
@media (max-width: 991px){
  .decor img{
    max-width: 200px;
    opacity: 0.55;
  }
  .decor-left{ left: -90px; top: 18%; }
  .decor-right{ right: -110px; top: 2%; }
}

/* Sway animations */
.sway-y{
  animation: swayY 6.5s ease-in-out infinite;
  will-change: transform;
}
.sway-x{
  animation: swayX 7.5s ease-in-out infinite;
  will-change: transform;
}
.sway-rotate{
  animation: swayRotate 9s ease-in-out infinite;
  transform-origin: center;
  will-change: transform;
}

@keyframes swayY{
  0%,100% { transform: translateY(0); }
  50%     { transform: translateY(18px); }
}
@keyframes swayX{
  0%,100% { transform: translateX(0); }
  50%     { transform: translateX(16px); }
}
@keyframes swayRotate{
  0%,100% { transform: translateY(0) rotate(0deg); }
  50%     { transform: translateY(14px) rotate(1.25deg); }
}

@media (prefers-reduced-motion: reduce){
  .sway-y, .sway-x, .sway-rotate{ animation: none !important; }
}

/* Utility: kill bottom padding when needed */
.padb-0{ padding-bottom: 0 !important; }
