﻿/* ==========================================================
   MILX PREMIUM
   layout.css
========================================================== */

/* ================================
   RESET
================================ */

*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background: var(--c-bg);
    color: var(--c-text);
    font-family: var(--font-body);
    font-size: var(--font-size);
    line-height: 1.7;
    overflow-x: hidden;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ================================
   CONTAINER
================================ */

.container {
    width: 100%;
    max-width: var(--container-max);
    margin: auto;
    padding-inline: 1rem;
}

/* ================================
   IMAGES
================================ */

img {
    max-width: 100%;
    display: block;
    height: auto;
    user-select: none;
}

/* ================================
   LINKS
================================ */

a {
    text-decoration: none;
    color: inherit;
    transition: all var(--transition);
}

    a:hover {
        color: var(--gold-bright);
    }

/* ================================
   LISTS
================================ */

ul,
ol {
    list-style: none;
    padding: 0;
    margin: 0;
}

/* ================================
   HEADINGS
================================ */

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-display);
    font-weight: 700;
    color: var(--white);
    line-height: 1.2;
    margin-bottom: .75rem;
    letter-spacing: .02em;
}

h1 {
    font-size: clamp(2.5rem,5vw,4.5rem);
}

h2 {
    font-size: clamp(2rem,4vw,3rem);
}

h3 {
    font-size: 1.8rem;
}

h4 {
    font-size: 1.4rem;
}

h5 {
    font-size: 1.15rem;
}

h6 {
    font-size: 1rem;
}

/* ================================
   PARAGRAPHS
================================ */

p {
    color: var(--c-text-muted);
    margin-bottom: 1rem;
}

/* ================================
   SECTIONS
================================ */

section {
    position: relative;
}

.xs-section {
    padding: 5rem 0;
}

.xs-section-title {
    text-align: center;
    margin-bottom: 1rem;
}

.xs-section-sub {
    text-align: center;
    max-width: 760px;
    margin: auto;
    margin-bottom: 3rem;
    color: var(--c-text-muted);
}

.xs-divider {
    width: 80px;
    height: 4px;
    margin: 0 auto 1.5rem;
    border-radius: 999px;
    background: var(--gold-gradient-horizontal);
}

/* ================================
   BACKGROUNDS
================================ */

.bg-dark {
    background: var(--black) !important;
}

.bg-surface {
    background: var(--c-surface);
}

.bg-gold {
    background: var(--gold-gradient);
}

/* ================================
   TEXT HELPERS
================================ */

.text-gold {
    color: var(--gold-light) !important;
}

.text-muted {
    color: var(--c-text-muted) !important;
}

.text-white {
    color: var(--white) !important;
}

/* ================================
   SPACING
================================ */

.mt-section {
    margin-top: 5rem;
}

.mb-section {
    margin-bottom: 5rem;
}

/* ================================
   SCROLLBAR
================================ */

::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #111;
}

::-webkit-scrollbar-thumb {
    background: var(--gold);
    border-radius: 999px;
}

    ::-webkit-scrollbar-thumb:hover {
        background: var(--gold-bright);
    }

/* ================================
   SELECTION
================================ */

::selection {
    background: var(--gold);
    color: #000;
}

/* ================================
   FOCUS
================================ */

:focus-visible {
    outline: 2px solid var(--gold-light);
    outline-offset: 3px;
}

/* ================================
   ANIMATIONS
================================ */

.fade-up {
    animation: fadeUp .7s ease both;
}

@keyframes fadeUp {

    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: none;
    }
}

/* ================================
   RESPONSIVE
================================ */

@media(max-width:991px) {

    .xs-section {
        padding: 4rem 0;
    }
}

@media(max-width:768px) {

    h1 {
        font-size: 2.4rem;
    }

    h2 {
        font-size: 2rem;
    }

    .xs-section {
        padding: 3rem 0;
    }
}

@media(max-width:576px) {

    .container {
        padding-inline: .9rem;
    }

    .xs-section {
        padding: 2.5rem 0;
    }
}
