/* Muneris.App — Marketing Site (Style Guide v1.0 + images) */

:root {
  /* Primary */
  --cyan-accent: #45b8f0;
  --brand-blue: #2e7df0;
  --deep-navy: #1a52d4;
  --gradient: linear-gradient(135deg, #1a52d4 0%, #45b8f0 100%);

  /* Backgrounds */
  --bg-black: #0d0d0d;
  --bg-off-black: #141414;
  --bg-charcoal: #1e1e1e;
  --bg-cream: #faf8f5;
  --bg-off-white: #f7f4f0;

  /* Text */
  --text-white: #f5f2ee;
  --text-mid: #aaaaaa;
  --text-muted: #888888;
  --text-dark: #1a1a1a;
  --text-grey: #666666;

  /* Borders */
  --border-dark: #2a2a2a;
  --border-light: #e8e4df;

  /* Fonts */
  --font-display: 'Outfit', sans-serif;
  --font-body: 'DM Sans', sans-serif;

  /* Layout */
  --max-width: 1120px;
  --radius: 12px;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.12);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.2);
}

*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  color: var(--text-white);
  background: var(--bg-black);
  line-height: 1.65;
  font-weight: 300;
  -webkit-font-smoothing: antialiased;
}

/* ---------- Nav ---------- */

.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(13,13,13,0.88);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-dark);
}

.nav-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-white);
  text-decoration: none;
  letter-spacing: -0.02em;
}

.nav-logo img {
  height: 32px;
  width: auto;
}

.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
  align-items: center;
}

.nav-links a {
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 400;
  color: var(--text-mid);
  text-decoration: none;
  transition: color 0.15s;
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
  color: var(--cyan-accent);
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text-white);
  margin: 5px 0;
  transition: 0.2s;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 16px 36px;
  border-radius: 8px;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s;
  border: none;
}

.btn-primary {
  background: var(--cyan-accent);
  color: var(--bg-black);
}

.btn-primary:hover {
  background: #5cc4f5;
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(69, 184, 240, 0.35);
}

.btn-outline {
  background: transparent;
  color: var(--cyan-accent);
  border: 2px solid var(--cyan-accent);
}

.btn-outline:hover {
  background: var(--cyan-accent);
  color: var(--bg-black);
}

/* On light backgrounds */
.section-light .btn-outline {
  color: var(--brand-blue);
  border-color: var(--brand-blue);
}

.section-light .btn-outline:hover {
  background: var(--brand-blue);
  color: #fff;
}

/* ---------- Sections ---------- */

.section {
  padding: 5rem 1.5rem;
}

.section-dark {
  background: var(--bg-black);
  color: var(--text-white);
}

.section-dark-alt {
  background: var(--bg-off-black);
  color: var(--text-white);
}

.section-charcoal {
  background: var(--bg-charcoal);
  color: var(--text-white);
}

.section-light {
  background: var(--bg-cream);
  color: var(--text-dark);
}

.section-light-alt {
  background: var(--bg-off-white);
  color: var(--text-dark);
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
}

/* ---------- Eyebrow / Label ---------- */

.section-label {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--cyan-accent);
  margin-bottom: 1rem;
}

.section-label::before {
  content: '';
  display: block;
  width: 24px;
  height: 1px;
  background: var(--cyan-accent);
}

.section-light .section-label {
  color: var(--brand-blue);
}

.section-light .section-label::before {
  background: var(--brand-blue);
}

/* ---------- Headings ---------- */

.section-heading {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
}

.section-light .section-heading {
  color: var(--text-dark);
}

.section-subheading {
  font-size: 1rem;
  font-weight: 300;
  max-width: 600px;
  margin-bottom: 2rem;
  line-height: 1.65;
}

.section-dark .section-subheading,
.section-dark-alt .section-subheading,
.section-charcoal .section-subheading {
  color: var(--text-mid);
}

.section-light .section-subheading,
.section-light-alt .section-subheading {
  color: var(--text-grey);
}

/* ---------- Hero (split with image) ---------- */

.hero {
  padding: 0;
  min-height: 85vh;
  display: grid;
  grid-template-columns: 55% 45%;
  align-items: center;
  overflow: hidden;
  background: var(--bg-black);
  color: var(--text-white);
}

.hero-content {
  padding: 4rem 3rem 4rem calc(max(1.5rem, (100% - var(--max-width) * 0.55) / 2 + 1.5rem));
  padding-left: max(1.5rem, calc((100vw - var(--max-width)) / 2));
}

.hero-content .section-heading {
  font-size: clamp(2.2rem, 4.5vw, 3.5rem);
  font-weight: 800;
  max-width: 600px;
}

.hero-content .section-subheading {
  font-size: 1.15rem;
  color: var(--text-mid);
}

.hero-cta {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.hero-image {
  position: relative;
  height: 100%;
  min-height: 500px;
  overflow: hidden;
}

.hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ---------- Hero Carousel ---------- */

.hero-carousel {
  position: relative;
}

.hero-carousel .hero-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1.2s ease-in-out;
}

.hero-carousel .hero-slide.active {
  opacity: 1;
}

/* Keep first image in flow so container has height */
.hero-carousel .hero-slide:first-child {
  position: relative;
}

/* ---------- Pillar Hero (with background image) ---------- */

.pillar-hero {
  position: relative;
  padding: 5rem 1.5rem;
  min-height: 400px;
  display: flex;
  align-items: center;
  overflow: hidden;
  color: var(--text-white);
}

.pillar-hero .img-placeholder,
.pillar-hero img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.pillar-hero .img-placeholder {
  background: linear-gradient(135deg, var(--bg-black) 0%, #1a2940 100%);
}

.pillar-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(13,13,13,0.9) 0%, rgba(13,13,13,0.6) 60%, rgba(13,13,13,0.3) 100%);
  z-index: 1;
}

.pillar-hero .container {
  position: relative;
  z-index: 2;
}

.pillar-hero .section-label {
  color: var(--cyan-accent);
}

.pillar-hero .section-heading {
  color: var(--text-white);
  max-width: 560px;
}

.pillar-hero .section-subheading {
  color: rgba(255,255,255,0.75);
}

/* Placeholder styling — remove when real images are added */
.img-placeholder {
  width: 100%;
  height: 100%;
  min-height: 100%;
  background: linear-gradient(135deg, var(--bg-black) 0%, #1a2940 50%, var(--brand-blue) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.2);
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* ---------- Inline Image (two-col with image) ---------- */

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.section-image {
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4 / 3;
}

.section-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.section-image .img-placeholder {
  aspect-ratio: 4 / 3;
  border-radius: var(--radius);
  min-height: auto;
}

/* ---------- Bridge (Gradient) ---------- */

.bridge {
  text-align: center;
  padding: 5rem 1.5rem;
  background: var(--gradient);
  color: #fff;
}

.bridge .section-heading {
  color: #fff;
  max-width: 680px;
  margin: 0 auto 1rem;
}

.bridge .section-subheading {
  color: rgba(255,255,255,0.8);
  margin: 0 auto;
  max-width: 620px;
}

.bridge .section-label {
  color: rgba(255,255,255,0.7);
  justify-content: center;
}

.bridge .section-label::before {
  background: rgba(255,255,255,0.5);
}

/* ---------- Bullet List ---------- */

.bullet-list {
  list-style: none;
  display: grid;
  gap: 1.25rem;
  margin-top: 1.5rem;
}

.bullet-list li {
  position: relative;
  padding-left: 2rem;
  font-size: 0.95rem;
  font-weight: 300;
  line-height: 1.65;
}

.bullet-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.55rem;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--cyan-accent);
  opacity: 0.7;
}

.section-light .bullet-list li {
  color: var(--text-dark);
}

.section-light .bullet-list li::before {
  background: var(--brand-blue);
}

/* ---------- Cards Grid ---------- */

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.card {
  background: var(--bg-charcoal);
  border: 1px solid var(--border-dark);
  border-radius: var(--radius);
  overflow: hidden;
  transition: box-shadow 0.2s, transform 0.2s;
}

.card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.section-light .card {
  background: #fff;
  border-color: var(--border-light);
}

.card-body {
  padding: 1.5rem;
}

.card-label {
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--cyan-accent);
  margin-bottom: 0.5rem;
}

.section-light .card-label {
  color: var(--brand-blue);
}

.card h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  line-height: 1.3;
}

.card p {
  font-size: 0.95rem;
  font-weight: 300;
  color: var(--text-mid);
}

.section-light .card h3 {
  color: var(--text-dark);
}

.section-light .card p {
  color: var(--text-grey);
}

.card .btn {
  margin-top: 1rem;
  font-size: 0.75rem;
  padding: 10px 20px;
}

/* ---------- Testimonials ---------- */

.testimonials {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.testimonial {
  background: var(--bg-charcoal);
  border: 1px solid var(--border-dark);
  border-radius: var(--radius);
  padding: 2rem;
  margin: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.testimonial-text {
  font-size: 1.05rem;
  font-weight: 300;
  line-height: 1.7;
  color: var(--text-white);
  margin-bottom: 1.5rem;
  font-style: italic;
}

.testimonial-author {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  font-style: normal;
}

.testimonial-author strong {
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-white);
}

.testimonial-author span {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.section-light .testimonial {
  background: #fff;
  border-color: var(--border-light);
}

.section-light .testimonial-text {
  color: var(--text-dark);
}

.section-light .testimonial-author strong {
  color: var(--text-dark);
}

/* ---------- Stats ---------- */

.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
  text-align: center;
}

.stat-number {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--cyan-accent);
  line-height: 1;
}

.stat-label {
  font-size: 0.9rem;
  font-weight: 300;
  color: var(--text-mid);
  margin-top: 0.5rem;
}

/* ---------- CTA Section (with background image) ---------- */

.cta-section {
  position: relative;
  text-align: center;
  padding: 5rem 1.5rem;
  background: var(--bg-black);
  color: var(--text-white);
  overflow: hidden;
  border-top: 1px solid var(--border-dark);
}

.cta-section .cta-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.cta-section .cta-bg img,
.cta-section .cta-bg .img-placeholder {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.15;
}

.cta-section .container {
  position: relative;
  z-index: 1;
}

.cta-section p {
  color: var(--text-mid);
  max-width: 520px;
  margin: 0 auto 2rem;
  font-size: 1rem;
  font-weight: 300;
}

.cta-micro {
  margin-top: 1rem;
  font-size: 0.78rem;
  font-weight: 400;
  color: var(--text-muted);
}

/* ---------- Footer ---------- */

.footer {
  padding: 2.5rem 1.5rem;
  border-top: 1px solid var(--border-dark);
  text-align: center;
  font-size: 0.78rem;
  font-weight: 400;
  color: var(--text-muted);
  background: var(--bg-black);
}

.footer a {
  color: var(--text-muted);
  text-decoration: none;
}

.footer a:hover {
  color: var(--cyan-accent);
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}

/* ---------- Pillar Page ---------- */

.pillar-intro {
  max-width: 680px;
}

.pillar-intro .section-subheading {
  font-size: 1.1rem;
  margin-bottom: 0;
}

/* ---------- Responsive ---------- */

@media (max-width: 768px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: var(--bg-off-black);
    border-bottom: 1px solid var(--border-dark);
    flex-direction: column;
    padding: 1rem 1.5rem;
    gap: 1rem;
  }

  .nav-links.open {
    display: flex;
  }

  .nav-toggle {
    display: block;
  }

  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .hero-content {
    padding: 3rem 1.5rem;
    max-width: 100%;
    margin-left: 0;
    text-align: center;
  }

  .hero-cta {
    justify-content: center;
  }

  .hero-image {
    min-height: 300px;
    order: -1;
  }

  .two-col {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .section {
    padding: 3.5rem 1.5rem;
  }

  .cards {
    grid-template-columns: 1fr;
  }

  .stats {
    grid-template-columns: 1fr 1fr;
  }

  .pillar-hero {
    min-height: 320px;
  }
}
