/* ==========================================================================
   MITS LKO — main.css
   CSS variables, base reset, typography, global utilities
   Design system per CLAUDE.md + theme-info.md (Adma reference)
   ========================================================================== */

:root {
  /* Colors */
  --clr-primary: #1A3C6E;
  --clr-primary-light: #2B5BA8;
  --clr-accent: #E8A020;
  --clr-accent-dark: #C47F10;
  --clr-logo-maroon: #9E1B1E;
  --clr-white: #FFFFFF;
  --clr-off-white: #F7F8FC;
  --clr-light-gray: #EFF1F7;
  --clr-mid-gray: #8892A4;
  --clr-dark: #1C2233;

  --grad-hero: linear-gradient(135deg, #1A3C6E 0%, #2B5BA8 60%, #E8A020 100%);
  --grad-section-dark: linear-gradient(135deg, #1C2233 0%, #1A3C6E 100%);

  /* Typography */
  --font-heading: 'Poppins', sans-serif;
  --font-body: 'Inter', sans-serif;
  --fs-hero: clamp(2.2rem, 5vw, 4rem);
  --fs-h1: clamp(1.8rem, 3.5vw, 2.8rem);
  --fs-h2: clamp(1.4rem, 2.5vw, 2rem);

  /* Radii & shadows */
  --radius-pill: 50rem;
  --radius-card: 12px;
  --shadow-sm: 0 4px 20px rgba(0, 0, 0, 0.07);
  --shadow-md: 0 8px 28px rgba(0, 0, 0, 0.10);
  --shadow-lg: 0 12px 36px rgba(26, 60, 110, 0.15);
}

/* ---------- Base reset ---------- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* overflow-x: clip (not hidden) prevents horizontal scroll WITHOUT creating a
   scroll container, so the sticky navbar keeps pinning to the top on scroll. */
html {
  scroll-behavior: smooth;
  scroll-padding-top: 120px;
  overflow-x: clip;
}

body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.7;
  color: #44506b;
  background: var(--clr-white);
  overflow-x: clip;
}

/* Cap the layout container at 1250px on all desktop devices (>=1200px),
   overriding Bootstrap's 1140px (xl) / 1320px (xxl) defaults. */
@media (min-width: 1200px) {

  .container,
  .container-sm,
  .container-md,
  .container-lg,
  .container-xl,
  .container-xxl {
    max-width: 1250px;
  }
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
  color: var(--clr-dark);
  line-height: 1.25;
  font-weight: 700;
}

a {
  text-decoration: none;
  color: var(--clr-primary);
  transition: color .25s ease;
}

a:hover {
  color: var(--clr-accent);
}

img {
  max-width: 100%;
  height: auto;
}

ul {
  list-style: none;
  padding-left: 0px;
}

p:last-child {
  margin-bottom: 0;
}

/* ---------- Typography helpers ---------- */
.fw-600 {
  font-weight: 600 !important;
}

.fw-700 {
  font-weight: 700 !important;
}

.fw-800 {
  font-weight: 800 !important;
}

.ls-1 {
  letter-spacing: 1px;
}

.ls-2 {
  letter-spacing: 2px;
}

.text-accent {
  color: var(--clr-accent) !important;
}

.text-primary-mits {
  color: var(--clr-primary) !important;
}

.text-dark-mits {
  color: var(--clr-dark) !important;
}

.text-muted-mits {
  color: var(--clr-mid-gray) !important;
}

/* ---------- Background helpers ---------- */
.bg-white-mits {
  background: var(--clr-white);
}

.bg-offwhite {
  background: var(--clr-off-white);
}

.bg-light-gray {
  background: var(--clr-light-gray);
}

.bg-dark-grad {
  background: var(--grad-section-dark);
}

.bg-hero-grad {
  background: var(--grad-hero);
}

/* ---------- Section spacing ---------- */
.py-80 {
  padding-top: 80px;
  padding-bottom: 80px;
}

.py-100 {
  padding-top: 100px;
  padding-bottom: 100px;
}

.pt-80 {
  padding-top: 80px;
}

.pb-80 {
  padding-bottom: 80px;
}

section {
  position: relative;
}

/* ---------- Section heading pattern (Adma standard) ---------- */
.section-heading {
  margin-bottom: 3rem;
}

.label-tag {
  font-family: var(--font-body);
  font-size: 0.85rem;
  letter-spacing: 2px;
}

.section-title {
  font-size: var(--fs-h2);
  color: var(--clr-dark);
}

.section-subtitle {
  color: var(--clr-mid-gray);
  max-width: 640px;
  margin-top: 1rem;
}

.section-heading.text-center .section-subtitle {
  margin-left: auto;
  margin-right: auto;
}

/* Decorative title shape (the gold underline accent) */
.title-shape {
  width: 70px;
  height: 4px;
  border-radius: 4px;
  background: var(--clr-accent);
  position: relative;
}

.title-shape::after {
  content: '';
  position: absolute;
  left: 80px;
  top: 50%;
  transform: translateY(-50%);
  width: 24px;
  height: 4px;
  border-radius: 4px;
  background: var(--clr-accent);
  opacity: .5;
}

.text-center .title-shape::after {
  display: none;
}

/* ---------- Buttons ---------- */
.btn-primary-mits,
.btn-accent-mits,
.btn-outline-mits,
.btn-outline-white {
  display: inline-block;
  padding: 12px 28px;
  border-radius: var(--radius-pill);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all .3s ease;
  text-align: center;
}

.btn-primary-mits {
  background: var(--clr-primary);
  color: #fff;
  border-color: var(--clr-primary);
}

.btn-primary-mits:hover {
  background: var(--clr-primary-light);
  border-color: var(--clr-primary-light);
  color: #fff;
  transform: translateY(-2px);
}

.btn-accent-mits {
  background: var(--clr-accent);
  color: #fff;
  border-color: var(--clr-accent);
}

.btn-accent-mits:hover {
  background: var(--clr-accent-dark);
  border-color: var(--clr-accent-dark);
  color: #fff;
  transform: translateY(-2px);
}

.btn-outline-mits {
  background: transparent;
  color: var(--clr-primary);
  border-color: var(--clr-primary);
}

.btn-outline-mits:hover {
  background: var(--clr-primary);
  color: #fff;
}

.btn-outline-white {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, .7);
}

.btn-outline-white:hover {
  background: #fff;
  color: var(--clr-primary);
  border-color: #fff;
}

.btn-sm-mits {
  padding: 8px 20px;
  font-size: 0.85rem;
}

/* ---------- Decorative shape sections ---------- */
.section-with-shape {
  position: relative;
  overflow: hidden;
}

.section-with-shape::before {
  content: '';
  position: absolute;
  width: 240px;
  height: 240px;
  background: var(--clr-accent);
  opacity: 0.06;
  border-radius: 50%;
  top: -80px;
  right: -80px;
  z-index: 0;
}

.section-with-shape>.container {
  position: relative;
  z-index: 1;
}

/* ---------- Generic cards ---------- */
.mits-card {
  background: #fff;
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-sm);
  transition: transform .3s ease, box-shadow .3s ease;
}

.mits-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

/* ---------- Utility ---------- */
.text-white-50 {
  color: rgba(255, 255, 255, .6) !important;
}

.lh-lg {
  line-height: 1.9;
}

.divider-soft {
  height: 1px;
  background: var(--clr-light-gray);
  border: 0;
}

/* ---------- Accessibility ---------- */
:focus-visible {
  outline: 3px solid var(--clr-accent);
  outline-offset: 2px;
}

.skip-link {
  position: absolute;
  left: 0;
  top: -60px;
  z-index: 2000;
  background: var(--clr-primary);
  color: #fff;
  padding: 10px 18px;
  border-radius: 0 0 8px 0;
  transition: top .2s ease;
}

.skip-link:focus {
  top: 0;
  color: #fff;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
}