/*
Theme Name: Geetika Khurana — Blog
Theme URI: https://geetikakhurana.com/blog
Author: Geetika Khurana
Description: WordPress theme for the blog section of geetikakhurana.com. Matches the brand system (colors, type, nav, footer) of the main static site. The rest of the site stays static HTML — only /blog runs on this theme.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: gk-blog
*/

/* ============================================
   geetikakhurana.com — shared styles
   Brand system: Grow with Geetika Khurana
   (same design system as the static site's style.css)
   ============================================ */

:root {
  --yellow: #ffe358;
  --yellow-tint: #fff8e0;
  --green: #4caf6a;
  --green-accent: #7ed6a3;
  --green-tint: #eaf8ee;
  --blue: #93e3ff;
  --blue-tint: #eaf9ff;
  --teal: #56f7f9;
  --graphite: #2e2e2e;
  --ink: #1a1a1a;
  --ink-soft: #55524c;
  --white: #ffffff;
  --line: #ececec;
  --radius: 22px;
  --radius-pill: 999px;
  --shadow: 0 14px 34px rgba(26, 26, 26, 0.08);
  --max: 1140px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-weight: 400;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: 'Jost', 'Futura', -apple-system, sans-serif;
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.01em;
  margin: 0 0 0.5em;
  color: var(--ink);
}

h1 { font-size: clamp(2.5rem, 5vw, 3.8rem); font-weight: 700; }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.5rem); }
h3 { font-size: 1.3rem; font-weight: 600; }

p { margin: 0 0 1em; color: var(--ink-soft); }

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

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

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 0.78rem;
  color: var(--green);
  background: var(--green-tint);
  padding: 6px 14px 6px 10px;
  border-radius: var(--radius-pill);
  margin-bottom: 1em;
}
.eyebrow .dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--yellow);
  display: inline-block;
}

/* ---------- Nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  max-width: var(--max);
  margin: 0 auto;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'Jost', sans-serif;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--ink);
  text-decoration: none;
}
.nav-logo:hover { text-decoration: none; }
.nav-logo .badge {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--yellow);
  flex-shrink: 0;
}

.nav-links {
  display: flex;
  gap: 4px;
  align-items: center;
  list-style: none;
  margin: 0;
  padding: 6px;
  background: var(--green);
  border-radius: var(--radius-pill);
}

.nav-links a {
  color: var(--white);
  font-weight: 500;
  font-size: 0.9rem;
  padding: 9px 16px;
  border-radius: var(--radius-pill);
  display: inline-block;
}
.nav-links a:hover { background: rgba(255,255,255,0.18); text-decoration: none; }

.nav-links a.external {
  background: var(--yellow);
  color: var(--ink);
  font-weight: 600;
}
.nav-links a.external:hover { background: #ffd93d; }

.has-dropdown { position: relative; }
.dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  margin: 0;
  padding: 14px 8px 8px;
  min-width: 170px;
  list-style: none;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  z-index: 200;
}
.dropdown-menu li { width: 100%; }
.dropdown-menu a {
  display: block;
  color: var(--ink);
  font-weight: 500;
  padding: 8px 12px;
  border-radius: 8px;
}
.dropdown-menu a:hover { background: var(--yellow-tint); text-decoration: none; }
.has-dropdown:hover .dropdown-menu,
.has-dropdown.open .dropdown-menu { display: block; }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.6rem;
  color: var(--ink);
  cursor: pointer;
}

@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 16px;
    right: 16px;
    background: var(--green);
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding: 12px;
    border-radius: 20px;
    margin-top: 8px;
    box-shadow: var(--shadow);
  }
  .nav-links.open { display: flex; }
  .nav-links a { width: 100%; text-align: center; }
  .dropdown-menu {
    display: block;
    position: static;
    box-shadow: none;
    background: transparent;
    padding: 0;
    margin: 2px 0 6px;
  }
  .dropdown-menu a { color: var(--white); font-size: 0.85rem; padding: 7px 16px; }
  .dropdown-menu a:hover { background: rgba(255,255,255,0.18); }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--radius-pill);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  border: 2px solid transparent;
}
.btn:hover { text-decoration: none; transform: translateY(-2px); }

.btn-primary {
  background: var(--yellow);
  color: var(--ink);
  box-shadow: var(--shadow);
}
.btn-primary:hover { background: #ffd93d; }

/* ---------- Hero ---------- */
.hero { padding: 64px 0 40px; }
.hero-inner {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 56px;
  align-items: center;
}
.hero-inner.reverse { grid-template-columns: 1.15fr 0.85fr; }
@media (max-width: 860px) {
  .hero-inner, .hero-inner.reverse { grid-template-columns: 1fr; }
  .hero-photo { order: -1; max-width: 320px; margin: 0 auto; }
}

.hero-photo { position: relative; }
.hero-photo img { width: 100%; margin: 0 auto; object-fit: contain; }

/* ---------- Section ---------- */
.section { padding: 64px 0; }
.section-alt { background: var(--yellow-tint); }
.section-head { max-width: 640px; margin-bottom: 40px; }

/* ---------- Offer / blog cards ---------- */
.offer-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 22px;
}

.offer-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 34px 28px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  flex: 0 1 270px;
  transition: transform 0.15s ease;
}
.offer-card:hover { transform: translateY(-4px); }
.offer-card h3 { margin-bottom: 10px; }
.offer-card h3 a { color: var(--ink); }
.offer-card h3 a:hover { color: var(--green); text-decoration: none; }
.offer-card p { flex-grow: 1; line-height: 1.7; }
.offer-link { font-weight: 600; font-size: 0.92rem; margin-top: 12px; color: var(--green); }

.tag {
  display: inline-block;
  background: var(--blue-tint);
  color: var(--ink);
  font-size: 0.92rem;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  margin: 0 8px 8px 0;
}

.callout {
  background: var(--green);
  color: #fff;
  border-radius: var(--radius);
  padding: 44px;
  text-align: center;
}
.callout h2, .callout p { color: #fff; }
.callout .btn-primary { background: var(--yellow); color: var(--ink); }

/* ---------- Kit newsletter form (embedded in the callout) ---------- */
.kit-newsletter-form { max-width: 480px; margin: 20px auto 0; }
.kit-newsletter-form .formkit-form { display: flex !important; flex-wrap: wrap; gap: 10px; justify-content: center; }
.kit-newsletter-form .formkit-fields { display: flex !important; flex-wrap: wrap; gap: 10px; width: 100%; justify-content: center; }
.kit-newsletter-form .formkit-field { flex: 1 1 240px; }
.kit-newsletter-form input[type="email"],
.kit-newsletter-form input[type="text"] {
  width: 100% !important;
  padding: 13px 18px !important;
  border-radius: var(--radius-pill) !important;
  border: none !important;
  font-family: 'Poppins', sans-serif !important;
  font-size: 0.95rem !important;
  box-sizing: border-box;
}
.kit-newsletter-form button,
.kit-newsletter-form .formkit-submit {
  background: var(--yellow) !important;
  color: var(--ink) !important;
  border: none !important;
  border-radius: var(--radius-pill) !important;
  padding: 13px 28px !important;
  font-family: 'Jost', sans-serif !important;
  font-weight: 700 !important;
  font-size: 0.95rem !important;
  cursor: pointer;
  white-space: nowrap;
}
.kit-newsletter-form .formkit-powered-by,
.kit-newsletter-form [data-element="poweredBy"] { filter: brightness(0) invert(1); opacity: 0.7; margin-top: 10px; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--ink);
  color: #f2ede0;
  padding: 54px 0 30px;
  margin-top: 40px;
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 30px;
  margin-bottom: 30px;
}
.footer-brand { display: flex; align-items: flex-start; gap: 12px; max-width: 380px; }
.footer-brand .badge {
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--yellow); flex-shrink: 0; margin-top: 4px;
}
.footer-brand h3 { color: #fff; margin-bottom: 6px; }
.footer-brand p { color: #b8b4ac; }

.social-links { display: flex; align-items: flex-start; gap: 12px; flex-wrap: wrap; }
.social-links a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #fff;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.25);
  padding: 9px 18px;
  border-radius: var(--radius-pill);
  font-size: 0.86rem;
  font-weight: 500;
  line-height: 1.2;
  white-space: nowrap;
}
.social-links a:hover { background: var(--green); border-color: var(--green); text-decoration: none; }

.footer-nav {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  list-style: none;
  padding: 0;
  margin: 0;
}
.footer-nav a { color: #d9d5c9; font-size: 0.9rem; }
.footer-nav a:hover { color: var(--yellow); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.12);
  padding-top: 20px;
  font-size: 0.82rem;
  color: #8a877f;
}

/* ============================================
   Blog-specific additions (not on the static site)
   ============================================ */

/* Category filter pills */
.blog-filter-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 32px;
}
.blog-filter-pill {
  display: inline-block;
  padding: 9px 18px;
  border-radius: var(--radius-pill);
  background: #fff;
  border: 1.5px solid var(--line);
  color: var(--ink-soft);
  font-weight: 600;
  font-size: 0.88rem;
}
.blog-filter-pill:hover { border-color: var(--green-accent); text-decoration: none; }
.blog-filter-pill.active { background: var(--green); border-color: var(--green); color: #fff; }

/* Card featured image */
.blog-card-img-link { display: block; margin: -34px -28px 20px; }
.blog-card-img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: var(--radius) var(--radius) 0 0;
}
.blog-card-img--placeholder {
  width: 100%;
  height: 180px;
  border-radius: var(--radius) var(--radius) 0 0;
  background: linear-gradient(135deg, var(--yellow-tint), var(--blue-tint));
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Jost', sans-serif;
  font-weight: 600;
  color: var(--ink-soft);
}

.blog-grid { align-items: stretch; }

/* Pagination */
.blog-pagination {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 40px;
}
.blog-pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 12px;
  border-radius: var(--radius-pill);
  border: 1.5px solid var(--line);
  color: var(--ink);
  font-weight: 600;
  font-size: 0.9rem;
}
.blog-pagination .page-numbers.current { background: var(--green); border-color: var(--green); color: #fff; }
.blog-pagination .page-numbers:hover { border-color: var(--green-accent); text-decoration: none; }

/* Single post content typography */
.blog-post-content {
  max-width: 760px;
  margin: 0 auto;
  font-size: 1.05rem;
  line-height: 1.8;
}
.blog-post-content p { color: var(--ink); }
.blog-post-content h2 { margin-top: 1.4em; }
.blog-post-content h3 { margin-top: 1.2em; }
.blog-post-content img { border-radius: var(--radius); margin: 1.2em 0; }
.blog-post-content blockquote {
  margin: 1.6em 0;
  padding: 4px 0 4px 22px;
  border-left: 4px solid var(--green);
  color: var(--ink-soft);
  font-style: italic;
}
.blog-post-content a { color: var(--green); text-decoration: underline; }

.blog-post-nav {
  max-width: 760px;
  margin: 48px auto 0;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}
.blog-post-nav-link { font-weight: 600; color: var(--ink); max-width: 45%; }
.blog-post-nav-link:hover { color: var(--green); text-decoration: none; }
