/* ======================================================================
   Keith Ceramic — Global Styles
   ====================================================================== */

/* ---------- Theme tokens ---------- */
:root{
  --kc-navy:#052b58;
  --kc-navy-2:#0b3263;
  --kc-accent:#ff6a00;
  --kc-green:#19c37d;
  --kc-light:#f5f7fb;
  --kc-dark:#0e2037;

  /* sliders / cards */
  --radius-md: 12px;
  --radius-lg: 16px;

  --shadow-sm: 0 8px 20px rgba(8,18,44,.12);
  --shadow-md: 0 12px 28px rgba(8,18,44,.12);
  --shadow-lg: 0 16px 36px rgba(8,18,44,.14);

  --shadow-hover: 0 18px 32px rgba(8,18,44,.18);
}

/* ---------- Resets ---------- */
*{box-sizing:border-box}
html,body{
  margin:0; padding:0;
  font-family:Inter,system-ui,Segoe UI,Roboto,Arial,sans-serif;
  color:#0f172a;
  scroll-behavior:smooth;
}
img{max-width:100%; display:block}

/* ---------- Layout helpers ---------- */
.kc-container{width:min(1200px,92%); margin-inline:auto}
.center{text-align:center}
.mt{margin-top:.75rem}
.lead{opacity:.92; line-height:1.6}

/* ---------- Buttons ---------- */
.kc-button{
  display:inline-block;
  background:var(--kc-accent);
  color:#fff; text-decoration:none;
  padding:.8rem 1.1rem;
  border-radius:12px;
  font-weight:700;
  box-shadow:0 8px 20px rgba(19,78,167,.25);
  transition: filter .15s ease;
}
.kc-button:hover{ filter:brightness(.96) }

/* ======================================================================
   HERO (video)
   ====================================================================== */
.hero{
  --hero-fallback: url('assets/index.mp4'); /* swapped by inline variable */
  position:relative;
  min-height:78vh;
  display:grid; place-items:center;
  text-align:center; color:#fff;
  background: var(--hero-fallback) center/cover no-repeat;
}
.hero__video{
  position:absolute; inset:0; width:100%; height:100%;
  object-fit:cover; z-index:0; background:#0b2342;
}
.hero::before{
  content:""; position:absolute; inset:0;
  background:linear-gradient(180deg, rgba(5,43,88,.75), rgba(5,43,88,.55));
  z-index:1;
}
.hero__content{ position:relative; z-index:2 }
.hero h1{
  font-size:clamp(2rem,5vw,3.6rem);
  margin:0 0 .8rem;
  font-weight:800; letter-spacing:.5px;
}
.hero p{
  font-size:clamp(1rem,2.2vw,1.25rem);
  opacity:.95; margin:0 0 1.5rem;
}
.hero__noscript{ position:absolute; inset:0; background-size:cover; background-position:center; z-index:0 }

/* ======================================================================
   "Since 1992" full-bleed background + centered card
   ====================================================================== */
.hero1992{
  position: relative;
  min-height: 66vh;
  display: grid;

  /* center horizontally, align toward the top (like reference) */
  justify-items: center;
  align-content: start;

  padding: clamp(28px, 6vh, 80px) 16px 72px;

  background-image: var(--hero1992-bg, url('../assets/group.jpg'));
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  isolation: isolate;
}
.hero1992::before{
  content:"";
  position:absolute; inset:0;
  background:
    radial-gradient(40% 30% at 50% 35%, rgba(255,255,255,.18), transparent 60%),
    linear-gradient(180deg, rgba(2,18,44,.22), rgba(2,18,44,.12));
  z-index:0;
}
.hero1992::after{
  content:"";
  position:absolute; left:0; right:0; bottom:-40px; height:140px;
  background:radial-gradient(60% 60% at 50% 0%, rgba(8,18,44,.25), transparent 70%);
  filter:blur(6px);
  z-index:0;
}
.hero1992__inner{
  position: relative; z-index: 1;
  width: min(640px, 90%);
  background: #fff; color: #0e223b; text-align: center;
  border-radius: 18px;
  padding: clamp(18px, 2.8vw, 28px) clamp(22px, 4.2vw, 40px);
  box-shadow: 0 24px 60px rgba(8,18,44,.26), 0 2px 0 rgba(255,255,255,.6) inset;
  border: 1px solid rgba(8,18,44,.05);
}
.hero1992__inner h1{
  margin: 0 0 10px;
  font-weight: 900; letter-spacing: .4px;
  font-size: clamp(24px, 3.8vw, 42px);
  color: #0c1e35; line-height: 1.12;
}
.hero1992__logo{
  display:block; margin: 8px auto 0;
  width: clamp(80px, 10vw, 120px);
  height:auto;
  filter: drop-shadow(0 1px 1px rgba(0,0,0,.25));
}
@media (max-width:640px){
  .hero1992{ min-height: 52vh; padding-top: clamp(24px, 9vh, 60px); }
  .hero1992__inner{ width: min(560px, 92%); }
}

/* ======================================================================
   Sections / Titles
   ====================================================================== */
.section{ padding:48px 0 }
.section.alt{ background:#f7f9fe }

.bar-title{
  margin:0 0 18px;
  font-size:clamp(1.5rem,3vw,2rem);
  font-weight:800;
}
.bar-title span{
  color:var(--kc-accent);
  padding-left:16px;
  position:relative;
}
.bar-title span::before{
  content:"";
  position:absolute; left:0; top:6px; bottom:6px;
  width:4px; background:#134ea7; border-radius:2px;
}

/* ======================================================================
   WHO WE ARE (scoped to #who)
   ====================================================================== */
#who .who-wrap{
  display:grid;
  grid-template-columns: 1.2fr .9fr;
  gap: 28px;
  align-items: start;
}
#who .bar-title{
  margin: 0 0 14px;
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  font-weight: 800;
}
#who .bar-title span{ color: var(--kc-accent); padding-left:16px; position:relative }
#who .bar-title span::before{
  content:""; position:absolute; left:0; top:6px; bottom:6px;
  width:4px; background:#134ea7; border-radius:2px;
}
#who .lead{ margin:0 0 12px; line-height:1.7; color:#374151 }
#who h3{ margin:16px 0 8px; color:#0f1f3a }

#who .who-media .img-card{
  border-radius: var(--radius-lg);
  background:#fff;
  border:1px solid #e7edf6;
  box-shadow: var(--shadow-lg);
  overflow:hidden;
}
#who .who-media .img-card img{
  width:100%; height:auto;
  display:block;
  object-fit:cover;
  aspect-ratio:16 / 9;
}
/* Mobile: image below copy */
@media (max-width:780px){
  #who .who-wrap{ grid-template-columns: 1fr; gap: 16px; }
  #who .who-copy{ order:1 }
  #who .who-media{ order:2 }
  #who .who-media .img-card{ max-width:520px; margin:4px auto 0; }
}

/* ======================================================================
   16:9 video embed
   ====================================================================== */
.video-16x9{
  width:100%; aspect-ratio:16/9; background:#000;
  border-radius:12px; overflow:hidden;
  box-shadow: var(--shadow-md);
}
.video-16x9 iframe{ width:100%; height:100%; border:0; display:block }

/* ======================================================================
   Generic Slider (Awards / Products)
   ====================================================================== */
.kc-slider{ position:relative; margin-top:8px }
.kc-slider-track{
  display:grid;
  grid-auto-flow:column;
  grid-auto-columns:100%;
  gap:26px;
  overflow-x:auto;
  scroll-snap-type:x mandatory;
  padding:6px 46px;
}
.kc-slider-track > *{ scroll-snap-align:center }

.arrow-btn{
  position:absolute; top:50%; transform:translateY(-50%);
  z-index:2; width:42px; height:42px;
  border-radius:999px; border:0;
  background:#eceff6; color:#0b2647;
  display:grid; place-items:center;
  cursor:pointer;
  box-shadow:0 6px 18px rgba(8,18,44,.15);
  transition: filter .15s ease;
}
.arrow-btn:hover{ filter:brightness(.95) }
.arrow-btn.prev{ left:6px }
.arrow-btn.next{ right:6px }

/* ======================================================================
   Awards slider — tighter & *smaller* consistent card size
   ====================================================================== */
.kc-slider.awards{ max-width:880px; margin:12px auto 0 }
.kc-slider.awards .kc-slider-track{
  /* one slide in view, but not huge */
  grid-auto-columns: min(560px, 90%);
  padding: 8px 56px 12px;
  gap:18px;
}
.kc-slider.awards .award-card{
  width:100%;
  max-width:760px;
  margin-inline:auto;
  padding:10px;
  border-radius:12px;
  background:#fff;
  border:1px solid #e7edf6;
  box-shadow:0 12px 24px rgba(8,18,44,.10);
}
.kc-slider.awards .award-card img{
  display:block;
  width:100%;
  height:auto;
  /* 👇 keep awards visually compact */
  max-height: clamp(220px, 38vw, 420px);
  object-fit: contain;
  border-radius:8px;
}
.kc-slider.awards .arrow-btn{
  width:38px; height:38px;
  background:#eceff6;
  box-shadow:0 8px 20px rgba(8,18,44,.12);
}
.kc-slider.awards .arrow-btn.prev{ left:14px }
.kc-slider.awards .arrow-btn.next{ right:14px }

.awards-desc{ max-width:900px; margin:18px auto 0 }

/* Mobile sizing for awards */
@media (max-width:640px){
  .kc-slider.awards{ max-width:96% }
  .kc-slider.awards .kc-slider-track{ padding:6px 48px 10px }
  .kc-slider.awards .award-card img{
    max-height: clamp(200px, 55vw, 320px);
  }
  .kc-slider.awards .arrow-btn{ width:34px; height:34px }
}

/* ======================================================================
   Products slider (used on home)
   ====================================================================== */
.kc-slider.products .kc-slider-track{
  grid-auto-columns:minmax(260px,1fr);
  padding:6px 46px 16px;
}
.product-card{
  position:relative;
  display:block;
  border-radius:14px;
  overflow:hidden;
  background:#fff;
  box-shadow:0 14px 24px rgba(8,18,44,.10);
  border:1px solid #e7edf6;
  text-decoration:none;
  color:#fff;
  aspect-ratio:4 / 3;  /* uniform picture box */
  min-height:0;
}
.product-card img{
  width:100%; height:100%;
  object-fit:contain; object-position:center;
  display:block; padding:12px;
  transition:transform .45s ease, filter .3s ease;
  will-change:transform;
}
.product-card .caption{
  position:absolute; left:0; right:0; bottom:0;
  padding:18px;
  background:linear-gradient(to top, rgba(0,0,0,.65), rgba(0,0,0,0));
  font-weight:800; letter-spacing:.4px; line-height:1.25;
}
.product-card:hover img,
.product-card:focus-visible img{ transform:scale(1.08) }
.product-card:hover,
.product-card:focus-visible{ box-shadow: var(--shadow-hover) }

@media (prefers-reduced-motion:reduce){
  .product-card img{ transition:none }
}
@media (max-width:680px){
  .kc-slider-track{ padding:6px 40px }
  .arrow-btn{ width:38px; height:38px }
}

/* ======================================================================
   Our Pride
   ====================================================================== */
.pride-grid{
  display:grid;
  grid-template-columns:repeat(1, minmax(260px, 520px));
  gap:26px;
}
@media (min-width:880px){
  .pride-grid{ grid-template-columns:repeat(2, minmax(280px, 520px)) }
}
@media (min-width:1180px){
  .pride-grid{ grid-template-columns:repeat(3, minmax(300px, 520px)) }
}
.leader-card{
  position:relative; border-radius:14px; overflow:hidden;
  background:#e9eef6; box-shadow:0 14px 24px rgba(8,18,44,.12);
  border:1px solid #e7edf6; margin:0;
}
.leader-card img{
  width:100%; height:auto; object-fit:cover;
  transition:transform .45s ease; will-change:transform;
}
.leader-card:hover img,
.leader-card:focus-visible img{ transform:scale(1.06) }
.leader-card figcaption{
  position:absolute; inset:auto 0 0 0;
  padding:18px 20px; color:#fff;
  background:linear-gradient(to top, rgba(0,0,0,.70) 0%, rgba(0,0,0,0) 70%);
}
.leader-name{
  font-weight:900; letter-spacing:.5px;
  font-size:clamp(1rem,2.8vw,1.25rem);
}
.leader-role{ opacity:.95; font-weight:600; margin-top:6px; font-size:.98rem }

/* ======================================================================
   CTA band
   ====================================================================== */
.cta-band{
  padding:38px 0; background:#0e2037; text-align:center;
}
.cta-band .kc-button{
  background:var(--kc-green);
  box-shadow:0 8px 20px rgba(25,195,125,.25);
}

/* ======================================================================
   Reveal-on-scroll (tiny interaction polish)
   ====================================================================== */
.reveal{
  opacity:0; transform:translateY(18px);
  transition:opacity .6s ease, transform .6s ease;
}
.revealed{ opacity:1; transform:none }
