/* ─── MITHRAM Website - Main Stylesheet ─────────────────────────── */
/* Reset, typography, grid system, and base layout                   */

/* ─── @font-face Declarations ──────────────────────────────────── */
@font-face {
    font-family: 'Montserrat';
    src: url('../assets/fonts/Montserrat-Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Montserrat';
    src: url('../assets/fonts/Montserrat-Bold.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Montserrat';
    src: url('../assets/fonts/Montserrat-BoldItalic.ttf') format('truetype');
    font-weight: 700;
    font-style: italic;
    font-display: swap;
}

@font-face {
    font-family: 'Lato';
    src: url('../assets/fonts/Lato-Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Lato';
    src: url('../assets/fonts/Lato-Bold.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Lato';
    src: url('../assets/fonts/Lato-Italic.ttf') format('truetype');
    font-weight: 400;
    font-style: italic;
    font-display: swap;
}

@font-face {
    font-family: 'Lato';
    src: url('../assets/fonts/Lato-BoldItalic.ttf') format('truetype');
    font-weight: 700;
    font-style: italic;
    font-display: swap;
}

/* ─── CSS Reset ────────────────────────────────────────────────── */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

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

body {
    font-family: var(--font-body);
    font-size: var(--fs-body);
    font-weight: var(--fw-regular);
    line-height: var(--lh-normal);
    color: var(--charcoal);
    background-color: var(--white);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

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

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

a:hover {
    color: var(--orange);
}

ul, ol {
    list-style: none;
}

/* ─── Typography ───────────────────────────────────────────────── */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: var(--fw-bold);
    line-height: var(--lh-tight);
    color: var(--navy);
}

h1 { font-size: var(--fs-h1); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); }
h4 { font-size: var(--fs-h4); }

p {
    margin-bottom: var(--space-md);
    line-height: var(--lh-normal);
}

.text-accent  { color: var(--accent-blue); }
.text-orange  { color: var(--orange); }
.text-green   { color: var(--green); }
.text-teal    { color: var(--teal); }
.text-purple  { color: var(--purple); }
.text-white   { color: var(--white); }
.text-center  { text-align: center; }

/* ─── Layout ───────────────────────────────────────────────────── */
.container {
    width: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

.container-narrow {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

/* ─── Section Spacing ──────────────────────────────────────────── */
.section {
    padding: var(--space-4xl) 0;
}

.section-sm {
    padding: var(--space-2xl) 0;
}

/* ─── Section Headers ──────────────────────────────────────────── */
.section-header {
    text-align: center;
    margin-bottom: var(--space-3xl);
}

.section-header h2 {
    margin-bottom: var(--space-md);
    position: relative;
    display: inline-block;
}

.section-header h2::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--orange), var(--accent-blue));
    border-radius: 2px;
}

.section-header p {
    max-width: 720px;
    margin: var(--space-lg) auto 0;
    color: var(--dark-gray);
    font-family: var(--font-body);
    font-style: italic;
    font-weight: 400;
    font-size: 1.15rem;
    line-height: 1.75;
    letter-spacing: 0.2px;
}

.section-header p.text-white {
    color: rgba(255, 255, 255, 0.85);
}

/* ─── Grid System ──────────────────────────────────────────────── */
.grid {
    display: grid;
    gap: var(--space-xl);
}

.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

/* ─── Flexbox Utilities ────────────────────────────────────────── */
.flex {
    display: flex;
}

.flex-center {
    display: flex;
    align-items: center;
    justify-content: center;
}

.flex-between {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.flex-col {
    flex-direction: column;
}

.flex-wrap {
    flex-wrap: wrap;
}

.gap-sm  { gap: var(--space-sm); }
.gap-md  { gap: var(--space-md); }
.gap-lg  { gap: var(--space-lg); }
.gap-xl  { gap: var(--space-xl); }

/* ─── Background Utilities ─────────────────────────────────────── */
.bg-deep-blue {
    background-color: var(--deep-blue);
    color: var(--white);
}

.bg-navy {
    background-color: var(--navy);
    color: var(--white);
}

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

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

.bg-gradient-blue {
    background: linear-gradient(135deg, var(--deep-blue), var(--royal-blue));
    color: var(--white);
}

.bg-gradient-orange {
    background: linear-gradient(135deg, var(--orange), var(--bright-orange));
    color: var(--white);
}

/* ─── Skip to Content (Accessibility) ──────────────────────────── */
.skip-link {
    position: absolute;
    top: -100%;
    left: 0;
    background: var(--accent-blue);
    color: var(--white);
    padding: var(--space-sm) var(--space-md);
    z-index: 1000;
    font-weight: var(--fw-bold);
}

.skip-link:focus {
    top: 0;
}
