/* ==========================================================================
   KK Foods — design system (app.css)
   Ported from the original Tailwind v3 + shadcn/ui setup to vanilla CSS.
   Uses HSL CSS custom properties for theming (light + optional dark mode).
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Design tokens
   -------------------------------------------------------------------------- */
:root {
  /* Warm golden / heritage palette */
  --background: 42 50% 96%;
  --foreground: 24 20% 15%;
  --card: 45 40% 98%;
  --card-foreground: 24 20% 15%;
  --popover: 45 40% 98%;
  --popover-foreground: 24 20% 15%;

  /* KK Red */
  --primary: 356 85% 45%;
  --primary-foreground: 0 0% 100%;

  /* Golden Accent / Secondary */
  --secondary: 45 95% 55%;
  --secondary-foreground: 24 20% 15%;

  /* Warm Muted */
  --muted: 40 30% 90%;
  --muted-foreground: 24 15% 35%;

  /* KK Green Accent */
  --accent: 145 70% 30%;
  --accent-foreground: 0 0% 100%;

  --destructive: 0 84% 60%;
  --destructive-foreground: 0 0% 100%;

  --border: 40 25% 85%;
  --input: 40 25% 85%;
  --ring: 356 85% 45%;

  --radius: 0.75rem;

  /* Header */
  --header-bg: 0 0% 100%;
  --header-foreground: 24 20% 15%;
  --header-border: 40 25% 85%;

  /* Footer */
  --footer-bg: 24 20% 10%;
  --footer-foreground: 42 50% 96%;
  --footer-border: 24 20% 20%;

  /* Timeline */
  --timeline-line: 40 25% 85%;
  --timeline-dot-border: 356 85% 45%;
  --timeline-dot-bg: 42 50% 96%;

  /* WhatsApp brand green */
  --wa-green: 142 71% 45%;

  /* Layout */
  --container-max: 1280px;
  --header-height: 72px;

  /* Shadows */
  --shadow-sm: 0 1px 2px 0 hsl(var(--foreground) / 0.05);
  --shadow-md: 0 4px 6px -1px hsl(var(--foreground) / 0.1);
  --shadow-lg: 0 10px 15px -3px hsl(var(--foreground) / 0.1);
  --shadow-xl: 0 20px 25px -5px hsl(var(--foreground) / 0.1);
}

/* Optional dark mode (preserved from original) */
.dark {
  --background: 24 20% 10%;
  --foreground: 42 50% 96%;
  --card: 24 20% 15%;
  --card-foreground: 42 50% 96%;
  --popover: 24 20% 15%;
  --popover-foreground: 42 50% 96%;
  --primary: 356 85% 45%;
  --primary-foreground: 0 0% 100%;
  --secondary: 45 95% 55%;
  --secondary-foreground: 24 20% 10%;
  --muted: 24 20% 20%;
  --muted-foreground: 40 30% 80%;
  --accent: 145 70% 30%;
  --accent-foreground: 0 0% 100%;
  --destructive: 0 84% 60%;
  --destructive-foreground: 0 0% 100%;
  --border: 24 20% 25%;
  --input: 24 20% 25%;
  --ring: 356 85% 45%;
  --header-bg: 24 20% 15%;
  --header-foreground: 42 50% 96%;
  --header-border: 24 20% 25%;
  --footer-bg: 24 20% 5%;
  --footer-foreground: 42 50% 96%;
  --footer-border: 24 20% 15%;
  --timeline-line: 24 20% 25%;
  --timeline-dot-border: 356 85% 45%;
  --timeline-dot-bg: 24 20% 10%;
}

/* --------------------------------------------------------------------------
   2. Base reset & typography
   -------------------------------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

* {
  border-color: hsl(var(--border));
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: 'Open Sans', sans-serif;
  background-color: hsl(var(--background));
  color: hsl(var(--foreground));
  overflow-x: clip;
  line-height: 1.625;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  text-wrap: balance;
  margin: 0 0 0.5em;
}

h1 { font-size: clamp(2rem, 5vw, 3.5rem); font-weight: 900; }
h2 { font-size: clamp(1.75rem, 4vw, 2.5rem); }
h3 { font-size: clamp(1.5rem, 3vw, 2rem); }

p { margin: 0 0 1em; max-width: 65ch; }

a { color: hsl(var(--primary)); text-decoration: none; transition: color 0.2s; }
a:hover { color: hsl(var(--primary) / 0.8); }

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

ul, ol { margin: 0; padding: 0; list-style: none; }

blockquote { margin: 0; }

figure { margin: 0; }

.kkf-editorial { font-family: 'Lora', serif; font-style: italic; }
.kkf-malayalam { font-family: 'Noto Sans Malayalam', sans-serif; }

/* --------------------------------------------------------------------------
   3. Layout helpers
   -------------------------------------------------------------------------- */
.kkf-container {
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: 1rem;
  padding-right: 1rem;
}
@media (min-width: 640px) {
  .kkf-container { padding-left: 1.5rem; padding-right: 1.5rem; }
}
@media (min-width: 1024px) {
  .kkf-container { padding-left: 2rem; padding-right: 2rem; }
}
.kkf-container--narrow { max-width: 768px; }

.kkf-text-center { text-align: center; }

.kkf-section { padding: 5rem 0; }
.kkf-section--card { background-color: hsl(var(--card)); }
.kkf-section--muted { background-color: hsl(var(--muted)); }

.kkf-section-header { text-align: center; margin-bottom: 4rem; }
.kkf-section-title { font-size: clamp(1.75rem, 4vw, 2.5rem); }
.kkf-section-subtitle {
  font-size: 1.125rem;
  color: hsl(var(--muted-foreground));
  max-width: 42rem;
  margin: 1rem auto 0;
}

.kkf-bg--muted { background-color: hsl(var(--muted)); }
.kkf-bg--cream { background-color: hsl(42 56% 87%); }

/* Grids */
.kkf-grid { display: grid; gap: 2rem; }
.kkf-grid--2 { grid-template-columns: 1fr; }
.kkf-grid--3 { grid-template-columns: 1fr; }
.kkf-grid--4 { grid-template-columns: 1fr; }
@media (min-width: 640px) {
  .kkf-grid--2 { grid-template-columns: repeat(2, 1fr); }
  .kkf-grid--3 { grid-template-columns: repeat(2, 1fr); }
  .kkf-grid--4 { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
  .kkf-grid--3 { grid-template-columns: repeat(3, 1fr); }
  .kkf-grid--4 { grid-template-columns: repeat(4, 1fr); }
}

/* Links */
.kkf-link { color: hsl(var(--primary)); font-weight: 600; }
.kkf-link:hover { text-decoration: underline; }

/* --------------------------------------------------------------------------
   4. Skip link & accessibility
   -------------------------------------------------------------------------- */
.kkf-skip-link {
  position: absolute;
  top: -100px;
  left: 1rem;
  z-index: 9999;
  background: hsl(var(--primary));
  color: hsl(var(--primary-foreground));
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius);
  font-weight: 700;
}
.kkf-skip-link:focus { top: 1rem; }

:focus-visible {
  outline: 3px solid hsl(var(--ring));
  outline-offset: 2px;
}

/* --------------------------------------------------------------------------
   5. Buttons
   -------------------------------------------------------------------------- */
.kkf-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius);
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  line-height: 1.2;
  border: 2px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s;
  white-space: nowrap;
}
.kkf-btn:active { transform: scale(0.98); }
.kkf-btn svg { flex-shrink: 0; }

.kkf-btn-sm { padding: 0.5rem 1rem; font-size: 0.875rem; }
.kkf-btn--lg { padding: 1rem 2rem; font-size: 1.125rem; }
.kkf-btn--block { width: 100%; }

.kkf-btn--primary, .kkf-btn-primary {
  background-color: hsl(var(--primary));
  color: hsl(var(--primary-foreground));
  box-shadow: var(--shadow-lg);
}
.kkf-btn--primary:hover, .kkf-btn-primary:hover {
  filter: brightness(1.1);
  color: hsl(var(--primary-foreground));
}

.kkf-btn--secondary {
  background-color: hsl(var(--secondary));
  color: hsl(var(--secondary-foreground));
}
.kkf-btn--secondary:hover { filter: brightness(0.95); color: hsl(var(--secondary-foreground)); }

.kkf-btn--accent {
  background-color: hsl(var(--accent));
  color: hsl(var(--accent-foreground));
  box-shadow: var(--shadow-lg);
}
.kkf-btn--accent:hover { filter: brightness(1.1); color: hsl(var(--accent-foreground)); }

.kkf-btn--white {
  background-color: #fff;
  color: hsl(var(--primary));
}
.kkf-btn--white:hover { background-color: hsl(0 0% 90%); color: hsl(var(--primary)); }

.kkf-btn-whatsapp svg { margin-right: 0.25rem; }

/* --------------------------------------------------------------------------
   6. Badges
   -------------------------------------------------------------------------- */
.kkf-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 700;
  box-shadow: var(--shadow-sm);
}
.kkf-badge--secondary { background-color: hsl(var(--secondary)); color: hsl(var(--secondary-foreground)); }
.kkf-badge--accent { background-color: hsl(var(--accent)); color: hsl(var(--accent-foreground)); }
.kkf-badge--primary { background-color: hsl(var(--primary)); color: hsl(var(--primary-foreground)); }
.kkf-badge--foreground { background-color: hsl(var(--foreground)); color: hsl(var(--background)); }

/* --------------------------------------------------------------------------
   7. Header
   -------------------------------------------------------------------------- */
.kkf-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: hsl(var(--header-bg));
  border-bottom: 1px solid hsl(var(--header-border));
  transition: box-shadow 0.2s;
}
.kkf-header.is-scrolled { box-shadow: var(--shadow-md); }

.kkf-header-inner { padding: 0.75rem 0; }
.kkf-header-container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 1rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}
@media (min-width: 1024px) { .kkf-header-container { padding: 0 2rem; } }

.kkf-logo-wrap { flex-shrink: 0; }
.kkf-logo-link { display: flex; align-items: center; gap: 0.625rem; color: hsl(var(--header-foreground)); }
.kkf-logo-link:hover { color: hsl(var(--header-foreground)); }
.kkf-logo-img { height: 44px; width: auto; }
.kkf-logo-text { font-family: 'Montserrat', sans-serif; font-weight: 900; font-size: 1.125rem; }

.kkf-nav-desktop { display: none; margin-left: auto; }
@media (min-width: 1024px) { .kkf-nav-desktop { display: block; } }

.kkf-menu, .kkf-footer-menu { display: flex; gap: 0.25rem; }
.kkf-menu { flex-wrap: wrap; }
.kkf-menu li { position: relative; }
.kkf-menu a {
  display: flex;
  align-items: center;
  padding: 0.5rem 0.875rem;
  font-weight: 600;
  font-size: 0.95rem;
  color: hsl(var(--header-foreground));
  border-radius: var(--radius);
  min-height: 44px;
  transition: background-color 0.2s, color 0.2s;
}
.kkf-menu a:hover { background-color: hsl(var(--muted)); color: hsl(var(--primary)); }
.kkf-menu .current-menu-item > a { color: hsl(var(--primary)); font-weight: 700; }

.kkf-header-cta { margin-left: auto; display: none; }
@media (min-width: 1024px) { .kkf-header-cta { display: flex; } }

.kkf-menu-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: none;
  background: transparent;
  color: hsl(var(--header-foreground));
  cursor: pointer;
  border-radius: var(--radius);
  margin-left: auto;
}
.kkf-menu-toggle:hover { background-color: hsl(var(--muted)); }
@media (min-width: 1024px) { .kkf-menu-toggle { display: none; } }

/* Mobile sheet menu */
.kkf-sheet-overlay {
  position: fixed;
  inset: 0;
  background: hsl(0 0% 0% / 0.5);
  z-index: 200;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s;
}
.kkf-sheet-overlay.is-active { opacity: 1; visibility: visible; }

.kkf-mobile-menu {
  position: fixed;
  top: 0;
  right: 0;
  width: min(320px, 85vw);
  height: 100vh;
  background-color: hsl(var(--header-bg));
  z-index: 201;
  transform: translateX(100%);
  transition: transform 0.3s ease;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-xl);
  overflow-y: auto;
}
.kkf-mobile-menu.is-open { transform: translateX(0); }

.kkf-mobile-menu-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem;
  border-bottom: 1px solid hsl(var(--border));
}
.kkf-mobile-logo { display: flex; align-items: center; gap: 0.5rem; color: hsl(var(--foreground)); font-weight: 900; font-family: 'Montserrat', sans-serif; }
.kkf-mobile-logo .kkf-logo-img { height: 40px; }

.kkf-menu-close {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px; height: 44px;
  border: none; background: transparent; cursor: pointer;
  color: hsl(var(--foreground)); border-radius: var(--radius);
}
.kkf-menu-close:hover { background-color: hsl(var(--muted)); }

.kkf-mobile-nav { padding: 1rem; flex: 1; }
.kkf-mobile-menu-list { flex-direction: column; }
.kkf-mobile-menu-list a {
  display: block;
  padding: 0.875rem 1rem;
  font-weight: 600;
  color: hsl(var(--foreground));
  border-radius: var(--radius);
  min-height: 44px;
}
.kkf-mobile-menu-list a:hover { background-color: hsl(var(--muted)); color: hsl(var(--primary)); }
.kkf-mobile-menu-list .current-menu-item > a { color: hsl(var(--primary)); }

.kkf-mobile-menu-cta { padding: 1rem; border-top: 1px solid hsl(var(--border)); }

body.kkf-menu-open, body.kkf-lightbox-open { overflow: hidden; }

/* --------------------------------------------------------------------------
   8. Footer
   -------------------------------------------------------------------------- */
.kkf-footer {
  background-color: hsl(var(--footer-bg));
  color: hsl(var(--footer-foreground));
  padding: 4rem 0 0;
}
.kkf-footer-container { max-width: var(--container-max); margin: 0 auto; padding: 0 1rem; }
@media (min-width: 1024px) { .kkf-footer-container { padding: 0 2rem; } }

.kkf-footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  padding-bottom: 3rem;
}
@media (min-width: 768px) { .kkf-footer-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .kkf-footer-grid { grid-template-columns: 2fr 1fr 1fr 1.5fr; } }

.kkf-footer-logo { display: flex; align-items: center; gap: 0.625rem; color: hsl(var(--footer-foreground)); }
.kkf-footer-logo:hover { color: hsl(var(--footer-foreground)); }
.kkf-footer-logo .kkf-logo-img { height: 48px; filter: brightness(0) invert(1); }
.kkf-footer-logo-text { font-family: 'Montserrat', sans-serif; font-weight: 900; font-size: 1.25rem; }

.kkf-footer-about-text { color: hsl(var(--footer-foreground) / 0.8); margin-top: 1rem; }

.kkf-footer-social { display: flex; gap: 0.75rem; margin-top: 1.25rem; }
.kkf-social-link {
  display: flex; align-items: center; justify-content: center;
  width: 40px; height: 40px;
  border-radius: 9999px;
  background-color: hsl(var(--footer-foreground) / 0.1);
  color: hsl(var(--footer-foreground));
  transition: background-color 0.2s;
}
.kkf-social-link:hover { background-color: hsl(var(--primary)); color: hsl(var(--primary-foreground)); }

.kkf-footer-heading { font-size: 1.125rem; margin-bottom: 1rem; color: hsl(var(--footer-foreground)); }

.kkf-footer-menu { flex-direction: column; gap: 0.5rem; }
.kkf-footer-menu a { color: hsl(var(--footer-foreground) / 0.8); }
.kkf-footer-menu a:hover { color: hsl(var(--primary)); }

.kkf-footer-contact-list { display: flex; flex-direction: column; gap: 0.75rem; }
.kkf-footer-contact-item { display: flex; align-items: flex-start; gap: 0.625rem; color: hsl(var(--footer-foreground) / 0.8); }
.kkf-footer-contact-item a { color: hsl(var(--footer-foreground) / 0.8); }
.kkf-footer-contact-item a:hover { color: hsl(var(--primary)); }
.kkf-footer-contact-item svg { flex-shrink: 0; margin-top: 0.125rem; }

.kkf-footer-bottom {
  border-top: 1px solid hsl(var(--footer-border));
  padding: 1.5rem 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  text-align: center;
}
@media (min-width: 768px) {
  .kkf-footer-bottom { flex-direction: row; justify-content: space-between; text-align: left; }
}
.kkf-footer-copyright { color: hsl(var(--footer-foreground) / 0.7); font-size: 0.875rem; }
.kkf-footer-fssai-bar { color: hsl(var(--footer-foreground) / 0.7); font-size: 0.875rem; }

/* --------------------------------------------------------------------------
   9. Trust strip
   -------------------------------------------------------------------------- */
.kkf-truststrip { background-color: hsl(var(--card)); border-bottom: 1px solid hsl(var(--border)); }
.kkf-truststrip--slim { background-color: hsl(var(--background)); }
.kkf-truststrip-inner {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 1rem 1rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem;
}
.kkf-truststrip--default .kkf-truststrip-inner { padding: 1.5rem 1rem; gap: 2rem; }
@media (min-width: 1024px) { .kkf-truststrip-inner { padding: 1.5rem 2rem; } }

.kkf-truststrip-item { display: flex; align-items: center; gap: 0.5rem; }
.kkf-truststrip-icon { display: flex; color: hsl(var(--accent)); }
.kkf-truststrip-label { font-weight: 700; font-size: 0.875rem; color: hsl(var(--foreground)); }
.kkf-truststrip--default .kkf-truststrip-label { font-size: 1rem; }

/* --------------------------------------------------------------------------
   10. Floating WhatsApp + mobile bottom bar
   -------------------------------------------------------------------------- */
.kkf-floating-whatsapp {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 90;
  width: 56px;
  height: 56px;
  border-radius: 9999px;
  background-color: hsl(var(--wa-green));
  color: #fff;
  display: none;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px hsl(0 0% 0% / 0.25);
  transition: transform 0.2s;
}
.kkf-floating-whatsapp:hover { transform: scale(1.1); color: #fff; }
@media (min-width: 768px) { .kkf-floating-whatsapp { display: flex; } }

.kkf-mobile-bottom-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 90;
  display: grid;
  grid-template-columns: 1fr 1fr;
  box-shadow: 0 -2px 8px hsl(0 0% 0% / 0.15);
}
@media (min-width: 768px) { .kkf-mobile-bottom-bar { display: none; } }

.kkf-mobile-bar-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.875rem;
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  color: #fff;
}
.kkf-mobile-bar-call { background-color: hsl(var(--primary)); }
.kkf-mobile-bar-wa { background-color: hsl(var(--wa-green)); }
.kkf-mobile-bar-btn:hover { filter: brightness(1.1); color: #fff; }

/* body padding so content isn't hidden behind mobile bar */
@media (max-width: 767px) { body { padding-bottom: 56px; } }

/* --------------------------------------------------------------------------
   11. Hero (front page)
   -------------------------------------------------------------------------- */
.kkf-hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  background: #000;
  overflow: hidden;
}
.kkf-hero-bg { position: absolute; inset: 0; z-index: 0; }
.kkf-hero-bg img { width: 100%; height: 100%; object-fit: cover; }
.kkf-hero-overlay { position: absolute; inset: 0; background: hsl(0 0% 0% / 0.5); }

.kkf-hero-content {
  position: relative;
  z-index: 1;
  max-width: 56rem;
  margin: 0 auto;
  text-align: center;
  padding: 5rem 1rem;
}
.kkf-hero-logo { height: clamp(10rem, 18vw, 16rem); width: auto; margin: 0 auto 2.5rem; filter: drop-shadow(0 4px 12px rgba(0,0,0,0.5)); }
.kkf-hero-title { color: #fff; margin-bottom: 1.5rem; text-shadow: 0 2px 8px rgba(0,0,0,0.3); }
.kkf-hero-malayalam { font-size: clamp(1.25rem, 3vw, 1.75rem); color: hsl(0 0% 100% / 0.9); margin-bottom: 1.5rem; text-shadow: 0 2px 8px rgba(0,0,0,0.3); }
.kkf-hero-editorial { font-size: clamp(1.125rem, 2.5vw, 1.5rem); color: hsl(0 0% 100% / 0.9); margin-bottom: 3rem; max-width: 36rem; margin-left: auto; margin-right: auto; text-shadow: 0 2px 8px rgba(0,0,0,0.3); }

.kkf-hero-actions { display: flex; flex-direction: column; gap: 1rem; justify-content: center; }
@media (min-width: 640px) { .kkf-hero-actions { flex-direction: row; } }

/* --------------------------------------------------------------------------
   12. Page hero (interior pages)
   -------------------------------------------------------------------------- */
.kkf-page-hero { padding: 5rem 0; }
@media (min-width: 1024px) { .kkf-page-hero { padding: 6rem 0; } }

.kkf-page-hero-content { max-width: 48rem; margin: 0 auto; text-align: center; }
.kkf-page-hero-title { font-size: clamp(2.25rem, 5vw, 3rem); font-weight: 900; margin-bottom: 1.5rem; }
.kkf-page-hero-subtitle { font-size: 1.25rem; color: hsl(var(--muted-foreground)); max-width: 42rem; margin: 0 auto; }

/* Breadcrumb */
.kkf-breadcrumb { margin-bottom: 2rem; }
.kkf-breadcrumb-list { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; font-size: 0.875rem; color: hsl(var(--muted-foreground)); }
.kkf-breadcrumb-item { display: flex; align-items: center; gap: 0.5rem; }
.kkf-breadcrumb-item::after { content: "›"; color: hsl(var(--muted-foreground)); }
.kkf-breadcrumb-item:last-child::after { display: none; }
.kkf-breadcrumb-item[aria-current="page"] { color: hsl(var(--foreground)); font-weight: 600; }

/* --------------------------------------------------------------------------
   13. Brand promise
   -------------------------------------------------------------------------- */
.kkf-promise { text-align: center; }
.kkf-promise-icon {
  width: 64px; height: 64px;
  margin: 0 auto 1.5rem;
  border-radius: 1rem;
  background-color: hsl(var(--accent) / 0.1);
  color: hsl(var(--accent));
  display: flex; align-items: center; justify-content: center;
}
.kkf-promise-title { margin-bottom: 0.75rem; }
.kkf-promise-desc { color: hsl(var(--muted-foreground)); }

/* --------------------------------------------------------------------------
   14. Product cards
   -------------------------------------------------------------------------- */
.kkf-product-card {
  background: #fff;
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 1px solid hsl(var(--border));
  display: flex;
  flex-direction: column;
  transition: transform 0.3s, box-shadow 0.3s;
}
.kkf-product-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-xl); }

.kkf-product-card-img { display: block; aspect-ratio: 1 / 1; overflow: hidden; background-color: hsl(var(--muted)); }
.kkf-product-card-img img { width: 100%; height: 100%; object-fit: cover; mix-blend-mode: multiply; transition: transform 0.5s; }
.kkf-product-card:hover .kkf-product-card-img img { transform: scale(1.05); }

.kkf-product-card-body { padding: 1.5rem; display: flex; flex-direction: column; flex: 1; }
.kkf-product-card-badges { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 1rem; }
.kkf-product-card-title { font-size: 1.25rem; margin-bottom: 0.25rem; }
.kkf-product-card-mal { font-size: 0.875rem; color: hsl(var(--muted-foreground)); margin-bottom: 0.75rem; }
.kkf-product-card-benefit { color: hsl(var(--muted-foreground)); margin-bottom: 1rem; }
.kkf-product-card-link { color: hsl(var(--accent)); font-weight: 600; }
.kkf-product-card-link:hover { color: hsl(var(--accent)); filter: brightness(1.1); }
.kkf-product-card-actions { margin-top: auto; display: flex; flex-direction: column; gap: 0.75rem; }

.kkf-category-title { font-size: 1.875rem; font-weight: 700; margin-bottom: 3rem; }
.kkf-empty { text-align: center; color: hsl(var(--muted-foreground)); padding: 3rem 0; }

/* --------------------------------------------------------------------------
   15. Story section
   -------------------------------------------------------------------------- */
.kkf-story { display: grid; grid-template-columns: 1fr; gap: 3rem; align-items: center; }
@media (min-width: 1024px) { .kkf-story { grid-template-columns: 1fr 1fr; } }

.kkf-story-img img { border-radius: 1rem; box-shadow: var(--shadow-lg); width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.kkf-story-content .kkf-section-title { margin-bottom: 1.5rem; }
.kkf-story-lead { font-size: 1.125rem; margin-bottom: 1.5rem; }

/* --------------------------------------------------------------------------
   16. Why KK Foods features
   -------------------------------------------------------------------------- */
.kkf-feature { display: flex; flex-direction: column; align-items: center; text-align: center; }
.kkf-feature-icon {
  width: 56px; height: 56px; margin-bottom: 1rem;
  border-radius: 0.75rem;
  background-color: hsl(var(--accent) / 0.1);
  color: hsl(var(--accent));
  display: flex; align-items: center; justify-content: center;
}
.kkf-feature-text { font-weight: 600; }

/* --------------------------------------------------------------------------
   17. Sourcing flow
   -------------------------------------------------------------------------- */
.kkf-flow { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1.5rem; }
@media (min-width: 768px) { .kkf-flow { flex-direction: row; gap: 4rem; } }

.kkf-flow-step { display: flex; align-items: center; gap: 1rem; }
.kkf-flow-icon--accent { color: hsl(var(--accent)); }
.kkf-flow-icon--primary { color: hsl(var(--primary)); }
.kkf-flow-label { font-weight: 700; font-size: 1.125rem; }
.kkf-flow-arrow { color: hsl(var(--muted-foreground)); font-size: 1.5rem; display: none; }
@media (min-width: 768px) { .kkf-flow-arrow { display: inline; } }

/* --------------------------------------------------------------------------
   18. Testimonials
   -------------------------------------------------------------------------- */
.kkf-testimonial {
  background: #fff;
  padding: 2rem;
  border-radius: 1rem;
  box-shadow: var(--shadow-md);
  border: 1px solid hsl(var(--border));
  height: 100%;
}
.kkf-testimonial-quote { font-size: 1.125rem; margin-bottom: 1.5rem; color: hsl(var(--foreground)); }
.kkf-testimonial-author { font-weight: 700; }
.kkf-testimonial-location { font-size: 0.875rem; color: hsl(var(--muted-foreground)); }

/* --------------------------------------------------------------------------
   19. FAQ accordion
   -------------------------------------------------------------------------- */
.kkf-faq { display: flex; flex-direction: column; gap: 1rem; }
.kkf-faq-item {
  border: 1px solid hsl(var(--border));
  border-radius: 0.75rem;
  background: #fff;
  padding: 0 1.5rem;
  overflow: hidden;
}
.kkf-faq-q {
  font-weight: 600;
  font-size: 1.0625rem;
  cursor: pointer;
  padding: 1.25rem 0;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}
.kkf-faq-q::-webkit-details-marker { display: none; }
.kkf-faq-q::after { content: "+"; font-size: 1.5rem; color: hsl(var(--primary)); flex-shrink: 0; transition: transform 0.2s; }
.kkf-faq-item[open] .kkf-faq-q::after { content: "−"; }
.kkf-faq-q:hover { color: hsl(var(--primary)); }
.kkf-faq-a { padding: 0 0 1.25rem; color: hsl(var(--muted-foreground)); }

/* --------------------------------------------------------------------------
   20. CTA band
   -------------------------------------------------------------------------- */
.kkf-cta-band { background-color: hsl(var(--primary)); color: #fff; padding: 5rem 0; text-align: center; }
.kkf-cta-title { color: #fff; margin-bottom: 1.5rem; }
.kkf-cta-subtitle { font-size: 1.25rem; color: hsl(0 0% 100% / 0.9); margin-bottom: 2rem; max-width: 42rem; margin-left: auto; margin-right: auto; }

/* --------------------------------------------------------------------------
   21. Quote band (about page)
   -------------------------------------------------------------------------- */
.kkf-quote-band {
  background-color: hsl(var(--muted));
  padding: 4rem;
  border-radius: 1.5rem;
  margin: 6rem 0;
  position: relative;
  overflow: hidden;
}
@media (max-width: 767px) { .kkf-quote-band { padding: 2.5rem 1.5rem; } }
.kkf-quote-watermark { position: absolute; top: 0; right: 0; padding: 2rem; opacity: 0.05; pointer-events: none; }
.kkf-quote-text {
  font-family: 'Lora', serif;
  font-style: italic;
  font-size: clamp(1.5rem, 3.5vw, 2.25rem);
  text-align: center;
  max-width: 48rem;
  margin: 0 auto;
  position: relative;
  z-index: 1;
  line-height: 1.4;
}

/* --------------------------------------------------------------------------
   22. Timeline (ported from index.css)
   -------------------------------------------------------------------------- */
.timeline-container { position: relative; width: 100%; max-width: 64rem; margin: 4rem auto 0; padding: 2rem 0; }
.timeline-connector { position: absolute; top: 0; bottom: 0; width: 4px; background-color: hsl(var(--timeline-line)); border-radius: 9999px; }
.timeline-item { position: relative; display: flex; align-items: center; margin-bottom: 4rem; }
.timeline-item:last-child { margin-bottom: 0; }

.timeline-icon-wrapper {
  position: absolute;
  display: flex; align-items: center; justify-content: center;
  width: 3.5rem; height: 3.5rem;
  border-radius: 9999px;
  background-color: hsl(var(--timeline-dot-bg));
  border: 4px solid hsl(var(--timeline-dot-border));
  z-index: 10;
  color: hsl(var(--primary));
  box-shadow: var(--shadow-md);
  transition: transform 0.3s, background-color 0.3s, color 0.3s;
}
.timeline-item:hover .timeline-icon-wrapper {
  transform: scale(1.1) translateX(-45%);
  background-color: hsl(var(--primary));
  color: hsl(var(--primary-foreground));
}

.timeline-content { width: 100%; }
.timeline-card {
  background-color: hsl(var(--card));
  border: 1px solid hsl(var(--border));
  border-radius: 1rem;
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.3s;
}
.timeline-card:hover { box-shadow: var(--shadow-md); }
.timeline-year {
  display: inline-block;
  padding: 0.375rem 1rem;
  background-color: hsl(var(--primary) / 0.1);
  color: hsl(var(--primary));
  font-weight: 700;
  border-radius: 9999px;
  font-size: 0.875rem;
  margin-bottom: 1rem;
}
.timeline-title { font-size: 1.25rem; margin-bottom: 0.75rem; }
.timeline-desc { color: hsl(var(--muted-foreground)); }

/* Desktop timeline layout */
@media (min-width: 768px) {
  .timeline-connector { left: 50%; transform: translateX(-50%); }
  .timeline-item { justify-content: space-between; }
  .timeline-item:nth-child(odd) { flex-direction: row-reverse; }
  .timeline-icon-wrapper { left: 50%; transform: translateX(-50%); }
  .timeline-item:hover .timeline-icon-wrapper { transform: scale(1.1) translateX(-45%); }
  .timeline-content { width: calc(50% - 4rem); }
}

/* Mobile timeline layout */
@media (max-width: 767px) {
  .timeline-connector { left: 1.75rem; }
  .timeline-icon-wrapper { left: 1.75rem; transform: translateX(-50%); }
  .timeline-item:hover .timeline-icon-wrapper { transform: scale(1.1) translateX(-45%); }
  .timeline-content { padding-left: 5rem; }
}

/* --------------------------------------------------------------------------
   23. Value / mission cards (about page)
   -------------------------------------------------------------------------- */
.kkf-value-card {
  background-color: hsl(var(--card));
  border: 1px solid hsl(var(--border));
  border-radius: 1.5rem;
  padding: 2.5rem;
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s, box-shadow 0.3s;
  height: 100%;
}
.kkf-value-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-xl); }

.kkf-value-card-icon {
  width: 64px; height: 64px; margin-bottom: 2rem;
  border-radius: 1rem;
  display: flex; align-items: center; justify-content: center;
}
.kkf-value-card--accent .kkf-value-card-icon { background-color: hsl(var(--accent) / 0.1); color: hsl(var(--accent)); }
.kkf-value-card--primary .kkf-value-card-icon { background-color: hsl(var(--primary) / 0.1); color: hsl(var(--primary)); }
.kkf-value-card--secondary .kkf-value-card-icon { background-color: hsl(var(--secondary) / 0.2); color: hsl(var(--foreground)); }
.kkf-value-card--mission .kkf-value-card-icon { width: 48px; height: 48px; border-radius: 9999px; background-color: hsl(var(--primary) / 0.1); color: hsl(var(--primary)); margin-bottom: 1.5rem; }
.kkf-value-card--vision .kkf-value-card-icon { width: 48px; height: 48px; border-radius: 9999px; background-color: hsl(var(--accent) / 0.1); color: hsl(var(--accent)); margin-bottom: 1.5rem; }

.kkf-value-card-title { font-size: 1.5rem; margin-bottom: 1rem; }
.kkf-value-card-desc { color: hsl(var(--muted-foreground)); }

/* --------------------------------------------------------------------------
   24. Inverted section (about page)
   -------------------------------------------------------------------------- */
.kkf-inverted { background-color: hsl(var(--foreground)); color: hsl(var(--background)); padding: 5rem 0; overflow: hidden; }
@media (min-width: 1024px) { .kkf-inverted { padding: 7rem 0; } }

.kkf-inverted-grid { display: grid; grid-template-columns: 1fr; gap: 3rem; align-items: center; }
@media (min-width: 1280px) { .kkf-inverted-grid { grid-template-columns: 5fr 7fr; } }

.kkf-inverted-eyebrow { color: hsl(var(--accent)); font-weight: 700; text-transform: uppercase; font-size: 0.875rem; letter-spacing: 0.05em; display: block; margin-bottom: 1rem; }
.kkf-inverted-title { color: hsl(var(--background)); font-size: clamp(1.875rem, 4vw, 2.5rem); margin-bottom: 1.5rem; }
.kkf-inverted-desc { color: hsl(var(--background) / 0.8); font-size: 1.125rem; margin-bottom: 2.5rem; max-width: 32rem; }

.kkf-inverted-cards { display: grid; grid-template-columns: 1fr; gap: 1.5rem; }
@media (min-width: 640px) { .kkf-inverted-cards { grid-template-columns: 1fr 1fr; } }

.kkf-inverted-card {
  background-color: hsl(var(--background) / 0.1);
  border: 1px solid hsl(var(--background) / 0.2);
  padding: 2rem;
  border-radius: 1.5rem;
  backdrop-filter: blur(4px);
  transition: background-color 0.3s;
}
.kkf-inverted-card:hover { background-color: hsl(var(--background) / 0.15); }
.kkf-inverted-card-icon { width: 48px; height: 48px; border-radius: 0.75rem; background: hsl(var(--background)); color: hsl(var(--foreground)); display: flex; align-items: center; justify-content: center; margin-bottom: 1.5rem; }
.kkf-inverted-card-title { font-size: 1.25rem; color: hsl(var(--background)); margin-bottom: 0.75rem; }
.kkf-inverted-card-desc { color: hsl(var(--background) / 0.8); }

/* --------------------------------------------------------------------------
   25. Sourcing principles (about page)
   -------------------------------------------------------------------------- */
.kkf-principle {
  background-color: hsl(var(--card));
  padding: 2.5rem;
  border-radius: 1.5rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid hsl(var(--border));
  transition: box-shadow 0.3s;
}
.kkf-principle:hover { box-shadow: var(--shadow-md); }
.kkf-principle-icon { width: 56px; height: 56px; border-radius: 1rem; background-color: hsl(var(--accent) / 0.1); color: hsl(var(--accent)); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.kkf-principle { display: flex; gap: 1.5rem; align-items: flex-start; }
@media (max-width: 639px) { .kkf-principle { flex-direction: column; } }
.kkf-principle-title { font-size: 1.25rem; margin-bottom: 0.75rem; }
.kkf-principle-desc { color: hsl(var(--muted-foreground)); }

/* --------------------------------------------------------------------------
   26. Single product page
   -------------------------------------------------------------------------- */
.kkf-single-grid { display: grid; grid-template-columns: 1fr; gap: 3rem; margin-bottom: 5rem; }
@media (min-width: 1024px) { .kkf-single-grid { grid-template-columns: 1fr 1fr; gap: 4rem; } }

.kkf-single-img {
  aspect-ratio: 1 / 1;
  border-radius: 1.5rem;
  overflow: hidden;
  background-color: hsl(var(--muted));
  border: 1px solid hsl(var(--border));
  box-shadow: var(--shadow-sm);
}
.kkf-single-img img { width: 100%; height: 100%; object-fit: cover; mix-blend-mode: multiply; }

.kkf-single-title { font-size: clamp(2rem, 4vw, 3rem); font-weight: 900; margin-bottom: 1rem; }

.kkf-single-langs { border-bottom: 1px solid hsl(var(--border)); padding-bottom: 1.5rem; margin-bottom: 2rem; }
.kkf-single-langs p { font-size: 1.125rem; color: hsl(var(--muted-foreground)); margin-bottom: 0.5rem; }

.kkf-single-badges { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 2rem; }
.kkf-single-badges .kkf-badge { padding: 0.5rem 1rem; font-size: 0.875rem; }

.kkf-single-desc { font-size: 1.125rem; color: hsl(var(--muted-foreground)); margin-bottom: 2.5rem; line-height: 1.625; }
.kkf-single-desc p { max-width: none; }

.kkf-size-selector { background-color: hsl(var(--card)); border: 1px solid hsl(var(--border)); padding: 1.5rem; border-radius: 1rem; box-shadow: var(--shadow-sm); margin-bottom: 2.5rem; }
.kkf-size-selector-label { font-size: 0.875rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 1rem; }
.kkf-size-buttons { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.kkf-size-btn {
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 1rem;
  border: 2px solid hsl(var(--border));
  background-color: hsl(var(--background));
  color: hsl(var(--muted-foreground));
  cursor: pointer;
  transition: all 0.2s;
}
.kkf-size-btn:hover { border-color: hsl(var(--primary) / 0.5); color: hsl(var(--foreground)); }
.kkf-size-btn.is-selected { border-color: hsl(var(--primary)); background-color: hsl(var(--primary) / 0.1); color: hsl(var(--primary)); }

.kkf-single-benefits { margin-bottom: 2.5rem; }
.kkf-single-benefits-title { font-size: 1.25rem; margin-bottom: 1.25rem; }
.kkf-benefits-list { display: flex; flex-direction: column; gap: 1rem; }
.kkf-benefits-item { display: flex; align-items: flex-start; gap: 0.75rem; }
.kkf-benefits-icon { color: hsl(var(--accent)); flex-shrink: 0; }
.kkf-benefits-item span:last-child { font-size: 1.125rem; color: hsl(var(--muted-foreground)); }

.kkf-single-order { box-shadow: 0 4px 12px hsl(var(--primary) / 0.2); }

.kkf-info-grid { margin-bottom: 6rem; }
.kkf-info-card { background: #fff; border: 1px solid hsl(var(--border)); padding: 2.5rem; border-radius: 1.5rem; box-shadow: var(--shadow-sm); transition: box-shadow 0.3s; }
.kkf-info-card:hover { box-shadow: var(--shadow-md); }
.kkf-info-card-title { font-size: 1.25rem; margin-bottom: 1rem; }
.kkf-info-card-text { color: hsl(var(--muted-foreground)); font-size: 1.125rem; }

.kkf-related-title { font-size: 1.875rem; margin-bottom: 2.5rem; }
.kkf-related-card { background: #fff; border-radius: 1rem; overflow: hidden; box-shadow: var(--shadow-sm); border: 1px solid hsl(var(--border)); display: block; transition: box-shadow 0.3s; }
.kkf-related-card:hover { box-shadow: var(--shadow-lg); }
.kkf-related-card-img { aspect-ratio: 1 / 1; overflow: hidden; background-color: hsl(var(--muted)); }
.kkf-related-card-img img { width: 100%; height: 100%; object-fit: cover; mix-blend-mode: multiply; transition: transform 0.5s; }
.kkf-related-card:hover .kkf-related-card-img img { transform: scale(1.05); }
.kkf-related-card-body { padding: 1.5rem; }
.kkf-related-card-title { font-size: 1.25rem; margin-bottom: 0.5rem; transition: color 0.2s; }
.kkf-related-card:hover .kkf-related-card-title { color: hsl(var(--primary)); }
.kkf-related-card-mal { font-size: 0.875rem; color: hsl(var(--muted-foreground)); }

/* --------------------------------------------------------------------------
   27. Gallery
   -------------------------------------------------------------------------- */
.kkf-gallery-wrap { background-color: hsl(var(--background)); padding: 3rem 0; }
.kkf-gallery-section { padding: 3rem 0; border-bottom: 1px solid hsl(var(--border)); }
.kkf-gallery-section:last-child { border-bottom: none; }
.kkf-gallery-title { font-size: clamp(1.5rem, 3vw, 1.875rem); margin-bottom: 2rem; }

.kkf-masonry { column-count: 1; column-gap: 1.5rem; }
@media (min-width: 640px) { .kkf-masonry { column-count: 2; } }
@media (min-width: 1024px) { .kkf-masonry { column-count: 3; } }

.kkf-gallery-item { break-inside: avoid; margin-bottom: 1.5rem; cursor: pointer; }
.kkf-gallery-img-wrap { position: relative; overflow: hidden; border-radius: 1rem; box-shadow: var(--shadow-sm); border: 1px solid hsl(var(--border)); background: hsl(var(--muted)); }
.kkf-gallery-img-wrap img { width: 100%; height: auto; object-fit: cover; transition: transform 0.3s; }
.kkf-gallery-item:hover .kkf-gallery-img-wrap img { transform: scale(1.05); }

.kkf-gallery-overlay { position: absolute; inset: 0; background: linear-gradient(to top, hsl(0 0% 0% / 0.7), transparent); opacity: 0; transition: opacity 0.3s; }
.kkf-gallery-item:hover .kkf-gallery-overlay { opacity: 1; }
.kkf-gallery-overlay-caption { position: absolute; bottom: 0; left: 0; right: 0; padding: 1rem; color: #fff; font-weight: 600; font-size: 0.875rem; }

/* Lightbox */
.kkf-lightbox {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  background: hsl(0 0% 0% / 0.9);
}
.kkf-lightbox.is-open { display: flex; }
.kkf-lightbox-close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  background: transparent;
  border: none;
  color: #fff;
  cursor: pointer;
  padding: 0.5rem;
  z-index: 2;
}
.kkf-lightbox-close:hover { color: hsl(var(--secondary)); }
.kkf-lightbox-inner { max-width: 56rem; width: 100%; }
.kkf-lightbox-img { max-height: 75vh; width: 100%; object-fit: contain; border-radius: 1rem 1rem 0 0; background: hsl(0 0% 0% / 0.8); }
.kkf-lightbox-caption { background: #fff; padding: 1.5rem; border-radius: 0 0 1rem 1rem; }
.kkf-lightbox-caption-text { font-weight: 600; font-size: 1.125rem; margin-bottom: 0.25rem; }
.kkf-lightbox-caption-category { font-size: 0.875rem; color: hsl(var(--muted-foreground)); }

/* --------------------------------------------------------------------------
   28. Contact page
   -------------------------------------------------------------------------- */
.kkf-contact-grid { display: grid; grid-template-columns: 1fr; gap: 3rem; margin-bottom: 4rem; }
@media (min-width: 1024px) { .kkf-contact-grid { grid-template-columns: 1fr 1fr; } }

.kkf-contact-list { display: flex; flex-direction: column; gap: 1.5rem; margin-bottom: 2rem; }
.kkf-contact-item { display: flex; align-items: flex-start; gap: 1rem; }
.kkf-contact-icon { color: hsl(145 100% 33%); flex-shrink: 0; margin-top: 0.25rem; }
.kkf-contact-label { font-weight: 600; margin-bottom: 0.25rem; }
.kkf-contact-value { color: hsl(0 0% 20%); }
.kkf-contact-value a { color: hsl(0 0% 20%); }
.kkf-contact-value a:hover { color: hsl(var(--primary)); }

.kkf-contact-form-wrap, .kkf-contact-form {
  background-color: hsl(48 67% 94%);
  padding: 2rem;
  border-radius: 1rem;
}
.kkf-contact-form-wrap h3 { font-size: 1.5rem; margin-bottom: 1.5rem; }

.kkf-form-row { margin-bottom: 1rem; }
.kkf-form-row label { display: block; font-size: 0.875rem; font-weight: 600; margin-bottom: 0.5rem; }
.kkf-req { color: hsl(var(--primary)); }
.kkf-form-row input,
.kkf-form-row select,
.kkf-form-row textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid hsl(var(--border));
  border-radius: var(--radius);
  background: #fff;
  color: hsl(var(--foreground));
  font-family: inherit;
  font-size: 1rem;
  transition: border-color 0.2s;
}
.kkf-form-row input:focus,
.kkf-form-row select:focus,
.kkf-form-row textarea:focus {
  outline: none;
  border-color: hsl(var(--primary));
  box-shadow: 0 0 0 3px hsl(var(--primary) / 0.1);
}
.kkf-form-row textarea { min-height: 120px; resize: vertical; }

.kkf-form-submit { display: flex; flex-direction: column; gap: 0.75rem; align-items: flex-start; }
@media (min-width: 640px) { .kkf-form-submit { flex-direction: row; align-items: center; } }
.kkf-form-note { font-size: 0.8125rem; color: hsl(var(--muted-foreground)); }

.kkf-form-msg { padding: 0.875rem 1rem; border-radius: var(--radius); font-size: 0.9375rem; margin-bottom: 1rem; }
.kkf-form-msg--success { background-color: hsl(145 70% 90%); color: hsl(145 70% 20%); border: 1px solid hsl(145 70% 70%); }
.kkf-form-msg--error { background-color: hsl(0 84% 95%); color: hsl(0 84% 30%); border: 1px solid hsl(0 84% 80%); }

/* Honeypot — visually hidden but present in DOM */
.kkf-honeypot { position: absolute; left: -9999px; top: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Per-field validation errors (injected by contact.js from server response) */
.kkf-field-error {
  margin: 0.4rem 0 0;
  font-size: 0.8125rem;
  color: hsl(0 84% 35%);
  font-weight: 500;
}
.kkf-form-row.has-error input,
.kkf-form-row.has-error select,
.kkf-form-row.has-error textarea {
  border-color: hsl(0 84% 60%);
  box-shadow: 0 0 0 1px hsl(0 84% 60%);
}

.kkf-map-wrap { aspect-ratio: 16 / 9; border-radius: 1rem; overflow: hidden; box-shadow: var(--shadow-lg); margin-bottom: 4rem; }
.kkf-map-wrap iframe { width: 100%; height: 100%; border: 0; display: block; }

.kkf-info-block { background-color: hsl(48 67% 94%); padding: 2rem; border-radius: 1rem; }
.kkf-info-block-title { font-size: 1.25rem; margin-bottom: 1rem; }
.kkf-info-block-text { color: hsl(0 0% 20%); }

/* --------------------------------------------------------------------------
   29. 404 page
   -------------------------------------------------------------------------- */
.kkf-notfound { min-height: 60vh; display: flex; align-items: center; justify-content: center; padding: 3rem 0; }
.kkf-notfound-code { font-family: 'Montserrat', sans-serif; font-size: 6rem; font-weight: 900; color: hsl(var(--primary)); line-height: 1; margin-bottom: 1rem; }
.kkf-notfound-title { margin-bottom: 1rem; }
.kkf-notfound-desc { color: hsl(var(--muted-foreground)); font-size: 1.125rem; margin-bottom: 2rem; }
.kkf-notfound-actions { display: flex; flex-direction: column; gap: 1rem; justify-content: center; }
@media (min-width: 640px) { .kkf-notfound-actions { flex-direction: row; } }

/* --------------------------------------------------------------------------
   30. Icons
   -------------------------------------------------------------------------- */
.kkf-icon { display: inline-block; vertical-align: middle; }
.kkf-icon svg { display: block; }

/* --------------------------------------------------------------------------
   31. Scroll-reveal animations (replaces Framer Motion)
   -------------------------------------------------------------------------- */
.kkf-reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}
.kkf-reveal.kkf-in-view { opacity: 1; transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
  .kkf-reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
  * { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

/* --------------------------------------------------------------------------
   32. WordPress core alignment classes
   -------------------------------------------------------------------------- */
.alignwide { max-width: 100%; }
.alignfull { max-width: 100%; margin-left: 0; margin-right: 0; }
.wp-caption { max-width: 100%; }
.wp-caption-text { font-size: 0.875rem; color: hsl(var(--muted-foreground)); text-align: center; }
.screen-reader-text {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(1px, 1px, 1px, 1px);
  white-space: nowrap;
}
.gallery-caption { font-size: 0.875rem; color: hsl(var(--muted-foreground)); }

/* Sticky footer layout */
.kkf-site { display: flex; flex-direction: column; min-height: 100vh; }
.kkf-main { flex: 1 0 auto; }

/* ==========================================================================
   33. Fallback templates — slim hero, post lists, single, search, pagination
   Styles for index.php / page.php / single.php / archive.php / search.php.
   Uses the same HSL design tokens as the rest of the theme.
   ========================================================================== */

/* Slim hero — shorter variant for inner/listing pages -------------------- */
.kkf-hero--slim {
  min-height: 0;
  padding: 4.5rem 0 3rem;
  background:
    linear-gradient(135deg, hsl(var(--primary) / 0.92), hsl(24 30% 18% / 0.92)),
    hsl(24 20% 12%);
}
.kkf-hero--slim .kkf-hero-overlay { background: hsl(0 0% 0% / 0.25); }
.kkf-hero--slim .kkf-hero-content {
  max-width: var(--container-max);
  padding: 0 1rem;
  text-align: left;
}
.kkf-hero--slim .kkf-hero-title {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  margin-bottom: 0.5rem;
}
.kkf-hero--slim .kkf-breadcrumb { margin-bottom: 1rem; }
.kkf-hero--slim .kkf-breadcrumb-list { color: hsl(0 0% 100% / 0.85); }
.kkf-hero--slim .kkf-breadcrumb-item[aria-current="page"] { color: #fff; }
.kkf-hero--slim .kkf-hero-editorial {
  color: hsl(0 0% 100% / 0.9);
  margin-top: 0.75rem;
  max-width: 48rem;
}
/* Meta shown inside the slim hero (single posts) */
.kkf-post-meta--hero {
  color: hsl(0 0% 100% / 0.9);
  margin-top: 0.75rem;
  font-size: 0.9rem;
}
.kkf-post-meta--hero .kkf-post-meta-sep { color: hsl(0 0% 100% / 0.6); }

/* Post list (blog index / archive / search) ------------------------------ */
.kkf-post-list {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}
.kkf-post {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 1.5rem;
  align-items: start;
  background-color: hsl(var(--card));
  border: 1px solid hsl(var(--border));
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.2s, transform 0.2s;
}
.kkf-post:hover { box-shadow: var(--shadow-md); }
.kkf-post-thumb {
  display: block;
  border-radius: calc(var(--radius) - 0.25rem);
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background-color: hsl(var(--muted));
}
.kkf-post-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.kkf-post-body { display: flex; flex-direction: column; gap: 0.75rem; }
.kkf-post-title {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.375rem;
  line-height: 1.3;
  margin: 0;
}
.kkf-post-title a { color: hsl(var(--foreground)); text-decoration: none; }
.kkf-post-title a:hover { color: hsl(var(--primary)); }
.kkf-post-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: hsl(var(--muted-foreground));
}
.kkf-post-meta a { color: hsl(var(--muted-foreground)); text-decoration: none; }
.kkf-post-meta a:hover { color: hsl(var(--primary)); }
.kkf-post-meta-sep { color: hsl(var(--muted-foreground) / 0.6); }
.kkf-post-excerpt {
  color: hsl(var(--muted-foreground));
  font-size: 1rem;
  line-height: 1.6;
}
.kkf-post-excerpt p { margin: 0; }
.kkf-post-excerpt p + p { margin-top: 0.75rem; }

/* Generic page (page.php) ------------------------------------------------ */
.kkf-page-featured {
  margin-bottom: 2rem;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}
.kkf-page-featured img { width: 100%; height: auto; display: block; }
.kkf-page-content { font-size: 1.0625rem; line-height: 1.75; color: hsl(var(--foreground)); }
.kkf-page-content > *:first-child { margin-top: 0; }
.kkf-page-content > *:last-child { margin-bottom: 0; }
.kkf-page-links {
  margin: 2rem 0 0;
  padding-top: 1.5rem;
  border-top: 1px solid hsl(var(--border));
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
}
.kkf-page-links a { color: hsl(var(--primary)); }

/* Single post (single.php) ----------------------------------------------- */
.kkf-post-single { margin-top: 0; }
.kkf-post-taxonomy {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 2rem;
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid hsl(var(--border));
  font-size: 0.9rem;
}
.kkf-post-taxonomy-group { display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: baseline; }
.kkf-post-taxonomy-label {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  color: hsl(var(--foreground));
}
.kkf-post-taxonomy a { color: hsl(var(--primary)); text-decoration: none; }
.kkf-post-taxonomy a:hover { text-decoration: underline; }

/* Post navigation (the_post_navigation) ---------------------------------- */
.post-navigation {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid hsl(var(--border));
}
.post-navigation .nav-links {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.post-navigation .nav-previous,
.post-navigation .nav-next {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding: 1rem 1.25rem;
  background-color: hsl(var(--card));
  border: 1px solid hsl(var(--border));
  border-radius: var(--radius);
  transition: box-shadow 0.2s, border-color 0.2s;
}
.post-navigation .nav-previous:hover,
.post-navigation .nav-next:hover {
  box-shadow: var(--shadow-sm);
  border-color: hsl(var(--primary) / 0.4);
}
.post-navigation a { text-decoration: none; color: hsl(var(--foreground)); }
.post-navigation a:hover .kkf-nav-title { color: hsl(var(--primary)); }
.kkf-nav-prev-label,
.kkf-nav-next-label {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: hsl(var(--muted-foreground));
}
.kkf-nav-title { font-family: 'Montserrat', sans-serif; font-weight: 600; font-size: 1.05rem; }

/* Search form (get_search_form) ------------------------------------------ */
.kkf-search-form-wrap { margin-bottom: 2rem; }
.search-form {
  display: flex;
  gap: 0.5rem;
  max-width: 36rem;
}
.search-field {
  flex: 1;
  padding: 0.75rem 1rem;
  border: 1px solid hsl(var(--border));
  border-radius: var(--radius);
  background-color: hsl(var(--card));
  color: hsl(var(--foreground));
  font-size: 1rem;
  font-family: 'Montserrat', sans-serif;
}
.search-field:focus {
  outline: 2px solid hsl(var(--ring));
  outline-offset: 1px;
  border-color: hsl(var(--primary));
}
.search-submit {
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: var(--radius);
  background-color: hsl(var(--primary));
  color: hsl(var(--primary-foreground));
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  cursor: pointer;
  transition: filter 0.2s;
}
.search-submit:hover { filter: brightness(1.1); }
.kkf-search-count {
  margin: 0 0 1.5rem;
  font-size: 0.95rem;
  color: hsl(var(--muted-foreground));
}
.kkf-search-term { color: hsl(var(--primary)); font-weight: 700; }

/* Pagination (the_posts_pagination) -------------------------------------- */
.pagination { margin-top: 3rem; }
.nav-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
}
.page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.5rem;
  height: 2.5rem;
  padding: 0 0.75rem;
  border: 1px solid hsl(var(--border));
  border-radius: var(--radius);
  background-color: hsl(var(--card));
  color: hsl(var(--foreground));
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  transition: background-color 0.2s, border-color 0.2s, color 0.2s;
}
.page-numbers:hover {
  border-color: hsl(var(--primary));
  color: hsl(var(--primary));
}
.page-numbers.current {
  background-color: hsl(var(--primary));
  color: hsl(var(--primary-foreground));
  border-color: hsl(var(--primary));
}
.page-numbers.dots { border-color: transparent; background: none; }

/* Empty state (no posts / no search results) ----------------------------- */
.kkf-empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 1rem;
  padding: 4rem 1.5rem;
  background-color: hsl(var(--card));
  border: 1px solid hsl(var(--border));
  border-radius: var(--radius);
}
.kkf-empty-state svg,
.kkf-empty-state .kkf-icon { color: hsl(var(--muted-foreground) / 0.6); margin-bottom: 0.5rem; }
.kkf-empty-state .kkf-section-title { margin: 0; }
.kkf-empty-state .kkf-section-subtitle { margin: 0; }

/* Responsive: stack post card on narrow screens -------------------------- */
@media (max-width: 640px) {
  .kkf-post {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  .kkf-post-thumb { max-width: 100%; aspect-ratio: 16 / 9; }
  .post-navigation .nav-links { gap: 0.75rem; }
}
