/* ============================================================
   Rhishikesh Agashe — Design System
   Editorial-meets-consulting aesthetic: navy + warm gold accent,
   Playfair Display for headings, Inter for body text.
   ============================================================ */

:root {
  --navy-950: #0a1628;
  --navy-900: #0f1f38;
  --navy-800: #16294a;
  --navy-700: #1f3560;
  --ink: #1a2233;
  --ink-soft: #4a5568;
  --paper: #faf8f4;
  --paper-alt: #f2efe8;
  --white: #ffffff;
  --gold: #b8862e;
  --gold-light: #d4a955;
  --teal: #1f6f78;
  --border: #e4e0d6;
  --border-dark: rgba(255,255,255,0.12);
  --success: #2f855a;
  --danger: #c53030;

  --font-head: 'Playfair Display', Georgia, serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --radius: 10px;
  --radius-lg: 16px;
  --shadow-sm: 0 2px 8px rgba(15, 31, 56, 0.06);
  --shadow-md: 0 8px 24px rgba(15, 31, 56, 0.10);
  --shadow-lg: 0 20px 50px rgba(15, 31, 56, 0.16);
  --container-w: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 600;
  line-height: 1.2;
  color: var(--navy-950);
  margin: 0 0 0.5em;
}
p { margin: 0 0 1em; }
.container {
  max-width: var(--container-w);
  margin: 0 auto;
  padding: 0 24px;
}
section { padding: 88px 0; }
.section-tight { padding: 56px 0; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 28px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all 0.2s ease;
}
.btn-primary { background: var(--gold); color: var(--white); }
.btn-primary:hover { background: var(--gold-light); transform: translateY(-1px); }
.btn-dark { background: var(--navy-950); color: var(--white); }
.btn-dark:hover { background: var(--navy-800); transform: translateY(-1px); }
.btn-outline { background: transparent; border-color: var(--navy-950); color: var(--navy-950); }
.btn-outline:hover { background: var(--navy-950); color: var(--white); }
.btn-outline-light { background: transparent; border-color: rgba(255,255,255,0.5); color: var(--white); }
.btn-outline-light:hover { background: rgba(255,255,255,0.12); border-color: var(--white); }
.btn-small { padding: 9px 20px; font-size: 0.85rem; }
.btn-block { width: 100%; justify-content: center; }

.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--gold);
  margin-bottom: 14px;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250, 248, 244, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 16px;
  padding-bottom: 16px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--navy-950);
}
.brand-mark {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--navy-950);
  color: var(--gold-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}
.main-nav {
  display: flex;
  align-items: center;
  gap: 34px;
}
.main-nav a {
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--ink-soft);
  padding: 6px 0;
  border-bottom: 2px solid transparent;
  transition: color 0.15s ease;
}
.main-nav a:hover, .main-nav a.active { color: var(--navy-950); border-color: var(--gold); }
.btn-nav-cta {
  background: var(--navy-950);
  color: var(--white) !important;
  padding: 10px 22px;
  border-radius: 999px;
  border: none !important;
}
.btn-nav-cta:hover { background: var(--gold); }
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span { width: 24px; height: 2px; background: var(--navy-950); border-radius: 2px; }

/* ---------- Hero ---------- */
.hero {
  background: radial-gradient(circle at 15% 20%, var(--navy-800), var(--navy-950) 60%);
  color: var(--white);
  padding: 110px 0 100px;
  position: relative;
  overflow: hidden;
}
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 85% 80%, rgba(184,134,46,0.18), transparent 55%);
}
.hero-inner { position: relative; max-width: 780px; }
.hero h1 { color: var(--white); font-size: clamp(2.2rem, 4.5vw, 3.4rem); margin-bottom: 22px; }
.hero h1 em { color: var(--gold-light); font-style: normal; }
.hero p.lead { font-size: 1.15rem; color: rgba(255,255,255,0.82); max-width: 620px; margin-bottom: 36px; }
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }
.hero-meta {
  margin-top: 56px;
  display: flex;
  gap: 40px;
  flex-wrap: wrap;
  border-top: 1px solid rgba(255,255,255,0.15);
  padding-top: 28px;
}
.hero-meta .stat-num { font-family: var(--font-head); font-size: 1.6rem; color: var(--gold-light); font-weight: 700; }
.hero-meta .stat-label { font-size: 0.82rem; color: rgba(255,255,255,0.65); }

/* ---------- Services strip ---------- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.service-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 26px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.service-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.service-icon {
  width: 48px; height: 48px;
  border-radius: 12px;
  background: var(--paper-alt);
  color: var(--gold);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 18px;
}
.service-card h3 { font-size: 1.15rem; margin-bottom: 10px; }
.service-card p { color: var(--ink-soft); font-size: 0.94rem; margin-bottom: 0; }

/* ---------- About preview / split sections ---------- */
.split {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 64px;
  align-items: center;
}
.split.reverse { grid-template-columns: 1.1fr 0.9fr; }
.split.reverse .split-media { order: 2; }
.split-media {
  aspect-ratio: 4/5;
  border-radius: var(--radius-lg);
  background: linear-gradient(160deg, var(--navy-800), var(--navy-950));
  display: flex; align-items: center; justify-content: center;
  color: var(--gold-light);
  font-family: var(--font-head);
  font-size: 5rem;
  box-shadow: var(--shadow-lg);
}
.split-body .tag-row { display: flex; gap: 10px; flex-wrap: wrap; margin: 20px 0 28px; }
.tag-pill {
  background: var(--paper-alt);
  border: 1px solid var(--border);
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 0.82rem;
  color: var(--ink-soft);
  font-weight: 500;
}

/* ---------- Section heading ---------- */
.section-head { max-width: 640px; margin: 0 auto 48px; text-align: center; }
.section-head.left { margin: 0 0 48px; text-align: left; }
.section-head p { color: var(--ink-soft); font-size: 1.05rem; }

/* ---------- Blog cards ---------- */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}
.blog-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  display: flex;
  flex-direction: column;
}
.blog-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.blog-card-media {
  aspect-ratio: 16/10;
  background: linear-gradient(135deg, var(--navy-800), var(--navy-700));
  background-size: cover;
  background-position: center;
  position: relative;
}
.blog-card-media .cat-badge {
  position: absolute; top: 16px; left: 16px;
  background: rgba(10,22,40,0.75);
  color: var(--gold-light);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 6px 12px;
  border-radius: 999px;
}
.blog-card-body { padding: 24px; display: flex; flex-direction: column; flex-grow: 1; }
.blog-card-meta { font-size: 0.8rem; color: var(--ink-soft); margin-bottom: 10px; }
.blog-card h3 { font-size: 1.2rem; margin-bottom: 10px; }
.blog-card h3 a:hover { color: var(--gold); }
.blog-card p { color: var(--ink-soft); font-size: 0.92rem; flex-grow: 1; }
.blog-card .read-more { font-weight: 600; font-size: 0.88rem; color: var(--navy-950); margin-top: 12px; display: inline-flex; align-items: center; gap: 6px; }
.blog-card .read-more:hover { color: var(--gold); }

/* ---------- Video section ---------- */
.video-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}
.video-card { border-radius: var(--radius-lg); overflow: hidden; background: var(--white); border: 1px solid var(--border); }
.video-card .video-embed { aspect-ratio: 16/9; background: var(--navy-950); }
.video-card .video-embed iframe { width: 100%; height: 100%; border: 0; }
.video-card-body { padding: 18px 20px; }
.video-card h4 { font-size: 1rem; margin-bottom: 6px; }
.video-card p { font-size: 0.86rem; color: var(--ink-soft); margin: 0; }

/* ---------- Dark CTA band ---------- */
.cta-band {
  background: var(--navy-950);
  color: var(--white);
  border-radius: var(--radius-lg);
  padding: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
}
.cta-band h2 { color: var(--white); margin-bottom: 10px; }
.cta-band p { color: rgba(255,255,255,0.75); margin: 0; max-width: 480px; }

/* ---------- Stats bar ---------- */
.stats-bar {
  background: var(--paper-alt);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  text-align: center;
}
.stats-grid .stat { padding: 40px 20px; border-right: 1px solid var(--border); }
.stats-grid .stat:last-child { border-right: none; }
.stats-grid .stat-num { font-family: var(--font-head); font-size: 2.2rem; color: var(--navy-950); font-weight: 700; }
.stats-grid .stat-label { color: var(--ink-soft); font-size: 0.88rem; margin-top: 6px; }

/* ---------- Page header (inner pages) ---------- */
.page-header {
  background: linear-gradient(160deg, var(--navy-900), var(--navy-950));
  color: var(--white);
  padding: 70px 0 60px;
}
.page-header h1 { color: var(--white); margin-bottom: 12px; }
.page-header p { color: rgba(255,255,255,0.75); max-width: 640px; margin: 0; }
.breadcrumb { font-size: 0.85rem; color: rgba(255,255,255,0.55); margin-bottom: 16px; }
.breadcrumb a { color: var(--gold-light); }

/* ---------- Blog single / article ---------- */
.article-wrap { max-width: 760px; margin: 0 auto; }
.article-meta { display: flex; gap: 18px; flex-wrap: wrap; align-items: center; font-size: 0.88rem; color: var(--ink-soft); margin-bottom: 30px; }
.article-featured-img { border-radius: var(--radius-lg); overflow: hidden; margin-bottom: 40px; box-shadow: var(--shadow-md); }
.article-body { font-size: 1.08rem; color: var(--ink); }
.article-body h2 { font-size: 1.5rem; margin-top: 1.6em; }
.article-body h3 { font-size: 1.25rem; margin-top: 1.4em; }
.article-body p { margin-bottom: 1.3em; }
.article-body img { border-radius: var(--radius); margin: 1.5em 0; }
.article-body blockquote {
  border-left: 4px solid var(--gold);
  margin: 1.8em 0;
  padding: 4px 0 4px 24px;
  font-style: italic;
  color: var(--ink-soft);
  font-size: 1.1rem;
}
.article-body ul, .article-body ol { padding-left: 1.4em; margin-bottom: 1.3em; }
.article-body a { color: var(--teal); text-decoration: underline; }
.article-share { display: flex; gap: 12px; margin: 40px 0; padding: 24px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }

/* ---------- Comments ---------- */
.comments-section { max-width: 760px; margin: 0 auto; }
.comment-list { margin: 24px 0 40px; display: flex; flex-direction: column; gap: 22px; }
.comment-item { display: flex; gap: 14px; }
.comment-avatar {
  width: 42px; height: 42px; border-radius: 50%;
  background: var(--navy-800); color: var(--gold-light);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; flex-shrink: 0;
}
.comment-body { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px 18px; flex-grow: 1; }
.comment-name { font-weight: 600; font-size: 0.92rem; }
.comment-date { font-size: 0.78rem; color: var(--ink-soft); margin-left: 8px; font-weight: 400; }
.comment-text { margin-top: 6px; font-size: 0.94rem; color: var(--ink); }
.no-comments { color: var(--ink-soft); font-style: italic; }

/* ---------- Forms ---------- */
.form-group { margin-bottom: 20px; }
.form-group label { display: block; font-weight: 600; font-size: 0.88rem; margin-bottom: 7px; color: var(--navy-950); }
.form-control {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  background: var(--white);
  color: var(--ink);
  transition: border-color 0.15s ease;
}
.form-control:focus { outline: none; border-color: var(--gold); }
textarea.form-control { resize: vertical; min-height: 120px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.hp-field { position: absolute; left: -9999px; top: -9999px; }

/* ---------- Alerts ---------- */
.alert { padding: 14px 18px; border-radius: 8px; font-size: 0.92rem; margin-bottom: 24px; }
.alert-success { background: #eafaf1; color: var(--success); border: 1px solid #c6f0d8; }
.alert-error { background: #fdecec; color: var(--danger); border: 1px solid #f6c8c8; }

/* ---------- Contact page layout ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: start; }
.contact-info-card { background: var(--navy-950); color: var(--white); border-radius: var(--radius-lg); padding: 40px; }
.contact-info-card h3 { color: var(--white); }
.contact-info-item { display: flex; gap: 14px; margin-bottom: 22px; align-items: flex-start; }
.contact-info-item .ci-icon { color: var(--gold-light); font-size: 1.2rem; }
.contact-info-item p { margin: 0; color: rgba(255,255,255,0.8); font-size: 0.92rem; }

/* ---------- Pagination ---------- */
.pagination { display: flex; justify-content: center; gap: 8px; margin-top: 50px; }
.pagination a, .pagination span {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: 8px;
  border: 1px solid var(--border); font-size: 0.9rem; font-weight: 600;
  color: var(--ink-soft);
}
.pagination a:hover { border-color: var(--gold); color: var(--navy-950); }
.pagination .current { background: var(--navy-950); color: var(--white); border-color: var(--navy-950); }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-950); color: rgba(255,255,255,0.75); padding-top: 70px; }
.footer-inner { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 40px; padding-bottom: 50px; }
.footer-brand .brand { color: var(--white); margin-bottom: 14px; }
.footer-brand .brand-mark { background: var(--gold); color: var(--navy-950); }
.footer-brand p { font-size: 0.9rem; color: rgba(255,255,255,0.6); }
.footer-col h4 { color: var(--white); font-family: var(--font-body); font-size: 0.85rem; letter-spacing: 0.06em; text-transform: uppercase; margin-bottom: 18px; }
.footer-col a { display: block; font-size: 0.9rem; color: rgba(255,255,255,0.65); margin-bottom: 12px; }
.footer-col a:hover { color: var(--gold-light); }
.footer-col p { font-size: 0.88rem; color: rgba(255,255,255,0.6); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding: 22px 0; }
.footer-bottom p { margin: 0; font-size: 0.82rem; color: rgba(255,255,255,0.5); }

/* ---------- Utility ---------- */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.empty-state { text-align: center; padding: 60px 20px; color: var(--ink-soft); }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 980px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .blog-grid, .video-grid { grid-template-columns: repeat(2, 1fr); }
  .split, .split.reverse { grid-template-columns: 1fr; }
  .split.reverse .split-media { order: 0; }
  .split-media { max-width: 420px; margin: 0 auto; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-grid .stat:nth-child(2) { border-right: none; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px) {
  section { padding: 56px 0; }
  .nav-toggle { display: flex; }
  .main-nav {
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    align-items: stretch;
    padding: 10px 24px 24px;
    gap: 6px;
    display: none;
    box-shadow: var(--shadow-md);
  }
  .main-nav.open { display: flex; }
  .main-nav a { padding: 12px 0; border-bottom: 1px solid var(--border); }
  .btn-nav-cta { text-align: center; margin-top: 8px; }
  .hero { padding: 70px 0 60px; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn { justify-content: center; }
  .services-grid, .blog-grid, .video-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .cta-band { flex-direction: column; text-align: center; padding: 40px 28px; }
  .footer-inner { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  h1 { font-size: 2rem !important; }
}

/* ---------- Admin (shared minimal styling reused for forms) ---------- */
.admin-body { background: var(--paper-alt); min-height: 100vh; }
.admin-shell { display: flex; min-height: 100vh; }
.admin-sidebar {
  width: 240px; flex-shrink: 0;
  background: var(--navy-950); color: white;
  padding: 28px 20px;
}
.admin-sidebar .brand { color: white; margin-bottom: 40px; font-size: 1.1rem; }
.admin-sidebar .brand-mark { background: var(--gold); color: var(--navy-950); }
.admin-nav a {
  display: block; padding: 11px 14px; border-radius: 8px;
  color: rgba(255,255,255,0.72); font-size: 0.92rem; font-weight: 500;
  margin-bottom: 4px;
}
.admin-nav a:hover, .admin-nav a.active { background: rgba(255,255,255,0.08); color: white; }
.admin-main { flex-grow: 1; padding: 36px 44px; max-width: 1100px; }
.admin-topbar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 32px; }
.admin-topbar h1 { font-size: 1.6rem; margin: 0; }
.admin-card { background: white; border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 28px; margin-bottom: 24px; }
.admin-table { width: 100%; border-collapse: collapse; }
.admin-table th, .admin-table td { text-align: left; padding: 13px 14px; border-bottom: 1px solid var(--border); font-size: 0.92rem; }
.admin-table th { color: var(--ink-soft); font-weight: 600; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.04em; }
.admin-table tr:hover td { background: var(--paper-alt); }
.badge { display: inline-block; padding: 4px 11px; border-radius: 999px; font-size: 0.76rem; font-weight: 700; }
.badge-published { background: #eafaf1; color: var(--success); }
.badge-draft { background: #fff4e0; color: #b7791f; }
.admin-actions { display: flex; gap: 10px; }
.admin-actions a, .admin-actions button {
  font-size: 0.82rem; font-weight: 600; padding: 6px 12px; border-radius: 6px;
  border: 1px solid var(--border); background: white; cursor: pointer;
}
.admin-actions .danger { color: var(--danger); border-color: #f6c8c8; }
.admin-actions a:hover, .admin-actions button:hover { border-color: var(--navy-950); }
.admin-login-wrap {
  min-height: 100vh; display: flex; align-items: center; justify-content: center;
  background: radial-gradient(circle at 20% 20%, var(--navy-800), var(--navy-950));
}
.admin-login-card { background: white; border-radius: var(--radius-lg); padding: 44px; width: 380px; box-shadow: var(--shadow-lg); }
.stat-tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-bottom: 32px; }
.stat-tile { background: white; border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; }
.stat-tile .num { font-family: var(--font-head); font-size: 1.9rem; color: var(--navy-950); font-weight: 700; }
.stat-tile .lbl { color: var(--ink-soft); font-size: 0.85rem; margin-top: 4px; }
@media (max-width: 900px) {
  .admin-shell { flex-direction: column; }
  .admin-sidebar { width: 100%; padding: 18px 20px; }
  .admin-nav { display: flex; overflow-x: auto; gap: 6px; }
  .admin-main { padding: 24px 18px; }
  .stat-tiles { grid-template-columns: repeat(2, 1fr); }
}
