/* ============================================================
   AffixxMedia Career Site — Design System (main.css)
   Brand: Deep Navy + Coral Pink
   ============================================================ */

/* ---------- Modern Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
    line-height: 1.6;
    font-family: var(--font-body);
    color: var(--text);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}
img, picture, svg, video { display: block; max-width: 100%; }
input, button, textarea, select { font: inherit; color: inherit; }
button { background: none; border: none; cursor: pointer; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }

/* ============================================================
   DESIGN TOKENS
   ============================================================ */
:root {
    /* ---- Brand Colors ---- */
    --color-navy-900: #0F0F2E;
    --color-navy-800: #1A1A3E;
    --color-navy-700: #252550;
    --color-navy-600: #3A3A6B;
    --color-navy-500: #545489;

    --color-coral-700: #BD2F4F;
    --color-coral-600: #D63A5F;
    --color-coral-500: #E84A6F;
    --color-coral-400: #EE6B89;
    --color-coral-300: #F492A8;
    --color-coral-100: #FCE8EE;
    --color-coral-50:  #FEF4F7;

    /* ---- Neutrals ---- */
    --color-white:    #FFFFFF;
    --color-gray-50:  #F8F9FC;
    --color-gray-100: #F1F3F9;
    --color-gray-200: #E5E7EB;
    --color-gray-300: #D1D5DB;
    --color-gray-400: #9CA3AF;
    --color-gray-500: #6B7280;
    --color-gray-600: #4B5563;
    --color-gray-700: #374151;
    --color-gray-800: #1F2937;
    --color-gray-900: #111827;

    /* ---- Semantic ---- */
    --color-success:    #10B981;
    --color-success-bg: #D1FAE5;
    --color-error:      #EF4444;
    --color-error-bg:   #FEE2E2;
    --color-warning:    #F59E0B;
    --color-warning-bg: #FEF3C7;

    /* ---- Aliases ---- */
    --primary:       var(--color-navy-800);
    --primary-hover: var(--color-navy-900);
    --accent:        var(--color-coral-500);
    --accent-hover:  var(--color-coral-600);
    --bg:            var(--color-white);
    --bg-alt:        var(--color-gray-50);
    --bg-dark:       var(--color-navy-900);
    --text:          var(--color-navy-800);
    --text-body:     var(--color-gray-600);
    --text-muted:    var(--color-gray-500);
    --text-on-dark:  rgba(255,255,255,0.92);
    --text-on-dark-muted: rgba(255,255,255,0.65);
    --border:        var(--color-gray-200);
    --border-strong: var(--color-gray-300);

    /* ---- Typography ---- */
    --font-display: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-body:    'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-script:  'Great Vibes', cursive;

    --text-xs:   0.75rem;
    --text-sm:   0.875rem;
    --text-base: 1rem;
    --text-lg:   1.125rem;
    --text-xl:   1.25rem;
    --text-2xl:  1.5rem;
    --text-3xl:  1.875rem;
    --text-4xl:  2.25rem;
    --text-5xl:  3rem;
    --text-6xl:  3.75rem;
    --text-7xl:  4.5rem;

    --weight-regular:   400;
    --weight-medium:    500;
    --weight-semibold:  600;
    --weight-bold:      700;
    --weight-extrabold: 800;

    /* ---- Spacing ---- */
    --space-1:  0.25rem;
    --space-2:  0.5rem;
    --space-3:  0.75rem;
    --space-4:  1rem;
    --space-5:  1.25rem;
    --space-6:  1.5rem;
    --space-8:  2rem;
    --space-10: 2.5rem;
    --space-12: 3rem;
    --space-16: 4rem;
    --space-20: 5rem;
    --space-24: 6rem;
    --space-32: 8rem;

    /* ---- Radius ---- */
    --radius-sm:   4px;
    --radius-md:   8px;
    --radius-lg:   12px;
    --radius-xl:   16px;
    --radius-2xl:  24px;
    --radius-full: 9999px;

    /* ---- Shadows ---- */
    --shadow-xs: 0 1px 2px rgba(15,15,46,0.05);
    --shadow-sm: 0 1px 3px rgba(15,15,46,0.08), 0 1px 2px rgba(15,15,46,0.04);
    --shadow-md: 0 4px 12px rgba(15,15,46,0.08), 0 2px 4px rgba(15,15,46,0.04);
    --shadow-lg: 0 12px 32px rgba(15,15,46,0.12), 0 4px 12px rgba(15,15,46,0.06);
    --shadow-xl: 0 24px 64px rgba(15,15,46,0.16), 0 8px 24px rgba(15,15,46,0.08);
    --shadow-glow-accent: 0 0 0 4px rgba(232,74,111,0.18);
    --shadow-glow-primary: 0 0 0 4px rgba(26,26,62,0.15);

    /* ---- Transitions ---- */
    --ease:        cubic-bezier(0.4, 0, 0.2, 1);
    --ease-out:    cubic-bezier(0.16, 1, 0.3, 1);
    --ease-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);
    --transition-fast: 150ms var(--ease);
    --transition-base: 250ms var(--ease);
    --transition-slow: 400ms var(--ease-out);

    /* ---- Layout ---- */
    --container-max:     1200px;
    --container-padding: 1.5rem;
    --header-height:     72px;

    /* ---- z-index ---- */
    --z-base:           1;
    --z-dropdown:       100;
    --z-sticky:         200;
    --z-fixed:          300;
    --z-modal-backdrop: 400;
    --z-modal:          500;
    --z-toast:          600;
}

/* ============================================================
   TYPOGRAPHY
   ============================================================ */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    font-weight: var(--weight-bold);
    line-height: 1.15;
    letter-spacing: -0.02em;
    color: var(--text);
}
h1 {
    font-size: clamp(2.25rem, 5.5vw, var(--text-7xl));
    font-weight: var(--weight-extrabold);
    letter-spacing: -0.035em;
    line-height: 1.05;
}
h2 { font-size: clamp(1.875rem, 4vw, var(--text-5xl)); letter-spacing: -0.025em; }
h3 { font-size: clamp(1.5rem, 3vw, var(--text-3xl)); }
h4 { font-size: var(--text-2xl); }
h5 { font-size: var(--text-xl); }
h6 { font-size: var(--text-lg); }

p { color: var(--text-body); }

::selection { background: var(--accent); color: white; }

/* ============================================================
   LAYOUT
   ============================================================ */
.container {
    width: 100%;
    max-width: var(--container-max);
    margin-inline: auto;
    padding-inline: var(--container-padding);
}
.container-narrow {
    max-width: 880px;
    margin-inline: auto;
    padding-inline: var(--container-padding);
}
.section { padding-block: clamp(4rem, 8vw, 8rem); }
.section-sm { padding-block: clamp(3rem, 5vw, 5rem); }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    padding: var(--space-4) var(--space-7, 1.75rem);
    font-family: var(--font-display);
    font-weight: var(--weight-semibold);
    font-size: var(--text-base);
    line-height: 1;
    border-radius: var(--radius-full);
    transition: all var(--transition-base);
    cursor: pointer;
    white-space: nowrap;
    user-select: none;
    border: 2px solid transparent;
    text-decoration: none;
}
.btn:focus-visible { outline: none; box-shadow: var(--shadow-glow-accent); }

.btn-primary {
    background: var(--accent);
    color: var(--color-white);
    box-shadow: 0 4px 14px rgba(232,74,111,0.35);
}
.btn-primary:hover {
    background: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(232,74,111,0.45);
}

.btn-secondary {
    background: var(--primary);
    color: var(--color-white);
}
.btn-secondary:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-outline {
    background: transparent;
    color: var(--primary);
    border-color: var(--border-strong);
}
.btn-outline:hover {
    border-color: var(--primary);
    background: var(--primary);
    color: var(--color-white);
}

.btn-ghost {
    background: transparent;
    color: var(--text);
}
.btn-ghost:hover { background: var(--bg-alt); }

.btn-on-dark {
    background: var(--color-white);
    color: var(--primary);
}
.btn-on-dark:hover {
    background: var(--color-coral-50);
    transform: translateY(-2px);
}

.btn-lg { padding: var(--space-5) var(--space-10); font-size: var(--text-lg); }
.btn-sm { padding: var(--space-2) var(--space-4); font-size: var(--text-sm); }
.btn-icon svg { width: 18px; height: 18px; }

/* ============================================================
   UI BUILDING BLOCKS
   ============================================================ */
.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-2) var(--space-4);
    background: var(--color-coral-50);
    color: var(--accent);
    border-radius: var(--radius-full);
    font-size: var(--text-sm);
    font-weight: var(--weight-semibold);
    letter-spacing: 0.04em;
    text-transform: uppercase;
}
.eyebrow-on-dark {
    background: rgba(255,255,255,0.08);
    color: var(--color-coral-300);
    border: 1px solid rgba(255,255,255,0.12);
}

.badge {
    display: inline-flex;
    align-items: center;
    padding: var(--space-1) var(--space-3);
    background: var(--color-coral-100);
    color: var(--color-coral-700);
    border-radius: var(--radius-full);
    font-size: var(--text-xs);
    font-weight: var(--weight-semibold);
}

.card {
    background: var(--color-white);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: var(--space-6);
    transition: all var(--transition-base);
}
.card:hover {
    border-color: var(--accent);
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

/* ============================================================
   UTILITIES
   ============================================================ */
.text-center  { text-align: center; }
.text-accent  { color: var(--accent); }
.text-muted   { color: var(--text-muted); }
.text-on-dark { color: var(--text-on-dark); }
.bg-alt       { background: var(--bg-alt); }
.bg-dark      { background: var(--bg-dark); color: var(--text-on-dark); }
.bg-dark h1, .bg-dark h2, .bg-dark h3, .bg-dark h4, .bg-dark h5, .bg-dark h6 { color: var(--color-white); }
.bg-dark p    { color: var(--text-on-dark-muted); }

.grid    { display: grid; gap: var(--space-6); }
.grid-2  { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid-3  { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.grid-4  { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }

.flex            { display: flex; }
.flex-col        { flex-direction: column; }
.items-center    { align-items: center; }
.justify-between { justify-content: space-between; }
.justify-center  { justify-content: center; }
.gap-2 { gap: var(--space-2); }
.gap-4 { gap: var(--space-4); }
.gap-6 { gap: var(--space-6); }

.mt-2  { margin-top: var(--space-2); }
.mt-4  { margin-top: var(--space-4); }
.mt-6  { margin-top: var(--space-6); }
.mt-8  { margin-top: var(--space-8); }
.mt-12 { margin-top: var(--space-12); }
.mb-2  { margin-bottom: var(--space-2); }
.mb-4  { margin-bottom: var(--space-4); }
.mb-6  { margin-bottom: var(--space-6); }
.mb-8  { margin-bottom: var(--space-8); }
.mb-12 { margin-bottom: var(--space-12); }

/* ============================================================
   ACCESSIBILITY
   ============================================================ */
.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;
}

:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
    border-radius: var(--radius-sm);
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    html { scroll-behavior: auto; }
}

/* ============================================================
   GLOBAL SITE HEADER
   ============================================================ */
.site-header {
    position: sticky;
    top: 0;
    z-index: var(--z-sticky);
    background: rgba(255,255,255,0.85);
    backdrop-filter: saturate(180%) blur(14px);
    -webkit-backdrop-filter: saturate(180%) blur(14px);
    border-bottom: 1px solid transparent;
    transition: all var(--transition-base);
}
.site-header.is-scrolled {
    background: rgba(255,255,255,0.95);
    border-bottom-color: var(--border);
    box-shadow: 0 1px 0 rgba(15,15,46,0.04);
}
.site-header-inner {
    height: var(--header-height);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-6);
}
.brand {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
}
.brand-mark {
    font-family: var(--font-display);
    font-weight: var(--weight-extrabold);
    font-size: var(--text-xl);
    letter-spacing: -0.02em;
    color: var(--primary);
}
.brand-mark-accent { color: var(--accent); }
.primary-nav {
    display: none;
    gap: var(--space-8);
    align-items: center;
}
.primary-nav a {
    color: var(--text-body);
    font-weight: var(--weight-medium);
    font-size: var(--text-sm);
    transition: color var(--transition-fast);
}
.primary-nav a:hover { color: var(--accent); }
.header-cta svg { width: 14px; height: 14px; }

@media (min-width: 768px) {
    .primary-nav { display: flex; }
}

/* ---------- Skip link ---------- */
.skip-link {
    position: absolute;
    top: -40px;
    left: 1rem;
    background: var(--primary);
    color: var(--color-white);
    padding: var(--space-3) var(--space-4);
    border-radius: var(--radius-md);
    z-index: 1000;
    transition: top var(--transition-base);
}
.skip-link:focus { top: 1rem; }

/* ============================================================
   GLOBAL SITE FOOTER
   ============================================================ */
.site-footer {
    background: var(--color-navy-900);
    color: var(--text-on-dark-muted);
    padding-block: var(--space-12);
}
.site-footer-inner {
    display: grid;
    gap: var(--space-8);
    text-align: center;
}
@media (min-width: 768px) {
    .site-footer-inner {
        grid-template-columns: auto 1fr auto;
        text-align: left;
        align-items: center;
    }
    .site-footer-copy { text-align: right; }
}
.site-footer-brand .brand-mark { font-size: var(--text-xl); color: var(--color-white); }
.site-footer-brand p { font-size: var(--text-sm); margin-top: var(--space-1); }
.site-footer-nav {
    display: flex;
    gap: var(--space-6);
    justify-content: center;
    flex-wrap: wrap;
}
.site-footer-nav a {
    color: var(--text-on-dark-muted);
    font-size: var(--text-sm);
    font-weight: var(--weight-medium);
    transition: color var(--transition-fast);
}
.site-footer-nav a:hover { color: var(--color-coral-400); }
.site-footer-copy { font-size: var(--text-sm); }

/* ============================================================
   MOBILE STICKY CTA
   ============================================================ */
.mobile-cta {
    position: fixed;
    bottom: var(--space-4);
    left: var(--space-4);
    right: var(--space-4);
    background: var(--accent);
    color: var(--color-white);
    padding: var(--space-4) var(--space-6);
    border-radius: var(--radius-full);
    font-family: var(--font-display);
    font-weight: var(--weight-semibold);
    font-size: var(--text-base);
    text-align: center;
    box-shadow: 0 12px 40px rgba(232,74,111,0.5), 0 4px 12px rgba(232,74,111,0.3);
    z-index: var(--z-fixed);
    transform: translateY(120%);
    transition: transform var(--transition-slow);
    display: none;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
}
.mobile-cta svg { width: 18px; height: 18px; }
.mobile-cta.is-visible { transform: translateY(0); }
@media (max-width: 767px) { .mobile-cta { display: flex; } }

/* ============================================================
   GLOBAL UTILITIES & REVEALS
   ============================================================ */
[data-reveal] {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 700ms var(--ease-out), transform 700ms var(--ease-out);
    transition-delay: var(--reveal-delay, 0ms);
}
[data-reveal].is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* ============================================================
   DIGITAL SIGNATURE COMPONENT
   ============================================================ */
.font-signature-1 { font-family: 'Great Vibes', cursive; }
.font-signature-2 { font-family: 'Dancing Script', cursive; }
.font-signature-3 { font-family: 'Allura', cursive; }
.font-signature-4 { font-family: 'Sacramento', cursive; }

.signature-trigger {
    @apply w-full p-8 border-2 border-dashed border-gray-200 rounded-2xl text-center cursor-pointer transition-all hover:border-coral-300 hover:bg-coral-50/30;
}

.signature-modal {
    @apply fixed inset-0 z-[1000] flex items-center justify-center p-4 opacity-0 pointer-events-none transition-all duration-300;
}
.signature-modal.is-open {
    @apply opacity-100 pointer-events-auto;
}
.signature-modal-backdrop {
    @apply absolute inset-0 bg-navy-900/60 backdrop-blur-sm;
}
.signature-modal-content {
    @apply relative bg-white w-full max-w-xl rounded-3xl shadow-2xl overflow-hidden transform scale-95 transition-all duration-300;
}
.signature-modal.is-open .signature-modal-content {
    @apply scale-100;
}

.signature-preview-box {
    @apply w-full h-32 border border-dashed border-gray-200 rounded-xl flex items-center justify-center text-4xl text-navy-800 bg-gray-50/50 overflow-hidden px-4;
}

.signature-font-option-clean {
    @apply p-2 text-center cursor-pointer transition-all hover:opacity-70;
}
.signature-font-option-clean.is-selected {
    @apply opacity-100 ring-0 bg-transparent scale-105;
}
.signature-font-option-clean.is-selected span {
    @apply text-navy-900 border-b-2 border-coral-500 pb-1;
}



