/*
Theme Name: Digital Thakur
Theme URI: https://www.digitalthakur.com
Author: Chandan Thakur
Description: Custom theme for Digital Thakur - Fractional CMO & AI Marketing Consultant
Version: 1.0.0
Text Domain: digitalthakur
*/

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

:root {
  --bg-primary: #fcfbf8;
  --bg-warm: #f5f3ed;
  --bg-white: #ffffff;
  --bg-dark: #1a1a18;
  --bg-dark-alt: #2a2a26;
  --accent: #1a6b4a;
  --accent-light: rgba(26,107,74,0.08);
  --accent-bright: #4aba85;
  --blue: #1a4f7a;
  --amber: #7a4a1a;
  --text-primary: #1a1a18;
  --text-secondary: #555;
  --text-muted: #777;
  --text-hint: #999;
  --border-light: rgba(0,0,0,0.06);
  --font-serif: 'Instrument Serif', Georgia, serif;
  --font-sans: 'DM Sans', -apple-system, sans-serif;
  --max-w: 1200px;
  --max-w-narrow: 1000px;
  --max-w-text: 720px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }
body { font-family: var(--font-sans); color: var(--text-secondary); background: var(--bg-primary); line-height: 1.7; overflow-x: hidden; }
a { color: inherit; text-decoration: none; transition: color 0.2s; }
img { max-width: 100%; height: auto; display: block; }
::selection { background: rgba(26,107,74,0.15); color: var(--text-primary); }

/* Container */
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 24px; }
.container--narrow { max-width: var(--max-w-narrow); margin: 0 auto; padding: 0 24px; }
.container--text { max-width: var(--max-w-text); margin: 0 auto; padding: 0 24px; }

/* Typography */
h1, h2, h3, h4 { color: var(--text-primary); }
h1 { font-family: var(--font-serif); font-size: clamp(36px, 5.5vw, 64px); font-weight: 400; line-height: 1.1; letter-spacing: -1.5px; }
h2 { font-family: var(--font-serif); font-size: clamp(30px, 4vw, 44px); font-weight: 400; line-height: 1.15; letter-spacing: -1px; }
h3 { font-family: var(--font-sans); font-size: 20px; font-weight: 700; }
h4 { font-family: var(--font-sans); font-size: 18px; font-weight: 700; }
.t-label { font-size: 13px; font-weight: 600; color: var(--accent); letter-spacing: 1.5px; text-transform: uppercase; margin-bottom: 12px; }
.t-accent { color: var(--accent); }
.t-italic { font-style: italic; }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 14px 32px; border-radius: 8px; font-family: var(--font-sans); font-size: 16px; font-weight: 600; border: none; cursor: pointer; transition: all 0.25s; text-decoration: none; }
.btn:hover { transform: translateY(-2px); }
.btn--primary { background: var(--text-primary); color: #fff; box-shadow: 0 2px 12px rgba(0,0,0,0.12); }
.btn--primary:hover { background: #333; color: #fff; }
.btn--outline { background: transparent; color: var(--text-primary); border: 1.5px solid rgba(0,0,0,0.15); }
.btn--outline:hover { border-color: rgba(0,0,0,0.4); }
.btn--accent { background: var(--accent); color: #fff; }
.btn--accent:hover { background: #238c5e; color: #fff; }
.btn--whatsapp { background: #25D366; color: #fff; }
.btn--whatsapp:hover { background: #1fb855; color: #fff; }
.btn--lg { padding: 16px 40px; font-size: 17px; }
.btn--sm { padding: 10px 22px; font-size: 14px; }

/* Sections */
.section { padding: 100px 0; }
.section--white { background: var(--bg-white); }
.section--warm { background: var(--bg-warm); }
.section--dark { background: linear-gradient(135deg, var(--bg-dark) 0%, var(--bg-dark-alt) 100%); color: rgba(255,255,255,0.6); }
.section__header { margin-bottom: 56px; }

/* Navigation */
.nav { position: fixed; top: 0; left: 0; right: 0; z-index: 100; transition: all 0.4s; border-bottom: 1px solid transparent; }
.nav--scrolled { background: rgba(252,251,248,0.92); backdrop-filter: blur(16px); border-bottom-color: rgba(0,0,0,0.06); }
.nav__inner { max-width: var(--max-w); margin: 0 auto; padding: 0 24px; display: flex; align-items: center; justify-content: space-between; height: 72px; }
.nav__logo { font-family: var(--font-serif); font-size: 24px; color: var(--text-primary); letter-spacing: -0.5px; }
.nav__logo-tm { font-size: 11px; color: #888; font-family: var(--font-sans); }
.nav__links { display: flex; align-items: center; gap: 32px; }
.nav__link { font-size: 14px; font-weight: 500; color: var(--text-secondary); letter-spacing: 0.2px; }
.nav__link:hover { color: var(--text-primary); }
.nav__cta { background: var(--text-primary); color: #fff; padding: 10px 22px; border-radius: 6px; font-size: 14px; font-weight: 600; }
.nav__cta:hover { background: #333; color: #fff; }
.nav__hamburger { display: none; background: none; border: none; cursor: pointer; padding: 8px; flex-direction: column; gap: 6px; }
.nav__hamburger span { display: block; width: 24px; height: 2px; background: var(--text-primary); transition: all 0.3s; }
.nav__mobile { display: none; position: absolute; top: 72px; left: 0; right: 0; background: rgba(252,251,248,0.98); backdrop-filter: blur(20px); border-bottom: 1px solid rgba(0,0,0,0.08); padding: 20px 24px; flex-direction: column; gap: 16px; }
.nav__mobile.active { display: flex; }
.nav__mobile a { font-size: 16px; font-weight: 500; color: var(--text-primary); }

/* Hero */
.hero { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 120px 24px 80px; position: relative; overflow: hidden; background: linear-gradient(180deg, var(--bg-primary) 0%, var(--bg-warm) 100%); text-align: center; }
.hero__content { max-width: 800px; position: relative; z-index: 1; }
.hero__badge { display: inline-flex; align-items: center; gap: 8px; padding: 6px 16px; background: var(--accent-light); border-radius: 20px; margin-bottom: 32px; font-size: 13px; font-weight: 500; color: var(--accent); }
.hero__badge-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); display: inline-block; }
.hero__ctas { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; margin-top: 40px; }
.hero__trust { margin-top: 56px; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 20px; font-size: 12px; color: var(--text-hint); font-weight: 500; }
.hero__trust-item { display: flex; align-items: center; gap: 6px; }
.hero__trust-dot { width: 4px; height: 4px; border-radius: 50%; background: #ccc; display: inline-block; }

/* Cards */
.card { padding: 32px; border-radius: 12px; background: var(--bg-primary); border: 1px solid var(--border-light); transition: all 0.3s; }
.card:hover { border-color: rgba(0,0,0,0.12); box-shadow: 0 4px 20px rgba(0,0,0,0.04); }
.card--white { background: var(--bg-white); }
.card--accent-left { border-left: 3px solid var(--accent); }

/* AIM Framework */
.aim-card { padding: 36px; border-radius: 16px; height: 100%; transition: all 0.3s; }
.aim-card:hover { transform: translateY(-4px); box-shadow: 0 8px 30px rgba(0,0,0,0.06); }
.aim-card--a { background: #e8f5ee; border: 1px solid rgba(26,107,74,0.08); }
.aim-card--i { background: #e6f0fa; border: 1px solid rgba(26,79,122,0.08); }
.aim-card--m { background: #faf0e6; border: 1px solid rgba(122,74,26,0.08); }
.aim-icon { width: 56px; height: 56px; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-family: var(--font-serif); font-size: 28px; color: #fff; margin-bottom: 20px; }
.aim-icon--a { background: var(--accent); }
.aim-icon--i { background: var(--blue); }
.aim-icon--m { background: var(--amber); }

/* Service rows */
.svc-row { display: flex; align-items: flex-start; gap: 24px; padding: 28px 32px; background: var(--bg-white); border-radius: 12px; border: 1px solid var(--border-light); transition: all 0.3s; flex-wrap: wrap; margin-bottom: 16px; }
.svc-row:hover { border-color: rgba(26,107,74,0.2); box-shadow: 0 4px 20px rgba(0,0,0,0.04); }
.svc-row__icon { font-size: 28px; flex-shrink: 0; }
.svc-row__body { flex: 1; min-width: 220px; }
.svc-row__tag { font-size: 11px; font-weight: 600; padding: 3px 10px; border-radius: 12px; background: var(--accent-light); color: var(--accent); display: inline-block; margin-left: 10px; }
.svc-row__price { font-size: 14px; font-weight: 600; color: var(--text-primary); white-space: nowrap; flex-shrink: 0; }

/* Stats bar */
.stats { padding: 64px 0; background: linear-gradient(135deg, var(--bg-dark) 0%, var(--bg-dark-alt) 100%); }
.stats__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; text-align: center; }
.stats__number { font-family: var(--font-serif); font-size: 40px; color: #fff; margin-bottom: 4px; }
.stats__label { font-size: 14px; color: rgba(255,255,255,0.5); }

/* FAQ */
.faq-item { border-bottom: 1px solid rgba(0,0,0,0.08); }
.faq-q { width: 100%; display: flex; justify-content: space-between; align-items: center; padding: 22px 0; background: none; border: none; cursor: pointer; text-align: left; font-family: var(--font-sans); font-size: 16px; font-weight: 600; color: var(--text-primary); }
.faq-q__icon { font-size: 20px; color: var(--text-hint); flex-shrink: 0; transition: transform 0.3s; }
.faq-q__icon.open { transform: rotate(45deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height 0.4s cubic-bezier(.23,1,.32,1); }
.faq-a.open { max-height: 400px; }
.faq-a p { padding: 0 0 22px; font-size: 15px; color: var(--text-muted); line-height: 1.75; }

/* Lead magnet */
.lead-form { display: flex; gap: 12px; max-width: 480px; margin: 0 auto; flex-wrap: wrap; justify-content: center; }
.lead-input { flex: 1; min-width: 240px; padding: 14px 18px; border-radius: 8px; border: 1px solid rgba(255,255,255,0.15); background: rgba(255,255,255,0.08); color: #fff; font-size: 15px; font-family: var(--font-sans); outline: none; }
.lead-input::placeholder { color: rgba(255,255,255,0.35); }
.lead-input:focus { border-color: rgba(255,255,255,0.3); }

/* Footer */
.footer { padding: 60px 0 32px; background: var(--bg-dark); }
.footer__grid { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 40px; margin-bottom: 48px; }
.footer__col-title { font-size: 12px; font-weight: 600; color: rgba(255,255,255,0.3); letter-spacing: 1px; text-transform: uppercase; margin-bottom: 16px; }
.footer__link { display: block; font-size: 14px; color: rgba(255,255,255,0.5); margin-bottom: 10px; }
.footer__link:hover { color: #fff; }
.footer__bottom { border-top: 1px solid rgba(255,255,255,0.08); padding-top: 24px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 16px; font-size: 13px; color: rgba(255,255,255,0.25); }

/* Breadcrumbs */
.breadcrumbs { padding-top: 96px; padding-bottom: 0; font-size: 14px; color: var(--text-hint); }
.breadcrumbs a { color: var(--text-hint); }
.breadcrumbs a:hover { color: var(--accent); }
.breadcrumbs__sep { margin: 0 8px; color: #ccc; }
.breadcrumbs__current { color: var(--text-secondary); font-weight: 500; }

/* Grids */
.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px; }
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; }

/* Blog */
.blog-post { padding: 32px 0; border-bottom: 1px solid var(--border-light); }
.blog-post__category { font-size: 12px; font-weight: 600; padding: 2px 10px; border-radius: 12px; background: var(--accent-light); color: var(--accent); display: inline-block; margin-right: 8px; }
.blog-post__meta { font-size: 12px; color: var(--text-hint); }
.blog-post__title { font-family: var(--font-sans); font-size: 20px; font-weight: 700; color: var(--text-primary); margin: 8px 0; transition: color 0.2s; }
.blog-post__title:hover { color: var(--accent); }
.blog-post__excerpt { font-size: 15px; color: var(--text-muted); line-height: 1.65; }

/* Single post */
.post-content h2 { font-family: var(--font-serif); font-size: 28px; margin: 40px 0 16px; letter-spacing: -0.5px; }
.post-content h3 { font-size: 18px; font-weight: 700; margin: 32px 0 12px; }
.post-content p { font-size: 16px; color: var(--text-secondary); line-height: 1.8; margin-bottom: 16px; }
.post-content strong { color: var(--text-primary); font-weight: 600; }
.post-content a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.post-content ul, .post-content ol { margin: 12px 0 20px 24px; }
.post-content li { font-size: 15px; color: var(--text-secondary); line-height: 1.75; margin-bottom: 8px; }
.post-content img { border-radius: 12px; margin: 24px 0; }
.post-content blockquote { border-left: 3px solid var(--accent); padding-left: 20px; margin: 24px 0; font-style: italic; color: var(--text-muted); }

/* Pricing box */
.pricing-box { padding: 40px; border-radius: 16px; background: linear-gradient(135deg, #faf9f6, var(--bg-warm)); border: 1px solid var(--border-light); text-align: center; }
.pricing-amount { font-family: var(--font-serif); font-size: 36px; color: var(--text-primary); margin: 16px 0 8px; }

/* Animations */
.fade-up { opacity: 0; transform: translateY(24px); transition: opacity 0.7s cubic-bezier(.23,1,.32,1), transform 0.7s cubic-bezier(.23,1,.32,1); }
.fade-up.visible { opacity: 1; transform: translateY(0); }

/* Responsive */
@media (max-width: 768px) {
  .nav__links { display: none; }
  .nav__hamburger { display: flex; }
  .section { padding: 72px 0; }
  .hero { padding: 100px 20px 60px; min-height: auto; }
  .stats__grid { grid-template-columns: repeat(2, 1fr); gap: 24px; }
  .grid-3 { grid-template-columns: 1fr; }
  .svc-row { padding: 20px; }
  .footer__grid { flex-direction: column; }
}
@media (max-width: 480px) {
  .hero__ctas { flex-direction: column; align-items: center; }
  .btn { width: 100%; justify-content: center; }
  .lead-form { flex-direction: column; }
  .stats__grid { grid-template-columns: 1fr 1fr; }
}
