﻿/* ============================================================
   Namma Yatri — main.css
   Dark theme, amber accent (#f59e0b)
   ============================================================ */

/* --- CSS Variables --------------------------------------- */
:root {
  --bg: #0c0a06;
  --surface: #141209;
  --surface2: #1c1a10;
  --text: #e8e4d8;
  --text-muted: #8a8370;
  --accent: #f59e0b;
  --accent-dark: #d97706;
  --border: rgba(245,158,11,0.12);
  --border-subtle: rgba(255,255,255,0.07);
  --radius: 10px;
  --gap: 3em;
  --sidebar-w: 0px;
  --funding-bar-h: 0px;
  --nav-height: 4.5em;
}

/* --- Base Reset ------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
  background-color: var(--bg) !important;
  color: var(--text);
  font-family: 'Inter', 'Helvetica Neue', Arial, sans-serif;
  font-size: 20px !important;
  line-height: 1.9 !important;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent); text-decoration: none; }
a:hover { color: #fbbf24; }

img { max-width: 100%; height: auto; display: block; }
.img-wrap { overflow: hidden; width: 100%; }
.img-wrap img { width: 100%; object-fit: cover; }

/* --- Typography Scale ------------------------------------ */
h1 { font-size: 61px !important; font-weight: 700; line-height: 1.1; color: #ffffff; }
h2 { font-size: 43px !important; font-weight: 700; line-height: 1.3; color: #ffffff; }
h3 { font-size: 28px !important; font-weight: 600; line-height: 1.4; color: #ffffff; }
h4 { font-size: 1.1rem; font-weight: 600; line-height: 1.5; color: var(--text); }
p, li { font-size: 1.1rem; line-height: 1.9 !important; }

/* --- Layout Helpers -------------------------------------- */
.container { max-width: 1100px; margin: 0 auto; padding: 0 2em; }
.container-wide { max-width: 1400px; margin: 0 auto; padding: 0 2em; }
.section { padding: 6em 0; }
.section-sm { padding: 4em 0; }
.section-header { text-align: center; margin-bottom: 3.5em; }
.section-header p { color: var(--text-muted); max-width: 560px; margin: 1em auto 0; font-size: 1.1rem; }

.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: var(--gap); }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 3em; align-items: center; }
.grid-4 { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 2em; }

.label-tag {
  display: inline-block;
  color: var(--accent);
  font-size: 0.72rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  margin-bottom: 1.2em;
  font-weight: 600;
}

/* --- Funding Bar ----------------------------------------- */
#funding-bar { color: #fff !important; }
#nav, .site-nav { top: var(--funding-bar-h, 0px); }

/* --- Navigation ------------------------------------------ */
.site-nav {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  justify-content: flex-start !important;
  padding: 0 2.5em !important;
  position: fixed !important;
  top: var(--funding-bar-h, 0px) !important;
  left: 0 !important;
  right: 0 !important;
  width: 100% !important;
  min-height: var(--nav-height) !important;
  z-index: 9999 !important;
  background-color: rgba(12,10,6,0.97) !important;
  border-bottom: 1px solid var(--border-subtle) !important;
  box-sizing: border-box !important;
  transition: top 0.3s ease;
}

.site-nav .site-logo {
  flex-shrink: 0 !important;
  display: flex !important;
  align-items: center !important;
  text-decoration: none;
}

.nav-menu {
  display: flex !important;
  flex-direction: row !important;
  list-style: none !important;
  margin: 0 0 0 auto !important;
  padding: 0 !important;
  gap: 0;
}

.nav-menu li a {
  display: flex !important;
  align-items: center !important;
  height: var(--nav-height) !important;
  padding: 0 1.1em !important;
  color: rgba(255,255,255,0.7) !important;
  font-size: 15px !important;
  letter-spacing: 0.05em !important;
  text-transform: none !important;
  white-space: nowrap !important;
  transition: color 0.2s;
}

.nav-menu li a:hover,
.nav-menu li.current a { color: #ffffff !important; }

.nav-menu li a:hover { color: var(--accent) !important; }

.page-wrapper { padding-top: var(--nav-height) !important; }

/* --- Buttons -------------------------------------------- */
.btn-primary {
  display: inline-block;
  background: var(--accent);
  color: #0c0a06 !important;
  padding: 0.85em 2em;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  text-decoration: none;
  transition: background 0.2s, transform 0.15s;
  border: none;
  cursor: pointer;
}
.btn-primary:hover { background: #fbbf24; color: #0c0a06 !important; transform: translateY(-1px); }

.btn-outline {
  display: inline-block;
  border: 1px solid rgba(255,255,255,0.25);
  color: rgba(255,255,255,0.82) !important;
  padding: 0.85em 2em;
  border-radius: var(--radius);
  font-size: 0.95rem;
  text-decoration: none;
  transition: border-color 0.2s, color 0.2s;
}
.btn-outline:hover { border-color: var(--accent); color: var(--accent) !important; }

/* --- Hero ----------------------------------------------- */
.hero-section {
  min-height: 620px;
  display: flex;
  align-items: center;
  background: var(--bg);
  background-image: url('../images/hero-main.jpg');
  background-size: cover;
  background-position: center top;
  background-repeat: no-repeat;
  padding: 8em 0 6em;
  position: relative;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: url('../images/hero-main.jpg') center/cover no-repeat;
  z-index: 0;
}

.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(12,10,6,0.72);
  z-index: 1;
}

.hero-section > * { position: relative; z-index: 2; }
.hero-section .container { position: relative; z-index: 2; }

.hero-grid {
  display: grid;
  grid-template-columns: 3fr 2fr;
  gap: 5em;
  align-items: center;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 2em;
}

.hero-cta-group {
  display: flex;
  flex-direction: column;
  gap: 1em;
  align-items: flex-start;
}

/* --- Feature Cards --------------------------------------- */
.feature-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2.5em 2em;
  transition: border-color 0.25s, transform 0.2s;
}
.feature-card:hover { border-color: var(--accent); transform: translateY(-3px); }

.feature-icon {
  width: 56px;
  height: 56px;
  background: rgba(245,158,11,0.1);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5em;
}

.feature-icon svg { width: 28px; height: 28px; }

/* --- Stat Cards ------------------------------------------ */
.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 2em; }
.stat-card {
  text-align: center;
  padding: 2em 1em;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.stat-number { font-size: 2.8rem; font-weight: 700; color: var(--accent); line-height: 1; margin-bottom: 0.4em; }
.stat-label { font-size: 0.9rem; color: var(--text-muted); letter-spacing: 0.06em; }

/* --- Section Divider ------------------------------------ */
.divider { border: none; border-top: 1px solid var(--border-subtle); margin: 0; }

/* --- Dark Surface Sections ------------------------------ */
.surface-section { background: var(--surface); }
.surface2-section { background: var(--surface2); }

/* --- Step Cards ----------------------------------------- */
.step-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 2.5em; counter-reset: step; }
.step-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2.5em 2em;
  position: relative;
}
.step-number {
  font-size: 3rem;
  font-weight: 800;
  color: var(--accent);
  opacity: 0.25;
  line-height: 1;
  margin-bottom: 0.5em;
}

/* --- Team Cards ----------------------------------------- */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2.5em;
  max-width: 1100px;
  margin: 0 auto;
}
.team-card {
  text-align: center;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2.5em 1.5em;
  transition: border-color 0.25s;
}
.team-card:hover { border-color: var(--accent); }
.team-card img {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  object-fit: cover;
  object-position: top center;
  margin: 0 auto 1.5em;
  border: 3px solid var(--border);
}
.team-card .title {
  color: var(--accent);
  font-size: 0.88rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 600;
  margin-bottom: 0.8em;
}
.team-card p { color: var(--text-muted); font-size: 1rem; line-height: 1.7; }

/* --- About Story Section --------------------------------- */
.spotlight-section { padding: 6em 0; }
.spotlight-inner {
  display: flex;
  gap: 4em;
  align-items: center;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 2em;
}
.story-img {
  flex-shrink: 0;
  width: 45%;
}
.story-img img {
  width: 100%;
  border-radius: var(--radius);
  object-fit: cover;
}
.story-text { flex: 1; }
.story-text h2 { margin-bottom: 1em; }
.story-text p { color: var(--text-muted); margin-bottom: 1em; }

/* --- Mission/Values Box --------------------------------- */
.mission-box {
  background: var(--surface);
  border-left: 3px solid var(--accent);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 2em 2.5em;
  margin: 2em 0;
}
.mission-box p { margin: 0; color: var(--text); }

/* --- Page Hero Banner ----------------------------------- */
.page-hero {
  background: var(--surface);
  padding: 6em 0 4em;
  border-bottom: 1px solid var(--border-subtle);
}
.page-hero h1 { margin-bottom: 0.5em; }
.page-hero p { color: var(--text-muted); font-size: 1.2rem; max-width: 600px; }

/* --- Contact Page --------------------------------------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4em;
  align-items: start;
}
.contact-info h3 {
  font-size: 1rem;
  color: var(--accent);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 700;
  margin-bottom: 0.5em;
  margin-top: 2em;
}
.contact-info h3:first-child { margin-top: 0; }
.contact-info p { color: var(--text-muted); font-size: 1rem; line-height: 1.8; margin: 0; }
.contact-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 3em 2.5em;
}

/* --- Blog/News Grid ------------------------------------- */
.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2.5em;
}
.news-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color 0.25s, transform 0.2s;
}
.news-card:hover { border-color: var(--accent); transform: translateY(-3px); }
.news-card-img { aspect-ratio: 16/9; overflow: hidden; background: var(--surface2); }
.news-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s; }
.news-card:hover .news-card-img img { transform: scale(1.04); }
.news-card-body { padding: 1.8em; }
.news-card-body .meta { color: var(--text-muted); font-size: 0.85rem; margin-bottom: 0.8em; }
.news-card-body h3 { font-size: 1.25rem; margin-bottom: 0.6em; }
.news-card-body p { color: var(--text-muted); font-size: 0.95rem; line-height: 1.7; }

/* --- Platform Feature Rows ------------------------------ */
.platform-feature-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4em;
  align-items: center;
  padding: 4em 0;
  border-bottom: 1px solid var(--border-subtle);
}
.platform-feature-row:last-child { border-bottom: none; }
.platform-feature-row.reverse { direction: rtl; }
.platform-feature-row.reverse > * { direction: ltr; }
.platform-feature-img {
  border-radius: var(--radius);
  overflow: hidden;
}
.platform-feature-img img {
  width: 100%;
  height: 320px;
  object-fit: cover;
  border-radius: var(--radius);
  display: block;
}
.platform-feature-text h3 { margin-bottom: 0.8em; }
.platform-feature-text p { color: var(--text-muted); }

/* --- Footer -------------------------------------------- */
#footer {
  width: 100%;
  background: var(--surface);
  border-top: 1px solid var(--border-subtle);
}
#footer .inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  max-width: 1400px;
  margin: 0 auto;
  padding: 3em 4em;
  gap: 3em;
}
.footer-brand p { color: var(--text-muted); font-size: 0.95rem; line-height: 1.7; margin-top: 0.8em; }
.footer-brand .copyright { font-size: 0.82rem; color: var(--text-muted); margin-top: 1.5em; }
#footer h4 { color: #ffffff; font-size: 0.85rem; letter-spacing: 0.12em; text-transform: uppercase; margin-bottom: 1.2em; font-weight: 700; }
.footer-nav { list-style: none; padding: 0; margin: 0; }
.footer-nav li { margin-bottom: 0.6em; }
.footer-nav a { color: var(--text-muted); text-decoration: none; font-size: 0.9rem; transition: color 0.2s; }
.footer-nav a:hover { color: var(--text); }

/* --- Cookie Banner -------------------------------------- */
#cookie-banner {
  display: none;
  position: fixed;
  bottom: 0;
  left: var(--sidebar-w, 0);
  right: 0;
  z-index: 10003;
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 1.2em 2em;
}
.cookie-content {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 2em;
  flex-wrap: wrap;
}
.cookie-text { flex: 1; }
.cookie-text strong { font-size: 1rem; color: var(--text); }
.cookie-text p {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin: 0.3em 0 0;
  line-height: 1.6;
}
.cookie-text a { color: var(--accent); }
.cookie-buttons { display: flex; gap: 0.8em; flex-shrink: 0; }
#cookie-decline {
  padding: 0.6em 1.4em;
  border: 1px solid var(--border-subtle);
  background: transparent;
  color: var(--text-muted);
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.88rem;
}
#cookie-accept {
  padding: 0.6em 1.4em;
  background: var(--accent);
  color: #0c0a06;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.88rem;
  font-weight: 700;
}

/* --- Investors / VC badge ------------------------------- */
.investor-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.8em;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 50px;
  padding: 0.6em 1.4em;
  font-size: 0.88rem;
  color: var(--text-muted);
}
.investor-badge .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); flex-shrink: 0; }

/* --- Article Content ------------------------------------ */
.article-body, .post-content { max-width: 720px; margin: 0 auto; }
.article-body p, article p { margin-bottom: 1.4em; line-height: 1.9 !important; }
.article-body h2, article h2 { margin-top: 2.2em; margin-bottom: 0.8em; font-size: 43px !important; }
.article-body h3, article h3 { margin-top: 1.8em; margin-bottom: 0.6em; font-size: 28px !important; }
.article-body ul, .article-body ol, article ul, article ol { margin-bottom: 1.4em; padding-left: 1.8em; }
.article-body li, article li { margin-bottom: 0.5em; line-height: 1.85; }

/* --- Responsive ----------------------------------------- */
@media (max-width: 980px) {
  .nav-menu { display: none !important; }
}

@media (max-width: 768px) {
  h1 { font-size: 2.2rem; }
  h2 { font-size: 1.7rem; }
  h3 { font-size: 1.3rem; }
  body { font-size: 16px; }

  .hero-grid { grid-template-columns: 1fr; gap: 2.5em; }
  .grid-3, .grid-2, .grid-4 { grid-template-columns: 1fr; }
  .spotlight-inner { flex-direction: column; }
  .story-img { width: 100%; }
  .platform-feature-row { grid-template-columns: 1fr; gap: 2em; }
  .platform-feature-row.reverse { direction: ltr; }
  .contact-grid { grid-template-columns: 1fr; gap: 2.5em; }
  #footer .inner { grid-template-columns: 1fr; padding: 2em; }
  .section { padding: 4em 0; }
  #cookie-banner { left: 0 !important; }
}

@media (max-width: 480px) {
  .container { padding: 0 1.2em; }
  .hero-section { padding: 6em 0 4em; }
}
