@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,700;1,400&family=Work+Sans:wght@300;400;500;600&display=swap');

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

:root {
  --kc-espresso: #3E2723;
  --kc-copper: #B87333;
  --kc-foam: #F5E6D3;
  --kc-font-head: 'Playfair Display', serif;
  --kc-font-body: 'Work Sans', sans-serif;
  --kc-sidebar: 72px;
}

html { scroll-behavior: smooth; }

.kc-body {
  font-family: var(--kc-font-body);
  background: var(--kc-foam);
  color: var(--kc-espresso);
  line-height: 1.7;
  margin-left: var(--kc-sidebar);
  min-height: 100vh;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--kc-copper); text-decoration: none; }

/* Left icon bar nav */
.kc-sidebar {
  position: fixed;
  left: 0;
  top: 0;
  bottom: 0;
  width: var(--kc-sidebar);
  background: var(--kc-espresso);
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 1.25rem 0;
  z-index: 200;
  gap: 0.5rem;
}

.kc-sidebar-logo {
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  font-family: var(--kc-font-head);
  color: var(--kc-foam);
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  margin-bottom: 1.5rem;
  text-decoration: none;
  white-space: nowrap;
}

.kc-sidebar a {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(245,230,211,0.5);
  border-radius: 50%;
  transition: color 0.2s, background 0.2s;
  position: relative;
}

.kc-sidebar a:hover,
.kc-sidebar a.kc-active {
  color: var(--kc-copper);
  background: rgba(184,115,51,0.15);
}

.kc-sidebar a::after {
  content: attr(data-label);
  position: absolute;
  left: calc(100% + 12px);
  background: var(--kc-espresso);
  color: var(--kc-foam);
  padding: 0.35rem 0.75rem;
  font-size: 0.75rem;
  white-space: nowrap;
  border-radius: 4px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s;
}

.kc-sidebar a:hover::after { opacity: 1; }

.kc-mobile-toggle {
  display: none;
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--kc-copper);
  color: #fff;
  border: none;
  font-size: 1.25rem;
  cursor: pointer;
  z-index: 300;
  box-shadow: 0 4px 20px rgba(62,39,35,0.4);
}

/* Full bleed hero */
.kc-hero-full {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: flex-end;
}

.kc-hero-full img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.kc-hero-full::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(62,39,35,0.92) 0%, transparent 60%);
}

.kc-hero-content {
  position: relative;
  z-index: 2;
  padding: 4rem 3rem;
  max-width: 680px;
}

.kc-hero-content h1 {
  font-family: var(--kc-font-head);
  font-size: clamp(2.5rem, 6vw, 4rem);
  color: var(--kc-foam);
  line-height: 1.1;
  margin-bottom: 1rem;
}

.kc-hero-content p { color: rgba(245,230,211,0.85); font-size: 1.15rem; margin-bottom: 2rem; }

.kc-btn {
  display: inline-block;
  padding: 0.9rem 2rem;
  background: var(--kc-copper);
  color: #fff;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  font-size: 0.85rem;
  border: none;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.2s;
}

.kc-btn:hover { background: #9a5f2a; text-decoration: none; color: #fff; }
.kc-btn-ghost { background: transparent; border: 2px solid var(--kc-foam); }
.kc-btn-ghost:hover { background: var(--kc-foam); color: var(--kc-espresso); }

.kc-main { padding: 0; }

.kc-block { padding: 5rem 3rem; }
.kc-block-dark { background: var(--kc-espresso); color: var(--kc-foam); }
.kc-block-copper { background: var(--kc-copper); color: #fff; }

.kc-wrap { max-width: 1100px; margin: 0 auto; }

.kc-title {
  font-family: var(--kc-font-head);
  font-size: clamp(1.75rem, 3vw, 2.75rem);
  margin-bottom: 0.75rem;
}

.kc-subtitle { opacity: 0.75; margin-bottom: 2.5rem; max-width: 520px; }

/* Roast slider widget */
.kc-roast-widget {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
  background: #fff;
  padding: 2.5rem;
  box-shadow: 0 8px 40px rgba(62,39,35,0.08);
}

.kc-roast-visual {
  text-align: center;
}

.kc-bean-circle {
  width: 180px;
  height: 180px;
  border-radius: 50%;
  margin: 0 auto 1.5rem;
  background: #C4A882;
  transition: background 0.4s;
  box-shadow: inset 0 -20px 40px rgba(0,0,0,0.2);
}

.kc-roast-name {
  font-family: var(--kc-font-head);
  font-size: 1.75rem;
  color: var(--kc-espresso);
}

.kc-roast-notes { color: #666; margin-top: 0.5rem; font-style: italic; }

.kc-slider-wrap label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.75rem;
  text-transform: uppercase;
  font-size: 0.8rem;
  letter-spacing: 0.1em;
}

.kc-slider-wrap input[type="range"] {
  width: 100%;
  accent-color: var(--kc-copper);
  margin-bottom: 1rem;
}

.kc-roast-labels {
  display: flex;
  justify-content: space-between;
  font-size: 0.75rem;
  color: #888;
}

/* Brewing steps horizontal */
.kc-steps-row {
  display: flex;
  gap: 0;
  overflow-x: auto;
  padding-bottom: 1rem;
}

.kc-step {
  flex: 1;
  min-width: 180px;
  text-align: center;
  padding: 2rem 1.25rem;
  border-right: 1px solid rgba(184,115,51,0.2);
  position: relative;
}

.kc-step:last-child { border-right: none; }

.kc-step-num {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--kc-copper);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
  font-weight: 700;
}

.kc-step h3 { font-family: var(--kc-font-head); font-size: 1.1rem; margin-bottom: 0.5rem; }
.kc-step p { font-size: 0.9rem; opacity: 0.8; }

/* Origins grid */
.kc-origins {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.kc-origin-card {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4/3;
}

.kc-origin-card img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s; }
.kc-origin-card:hover img { transform: scale(1.05); }

.kc-origin-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(62,39,35,0.85), transparent);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.25rem;
  color: var(--kc-foam);
}

.kc-origin-overlay h3 { font-family: var(--kc-font-head); }

/* Testimonials */
.kc-testimonials {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

.kc-testimonial {
  background: rgba(245,230,211,0.08);
  padding: 2rem;
  border-left: 3px solid var(--kc-copper);
}

.kc-testimonial p { font-family: var(--kc-font-head); font-style: italic; font-size: 1.1rem; margin-bottom: 1rem; }
.kc-testimonial cite { font-style: normal; font-size: 0.85rem; opacity: 0.7; }

/* Page header */
.kc-page-head {
  padding: 4rem 3rem 3rem;
  background: var(--kc-espresso);
  color: var(--kc-foam);
}

.kc-page-head h1 { font-family: var(--kc-font-head); font-size: 2.75rem; }
.kc-crumb { font-size: 0.85rem; opacity: 0.6; margin-bottom: 0.75rem; }
.kc-crumb a { color: var(--kc-copper); }

/* Services list style */
.kc-svc-list { list-style: none; }
.kc-svc-list li {
  display: grid;
  grid-template-columns: 60px 1fr auto;
  gap: 1.5rem;
  align-items: center;
  padding: 2rem 0;
  border-bottom: 1px solid rgba(184,115,51,0.2);
}

.kc-svc-list i { font-size: 1.75rem; color: var(--kc-copper); }
.kc-svc-list h3 { font-family: var(--kc-font-head); margin-bottom: 0.25rem; }

/* About timeline vertical */
.kc-v-timeline { border-left: 2px solid var(--kc-copper); padding-left: 2rem; }
.kc-v-timeline-item { margin-bottom: 2.5rem; position: relative; }
.kc-v-timeline-item::before {
  content: '';
  position: absolute;
  left: -2.45rem;
  top: 0.35rem;
  width: 12px;
  height: 12px;
  background: var(--kc-copper);
  border-radius: 50%;
}
.kc-v-timeline-item span { font-size: 0.85rem; color: var(--kc-copper); font-weight: 600; }
.kc-v-timeline-item h3 { font-family: var(--kc-font-head); margin: 0.25rem 0; }

/* Contact split */
.kc-contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
}

.kc-contact-map {
  background: var(--kc-espresso);
  color: var(--kc-foam);
  padding: 3rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.kc-contact-map li { list-style: none; margin-bottom: 1.5rem; display: flex; gap: 1rem; }
.kc-contact-map i { color: var(--kc-copper); width: 20px; }

.kc-form-panel { padding: 3rem; background: #fff; }
.kc-form label { display: block; font-size: 0.85rem; font-weight: 600; margin-bottom: 0.35rem; }
.kc-form input, .kc-form textarea, .kc-form select {
  width: 100%;
  padding: 0.8rem;
  border: 1px solid #ddd;
  margin-bottom: 1rem;
  font-family: inherit;
  background: var(--kc-foam);
}

.kc-form textarea { min-height: 120px; resize: vertical; }
.kc-form-msg { margin-top: 0.75rem; display: none; padding: 0.75rem; }
.kc-form-msg.kc-show { display: block; }
.kc-form-msg.kc-success { background: #d4edda; color: #155724; }

/* Prose */
.kc-prose h2 { font-family: var(--kc-font-head); margin: 2rem 0 0.75rem; font-size: 1.35rem; }
.kc-prose p, .kc-prose li { margin-bottom: 0.75rem; }
.kc-prose ul { padding-left: 1.5rem; }

/* Footer — 4 column */
.kc-footer {
  background: var(--kc-espresso);
  color: rgba(245,230,211,0.7);
  padding: 4rem 3rem 2rem;
}

.kc-footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 2rem;
  max-width: 1100px;
  margin: 0 auto;
}

.kc-footer-brand {
  font-family: var(--kc-font-head);
  font-size: 1.5rem;
  color: var(--kc-foam);
  margin-bottom: 1rem;
}

.kc-footer-col h4 {
  color: var(--kc-copper);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 1rem;
}

.kc-footer-col a {
  display: block;
  color: rgba(245,230,211,0.7);
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
}

.kc-footer-col a:hover { color: var(--kc-foam); }

.kc-footer-bar {
  max-width: 1100px;
  margin: 2rem auto 0;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(245,230,211,0.1);
  text-align: center;
  font-size: 0.85rem;
}

/* Cookie modal center */
.kc-cookie-overlay {
  position: fixed;
  inset: 0;
  background: rgba(62,39,35,0.6);
  z-index: 9998;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s;
  padding: 1rem;
}

.kc-cookie-overlay.kc-visible { opacity: 1; visibility: visible; }

.kc-cookie-modal {
  background: #fff;
  max-width: 480px;
  width: 100%;
  padding: 2.5rem;
  text-align: center;
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}

.kc-cookie-modal i { font-size: 2.5rem; color: var(--kc-copper); margin-bottom: 1rem; }
.kc-cookie-modal h3 { font-family: var(--kc-font-head); margin-bottom: 0.75rem; }
.kc-cookie-modal p { font-size: 0.9rem; color: #666; margin-bottom: 1.5rem; }
.kc-cookie-modal p a { color: var(--kc-copper); }

.kc-cookie-actions { display: flex; gap: 0.75rem; justify-content: center; }

.kc-cookie-actions button {
  padding: 0.75rem 1.5rem;
  border: none;
  cursor: pointer;
  font-family: inherit;
  font-weight: 600;
  font-size: 0.9rem;
}

#kc-cookie-accept { background: var(--kc-copper); color: #fff; }
#kc-cookie-decline { background: var(--kc-foam); color: var(--kc-espresso); }

@media (max-width: 900px) {
  .kc-body { margin-left: 0; margin-bottom: 60px; }
  .kc-sidebar {
    top: auto;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    height: 60px;
    flex-direction: row;
    justify-content: space-around;
    padding: 0;
  }
  .kc-sidebar-logo { display: none; }
  .kc-sidebar a::after { display: none; }
  .kc-roast-widget, .kc-contact-grid, .kc-origins, .kc-testimonials, .kc-footer-grid { grid-template-columns: 1fr; }
  .kc-block { padding: 3rem 1.5rem; }
  .kc-hero-content { padding: 2rem 1.5rem; }
}

@media (max-width: 600px) {
  .kc-steps-row { flex-direction: column; }
  .kc-step { border-right: none; border-bottom: 1px solid rgba(184,115,51,0.2); }
}
