/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #e2603d;
    --bg-color: #121212;
    --text-primary: #ffffff;
    --text-secondary: #b0b0b0;
    --card-bg: #1a1a1a;
    --border-color: #2a2a2a;
}

html, body {
    height: 100%;
    overflow: hidden;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-primary);
    line-height: 1.5;
}

/* Background Canvas */
#background-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}

/* Single Screen Container */
.single-screen {
    height: 100vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

/* Navigation */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    border-bottom: 1px solid var(--border-color);
    flex-shrink: 0;
}

.logo {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary-color);
    letter-spacing: -0.5px;
    text-decoration: none;
    transition: opacity 0.2s ease;
}

.logo:hover {
    opacity: 0.8;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    transition: color 0.2s ease;
}

.nav-links a:hover {
    color: var(--primary-color);
}

/* Main Content */
.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 1.5rem 2rem;
    overflow-y: auto;
    min-height: 0;
    gap: 1.5rem;
    justify-content: space-between;
}

.main-content::-webkit-scrollbar {
    width: 6px;
}

.main-content::-webkit-scrollbar-track {
    background: var(--bg-color);
}

.main-content::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 3px;
}

.main-content::-webkit-scrollbar-thumb:hover {
    background: var(--primary-color);
}

/* Hero Section */
.hero-section {
    text-align: center;
    padding: 1rem 0 2rem;
}

.hero-title {
    font-size: 4rem;
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 1rem;
    letter-spacing: -1.5px;
}

.hero-title .accent {
    color: var(--primary-color);
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--text-secondary);
    max-width: 800px;
    margin: 0 auto 0.75rem;
    font-weight: 400;
}

.hero-subtitle-secondary {
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 800px;
    margin: 0 auto;
    font-weight: 400;
    font-style: italic;
    opacity: 0.8;
}

/* Capabilities Section */
.capabilities-section {
    padding: 1.5rem 0;
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
}

.capabilities-list {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    padding: 0;
}

.capabilities-list li {
    font-size: 0.95rem;
    color: var(--text-primary);
    line-height: 1.5;
    padding: 1.25rem 1.25rem 1.25rem 3rem;
    position: relative;
    font-weight: 400;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 1rem;
    background-color: var(--card-bg);
    border-radius: 12px;
    border: 1px solid var(--border-color);
}

.capabilities-list li:hover {
    color: var(--text-secondary);
    border-color: var(--primary-color);
    background-color: rgba(226, 96, 61, 0.05);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(226, 96, 61, 0.1);
}

.capability-icon {
    width: 20px;
    height: 20px;
    color: var(--primary-color);
    flex-shrink: 0;
    position: absolute;
    left: 1.25rem;
}

/* Responsive - Capabilities Section */
@media (max-width: 768px) {
    .capabilities-list {
        grid-template-columns: 1fr;
        gap: 1rem;
        padding: 0;
    }

    .capabilities-list li {
        font-size: 0.95rem;
        padding: 1rem 1rem 1rem 2.75rem;
    }

    .capability-icon {
        left: 1rem;
    }
}

/* Company Logos Section */
.company-logos-section {
    padding: 1rem 0 1rem;
    width: 100%;
    margin-top: auto;
}

.company-logos-wrapper {
    overflow: hidden;
    width: 100%;
    position: relative;
    mask-image: linear-gradient(to right, transparent 0%, black 10%, black 90%, transparent 100%);
    -webkit-mask-image: linear-gradient(to right, transparent 0%, black 10%, black 90%, transparent 100%);
}

.company-logos-wrapper::before,
.company-logos-wrapper::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 150px;
    z-index: 2;
    pointer-events: none;
}

.company-logos-wrapper::before {
    left: 0;
    background: linear-gradient(to right, var(--bg-color) 0%, transparent 100%);
}

.company-logos-wrapper::after {
    right: 0;
    background: linear-gradient(to left, var(--bg-color) 0%, transparent 100%);
}

.company-logos-scroll {
    display: flex;
    gap: 1rem;
    padding: 1rem 0;
    animation: scroll-horizontal 30s linear infinite;
    width: fit-content;
}

@keyframes scroll-horizontal {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

.company-logos-scroll:hover {
    animation-play-state: paused;
}

.company-logo-card {
    flex-shrink: 0;
    min-width: 180px;
    height: 110px;
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.25rem 1.5rem;
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--text-primary);
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    text-align: center;
    opacity: 1;
    transform: scale(1);
}

.company-logo-card .logo-svg {
    width: auto;
    height: 80%;
    max-width: 160px;
    max-height: 85px;
    object-fit: contain;
    opacity: 0.85;
    transition: all 0.3s ease;
    /* Convert to grayscale, then to single color (white) with contrast to preserve patterns */
    filter: grayscale(100%) brightness(0.5) invert(1) contrast(1.4);
}

/* LDC logo - make it bigger */
.company-logo-card .logo-svg[src*="LDC"] {
    height: 130%;
    max-width: 380px;
    max-height: 180px;
}

/* WTW logo - make it smaller */
.company-logo-card .logo-svg[src*="WTW"] {
    height: 60%;
    max-width: 140px;
    max-height: 80px;
}

/* LSEG logo - center it properly, use object-position to adjust for empty space */
.company-logo-card .logo-svg[src*="LSEG"] {
    height: 75%;
    max-width: 180px;
    max-height: 95px;
    margin: 0 auto;
    display: block;
    object-position: 45% center;
}

/* Wolters Kluwer - preserve tile pattern using same color with brightness variations */
.company-logo-card .logo-svg[src*="wolters-klower"] {
    /* Convert to grayscale to get brightness values, then apply white with high contrast to show tiles */
    filter: grayscale(100%) brightness(0) invert(1) contrast(2.8) brightness(1.1);
    opacity: 0.9;
}

.company-logo-card:hover .logo-svg {
    opacity: 1;
    filter: grayscale(100%) brightness(0.5) invert(1) contrast(1.5) drop-shadow(0 0 8px rgba(226, 96, 61, 0.3));
    transform: scale(1.05);
}

.company-logo-card:hover .logo-svg[src*="wolters-klower"] {
    filter: grayscale(100%) brightness(0) invert(1) contrast(3.2) brightness(1.2) drop-shadow(0 0 8px rgba(226, 96, 61, 0.3));
}

.company-logo-card:hover {
    border-color: var(--primary-color);
    background-color: rgba(226, 96, 61, 0.05);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(226, 96, 61, 0.1);
}

.disclaimer-compact {
    font-size: 0.7rem;
    color: var(--text-secondary);
    text-align: center;
    font-style: italic;
    margin-top: 1rem;
    line-height: 1.4;
}

/* Engagements Page */
.engagements-page {
    justify-content: center;
}

/* Enterprise Engagements Section */
.enterprise-engagements {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding-top: 1rem;
    max-width: 900px;
    margin: 0 auto;
}

.section-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
    text-align: center;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 2px;
}

.framing-text {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.6;
    text-align: center;
    margin-bottom: 1.5rem;
    font-weight: 400;
}

.company-list {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem 2rem;
    margin-bottom: 1.5rem;
    padding: 1.5rem;
    background-color: var(--card-bg);
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

.company-list li {
    font-size: 0.95rem;
    color: var(--text-primary);
    font-weight: 500;
    letter-spacing: 0.3px;
}

.disclaimer {
    font-size: 0.75rem;
    color: var(--text-secondary);
    text-align: center;
    font-style: italic;
    margin-bottom: 1.5rem;
    line-height: 1.5;
}

.achievements {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
}

.achievements li {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.5;
    padding: 0.75rem;
    background-color: var(--card-bg);
    border-radius: 6px;
    border: 1px solid var(--border-color);
    position: relative;
    padding-left: 1.5rem;
}

.achievements li::before {
    content: "•";
    color: var(--primary-color);
    font-weight: bold;
    position: absolute;
    left: 0.5rem;
}

/* Contact Page Styles */
.contact-page {
    justify-content: center;
}

.contact-section-full {
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 3rem;
}

.contact-form-wrapper {
    background-color: var(--card-bg);
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid var(--border-color);
}

.contact-form-full {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

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

.required {
    color: var(--primary-color);
    margin-left: 0.25rem;
}

.contact-form-full input,
.contact-form-full textarea {
    width: 100%;
    background-color: var(--bg-color);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 0.875rem;
    color: var(--text-primary);
    font-family: inherit;
    font-size: 0.95rem;
    transition: all 0.2s ease;
}

.contact-form-full input::placeholder,
.contact-form-full textarea::placeholder {
    color: var(--text-secondary);
}

.contact-form-full input:focus,
.contact-form-full textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(226, 96, 61, 0.1);
}

.contact-form-full input.error,
.contact-form-full textarea.error {
    border-color: #ff4444;
    box-shadow: 0 0 0 3px rgba(255, 68, 68, 0.1);
}

.error-message {
    display: block;
    color: #ff4444;
    font-size: 0.85rem;
    margin-top: 0.5rem;
    min-height: 1.2rem;
}

/* Progress Message */
.form-progress-message {
    display: flex;
    gap: 1.5rem;
    padding: 2rem;
    background-color: rgba(226, 96, 61, 0.1);
    border: 2px solid rgba(226, 96, 61, 0.3);
    border-radius: 12px;
    margin-bottom: 2rem;
    align-items: flex-start;
}

.progress-icon {
    width: 32px;
    height: 32px;
    color: var(--primary-color);
    flex-shrink: 0;
    margin-top: 0.25rem;
    animation: spin 2s linear infinite;
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

.form-progress-message h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
}

.form-progress-message p {
    font-size: 1rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 0;
}

/* Success Message */
.form-success-message {
    display: flex;
    gap: 1.5rem;
    padding: 2rem;
    background-color: rgba(34, 197, 94, 0.1);
    border: 2px solid rgba(34, 197, 94, 0.3);
    border-radius: 12px;
    margin-bottom: 2rem;
    align-items: flex-start;
    animation: fadeIn 0.5s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.success-icon {
    width: 32px;
    height: 32px;
    color: #22c55e;
    flex-shrink: 0;
    margin-top: 0.25rem;
}

.form-success-message h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
}

.form-success-message p {
    font-size: 1rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 0;
}

.btn {
    padding: 0.875rem 2rem;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
    transition: all 0.2s ease;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    text-align: center;
    width: 100%;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--text-primary);
}

.btn-primary:hover {
    background-color: #d4553a;
}

.contact-info-wrapper {
    background-color: var(--card-bg);
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid var(--border-color);
}

.contact-info-full {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    margin-top: 1.5rem;
    flex: 0 0 auto;
}

.info-item-full {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.info-icon {
    width: 24px;
    height: 24px;
    color: var(--primary-color);
    flex-shrink: 0;
}

.info-item-full h3 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.info-item-full p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

.map-container {
    margin-top: 2rem;
    width: 100%;
    height: 300px;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    background-color: #121212;
    display: block;
    position: relative;
}

.map-placeholder {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
}

.map-svg {
    width: 100%;
    height: 100%;
    display: block;
}

/* Footer */
.footer-compact {
    padding: 1rem 2rem;
    border-top: 1px solid var(--border-color);
    text-align: center;
    font-size: 0.8rem;
    color: var(--text-secondary);
    flex-shrink: 0;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .hero-title {
        font-size: 3.5rem;
    }

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

    .contact-wrapper {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

@media (max-width: 768px) {
    .navbar {
        padding: 1rem;
        flex-wrap: wrap;
    }

    .nav-links {
        gap: 1.5rem;
    }

    .nav-links a {
        font-size: 0.9rem;
    }

    .logo {
        font-size: 1.1rem;
    }

    .nav-links {
        gap: 1rem;
        font-size: 0.85rem;
    }

    .main-content {
        padding: 1.5rem;
        gap: 1.5rem;
    }

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

    .hero-subtitle {
        font-size: 1rem;
    }

    .hero-subtitle-secondary {
        font-size: 0.9rem;
    }

    .company-logos-section {
        padding: 1.5rem 0;
    }

    .company-logo-card {
        min-width: 180px;
        height: 110px;
        font-size: 1.5rem;
        padding: 1.25rem 1.5rem;
    }

    .company-logo-card .logo-svg[src*="LDC"] {
        height: 130%;
        max-width: 340px;
        max-height: 160px;
    }

    .company-logo-card .logo-svg[src*="WTW"] {
        height: 60%;
        max-width: 120px;
        max-height: 70px;
    }

    .disclaimer-compact {
        font-size: 0.65rem;
        margin-top: 0.75rem;
    }

    .section-title {
        font-size: 1rem;
        margin-bottom: 0.75rem;
    }

    .framing-text {
        font-size: 0.85rem;
        margin-bottom: 1.25rem;
    }

    .company-list {
        gap: 1rem 1.5rem;
        padding: 1.25rem;
    }

    .company-list li {
        font-size: 0.9rem;
    }

    .disclaimer {
        font-size: 0.7rem;
        margin-bottom: 1.25rem;
    }

    .achievements {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }

    .achievements li {
        font-size: 0.8rem;
        padding: 0.6rem;
        padding-left: 1.25rem;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .contact-form-wrapper,
    .contact-info-wrapper {
        padding: 1.5rem;
    }
}

@media (max-width: 480px) {
    .navbar {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        padding: 1rem;
        gap: 1rem;
    }

    .nav-links {
        gap: 1rem;
        flex-wrap: wrap;
    }

    .nav-links a {
        font-size: 0.85rem;
    }

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

    .hero-subtitle {
        font-size: 0.9rem;
    }

    .hero-subtitle-secondary {
        font-size: 0.8rem;
    }

    .company-logos-section {
        padding: 1rem 0;
    }

    .company-logo-card {
        min-width: 150px;
        height: 90px;
        font-size: 1.2rem;
        padding: 1rem 1.25rem;
    }

    .company-logo-card .logo-svg[src*="LDC"] {
        height: 130%;
        max-width: 300px;
        max-height: 140px;
    }

    .company-logo-card .logo-svg[src*="WTW"] {
        height: 60%;
        max-width: 100px;
        max-height: 60px;
    }

    .disclaimer-compact {
        font-size: 0.6rem;
        margin-top: 0.5rem;
    }

    .company-list {
        gap: 0.75rem 1rem;
        padding: 1rem;
    }

    .company-list li {
        font-size: 0.85rem;
    }

    .achievements li {
        font-size: 0.75rem;
        padding: 0.5rem;
        padding-left: 1rem;
    }
}
