/**
 * Theme Name:  MJC Fintech Child
 * Theme URI:   https://mjcfintech.com
 * Description: Custom child theme for MJC Fintech Private Limited.
 *              Built on Astra parent theme. No page builders.
 *              Design source: https://www.figma.com/design/TNTRqvjruq3HQupqPeiRgy/MJC-Design-Project
 *              Design system: "Financial Waves" — Space Grotesk + DM Sans + JetBrains Mono.
 *              Navy / Teal / Cyan colour palette.
 * Author:      Robin Rajan
 * Template:    astra
 * Version:     1.0.0
 * Text Domain: mjc-fintech-child
 */

/*
 * =============================================================================
 * NOTE: All CSS custom properties (design tokens) are defined in:
 *       assets/css/tokens.css
 *
 * This file only contains:
 *   - Astra parent overrides
 *   - Global element resets/defaults
 *   - Typography base styles
 * =============================================================================
 */


/* =====================================================
   ASTRA PARENT OVERRIDES
   ===================================================== */

/* Remove Astra's default padding on .ast-container if present */
.ast-container {
  max-width: var(--container-max) !important;
  padding-left: var(--container-padding) !important;
  padding-right: var(--container-padding) !important;
}

/* Hide Astra's scroll-to-top button (using custom MJC button instead) */
#ast-scroll-top,
.ast-scroll-top-icon {
  display: none !important;
}

@media (max-width: 768px) {
  .ast-container {
    padding-left: var(--container-padding) !important;  /* token handles mobile value */
    padding-right: var(--container-padding) !important;
  }
}


/* =====================================================
   GLOBAL RESET / BASE
   ===================================================== */

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

html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  font-family:      var(--font-body);
  font-size:        var(--text-body);
  line-height:      var(--lh-body);
  color:            var(--color-white-muted);
  background-color: var(--color-surface);
  -webkit-font-smoothing:  antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img,
picture,
video,
canvas,
svg {
  display: block;
  max-width: 100%;
}

input,
button,
textarea,
select {
  font: inherit;
}

p,
h1,
h2,
h3,
h4,
h5,
h6 {
  overflow-wrap: break-word;
}


/* =====================================================
   TYPOGRAPHY BASE
   ===================================================== */

h1, h2, h3, h4, h5, h6 {
  font-family:  var(--font-heading);
  font-weight:  var(--fw-bold);
  color:        var(--color-white);
  line-height:  var(--lh-heading);
}

h1 { font-size: var(--text-h1); }
h2 { font-size: var(--text-h2); line-height: var(--lh-subheading); }
h3 { font-size: var(--text-h3); line-height: var(--lh-h3); }
h4 { font-size: var(--text-h4); }

/* Headings on light backgrounds */
.mjc-light h1,
.mjc-light h2,
.mjc-light h3,
.mjc-light h4 {
  color: var(--color-navy);
}

p {
  font-size:   var(--text-body);
  line-height: var(--lh-body);
  color:       var(--color-white-muted);
}

.mjc-light p {
  color: var(--color-navy-mid);
}

a {
  color:           var(--color-teal);
  text-decoration: none;
  transition:      color var(--transition-fast);
}

a:hover {
  color: var(--color-teal-light);
}

a:focus-visible {
  outline:        2px solid var(--color-cyan);
  outline-offset: 3px;
  border-radius:  var(--radius-sm);
}

code,
pre {
  font-family: var(--font-mono);
  font-size:   0.875em;
}


/* =====================================================
   LAYOUT UTILITIES
   ===================================================== */

/* Standard page wrapper */
.mjc-page {
  overflow-x: hidden;
}

/* Section container */
.mjc-container {
  max-width:     var(--container-max);
  margin-left:   auto;
  margin-right:  auto;
  padding-left:  var(--container-padding);
  padding-right: var(--container-padding);
}

/* Standard section padding */
.mjc-section {
  padding-top:    var(--section-padding-y);
  padding-bottom: var(--section-padding-y);
}

/* Dark background sections */
.mjc-dark {
  background: var(--gradient-hero);
  color:      var(--color-white-muted);
}

/* Light background sections */
.mjc-light {
  background-color: var(--color-surface);
  color:            var(--color-navy-mid);
}

/* White card sections */
.mjc-white {
  background-color: var(--color-surface-card);
}

/* Screen-reader only utility */
.sr-only {
  position:   absolute;
  width:      1px;
  height:     1px;
  padding:    0;
  margin:     -1px;
  overflow:   hidden;
  clip:       rect(0, 0, 0, 0);
  white-space: nowrap;
  border:     0;
}

/* =====================================================
   PAGE TITLE (stub pages)
   ===================================================== */

.mjc-page-title {
  color: var(--color-navy);
}

/* =====================================================
   FOOTER COPYRIGHT
   ===================================================== */

.mjc-footer__copyright {
  color:       var(--color-white-faint);
  padding:     var(--space-7) 0;
  text-align:  center;
}
