/* Public Styles for PITS VDB */

/* Font Face Declarations */
@font-face {
    font-family: 'Neue Haas Grotesk';
    src: url('../images/fonts/NeueHaasDisplayRoman.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
}

@font-face {
    font-family: 'Neue Haas Grotesk';
    src: url('../images/fonts/NeueHaasDisplayRomanItalic.ttf') format('truetype');
    font-weight: 400;
    font-style: italic;
}

@font-face {
    font-family: 'Neue Haas Grotesk';
    src: url('../images/fonts/NeueHaasDisplayLight.ttf') format('truetype');
    font-weight: 300;
    font-style: normal;
}

@font-face {
    font-family: 'Neue Haas Grotesk';
    src: url('../images/fonts/NeueHaasDisplayLightItalic.ttf') format('truetype');
    font-weight: 300;
    font-style: italic;
}

@font-face {
    font-family: 'Neue Haas Grotesk';
    src: url('../images/fonts/NeueHaasDisplayMediu.ttf') format('truetype');
    font-weight: 500;
    font-style: normal;
}

@font-face {
    font-family: 'Neue Haas Grotesk';
    src: url('../images/fonts/NeueHaasDisplayMediumItalic.ttf') format('truetype');
    font-weight: 500;
    font-style: italic;
}

@font-face {
    font-family: 'Neue Haas Grotesk';
    src: url('../images/fonts/NeueHaasDisplayBold.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
}

@font-face {
    font-family: 'Neue Haas Grotesk';
    src: url('../images/fonts/NeueHaasDisplayBoldItalic.ttf') format('truetype');
    font-weight: 700;
    font-style: italic;
}

@font-face {
    font-family: 'Neue Haas Grotesk';
    src: url('../images/fonts/NeueHaasDisplayBlack.ttf') format('truetype');
    font-weight: 900;
    font-style: normal;
}

@font-face {
    font-family: 'Neue Haas Grotesk';
    src: url('../images/fonts/NeueHaasDisplayBlackItalic.ttf') format('truetype');
    font-weight: 900;
    font-style: italic;
}

:root {
    --primary-black: #141414;
    --background-greige: #F4F0EB;
    --white: #FFFFFF;
    --gray: #939597;
    --orange: #FF7800;
    --pink: #FF005A;
    --yellow: #FFBE22;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Neue Haas Grotesk', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: var(--background-greige);
    color: var(--primary-black);
    line-height: 1.6;
}

/* Layout */
.public-container {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.public-header {
    background: var(--background-greige);
    border-bottom: 1px solid #e0e0e0;
    padding: 0 20px;
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.logo a {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.logo-img {
    height: 36px;
    width: auto;
    max-width: 108px;
}

.public-nav {
    display: flex;
    gap: 20px;
}

.nav-link {
    color: var(--gray);
    text-decoration: none;
    font-weight: 500;
    padding: 8px 16px;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.nav-link:hover {
    color: var(--primary-black);
    background-color: var(--background-greige);
}

.visitor-info {
    color: var(--gray);
    font-size: 0.9rem;
    font-weight: 500;
    padding: 8px 12px;
    margin-right: 10px;
}

.logout-link {
    color: var(--orange) !important;
}

.logout-link:hover {
    color: var(--primary-black) !important;
    background-color: var(--background-greige);
}

.public-main {
    flex: 1;
    padding: 40px 20px;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

.public-footer {
    background: var(--primary-black);
    color: var(--white);
    padding: 20px;
    text-align: center;
    margin-top: auto;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
}

/* Flash Messages */
.flash-messages {
    margin-bottom: 20px;
}

.flash-message {
    padding: 15px 20px;
    border-radius: 8px;
    margin-bottom: 10px;
    font-size: 1rem;
    font-weight: 500;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.flash-success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.flash-error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.flash-info {
    background-color: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
}

/* Company Page Styles */
.company-hero {
    background: var(--white);
    border-radius: 16px;
    padding: 40px;
    margin-bottom: 40px;
    box-shadow: 0 4px 20px rgba(20, 20, 20, 0.08);
}

.company-header {
    display: flex;
    gap: 30px;
    align-items: flex-start;
    margin-bottom: 30px;
}

.company-image {
    flex-shrink: 0;
    width: 200px;
    height: 200px;
    overflow: hidden;
}

.company-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    /* object-fit: cover; */
}

.company-info {
    flex: 1;
}

.company-name {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-black);
    margin-bottom: 10px;
}

.company-title {
    font-size: 1.3rem;
    font-weight: 500;
    color: var(--orange);
    margin-bottom: 20px;
}

.company-body-content {
    margin-bottom: 30px;
}

.company-body-content h2 {
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--primary-black);
    margin-bottom: 20px;
}

.company-body-content h3 {
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--primary-black);
    margin-bottom: 15px;
    margin-top: 25px;
}

.company-body-content p {
    font-size: 1.1rem;
    line-height: 1.7;
    color: var(--primary-black);
    margin-bottom: 15px;
}

.company-body-content ul, .company-body-content ol {
    font-size: 1.1rem;
    line-height: 1.7;
    color: var(--primary-black);
    margin-bottom: 15px;
    padding-left: 20px;
}

.company-body-content li {
    margin-bottom: 8px;
}

.company-body-content strong {
    font-weight: 600;
    color: var(--primary-black);
}

.company-body-content em {
    font-style: italic;
    color: var(--gray);
}

/* Contact Section */
.contact-section {
    margin-top: 30px;
    padding-top: 30px;
    border-top: 1px solid #e0e0e0;
    text-align: center;
}

.contact-section h2 {
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--primary-black);
    margin-bottom: 15px;
}

.contact-section p {
    font-size: 1.1rem;
    color: var(--gray);
    margin-bottom: 30px;
}

.btn-contact {
    display: inline-block;
    padding: 15px 30px;
    background-color: var(--orange);
    color: var(--white);
    text-decoration: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    transition: all 0.2s ease;
}

.btn-contact:hover {
    background-color: #e66a00;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 120, 0, 0.3);
}

/* Companies List Styles */
.companies-header {
    text-align: center;
    margin-bottom: 50px;
}

.companies-header h1 {
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary-black);
    margin-bottom: 15px;
}

.companies-header p {
    font-size: 1.2rem;
    color: var(--gray);
    max-width: 600px;
    margin: 0 auto;
}

.companies-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 50px;
}

.company-card {
    background: var(--white);
    border-radius: 10px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-decoration: none;
    color: inherit;
    height: auto;
}

.company-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(20, 20, 20, 0.15);
}

.company-card-content {
    padding: 20px;
}

.company-card-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}

.company-card-logo {
    flex-shrink: 0;
    width: 75px;
    height: 75px;
    border-radius: 50%;
    overflow: hidden;
    /* background: var(--background-greige); */
    display: flex;
    align-items: center;
    justify-content: center;
}

.company-card-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.company-card-info {
    flex: 1;
    min-width: 0;
}

.company-card-name {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--primary-black);
    margin-bottom: 4px;
    line-height: 1.3;
}

.company-card-title {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--orange);
    margin-bottom: 0;
}

.company-card-subtitle {
    font-size: 0.95rem;
    color: var(--gray);
    line-height: 1.5;
    margin-bottom: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}


/* Authentication Styles */
.auth-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: calc(100vh - 140px);
    padding: 40px 20px;
}

.auth-card {
    background: var(--background-greige);
    border-radius: 16px;
    padding: 40px;
    box-shadow: 0 8px 30px rgba(20, 20, 20, 0.12);
    width: 100%;
    max-width: 450px;
}

.auth-header {
    text-align: center;
    margin-bottom: 30px;
}

.auth-header h1 {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--primary-black);
    margin-bottom: 10px;
}

.auth-header p {
    font-size: 1.1rem;
    color: var(--gray);
}

.flash-messages {
    margin-bottom: 25px;
}

.flash-message {
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 10px;
    font-size: 0.95rem;
    font-weight: 500;
}

.flash-success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.flash-error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.auth-form {
    margin-bottom: 25px;
}

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

.form-group label {
    display: block;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--primary-black);
    margin-bottom: 6px;
}

.form-group input {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.2s ease;
    background: var(--white);
}

.form-group input:focus {
    outline: none;
    border-color: var(--orange);
}

.form-group input::placeholder {
    color: var(--gray);
}

.btn-primary {
    width: 100%;
    padding: 15px 20px;
    background-color: var(--orange);
    color: var(--white);
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-primary:hover {
    background-color: #e66a00;
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(255, 120, 0, 0.3);
}

.btn-primary:active {
    transform: translateY(0);
}

.auth-footer {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #e0e0e0;
}

.auth-footer p {
    font-size: 0.9rem;
    color: var(--gray);
    line-height: 1.5;
}

/* Checkbox Styling */
.checkbox-group {
    margin-bottom: 25px;
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
    width: auto;
    margin-top: 3px;
    cursor: pointer;
    flex-shrink: 0;
}

.checkbox-label span {
    font-size: 0.8rem;
    color: var(--primary-black);
    line-height: 1.5;
}

.checkbox-label a {
    color: var(--orange);
    text-decoration: none;
    font-weight: 500;
}

.checkbox-label a:hover {
    text-decoration: underline;
}

/* Footer Link */
.footer-link {
    color: var(--white);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s ease;
}

.footer-link:hover {
    color: var(--orange);
}

/* Privacy Policy Styling */
.privacy-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 40px 20px;
}

.privacy-content {
    background: var(--white);
    border-radius: 16px;
    padding: 50px;
    box-shadow: 0 8px 30px rgba(20, 20, 20, 0.12);
}

.privacy-content h1 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-black);
    margin-bottom: 40px;
    text-align: center;
}

.privacy-section {
    margin-bottom: 35px;
}

.privacy-section h2 {
    font-size: 1.6rem;
    font-weight: 600;
    color: var(--primary-black);
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--background-greige);
}

.privacy-section p {
    font-size: 1rem;
    line-height: 1.8;
    color: var(--primary-black);
    margin-bottom: 15px;
}

.privacy-section ul {
    margin-left: 20px;
    margin-bottom: 15px;
}

.privacy-section li {
    font-size: 1rem;
    line-height: 1.8;
    color: var(--primary-black);
    margin-bottom: 10px;
}

.privacy-footer {
    text-align: center;
    padding-top: 30px;
    margin-top: 40px;
    border-top: 2px solid var(--background-greige);
}

.privacy-footer p {
    font-size: 0.9rem;
    color: var(--gray);
}

/* Responsive styling for privacy page */
@media (max-width: 768px) {
    .privacy-content {
        padding: 30px 20px;
    }
    
    .privacy-content h1 {
        font-size: 2rem;
        margin-bottom: 30px;
    }
    
    .privacy-section h2 {
        font-size: 1.4rem;
    }
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 80px 20px;
    background: var(--white);
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(20, 20, 20, 0.08);
}

.empty-icon {
    font-size: 4rem;
    color: var(--gray);
    margin-bottom: 20px;
}

.empty-state h3 {
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--primary-black);
    margin-bottom: 15px;
}

.empty-state p {
    font-size: 1.1rem;
    color: var(--gray);
    max-width: 400px;
    margin: 0 auto;
}

/* Responsive Design */
@media (max-width: 768px) {
    .public-main {
        padding: 20px 15px;
    }
    
    .header-content {
        flex-direction: column;
        height: auto;
        padding: 15px 0;
        gap: 15px;
    }
    
    .company-hero {
        padding: 25px;
    }
    
    .company-header {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
    
    .company-image {
        width: 150px;
        height: 150px;
        margin: 0 auto;
    }
    
    .company-name {
        font-size: 1.5rem;
    }
    
    .company-body-content {
        margin-bottom: 20px;
    }
    
    .companies-header h1 {
        font-size: 2.2rem;
    }
    
    .companies-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .company-card-content {
        padding: 15px;
    }
    
    .company-card-header {
        gap: 12px;
        margin-bottom: 12px;
    }
    
    .company-card-logo {
        width: 45px;
        height: 45px;
    }
    
    .company-card-name {
        font-size: 1.2rem;
    }
    
    .company-card-title {
        font-size: 0.85rem;
    }
    
    .company-card-subtitle {
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .company-hero {
        padding: 20px;
    }
    
    .company-body-content {
        margin-bottom: 15px;
    }
    
    .company-name {
        font-size: 1.8rem;
    }
    
    .companies-header h1 {
        font-size: 1.8rem;
    }
    
    .company-card-content {
        padding: 12px;
    }
    
    .company-card-header {
        gap: 10px;
        margin-bottom: 10px;
    }
    
    .company-card-logo {
        width: 40px;
        height: 40px;
    }
    
    .company-card-name {
        font-size: 1.1rem;
    }
    
    .company-card-title {
        font-size: 0.8rem;
    }
    
    .company-card-subtitle {
        font-size: 0.85rem;
    }
}
