/* =============================================
   NINEGRAVITY THEME — Master Stylesheet
   ============================================= */

/* === SECTION CSS IMPORTS === */

/* === SELF-HOSTED FONTS: Satoshi === */
@font-face {
    font-family: 'Satoshi';
    src: url('../fonts/satoshi-400.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Satoshi';
    src: url('../fonts/satoshi-500.woff2') format('woff2');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Satoshi';
    src: url('../fonts/satoshi-600.woff2') format('woff2');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Satoshi';
    src: url('../fonts/satoshi-700.woff2') format('woff2');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

/* === CSS CUSTOM PROPERTIES === */
:root {
    /* Colors */
    --color-black: #000000;
    --color-charcoal: #1A1A1A;
    --color-gray: #6B7280;
    --color-white: #FFFFFF;
    --color-blue: #4C60FF;
    --color-blue-hover: #3A4EE0;
    --color-pink: #F27AA7;
    --color-lavender: #DFA5D7;
    --color-sky: #C8DDF8;
    --color-mint: #3EB489;
    --color-cream: #FFF4F0;
    --color-blush: #FDDFD5;

    /* Typography */
    --font-heading: 'Satoshi', sans-serif;
    --font-body: 'Poppins', sans-serif;

    /* Borders */
    --radius-btn: 8px;
    --radius-card: 12px;
    --radius-badge: 20px;

    /* Layout */
    --max-width: 1280px;
    --section-padding: 100px;
    --section-padding-mobile: 56px;
    --grid-gutter: 24px;
}

/* === BASE RESETS === */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

html.lenis, html.lenis body {
    height: auto;
}

.lenis.lenis-smooth {
    scroll-behavior: auto !important;
}

.lenis.lenis-smooth [data-lenis-prevent] {
    overscroll-behavior: contain;
}

body {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.4;
    color: var(--color-black);
    background: var(--color-white);
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
}

img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; }
ul, ol { list-style: none; }
button { border: none; background: none; cursor: pointer; font-family: inherit; }
input, textarea, select { font-family: inherit; border: none; outline: none; }

/* === CONTAINER === */
.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
}

/* === UTILITY: Script Accent (placeholder font) === */
.script-accent {
    font-family: Georgia, 'Times New Roman', serif;
    font-style: italic;
    font-weight: 400;
}

/* === UTILITY: Screen Reader Only === */
.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;
}

/* === BUTTON BASE CLASSES === */
.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 16px;
    line-height: 1;
    padding: 14px 28px;
    border-radius: var(--radius-btn);
    background: var(--color-blue);
    color: var(--color-white);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    white-space: nowrap;
    border: none;
    text-decoration: none;
}
.btn-primary:hover {
    background: var(--color-blue-hover);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(76, 96, 255, 0.25);
}

.btn-ghost {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 16px;
    line-height: 1;
    padding: 14px 28px;
    border-radius: var(--radius-btn);
    background: transparent;
    color: var(--color-blue);
    border: 1.5px solid var(--color-blue);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    white-space: nowrap;
    text-decoration: none;
}
.btn-ghost:hover {
    background: var(--color-blue);
    color: var(--color-white);
}

.btn-ai {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 16px;
    line-height: 1;
    padding: 14px 28px;
    border-radius: var(--radius-btn);
    background: var(--color-charcoal);
    color: var(--color-white);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    white-space: nowrap;
    border: none;
    text-decoration: none;
}
.btn-ai:hover { background: var(--color-black); }

.btn-destructive {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 16px;
    line-height: 1;
    padding: 14px 28px;
    border-radius: var(--radius-btn);
    background: #EF4444;
    color: var(--color-white);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    white-space: nowrap;
    border: none;
    text-decoration: none;
}
.btn-destructive:hover { background: #DC2626; }

/* === LOADING STATE === */
body.is-loading .fade-in-up {
    opacity: 0 !important;
}

/* === RESPONSIVE === */
@media (max-width: 1024px) {
    :root {
        --section-padding: 80px;
    }
}

@media (max-width: 768px) {
    :root {
        --section-padding: var(--section-padding-mobile);
        --grid-gutter: 16px;
    }
    .container {
        padding: 0 16px;
    }
}
