/* ==========================================================================
 * Kimuli Golden Kitchen - Main stylesheet
   Palette: navy #2d358d + golden gradient (option 1, source gradient-notes.md)
   ========================================================================== */

:root {
  --navy: #2d358d;
  --navy-deep: #222868;
  --navy-70: rgba(45, 53, 141, 0.85);
  --ink: #23233a;
  --muted: #666a85;
  --bone: #f6f7fb;
  --white: #ffffff;

  --gold-1: #F6D46C;
  --gold-2: #EAAF2C;
  --gold-3: #C99130;
  --gold-4: #8B5B2C;
  --bronze: #6B451F;
  --gold-ink: #000000;

  --btn-grad: linear-gradient(90deg, #A6722F 0%, #EAAF2C 18%, #8B5B2C 34%, #D4AA53 50%, #BE8933 70%, #F6D46C 84%, #95632E 100%);
  --btn-grad-hover: linear-gradient(90deg, #BE903A 0%, #F6D46C 18%, #A6722F 34%, #E8C46A 50%, #D4AA53 70%, #FCE38A 84%, #B8803A 100%);
  --btn-grad-glow: 0 6px 22px rgba(238, 175, 44, 0.55), 0 2px 8px rgba(139, 91, 44, 0.35);

  --radius: 14px;
  --radius-sm: 9px;
  --shadow: 0 14px 34px rgba(35, 35, 58, 0.10);
  --shadow-soft: 0 6px 18px rgba(35, 35, 58, 0.07);
  --font-head: 'Poppins', 'Segoe UI', system-ui, sans-serif;
  --font-body: 'Inter', 'Segoe UI', system-ui, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

a { color: var(--navy); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.2; }

.hidden { display: none !important; }

.gold-text {
  background: var(--btn-grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

/* ============================ BUTTONS ============================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 12px 26px;
  border-radius: 50px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease, filter 0.25s ease;
  text-decoration: none;
}

.btn-gold {
  background: var(--btn-grad);
  border-color: var(--bronze);
  color: var(--gold-ink);
}
.btn-gold:hover, .btn-gold:focus {
  background: var(--btn-grad-hover);
  box-shadow: var(--btn-grad-glow);
  color: var(--gold-ink);
  text-decoration: none;
  transform: translateY(-2px) scale(1.02);
  filter: brightness(1.05);
}

.btn-ghost {
  background: transparent;
  color: var(--navy);
  border: 1.5px solid var(--navy);
}
.btn-ghost:hover, .btn-ghost:focus {
  background: var(--navy);
  color: var(--white);
  text-decoration: none;
}

.btn-whatsapp {
  background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
  border-color: #128C7E;
  color: #fff;
}
.btn-whatsapp:hover, .btn-whatsapp:focus {
  background: linear-gradient(135deg, #2ee06f 0%, #1aa88f 100%);
  box-shadow: 0 8px 22px rgba(37, 211, 102, 0.45);
  color: #fff;
  text-decoration: none;
  transform: translateY(-2px) scale(1.02);
}
.btn-whatsapp svg { width: 20px; height: 20px; }

.btn-block { width: 100%; }
.btn-sm { padding: 8px 16px; font-size: 0.85rem; }

/* ============================ HEADER / NAV ============================ */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: var(--navy);
  color: var(--white);
  box-shadow: 0 4px 18px rgba(45, 53, 141, 0.35);
  transition: background 0.3s ease, box-shadow 0.3s ease, backdrop-filter 0.3s ease;
}

/* Scrolled state - fades to transparent with blur */
.site-header.scrolled {
  background: rgba(45, 53, 141, 0.15);
  box-shadow: none;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.site-header.scrolled .nav-links > a,
.site-header.scrolled .nav-dropdown-toggle {
  color: var(--navy);
}
.site-header.scrolled .nav-links > a:hover,
.site-header.scrolled .nav-dropdown-toggle:hover {
  background: rgba(45, 53, 141, 0.1);
  color: var(--gold-1);
}
.site-header.scrolled .nav-links > a:last-child {
  background: var(--btn-grad);
  border-color: var(--bronze);
  color: var(--gold-ink);
}
.site-header.scrolled .brand-logo-box {
  box-shadow: 0 6px 20px rgba(35, 35, 58, 0.12);
}

/* Logo floating box at far left of nav */
.brand-logo-box {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 72px;
  height: 72px;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: 0 6px 20px rgba(35, 35, 58, 0.18);
  margin-right: 16px;
  flex-shrink: 0;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  z-index: 101;
}
.brand-logo-box:hover { transform: translateY(-2px) scale(1.03); box-shadow: 0 10px 28px rgba(35, 35, 58, 0.25); }
.brand-logo-img { object-fit: contain; filter: drop-shadow(0 2px 8px rgba(45, 53, 141, 0.15)); }

.nav-inner {
  max-width: 1240px;
  margin: 0 auto;
  padding: 12px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.nav-links { display: flex; align-items: center; gap: 6px; }
.nav-links > a,
.nav-dropdown-toggle {
  color: var(--white);
  font-weight: 500;
  font-size: 0.94rem;
  padding: 9px 14px;
  border-radius: 8px;
  transition: background 0.2s ease, color 0.2s ease;
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--font-body);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.nav-links > a:hover,
.nav-dropdown-toggle:hover { background: rgba(255, 255, 255, 0.12); color: var(--gold-1); text-decoration: none; }

.nav-links > a:last-child {
  margin-left: 10px;
  background: var(--btn-grad);
  border: 1px solid var(--bronze);
  color: var(--gold-ink);
  font-family: var(--font-head);
  font-weight: 600;
}
.nav-links > a:last-child:hover {
  background: var(--btn-grad-hover);
  box-shadow: var(--btn-grad-glow);
  color: var(--gold-ink);
}

/* Nav Dropdown */
.nav-dropdown { position: relative; }
.nav-dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 220px;
  background: var(--white);
  border: 1px solid #e6e8f2;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow);
  padding: 8px 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: all 0.25s ease;
  z-index: 200;
}
.nav-dropdown.open .nav-dropdown-menu,
.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown:focus-within .nav-dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.nav-dropdown-menu a {
  display: block;
  padding: 10px 16px;
  color: var(--ink);
  font-size: 0.9rem;
  transition: background 0.15s ease, color 0.15s ease;
}
.nav-dropdown-menu a:hover { background: var(--bone); color: var(--navy); text-decoration: none; }
.nav-dropdown-menu hr.dropdown-divider { border: none; border-top: 1px solid #e6e8f2; margin: 6px 0; }
.nav-dropdown-toggle svg { transition: transform 0.2s ease; }
.nav-dropdown.open .nav-dropdown-toggle svg,
.nav-dropdown:hover .nav-dropdown-toggle svg { transform: rotate(180deg); }

.nav-toggle { display: none; background: none; border: 0; cursor: pointer; }
.nav-toggle span { display: block; width: 26px; height: 3px; background: var(--white); margin: 5px 0; border-radius: 3px; transition: 0.25s ease; }

@media (max-width: 840px) {
  .nav-toggle { display: block; }
  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--navy);
    flex-direction: column;
    align-items: stretch;
    padding: 10px 20px 20px;
    gap: 2px;
    box-shadow: 0 18px 30px rgba(45, 53, 141, 0.3);
    transform: translateY(-8px);
    opacity: 0;
    pointer-events: none;
    transition: 0.25s ease;
  }
  .nav-links.open { transform: translateY(0); opacity: 1; pointer-events: auto; }
  .nav-links > a,
  .nav-dropdown-toggle { padding: 13px 12px; justify-content: space-between; }
  .nav-links > a:last-child { margin: 10px 0 0; justify-content: center; }
  .nav-dropdown-menu {
    position: static;
    opacity: 0;
    visibility: hidden;
    transform: none;
    box-shadow: none;
    border: none;
    background: rgba(255,255,255,0.05);
    padding: 0;
    margin-top: 0;
    max-height: 0;
    overflow: hidden;
    transition: all 0.25s ease;
  }
  .nav-dropdown.open .nav-dropdown-menu,
  .nav-dropdown:focus-within .nav-dropdown-menu {
    opacity: 1;
    visibility: visible;
    padding: 8px 0 0;
    margin-top: 4px;
    max-height: 500px;
  }
  .nav-dropdown-menu a { color: rgba(255,255,255,0.9); padding: 10px 12px; }
  .nav-dropdown-menu a:hover { background: rgba(255,255,255,0.1); color: var(--gold-1); }
  .nav-dropdown-menu hr.dropdown-divider { border-color: rgba(255,255,255,0.1); }
}

/* ============================ HERO ============================ */
.hero {
  position: relative;
  height: min(88vh, 760px);
  min-height: 540px;
  margin-top: 76px; /* nav height only */
  overflow: hidden;
  background: var(--navy-deep);
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 1s ease;
  z-index: 0;
}
.hero-slide.active { opacity: 1; pointer-events: auto; z-index: 1; }

.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.05);
  animation: kenburns 9s ease-out forwards;
}
.hero-slide.active img { animation: kenburns 9s ease-out forwards; }
@keyframes kenburns {
  from { transform: scale(1.05) translateY(0); }
  to { transform: scale(1.12) translateY(-8px); }
}

.hero-slide::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(34, 40, 104, 0.55) 0%, rgba(34, 40, 104, 0.25) 45%, rgba(45, 53, 141, 0.9) 100%),
    linear-gradient(90deg, rgba(45, 53, 141, 0.5) 0%, rgba(45, 53, 141, 0.05) 60%);
}

.hero-copy {
  position: absolute;
  z-index: 2;
  bottom: 0;
  left: 0;
  right: 0;
  max-width: 1240px;
  margin: 0 auto;
  padding: 30px 24px 90px;
  color: var(--white);
}
.hero-copy h1 {
  font-size: clamp(1.9rem, 4.6vw, 3.4rem);
  font-weight: 700;
  max-width: 15ch;
  text-shadow: 0 3px 14px rgba(0, 0, 0, 0.35);
}
.hero-copy p { max-width: 46ch; margin: 12px 0 22px; font-size: clamp(0.95rem, 2vw, 1.12rem); color: #eef1fb; }
.hero-copy .btn { box-shadow: var(--btn-grad-glow); }

.hero-arrows button {
  position: absolute;
  z-index: 3;
  top: 50%;
  transform: translateY(-50%);
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.4);
  background: rgba(255, 255, 255, 0.12);
  color: var(--white);
  font-size: 1.3rem;
  cursor: pointer;
  transition: background 0.2s ease, box-shadow 0.2s ease;
}
.hero-arrows button:hover { background: var(--btn-grad); color: var(--gold-ink); box-shadow: var(--btn-grad-glow); }
.hero-arrows .prev { left: 18px; }
.hero-arrows .next { right: 18px; }

.hero-dots {
  position: absolute;
  z-index: 3;
  bottom: 34px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
}
.hero-dots button {
  width: 34px;
  height: 5px;
  border: 0;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.4);
  cursor: pointer;
  transition: background 0.25s ease, transform 0.25s ease;
}
.hero-dots button.active { background: var(--gold-2); transform: scaleX(1.15); }

/* ============================ SECTIONS ============================ */
.section { max-width: 1240px; margin: 0 auto; padding: 80px 24px; }
.section-alt { background: var(--bone); border-radius: 34px; margin-top: 20px; margin-bottom: 20px; }

.section-head { text-align: center; margin-bottom: 44px; }
.section-head h2 { font-size: clamp(1.6rem, 3.4vw, 2.4rem); color: var(--navy); }
.section-head p { color: var(--muted); max-width: 58ch; margin: 10px auto 0; }

/* Reveal on scroll */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.in { opacity: 1; transform: none; }

/* Reveal Pull Up - for About section (slow, dramatic pull up) */
.reveal-pull {
  opacity: 0;
  transform: translateY(60px) scale(0.98);
  transition: opacity 1s cubic-bezier(0.16, 1, 0.3, 1), transform 1s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal-pull.in { opacity: 1; transform: translateY(0) scale(1); }

/* ============================ CATEGORY GRID ============================ */
.category-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}

.cat-card {
  position: relative;
  background: var(--white);
  border: 1px solid #e6e8f2;
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  padding: 26px 26px 30px;
  text-align: center;
  cursor: pointer;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}
.cat-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 5px;
  background: var(--btn-grad);
  opacity: 0.9;
}
.cat-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow);
  border-color: transparent;
}

.cat-icon {
  width: 128px;
  height: 128px;
  object-fit: contain;
  background: var(--white);
  padding: 8px;
  border-radius: 50%;
  box-shadow: 0 10px 24px rgba(35, 35, 58, 0.15), 0 0 0 4px var(--white);
  margin: 0 auto 18px;
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}
.cat-card:hover .cat-icon { 
  transform: translateY(-6px) scale(1.06); 
  box-shadow: 0 16px 32px rgba(35, 35, 58, 0.2), 0 0 0 4px var(--white);
}

.cat-card h3 {
  color: var(--navy);
  font-size: 1.25rem;
  letter-spacing: 0.02em;
  margin: 0 0 8px;
}
.cat-card p { color: var(--muted); font-size: 0.9rem; min-height: 2.8em; }

.cat-open {
  margin-top: 18px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--gold-ink);
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.85rem;
  padding: 9px 20px;
  border-radius: 50px;
  background: var(--btn-grad);
  border: 1px solid var(--bronze);
  transition: box-shadow 0.25s ease, transform 0.25s ease, background 0.25s ease;
}
.cat-card:hover .cat-open { background: var(--btn-grad-hover); box-shadow: var(--btn-grad-glow); transform: translateY(-2px); }
.cat-open .plus { font-size: 1rem; line-height: 1; }
.cat-card.open .cat-open .plus { transform: rotate(45deg); }

@media (max-width: 960px) { .category-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .category-grid { grid-template-columns: 1fr; } }

/* Responsive product grid (first 10 visible, See more reveals the rest) */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(248px, 1fr));
  gap: 22px;
  align-items: start;
}
@media (max-width: 560px) {
  .product-grid { grid-template-columns: 1fr; }
}

/* ============================ EXPAND / ITEM CAROUSEL ============================ */
.category-expand {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px 14px;
}

.expand-panel {
  background: var(--bone);
  border-radius: var(--radius);
  border-top: 4px solid var(--gold-3);
  padding: 30px 26px 26px;
  box-shadow: var(--shadow);
  margin-bottom: 34px;
}
.expand-head { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 22px; flex-wrap: wrap; }
.expand-title { display: flex; flex-direction: column; gap: 2px; }
.expand-head h3 { color: var(--navy); font-size: 1.35rem; }
.expand-head .count { color: var(--muted); font-size: 0.85rem; }
.eyebrow {
  display: inline-block;
  font-family: var(--font-head);
  font-size: 0.66rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--bronze);
}

.product-card {
  position: relative;
  background: var(--white);
  border-radius: var(--radius-sm);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  border: 1px solid #e6e8f2;
  display: flex;
  flex-direction: column;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.35s ease, border-color 0.35s ease;
  animation: cardIn 0.6s cubic-bezier(0.16, 1, 0.3, 1) backwards;
  animation-delay: calc(var(--card-i, 0) * 55ms);
}
@keyframes cardIn {
  from { opacity: 0; transform: translateY(22px) scale(0.98); }
  to { opacity: 1; transform: none; }
}
.product-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 22px 44px rgba(20, 27, 74, 0.14);
  border-color: #d9dcef;
}
.product-card.hidden { display: none; }
.product-card.just-in { animation: cardIn 0.55s cubic-bezier(0.16, 1, 0.3, 1) backwards; animation-delay: calc(var(--card-i, 0) * 45ms); }

.product-card .ph {
  height: 200px;
  overflow: hidden;
  background: #fff;
}
.product-card .ph img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 14px;
  transition: transform 0.55s cubic-bezier(0.16, 1, 0.3, 1);
}
.product-card:hover .ph img { transform: scale(1.07); }

.product-card .pc {
  padding: 16px 18px 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}
.product-card .pc-name {
  font-family: var(--font-head);
  font-size: 0.98rem;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.28;
}
.product-card .pc-short {
  font-size: 0.82rem;
  line-height: 1.55;
  color: var(--muted);
}

/* Concealed description */
.pc-more {
  display: grid;
  grid-template-rows: 0fr;
  opacity: 0;
  transition: grid-template-rows 0.38s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease;
}
.pc-more > p {
  overflow: hidden;
  font-size: 0.8rem;
  line-height: 1.6;
  color: var(--ink);
}
.product-card.open .pc-more {
  grid-template-rows: 1fr;
  opacity: 1;
  margin-top: 2px;
}

.pc-actions {
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px dashed #e7e9f3;
  display: flex;
  align-items: center;
  gap: 10px;
}
.pc-bar { color: #d3d6e6; font-size: 0.8rem; }
.see-more {
  border: 0;
  background: none;
  padding: 2px 0;
  font-family: var(--font-head);
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--gold-ink);
  cursor: pointer;
  border-bottom: 1px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
}
.see-more:hover { color: var(--navy); border-bottom-color: var(--gold-2); }

.enquire-btn {
  margin-left: auto;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.8rem;
  padding: 8px 16px;
  border-radius: 50px;
  border: 1.5px solid var(--navy);
  color: var(--navy);
  background: transparent;
  cursor: pointer;
  transition: background 0.25s ease, color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.enquire-btn:hover { background: var(--navy); color: var(--white); transform: translateY(-1px); box-shadow: 0 8px 18px rgba(20, 27, 74, 0.2); }
.enquire-btn.added { background: var(--btn-grad); border-color: var(--bronze); color: var(--gold-ink); }

.grid-note { text-align: center; font-size: 0.86rem; color: var(--muted); margin-top: 26px; line-height: 1.6; }
.grid-note a { color: var(--gold-ink); font-family: var(--font-head); font-weight: 600; border-bottom: 1px solid var(--gold-2); }
.grid-note a:hover { color: var(--navy); }
.grid-more { display: flex; justify-content: center; margin-top: 30px; }
.btn-see-more {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.88rem;
  padding: 12px 28px;
  border-radius: 50px;
  border: 1px solid var(--bronze);
  background: var(--btn-grad);
  color: var(--gold-ink);
  cursor: pointer;
  box-shadow: var(--btn-grad-glow);
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}
.btn-see-more:hover { transform: translateY(-2px); background: var(--btn-grad-hover); box-shadow: 0 16px 30px rgba(197, 160, 89, 0.35); }
.btn-see-more .pill {
  font-size: 0.7rem;
  background: rgba(20, 27, 74, 0.1);
  color: var(--navy);
  border-radius: 50px;
  padding: 2px 8px;
}

.car-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 18px;
}
.car-nav button {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1.5px solid var(--navy);
  background: transparent;
  color: var(--navy);
  font-size: 1.1rem;
  cursor: pointer;
  transition: all 0.22s ease;
}
.car-nav button:hover:not(:disabled) { background: var(--navy); color: var(--white); }
.car-nav button:disabled { opacity: 0.35; cursor: default; }

.car-dots { display: flex; gap: 8px; }
.car-dots button {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  border: 0;
  background: #c8cbe0;
  cursor: pointer;
  padding: 0;
}
.car-dots button.active { background: var(--gold-3); }

/* ============================ ABOUT ============================ */
.about-body { max-width: 860px; margin: 0 auto; }
.about-body p { color: #3c3f55; margin-bottom: 18px; font-size: 1.02rem; }

.about-badges {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 40px;
}
.badge {
  background: var(--white);
  border: 1px solid #e6e8f2;
  border-radius: var(--radius-sm);
  padding: 22px 12px;
  text-align: center;
  box-shadow: var(--shadow-soft);
}
.badge strong {
  display: block;
  font-family: var(--font-head);
  font-size: 1.7rem;
  color: var(--navy);
}
.badge span { color: var(--muted); font-size: 0.85rem; }
@media (max-width: 700px) { .about-badges { grid-template-columns: repeat(2, 1fr); } }

/* ============================ CLIENTS MARQUEE ============================ */
.clients-track-wrap {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.clients-track {
  display: flex;
  gap: 18px;
  width: max-content;
  animation: marquee 18s linear infinite;
}
.clients-track:hover { animation-play-state: paused; }
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

.client-chip {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--white);
  border: 1px solid #e6e8f2;
  border-radius: 50px;
  padding: 10px 22px 10px 12px;
  box-shadow: var(--shadow-soft);
  white-space: nowrap;
}
.client-chip img {
  width: 42px;
  height: 42px;
  object-fit: cover;
  border-radius: 50%;
  border: 2px solid var(--gold-2);
}
.client-chip .cl-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--btn-grad);
  color: var(--gold-ink);
  font-family: var(--font-head);
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}
.client-chip .cl-name { font-weight: 600; font-size: 0.92rem; color: var(--ink); }

/* ============================ SOCIAL BAND ============================ */
.social-band {
  background: var(--bone);
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  padding: 22px 24px;
}
.social-band a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--navy);
  font-weight: 600;
  font-size: 0.9rem;
  padding: 10px 16px;
  border-radius: 50px;
  border: 1px solid #dfe2f0;
  background: var(--white);
  transition: all 0.22s ease;
}
.social-band a:hover {
  background: var(--btn-grad);
  color: var(--gold-ink);
  border-color: var(--bronze);
  box-shadow: var(--btn-grad-glow);
  text-decoration: none;
  transform: translateY(-3px);
}
.social-band svg { width: 20px; height: 20px; fill: currentColor; }

/* ============================ FOOTER ============================ */
.site-footer {
  background: var(--navy);
  color: #dfe2f5;
  margin-top: 60px;
}
.footer-grid {
  max-width: 1240px;
  margin: 0 auto;
  padding: 46px 24px 30px;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 30px;
}
.footer-brand p { margin-top: 12px; font-size: 0.9rem; color: #c3c8e8; max-width: 34ch; }
.footer-col h3 { color: var(--gold-1); font-size: 1rem; margin-bottom: 14px; letter-spacing: 0.04em; }
.footer-col a { display: block; color: #dfe2f5; font-size: 0.9rem; padding: 5px 0; }
.footer-col a:hover { color: var(--gold-1); }
.footer-col p { font-size: 0.9rem; color: #c3c8e8; margin-top: 8px; }

.footer-made {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding: 22px 24px;
  text-align: center;
  color: #c3c8e8;
  font-size: 0.92rem;
}
.made-by {
  font-family: var(--font-head);
  font-weight: 700;
  background: var(--btn-grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  padding: 0 2px;
}
.made-by:hover { text-decoration: underline; }
.footer-rights { margin-top: 6px; font-size: 0.82rem; color: #9aa1c8; }

@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }

/* ============================ FLOATERS ============================ */
.cart-float {
  position: fixed;
  bottom: 26px;
  left: 26px;
  z-index: 90;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  border: 1px solid var(--bronze);
  background: var(--btn-grad);
  color: var(--gold-ink);
  cursor: pointer;
  box-shadow: var(--shadow);
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}
.cart-float:hover { transform: translateY(-4px); background: var(--btn-grad-hover); box-shadow: var(--btn-grad-glow); }
.cart-float svg { width: 26px; height: 26px; fill: currentColor; }
.cart-count {
  position: absolute;
  top: -6px;
  right: -6px;
  background: var(--navy);
  color: var(--white);
  font-family: var(--font-head);
  font-size: 0.75rem;
  font-weight: 700;
  min-width: 24px;
  height: 24px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 6px;
  border: 2px solid var(--gold-2);
}
.cart-float.pop { animation: pop 0.45s ease; }
@keyframes pop { 0% { transform: scale(1); } 40% { transform: scale(1.25); } 100% { transform: scale(1); } }

.to-top {
  position: fixed;
  bottom: 26px;
  right: 26px;
  z-index: 90;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  border: 1px solid var(--bronze);
  background: var(--btn-grad);
  color: var(--gold-ink);
  font-size: 1.25rem;
  cursor: pointer;
  box-shadow: var(--shadow);
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: all 0.3s ease;
}
.to-top.show { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { background: var(--btn-grad-hover); box-shadow: var(--btn-grad-glow); }

@media (max-width: 560px) {
  .to-top { right: 16px; bottom: 18px; }
  .cart-float { left: 16px; bottom: 18px; }
}

/* ============================ CART DRAWER ============================ */
.drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(20, 22, 45, 0.5);
  backdrop-filter: blur(3px);
  z-index: 110;
}

.cart-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(420px, 92vw);
  background: var(--white);
  z-index: 120;
  box-shadow: -16px 0 40px rgba(20, 22, 45, 0.22);
  display: flex;
  flex-direction: column;
  transform: translateX(105%);
  transition: transform 0.35s cubic-bezier(0.3, 0.7, 0.3, 1);
}
.cart-drawer.open { transform: none; }

.drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 22px;
  background: var(--navy);
  color: var(--white);
}
.drawer-head h3 { font-size: 1.1rem; }
.drawer-close {
  background: none;
  border: 0;
  color: var(--white);
  font-size: 1.6rem;
  cursor: pointer;
  line-height: 1;
}

.drawer-body { flex: 1; overflow-y: auto; padding: 18px 22px; }

.drawer-item {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid #eef0f8;
}
.drawer-item img {
  width: 62px;
  height: 62px;
  object-fit: contain;
  border-radius: 8px;
  background: var(--bone);
  border: 1px solid #e6e8f2;
  padding: 4px;
}
.drawer-item .di-body { flex: 1; min-width: 0; }
.drawer-item .di-body strong { display: block; font-size: 0.9rem; color: var(--ink); }
.drawer-item .di-body span { font-size: 0.78rem; color: var(--muted); }
.drawer-item .di-remove {
  background: none;
  border: 0;
  color: #b23b3b;
  font-size: 1.2rem;
  cursor: pointer;
  padding: 4px;
}

.drawer-empty { text-align: center; color: var(--muted); padding: 40px 0; }
.drawer-empty .emoji { font-size: 2rem; }

.drawer-foot { padding: 18px 22px; background: var(--bone); display: flex; flex-direction: column; gap: 10px; }

/* ============================ QUOTE PAGE ============================ */
.quote-page { background: var(--white); }

.quote-main { padding-top: 108px; }
.quote-layout {
  display: grid;
  grid-template-columns: 1fr 1.25fr;
  gap: 36px;
  max-width: 1040px;
  margin: 0 auto;
}
@media (max-width: 860px) { .quote-layout { grid-template-columns: 1fr; } }

.quote-cart {
  background: var(--bone);
  border-radius: var(--radius);
  padding: 24px;
  align-self: start;
  border: 1px solid #e6e8f2;
}
.quote-cart h3 { color: var(--navy); margin-bottom: 16px; }
.cart-badge {
  display: inline-block;
  background: var(--btn-grad);
  color: var(--gold-ink);
  border-radius: 20px;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 2px 10px;
  margin-left: 6px;
  vertical-align: middle;
}
.quote-cart-body .drawer-item:last-child { border-bottom: 0; }
.quote-cart-hint { margin-top: 14px; font-size: 0.85rem; color: var(--muted); }

.quote-form {
  background: var(--white);
  border: 1px solid #e6e8f2;
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  padding: 30px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-weight: 600; font-size: 0.9rem; color: var(--ink); }
.field label span { color: var(--gold-3); }
.geo-hint { font-size: 0.78rem; color: var(--muted); min-height: 1em; }
.field input, .field textarea {
  font-family: var(--font-body);
  font-size: 0.95rem;
  padding: 13px 15px;
  border: 1.5px solid #dfe2f0;
  border-radius: 9px;
  color: var(--ink);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  background: #fbfbfe;
}
.field input:focus, .field textarea:focus {
  outline: none;
  border-color: var(--navy);
  box-shadow: 0 0 0 3px rgba(45, 53, 141, 0.12);
}
.field.invalid input, .field.invalid textarea { border-color: #c0392b; }
.field .field-err { color: #c0392b; font-size: 0.8rem; }

.form-note { font-size: 0.82rem; color: var(--muted); text-align: center; }

.quote-success {
  max-width: 560px;
  margin: 30px auto;
  text-align: center;
  background: var(--bone);
  border-radius: var(--radius);
  padding: 44px 30px;
}
.success-mark {
  width: 64px;
  height: 64px;
  margin: 0 auto 18px;
  border-radius: 50%;
  background: linear-gradient(135deg, #27ae60, #1e8e50);
  color: #fff;
  font-size: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 20px rgba(30, 142, 80, 0.35);
}
.quote-success h3 { color: var(--navy); margin-bottom: 10px; }
.quote-success p { color: var(--muted); margin-bottom: 18px; }
.success-actions { display: flex; flex-direction: column; gap: 10px; margin-bottom: 16px; }

/* ============================ TOASTS ============================ */
.toasts {
  position: fixed;
  bottom: 26px;
  right: 26px;
  z-index: 200;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.toast {
  background: var(--navy);
  color: var(--white);
  padding: 13px 18px;
  border-radius: 10px;
  box-shadow: var(--shadow);
  font-size: 0.9rem;
  max-width: 320px;
  animation: toastIn 0.3s ease;
  border-left: 4px solid var(--gold-2);
}
.toast.err { border-left-color: #e74c3c; }
.toast.ok { border-left-color: #2ecc71; }
@keyframes toastIn {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: none; }
}

/* ============================ MOTION LAYER ============================ */
/* Reading-progress bar (injected by main.js) */
.scroll-progress {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 3px;
  transform: scaleX(0);
  transform-origin: 0 50%;
  background: linear-gradient(90deg, var(--gold-2), var(--bronze));
  z-index: 1200;
  pointer-events: none;
}

.site-header { transition: box-shadow 0.35s ease, background 0.35s ease; }
.site-header.scrolled { box-shadow: 0 12px 34px rgba(20, 27, 74, 0.14); }

/* Section headline: underline draws in as the section enters view */
.section-head h2 { position: relative; display: inline-block; }
.section-head h2::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: -12px;
  width: 70px;
  height: 3px;
  border-radius: 3px;
  background: var(--btn-grad);
  transform: translateX(-50%) scaleX(0);
  transform-origin: center;
  transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.section-head.in h2::after { transform: translateX(-50%) scaleX(1); }

/* Staggered entrance for solution cards */
.cat-card.reveal.in {
  animation: riseIn 0.7s cubic-bezier(0.16, 1, 0.3, 1) backwards;
  animation-delay: calc(var(--i, 0) * 70ms);
}
@keyframes riseIn { from { opacity: 0; transform: translateY(26px); } }

.cat-card .cat-icon { transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1); }
.cat-card:hover .cat-icon { transform: translateY(-5px) scale(1.05); }

/* About badges */
.badge { transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.35s ease; }
.badge:hover { transform: translateY(-4px); box-shadow: 0 14px 26px rgba(20, 27, 74, 0.12); }

/* Pause the client marquee on hover */
.clients-track-wrap:hover .clients-track { animation-play-state: paused; }

/* ============================ MISC ============================ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001s !important; transition-duration: 0.001s !important; }
  html { scroll-behavior: auto; }
  /* Clients: show every name in a static wrapping wall instead of a frozen marquee */
  .clients-track-wrap { -webkit-mask-image: none; mask-image: none; }
  .clients-track { animation: none !important; flex-wrap: wrap; justify-content: center; width: auto; }
}