﻿/* Mercately — main.css */

/* Bootstrap icons font fix */
@font-face {
  font-family: "bootstrap-icons";
  src: url("../fonts/bootstrap-icons.woff2") format("woff2"),
       url("../fonts/bootstrap-icons.woff") format("woff");
}

/* ============================================================
   CSS Variables
   ============================================================ */
:root {
  --bg: #0c060a;
  --surface: #150e13;
  --surface2: #1e1520;
  --text: #f0eaee;
  --text-muted: #9a8a93;
  --accent: #ec4899;
  --accent-hover: #db2777;
  --border: rgba(236,72,153,0.15);
  --border-light: rgba(255,255,255,0.08);
  --radius: 12px;
  --gap: 3em;
  --sidebar-w: 0px;
  --funding-bar-h: 0px;
  --nav-height: 4.5em;
}

/* ============================================================
   Reset & Base
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  background-color: var(--bg) !important;
  color: var(--text);
  font-family: 'Inter', 'Helvetica Neue', Arial, sans-serif;
  font-size: 18px;
  line-height: 1.9;
  margin: 0;
  padding: 0;
}

a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-hover); }

img { max-width: 100%; height: auto; }
.img-wrap { overflow: hidden; width: 100%; }
.img-wrap img { width: 100%; object-fit: cover; }

/* ============================================================
   Typography
   ============================================================ */
h1 { font-size: 58px; font-weight: 700; line-height: 1.1; color: #ffffff; margin-bottom: 0.5em; }
h2 { font-size: 40px; font-weight: 700; line-height: 1.3; color: #ffffff; margin-bottom: 0.5em; }
h3 { font-size: 1.6rem; font-weight: 600; line-height: 1.4; color: #ffffff; margin-bottom: 0.4em; }
h4 { font-size: 18px; font-weight: 600; line-height: 1.5; color: #ffffff; margin-bottom: 0.3em; }
p, li { font-size: 18px; line-height: 1.9; color: var(--text); }

/* ============================================================
   Funding Bar
   ============================================================ */
#funding-bar { color: #fff !important; }

/* ============================================================
   Navigation
   ============================================================ */
.navbar {
  position: fixed !important;
  top: var(--funding-bar-h, 0px) !important;
  left: 0 !important;
  right: 0 !important;
  width: 100% !important;
  min-height: 4.5em !important;
  z-index: 9999 !important;
  background-color: var(--bg) !important;
  border-bottom: 1px solid var(--border-light) !important;
  padding: 0 2.5em !important;
  transition: top 0.3s ease;
}

.navbar .container {
  max-width: 1200px;
  display: flex;
  align-items: center;
  height: 4.5em;
}

.navbar-brand.site-logo {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  margin-right: auto;
  padding: 0;
}

.navbar-nav {
  display: flex;
  flex-direction: row;
  list-style: none;
  margin: 0 0 0 auto;
  padding: 0;
  gap: 0;
}

.navbar-nav .nav-item .nav-link {
  display: flex;
  align-items: center;
  height: 4.5em;
  padding: 0 1.1em !important;
  color: rgba(255,255,255,0.72) !important;
  font-size: 15px !important;
  letter-spacing: 0.04em;
  text-transform: none;
  white-space: nowrap;
  transition: color 0.2s;
}

.navbar-nav .nav-item .nav-link:hover,
.navbar-nav .nav-item.active .nav-link { color: #ffffff !important; }

.navbar-toggler {
  border-color: rgba(255,255,255,0.3) !important;
  color: rgba(255,255,255,0.8) !important;
}
.navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255%2C255%2C255%2C0.8%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") !important;
}

body { padding-top: calc(4.5em + var(--funding-bar-h, 0px)); }

/* ============================================================
   Layout
   ============================================================ */
.container { max-width: 1100px; margin: 0 auto; padding: 0 2em; }
.container-wide { max-width: 1300px; margin: 0 auto; padding: 0 2em; }

.section-pad { padding: 6em 0; }
.section-pad-sm { padding: 4em 0; }

.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; }

.section-header { text-align: center; max-width: 680px; margin: 0 auto 3.5em; }
.section-header .label {
  color: var(--accent);
  font-size: 0.78rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  margin-bottom: 0.8em;
  display: block;
}
.section-header p { color: var(--text-muted); font-size: 18px; }

/* ============================================================
   Hero
   ============================================================ */
#hero {
  min-height: 640px;
  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: 5em 2em 5em;
  position: relative;
  overflow: hidden;
}
#hero::before {
  content: '';
  position: absolute;
  top: -200px; right: -200px;
  width: 600px; height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0,0,0,0.55) 0%, transparent 70%);
  pointer-events: none;
}

#hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.55);
  z-index: 0;
  pointer-events: none;
}
.hero-inner {
  max-width: 1100px;
  margin: 0 auto;
  width: 100%;
  display: grid;
  grid-template-columns: 3fr 2fr;
  gap: 5em;
  align-items: center;
}
.hero-label {
  color: var(--accent);
  font-size: 0.78rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  margin-bottom: 1.2em;
  display: block;
}
.hero-ctas {
  display: flex;
  flex-direction: column;
  gap: 1em;
  align-items: flex-start;
  margin-top: 2em;
}
.hero-right p { color: rgba(255,255,255,0.72); font-size: 1.05rem; line-height: 1.9; }

/* Hero image */
#hero-img-wrap {
  border-radius: var(--radius);
  overflow: hidden;
  position: relative;
}
#hero-img-wrap img { width: 100%; height: 340px; object-fit: cover; display: block; }

/* ============================================================
   Buttons
   ============================================================ */
.btn-primary {
  background: var(--accent) !important;
  color: #fff !important;
  border: none !important;
  padding: 0.85em 2.2em;
  border-radius: 8px;
  font-weight: 600;
  font-size: 16px;
  cursor: pointer;
  display: inline-block;
  transition: background 0.2s, transform 0.15s;
  text-decoration: none;
}
.btn-primary:hover {
  background: var(--accent-hover) !important;
  color: #fff !important;
  transform: translateY(-1px);
}
.btn-outline {
  background: transparent !important;
  color: rgba(255,255,255,0.85) !important;
  border: 1px solid rgba(255,255,255,0.3) !important;
  padding: 0.85em 2.2em;
  border-radius: 8px;
  font-weight: 500;
  font-size: 16px;
  cursor: pointer;
  display: inline-block;
  transition: all 0.2s;
  text-decoration: none;
}
.btn-outline:hover {
  border-color: var(--accent) !important;
  color: var(--accent) !important;
}

/* ============================================================
   Cards & Surfaces
   ============================================================ */
.card-surface {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2.2em;
}
.card-surface:hover { border-color: rgba(236,72,153,0.4); }

.feature-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2.2em;
  transition: border-color 0.2s, transform 0.2s;
}
.feature-card:hover { border-color: rgba(236,72,153,0.5); transform: translateY(-3px); }
.feature-card .icon {
  width: 52px; height: 52px;
  background: rgba(236,72,153,0.12);
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 1.2em;
  font-size: 1.4rem;
  color: var(--accent);
}
.feature-card h3 { font-size: 1.2rem; margin-bottom: 0.5em; }
.feature-card p { color: var(--text-muted); font-size: 16px; margin: 0; }

/* ============================================================
   Stats Bar
   ============================================================ */
.stats-bar {
  background: var(--surface);
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
  padding: 3em 2em;
}
.stats-grid {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2em;
  text-align: center;
}
.stat-num {
  font-size: 45px;
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 0.3em;
}
.stat-label { color: var(--text-muted); font-size: 15px; }

/* ============================================================
   About Page
   ============================================================ */
body.page-about #page-hero {
  background-image: url('../images/about-hero.jpg'); background-size: cover; background-position: center; background-repeat: no-repeat;
}
.spotlight-section .spotlight-inner {
  display: flex;
  gap: 4em;
  align-items: center;
  max-width: 1100px;
  margin: 0 auto;
}
.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 p { color: var(--text-muted); }

.values-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px,1fr));
  gap: 2em;
  max-width: 1100px;
  margin: 2.5em auto 0;
}
.value-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.8em;
}
.value-item .icon { font-size: 1.6rem; color: var(--accent); margin-bottom: 0.8em; }
.value-item h4 { font-size: 16px; margin-bottom: 0.4em; }
.value-item p { color: var(--text-muted); font-size: 15px; margin: 0; }

/* ============================================================
   Team
   ============================================================ */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px,1fr));
  gap: 2.5em;
  max-width: 1100px;
  margin: 0 auto;
}
.team-card { text-align: center; }
.team-card img {
  width: 150px; height: 150px;
  border-radius: 50%;
  object-fit: cover;
  object-position: top center;
  border: 3px solid var(--border);
  margin-bottom: 1.2em;
}
.team-card h3 { font-size: 1.2rem; margin-bottom: 0.2em; }
.team-card .title { color: var(--accent); font-size: 0.9rem; margin-bottom: 0.8em; }
.team-card p { color: var(--text-muted); font-size: 16px; line-height: 1.7; }

/* ============================================================
   Platform / Product Page
   ============================================================ */
.feature-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4em;
  align-items: center;
  max-width: 1100px;
  margin: 0 auto 5em;
}
.feature-row.reverse { direction: rtl; }
.feature-row.reverse > * { direction: ltr; }
.feature-text h3 { font-size: 1.8rem; margin-bottom: 0.8em; }
.feature-text p { color: var(--text-muted); margin-bottom: 1.5em; }
.feature-text ul { list-style: none; padding: 0; }
.feature-text ul li {
  color: var(--text-muted);
  font-size: 16px;
  padding: 0.4em 0;
  padding-left: 1.6em;
  position: relative;
}
.feature-text ul li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--accent);
}
.feature-visual {
  border-radius: var(--radius);
  overflow: hidden;
}
.feature-visual img {
  width: 100%;
  height: 320px;
  object-fit: cover;
  border-radius: var(--radius);
  display: block;
}

.how-it-works {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px,1fr));
  gap: 2em;
  max-width: 1100px;
  margin: 0 auto;
  counter-reset: steps;
}
.step-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2em;
  position: relative;
  counter-increment: steps;
}
.step-card::before {
  content: counter(steps);
  font-size: 3rem;
  font-weight: 700;
  color: rgba(236,72,153,0.15);
  line-height: 1;
  display: block;
  margin-bottom: 0.5em;
}
.step-card h4 { font-size: 18px; margin-bottom: 0.5em; }
.step-card p { color: var(--text-muted); font-size: 15px; margin: 0; }

/* ============================================================
   Contact
   ============================================================ */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4em;
  max-width: 900px;
  margin: 0 auto;
}
.contact-info h3 {
  font-size: 16px;
  color: var(--accent);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 0.6em;
  margin-top: 1.8em;
}
.contact-info h3:first-child { margin-top: 0; }
.contact-info p { color: var(--text-muted); font-size: 16px; margin: 0; line-height: 1.8; }
.contact-info a { color: var(--text-muted); }
.contact-info a:hover { color: var(--accent); }
.contact-message h3 { font-size: 1.4rem; margin-bottom: 0.8em; }
.contact-message p { color: var(--text-muted); margin-bottom: 1.5em; }

/* ============================================================
   Page Hero (inner pages)
   ============================================================ */
#page-hero {
  background: linear-gradient(135deg, var(--bg) 0%, var(--surface2) 100%);
  padding: 5em 2em 4em;
  text-align: center;
}
#page-hero .label {
  color: var(--accent);
  font-size: 0.78rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  display: block;
  margin-bottom: 1em;
}
#page-hero h1 { font-size: 3rem; margin-bottom: 0.6em; }
#page-hero p { color: rgba(255,255,255,0.6); font-size: 18px; max-width: 600px; margin: 0 auto; }

/* ============================================================
   Blog Shell
   ============================================================ */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px,1fr));
  gap: 2.5em;
  max-width: 1100px;
  margin: 0 auto;
}
.blog-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color 0.2s;
}
.blog-card:hover { border-color: rgba(236,72,153,0.4); }
.blog-card-img { width: 100%; height: 200px; object-fit: cover; }
.blog-card-body { padding: 1.8em; }
.blog-card-body .meta { color: var(--text-muted); font-size: 0.85rem; margin-bottom: 0.8em; }
.blog-card-body h3 { font-size: 1.2rem; margin-bottom: 0.6em; }
.blog-card-body p { color: var(--text-muted); font-size: 15px; margin: 0; }

/* ============================================================
   Footer
   ============================================================ */
#footer {
  width: 100%;
  background: var(--surface);
  border-top: 1px solid var(--border-light);
}
#footer .inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  max-width: 1100px;
  margin: 0 auto;
  padding: 3em 2em;
  gap: 3em;
}
#footer h3 { font-size: 18px; margin-bottom: 0.8em; }
#footer h4 { font-size: 0.9rem; text-transform: uppercase; letter-spacing: 0.12em; color: var(--text-muted); margin-bottom: 1em; }
#footer p { color: var(--text-muted); font-size: 15px; line-height: 1.7; margin-bottom: 0.5em; }
.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.9em; }
.footer-nav a:hover { color: var(--text); }
.footer-copy { color: var(--text-muted); font-size: 0.82em; margin-top: 1em; }

/* ============================================================
   Cookie Banner
   ============================================================ */
#cookie-banner {
  display: none;
  position: fixed;
  bottom: 0;
  left: 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: 16px; color: var(--text); }
.cookie-text p { font-size: 14px; color: var(--text-muted); margin: 0.4em 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);
  background: transparent;
  color: var(--text-muted);
  border-radius: 6px;
  cursor: pointer;
  font-size: 14px;
}
#cookie-accept {
  padding: 0.6em 1.4em;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
}

/* ============================================================
   Utility
   ============================================================ */
.text-accent { color: var(--accent) !important; }
.text-muted-custom { color: var(--text-muted); }
.bg-surface { background: var(--surface); }
.bg-surface2 { background: var(--surface2); }
.border-top-accent { border-top: 3px solid var(--accent); }
.divider { border: none; border-top: 1px solid var(--border-light); margin: 0; }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 992px) {
  .navbar-collapse { background: var(--bg); padding: 1em 0 1.5em; border-bottom: 1px solid var(--border-light); }
  .navbar-nav { flex-direction: column; }
  .navbar-nav .nav-item .nav-link { height: auto; padding: 0.7em 1.5em !important; }
}

@media (max-width: 768px) {
  body { font-size: 16px; }
  h1 { font-size: 2.2rem; }
  h2 { font-size: 1.7rem; }
  h3 { font-size: 1.3rem; }
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .hero-inner { grid-template-columns: 1fr; gap: 2.5em; }
  #hero-img-wrap { display: none; }
  .stats-grid { grid-template-columns: repeat(2,1fr); }
  .spotlight-section .spotlight-inner { flex-direction: column; }
  .story-img { width: 100%; }
  .feature-row { grid-template-columns: 1fr; gap: 2em; }
  .feature-row.reverse { direction: ltr; }
  .contact-grid { grid-template-columns: 1fr; gap: 2.5em; }
  #footer .inner { grid-template-columns: 1fr; padding: 2em; }
  .hero-ctas { flex-direction: row; flex-wrap: wrap; }
  #page-hero h1 { font-size: 2rem; }
}

@media (max-width: 576px) {
  .stats-grid { grid-template-columns: 1fr; }
  .cookie-content { flex-direction: column; align-items: flex-start; }
}
