/* =========================================================
   ROOT VARIABLES — Roratek Palette (Clean/Industrial)
   ========================================================= */
:root{
  --rk-bg: #ffffff;
  --rk-surface: #f6f7f9;
  --rk-surface-2: #ffffff;
  --rk-border: rgba(15, 23, 42, .12);

  --rk-text: #0b1220;
  --rk-muted: rgba(11, 18, 32, .64);

  --rk-accent: #3a8bff;
  --rk-accent-2: #6fb6ff;

  --rk-radius-lg: 22px;
  --rk-radius-md: 16px;

  --rk-shadow-sm: 0 .6rem 1.6rem rgba(15,23,42,.10);
  --rk-shadow-md: 0 1.1rem 2.6rem rgba(15,23,42,.14);

  /* NEW: section surfaces */
  --rk-section-base: #ffffff;      /* default */
  --rk-section-soft: #f7f9fc;      /* very light blue-grey */
  --rk-section-muted: #f2f4f7;     /* neutral grey */

  /* single source of truth for fixed navbar offset */
  --rk-nav-h: 72px;
}

/* =========================================================
   BASE
   ========================================================= */
html, body{ height: 100%; }

body.app-shell{
  background:
    radial-gradient(900px 520px at 15% 5%, rgba(58,139,255,.06), rgba(0,0,0,0) 55%),
    radial-gradient(780px 420px at 85% 20%, rgba(111,182,255,.05), rgba(0,0,0,0) 60%),
    var(--rk-bg);
  color: var(--rk-text);
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.app-main{ flex: 1 0 auto; }

/* IMPORTANT: navbar is fixed, so give the page a top offset */
.app-main{
  padding-top: var(--rk-nav-h);
}

/* =========================================
   Anchor offset for fixed navbar
   Prevents sections being hidden under nav
========================================= */

html {
  scroll-behavior: smooth;
  scroll-padding-top: 88px; /* adjust if needed */
}

/* =========================================================
   CONTAINER + RHYTHM
   ========================================================= */
.rk-container{
  max-width: 1320px;
  margin: 0 auto;
  padding-left: clamp(1rem, 3vw, 2rem);
  padding-right: clamp(1rem, 3vw, 2rem);
}

.section{
  padding-top: clamp(3rem, 6vw, 5rem);
  padding-bottom: clamp(3rem, 6vw, 5rem);
}

/* =========================================================
   NAVBAR (Fixed + Transparent on hero)
   ========================================================= */
.navbar{
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 2000;

  background: transparent;
  border-bottom: 1px solid transparent;

  transition:
    background .25s ease,
    border-color .25s ease,
    box-shadow .25s ease;
}

.rk-logo{
  height: 44px;
  width: auto;
  display: block;
}

.navbar .nav-link{
  padding: .5rem 0;
  color: rgba(11,18,32,.75);
}

.navbar .nav-link:hover{
  color: rgba(11,18,32,.95);
}

/* Solid state (add/remove .is-solid with JS) */
.navbar.is-solid{
  background: var(--rk-surface-2);
  border-bottom: 1px solid rgba(15,23,42,.08);
  box-shadow: 0 6px 24px rgba(15,23,42,.10);
}

/* Transparent state (over hero) */
.navbar:not(.is-solid) .nav-link{
  color: rgba(255,255,255,.86);
}

.navbar:not(.is-solid) .btn-outline-secondary{
  border-color: rgba(255,255,255,.55);
  color: #fff;
}

/* Bootstrap toggler icon can be hard to see on transparent hero */
.navbar:not(.is-solid) .navbar-toggler{
  border-color: rgba(255,255,255,.35);
}
.navbar:not(.is-solid) .navbar-toggler-icon{
  filter: invert(1) grayscale(1) brightness(2);
}

/* =========================================================
   BUTTONS
   ========================================================= */
.btn.btn-primary{
  background: linear-gradient(180deg, #3a8bff, rgba(58,139,255,.86));
  border: 1px solid rgba(58,139,255,.55);
  box-shadow: 0 14px 30px rgba(58,139,255,.22);
}

.btn.btn-outline-secondary{
  border-color: rgba(15,23,42,.22);
  color: rgba(11,18,32,.85);
  background: transparent;
}

.btn.btn-outline-secondary:hover{
  background: rgba(15,23,42,.04);
  border-color: rgba(58,139,255,.30);
}

/* =========================================================
   HERO — FULL SCREEN VIDEO
   ========================================================= */
.hero-video-band{
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-bottom: 1px solid rgba(11,18,32,.08);
}

/* because main has padding-top for fixed navbar,
   pull hero up so it still feels full-screen */
.hero-video-band{
  margin-top: calc(-1 * var(--rk-nav-h));
  padding-top: var(--rk-nav-h);
}

.hero-video{
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.hero-overlay{
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    to bottom,
    rgba(10,14,20,.55) 0%,
    rgba(10,14,20,.65) 45%,
    rgba(10,14,20,.75) 100%
  );
}

.rk-hero-container{
  position: relative;
  z-index: 2;
  max-width: 1000px;
  padding: 0 1.5rem;
  text-align: center;
}

.hero-kicker{
  display: inline-block;
  padding: 8px 14px;
  margin-bottom: 1rem;
  border-radius: 999px;
  background: rgba(0,0,0,.35);
  border: 1px solid rgba(255,255,255,.25);
  color: rgba(255,255,255,.80);
  font-size: .9rem;
}

.hero-video-band h1{
  color: rgba(255,255,255,.96);
  text-shadow: 0 8px 28px rgba(0,0,0,.45);
}

.hero-lead{
  max-width: 60ch;
  margin: 0 auto;
  color: rgba(255,255,255,.84);
  font-size: 1.05rem;
  text-shadow: 0 4px 18px rgba(0,0,0,.35);
}

.rk-accent-line{
  height: 4px;
  width: 76px;
  margin: 1rem auto;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--rk-accent), var(--rk-accent-2));
}

.hero-video-band .btn.btn-outline-secondary{
  border-color: rgba(255,255,255,.55);
  color: #fff;
}

.hero-video-band .btn.btn-outline-secondary:hover{
  background: rgba(255,255,255,.12);
}

/* =========================================================
   RK SECTIONS (your home.html expects these)
   ========================================================= */
.rk-section{
  padding-top: clamp(3rem, 6vw, 5rem);
  padding-bottom: clamp(3rem, 6vw, 5rem);
}

.rk-section--base{ background: var(--rk-section-base); }
.rk-section--soft{ background: var(--rk-section-soft); }
.rk-section--muted{ background: var(--rk-section-muted); }

/* Header row */
.rk-section-header-inner{
  display: grid;
  gap: .85rem;
  margin-bottom: clamp(1.5rem, 2.4vw, 2.25rem);
}

/* Title + accent dot */
.rk-section-title{
  display: flex;
  align-items: center;
  gap: .75rem;
}

.rk-section-title h2{
  margin: 0;
  font-weight: 900;
  letter-spacing: .01em;
  color: rgba(11,18,32,.92);
}

.rk-section-accent{
  width: 14px;
  height: 14px;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--rk-accent), var(--rk-accent-2));
  box-shadow: 0 10px 22px rgba(58,139,255,.18);
}

.rk-section-intro{
  max-width: 72ch;
  color: var(--rk-muted);
  font-size: 1.02rem;
  line-height: 1.5;
}

/* Step icon */
.rk-step-icon{
  width: 56px;
  height: 56px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  margin: 0 auto 14px;
  background: rgba(58,139,255,.10);
  color: var(--rk-accent);
  border: 1px solid rgba(58,139,255,.18);
}

/* =========================================================
   SECTION DIVIDER — AVOCET STYLE (Tall, Clean)
   ========================================================= */
.rk-section-divider{
  background: #f2f4f6;
  padding: clamp(3.5rem, 8vw, 6rem) 0;
  margin: 0;
  border-top: 1px solid rgba(15,23,42,.06);
  border-bottom: 1px solid rgba(15,23,42,.06);
}

.rk-section-divider .rk-container{
  display: flex;
  justify-content: center;
  align-items: center;
}

.rk-divider-heading{
  margin: 0;
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  font-weight: 800;
  letter-spacing: .02em;
  color: rgba(11,18,32,.9);
  text-align: center;
}

.rk-divider-heading::after{
  content: "";
  display: block;
  margin: 1.05rem auto 0;
  width: 52px;
  height: 3px;
  background: var(--rk-accent);
  border-radius: 2px;
  opacity: .95;
}

/* =========================================================
   CARDS
   ========================================================= */
.card{
  background: var(--rk-surface-2);
  border: 1px solid rgba(15,23,42,.10);
  border-radius: var(--rk-radius-md);
  box-shadow: var(--rk-shadow-sm);
  transition: transform .18s ease, box-shadow .18s ease;
}

.card:hover{
  transform: translateY(-4px);
  box-shadow: var(--rk-shadow-md);
}

.card .card-body{
  text-align: center;
}

/* Section intro text (outside cards) */
.section > .rk-container > p{
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

/* =========================================================
   CARD IMAGE SLOT
   ========================================================= */
.rk-card-media{
  width: 100%;
  height: 240px; /* was 400px — smaller helps alignment + reduces giant cards */
  border-radius: 16px;
  overflow: hidden;
  margin-bottom: 16px;
}

.rk-card-media img{
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  background: rgba(15,23,42,.04);
}

/* =========================================================
   FOOTER — COMPACT, CENTRED
   ========================================================= */
.app-footer{
  background: var(--rk-surface-2);
  border-top: 1px solid rgba(15,23,42,.08);
  padding: 1.2rem 0 .85rem;
}

.rk-footer-grid{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.rk-footer-grid > div{
  text-align: center;
}

.rk-footer-brand{
  font-weight: 900;
  margin-bottom: .25rem;
}

.rk-footer-title{
  font-weight: 800;
  font-size: .95rem;
  margin-bottom: .25rem;
}

.rk-footer-muted{
  color: rgba(11,18,32,.66);
  font-size: .9rem;
  line-height: 1.35;
}

.app-footer a{
  color: rgba(11,18,32,.72);
  text-decoration: none;
}

.app-footer a:hover{
  color: rgba(11,18,32,.92);
  text-decoration: underline;
}

.rk-footer-bottom{
  margin-top: .85rem;
  padding-top: .6rem;
  border-top: 1px solid rgba(15,23,42,.08);
  display: flex;
  justify-content: center;
  gap: .75rem;
  flex-wrap: wrap;
  text-align: center;
}

.rk-footer-bottom .rk-footer-muted{
  font-size: .85rem;
}

@media (min-width: 768px){
  .rk-footer-bottom{
    justify-content: space-between;
    text-align: left;
  }
}

/* =========================================================
   MOBILE
   ========================================================= */
@media (max-width: 768px){
  .hero-video{ display: none; }

  .hero-video-band{
    min-height: 70vh;
    height: 70vh;
    background:
      linear-gradient(rgba(10,14,20,.65), rgba(10,14,20,.75)),
      url("/static/img/hero-fallback.jpg") center/cover no-repeat;
  }

  .hero-lead{ font-size: 1rem; }

  .rk-footer-grid{
    grid-template-columns: 1fr;
    gap: 1rem;
  }
}
/* =========================================================
   ACCOUNT SETTINGS LAYOUT
   ========================================================= */
.rk-account-header{
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.rk-sidenav.card{
  position: sticky;
  top: calc(var(--rk-nav-h) + 16px);
  border: 1px solid rgba(15,23,42,.10);
  border-radius: var(--rk-radius-md);
}

.rk-sidenav-title{
  font-weight: 800;
  font-size: .95rem;
  margin-bottom: .5rem;
  color: rgba(11,18,32,.88);
}

.rk-sidenav-links .nav-link{
  padding: .55rem .6rem;
  border-radius: 12px;
  color: rgba(11,18,32,.78);
}

.rk-sidenav-links .nav-link:hover{
  background: rgba(15,23,42,.04);
  color: rgba(11,18,32,.95);
}

.rk-settings-card{
  border: 1px solid rgba(15,23,42,.10);
  border-radius: var(--rk-radius-md);
}

.rk-section-head{
  display: grid;
  gap: .25rem;
}

.rk-section-sub{
  font-size: .95rem;
}

.rk-callout{
  border: 1px solid rgba(15,23,42,.10);
  background: rgba(15,23,42,.03);
  border-radius: 14px;
  padding: .75rem .9rem;
}
/* ================================
   Account settings: sidebar + panels
   ================================ */
.rk-sidenav{
  position: sticky;
  top: calc(var(--rk-nav-h) + 16px);
}

.rk-sidenav-title{
  font-weight: 800;
  font-size: .95rem;
  margin-bottom: .5rem;
  color: rgba(11,18,32,.88);
}

.rk-sidenav-links .nav-link{
  padding: .55rem .6rem;
  border-radius: 12px;
  color: rgba(11,18,32,.78);
}

.rk-sidenav-links .nav-link:hover{
  background: rgba(15,23,42,.04);
  color: rgba(11,18,32,.95);
}

.rk-sidenav-links .nav-link.active{
  background: rgba(58,139,255,.12);
  color: var(--rk-accent);
  font-weight: 600;
}

/* Panel toggling */
.rk-settings-panel{ display: none; }
.rk-settings-panel.active{ display: block; }

.rk-settings-card{
  border: 1px solid rgba(15,23,42,.10);
  border-radius: var(--rk-radius-md);
}

.rk-section-head{
  display: grid;
  gap: .25rem;
}

.rk-section-sub{
  font-size: .95rem;
}

/* ===== Settings panel toggling (force) ===== */
.rk-settings-panel { display: none !important; }
.rk-settings-panel.active { display: block !important; }

/* =========================================================
   Mobile Fullscreen Menu (glass overlay)
   ========================================================= */

.rk-menu{ display:none; }

@media (max-width: 991.98px){

  /* Hide bootstrap collapse container entirely on mobile */
  .navbar .navbar-collapse{ display:none !important; }

  /* Show our menu system */
  .rk-menu{
    display:block;
    position: fixed;
    inset: 0;
    z-index: 4000;
    pointer-events: none; /* off until opened */
  }

  .rk-menu__backdrop{
    position:absolute;
    inset:0;
    background: rgba(10,14,20,.55);
    backdrop-filter: blur(10px);
    opacity: 0;
    transition: opacity .18s ease;
  }

  .rk-menu__panel{
    position:absolute;
    left: 10px;
    right: 10px;
    top: 10px;
    bottom: 10px;

    border-radius: 22px;
    border: 1px solid rgba(255,255,255,.18);

    background: rgba(255,255,255,.92);
    box-shadow: 0 30px 90px rgba(15,23,42,.30);

    transform: translateY(-8px);
    opacity: 0;
    transition: transform .18s ease, opacity .18s ease;
    overflow: hidden;

    display:flex;
    flex-direction: column;
  }

  .rk-menu__top{
    display:flex;
    align-items:center;
    justify-content: space-between;
    gap: 10px;

    padding: 14px 14px;
    border-bottom: 1px solid rgba(15,23,42,.10);
  }

  .rk-menu__brand{
    font-weight: 900;
    letter-spacing: .02em;
    color: rgba(11,18,32,.92);
  }

  .rk-menu__close{
    border: 0;
    background: rgba(15,23,42,.06);
    color: rgba(11,18,32,.9);
    width: 44px;
    height: 44px;
    border-radius: 14px;
    font-size: 18px;
    font-weight: 900;
  }

  .rk-menu__content{
    padding: 14px;
    display: grid;
    gap: 10px;
  }

  .rk-menu__item,
  .rk-menu__primary,
  .rk-menu__danger{
    display:flex;
    align-items:center;
    justify-content:center;

    min-height: 52px;
    border-radius: 16px;
    text-decoration: none;
    font-weight: 850;
    letter-spacing: .01em;
  }

  .rk-menu__item{
    background: rgba(15,23,42,.06);
    color: rgba(11,18,32,.92);
  }

  .rk-menu__primary{
    background: linear-gradient(180deg, #3a8bff, rgba(58,139,255,.86));
    color: #fff;
  }

  .rk-menu__form{ margin:0; }

  .rk-menu__danger{
    width:100%;
    border: 1px solid rgba(255,77,79,.35);
    background: rgba(255,77,79,.10);
    color: rgba(120,18,18,.95);
  }

  /* OPEN STATE */
  body.rk-menu-open .rk-menu{
    pointer-events: auto;
  }
  body.rk-menu-open .rk-menu__backdrop{
    opacity: 1;
  }
  body.rk-menu-open .rk-menu__panel{
    opacity: 1;
    transform: translateY(0);
  }

  /* prevent background scrolling */
  body.rk-menu-open{
    overflow: hidden;
    touch-action: none;
  }
}
/* Centered logo in mobile menu top bar */

.rk-menu__top{
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
}

.rk-menu__brand{
  display: flex;
  justify-content: center;
  align-items: center;
}

.rk-menu__logo{
  height: 36px;        /* tweak: 32–42px sweet spot */
  width: auto;
  display: block;
}
.rk-menu__top{
  position: relative;
  justify-content: center;
}

.rk-menu__close{
  position: absolute;
  right: 12px;
  top: 12px;
}

/* ===== Feature cards ===== */
.rk-feature-card {
  overflow: hidden;
}

.rk-card-img {
  width: 100%;
  height: 280px;
  object-fit: cover;
  border-bottom: 1px solid #eee;
}
