/*
Theme Name: Kohat Chai
Theme URI: https://kc.aromanish.com
Author: AromaNish
Author URI: https://aromanish.com
Description: A warm, artisan WordPress theme for Kohat Chai — evoking handcrafted chai culture with an earthy, inviting aesthetic.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 8.0
License: GPL v2 or later
Text Domain: kohat-chai
Tags: blog, custom-menu, custom-logo, featured-images, full-width-template, theme-options, footer-widgets
*/

/* ===== DESIGN TOKENS ===== */
:root {
  --chai-brown:   #5C3A1E;
  --clay-red:     #A64B2A;
  --saffron:      #D4933A;
  --cream:        #F5ECD7;
  --parchment:    #EFE0C0;
  --steam-white:  #FAF6EF;
  --ink:          #1F130A;
  --muted:        #7A6352;
  --border:       #D9C4A0;

  --font-display: 'Playfair Display', Georgia, serif;
  --font-body:    'Lato', system-ui, sans-serif;

  --radius: 4px;
  --container: 1160px;
  --shadow: 0 2px 16px rgba(92,58,30,0.10);
}

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

html { font-size: 16px; scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--steam-white);
  color: var(--ink);
  line-height: 1.7;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--clay-red); text-decoration: none; transition: color .2s; }
a:hover { color: var(--chai-brown); }

/* ===== TYPOGRAPHY ===== */
h1,h2,h3,h4,h5,h6 {
  font-family: var(--font-display);
  color: var(--chai-brown);
  line-height: 1.25;
  font-weight: 700;
}
h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.4rem); }
h3 { font-size: 1.4rem; }
h4 { font-size: 1.15rem; }
p { margin-bottom: 1.2rem; }
.entry-content p:last-child { margin-bottom: 0; }

/* ===== LAYOUT ===== */
.kc-container { max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.kc-section { padding: 72px 0; }
.kc-section--alt { background: var(--cream); }
.kc-section--dark { background: var(--chai-brown); color: var(--cream); }
.kc-section--dark h2, .kc-section--dark h3 { color: var(--saffron); }

/* ===== HEADER ===== */
.kc-header {
  background: var(--chai-brown);
  position: sticky; top: 0; z-index: 100;
  box-shadow: 0 2px 8px rgba(0,0,0,.18);
}
.kc-header__inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 70px;
}
.kc-logo a {
  font-family: var(--font-display);
  font-size: 1.6rem; font-weight: 700;
  color: var(--saffron) !important;
  letter-spacing: .5px;
}
.kc-logo img { max-height: 52px; width: auto; }

/* Nav */
.kc-nav ul { list-style: none; display: flex; gap: 6px; }
.kc-nav ul li a {
  color: var(--cream);
  font-size: .92rem; font-weight: 600;
  padding: 8px 14px; border-radius: var(--radius);
  letter-spacing: .3px;
  transition: background .2s, color .2s;
}
.kc-nav ul li a:hover,
.kc-nav ul li.current-menu-item > a {
  background: var(--saffron); color: var(--chai-brown);
}
.kc-nav ul li.menu-item-has-children { position: relative; }
.kc-nav ul li ul {
  display: none; position: absolute; top: 110%; left: 0;
  background: var(--chai-brown);
  min-width: 200px; flex-direction: column;
  border-top: 2px solid var(--saffron);
  box-shadow: var(--shadow);
  gap: 0;
}
.kc-nav ul li:hover > ul { display: flex; }
.kc-nav ul li ul li a { display: block; border-radius: 0; }

/* Hamburger */
.kc-hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; background: none; border: none; padding: 4px; }
.kc-hamburger span { width: 24px; height: 2px; background: var(--cream); display: block; transition: .3s; }

/* ===== HERO ===== */
.kc-hero {
  background: linear-gradient(135deg, var(--chai-brown) 0%, #3B2010 100%);
  min-height: 88vh; display: flex; align-items: center;
  position: relative; overflow: hidden;
}
.kc-hero::before {
  content: '';
  position: absolute; inset: 0;
  background: url('assets/img/hero-pattern.svg') center/cover;
  opacity: .06;
}
.kc-hero__content { position: relative; z-index: 1; max-width: 680px; }
.kc-hero__eyebrow {
  font-size: .8rem; letter-spacing: 3px; text-transform: uppercase;
  color: var(--saffron); font-weight: 700; margin-bottom: 20px;
}
.kc-hero h1 { color: var(--cream); margin-bottom: 22px; }
.kc-hero p { color: var(--parchment); font-size: 1.15rem; margin-bottom: 36px; max-width: 520px; }
.kc-btn {
  display: inline-block; padding: 14px 34px;
  border-radius: var(--radius);
  font-weight: 700; font-size: .95rem; letter-spacing: .5px;
  transition: transform .15s, box-shadow .15s;
}
.kc-btn:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(0,0,0,.2); }
.kc-btn--primary { background: var(--saffron); color: var(--chai-brown); }
.kc-btn--outline { border: 2px solid var(--cream); color: var(--cream); margin-left: 12px; }
.kc-btn--outline:hover { background: var(--cream); color: var(--chai-brown); }

/* Steam lines signature element */
.kc-hero__steam {
  position: absolute; right: 8%; top: 15%;
  display: flex; gap: 12px; opacity: .15;
}
.steam-line {
  width: 3px; background: var(--cream); border-radius: 4px;
  animation: steam 3s ease-in-out infinite;
}
.steam-line:nth-child(1) { height: 80px; animation-delay: 0s; }
.steam-line:nth-child(2) { height: 120px; animation-delay: .6s; }
.steam-line:nth-child(3) { height: 60px; animation-delay: 1.2s; }
@keyframes steam {
  0%,100% { transform: translateY(0) scaleY(1); opacity: .15; }
  50% { transform: translateY(-16px) scaleY(1.12); opacity: .3; }
}

/* ===== FEATURES STRIP ===== */
.kc-features { background: var(--saffron); padding: 40px 0; }
.kc-features__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px,1fr)); gap: 24px; text-align: center; }
.kc-feature-item { color: var(--chai-brown); }
.kc-feature-item .icon { font-size: 2rem; margin-bottom: 8px; }
.kc-feature-item strong { display: block; font-family: var(--font-display); font-size: 1.05rem; }
.kc-feature-item span { font-size: .85rem; opacity: .8; }

/* ===== ABOUT SECTION ===== */
.kc-about__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.kc-about__img { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.kc-about__text .kc-eyebrow {
  font-size: .78rem; letter-spacing: 2.5px; text-transform: uppercase;
  color: var(--clay-red); font-weight: 700; margin-bottom: 12px;
}
.kc-about__text h2 { margin-bottom: 18px; }

/* ===== OFFERINGS ===== */
.kc-offerings__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px,1fr)); gap: 28px; margin-top: 48px; }
.kc-offering-card {
  background: var(--steam-white); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 36px 28px;
  transition: transform .2s, box-shadow .2s;
}
.kc-offering-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.kc-offering-card .icon { font-size: 2.2rem; margin-bottom: 16px; }
.kc-offering-card h3 { margin-bottom: 10px; }

/* ===== BLOG ===== */
.kc-blog__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px,1fr)); gap: 32px; margin-top: 48px; }
.kc-post-card {
  background: var(--steam-white); border-radius: var(--radius);
  overflow: hidden; border: 1px solid var(--border);
  transition: transform .2s, box-shadow .2s;
}
.kc-post-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.kc-post-card__thumb { aspect-ratio: 16/9; overflow: hidden; background: var(--parchment); }
.kc-post-card__thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.kc-post-card:hover .kc-post-card__thumb img { transform: scale(1.04); }
.kc-post-card__body { padding: 24px; }
.kc-post-card__meta { font-size: .78rem; color: var(--muted); margin-bottom: 8px; }
.kc-post-card__meta span { margin-right: 10px; }
.kc-post-card__body h3 { font-size: 1.15rem; margin-bottom: 10px; }
.kc-post-card__body h3 a { color: var(--chai-brown); }
.kc-post-card__body h3 a:hover { color: var(--clay-red); }
.kc-post-card__excerpt { font-size: .9rem; color: var(--muted); }
.kc-read-more { font-size: .85rem; font-weight: 700; color: var(--clay-red); display: inline-block; margin-top: 12px; }

/* ===== CTA BANNER ===== */
.kc-cta { background: linear-gradient(135deg,var(--clay-red),var(--chai-brown)); padding: 72px 0; text-align: center; }
.kc-cta h2 { color: var(--cream); margin-bottom: 16px; }
.kc-cta p { color: var(--parchment); max-width: 540px; margin: 0 auto 32px; font-size: 1.05rem; }

/* ===== INNER PAGE HERO ===== */
.kc-page-hero {
  background: linear-gradient(135deg, var(--chai-brown), #3B2010);
  padding: 72px 0 60px; text-align: center;
}
.kc-page-hero h1 { color: var(--cream); }
.kc-page-hero .breadcrumb { color: var(--parchment); font-size: .88rem; margin-top: 12px; }
.kc-page-hero .breadcrumb a { color: var(--saffron); }

/* ===== CONTENT PAGE ===== */
.kc-content-wrap { display: grid; grid-template-columns: 1fr 300px; gap: 48px; padding: 64px 0; }
.kc-content-wrap.no-sidebar { grid-template-columns: 1fr; max-width: 800px; margin: 0 auto; }
.kc-entry-content h2 { margin: 2rem 0 .8rem; }
.kc-entry-content h3 { margin: 1.5rem 0 .6rem; }
.kc-entry-content ul, .kc-entry-content ol { margin: 0 0 1.2rem 1.5rem; }
.kc-entry-content blockquote {
  border-left: 4px solid var(--saffron);
  margin: 1.5rem 0; padding: .8rem 1.2rem;
  background: var(--cream); border-radius: 0 var(--radius) var(--radius) 0;
  font-family: var(--font-display); font-style: italic; color: var(--chai-brown);
}

/* ===== SIDEBAR ===== */
.kc-sidebar .widget { margin-bottom: 36px; }
.kc-sidebar .widget-title {
  font-family: var(--font-display); font-size: 1.1rem; color: var(--chai-brown);
  border-bottom: 2px solid var(--saffron); padding-bottom: 8px; margin-bottom: 16px;
}
.kc-sidebar ul { list-style: none; }
.kc-sidebar ul li { padding: 6px 0; border-bottom: 1px solid var(--border); font-size: .9rem; }

/* ===== SINGLE POST ===== */
.kc-single-meta { font-size: .85rem; color: var(--muted); margin-bottom: 24px; }
.kc-single-meta a { color: var(--clay-red); }
.kc-post-tags { margin-top: 32px; }
.kc-post-tags .tag {
  display: inline-block; background: var(--cream); color: var(--chai-brown);
  border: 1px solid var(--border); padding: 4px 12px; border-radius: 20px;
  font-size: .8rem; margin: 4px 4px 0 0;
}
.kc-author-box { background: var(--cream); border-radius: var(--radius); padding: 28px; margin-top: 40px; display: flex; gap: 20px; }
.kc-author-box img { border-radius: 50%; width: 72px; height: 72px; object-fit: cover; flex-shrink: 0; }
.kc-author-box h4 { margin-bottom: 6px; font-size: 1rem; }

/* ===== COMMENTS ===== */
.kc-comments { margin-top: 48px; border-top: 2px solid var(--border); padding-top: 40px; }
.kc-comments .comment-list { list-style: none; }
.kc-comments .comment-body { background: var(--cream); padding: 20px; border-radius: var(--radius); margin-bottom: 20px; }

/* ===== FORMS ===== */
.kc-form input, .kc-form textarea, .kc-form select {
  width: 100%; padding: 12px 16px;
  border: 1px solid var(--border); border-radius: var(--radius);
  font-family: var(--font-body); font-size: 1rem; color: var(--ink);
  background: var(--steam-white); margin-bottom: 16px;
  transition: border-color .2s;
}
.kc-form input:focus, .kc-form textarea:focus { border-color: var(--saffron); outline: none; }
.kc-form label { display: block; font-weight: 600; margin-bottom: 6px; font-size: .9rem; }
.kc-form textarea { min-height: 140px; resize: vertical; }

/* ===== CONTACT PAGE ===== */
.kc-contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; padding: 64px 0; }
.kc-contact-info h3 { margin-bottom: 20px; }
.kc-contact-info p { display: flex; gap: 10px; align-items: flex-start; margin-bottom: 12px; }
.kc-contact-info .ci-icon { flex-shrink: 0; color: var(--saffron); font-size: 1.1rem; margin-top: 2px; }

/* ===== FOOTER ===== */
.kc-footer { background: var(--ink); color: var(--parchment); }
.kc-footer__top { padding: 64px 0 40px; }
.kc-footer__grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; }
.kc-footer__brand .kc-logo-foot {
  font-family: var(--font-display); font-size: 1.5rem; color: var(--saffron); font-weight: 700; display: block; margin-bottom: 12px;
}
.kc-footer__brand p { font-size: .9rem; opacity: .75; max-width: 240px; }
.kc-footer__col h4 { color: var(--saffron); font-size: .85rem; letter-spacing: 1.5px; text-transform: uppercase; margin-bottom: 16px; }
.kc-footer__col ul { list-style: none; }
.kc-footer__col ul li { margin-bottom: 8px; }
.kc-footer__col ul li a { color: var(--parchment); font-size: .9rem; opacity: .8; }
.kc-footer__col ul li a:hover { opacity: 1; color: var(--saffron); }
.kc-footer__bottom {
  border-top: 1px solid rgba(255,255,255,.1); padding: 20px 0;
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px;
}
.kc-footer__bottom p { font-size: .82rem; opacity: .6; }
.kc-footer__social { display: flex; gap: 12px; }
.kc-footer__social a { color: var(--parchment); opacity: .7; font-size: .9rem; transition: opacity .2s; }
.kc-footer__social a:hover { opacity: 1; color: var(--saffron); }

/* ===== ARCHIVE / BLOG PAGE ===== */
.kc-archive-header { padding: 56px 0 32px; border-bottom: 1px solid var(--border); margin-bottom: 48px; }
.kc-archive-header h1 { font-size: 2.2rem; }
.kc-archive-header p { color: var(--muted); margin-top: 8px; }
.kc-pagination { display: flex; justify-content: center; gap: 8px; padding: 48px 0; }
.kc-pagination a, .kc-pagination span {
  display: inline-flex; width: 40px; height: 40px; align-items: center; justify-content: center;
  border-radius: var(--radius); border: 1px solid var(--border);
  font-size: .9rem; font-weight: 600;
}
.kc-pagination .current { background: var(--chai-brown); color: var(--cream); border-color: var(--chai-brown); }
.kc-pagination a:hover { background: var(--saffron); border-color: var(--saffron); color: var(--chai-brown); }

/* ===== ABOUT PAGE ===== */
.kc-about-values { display: grid; grid-template-columns: repeat(auto-fit,minmax(220px,1fr)); gap: 28px; margin-top: 48px; }
.kc-value-card { text-align: center; padding: 36px 24px; border: 1px solid var(--border); border-radius: var(--radius); }
.kc-value-card .icon { font-size: 2.4rem; margin-bottom: 16px; }
.kc-value-card h3 { font-size: 1.1rem; margin-bottom: 10px; }

/* ===== TEAM ===== */
.kc-team-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px,1fr)); gap: 28px; margin-top: 48px; }
.kc-team-card { text-align: center; }
.kc-team-card img { border-radius: 50%; width: 120px; height: 120px; object-fit: cover; margin: 0 auto 16px; border: 4px solid var(--saffron); }
.kc-team-card h4 { margin-bottom: 4px; }
.kc-team-card span { font-size: .85rem; color: var(--muted); }

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  .kc-about__grid,
  .kc-contact-grid,
  .kc-footer__grid { grid-template-columns: 1fr; }
  .kc-content-wrap { grid-template-columns: 1fr; }
  .kc-sidebar { display: none; }
}
@media (max-width: 768px) {
  .kc-nav { display: none; position: absolute; top: 70px; left: 0; right: 0; background: var(--chai-brown); padding: 16px 24px; }
  .kc-nav.open { display: block; }
  .kc-nav ul { flex-direction: column; gap: 2px; }
  .kc-nav ul li ul { position: static; box-shadow: none; border-top: none; background: rgba(0,0,0,.2); }
  .kc-hamburger { display: flex; }
  .kc-hero { min-height: 70vh; }
  .kc-hero__steam { display: none; }
  .kc-footer__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
  .kc-footer__grid { grid-template-columns: 1fr; }
  .kc-footer__bottom { flex-direction: column; text-align: center; }
}
@media (prefers-reduced-motion: reduce) {
  .steam-line { animation: none; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
