/*
Theme Name: Custom Auto Theme
Author: System
Version: 1.0
*/

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

html {scroll-behavior: smooth;}
html, body {overflow-x:hidden;}
a {display: inline-block; text-align: center;}

:root {
  --bg: #FAFAF7;
  --bg-alt: #F0EFEB;
  --text: #1A1A1A;
  --text-muted: #5A5A58;
  --accent: #2D5A3D;
  --accent-light: #3A7A52;
  --accent-bg: #E8F0EB;
  --border: #D4D3CE;
  --border-light: #E8E7E3;
  --white: #FFFFFF;
  --shadow: 0 1px 3px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.08);
  --radius: 4px;
  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body: 'IBM Plex Sans', sans-serif;
  --max-w: 720px;
  --max-w-wide: 1080px;
  --transition: 0.25s ease;
}

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

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.72;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

img { max-width:100%; height:auto; display:block; border-radius: var(--radius); }

/* ── NAV ── */
.k-nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(250,250,247,0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-light);
  padding: 0.9rem 1.5rem;
}
.k-nav-inner {
  max-width: var(--max-w-wide);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.k-logo {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--text);
  text-decoration: none;
  letter-spacing: -0.02em;
}
.k-logo:hover { color: var(--accent); }
.k-nav-links { display: flex; gap: 1.8rem; align-items: center; }
.k-nav-links a {
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-muted);
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  transition: color var(--transition);
}
.k-nav-links a:hover { color: var(--accent); }

.k-burger { display:none; background:none; border:none; cursor:pointer; padding:4px; }
.k-burger span { display:block; width:22px; height:2px; background:var(--text); margin:5px 0; transition: var(--transition); }

@media(max-width:768px) {
  .k-nav-links { display:none; position:absolute; top:100%; left:0; right:0; background:var(--bg); flex-direction:column; padding:1.5rem; gap:1rem; border-bottom:1px solid var(--border-light); }
  .k-nav-links.open { display:flex; }
  .k-burger { display:block; }
}

/* ── BREADCRUMBS ── */
.k-breadcrumbs {
  max-width: var(--max-w);
  margin: 2rem auto 0;
  padding: 0 1.5rem;
  font-size: 0.78rem;
  color: var(--text-muted);
}
.k-breadcrumbs a { color: var(--accent); text-decoration:none; text-align:left; }
.k-breadcrumbs a:hover { text-decoration: underline; }
.k-breadcrumbs span { margin: 0 0.4rem; opacity:0.5; }

/* ── HERO ── */
.k-hero {
  max-width: var(--max-w);
  margin: 1.5rem auto 0;
  padding: 0 1.5rem;
}
.k-hero-img-wrap {
  position: relative;
  border-radius: 6px;
  overflow: hidden;
  aspect-ratio: 16/7;
  background: var(--bg-alt);
}
.k-hero-img-wrap img {
  width:100%; height:100%;
  object-fit: cover;
  animation: heroFade 0.8s ease forwards;
  border-radius: 6px;
}
@keyframes heroFade { from { opacity:0; transform:scale(1.03); } to { opacity:1; transform:scale(1); } }

.k-hero-caption {
  position: absolute;
  bottom: 0; left:0; right:0;
  padding: 2.5rem 2rem 1.5rem;
  background: linear-gradient(transparent, rgba(0,0,0,0.55));
  color: #fff;
}
.k-hero-caption .k-cat {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 600;
  opacity: 0.85;
  margin-bottom: 0.4rem;
}

/* ── READING TIME WIDGET ── */
.k-meta-bar {
  max-width: var(--max-w);
  margin: 1.2rem auto 0;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  gap: 1.2rem;
  font-size: 0.8rem;
  color: var(--text-muted);
}
.k-meta-bar .k-dot { width:3px; height:3px; border-radius:50%; background:var(--border); }
.k-read-time {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: var(--accent-bg);
  padding: 0.25rem 0.7rem;
  border-radius: 20px;
  font-weight: 500;
  color: var(--accent);
  font-size: 0.78rem;
}
.k-read-time svg { width:14px; height:14px; }

/* ── ARTICLE ── */
.k-article {
  max-width: var(--max-w);
  margin: 2rem auto;
  padding: 0 1.5rem;
}
.k-article h1 {
  font-family: var(--font-display);
  font-size: 2.6rem;
  font-weight: 700;
  line-height: 1.15;
  color: var(--text);
  margin-bottom: 1.2rem;
  letter-spacing: -0.02em;
}
.k-article h2 {
  font-family: var(--font-display);
  font-size: 1.65rem;
  font-weight: 600;
  margin: 2.4rem 0 0.8rem;
  color: var(--text);
  line-height: 1.25;
}
.k-article h3 {
  font-size: 1.05rem;
  font-weight: 600;
  margin: 1.8rem 0 0.6rem;
  color: var(--text);
}
.k-article p {
  margin-bottom: 1.1rem;
  color: var(--text);
}
.k-article p + p { margin-top: 0; }

/* ── HIGHLIGHT BOX ── */
.k-highlight {
  border-left: 3px solid var(--accent);
  background: var(--accent-bg);
  padding: 1.2rem 1.5rem;
  margin: 1.8rem 0;
  border-radius: 0 var(--radius) var(--radius) 0;
  font-size: 0.92rem;
}
.k-highlight strong { color: var(--accent); }

/* ── QUOTE ── */
.k-quote {
  position: relative;
  margin: 2.2rem 0;
  padding: 1.5rem 1.8rem 1.5rem 2.5rem;
  background: var(--bg-alt);
  border-radius: var(--radius);
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-style: italic;
  line-height: 1.5;
  color: var(--text-muted);
}
.k-quote::before {
  content: '\201C';
  position: absolute;
  left: 0.6rem; top: 0.4rem;
  font-size: 3rem;
  color: var(--accent);
  font-family: var(--font-display);
  line-height: 1;
}
.k-quote cite {
  display: block;
  margin-top: 0.6rem;
  font-size: 0.8rem;
  font-style: normal;
  font-family: var(--font-body);
  color: var(--text-muted);
}

/* ── NUMBERED LIST ── */
.k-steps {
  margin: 1.5rem 0;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  counter-reset: step;
}
.k-step {
  counter-increment: step;
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  padding: 1rem 1.2rem;
  background: var(--white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  transition: box-shadow var(--transition);
}
.k-step:hover { box-shadow: var(--shadow-md); }
.k-step::before {
  content: counter(step, decimal-leading-zero);
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--accent);
  min-width: 2rem;
  line-height: 1.2;
}
.k-step-content { flex:1; }
.k-step-content strong { display:block; margin-bottom: 0.2rem; }

/* ── READ ALSO ── */
.k-read-also {
  max-width: var(--max-w);
  margin: 2.5rem auto;
  padding: 0 1.5rem;
}
.k-read-also h2 {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 600;
  margin-bottom: 1.2rem;
  color: var(--text);
}
.k-read-also-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px,1fr));
  gap: 1rem;
}
.k-card {
  background: var(--white);
  border: 1px solid var(--border-light);
  border-radius: 6px;
  padding: 1.3rem;
  text-decoration: none;
  transition: box-shadow var(--transition), transform var(--transition);
}
.k-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.k-card .k-card-cat {
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 0.5rem;
}
.k-card .k-card-title {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text);
  line-height: 1.3;
  margin-bottom: 0.4rem;
  text-align: left;
}
.k-card .k-card-meta {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* ── SUBSCRIBE ── */
.k-subscribe {
  max-width: var(--max-w);
  margin: 2.5rem auto;
  padding: 0 1.5rem;
}
.k-subscribe-inner {
  background: var(--accent);
  color: #fff;
  padding: 2.2rem 2rem;
  border-radius: 6px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.k-subscribe-inner h3 {
  font-family: var(--font-display);
  font-size: 1.45rem;
  margin-bottom: 0.4rem;
  color: #fff;
}
.k-subscribe-inner p {
  font-size: 0.88rem;
  opacity: 0.85;
  margin-bottom: 1.2rem;
  color: #fff;
}
.k-subscribe-form {
  display: flex;
  gap: 0.5rem;
  width: 100%;
  max-width: 420px;
}
.k-subscribe-form input[type="email"] {
  flex: 1;
  padding: 0.65rem 1rem;
  border: 1px solid rgba(255,255,255,0.3);
  border-radius: var(--radius);
  background: rgba(255,255,255,0.12);
  color: #fff;
  font-size: 0.88rem;
  font-family: var(--font-body);
  outline: none;
  transition: border var(--transition);
}
.k-subscribe-form input[type="email"]::placeholder { color: rgba(255,255,255,0.55); }
.k-subscribe-form input[type="email"]:focus { border-color: rgba(255,255,255,0.7); }
.k-subscribe-form button {
  padding: 0.65rem 1.4rem;
  background: var(--white);
  color: var(--accent);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.85rem;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  transition: opacity var(--transition);
  white-space: nowrap;
}
.k-subscribe-form button:hover { opacity: 0.88; }
@media(max-width:480px) {
  .k-subscribe-form { flex-direction:column; }
}

/* ── FOOTER ── */
.k-footer {
  border-top: 1px solid var(--border-light);
  padding: 2.5rem 1.5rem 1.5rem;
  margin-top: 3rem;
  background: var(--bg-alt);
}
.k-footer-inner {
  max-width: var(--max-w-wide);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  text-align: center;
}
.k-footer-logo {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text);
  text-decoration: none;
}
.k-footer-links { display: flex; gap: 1.2rem; flex-wrap:wrap; justify-content:center; }
.k-footer-links a {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-decoration: none;
  transition: color var(--transition);
}
.k-footer-links a:hover { color: var(--accent); }
.k-footer-disc {
  font-size: 0.72rem;
  color: var(--text-muted);
  max-width: 560px;
  line-height: 1.55;
  opacity: 0.8;
}
.k-footer-copy {
  font-size: 0.72rem;
  color: var(--text-muted);
  opacity: 0.6;
}

/* ── COOKIE MODAL ── */
.k-cookie {
  position: fixed;
  bottom: 1.2rem;
  right: 1.2rem;
  max-width: 360px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1.3rem;
  box-shadow: 0 8px 30px rgba(0,0,0,0.12);
  z-index: 999;
  animation: cookieSlide 0.4s ease;
  font-size: 0.82rem;
}
@keyframes cookieSlide { from { opacity:0; transform:translateY(20px); } to { opacity:1; transform:translateY(0); } }
.k-cookie p { margin-bottom: 0.8rem; color: var(--text-muted); line-height: 1.5; }
.k-cookie-btns { display: flex; gap: 0.5rem; }
.k-cookie-btns button {
  flex: 1;
  padding: 0.5rem 0.8rem;
  border-radius: var(--radius);
  font-size: 0.8rem;
  font-family: var(--font-body);
  font-weight: 500;
  cursor: pointer;
  border: 1px solid var(--border);
  transition: all var(--transition);
}
.k-cookie-accept { background: var(--accent) !important; color: #fff !important; border-color: var(--accent) !important; }
.k-cookie-accept:hover { background: var(--accent-light) !important; }
.k-cookie-decline { background: transparent; color: var(--text-muted); }
.k-cookie-decline:hover { background: var(--bg-alt); }

/* ── POLICY / TERMS PAGES ── */
.k-legal {
  max-width: var(--max-w);
  margin: 2rem auto;
  padding: 0 1.5rem;
}
.k-legal h1 {
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  line-height: 1.2;
}
.k-legal h2 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 600;
  margin: 2rem 0 0.7rem;
  color: var(--text);
}
.k-legal p {
  margin-bottom: 1rem;
  color: var(--text);
  font-size: 0.92rem;
}

/* ── SUCCESS PAGE ── */
.k-success {
  min-height: 70vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem 1.5rem;
}
.k-success-icon {
  width: 64px; height: 64px;
  background: var(--accent-bg);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 1.5rem;
}
.k-success-icon svg { width: 32px; height: 32px; color: var(--accent); }
.k-success h1 {
  font-family: var(--font-display);
  font-size: 2.6rem;
  font-weight: 700;
  margin-bottom: 0.6rem;
}
.k-success p {
  font-size: 1rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
  max-width: 420px;
}
.k-success a.k-btn {
  display: inline-block;
  padding: 0.7rem 2rem;
  background: var(--accent);
  color: #fff;
  border-radius: var(--radius);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.88rem;
  transition: background var(--transition);
}
.k-success a.k-btn:hover { background: var(--accent-light); }

/* ── 404 ── */
.k-404 {
  min-height: 70vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem 1.5rem;
}
.k-404-num {
  font-family: var(--font-display);
  font-size: 8rem;
  font-weight: 700;
  line-height: 1;
  color: var(--accent);
  opacity: 0.15;
  margin-bottom: -1rem;
}
.k-404 h1 {
  font-family: var(--font-display);
  font-size: 2rem;
  margin-bottom: 0.6rem;
}
.k-404 p {
  color: var(--text-muted);
  margin-bottom: 2rem;
}

/* ── INLINE IMAGES ── */
.k-img-block {
  margin: 1.8rem 0;
  border-radius: 6px;
  overflow: hidden;
}
.k-img-block img { width:100%; }
.k-img-caption {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 0.5rem;
  text-align: center;
  font-style: italic;
}

/* ── SIDEBAR AUTHOR ── */
.k-author-box {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.2rem;
  background: var(--white);
  border: 1px solid var(--border-light);
  border-radius: 6px;
  margin: 2rem 0;
}
.k-author-avatar {
  width: 48px; height: 48px;
  border-radius: 50%;
  background: var(--accent-bg);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--accent);
  flex-shrink: 0;
}
.k-author-info .k-author-name { font-weight: 600; font-size: 0.92rem; }
.k-author-info .k-author-role { font-size: 0.78rem; color: var(--text-muted); }

/* ── DATA SNAPSHOT WIDGET ── */
.k-data-snap {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 0.8rem;
  margin: 1.8rem 0;
}
.k-data-item {
  background: var(--white);
  border: 1px solid var(--border-light);
  border-radius: 6px;
  padding: 1rem;
  text-align: center;
  transition: box-shadow var(--transition);
}
.k-data-item:hover { box-shadow: var(--shadow-md); }
.k-data-num {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--accent);
  line-height: 1.2;
}
.k-data-label {
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-top: 0.2rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
@media(max-width:480px) {
  .k-data-snap { grid-template-columns: 1fr 1fr; }
}

/* ── SCROLL ANIMATE ── */
.k-fade-in {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.k-fade-in.visible { opacity: 1; transform: translateY(0); }

/* ── COMPARISON GRID ── */
.k-compare {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin: 1.8rem 0;
}
.k-compare-col {
  padding: 1.2rem;
  border-radius: 6px;
  border: 1px solid var(--border-light);
}
.k-compare-col h4 {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.8rem;
  color: var(--accent);
  font-weight: 600;
}
.k-compare-col p { font-size: 0.88rem; color: var(--text-muted); }
@media(max-width:480px) {
  .k-compare { grid-template-columns: 1fr; }
}

/* ── PROGRESS BAR VISUAL ── */
.k-progress-row {
  margin: 0.6rem 0;
}
.k-progress-label {
  display: flex;
  justify-content: space-between;
  font-size: 0.82rem;
  margin-bottom: 0.3rem;
}
.k-progress-bar {
  height: 6px;
  background: var(--bg-alt);
  border-radius: 3px;
  overflow: hidden;
}
.k-progress-fill {
  height: 100%;
  background: var(--accent);
  border-radius: 3px;
  transition: width 0.8s ease;
}
