/* ==========================================================================
   Four Square / TRE Careers - Industrial Angular Design System
   Matches foursquaretre.com visual identity
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Google Fonts
   -------------------------------------------------------------------------- */
@import url('https://fonts.googleapis.com/css2?family=Barlow+Condensed:ital,wght@0,400;0,600;0,700;1,400;1,600;1,700&family=Barlow:wght@300;400;500;600&display=swap');

/* --------------------------------------------------------------------------
   2. CSS Custom Properties (Brand Tokens)
   -------------------------------------------------------------------------- */
:root {
    /* Brand Colors */
    --fs-navy:        #1f3e78;
    --fs-navy-dark:   #162d58;
    --fs-orange:      #f58023;
    --fs-orange-dark: #d96d15;
    --fs-teal:        #86bdd3;
    --fs-teal-light:  #a8d4e4;
    --fs-gray-light:  #f6f6f6;
    --fs-gray:        #747474;
    --fs-gray-dark:   #333333;
    --fs-white:       #ffffff;
    --fs-black:       #1a1a1a;

    /* Typography */
    --font-heading: 'Barlow Condensed', sans-serif;
    --font-body:    'Barlow', sans-serif;

    /* Spacing */
    --space-xs:  0.25rem;
    --space-sm:  0.5rem;
    --space-md:  1rem;
    --space-lg:  1.5rem;
    --space-xl:  2rem;
    --space-2xl: 3rem;
    --space-3xl: 4rem;
    --space-section: 4rem;      /* 64px - tighter rhythm */
    --space-section-lg: 5rem;   /* 80px */

    /* Layout */
    --header-height:  120px;
    --container-max:  1200px;
    --border-radius:  6px;

    /* Shadows */
    --shadow-sm:   0 1px 3px rgba(0,0,0,0.08);
    --shadow-md:   0 4px 12px rgba(0,0,0,0.1);
    --shadow-lg:   0 8px 24px rgba(0,0,0,0.12);
    --shadow-card: 0 2px 8px rgba(0,0,0,0.08);

    /* Transitions */
    --transition-fast: 0.15s ease;
    --transition-base: 0.2s ease;
    --transition-slow: 0.3s ease;

    /* Angular skew */
    --skew-angle: -12deg;
    --skew-counter: 12deg;
}

/* --------------------------------------------------------------------------
   3. Reset & Base Styles
   -------------------------------------------------------------------------- */
*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
    scroll-padding-top: 70px;
}

body {
    font-family: var(--font-body);
    font-weight: 400;
    color: var(--fs-gray);
    background-color: var(--fs-white);
    line-height: 1.6;
    margin: 0;
    padding: 0;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ALL headings italic - core brand rule */
h1, h2, h3, h4, h5, h6,
.h1, .h2, .h3, .h4, .h5, .h6 {
    font-family: var(--font-heading) !important;
    font-style: italic !important;
    font-weight: 700;
    color: var(--fs-navy);
    line-height: 1.2;
    margin-bottom: var(--space-md);
}

h1, .h1 { font-size: 3.25rem; }
h2, .h2 { font-size: 2.75rem; }
h3, .h3 { font-size: 2rem; }
h4, .h4 { font-size: 1.5rem; }
h5, .h5 { font-size: 1.25rem; }
h6, .h6 { font-size: 1.1rem; }

p {
    margin-bottom: var(--space-md);
}

a {
    color: var(--fs-orange);
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--fs-navy);
    text-decoration: underline;
}

img {
    max-width: 100%;
    height: auto;
}

/* --------------------------------------------------------------------------
   4. Header Styles (Sticky with scroll shadow)
   -------------------------------------------------------------------------- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background-color: var(--fs-white);
    height: var(--header-height);
    transition: box-shadow 0.3s ease;
}

.site-header.scrolled {
    box-shadow: var(--shadow-md);
    height: 70px;
}

.site-header .header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
    max-width: none;
    margin: 0;
    padding: 0 var(--space-2xl);
}

.site-header .logo-link {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.site-header .logo-link img {
    height: 160px;
    width: auto;
    transition: height 0.3s ease;
}

.site-header.scrolled .logo-link img {
    height: 55px;
}

.careers-wordmark {
    font-family: var(--font-heading);
    font-weight: 700;
    font-style: italic;
    color: var(--fs-navy);
    font-size: 2.2rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-left: var(--space-sm);
    transition: font-size 0.3s ease;
}

.site-header.scrolled .careers-wordmark {
    font-size: 1.4rem;
}

/* --------------------------------------------------------------------------
   5. Navigation Styles
   -------------------------------------------------------------------------- */
.nav-desktop {
    display: flex;
    align-items: center;
    gap: var(--space-lg);
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-desktop .nav-link {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 1.4rem;
    color: var(--fs-navy);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-decoration: none;
    padding: var(--space-sm) 0;
    position: relative;
    transition: color var(--transition-fast);
}

.nav-desktop .nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 3px;
    background-color: var(--fs-orange);
    transform: skew(var(--skew-angle));
    transition: width var(--transition-base);
}

.nav-desktop .nav-link:hover,
.nav-desktop .nav-link.active {
    color: var(--fs-orange);
    text-decoration: none;
}

.nav-desktop .nav-link:hover::after,
.nav-desktop .nav-link.active::after {
    width: 100%;
}

/* Divider between careers links and external links */
.nav-desktop .nav-divider {
    width: 1px;
    height: 24px;
    background-color: #d0d5dd;
    margin: 0 var(--space-sm);
}

/* External links — slightly muted */
.nav-desktop .nav-link-external {
    font-size: 1rem;
    color: var(--fs-gray);
}

.nav-desktop .nav-link-external:hover {
    color: var(--fs-orange);
}

/* Mobile nav divider */
.nav-mobile-divider {
    height: 1px;
    background-color: var(--fs-gray-light);
    margin: var(--space-sm) 0;
}

.nav-mobile .nav-link-external {
    font-size: 1.2rem;
    color: var(--fs-gray);
}

.nav-mobile .nav-link-external i {
    font-size: 0.8em;
    margin-left: 4px;
}

/* Hamburger toggle */
.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: var(--space-sm);
    z-index: 1001;
}

.nav-toggle .hamburger {
    display: block;
    width: 26px;
    height: 2px;
    background-color: var(--fs-navy);
    position: relative;
    transition: background-color var(--transition-fast);
}

.nav-toggle .hamburger::before,
.nav-toggle .hamburger::after {
    content: '';
    position: absolute;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--fs-navy);
    transition: transform var(--transition-base);
}

.nav-toggle .hamburger::before { top: -8px; }
.nav-toggle .hamburger::after  { top: 8px; }

.nav-toggle.active .hamburger {
    background-color: transparent;
}

.nav-toggle.active .hamburger::before {
    transform: translateY(8px) rotate(45deg);
}

.nav-toggle.active .hamburger::after {
    transform: translateY(-8px) rotate(-45deg);
}

/* Mobile nav overlay */
.nav-mobile {
    display: none;
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--fs-white);
    z-index: 999;
    padding: var(--space-xl);
    overflow-y: auto;
}

.nav-mobile.open {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.site-header.scrolled .nav-mobile {
    top: 70px;
}

.nav-mobile .nav-link {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 1.5rem;
    color: var(--fs-navy);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-decoration: none;
    padding: var(--space-md) 0;
    border-bottom: 1px solid var(--fs-gray-light);
    transition: color var(--transition-fast);
}

.nav-mobile .nav-link:hover {
    color: var(--fs-orange);
    text-decoration: none;
}

/* --------------------------------------------------------------------------
   6. Hero Section
   -------------------------------------------------------------------------- */
.hero {
    position: relative;
    min-height: 480px;
    display: flex;
    align-items: center;
    background-color: var(--fs-navy);
    overflow: hidden;
}

/* Gradient overlay */
.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--fs-navy) 0%, var(--fs-navy-dark) 40%, rgba(31,62,120,0.85) 100%);
    z-index: 1;
}

/* Angular bottom clip */
.hero::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 80px;
    background-color: var(--fs-gray-light);
    clip-path: polygon(0 60%, 100% 0, 100% 100%, 0 100%);
    z-index: 4;
}

/* Hero split layout: text left, gallery right */
.hero-split {
    position: relative;
    z-index: 5;
    display: flex;
    align-items: center;
    gap: var(--space-3xl);
    padding: 4rem 0 5rem;
}

.hero-text {
    flex: 1;
    color: var(--fs-white);
    min-width: 0;
}

.hero-text h1 {
    color: var(--fs-white);
    font-size: 4rem;
    margin-bottom: var(--space-sm);
    letter-spacing: -0.5px;
}

.hero-text .hero-subtitle {
    font-size: 1.5rem;
    opacity: 0.85;
    max-width: 550px;
    margin-bottom: var(--space-xl);
    line-height: 1.5;
    font-weight: 300;
}

/* Hero rotating photo gallery */
.hero-gallery {
    flex: 0 0 480px;
    position: relative;
}

.hero-gallery-mask {
    position: relative;
    width: 480px;
    height: 360px;
    -webkit-mask-image: url('/images/foursquare-mask.svg');
    mask-image: url('/images/foursquare-mask.svg');
    -webkit-mask-size: contain;
    mask-size: contain;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-position: center;
    mask-position: center;
    overflow: hidden;
}

.hero-gallery-slider {
    position: relative;
    width: 100%;
    height: 100%;
}

.hero-slide {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.hero-slide.active {
    opacity: 1;
}

/* Decorative angular shapes in hero */
.hero .hero-shapes {
    position: absolute;
    inset: 0;
    z-index: 2;
    overflow: hidden;
    pointer-events: none;
}

.hero .hero-shapes .shape {
    position: absolute;
    transform: skew(var(--skew-angle));
}

.hero .hero-shapes .shape-1 {
    right: -60px;
    top: -40px;
    width: 280px;
    height: 560px;
    background: linear-gradient(180deg, var(--fs-orange) 0%, rgba(245,128,35,0.3) 100%);
    opacity: 0.12;
}

.hero .hero-shapes .shape-2 {
    right: 160px;
    top: -80px;
    width: 140px;
    height: 620px;
    background: var(--fs-teal);
    opacity: 0.08;
}

.hero .hero-shapes .shape-3 {
    right: 80px;
    bottom: -40px;
    width: 100px;
    height: 300px;
    background: var(--fs-orange);
    opacity: 0.06;
}

.hero .hero-shapes .shape-4 {
    left: 30%;
    bottom: -20px;
    width: 60px;
    height: 200px;
    background: var(--fs-teal);
    opacity: 0.05;
}

/* Dot grid pattern overlay */
.hero .hero-pattern {
    position: absolute;
    inset: 0;
    z-index: 3;
    pointer-events: none;
    opacity: 0.04;
    background-image: radial-gradient(circle, var(--fs-white) 1px, transparent 1px);
    background-size: 24px 24px;
}

/* Orange accent line under heading */
.hero-text .hero-accent {
    display: block;
    width: 80px;
    height: 4px;
    background-color: var(--fs-orange);
    transform: skew(var(--skew-angle));
    margin-bottom: var(--space-lg);
}

/* Feature highlights row */
.hero-features {
    display: flex;
    gap: var(--space-2xl);
    margin-top: var(--space-2xl);
    padding-top: var(--space-lg);
    border-top: 1px solid rgba(255,255,255,0.15);
}

.hero-features .feature {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    font-size: 1.05rem;
    font-weight: 500;
    color: rgba(255,255,255,0.8);
}

.hero-features .feature i {
    font-size: 1.4rem;
    color: var(--fs-orange);
}

/* --------------------------------------------------------------------------
   7. Job Card Styles
   -------------------------------------------------------------------------- */
.job-card {
    position: relative;
    display: flex;
    flex-direction: column;
    background-color: var(--fs-white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-card);
    padding: var(--space-xl) var(--space-xl) var(--space-lg);
    height: 100%;
    transition: transform var(--transition-base), box-shadow var(--transition-base);
    overflow: hidden;
    border: 1px solid rgba(0,0,0,0.04);
}

/* Angular orange accent bar on top */
.job-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--fs-orange), var(--fs-teal));
}

.job-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.job-card .job-title {
    font-size: 1.3rem;
    margin-bottom: var(--space-sm);
    line-height: 1.3;
}

.job-card .job-title a {
    color: var(--fs-navy);
    text-decoration: none;
}

.job-card .job-title a:hover {
    color: var(--fs-orange);
}

.job-card .job-meta {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-sm) var(--space-md);
    font-size: 0.85rem;
    color: var(--fs-gray);
    margin-bottom: var(--space-md);
}

.job-card .job-meta i {
    color: var(--fs-teal);
    margin-right: 4px;
}

.job-card .job-summary {
    color: var(--fs-gray);
    font-size: 0.95rem;
    margin-bottom: var(--space-md);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.job-card .job-tags {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-sm);
}

.job-tag {
    display: inline-block;
    padding: 2px 10px;
    background-color: var(--fs-gray-light);
    color: var(--fs-navy);
    font-size: 0.8rem;
    font-weight: 500;
    border-radius: 3px;
}

.job-card .job-salary {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 1.1rem;
    color: var(--fs-navy);
    margin: var(--space-sm) 0 var(--space-md);
}

.job-card .job-salary i {
    color: var(--fs-teal);
    margin-right: var(--space-xs);
}

.job-card .job-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: auto;
    padding-top: var(--space-md);
    border-top: 1px solid var(--fs-gray-light);
}

.job-card .job-date {
    font-size: 0.85rem;
    color: var(--fs-gray);
}

/* Filter bar */
.filter-bar {
    background-color: var(--fs-gray-light);
    padding: var(--space-lg);
    border-radius: var(--border-radius);
    margin-bottom: var(--space-xl);
}

/* --------------------------------------------------------------------------
   8. Button Styles (Signature -12deg skew)
   -------------------------------------------------------------------------- */
.btn-fs {
    display: inline-block;
    transform: skew(-12deg, 0deg);
    background-color: var(--fs-orange);
    color: var(--fs-white);
    padding: 13px 29px;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.95rem;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all var(--transition-base);
    line-height: 1;
}

.btn-fs:hover {
    background-color: var(--fs-navy);
    color: var(--fs-white);
    text-decoration: none;
}

.btn-fs:active {
    transform: skew(-12deg, 0deg) scale(0.98);
}

.btn-fs span {
    display: inline-block;
    transform: skew(12deg, 0deg);
}

/* Button variants */
.btn-fs-navy {
    background-color: var(--fs-navy);
}

.btn-fs-navy:hover {
    background-color: var(--fs-orange);
}

.btn-fs-outline {
    background-color: transparent;
    color: var(--fs-orange);
    border: 2px solid var(--fs-orange);
}

.btn-fs-outline:hover {
    background-color: var(--fs-orange);
    color: var(--fs-white);
}

.btn-fs-sm {
    padding: 8px 18px;
    font-size: 0.85rem;
}

/* Right arrow on small action buttons (View Details, Learn More) */
.btn-fs-sm span::after {
    content: ' \2192';
    margin-left: 4px;
}

.btn-fs-lg {
    padding: 16px 36px;
    font-size: 1.1rem;
}

/* Standard (non-skewed) button for forms */
.btn-primary-fs {
    background-color: var(--fs-orange);
    color: var(--fs-white);
    border: none;
    padding: 12px 28px;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.95rem;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    cursor: pointer;
    border-radius: 0px 0px var(--border-radius) 0px;
    transition: all var(--transition-base);
}

.btn-primary-fs:hover {
    background-color: var(--fs-navy);
    color: var(--fs-white);
}

/* --------------------------------------------------------------------------
   9. Form Styles
   -------------------------------------------------------------------------- */
.form-section {
    background-color: var(--fs-white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-card);
    padding: var(--space-2xl);
    margin-bottom: var(--space-xl);
}

.form-section-title {
    font-size: 1.5rem;
    padding-bottom: var(--space-md);
    margin-bottom: var(--space-xl);
    border-bottom: 3px solid var(--fs-orange);
    position: relative;
}

/* Step indicator for multi-step form */
.step-indicator {
    display: flex;
    justify-content: center;
    gap: 0;
    margin-bottom: var(--space-2xl);
    padding: 0;
    list-style: none;
    counter-reset: step;
}

.step-indicator li {
    flex: 1;
    text-align: center;
    position: relative;
    counter-increment: step;
    padding-top: 40px;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    color: var(--fs-gray);
}

.step-indicator li::before {
    content: counter(step);
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background-color: var(--fs-gray-light);
    color: var(--fs-gray);
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #ddd;
    transition: all var(--transition-base);
    z-index: 2;
}

.step-indicator li::after {
    content: '';
    position: absolute;
    top: 15px;
    left: calc(50% + 20px);
    right: calc(-50% + 20px);
    height: 2px;
    background-color: #ddd;
    z-index: 1;
}

.step-indicator li:last-child::after {
    display: none;
}

.step-indicator li.active::before {
    background-color: var(--fs-orange);
    color: var(--fs-white);
    border-color: var(--fs-orange);
}

.step-indicator li.active {
    color: var(--fs-navy);
}

.step-indicator li.completed::before {
    background-color: var(--fs-navy);
    color: var(--fs-white);
    border-color: var(--fs-navy);
    content: '\2713';
}

.step-indicator li.completed::after {
    background-color: var(--fs-navy);
}

.step-indicator li.completed {
    color: var(--fs-navy);
}

/* Form controls */
.form-label {
    font-family: var(--font-heading);
    font-weight: 600;
    color: var(--fs-navy);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    margin-bottom: var(--space-xs);
}

.form-control,
.form-select {
    border: 1px solid #d0d5dd;
    border-radius: var(--border-radius);
    padding: 10px 14px;
    font-family: var(--font-body);
    font-size: 0.95rem;
    color: var(--fs-gray-dark);
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.form-control:focus,
.form-select:focus {
    border-color: var(--fs-navy);
    box-shadow: 0 0 0 3px rgba(31, 62, 120, 0.15);
    outline: none;
}

.form-control.is-invalid {
    border-color: #dc3545;
}

.form-text {
    font-size: 0.8rem;
    color: var(--fs-gray);
}

.required-marker {
    color: var(--fs-orange);
    font-weight: 600;
}

/* File upload area */
.file-upload-area {
    border: 2px dashed #d0d5dd;
    border-radius: var(--border-radius);
    padding: var(--space-xl);
    text-align: center;
    cursor: pointer;
    transition: border-color var(--transition-fast), background-color var(--transition-fast);
}

.file-upload-area:hover,
.file-upload-area.dragover {
    border-color: var(--fs-orange);
    background-color: rgba(245, 128, 35, 0.04);
}

.file-upload-area i {
    font-size: 2rem;
    color: var(--fs-teal);
    margin-bottom: var(--space-sm);
}

/* --------------------------------------------------------------------------
   10. Footer Styles
   -------------------------------------------------------------------------- */
.site-footer {
    background-color: var(--fs-navy);
    color: rgba(255,255,255,0.85);
    padding: var(--space-3xl) 0 0;
    margin-top: var(--space-3xl);
    position: relative;
}

.site-footer::before {
    content: '';
    position: absolute;
    top: -2px;
    left: 0;
    right: 0;
    height: 60px;
    background-color: var(--fs-white);
    clip-path: polygon(0 0, 100% 0, 100% 40%, 0 100%);
}

.site-footer .footer-inner {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--space-lg);
}

.site-footer .footer-grid {
    display: grid;
    grid-template-columns: 2fr 1.5fr 1.5fr;
    gap: var(--space-2xl);
    padding-bottom: var(--space-2xl);
}

/* Social icons row */
.footer-social {
    display: flex;
    gap: var(--space-md);
    margin-bottom: var(--space-lg);
}

.footer-social a {
    color: var(--fs-orange);
    font-size: 1.5rem;
    transition: color var(--transition-fast);
}

.footer-social a:hover {
    color: var(--fs-teal);
}

/* Contact links styled as headings */
.footer-contact-link {
    color: var(--fs-white) !important;
    font-size: 1.5rem;
    margin-bottom: var(--space-xs) !important;
}

.footer-contact-link a {
    color: rgba(255,255,255,0.85);
}

.footer-contact-link a:hover {
    color: var(--fs-orange);
}

.site-footer h5 {
    color: var(--fs-white);
    font-size: 1.4rem;
    margin-bottom: var(--space-md);
    position: relative;
    padding-bottom: var(--space-sm);
}

.site-footer h5::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background-color: var(--fs-orange);
    transform: skew(var(--skew-angle));
}

.site-footer p {
    margin-bottom: var(--space-sm);
    font-size: 1.05rem;
    line-height: 1.6;
}

.site-footer a {
    color: rgba(255,255,255,0.85);
    text-decoration: none;
    transition: color var(--transition-fast);
}

.site-footer a:hover {
    color: var(--fs-orange);
    text-decoration: none;
}

.site-footer .footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.site-footer .footer-links li {
    margin-bottom: var(--space-sm);
}

.site-footer .footer-links a {
    font-size: 1.05rem;
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
}

.site-footer .footer-links a::before {
    display: none;
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.15);
    padding: var(--space-lg) 0;
    text-align: center;
}

.footer-bottom .footer-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-sm);
}

.footer-bottom p {
    font-size: 0.95rem;
    margin: 0;
    opacity: 0.7;
}

.footer-bottom .eeo-statement {
    font-size: 0.9rem;
    opacity: 0.7;
    max-width: 700px;
    text-align: center;
}

/* --------------------------------------------------------------------------
   11. Status / Timeline Styles
   -------------------------------------------------------------------------- */
.status-timeline {
    position: relative;
    padding-left: 40px;
    margin: var(--space-xl) 0;
}

.status-timeline::before {
    content: '';
    position: absolute;
    left: 15px;
    top: 0;
    bottom: 0;
    width: 3px;
    background-color: var(--fs-gray-light);
}

.status-step {
    position: relative;
    padding-bottom: var(--space-xl);
}

.status-step:last-child {
    padding-bottom: 0;
}

.status-step::before {
    content: '';
    position: absolute;
    left: -29px;
    top: 4px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background-color: var(--fs-gray-light);
    border: 3px solid #ddd;
    z-index: 2;
}

.status-step.completed::before {
    background-color: var(--fs-navy);
    border-color: var(--fs-navy);
}

.status-step.active::before {
    background-color: var(--fs-orange);
    border-color: var(--fs-orange);
    box-shadow: 0 0 0 4px rgba(245, 128, 35, 0.2);
}

.status-step .step-title {
    font-family: var(--font-heading);
    font-weight: 600;
    color: var(--fs-navy);
    font-size: 1rem;
    margin-bottom: var(--space-xs);
}

.status-step .step-date {
    font-size: 0.8rem;
    color: var(--fs-gray);
}

.status-step .step-detail {
    font-size: 0.9rem;
    color: var(--fs-gray);
    margin-top: var(--space-xs);
}

/* Status lookup form card */
.status-card {
    background-color: var(--fs-white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-md);
    padding: var(--space-2xl);
    max-width: 520px;
    margin: 0 auto;
}

/* --------------------------------------------------------------------------
   12. Utility Classes
   -------------------------------------------------------------------------- */
/* Text colors */
.text-navy    { color: var(--fs-navy) !important; }
.text-orange  { color: var(--fs-orange) !important; }
.text-teal    { color: var(--fs-teal) !important; }
.text-gray    { color: var(--fs-gray) !important; }
.text-white   { color: var(--fs-white) !important; }

/* Background colors */
.bg-navy       { background-color: var(--fs-navy) !important; }
.bg-orange     { background-color: var(--fs-orange) !important; }
.bg-teal       { background-color: var(--fs-teal) !important; }
.bg-light-gray { background-color: var(--fs-gray-light) !important; }
.bg-white      { background-color: var(--fs-white) !important; }

/* Sections */
.section {
    padding: var(--space-section) 0;
}

.section-positions {
    background-color: var(--fs-gray-light);
    padding: var(--space-sm) 0 var(--space-section);
}

.section-gray {
    background-color: var(--fs-gray-light);
}

.section-title {
    text-align: center;
    margin-bottom: var(--space-md);
}

.section-title h2 {
    position: relative;
    display: inline-block;
    padding-bottom: var(--space-md);
}

.section-title h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%) skew(var(--skew-angle));
    width: 60px;
    height: 4px;
    background-color: var(--fs-orange);
}

/* Container */
.container-fs {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--space-lg);
}

/* Spacing helpers */
.mt-section { margin-top: var(--space-3xl); }
.mb-section { margin-bottom: var(--space-3xl); }
.py-section { padding-top: var(--space-3xl); padding-bottom: var(--space-3xl); }

/* --------------------------------------------------------------------------
   13. Responsive Breakpoints
   -------------------------------------------------------------------------- */
@media (max-width: 1024px) {
    h1, .h1 { font-size: 2.75rem; }
    h2, .h2 { font-size: 2.25rem; }

    .hero {
        min-height: 380px;
    }

    .hero-text h1 {
        font-size: 3rem;
    }

    .hero-gallery {
        flex: 0 0 360px;
    }

    .hero-gallery-mask {
        width: 360px;
        height: 270px;
    }

    .site-footer .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: var(--space-xl);
    }

    .site-footer .footer-col-main {
        grid-column: 1 / -1;
    }
}

@media (max-width: 640px) {
    :root {
        --header-height: 60px;
        --space-section: 2.5rem;    /* 40px */
        --space-section-lg: 3.75rem; /* 60px */
    }

    h1, .h1 { font-size: 1.875rem; }
    h2, .h2 { font-size: 1.5rem; }
    h3, .h3 { font-size: 1.25rem; }

    /* Show hamburger, hide desktop nav */
    .nav-toggle {
        display: block;
    }

    .nav-desktop {
        display: none;
    }

    .site-header .logo-link img {
        height: 70px;
    }

    .careers-wordmark {
        font-size: 1.2rem;
        letter-spacing: 1px;
    }

    /* Hero */
    .hero {
        min-height: 280px;
    }

    .hero-content {
        padding: var(--space-2xl) var(--space-lg);
    }

    .hero-split {
        flex-direction: column;
        padding: 2rem 0 3rem;
        text-align: center;
    }

    .hero-text h1 {
        font-size: 2rem;
    }

    .hero-text .hero-subtitle {
        font-size: 1rem;
        margin-left: auto;
        margin-right: auto;
    }

    .hero::after {
        height: 40px;
    }

    .hero-gallery {
        flex: none;
        width: 280px;
    }

    .hero-gallery-mask {
        width: 280px;
        height: 210px;
    }

    .hero-features {
        flex-direction: column;
        gap: var(--space-sm);
        align-items: center;
    }

    .page-header {
        padding: 1.5rem 0 2rem;
    }

    .page-header-content h1 {
        font-size: 1.75rem;
    }

    .page-header-tags {
        gap: var(--space-xs);
    }

    /* Job cards */
    .job-card {
        padding: var(--space-lg) var(--space-lg) var(--space-md);
    }

    .job-card .job-meta {
        flex-direction: column;
        gap: var(--space-xs);
    }

    .content-card {
        padding: var(--space-lg);
    }

    /* Footer */
    .site-footer .footer-grid {
        grid-template-columns: 1fr;
        gap: var(--space-xl);
    }

    .site-footer::before {
        height: 30px;
    }

    /* Forms */
    .form-section {
        padding: var(--space-lg);
    }

    .step-indicator li {
        font-size: 0.7rem;
        padding-top: 36px;
    }

    .step-indicator li::before {
        width: 28px;
        height: 28px;
        font-size: 0.8rem;
    }

    /* Buttons */
    .btn-fs {
        padding: 10px 20px;
        font-size: 0.85rem;
    }
}

/* --------------------------------------------------------------------------
   14. Angular Decorative Elements
   -------------------------------------------------------------------------- */
/* Skewed section divider (top) */
.angular-divider-top {
    position: relative;
}

.angular-divider-top::before {
    content: '';
    position: absolute;
    top: -2px;
    left: 0;
    right: 0;
    height: 60px;
    background-color: var(--fs-white);
    clip-path: polygon(0 0, 100% 0, 100% 40%, 0 100%);
    z-index: 2;
}

/* Skewed section divider (bottom) */
.angular-divider-bottom {
    position: relative;
}

.angular-divider-bottom::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 60px;
    background-color: var(--fs-white);
    clip-path: polygon(0 60%, 100% 0, 100% 100%, 0 100%);
    z-index: 2;
}

/* Angular image crop */
.angular-image {
    clip-path: polygon(8% 0, 100% 0, 100% 100%, 0 100%);
}

/* Skewed accent bar (horizontal) */
.accent-bar {
    display: inline-block;
    width: 60px;
    height: 4px;
    background-color: var(--fs-orange);
    transform: skew(var(--skew-angle));
}

/* Skewed colored strip background element */
.skewed-strip {
    position: absolute;
    transform: skew(var(--skew-angle));
    background-color: var(--fs-orange);
    opacity: 0.1;
}

/* Card with angular top accent */
.angular-card {
    position: relative;
    overflow: hidden;
}

.angular-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--fs-orange), var(--fs-teal));
}

/* Alert / info boxes */
.alert-fs {
    border-left: 4px solid var(--fs-orange);
    background-color: rgba(245, 128, 35, 0.06);
    padding: var(--space-md) var(--space-lg);
    border-radius: 0 var(--border-radius) var(--border-radius) 0;
    margin-bottom: var(--space-md);
}

.alert-fs-info {
    border-left-color: var(--fs-teal);
    background-color: rgba(134, 189, 211, 0.08);
}

.alert-fs-success {
    border-left-color: #28a745;
    background-color: rgba(40, 167, 69, 0.06);
}

/* --------------------------------------------------------------------------
   15. Page Header (sub-pages)
   -------------------------------------------------------------------------- */
.page-header {
    position: relative;
    background-color: var(--fs-navy);
    padding: 3rem 0 3.5rem;
    overflow: hidden;
}

.page-header-sm {
    padding: 2rem 0 2.5rem;
}

.page-header::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 50px;
    background-color: var(--fs-gray-light);
    clip-path: polygon(0 60%, 100% 0, 100% 100%, 0 100%);
    z-index: 4;
}

.page-header-shapes {
    position: absolute;
    inset: 0;
    z-index: 1;
    overflow: hidden;
    pointer-events: none;
}

.page-header-shapes .shape {
    position: absolute;
    transform: skew(var(--skew-angle));
}

.page-header-shapes .shape-1 {
    right: -40px;
    top: -30px;
    width: 200px;
    height: 400px;
    background: linear-gradient(180deg, var(--fs-orange), rgba(245,128,35,0.2));
    opacity: 0.1;
}

.page-header-shapes .shape-2 {
    right: 120px;
    top: -60px;
    width: 100px;
    height: 450px;
    background: var(--fs-teal);
    opacity: 0.06;
}

.page-header-content {
    position: relative;
    z-index: 3;
}

.page-header-content h1 {
    color: var(--fs-white);
    font-size: 2.5rem;
    margin-bottom: var(--space-sm);
}

.page-header-back {
    display: inline-block;
    color: rgba(255,255,255,0.7);
    font-size: 0.9rem;
    margin-bottom: var(--space-md);
    text-decoration: none;
    transition: color var(--transition-fast);
}

.page-header-back:hover {
    color: var(--fs-orange);
    text-decoration: none;
}

.page-header-tags {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-sm);
    margin-top: var(--space-md);
}

.page-tag {
    display: inline-block;
    padding: 6px 16px;
    background: rgba(255,255,255,0.12);
    color: rgba(255,255,255,0.9);
    font-family: var(--font-heading);
    font-weight: 500;
    font-size: 0.85rem;
    border-radius: 3px;
}

/* --------------------------------------------------------------------------
   16. Content Cards & Detail Pages
   -------------------------------------------------------------------------- */
.content-card {
    background: var(--fs-white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-card);
    padding: var(--space-2xl);
    overflow-wrap: break-word;
    word-break: normal;
}

.content-heading {
    position: relative;
    padding-bottom: var(--space-sm);
    margin-bottom: var(--space-lg);
}

.content-heading::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 4px;
    background-color: var(--fs-orange);
    transform: skew(var(--skew-angle));
}

.content-body {
    color: var(--fs-gray-dark);
    line-height: 1.8;
    font-size: 0.95rem;
    overflow-wrap: break-word;
    word-break: normal;
}

/* Headings from rich text editor (Quill) */
.content-body h2 {
    font-size: 1.6rem;
    margin-top: var(--space-xl);
    margin-bottom: var(--space-md);
    padding-bottom: var(--space-xs);
    border-bottom: 2px solid var(--fs-orange);
}

.content-body h3 {
    font-size: 1.3rem;
    margin-top: var(--space-lg);
    margin-bottom: var(--space-sm);
}

.content-body h4 {
    font-size: 1.1rem;
    margin-top: var(--space-lg);
    margin-bottom: var(--space-sm);
}

.content-body ul,
.content-body ol {
    padding-left: 1.25rem;
    margin-bottom: var(--space-md);
}

.content-body li {
    margin-bottom: var(--space-sm);
}

/* Detail sidebar */
.detail-sidebar {
    position: sticky;
    top: calc(var(--header-height) + var(--space-lg));
    background-color: var(--fs-white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-md);
    padding: var(--space-xl);
    border-top: 4px solid var(--fs-orange);
    overflow-wrap: break-word;
    word-break: normal;
}

.detail-sidebar hr {
    border-color: var(--fs-gray-light);
    margin: var(--space-lg) 0;
}

.detail-sidebar-salary {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--fs-navy);
    text-align: center;
}

.detail-sidebar-salary-period {
    display: block;
    font-family: var(--font-body);
    font-weight: 400;
    font-size: 0.85rem;
    color: var(--fs-gray);
    margin-top: var(--space-xs);
}

.detail-sidebar-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.detail-sidebar-list li {
    display: flex;
    align-items: flex-start;
    gap: var(--space-md);
    padding: var(--space-sm) 0;
    font-size: 0.9rem;
    color: var(--fs-gray-dark);
}

.detail-sidebar-list li i {
    font-size: 1.1rem;
    margin-top: 2px;
    flex-shrink: 0;
}

.detail-sidebar-list li strong {
    font-family: var(--font-heading);
    font-weight: 600;
    color: var(--fs-navy);
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 0.3px;
}

/* --------------------------------------------------------------------------
   17. Empty State
   -------------------------------------------------------------------------- */
.empty-state {
    text-align: center;
    padding: var(--space-3xl) var(--space-lg);
}

.empty-state i {
    font-size: 3.5rem;
    color: var(--fs-teal);
    opacity: 0.5;
    margin-bottom: var(--space-lg);
    display: block;
}

.empty-state h3 {
    margin-bottom: var(--space-sm);
}

.empty-state p {
    color: var(--fs-gray);
    max-width: 400px;
    margin: 0 auto;
}

/* --------------------------------------------------------------------------
   18. Animations
   -------------------------------------------------------------------------- */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.5s ease forwards;
}

/* Staggered delays for lists */
.fade-in-up:nth-child(1) { animation-delay: 0s; }
.fade-in-up:nth-child(2) { animation-delay: 0.1s; }
.fade-in-up:nth-child(3) { animation-delay: 0.2s; }
.fade-in-up:nth-child(4) { animation-delay: 0.3s; }
.fade-in-up:nth-child(5) { animation-delay: 0.4s; }

/* --------------------------------------------------------------------------
   16. Print Styles
   -------------------------------------------------------------------------- */
@media print {
    .site-header,
    .site-footer,
    .nav-toggle,
    .btn-fs {
        display: none !important;
    }

    body {
        color: #000;
        background: #fff;
    }

    .job-card {
        box-shadow: none;
        border: 1px solid #ddd;
        break-inside: avoid;
    }
}
