/* ===========================
   KINNARD'S LLC - HEADER CSS
   Bootstrap 5 Header + Offcanvas
   Place in: /css/site.css
   =========================== */

:root{
  --brand:#E68C0C;
  --ink:#0b1220;
  --ink2:#111a2e;

  --font-body: "Inter", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  --font-brand:"Sora", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
}

/* Base */
body{
  padding-top: 84px; /* fixed navbar offset */
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

img{ max-width: 100%; height: auto; }
::selection{ background: rgba(230,140,12,.22); }

/* If any Bootstrap toggler remains somewhere, kill its border/shadow */
.navbar .navbar-toggler{
  border: 0 !important;
  box-shadow: none !important;
}

/* ===== Navbar ===== */
.kn-navbar{
  background: rgba(255,255,255,.86);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(15,23,42,.08);
}

.kn-navbar .navbar-brand{
  font-family: var(--font-brand);
  letter-spacing: .02em;
}

.kn-navbar .navbar-brand img{
  height: 46px;
  width: auto;
  border-radius: 10px;
}

/* ===== Desktop nav links ===== */
.kn-nav .nav-link{
  font-family: var(--font-brand);
  color: rgba(15,23,42,.82);
  font-weight: 700;
  padding: .55rem .85rem;
  border-radius: 999px;
  position: relative;
  text-decoration: none;

  text-transform: uppercase;
  letter-spacing: .08em;
  font-size: .82rem;

  transition: transform .12s ease, background-color .12s ease, color .12s ease, box-shadow .12s ease;
}

.kn-nav .nav-link:hover{
  background: rgba(230,140,12,.12);
  color: var(--ink);
  transform: translateY(-1px);
}

.kn-nav .nav-link.is-active{
  background: rgba(230,140,12,.16);
  color: var(--ink);
  box-shadow: inset 0 0 0 1px rgba(230,140,12,.26);
}

.kn-nav .nav-link.is-active::after{
  content:"";
  position:absolute;
  left: 18px;
  right: 18px;
  bottom: 8px;
  height: 2px;
  border-radius: 99px;
  background: linear-gradient(90deg,
    rgba(230,140,12,0) 0%,
    rgba(230,140,12,.92) 50%,
    rgba(230,140,12,0) 100%
  );
  opacity: .75;
}

/* ===== CTA button ===== */
.kn-cta{
  background: linear-gradient(135deg, #ffb547 0%, var(--brand) 45%, #c56e02 100%);
  color: #111 !important;
  font-weight: 800;
  border: 0;
  border-radius: 999px;
  padding: .6rem .95rem;
  box-shadow: 0 10px 20px rgba(230,140,12,.22);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  transition: transform .12s ease, filter .12s ease, box-shadow .12s ease;
}

.kn-cta:hover{
  filter: brightness(1.02);
  transform: translateY(-1px);
  box-shadow: 0 14px 26px rgba(230,140,12,.26);
}

/* ===========================
   Premium Hamburger (NO border)
   NOTE: Your button must NOT use .navbar-toggler
   =========================== */
.kn-hamburger{
  width: 56px;
  height: 56px;
  padding: 0;
  border: 0;
  outline: none;
  background: transparent;
  border-radius: 18px;
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: transform .14s ease;
}

.kn-hamburger::before{
  content:"";
  position: absolute;
  inset: 0;
  border-radius: 18px;
  background: rgba(15,23,42,.04);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow:
    0 12px 28px rgba(2,6,23,.10),
    inset 0 1px 0 rgba(255,255,255,.75);
}

.kn-hamburger::after{
  content:"";
  position: absolute;
  inset: 1px;
  border-radius: 17px;
  background: radial-gradient(120% 120% at 20% 10%,
    rgba(230,140,12,.25) 0%,
    rgba(230,140,12,0) 55%
  );
  opacity: .9;
  pointer-events: none;
  mix-blend-mode: multiply;
}

.kn-hamburger:hover{ transform: translateY(-1px); }

.kn-hamburger:hover::before{
  box-shadow:
    0 16px 34px rgba(2,6,23,.12),
    inset 0 1px 0 rgba(255,255,255,.82);
}

.kn-hamburger:active{ transform: translateY(0); }

.kn-hamburger:focus-visible::before{
  box-shadow:
    0 0 0 .28rem rgba(230,140,12,.22),
    0 16px 34px rgba(2,6,23,.12),
    inset 0 1px 0 rgba(255,255,255,.82);
}

/* Hamburger lines */
.kn-ham-lines{
  width: 24px;
  height: 18px;
  position: relative;
  z-index: 2;
  display: inline-block;
}

.kn-ham-lines span{
  position: absolute;
  left: 0;
  right: 0;
  height: 2px;
  border-radius: 999px;
  background: rgba(15,23,42,.86);
  box-shadow: 0 1px 0 rgba(255,255,255,.55);
  transition: transform .18s ease, opacity .18s ease, top .18s ease;
}

.kn-ham-lines span:nth-child(1){ top: 0; }
.kn-ham-lines span:nth-child(2){ top: 8px; opacity: .95; }
.kn-ham-lines span:nth-child(3){ top: 16px; }

body.offcanvas-open .kn-ham-lines span:nth-child(1){ top: 8px; transform: rotate(45deg); }
body.offcanvas-open .kn-ham-lines span:nth-child(2){ opacity: 0; }
body.offcanvas-open .kn-ham-lines span:nth-child(3){ top: 8px; transform: rotate(-45deg); }

/* ===== Offcanvas ===== */
.kn-offcanvas{
  background:
    radial-gradient(1200px 500px at 20% 0%, rgba(230,140,12,.22) 0%, rgba(230,140,12,0) 60%),
    radial-gradient(900px 420px at 110% 20%, rgba(34,197,94,.10) 0%, rgba(34,197,94,0) 55%),
    linear-gradient(180deg, var(--ink2) 0%, #070b14 100%);
  color: rgba(255,255,255,.92);
  border-left: 1px solid rgba(255,255,255,.08);
}

.kn-offcanvas .offcanvas-title{
  font-weight: 900;
  letter-spacing: .3px;
  font-family: var(--font-brand);
}

.kn-offcanvas .btn-close{
  filter: invert(1);
  opacity: .9;
}

/* Mobile menu links */
.kn-mobile-link{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:.75rem;
  padding: .9rem 1rem;
  border-radius: 16px;
  text-decoration:none;
  color: rgba(255,255,255,.92);
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.08);
  transition: transform .12s ease, background-color .12s ease, border-color .12s ease;
}

.kn-mobile-link:hover{
  background: rgba(255,255,255,.085);
  border-color: rgba(230,140,12,.35);
  transform: translateY(-1px);
  color: #fff;
}

.kn-mobile-link.is-active{
  background: rgba(230,140,12,.14);
  border-color: rgba(230,140,12,.45);
}

.kn-mobile-link strong{
  font-family: var(--font-brand);
  text-transform: uppercase;
  letter-spacing: .07em;
  font-size: .92rem;
}

.kn-mobile-sub{
  color: rgba(255,255,255,.65);
  font-size: .95rem;
  font-family: var(--font-body);
}

@media (min-width: 1200px){
  .kn-nav{ gap: .25rem; }
}

/* Reduce motion */
@media (prefers-reduced-motion: reduce){
  *{
    transition: none !important;
    scroll-behavior: auto !important;
    animation: none !important;
  }
}
  /* Home-only layer (move into /css/site.css later if desired) */

  /* HERO with background image */
  .home-hero{
    position: relative;
    overflow: hidden;
    padding: 84px 0 56px;
    border-bottom: 1px solid rgba(15,23,42,.08);

    /* your hero image + light overlay gradients */
    background:
      radial-gradient(1100px 520px at 15% 0%, rgba(230,140,12,.18) 0%, rgba(230,140,12,0) 60%),
      radial-gradient(900px 520px at 110% 10%, rgba(34,197,94,.10) 0%, rgba(34,197,94,0) 58%),
      linear-gradient(180deg, rgba(2,6,23,.35) 0%, rgba(2,6,23,.10) 70%),
      url("/images/project5.jpg") center/cover no-repeat;
  }

  /* darken image for readability */
  .home-hero::before{
    content:"";
    position:absolute;
    inset:0;
    background:
      linear-gradient(90deg, rgba(255,255,255,.92) 0%, rgba(255,255,255,.78) 52%, rgba(255,255,255,.62) 100%),
      radial-gradient(900px 400px at 70% 20%, rgba(230,140,12,.10) 0%, rgba(230,140,12,0) 65%);
    opacity: 1;
    pointer-events:none;
  }

  /* subtle glow accents */
  .home-hero::after{
    content:"";
    position:absolute;
    inset:-2px;
    background:
      radial-gradient(520px 240px at 70% 18%, rgba(230,140,12,.14) 0%, rgba(230,140,12,0) 70%),
      radial-gradient(520px 240px at 30% 85%, rgba(34,197,94,.08) 0%, rgba(34,197,94,0) 70%);
    pointer-events:none;
    opacity:.9;
  }

  .home-hero .container{ position: relative; z-index: 2; }

  .home-kicker{
    display:inline-flex;
    align-items:center;
    gap:.55rem;
    padding:.45rem .75rem;
    border-radius:999px;
    background: rgba(255,255,255,.78);
    border: 1px solid rgba(15,23,42,.10);
    font-family: var(--font-brand);
    font-weight: 800;
    letter-spacing: .10em;
    text-transform: uppercase;
    font-size: .75rem;
    color: rgba(15,23,42,.72);
  }
  .home-kicker i{ color: rgba(230,140,12,.95); font-size: 1rem; }

  .home-h1{
    font-family: var(--font-brand);
    font-weight: 900;
    letter-spacing: -0.02em;
    line-height: 1.05;
    color: rgba(15,23,42,.96);
  }
  .home-lead{
    font-size: 1.08rem;
    color: rgba(15,23,42,.72);
    line-height: 1.7;
    max-width: 56ch;
    margin-left:auto;
    margin-right:auto;
  }

  .home-hero-card{
    background: rgba(255,255,255,.78);
    border: 1px solid rgba(15,23,42,.10);
    border-radius: 18px;
    box-shadow: 0 18px 44px rgba(2,6,23,.10);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
  }
  .home-hero-card .card-body{ padding: 18px; }

  .home-hero-stat{
    display:flex;
    align-items:flex-start;
    gap:.85rem;
    padding: 14px 14px;
    border-radius: 14px;
    background: rgba(2,6,23,.02);
    border: 1px solid rgba(15,23,42,.08);
    height: 100%;
  }
  .home-hero-stat i{
    font-size: 1.15rem;
    color: rgba(230,140,12,.95);
    margin-top: .1rem;
  }
  .home-hero-stat strong{
    font-family: var(--font-brand);
    letter-spacing: .04em;
  }
  .home-hero-stat span{
    display:block;
    color: rgba(15,23,42,.68);
    font-size: .95rem;
    line-height: 1.45;
    margin-top: .15rem;
  }

  .home-btn{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    gap:.55rem;
    border-radius: 999px;
    padding: .7rem 1.05rem;
    font-weight: 900;
    text-decoration:none;
    border: 1px solid transparent;
    transition: transform .12s ease, box-shadow .12s ease, filter .12s ease, background-color .12s ease;
    white-space: nowrap;
  }
  .home-btn-primary{
    background: linear-gradient(135deg, #ffb547 0%, var(--brand) 45%, #c56e02 100%);
    color: #111 !important;
    box-shadow: 0 14px 34px rgba(230,140,12,.22);
  }
  .home-btn-primary:hover{ transform: translateY(-1px); filter: brightness(1.01); box-shadow: 0 18px 40px rgba(230,140,12,.26); }
  .home-btn-ghost{
    background: rgba(255,255,255,.75);
    color: rgba(15,23,42,.90);
    border-color: rgba(15,23,42,.12);
  }
  .home-btn-ghost:hover{ transform: translateY(-1px); box-shadow: 0 14px 30px rgba(2,6,23,.10); }

  /* Section */
  .home-section{ padding: 64px 0; }
  @media (max-width: 991.98px){ .home-section{ padding: 48px 0; } }

  .home-section-title{
    font-family: var(--font-brand);
    font-weight: 900;
    letter-spacing: -0.01em;
    color: rgba(15,23,42,.96);
  }
  .home-section-sub{
    color: rgba(15,23,42,.70);
    max-width: 70ch;
    margin: 0 auto;
    line-height: 1.7;
  }

  /* Feature cards */
  .home-card{
    height: 100%;
    border-radius: 18px;
    border: 1px solid rgba(15,23,42,.10);
    box-shadow: 0 18px 44px rgba(2,6,23,.06);
    overflow:hidden;
    background:#fff;
  }
  .home-card .card-body{ padding: 22px; }
  .home-card .icon{
    width: 44px; height: 44px;
    border-radius: 14px;
    display:inline-flex;
    align-items:center;
    justify-content:center;
    background: rgba(230,140,12,.10);
    border: 1px solid rgba(230,140,12,.18);
    color: rgba(230,140,12,.95);
    margin-bottom: 12px;
    font-size: 1.2rem;
  }
  .home-card h3{
    font-family: var(--font-brand);
    font-weight: 900;
    letter-spacing: -0.01em;
    margin-bottom: .35rem;
  }
  .home-card p{ color: rgba(15,23,42,.72); line-height: 1.7; margin-bottom: 0; }

  /* Benefits grid */
  .benefit-card{
    border-radius: 18px;
    border: 1px solid rgba(15,23,42,.10);
    overflow: hidden;
    background:#fff;
    box-shadow: 0 18px 44px rgba(2,6,23,.06);
    height: 100%;
  }
  .benefit-card img{
    width:100%;
    height: 200px;
    object-fit: cover;
    display:block;
  }
  .benefit-card .inner{ padding: 18px 18px 20px; }
  .benefit-card h3{
    font-family: var(--font-brand);
    font-weight: 900;
    letter-spacing: -0.01em;
    margin: 0 0 .35rem;
  }
  .benefit-card p{ color: rgba(15,23,42,.72); line-height: 1.7; margin: 0; }

  /* Testimonials */
  .quote-card{
    height: 100%;
    border-radius: 18px;
    border: 1px solid rgba(15,23,42,.10);
    box-shadow: 0 18px 44px rgba(2,6,23,.06);
    background: #fff;
  }
  .quote-card .card-body{ padding: 22px; }
  .quote{
    color: rgba(15,23,42,.78);
    line-height: 1.75;
    margin: 0 0 14px;
  }
  .quote-by{
    display:flex;
    align-items:center;
    gap:.6rem;
    color: rgba(15,23,42,.86);
    font-weight: 900;
    font-family: var(--font-brand);
  }
  .quote-by i{
    color: rgba(230,140,12,.95);
    font-size: 1.05rem;
  }

  /* Light section background */
  .home-muted{
    background: rgba(2,6,23,.02);
    border-top: 1px solid rgba(15,23,42,.08);
    border-bottom: 1px solid rgba(15,23,42,.08);
  }

  /* Footer theme matches header: dark glass + warm brand glow */
  .kn-footer{
    position: relative;
    overflow: hidden;
    background:
      radial-gradient(900px 420px at 15% 0%, rgba(230,140,12,.18) 0%, rgba(230,140,12,0) 60%),
      radial-gradient(900px 420px at 110% 20%, rgba(34,197,94,.10) 0%, rgba(34,197,94,0) 55%),
      linear-gradient(180deg, #0b1220 0%, #070b14 100%);
    color: rgba(255,255,255,.86);
    border-top: 1px solid rgba(255,255,255,.08);
  }
  .kn-footer a{ color: rgba(255,255,255,.88); text-decoration: none; }
  .kn-footer a:hover{ color:#fff; text-decoration: underline; text-underline-offset: 3px; }

  .kn-footer-top{
    padding: 56px 0 34px;
  }

  .kn-foot-title{
    font-family: var(--font-brand);
    font-weight: 900;
    letter-spacing: .08em;
    text-transform: uppercase;
    font-size: .85rem;
    margin: 0 0 12px;
    color: rgba(255,255,255,.92);
  }

  .kn-foot-card{
    height: 100%;
    border-radius: 18px;
    border: 1px solid rgba(255,255,255,.10);
    background: rgba(255,255,255,.04);
    box-shadow: 0 20px 44px rgba(0,0,0,.28);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 18px;
  }

  .kn-foot-item{
    display:flex;
    align-items:flex-start;
    gap:.75rem;
    margin: 0 0 12px;
    color: rgba(255,255,255,.82);
    line-height: 1.55;
  }
  .kn-foot-item i{
    font-size: 1.05rem;
    color: rgba(230,140,12,.95);
    margin-top: .15rem;
    flex: 0 0 auto;
  }

  .kn-foot-muted{
    color: rgba(255,255,255,.70);
    margin: 0;
    line-height: 1.7;
  }

  .kn-social{
  display:flex;
  gap:.6rem;
  justify-content:flex-start; /* left align */
  align-items:center;
  margin-top: 10px;
}

  .kn-social a{
    width: 42px;
    height: 42px;
    border-radius: 14px;
    display:inline-flex;
    align-items:center;
    justify-content:center;
    background: rgba(255,255,255,.06);
    border: 1px solid rgba(255,255,255,.10);
    transition: transform .12s ease, background-color .12s ease, border-color .12s ease;
  }
  .kn-social a:hover{
    transform: translateY(-1px);
    background: rgba(255,255,255,.09);
    border-color: rgba(230,140,12,.35);
    text-decoration:none;
  }
  .kn-social i{
    font-size: 1.25rem;
    color: rgba(255,255,255,.92);
  }

  .kn-foot-cta{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    gap:.55rem;
    width: 100%;
    padding: .75rem 1rem;
    border-radius: 999px;
    font-weight: 900;
    text-decoration:none !important;
    color: #111 !important;
    background: linear-gradient(135deg, #ffb547 0%, var(--brand) 45%, #c56e02 100%);
    box-shadow: 0 16px 34px rgba(230,140,12,.20);
    transition: transform .12s ease, box-shadow .12s ease, filter .12s ease;
    margin-top: 12px;
  }
  .kn-foot-cta:hover{
    transform: translateY(-1px);
    filter: brightness(1.01);
    box-shadow: 0 20px 40px rgba(230,140,12,.24);
  }

  .kn-foot-badge{
    display:inline-flex;
    align-items:center;
    gap:.5rem;
    padding: .45rem .7rem;
    border-radius: 999px;
    background: rgba(255,255,255,.06);
    border: 1px solid rgba(255,255,255,.10);
    color: rgba(255,255,255,.84);
    font-weight: 800;
    font-family: var(--font-brand);
    letter-spacing: .05em;
    text-transform: uppercase;
    font-size: .75rem;
  }
  .kn-foot-badge i{ color: rgba(34,197,94,.95); }

  .kn-sponsor-img{
    max-width: 150px;
    height: auto;
    border-radius: 14px;
    background: rgba(255,255,255,.06);
    border: 1px solid rgba(255,255,255,.10);
    padding: 10px;
  }

  .kn-footer-bottom{
    padding: 18px 0;
    border-top: 1px solid rgba(255,255,255,.08);
    color: rgba(255,255,255,.70);
    font-size: .92rem;
  }
  .kn-footer-bottom strong{ color: rgba(255,255,255,.88); }

  @media (max-width: 991.98px){
    .kn-footer-top{ padding: 44px 0 28px; }
    .kn-foot-card{ padding: 16px; }
  }

/* ===========================
   Page hero (About/Services/etc.)
   Reuses home typography + buttons
   =========================== */
.page-hero{
  position: relative;
  overflow: hidden;
  padding: 84px 0 56px;
  border-bottom: 1px solid rgba(15,23,42,.08);
}

.page-hero::before{
  content:"";
  position:absolute;
  inset:0;
  background:
    linear-gradient(90deg, rgba(255,255,255,.92) 0%, rgba(255,255,255,.78) 52%, rgba(255,255,255,.62) 100%),
    radial-gradient(900px 400px at 70% 20%, rgba(230,140,12,.10) 0%, rgba(230,140,12,0) 65%);
  pointer-events:none;
}

.page-hero::after{
  content:"";
  position:absolute;
  inset:-2px;
  background:
    radial-gradient(520px 240px at 70% 18%, rgba(230,140,12,.14) 0%, rgba(230,140,12,0) 70%),
    radial-gradient(520px 240px at 30% 85%, rgba(34,197,94,.08) 0%, rgba(34,197,94,0) 70%);
  pointer-events:none;
  opacity:.9;
}

.page-hero .container{ position: relative; z-index: 2; }

/* About-specific background image layer */
.page-hero-about{
  background:
    radial-gradient(1100px 520px at 15% 0%, rgba(230,140,12,.18) 0%, rgba(230,140,12,0) 60%),
    radial-gradient(900px 520px at 110% 10%, rgba(34,197,94,.10) 0%, rgba(34,197,94,0) 58%),
    linear-gradient(180deg, rgba(2,6,23,.35) 0%, rgba(2,6,23,.10) 70%),
    url("https://www.kinnardsllc.com/images/project5.jpg") center/cover no-repeat;
}
