/* 
   Rigtige Contractors Vikar ApS - Premium Styling
   Custom Vanilla CSS for recruitment platform
*/

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Outfit:wght@400;500;600;700;800&display=swap');

:root {
    --primary: #0f172a;       /* Deep Navy */
    --primary-light: #1e293b; /* Medium Navy */
    --accent: #2563eb;        /* Vibrant Royal Blue */
    --accent-hover: #1d4ed8;  /* Darker Blue */
    --accent-light: #eff6ff;  /* Soft Blue Tint */
    --text-dark: #0f172a;     /* Near Black */
    --text-muted: #475569;    /* Slate Gray */
    --bg-light: #f8fafc;      /* Soft Off-White */
    --bg-white: #ffffff;      /* Pure White */
    --border: #e2e8f0;        /* Light Gray Border */
    --success: #10b981;       /* Premium Green */
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.1);
    --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.05), 0 2px 4px -1px rgba(0,0,0,0.03);
    --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.05), 0 4px 6px -2px rgba(0,0,0,0.02);
    --shadow-xl: 0 20px 25px -5px rgba(0,0,0,0.08), 0 10px 10px -5px rgba(0,0,0,0.04);
    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 18px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reset & Base Styles */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-light);
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.25;
    color: var(--primary);
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Layout Utilities */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section {
    padding: 80px 0;
}

.section-bg {
    background-color: var(--bg-white);
}

.text-center {
    text-align: center;
}

.max-w-md {
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Header & Navbar */
header {
    background-color: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: var(--transition);
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-img {
    height: 48px;
    width: auto;
}

.logo-text {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.25rem;
    color: var(--primary);
    line-height: 1.1;
}

.logo-text span {
    color: var(--accent);
    display: block;
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 1px;
}

.nav-menu {
    display: flex;
    align-items: center;
    list-style: none;
    gap: 32px;
}

.nav-link {
    font-weight: 500;
    color: var(--text-muted);
    font-size: 0.95rem;
    position: relative;
    padding: 8px 0;
}

.nav-link:hover, .nav-link.active {
    color: var(--accent);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--accent);
    transition: var(--transition);
}

.nav-link:hover::after, .nav-link.active::after {
    width: 100%;
}

.nav-btn-container {
    display: flex;
    align-items: center;
}

/* Hamburger Menu */
.hamburger {
    display: none;
    cursor: pointer;
    background: none;
    border: none;
    padding: 10px;
    z-index: 1100;
}

.bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    transition: var(--transition);
    background-color: var(--primary);
    border-radius: 2px;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 28px;
    border-radius: var(--radius-sm);
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: var(--transition);
    border: 2px solid transparent;
}

.btn-primary {
    background-color: var(--accent);
    color: var(--bg-white);
}

.btn-primary:hover {
    background-color: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.2);
}

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

.btn-outline:hover {
    background-color: var(--primary);
    color: var(--bg-white);
    transform: translateY(-2px);
}

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

.btn-white:hover {
    background-color: var(--bg-light);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 255, 255, 0.2);
}

.btn-nav {
    padding: 10px 20px;
    font-size: 0.9rem;
    background-color: var(--primary);
    color: var(--bg-white);
}

.btn-nav:hover {
    background-color: var(--accent);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.25);
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.95) 0%, rgba(30, 41, 59, 0.9) 100%), 
                radial-gradient(circle at 80% 20%, rgba(37, 99, 235, 0.15) 0%, transparent 50%);
    color: var(--bg-white);
    padding: 120px 0 100px;
    position: relative;
    overflow: hidden;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 40px;
    background: linear-gradient(to top, var(--bg-light), transparent);
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 60px;
    align-items: center;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--bg-white);
    margin-bottom: 24px;
    letter-spacing: -1px;
}

.hero-title span {
    color: #60a5fa; /* Soft Accent Blue */
}

.hero-subtitle {
    font-size: 1.15rem;
    color: #94a3b8; /* Cool Muted Slate */
    margin-bottom: 40px;
    max-width: 540px;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.hero-image-wrapper {
    position: relative;
    display: flex;
    justify-content: center;
}

.hero-card-pattern {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(16px);
    border-radius: var(--radius-lg);
    padding: 40px;
    width: 100%;
    max-width: 440px;
    box-shadow: var(--shadow-xl);
    position: relative;
}

.hero-card-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 30px;
}

.badge-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: var(--success);
    position: relative;
}

.badge-dot::after {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    border: 2px solid var(--success);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(0.8); opacity: 0.5; }
    100% { transform: scale(2.2); opacity: 0; }
}

.hero-card-title {
    color: var(--bg-white);
    font-size: 1.25rem;
}

.hero-stat-row {
    display: flex;
    justify-content: space-between;
    padding: 16px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.hero-stat-row:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.hero-stat-label {
    color: #94a3b8;
    font-size: 0.95rem;
}

.hero-stat-value {
    color: var(--bg-white);
    font-weight: 600;
}

/* Stats Section */
.stats-section {
    margin-top: -40px;
    position: relative;
    z-index: 10;
    margin-bottom: 40px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.stat-card {
    background-color: var(--bg-white);
    border-radius: var(--radius-md);
    padding: 30px;
    text-align: center;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border);
}

.stat-number {
    font-size: 3rem;
    font-weight: 800;
    color: var(--accent);
    margin-bottom: 8px;
    font-family: var(--font-heading);
}

.stat-label {
    color: var(--text-muted);
    font-weight: 500;
}

/* Section Header */
.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-pre {
    color: var(--accent);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 2px;
    margin-bottom: 12px;
    display: block;
}

.section-title {
    font-size: 2.25rem;
    font-weight: 800;
    margin-bottom: 16px;
}

.section-desc {
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto;
}

/* Industries/Sectors Grid */
.industry-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 30px;
}

.industry-card {
    background-color: var(--bg-light);
    border-radius: var(--radius-md);
    padding: 40px 30px;
    border: 1px solid var(--border);
    transition: var(--transition);
}

.industry-card:hover {
    background-color: var(--bg-white);
    box-shadow: var(--shadow-lg);
    border-color: transparent;
    transform: translateY(-5px);
}

.industry-icon {
    width: 60px;
    height: 60px;
    border-radius: var(--radius-sm);
    background-color: var(--accent-light);
    color: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    margin-bottom: 24px;
}

.industry-title {
    font-size: 1.35rem;
    margin-bottom: 12px;
}

.industry-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* Features/Why Choose Us */
.features-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.feature-list {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.feature-item {
    display: flex;
    gap: 20px;
}

.feature-check {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background-color: var(--success);
    color: var(--bg-white);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-top: 4px;
}

.feature-title {
    font-size: 1.15rem;
    margin-bottom: 8px;
}

.feature-desc {
    color: var(--text-muted);
    font-size: 0.95rem;
}

.features-image-container {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    border-radius: var(--radius-lg);
    padding: 60px 40px;
    color: var(--bg-white);
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-xl);
}

.features-image-container::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 150px;
    height: 150px;
    background-color: var(--accent);
    filter: blur(80px);
    opacity: 0.3;
}

.feature-promo-title {
    font-size: 2rem;
    color: var(--bg-white);
    margin-bottom: 20px;
}

.feature-promo-text {
    color: #94a3b8;
    margin-bottom: 30px;
}

/* FAQ Section & Accordion */
.faq-accordion {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.faq-item {
    background-color: var(--bg-white);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: var(--transition);
}

.faq-header {
    width: 100%;
    padding: 24px 30px;
    background: none;
    border: none;
    text-align: left;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 1.1rem;
    color: var(--primary);
    transition: var(--transition);
}

.faq-header:hover {
    color: var(--accent);
}

.faq-icon {
    font-size: 1.25rem;
    color: var(--text-muted);
    transition: var(--transition);
}

.faq-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
    padding: 0 30px;
}

.faq-content p {
    padding-bottom: 24px;
    color: var(--text-muted);
    font-size: 0.95rem;
}

.faq-item.active {
    border-color: var(--accent);
    box-shadow: var(--shadow-md);
}

.faq-item.active .faq-icon {
    transform: rotate(45deg);
    color: var(--accent);
}

.faq-item.active .faq-content {
    max-height: 300px;
}

/* Contact Info & Forms */
.contact-layout {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 60px;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.contact-card {
    background-color: var(--bg-white);
    border-radius: var(--radius-md);
    padding: 30px;
    border: 1px solid var(--border);
    display: flex;
    gap: 20px;
}

.contact-card-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-sm);
    background-color: var(--accent-light);
    color: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    flex-shrink: 0;
}

.contact-card-title {
    font-size: 1.1rem;
    margin-bottom: 8px;
}

.contact-card-detail {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* Forms styling */
.form-container {
    background-color: var(--bg-white);
    border-radius: var(--radius-md);
    padding: 40px;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-md);
}

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

.form-label {
    display: block;
    font-weight: 500;
    margin-bottom: 8px;
    font-size: 0.9rem;
    color: var(--primary);
}

.form-control {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-family: var(--font-body);
    font-size: 0.95rem;
    transition: var(--transition);
    color: var(--text-dark);
}

.form-control:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1);
}

textarea.form-control {
    min-height: 120px;
    resize: vertical;
}

/* File Upload custom style */
.file-upload-wrapper {
    position: relative;
    border: 2px dashed var(--border);
    border-radius: var(--radius-sm);
    padding: 30px;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    background-color: var(--bg-light);
}

.file-upload-wrapper:hover {
    border-color: var(--accent);
    background-color: var(--bg-white);
}

.file-upload-input {
    position: absolute;
    inset: 0;
    opacity: 0;
    cursor: pointer;
}

.file-upload-icon {
    font-size: 2rem;
    color: var(--text-muted);
    margin-bottom: 12px;
}

.file-upload-text {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.file-upload-text span {
    color: var(--accent);
    font-weight: 600;
}

/* Jobs Page CSS */
.jobs-filter-bar {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 48px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 10px 20px;
    border-radius: var(--radius-sm);
    background-color: var(--bg-white);
    border: 1px solid var(--border);
    font-family: var(--font-heading);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    font-size: 0.9rem;
}

.filter-btn:hover, .filter-btn.active {
    background-color: var(--accent);
    color: var(--bg-white);
    border-color: var(--accent);
}

.jobs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 30px;
}

.job-card {
    background-color: var(--bg-white);
    border-radius: var(--radius-md);
    padding: 35px;
    border: 1px solid var(--border);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.job-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--accent);
}

.job-meta {
    display: flex;
    gap: 12px;
    margin-bottom: 18px;
}

.job-badge {
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.job-badge-category {
    background-color: var(--accent-light);
    color: var(--accent);
}

.job-badge-type {
    background-color: #f0fdf4;
    color: #166534;
}

.job-title {
    font-size: 1.4rem;
    margin-bottom: 12px;
}

.job-desc {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 24px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.job-details-list {
    margin-bottom: 30px;
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.job-detail-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.job-action {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Alert Boxes */
.alert {
    padding: 16px 20px;
    border-radius: var(--radius-sm);
    margin-bottom: 24px;
    font-size: 0.95rem;
}

.alert-success {
    background-color: #d1fae5;
    color: #065f46;
    border: 1px solid #a7f3d0;
}

.alert-error {
    background-color: #fee2e2;
    color: #991b1b;
    border: 1px solid #fca5a5;
}

/* Footer styling */
footer {
    background-color: var(--primary);
    color: #94a3b8;
    padding: 80px 0 30px;
    border-top: 1px solid rgba(255,255,255,0.05);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr 1fr;
    gap: 60px;
    margin-bottom: 60px;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.footer-logo-img {
    height: 48px;
    width: auto;
    filter: brightness(0) invert(1);
    align-self: flex-start;
}

.footer-desc {
    font-size: 0.95rem;
    line-height: 1.6;
}

.footer-title {
    color: var(--bg-white);
    font-size: 1.1rem;
    margin-bottom: 24px;
    font-family: var(--font-heading);
}

.footer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-link {
    font-size: 0.95rem;
}

.footer-link:hover {
    color: var(--bg-white);
    transform: translateX(5px);
}

.footer-contact {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.footer-contact-item {
    display: flex;
    gap: 12px;
    font-size: 0.95rem;
}

.footer-contact-icon {
    color: var(--accent);
    flex-shrink: 0;
}

.footer-bottom {
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    font-size: 0.85rem;
}

/* Subpage Hero */
.subpage-hero {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    color: var(--bg-white);
    padding: 80px 0;
    text-align: center;
}

.subpage-title {
    font-size: 2.75rem;
    color: var(--bg-white);
    margin-bottom: 12px;
}

.subpage-breadcrumbs {
    display: flex;
    justify-content: center;
    gap: 8px;
    font-size: 0.9rem;
    color: #94a3b8;
}

.breadcrumb-separator {
    color: #64748b;
}

.breadcrumb-active {
    color: var(--accent);
}

/* Call to Action Banner */
.cta-banner {
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-hover) 100%);
    border-radius: var(--radius-lg);
    padding: 60px 40px;
    color: var(--bg-white);
    text-align: center;
    box-shadow: var(--shadow-xl);
    position: relative;
    overflow: hidden;
}

.cta-banner::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 20% 80%, rgba(255, 255, 255, 0.1) 0%, transparent 60%);
}

.cta-title {
    color: var(--bg-white);
    font-size: 2.25rem;
    margin-bottom: 16px;
}

.cta-desc {
    max-width: 600px;
    margin: 0 auto 30px;
    color: rgba(255, 255, 255, 0.85);
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .hero-grid {
        grid-template-columns: 1fr;
        gap: 50px;
        text-align: center;
    }

    .hero-title {
        font-size: 3rem;
    }

    .hero-subtitle {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-buttons {
        justify-content: center;
    }

    .stats-grid {
        grid-template-columns: 1fr;
        max-width: 400px;
        margin: -40px auto 40px;
    }

    .features-grid {
        grid-template-columns: 1fr;
        gap: 50px;
    }

    .contact-layout {
        grid-template-columns: 1fr;
        gap: 50px;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
    }
}

@media (max-width: 768px) {
    .navbar {
        position: relative;
    }

    .nav-menu {
        position: fixed;
        left: -100%;
        top: 80px;
        flex-direction: column;
        background-color: var(--bg-white);
        width: 100%;
        height: calc(100vh - 80px);
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 15px rgba(0, 0, 0, 0.05);
        padding: 40px 20px;
        gap: 24px;
        align-items: center;
        z-index: 999;
    }

    .nav-menu.active {
        left: 0;
    }

    .hamburger {
        display: block;
    }

    .hamburger.active .bar:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .hamburger.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    .nav-btn-container {
        display: none; /* Hide desktop apply button */
    }

    .nav-menu .nav-btn-container-mobile {
        display: block;
        margin-top: 16px;
        width: 100%;
    }

    .nav-menu .nav-btn-container-mobile .btn {
        width: 100%;
    }

    .section {
        padding: 60px 0;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }
}

/* Custom class for mobile apply button in list */
.nav-btn-container-mobile {
    display: none;
}
