/* ============================================================
   NFS MARKETING WEBSITE - Complete CSS
   Design System: Navy, Blue, Amber theme
   ============================================================ */

:root {
    /* Colors */
    --navy-900: #0A1A2E;
    --navy-800: #102338;
    --blue-600: #155EEF;
    --blue-50: #EFF5FE;
    --amber-500: #F6A21E;
    --amber-50: #FEF7EA;
    --slate-50: #F5F7FA;
    --slate-100: #EDF1F6;
    --slate-200: #DEE5EE;
    --slate-400: #9AA7B8;
    --slate-500: #6B7A8D;
    --slate-700: #36424F;
    --slate-900: #141B23;
    
    /* Status colors */
    --green-600: #157F52;
    --green-100: #D6F0E2;
    --red-600: #C72E26;
    --red-100: #FBE0DE;
    --amber-status: #C57E0A;
    --amber-status-light: #FCEBC9;
    
    /* Surface colors */
    --surface-page: #F5F7FA;
    --surface-card: #FFFFFF;
    --surface-dark: var(--navy-900);
    
    /* Text colors */
    --text-strong: #141B23;
    --text-body: #36424F;
    --text-muted: #6B7A8D;
    --text-subtle: #9AA7B8;
    --text-on-dark: #F5F7FA;
    --text-on-dark-muted: #9DB0C6;
    
    /* Border colors */
    --border-subtle: #DEE5EE;
    --border-default: #C7D1DE;
    
    /* Fonts */
    --font-display: 'Space Grotesk', 'Hanken Grotesk', system-ui, sans-serif;
    --font-body: 'Hanken Grotesk', system-ui, -apple-system, 'Segoe UI', sans-serif;
    --font-mono: 'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, monospace;
    
    /* Spacing */
    --space-4: 1rem;
    --space-5: 1.5rem;
    --space-6: 2rem;
    --space-8: 3rem;
    --gutter: 1.5rem;
    --container-max: 1200px;
}

/* ============================================================
   GLOBAL STYLES
   ============================================================ */

* {
    box-sizing: border-box;
}

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

body {
    margin: 0;
    font-family: var(--font-body);
    font-size: 15px;
    line-height: 1.5;
    color: var(--text-body);
    background: var(--surface-page);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

h1, h2, h3, h4, h5 {
    font-family: var(--font-display);
    font-weight: 700;
    color: var(--text-strong);
    line-height: 1.2;
    margin: 0;
}

h1 {
    font-size: 48px;
    letter-spacing: -0.03em;
}

h2 {
    font-size: 36px;
    letter-spacing: -0.03em;
    margin-bottom: 12px;
}

h3 {
    font-size: 22px;
}

h4 {
    font-size: 18px;
}

p {
    margin: 0 0 1em;
}

a {
    color: var(--blue-600);
    text-decoration: none;
    transition: all 200ms ease-out;
}

a:hover {
    opacity: 0.8;
}

/* ============================================================
   CONTAINER & LAYOUT
   ============================================================ */

.container {
    width: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--gutter);
}

/* ============================================================
   HEADER / NAVIGATION
   ============================================================ */

.header {
    position: sticky;
    top: 0;
    z-index: 20;
    background: rgba(255, 255, 255, 0.86);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-subtle);
}

.header-content {
    display: flex;
    align-items: center;
    gap: 2rem;
    height: 72px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 16px;
    font-weight: 700;
    color: var(--navy-900);
    text-decoration: none;
    cursor: pointer;
}

.nav {
    display: flex;
    gap: 4px;
    margin-left: 8px;
}

.nav a {
    padding: 8px 14px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-body);
    text-decoration: none;
}

.nav a:hover,
.nav a.active {
    color: var(--blue-600);
    background: var(--blue-50);
}

.header-actions {
    margin-left: auto;
    display: flex;
    gap: 10px;
    align-items: center;
}

@media (max-width: 768px) {
    .nav {
        display: none;
    }
    
    .header-actions {
        gap: 8px;
    }
}

/* ============================================================
   BUTTONS
   ============================================================ */

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    border: none;
    border-radius: 8px;
    font-family: inherit;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: all 200ms ease-out;
    white-space: nowrap;
}

.btn:hover {
    opacity: 0.9;
}

/* Button Variants */
.btn-primary {
    background: var(--blue-600);
    color: white;
}

.btn-accent {
    background: var(--amber-500);
    color: white;
}

.btn-ghost {
    background: transparent;
    color: var(--text-body);
}

.btn-outline {
    background: transparent;
    color: var(--text-body);
    border: 1px solid var(--border-subtle);
}

.btn-inverse {
    background: transparent;
    color: white;
    border: 1.5px solid white;
}

/* Button Sizes */
.btn-sm {
    padding: 6px 12px;
    font-size: 13px;
}

.btn-lg {
    padding: 12px 24px;
    font-size: 15px;
}

/* ============================================================
   FORMS
   ============================================================ */

.form-group {
    margin-bottom: 16px;
}

.form-group label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-body);
    margin-bottom: 6px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 10px 12px;
    font-family: inherit;
    font-size: 14px;
    color: var(--text-strong);
    background: var(--surface-card);
    border: 1px solid var(--border-subtle);
    border-radius: 8px;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--blue-600);
    box-shadow: 0 0 0 3px rgba(21, 94, 239, 0.1);
}

/* ============================================================
   CARDS & BADGES
   ============================================================ */

.card {
    background: var(--surface-card);
    border: 1px solid var(--border-subtle);
    border-radius: 12px;
    padding: 20px;
}

.card.accent {
    border-top: 3px solid var(--amber-500);
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
}

.badge-success {
    background: var(--green-100);
    color: var(--green-600);
}

.badge-warning {
    background: var(--amber-status-light);
    color: var(--amber-status);
}

.badge-danger {
    background: var(--red-100);
    color: var(--red-600);
}

.badge-info {
    background: rgba(21, 94, 239, 0.1);
    color: var(--blue-600);
}

.dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: currentColor;
}

/* ============================================================
   HERO SECTION
   ============================================================ */

.hero {
    background: var(--navy-900);
    color: var(--text-on-dark);
    position: relative;
    overflow: hidden;
    padding: 88px 32px 96px;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: linear-gradient(180deg, rgba(255,255,255,.04), transparent 40%);
    pointer-events: none;
    z-index: 1;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background-image: url('hero-bg.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    z-index: 0;
    opacity: 0.85;
}

.hero-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(10, 26, 46, 0.7) 0%, rgba(16, 35, 56, 0.6) 50%, rgba(26, 58, 82, 0.7) 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: 56px;
    align-items: center;
}

.hero-text {
    position: relative;
}

.hero-text h1 {
    color: white;
    margin-top: 18px;
    margin-bottom: 20px;
}

.hero-text h1 .accent {
    color: var(--amber-500);
}

.hero-text p {
    font-size: 18px;
    line-height: 1.6;
    color: #9DB0C6;
    max-width: 480px;
    margin-top: 20px;
}

.hero-cta {
    display: flex;
    gap: 12px;
    margin-top: 32px;
}

.hero-stats {
    display: flex;
    gap: 28px;
    margin-top: 40px;
}

.hero-stats > div {
    text-align: left;
}

.stat-value {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 30px;
    color: white;
    letter-spacing: -0.02em;
}

.stat-label {
    font-size: 12.5px;
    color: var(--text-on-dark-muted);
    margin-top: 2px;
}

/* Hero Panel */
.hero-panel {
    background: var(--navy-800);
    border: 1px solid var(--navy-700);
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 24px 48px rgba(10, 26, 46, 0.18);
}

.panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

.eyebrow-small {
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text-on-dark-muted);
}

.stat-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 12px;
}

.stat-card {
    background: var(--surface-card);
    border: 1px solid var(--border-subtle);
    border-radius: 10px;
    padding: 14px 16px;
}

.stat-card-label {
    font-size: 11px;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    margin-bottom: 6px;
}

.stat-card-value {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-strong);
    margin-bottom: 4px;
}

.stat-card-value.accent {
    color: var(--amber-500);
}

.stat-card-delta {
    font-size: 12px;
    color: var(--green-600);
}

/* Alerts in Panel */
.panel-alerts {
    background: rgba(255, 255, 255, 0.04);
    border-radius: 12px;
    padding: 14px 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.alert {
    font-size: 13px;
    padding: 6px 0;
}

.alert-warning {
    color: var(--amber-status);
}

.alert-success {
    color: var(--green-600);
}

.alert-info {
    color: var(--blue-600);
}

@media (max-width: 768px) {
    .hero-content {
        grid-template-columns: 1fr;
        gap: 32px;
        padding: 40px 0;
    }
    
    .hero-cta {
        flex-direction: column;
    }
    
    .hero-stats {
        flex-direction: column;
        gap: 16px;
    }
}

/* ============================================================
   EYEBROW / SECTION HEADER
   ============================================================ */

.eyebrow {
    font-family: var(--font-mono);
    font-size: 12px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    font-weight: 500;
    color: var(--amber-500);
}

.eyebrow-dark {
    color: var(--amber-400);
}

.section-header {
    text-align: center;
    max-width: 640px;
    margin: 0 auto 44px;
}

.section-header .eyebrow {
    display: block;
    margin-bottom: 14px;
}

/* ============================================================
   THREE E'S SECTION
   ============================================================ */

.three-e {
    background: var(--surface-card);
    border-bottom: 1px solid var(--border-subtle);
    padding: 72px 32px;
}

.cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    max-width: var(--container-max);
    margin: 0 auto;
}

.card-icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: var(--blue-50);
    color: var(--blue-600);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
}

.card-icon svg {
    display: block;
}

.card h3 {
    margin-bottom: 8px;
    font-size: 21px;
}

.card p {
    font-size: 14.5px;
    line-height: 1.6;
    color: var(--text-body);
}

@media (max-width: 768px) {
    .cards-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
}

/* ============================================================
   NEWS SECTION
   ============================================================ */

.news-section {
    background: linear-gradient(180deg, var(--surface-card), var(--surface-page));
    padding: 72px 32px;
    border-bottom: 1px solid var(--border-subtle);
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 24px;
    max-width: var(--container-max);
    margin: 0 auto;
}

.news-card {
    background: var(--surface-card);
    border: 1px solid var(--border-subtle);
    border-radius: 12px;
    overflow: hidden;
    transition: all 200ms ease-out;
    display: flex;
    flex-direction: column;
}

.news-card:hover {
    box-shadow: 0 8px 24px rgba(16, 35, 56, 0.1);
    transform: translateY(-4px);
}

.news-card.loading {
    opacity: 0.6;
}

.news-placeholder {
    padding: 24px;
    color: var(--text-muted);
    text-align: center;
    font-style: italic;
}

.news-image {
    width: 100%;
    height: 180px;
    background: var(--slate-100);
    object-fit: cover;
}

.news-content {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.news-date {
    font-size: 12px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 8px;
    font-weight: 600;
}

.news-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-strong);
    margin-bottom: 10px;
    line-height: 1.4;
    flex: 1;
}

.news-description {
    font-size: 14px;
    color: var(--text-body);
    line-height: 1.6;
    margin-bottom: 16px;
}

.news-source {
    font-size: 12px;
    color: var(--blue-600);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.news-link {
    display: inline-block;
    margin-top: 12px;
    padding: 10px 16px;
    background: var(--blue-50);
    color: var(--blue-600);
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: all 200ms ease-out;
}

.news-link:hover {
    background: var(--blue-600);
    color: white;
}

/* ============================================================
   SERVICES PREVIEW
   ============================================================ */

.services-preview {
    padding: 72px 32px;
}

.services-preview .section-header {
    margin-bottom: 44px;
}

.services-preview .section-header p {
    font-size: 16px;
    color: var(--text-muted);
    margin-top: 12px;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    max-width: var(--container-max);
    margin: 0 auto;
}

.service-card {
    background: var(--surface-card);
    border: 1px solid var(--border-subtle);
    border-top: 3px solid var(--amber-500);
    border-radius: 12px;
    padding: 20px;
    transition: all 200ms ease-out;
}

.service-card:hover {
    box-shadow: 0 4px 12px rgba(16, 35, 56, 0.08);
    transform: translateY(-2px);
}

.service-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: var(--blue-50);
    color: var(--blue-600);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
}

.service-card h3 {
    font-size: 18px;
    margin-bottom: 8px;
}

.service-card p {
    font-size: 14px;
    color: var(--text-body);
}

/* ============================================================
   PAGE HEADER
   ============================================================ */

.page-header {
    padding: 60px 32px;
    text-align: center;
    background: linear-gradient(180deg, var(--surface-card), var(--surface-page));
}

.page-header h1 {
    margin-bottom: 12px;
}

.page-header p {
    font-size: 18px;
    color: var(--text-muted);
    margin: 0;
}

/* ============================================================
   SERVICES PAGE
   ============================================================ */

.services-section {
    padding: 60px 32px;
}

.services-section .container {
    max-width: var(--container-max);
    margin: 0 auto;
}

/* ============================================================
   ABOUT SECTION
   ============================================================ */

.about-section {
    padding: 60px 32px;
}

.about-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 60px;
    max-width: var(--container-max);
    margin: 0 auto;
}

.about-text h2 {
    margin-bottom: 16px;
    font-size: 28px;
}

.about-text p {
    font-size: 16px;
    line-height: 1.7;
    color: var(--text-body);
    margin-bottom: 16px;
}

.about-sidebar {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.info-box {
    background: var(--blue-50);
    border: 1px solid rgba(21, 94, 239, 0.2);
    border-radius: 12px;
    padding: 24px;
    text-align: center;
}

.info-box h3 {
    color: var(--blue-600);
    margin-bottom: 8px;
    font-size: 24px;
}

.info-box p {
    color: var(--text-muted);
    font-size: 14px;
    margin: 0;
}

.cta-box {
    background: linear-gradient(135deg, var(--navy-900) 0%, #0F2847 100%);
    color: var(--text-on-dark);
    border-radius: 12px;
    padding: 28px;
    text-align: center;
}

.cta-box h3 {
    color: white;
    margin-bottom: 12px;
}

.cta-box p {
    color: var(--text-on-dark-muted);
    margin-bottom: 0;
}

@media (max-width: 768px) {
    .about-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .about-text h2 {
        font-size: 24px;
    }
}

/* ============================================================
   CONTACT SECTION
   ============================================================ */

.contact-section {
    padding: 60px 32px;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    max-width: var(--container-max);
    margin: 0 auto;
}

.contact-info h2,
.contact-form h2 {
    margin-bottom: 12px;
}

.contact-item {
    margin-bottom: 32px;
}

.contact-item h4 {
    margin-bottom: 8px;
    color: var(--text-strong);
}

.contact-item p,
.contact-item a {
    color: var(--text-body);
    margin: 0;
}

@media (max-width: 768px) {
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }
}

/* ============================================================
   DIRECTORY SECTION
   ============================================================ */

.directory-section {
    padding: 60px 32px;
}

.directory-categories,
.directory-regions {
    max-width: var(--container-max);
    margin: 0 auto;
}

.directory-categories h3,
.directory-regions h3 {
    margin-bottom: 20px;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 20px;
}

.category-card {
    background: var(--surface-card);
    border: 1px solid var(--border-subtle);
    border-radius: 12px;
    padding: 24px;
    text-align: center;
    transition: all 200ms ease-out;
}

.category-card:hover {
    box-shadow: 0 4px 12px rgba(16, 35, 56, 0.08);
}

.category-icon {
    font-size: 36px;
    margin-bottom: 12px;
}

.category-card h4 {
    margin-bottom: 8px;
}

.category-card p {
    font-size: 14px;
    color: var(--text-muted);
    margin: 0;
}

/* ============================================================
   CTA SECTION
   ============================================================ */

.cta-section {
    background: var(--navy-900);
    color: var(--text-on-dark);
    padding: 72px 32px;
    text-align: center;
}

.cta-section h2 {
    color: white;
    margin-bottom: 20px;
}

.cta-section p {
    font-size: 18px;
    color: var(--text-on-dark-muted);
    margin-bottom: 32px;
}

/* ============================================================
   APP BANNER SECTION
   ============================================================ */

.app-banner {
    background: var(--blue-50);
    padding: 60px 32px;
    text-align: center;
}

.app-banner h2 {
    color: var(--text-strong);
    margin-bottom: 12px;
}

.app-banner p {
    font-size: 16px;
    color: var(--text-body);
    margin-bottom: 24px;
}

/* ============================================================
   FOOTER
   ============================================================ */

.footer {
    background: var(--navy-800);
    color: var(--text-on-dark);
    padding: 40px 32px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    max-width: var(--container-max);
    margin: 0 auto 32px;
}

.footer-section h4 {
    color: white;
    margin-bottom: 12px;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.footer-section p {
    font-size: 14px;
    color: var(--text-on-dark-muted);
    margin: 0;
}

.footer-section ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-section ul li {
    margin-bottom: 8px;
}

.footer-section a {
    font-size: 14px;
    color: var(--text-on-dark-muted);
}

.footer-section a:hover {
    color: white;
}

.footer-bottom {
    border-top: 1px solid var(--navy-700);
    padding-top: 20px;
    text-align: center;
    font-size: 14px;
    color: var(--text-on-dark-muted);
}

@media (max-width: 768px) {
    .footer-content {
        grid-template-columns: 1fr 1fr;
        gap: 24px;
    }
}

/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (max-width: 600px) {
    h1 {
        font-size: 32px;
    }
    
    h2 {
        font-size: 28px;
    }
    
    .header-content {
        gap: 1rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
    }
    
    .btn {
        padding: 10px 12px;
        font-size: 13px;
    }
}