/*
 * Getretrograd — custom.css
 * Data Analytics SaaS — Solid State template overrides
 */

/* ── CSS Variables ─────────────────────────────────── */
:root {
  --accent: #2563eb;
  --accent-rgb: 37,99,235;
  --bg: #1a1c2e;
  --surface: #22263a;
  --surface2: #2a2f4a;
  --text: #e8eaf0;
  --text-muted: #8892a4;
  --border: rgba(255,255,255,0.08);
  --radius: 12px;
  --gap: 2.5em;
  --funding-bar-h: 0px;
}

/* ── Header — offset for funding bar ──────────────── */
#header {
  position: fixed;
  top: var(--funding-bar-h, 0px);
  z-index: 10000;
  transition: top 0.3s ease;
}

/* ── Banner / Hero ─────────────────────────────────── */
#banner {
  background-image: url('../images/hero-main.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-color: rgba(10,15,40,0.35);
  background-blend-mode: multiply;
  min-height: 600px;
  position: relative;
}

#banner::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.55);
  z-index: 0;
  pointer-events: none;
}

#banner > * {
  position: relative;
  z-index: 2;
}

/* About page hero override */
body.page-about #banner {
  background-image: url('../images/about-hero.jpg') !important;
}

/* Product page hero override */
body.page-product #banner {
  background-image: url('../images/product-hero.jpg') !important;
}

/* Contact steps */
.contact-steps {
  list-style: decimal;
  padding-left: 1.5em;
  margin-bottom: 2em;
}

.contact-steps li {
  margin-bottom: 1.2em;
  font-size: 0.9em;
  color: var(--text-muted);
  line-height: 1.7;
}

.contact-steps li strong {
  display: block;
  color: var(--text);
  margin-bottom: 0.25em;
}

/* ── Logo ──────────────────────────────────────────── */
#header .logo-img {
  display: block;
  height: 32px;
  width: auto;
}

#header h1 a {
  display: flex;
  align-items: center;
  gap: 0.5em;
}

/* ── Grid / Card Containers ────────────────────────── */
.section-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 2em;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--gap);
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 2em;
}

/* ── Spotlight Section (about story) ──────────────── */
.spotlight-section {
  display: grid;
  grid-template-columns: 3fr 2fr;
  gap: 4em;
  align-items: start;
  max-width: 1100px;
  margin: 0 auto;
  padding: 4em 2em;
}

@media (max-width: 768px) {
  .spotlight-section {
    grid-template-columns: 1fr;
  }
}

.story-img {
  width: 100%;
  overflow: hidden;
  border-radius: var(--radius);
}

.story-img img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  border-radius: var(--radius);
  display: block;
}

/* ── Blog Card Thumbnail ───────────────────────────── */
.card-thumb {
  width: 100%;
  aspect-ratio: 16/9;
  overflow: hidden;
}

.card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ── Blog Grid ─────────────────────────────────────── */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--gap);
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 2em;
}

.article-card {
  background: var(--surface);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.article-card.pinned {
  border-left: 3px solid var(--accent);
  background: rgba(37,99,235,0.06);
}

.article-card-body {
  padding: 1.5em;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.article-card-body h3 {
  font-size: 1em;
  margin-bottom: 0.5em;
}

.article-card-body h3 a {
  color: var(--text);
  text-decoration: none;
}

.article-card-body h3 a:hover {
  color: var(--accent);
}

.article-card-meta {
  font-size: 0.78em;
  color: var(--text-muted);
  margin-bottom: 0.75em;
  display: flex;
  align-items: center;
  gap: 0.5em;
}

.article-card-excerpt {
  font-size: 0.88em;
  color: var(--text-muted);
  line-height: 1.6;
  flex: 1;
}

.tag {
  display: inline-block;
  padding: 0.2em 0.6em;
  border-radius: 3px;
  font-size: 0.72em;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  background: var(--surface2);
  color: var(--text-muted);
}

/* Cookie banner button group */
.cookie-btn-group {
  display: flex;
  gap: 0.5em;
}

/* About story section inner override */
.story-section-inner {
  display: block;
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 2em;
}

.tag-popular {
  margin-left: 0.4em;
  vertical-align: middle;
}

.tag.funding {
  background: var(--accent);
  color: #fff;
}

.tag.product { background: rgba(37,99,235,0.15); color: #60a5fa; }
.tag.analytics { background: rgba(139,92,246,0.15); color: #a78bfa; }
.tag.guide { background: rgba(16,185,129,0.15); color: #34d399; }

/* ── Team Cards ────────────────────────────────────── */
.team-grid {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 2em;
}

.team-grid-cols {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2em;
  margin-bottom: 2em;
}

.team-cards-h {
  display: flex;
  flex-direction: column;
  gap: 1.5em;
}

/* Vertical card */
.team-card {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 2em 1.5em;
  text-align: center;
  border: 1px solid var(--border);
}

.team-card img {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  object-fit: cover;
  object-position: 50% 10%;
  display: block;
  margin: 0 auto 1.2rem;
}

.team-card h3 {
  font-size: 1em;
  font-weight: 700;
  margin-bottom: 0.25em;
  color: var(--text);
}

.team-card .team-role {
  font-size: 0.8em;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.75em;
}

.team-card .bio {
  font-size: 0.85em;
  color: var(--text-muted);
  line-height: 1.6;
}

/* Horizontal card */
.team-card.team-card--h {
  display: flex !important;
  flex-direction: row !important;
  align-items: flex-start !important;
  gap: 1.8em !important;
  padding: 1.8em 2em !important;
  text-align: left !important;
}

.team-card.team-card--h img {
  width: 88px !important;
  height: 88px !important;
  min-width: 88px !important;
  margin: 0 !important;
  border-radius: 50% !important;
}

.team-card.team-card--h .team-info {
  flex: 1;
  min-width: 0;
}

@media (max-width: 600px) {
  .team-card.team-card--h {
    flex-direction: column !important;
    align-items: center !important;
    text-align: center !important;
  }
}

/* ── Pricing Cards ─────────────────────────────────── */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--gap);
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 2em;
}

.pricing-card {
  background: var(--surface);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  padding: 2.5em 2em;
  display: flex;
  flex-direction: column;
}

.pricing-card.featured {
  border-color: var(--accent);
  background: rgba(37,99,235,0.08);
}

.pricing-card .plan-name {
  font-size: 0.8em;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-muted);
  margin-bottom: 0.5em;
}

.pricing-card .plan-price {
  font-size: 2.5em;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.2em;
  line-height: 1;
}

.pricing-card .plan-price span {
  font-size: 0.4em;
  vertical-align: super;
  font-weight: 400;
}

.pricing-card .plan-period {
  font-size: 0.82em;
  color: var(--text-muted);
  margin-bottom: 1.5em;
}

.pricing-card ul {
  list-style: none;
  padding: 0;
  margin: 0 0 2em;
  flex: 1;
}

.pricing-card ul li {
  padding: 0.5em 0;
  font-size: 0.88em;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 0.6em;
}

.pricing-card ul li i {
  color: var(--accent);
  font-size: 0.85em;
}

/* ── Product Feature Sections ──────────────────────── */
.feature-img-wrap {
  width: 100%;
  overflow: hidden;
  border-radius: var(--radius);
  margin: 0 0 2em;
}

.feature-img-wrap img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  object-position: center;
  display: block;
}

/* ── CTA Section ───────────────────────────────────── */
.cta-section {
  background: var(--accent);
  padding: 5em 2em;
  text-align: center;
}

#main .cta-section h2,
#main .cta-section p {
  color: #ffffff !important;
}

#main .cta-section .button.primary {
  background: #ffffff;
  color: var(--accent) !important;
  border: none;
}

#main .cta-section .actions {
  justify-content: center;
  margin-left: 0;
}

/* ── Stats Bar ─────────────────────────────────────── */
.stats-bar {
  background: var(--surface2);
  padding: 4em 2em;
}

.stats-inner {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 2em;
  max-width: 1100px;
  margin: 0 auto;
  text-align: center;
}

#main .stats-bar .stat-number {
  font-size: 2.5em;
  font-weight: 700;
  color: var(--accent) !important;
  display: block;
}

#main .stats-bar .stat-label {
  font-size: 0.82em;
  color: rgba(255,255,255,0.7) !important;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* ── Cookie Banner ─────────────────────────────────── */
#cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 10003;
  background: var(--surface, #22263a);
  color: var(--text, #e8eaf0);
  padding: 1.2em 2em;
  border-top: 1px solid var(--border, rgba(255,255,255,0.08));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1em;
  flex-wrap: wrap;
}

#cookie-banner p {
  margin: 0;
  font-size: 0.88em;
}

#cookie-banner a {
  color: var(--accent, #2563eb);
}

#cookie-banner button {
  border: none;
  padding: 0.45em 1.2em;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.85em;
}

#cookie-banner #cookie-accept {
  background: var(--accent, #2563eb);
  color: #fff;
}

#cookie-banner #cookie-decline {
  background: transparent;
  color: var(--text-muted, #8892a4);
  border: 1px solid var(--border, rgba(255,255,255,0.08));
}

/* ── Article Page ──────────────────────────────────── */
.article-hero-img {
  width: 100%;
  overflow: hidden;
  border-radius: var(--radius);
  margin-bottom: 2rem;
}

.article-hero-img img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  object-position: center;
  display: block;
}

.article-content {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 2em;
}

.article-content h2 {
  font-size: 1.4em;
  margin: 1.5em 0 0.5em;
}

.article-content p {
  line-height: 1.8;
  margin-bottom: 1.2em;
}

.article-content ul {
  list-style: disc;
  padding-left: 1.5em;
  margin-bottom: 1.2em;
}

.article-content ul li {
  line-height: 1.8;
  margin-bottom: 0.5em;
}

.article-back {
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  color: var(--accent);
  text-decoration: none;
  font-size: 0.88em;
  margin-bottom: 2em;
}

.article-meta {
  display: flex;
  align-items: center;
  gap: 1em;
  margin-bottom: 2em;
  flex-wrap: wrap;
}

.article-meta time {
  font-size: 0.85em;
  color: var(--text-muted);
}

/* ── Investors Section ─────────────────────────────── */
.investors-section {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 2em;
}

.investor-block {
  background: var(--surface);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  padding: 2.5em 2em;
  max-width: 540px;
}

/* ── Footer ────────────────────────────────────────── */
#footer .inner {
  display: block; /* override grid from main.css */
  max-width: 1100px;
  margin: 0 auto;
}

.footer-cols {
  display: flex;
  gap: 3em;
  flex-wrap: wrap;
  margin-bottom: 2.5em;
}

.footer-col {
  flex: 1;
  min-width: 180px;
}

.footer-col h3 {
  font-size: 0.8em;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 1em;
  color: rgba(255,255,255,0.85);
}

.footer-nav {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-nav li {
  margin-bottom: 0.5em;
}

.footer-nav a {
  color: rgba(255,255,255,0.55);
  text-decoration: none;
  font-size: 0.85em;
  border: none;
}

.footer-nav a:hover {
  color: #fff;
}

.footer-desc {
  font-size: 0.85em;
  color: rgba(255,255,255,0.5);
  line-height: 1.6;
}

/* ── Fix: missing bg.jpg — override body background ── */
body {
  background-color: var(--bg);
  background-image: none;
}

/* Fix: banner background at responsive breakpoints */
@media screen and (max-width: 1280px) {
  #banner {
    background-color: var(--bg);
    background-image: url('../images/hero-main.jpg') !important;
    background-size: cover !important;
    background-position: center !important;
  }
}

/* ── Responsive Overrides ──────────────────────────── */
@media (max-width: 768px) {
  .pricing-grid,
  .blog-grid,
  .features-grid {
    grid-template-columns: 1fr;
  }

  .footer-cols {
    flex-direction: column;
    gap: 2em;
  }

  #cookie-banner {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* ── Wrapper sections max-width ────────────────────── */
#wrapper .inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 2em;
}

/* ── Contact Page ──────────────────────────────────── */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4em;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 2em;
}

@media (max-width: 768px) {
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 2em;
  }
}

.contact-info-item {
  display: flex;
  align-items: flex-start;
  gap: 1em;
  margin-bottom: 1.5em;
}

.contact-info-item i {
  color: var(--accent);
  font-size: 1.1em;
  margin-top: 0.1em;
  flex-shrink: 0;
}

.contact-info-item p {
  margin: 0;
  font-size: 0.9em;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ── Legal Pages ───────────────────────────────────── */
.legal-content {
  max-width: 860px;
  margin: 0 auto;
  padding: 0 2em 4em;
}

.legal-content h2 {
  font-size: 1.2em;
  margin: 2em 0 0.75em;
  color: var(--text);
}

.legal-content p {
  font-size: 0.9em;
  line-height: 1.8;
  color: var(--text-muted);
  margin-bottom: 1em;
}

.legal-content ul {
  list-style: disc;
  padding-left: 1.5em;
  margin-bottom: 1em;
}

.legal-content ul li {
  font-size: 0.9em;
  line-height: 1.8;
  color: var(--text-muted);
  margin-bottom: 0.4em;
}

/* Cookie policy table */
.cookies-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85em;
  margin-bottom: 1.5em;
}

.cookies-table th {
  text-align: left;
  padding: 0.6em 0.8em;
  border-bottom: 1px solid rgba(255,255,255,0.12);
  color: var(--text);
  font-weight: 600;
}

.cookies-table td {
  padding: 0.6em 0.8em;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  color: var(--text-muted);
  vertical-align: top;
}
