/**
 * CREHQ Companies - Enhanced Frontend Styles v2.0
 * Modern, responsive design with tabs and improved UI
 */

/* ========================================
   CSS Variables
   ======================================== */
:root {
    --crehq-primary: #667eea;
    --crehq-primary-dark: #5a67d8;
    --crehq-secondary: #764ba2;
    --crehq-success: #10b981;
    --crehq-danger: #ef4444;
    --crehq-warning: #f59e0b;
    --crehq-info: #3b82f6;
    --crehq-dark: #1a202c;
    --crehq-gray: #6b7280;
    --crehq-gray-light: #f3f4f6;
    --crehq-white: #ffffff;
    --crehq-border: #e5e7eb;
    --crehq-shadow: 0 4px 6px rgba(0, 0, 0, 0.07);
    --crehq-shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.15);
    --crehq-radius: 12px;
    --crehq-radius-sm: 8px;
    --crehq-transition: all 0.3s ease;
}

/* ========================================
   General Styles
   ======================================== */
.crehq-company-wrapper {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: var(--crehq-dark);
}

.crehq-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ========================================
   Hero Section
   ======================================== */
.crehq-hero-section {
    position: relative;
    background: linear-gradient(135deg, var(--crehq-primary) 0%, var(--crehq-secondary) 100%);
    padding: 80px 0 60px;
    margin-bottom: 0;
    overflow: hidden;
}

.crehq-hero-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    opacity: 0.1;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320"><path fill="%23ffffff" fill-opacity="0.3" d="M0,96L48,112C96,128,192,160,288,160C384,160,480,128,576,122.7C672,117,768,139,864,138.7C960,139,1056,117,1152,112C1248,107,1344,117,1392,122.7L1440,128L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z"></path></svg>');
    background-repeat: no-repeat;
    background-position: bottom;
    background-size: cover;
}

.crehq-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.1);
}

.crehq-hero-content {
    position: relative;
    z-index: 1;
}

.crehq-hero-main {
    display: flex;
    align-items: center;
    gap: 50px;
}

.crehq-company-logo-hero {
    flex-shrink: 0;
    width: 200px;
    height: 200px;
    background: var(--crehq-white);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--crehq-shadow-lg);
    animation: fadeInUp 0.6s ease;
}

.crehq-company-logo-hero img {
    max-width: 160px;
    max-height: 160px;
    object-fit: contain;
}

.crehq-hero-info {
    flex: 1;
    color: var(--crehq-white);
    animation: fadeInUp 0.6s ease 0.2s both;
}

.crehq-company-badges {
    display: flex;
    gap: 12px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.crehq-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
}

.crehq-badge-expansion {
    background: var(--crehq-success);
}

.crehq-badge-category {
    background: var(--crehq-info);
}

.crehq-company-title {
    font-size: 42px;
    font-weight: 700;
    margin: 0 0 20px;
    line-height: 1.2;
}

.crehq-hero-meta {
    display: flex;
    gap: 30px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.crehq-meta-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 16px;
    opacity: 0.95;
}

.crehq-meta-item i {
    font-size: 18px;
}

.crehq-hero-actions {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

/* ========================================
   Buttons
   ======================================== */
.crehq-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: var(--crehq-radius-sm);
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    transition: var(--crehq-transition);
    cursor: pointer;
    border: none;
    outline: none;
}

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

.crehq-btn-primary:hover {
    background: var(--crehq-primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--crehq-shadow);
}

.crehq-btn-secondary {
    background: var(--crehq-secondary);
    color: var(--crehq-white);
}

.crehq-btn-secondary:hover {
    background: #6a4292;
    transform: translateY(-2px);
}

.crehq-btn-success {
    background: var(--crehq-success);
    color: var(--crehq-white);
}

.crehq-btn-success:hover {
    background: #059669;
    transform: translateY(-2px);
}

.crehq-btn-outline {
    background: transparent;
    color: var(--crehq-white);
    border: 2px solid var(--crehq-white);
}

.crehq-btn-outline:hover {
    background: var(--crehq-white);
    color: var(--crehq-primary);
}

.crehq-btn-sm {
    padding: 8px 16px;
    font-size: 14px;
}

.crehq-btn-lg {
    padding: 16px 32px;
    font-size: 17px;
}

.crehq-btn-icon {
    background: var(--crehq-gray-light);
    border: none;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--crehq-transition);
}

.crehq-btn-icon:hover {
    background: var(--crehq-primary);
    color: var(--crehq-white);
}

/* ========================================
   Tabs Navigation
   ======================================== */
.crehq-tabs-section {
    background: var(--crehq-white);
    border-bottom: 1px solid var(--crehq-border);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.crehq-tabs-nav {
    display: flex;
    gap: 0;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.crehq-tab-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 18px 28px;
    background: transparent;
    border: none;
    border-bottom: 3px solid transparent;
    color: var(--crehq-gray);
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--crehq-transition);
    white-space: nowrap;
    position: relative;
}

.crehq-tab-btn:hover {
    color: var(--crehq-primary);
    background: var(--crehq-gray-light);
}

.crehq-tab-btn.active {
    color: var(--crehq-primary);
    border-bottom-color: var(--crehq-primary);
    background: rgba(102, 126, 234, 0.05);
}

.crehq-tab-count {
    background: var(--crehq-primary);
    color: var(--crehq-white);
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 700;
}

/* ========================================
   Tab Panels
   ======================================== */
.crehq-tabs-content {
    background: #f8f9fa;
    min-height: 500px;
}

.crehq-tab-panel {
    display: none;
    padding: 40px 0;
    animation: fadeIn 0.4s ease;
}

.crehq-tab-panel.active {
    display: block;
}

/* ========================================
   Grid Layouts
   ======================================== */
.crehq-grid-layout {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 30px;
    margin-bottom: 30px;
}

/* ========================================
   Cards
   ======================================== */
.crehq-card {
    background: var(--crehq-white);
    border-radius: var(--crehq-radius);
    overflow: hidden;
    box-shadow: var(--crehq-shadow);
    transition: var(--crehq-transition);
}

.crehq-card:hover {
    box-shadow: var(--crehq-shadow-lg);
}

.crehq-card-full {
    grid-column: 1 / -1;
}

.crehq-card-header {
    padding: 20px 25px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-bottom: 1px solid var(--crehq-border);
}

.crehq-card-header h3 {
    margin: 0;
    font-size: 18px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--crehq-dark);
}

.crehq-card-header h3 i {
    color: var(--crehq-primary);
}

.crehq-card-body {
    padding: 25px;
}

/* ========================================
   Detail Lists
   ======================================== */
.crehq-detail-list {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.crehq-detail-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--crehq-border);
}

.crehq-detail-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.crehq-detail-label {
    font-weight: 600;
    color: var(--crehq-gray);
    font-size: 14px;
}

.crehq-detail-value {
    color: var(--crehq-dark);
    font-size: 14px;
    text-align: right;
    max-width: 60%;
}

.crehq-detail-value a {
    color: var(--crehq-primary);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.crehq-detail-value a:hover {
    text-decoration: underline;
}

.crehq-status-indicator {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
}

.crehq-status-active {
    background: rgba(16, 185, 129, 0.1);
    color: var(--crehq-success);
}

/* ========================================
   Address & Maps
   ======================================== */
.crehq-address-block {
    margin-bottom: 20px;
}

.crehq-address-block p {
    margin: 0 0 15px;
    line-height: 1.8;
    color: var(--crehq-dark);
}

.crehq-map-actions {
    margin-top: 15px;
}

.crehq-address-map {
    height: 200px;
    border-radius: var(--crehq-radius-sm);
    overflow: hidden;
    background: var(--crehq-gray-light);
}

/* ========================================
   Contacts Section
   ======================================== */
.crehq-contacts-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.crehq-contacts-header h3 {
    margin: 0;
    font-size: 24px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.crehq-contacts-search {
    width: 300px;
}

.crehq-search-input {
    width: 100%;
    padding: 10px 15px;
    border: 2px solid var(--crehq-border);
    border-radius: var(--crehq-radius-sm);
    font-size: 14px;
    transition: var(--crehq-transition);
}

.crehq-search-input:focus {
    outline: none;
    border-color: var(--crehq-primary);
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.crehq-contact-group {
    margin-bottom: 40px;
}

.crehq-contact-group-title {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
    font-size: 18px;
    color: var(--crehq-dark);
}

.crehq-contact-count {
    background: var(--crehq-gray-light);
    color: var(--crehq-gray);
    padding: 2px 10px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
}

.crehq-contact-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 20px;
}

.crehq-contact-card {
    background: var(--crehq-white);
    border-radius: var(--crehq-radius);
    padding: 20px;
    box-shadow: var(--crehq-shadow);
    transition: var(--crehq-transition);
    display: flex;
    gap: 15px;
    position: relative;
}

.crehq-contact-card:hover {
    box-shadow: var(--crehq-shadow-lg);
    transform: translateY(-2px);
}

.crehq-contact-avatar {
    flex-shrink: 0;
    width: 60px;
    height: 60px;
    background: var(--crehq-gray-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    color: var(--crehq-primary);
}

.crehq-contact-details {
    flex: 1;
}

.crehq-contact-name {
    margin: 0 0 5px;
    font-size: 18px;
    font-weight: 700;
    color: var(--crehq-dark);
}

.crehq-contact-title {
    margin: 0 0 15px;
    font-size: 14px;
    color: var(--crehq-gray);
}

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

.crehq-contact-link {
    color: var(--crehq-gray);
    text-decoration: none;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: var(--crehq-transition);
}

.crehq-contact-link:hover {
    color: var(--crehq-primary);
}

.crehq-contact-address {
    font-size: 14px;
    color: var(--crehq-gray);
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

.crehq-contact-actions {
    position: absolute;
    top: 20px;
    right: 20px;
    display: flex;
    gap: 8px;
}

/* ========================================
   Requirements Section
   ======================================== */
.crehq-requirements-header {
    text-align: center;
    margin-bottom: 40px;
}

.crehq-requirements-header h3 {
    margin: 0 0 10px;
    font-size: 28px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.crehq-requirements-header p {
    color: var(--crehq-gray);
    font-size: 16px;
    margin: 0;
}

.crehq-requirements-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(500px, 1fr));
    gap: 30px;
}

.crehq-requirement-card {
    background: var(--crehq-white);
    border-radius: var(--crehq-radius);
    overflow: hidden;
    box-shadow: var(--crehq-shadow);
    transition: var(--crehq-transition);
}

.crehq-requirement-card:hover {
    box-shadow: var(--crehq-shadow-lg);
    transform: translateY(-4px);
}

.crehq-requirement-header {
    background: linear-gradient(135deg, var(--crehq-success) 0%, #059669 100%);
    color: var(--crehq-white);
    padding: 20px 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.crehq-requirement-header h4 {
    margin: 0;
    font-size: 20px;
}

.crehq-timeline-badge {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
}

.crehq-requirement-image {
    height: 250px;
    background: var(--crehq-gray-light);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.crehq-requirement-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.crehq-requirement-body {
    padding: 25px;
}

.crehq-specs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 20px;
    margin-bottom: 25px;
}

.crehq-spec-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.crehq-spec-item i {
    color: var(--crehq-primary);
    font-size: 18px;
    margin-top: 2px;
}

.crehq-spec-item div {
    flex: 1;
}

.crehq-spec-label {
    display: block;
    font-size: 11px;
    text-transform: uppercase;
    color: var(--crehq-gray);
    margin-bottom: 4px;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.crehq-spec-value {
    display: block;
    font-size: 15px;
    color: var(--crehq-dark);
    font-weight: 600;
}

.crehq-requirement-section {
    background: var(--crehq-gray-light);
    padding: 15px;
    border-radius: var(--crehq-radius-sm);
    margin-bottom: 15px;
}

.crehq-requirement-section h5 {
    margin: 0 0 10px;
    font-size: 14px;
    color: var(--crehq-dark);
    display: flex;
    align-items: center;
    gap: 8px;
}

.crehq-requirement-section p {
    margin: 0;
    font-size: 14px;
    color: var(--crehq-gray);
    line-height: 1.6;
}

.crehq-requirement-actions {
    display: flex;
    gap: 10px;
    padding-top: 20px;
    border-top: 1px solid var(--crehq-border);
}

/* ========================================
   Locations Section
   ======================================== */
.crehq-locations-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.crehq-locations-header h3 {
    margin: 0;
    font-size: 24px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.crehq-location-stats {
    display: flex;
    gap: 20px;
}

.crehq-stat {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 16px;
    color: var(--crehq-gray);
}

.crehq-locations-content {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 30px;
    background: var(--crehq-white);
    border-radius: var(--crehq-radius);
    overflow: hidden;
    box-shadow: var(--crehq-shadow);
}

.crehq-locations-map-full {
    height: 600px;
    background: var(--crehq-gray-light);
}

.crehq-locations-sidebar {
    padding: 25px;
    background: #f8f9fa;
    height: 600px;
    overflow-y: auto;
}

.crehq-locations-filters {
    margin-bottom: 25px;
}

.crehq-locations-filters h4 {
    margin: 0 0 15px;
    font-size: 16px;
}

.crehq-filter-group {
    margin-top: 15px;
}

.crehq-filter-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    font-weight: 600;
    color: var(--crehq-gray);
}

.crehq-select {
    width: 100%;
    padding: 10px 15px;
    border: 2px solid var(--crehq-border);
    border-radius: var(--crehq-radius-sm);
    font-size: 14px;
    background: var(--crehq-white);
    transition: var(--crehq-transition);
}

.crehq-select:focus {
    outline: none;
    border-color: var(--crehq-primary);
}

.crehq-locations-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.crehq-loading {
    text-align: center;
    color: var(--crehq-gray);
    padding: 20px;
}

.crehq-loading i {
    margin-right: 8px;
}

/* ========================================
   Social Media Section
   ======================================== */
.crehq-social-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

.crehq-social-links {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
}

.crehq-social-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 15px 20px;
    border-radius: var(--crehq-radius-sm);
    text-decoration: none;
    color: var(--crehq-white);
    font-weight: 600;
    transition: var(--crehq-transition);
}

.crehq-social-facebook {
    background: #1877f2;
}

.crehq-social-facebook:hover {
    background: #0c63d4;
    transform: translateY(-2px);
}

.crehq-social-linkedin {
    background: #0077b5;
}

.crehq-social-linkedin:hover {
    background: #006097;
    transform: translateY(-2px);
}

.crehq-social-twitter {
    background: #1da1f2;
}

.crehq-social-twitter:hover {
    background: #0c85d0;
    transform: translateY(-2px);
}

.crehq-social-instagram {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
}

.crehq-social-instagram:hover {
    transform: translateY(-2px);
}

.crehq-tags-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.crehq-tag-item {
    display: inline-block;
    padding: 8px 16px;
    background: var(--crehq-gray-light);
    color: var(--crehq-gray);
    border-radius: 20px;
    text-decoration: none;
    font-size: 14px;
    transition: var(--crehq-transition);
}

.crehq-tag-item:hover {
    background: var(--crehq-primary);
    color: var(--crehq-white);
    transform: translateY(-2px);
}

.crehq-quick-links {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.crehq-quick-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    background: var(--crehq-gray-light);
    color: var(--crehq-dark);
    text-decoration: none;
    border-radius: var(--crehq-radius-sm);
    transition: var(--crehq-transition);
}

.crehq-quick-link:hover {
    background: var(--crehq-primary);
    color: var(--crehq-white);
    transform: translateX(5px);
}

/* ========================================
   No Content State
   ======================================== */
.crehq-no-content {
    text-align: center;
    padding: 60px 20px;
    color: var(--crehq-gray);
}

.crehq-no-content i {
    font-size: 48px;
    margin-bottom: 20px;
    opacity: 0.5;
}

.crehq-no-content h4 {
    margin: 0 0 10px;
    font-size: 20px;
    color: var(--crehq-dark);
}

.crehq-no-content p {
    margin: 0;
    font-size: 16px;
}

.crehq-no-data {
    color: var(--crehq-gray);
    font-style: italic;
    text-align: center;
    padding: 20px;
}

/* ========================================
   Member Only Section
   ======================================== */
.crehq-member-only-wrapper {
    min-height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.crehq-member-only-card {
    background: var(--crehq-white);
    border-radius: 20px;
    padding: 60px;
    max-width: 700px;
    width: 100%;
    text-align: center;
    box-shadow: var(--crehq-shadow-lg);
}

.crehq-member-only-icon {
    font-size: 72px;
    color: var(--crehq-primary);
    margin-bottom: 30px;
}

.crehq-member-only-card h2 {
    margin: 0 0 15px;
    font-size: 32px;
    color: var(--crehq-dark);
}

.crehq-member-only-card > p {
    font-size: 18px;
    color: var(--crehq-gray);
    margin-bottom: 40px;
}

.crehq-member-benefits {
    background: var(--crehq-gray-light);
    padding: 30px;
    border-radius: var(--crehq-radius);
    margin-bottom: 40px;
    text-align: left;
}

.crehq-member-benefits h4 {
    margin: 0 0 20px;
    font-size: 18px;
    color: var(--crehq-dark);
}

.crehq-member-benefits ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
}

.crehq-member-benefits li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 15px;
    color: var(--crehq-gray);
}

.crehq-member-benefits li i {
    color: var(--crehq-success);
    margin-top: 2px;
}

.crehq-member-actions {
    display: flex;
    gap: 20px;
    justify-content: center;
}

.crehq-member-note {
    margin-top: 30px;
    font-size: 14px;
    color: var(--crehq-gray);
}

.crehq-member-note a {
    color: var(--crehq-primary);
    text-decoration: none;
}

.crehq-member-note a:hover {
    text-decoration: underline;
}

/* ========================================
   Content Area
   ======================================== */
.crehq-content-area {
    font-size: 16px;
    line-height: 1.8;
    color: var(--crehq-gray);
}

.crehq-content-area h1,
.crehq-content-area h2,
.crehq-content-area h3,
.crehq-content-area h4,
.crehq-content-area h5,
.crehq-content-area h6 {
    color: var(--crehq-dark);
    margin-top: 30px;
    margin-bottom: 15px;
}

.crehq-content-area p {
    margin-bottom: 20px;
}

.crehq-content-area ul,
.crehq-content-area ol {
    margin-bottom: 20px;
    padding-left: 30px;
}

.crehq-content-area li {
    margin-bottom: 10px;
}

.crehq-content-area a {
    color: var(--crehq-primary);
    text-decoration: none;
}

.crehq-content-area a:hover {
    text-decoration: underline;
}

/* ========================================
   Animations
   ======================================== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

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

.fa-spinner.fa-spin {
    animation: spin 1s linear infinite;
}

/* ========================================
   Print Styles
   ======================================== */
@media print {
    .crehq-hero-section,
    .crehq-tabs-section,
    .crehq-btn,
    .crehq-contact-actions,
    .crehq-requirement-actions,
    .crehq-member-only-wrapper {
        display: none !important;
    }
    
    .crehq-tab-panel {
        display: block !important;
    }
    
    .crehq-card {
        page-break-inside: avoid;
        box-shadow: none;
        border: 1px solid #ddd;
    }
}

/* ========================================
   Responsive Design
   ======================================== */
@media (max-width: 1200px) {
    .crehq-requirements-grid {
        grid-template-columns: 1fr;
    }
    
    .crehq-locations-content {
        grid-template-columns: 1fr;
    }
    
    .crehq-locations-sidebar {
        order: -1;
        height: auto;
    }
}

@media (max-width: 768px) {
    .crehq-hero-main {
        flex-direction: column;
        text-align: center;
        gap: 30px;
    }
    
    .crehq-company-title {
        font-size: 32px;
    }
    
    .crehq-hero-meta {
        justify-content: center;
    }
    
    .crehq-hero-actions {
        justify-content: center;
    }
    
    .crehq-tabs-nav {
        justify-content: flex-start;
    }
    
    .crehq-tab-btn {
        padding: 15px 20px;
        font-size: 14px;
    }
    
    .crehq-grid-layout {
        grid-template-columns: 1fr;
    }
    
    .crehq-contact-cards {
        grid-template-columns: 1fr;
    }
    
    .crehq-requirements-grid {
        grid-template-columns: 1fr;
    }
    
    .crehq-social-grid {
        grid-template-columns: 1fr;
    }
    
    .crehq-contacts-header {
        flex-direction: column;
        align-items: stretch;
        gap: 15px;
    }
    
    .crehq-contacts-search {
        width: 100%;
    }
    
    .crehq-member-only-card {
        padding: 40px 30px;
    }
    
    .crehq-member-actions {
        flex-direction: column;
    }
    
    .crehq-btn-lg {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .crehq-container {
        padding: 0 15px;
    }
    
    .crehq-hero-section {
        padding: 60px 0 40px;
    }
    
    .crehq-company-logo-hero {
        width: 150px;
        height: 150px;
    }
    
    .crehq-company-title {
        font-size: 28px;
    }
    
    .crehq-hero-meta {
        flex-direction: column;
        gap: 10px;
        align-items: center;
    }
    
    .crehq-tabs-content {
        padding: 20px 0;
    }
    
    .crehq-card-body {
        padding: 20px;
    }
    
    .crehq-specs-grid {
        grid-template-columns: 1fr;
    }
    
    .crehq-member-benefits ul {
        grid-template-columns: 1fr;
    }
}

/* ========================================
   Archive Page Styles
   ======================================== */
.crehq-archive-wrapper {
    background: #f8f9fa;
    min-height: 100vh;
}

.crehq-archive-hero {
    background: linear-gradient(135deg, var(--crehq-primary) 0%, var(--crehq-secondary) 100%);
    color: var(--crehq-white);
    padding: 80px 0 60px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.crehq-hero-pattern {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    opacity: 0.1;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 80 80"><rect width="80" height="80" fill="none"/><circle cx="40" cy="40" r="30" stroke="white" stroke-width="2" fill="none" opacity="0.3"/></svg>');
    background-size: 80px 80px;
}

.crehq-archive-title {
    font-size: 48px;
    margin: 0 0 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.crehq-archive-description {
    font-size: 20px;
    opacity: 0.95;
    max-width: 700px;
    margin: 0 auto;
}

.crehq-hero-stats {
    display: flex;
    gap: 40px;
    justify-content: center;
    margin-top: 40px;
    padding-top: 40px;
    border-top: 1px solid rgba(255,255,255,0.2);
}

.crehq-stat-item {
    text-align: center;
}

.crehq-stat-number {
    display: block;
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 5px;
}

.crehq-stat-label {
    font-size: 14px;
    opacity: 0.9;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Companies Grid for Archive */
.crehq-companies-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
    gap: 30px;
    padding: 40px 0;
}

.crehq-company-card {
    background: var(--crehq-white);
    border-radius: var(--crehq-radius);
    overflow: hidden;
    box-shadow: var(--crehq-shadow);
    transition: var(--crehq-transition);
}

.crehq-company-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--crehq-shadow-lg);
}

.crehq-company-logo {
    height: 200px;
    background: var(--crehq-gray-light);
    display: flex;
    align-items: center;
    justify-content: center;
}

.crehq-company-logo img {
    max-width: 160px;
    max-height: 160px;
    object-fit: contain;
}

.crehq-company-content {
    padding: 25px;
}

.crehq-company-name {
    font-size: 20px;
    font-weight: 700;
    color: var(--crehq-dark);
    margin: 0 0 12px;
}

.crehq-company-meta {
    display: flex;
    gap: 20px;
    margin-bottom: 15px;
    font-size: 14px;
    color: var(--crehq-gray);
}

.crehq-company-excerpt {
    font-size: 14px;
    color: var(--crehq-gray);
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 20px;
}

.crehq-company-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 20px;
    border-top: 1px solid var(--crehq-border);
}

/* ========================================
   Franchise Information Styles
   ======================================== */
.crehq-badge-franchise {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: var(--crehq-white);
}

.crehq-tab-new {
    background: var(--crehq-danger);
    color: var(--crehq-white);
    padding: 2px 6px;
    border-radius: 8px;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    margin-left: 5px;
}

.crehq-franchise-header {
    text-align: center;
    margin-bottom: 40px;
}

.crehq-franchise-header h3 {
    margin: 0 0 10px;
    font-size: 28px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.crehq-franchise-header p {
    color: var(--crehq-gray);
    font-size: 16px;
    margin: 0;
}

.crehq-franchise-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 30px;
    margin-bottom: 30px;
}

.crehq-franchise-options {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
}

.crehq-option-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px;
    background: var(--crehq-gray-light);
    border-radius: var(--crehq-radius-sm);
    font-size: 14px;
    color: var(--crehq-gray);
}

.crehq-option-item.crehq-option-yes {
    background: rgba(16, 185, 129, 0.08);
    color: var(--crehq-success);
    font-weight: 600;
}

.crehq-option-item i {
    font-size: 16px;
}

.crehq-franchise-section {
    margin-bottom: 30px;
}

.crehq-franchise-section h4 {
    margin: 0 0 15px;
    font-size: 16px;
    font-weight: 700;
    color: var(--crehq-dark);
    padding-bottom: 10px;
    border-bottom: 2px solid var(--crehq-primary);
    display: inline-block;
}

.crehq-franchise-section p {
    margin: 0;
    color: var(--crehq-gray);
    line-height: 1.8;
}

.crehq-detail-item.crehq-detail-full {
    flex-direction: column;
    align-items: flex-start;
}

.crehq-detail-item.crehq-detail-full .crehq-detail-value {
    max-width: 100%;
    text-align: left;
    margin-top: 10px;
}

.crehq-franchise-badge {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: var(--crehq-white);
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
}

.crehq-no-franchise {
    color: var(--crehq-gray);
    font-size: 14px;
}

/* ========================================
   Additional Notes & Expansion Status
   ======================================== */
.crehq-expansion-status-content {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.08), rgba(118, 75, 162, 0.08));
    padding: 20px;
    border-radius: var(--crehq-radius-sm);
    border-left: 4px solid var(--crehq-primary);
    font-size: 15px;
    line-height: 1.8;
    color: var(--crehq-dark);
}

/* ========================================
   Archive Page Filter Enhancements
   ======================================== */
.crehq-filter-section {
    background: var(--crehq-white);
    padding: 30px 0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 100;
}

.crehq-filter-wrapper {
    position: relative;
}

.crehq-filter-form {
    margin-bottom: 20px;
}

.crehq-filter-row {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    align-items: flex-end;
}

.crehq-filter-group {
    flex: 1;
    min-width: 200px;
}

.crehq-filter-search {
    flex: 2;
    min-width: 300px;
}

.crehq-filter-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 13px;
    font-weight: 600;
    color: var(--crehq-gray);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.crehq-filter-actions {
    display: flex;
    gap: 10px;
}

.crehq-advanced-filters {
    background: var(--crehq-gray-light);
    padding: 20px;
    border-radius: var(--crehq-radius);
    margin-top: 20px;
}

.crehq-advanced-toggle {
    background: transparent;
    border: 2px solid var(--crehq-border);
    color: var(--crehq-gray);
    padding: 10px 20px;
    border-radius: var(--crehq-radius-sm);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--crehq-transition);
    display: flex;
    align-items: center;
    gap: 8px;
}

.crehq-advanced-toggle:hover {
    border-color: var(--crehq-primary);
    color: var(--crehq-primary);
}

.crehq-advanced-toggle i:last-child {
    transition: transform 0.3s ease;
}

.crehq-advanced-toggle.active i:last-child {
    transform: rotate(180deg);
}

.crehq-range-inputs {
    display: flex;
    align-items: center;
    gap: 10px;
}

.crehq-input-small {
    width: 100px;
    padding: 8px 12px;
    border: 2px solid var(--crehq-border);
    border-radius: var(--crehq-radius-sm);
    font-size: 14px;
}

.crehq-input-small:focus {
    outline: none;
    border-color: var(--crehq-primary);
}

.crehq-view-modes {
    position: absolute;
    top: 10px;
    right: 0;
    display: flex;
    gap: 5px;
    background: var(--crehq-white);
    padding: 5px;
    border-radius: var(--crehq-radius-sm);
    box-shadow: var(--crehq-shadow);
}

.crehq-view-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: transparent;
    border: none;
    border-radius: var(--crehq-radius-sm);
    color: var(--crehq-gray);
    cursor: pointer;
    transition: var(--crehq-transition);
    text-decoration: none;
}

.crehq-view-btn:hover,
.crehq-view-btn.active {
    background: var(--crehq-primary);
    color: var(--crehq-white);
}

/* Table View Styles */
.crehq-companies-table {
    width: 100%;
    background: var(--crehq-white);
    border-radius: var(--crehq-radius);
    overflow: hidden;
    box-shadow: var(--crehq-shadow);
}

.crehq-companies-table thead {
    background: var(--crehq-gray-light);
}

.crehq-companies-table th {
    padding: 15px;
    text-align: left;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--crehq-gray);
    border-bottom: 2px solid var(--crehq-border);
}

.crehq-companies-table td {
    padding: 15px;
    border-bottom: 1px solid var(--crehq-border);
}

.crehq-companies-table tbody tr:hover {
    background: var(--crehq-gray-light);
}

.crehq-table-company {
    display: flex;
    align-items: center;
    gap: 12px;
}

.crehq-table-company img {
    width: 40px;
    height: 40px;
    object-fit: contain;
    border-radius: var(--crehq-radius-sm);
}

.crehq-table-name {
    color: var(--crehq-dark);
    font-weight: 600;
    text-decoration: none;
}

.crehq-table-name:hover {
    color: var(--crehq-primary);
}

.crehq-category-badge {
    display: inline-block;
    padding: 4px 10px;
    background: var(--crehq-gray-light);
    color: var(--crehq-gray);
    border-radius: 12px;
    font-size: 12px;
    text-decoration: none;
    margin-right: 5px;
}

.crehq-category-badge:hover {
    background: var(--crehq-primary);
    color: var(--crehq-white);
}

.crehq-status-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
}

.crehq-status-actively_expanding {
    background: rgba(16, 185, 129, 0.1);
    color: var(--crehq-success);
}

.crehq-status-selective_growth {
    background: rgba(59, 130, 246, 0.1);
    color: var(--crehq-info);
}

.crehq-status-maintaining {
    background: rgba(245, 158, 11, 0.1);
    color: var(--crehq-warning);
}

.crehq-status-not_expanding {
    background: rgba(107, 114, 128, 0.1);
    color: var(--crehq-gray);
}

/* List View Styles */
.crehq-companies-list .crehq-company-card {
    display: flex;
    flex-direction: row;
}

.crehq-companies-list .crehq-company-logo {
    width: 200px;
    height: auto;
    min-height: 150px;
}

.crehq-companies-list .crehq-company-content {
    flex: 1;
}

/* Company Card Badges */
.crehq-company-card {
    position: relative;
}

.crehq-company-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    z-index: 10;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    color: var(--crehq-white);
    display: flex;
    align-items: center;
    gap: 5px;
}

.crehq-badge-expansion {
    background: var(--crehq-success);
}

.crehq-badge-premium {
    background: var(--crehq-secondary);
}

.crehq-company-category {
    margin-bottom: 10px;
}

.crehq-company-category a {
    display: inline-block;
    padding: 4px 10px;
    background: var(--crehq-gray-light);
    color: var(--crehq-gray);
    border-radius: 12px;
    font-size: 12px;
    text-decoration: none;
    margin-right: 5px;
}

.crehq-company-category a:hover {
    background: var(--crehq-primary);
    color: var(--crehq-white);
}

.crehq-company-name a {
    color: var(--crehq-dark);
    text-decoration: none;
}

.crehq-company-name a:hover {
    color: var(--crehq-primary);
}

.crehq-company-locked {
    text-align: center;
    padding: 20px;
    background: var(--crehq-gray-light);
    border-radius: var(--crehq-radius-sm);
    color: var(--crehq-gray);
    margin-bottom: 20px;
}

.crehq-company-locked i {
    font-size: 24px;
    margin-bottom: 10px;
    display: block;
}

.crehq-company-locked p {
    margin: 0;
    font-size: 14px;
}

.crehq-company-tags {
    display: flex;
    gap: 5px;
}

.crehq-tag {
    display: inline-block;
    padding: 3px 8px;
    background: var(--crehq-gray-light);
    color: var(--crehq-gray);
    border-radius: 10px;
    font-size: 11px;
}

.crehq-company-actions {
    display: flex;
    gap: 8px;
}

/* ========================================
   Modern Social Media Cards
   ======================================== */
.crehq-social-grid-modern {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
}

.crehq-social-card {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 20px;
    border-radius: var(--crehq-radius);
    text-decoration: none;
    transition: var(--crehq-transition);
    position: relative;
    overflow: hidden;
    color: var(--crehq-white);
}

.crehq-social-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0) 0%, rgba(255,255,255,0.1) 100%);
    opacity: 0;
    transition: var(--crehq-transition);
}

.crehq-social-card:hover::before {
    opacity: 1;
}

.crehq-social-card:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.crehq-social-icon {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.2);
    border-radius: 12px;
    font-size: 24px;
    flex-shrink: 0;
    position: relative;
    z-index: 1;
}

.crehq-social-info {
    flex: 1;
    position: relative;
    z-index: 1;
}

.crehq-social-name {
    display: block;
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 4px;
}

.crehq-social-action {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    opacity: 0.9;
    font-weight: 500;
}

.crehq-social-action i {
    font-size: 10px;
}

/* Platform-specific colors */
.crehq-social-facebook {
    background: linear-gradient(135deg, #1877f2 0%, #0c63d4 100%);
}

.crehq-social-instagram {
    background: linear-gradient(135deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
}

.crehq-social-twitter {
    background: linear-gradient(135deg, #000000 0%, #14171a 100%);
}

.crehq-social-linkedin {
    background: linear-gradient(135deg, #0077b5 0%, #006097 100%);
}

.crehq-social-youtube {
    background: linear-gradient(135deg, #ff0000 0%, #cc0000 100%);
}

.crehq-social-tiktok {
    background: linear-gradient(135deg, #000000 0%, #fe2c55 50%, #69c9d0 100%);
}

.crehq-social-pinterest {
    background: linear-gradient(135deg, #e60023 0%, #bd081c 100%);
}

.crehq-social-threads {
    background: linear-gradient(135deg, #000000 0%, #333333 100%);
}

.crehq-social-snapchat {
    background: linear-gradient(135deg, #fffc00 0%, #f5d100 100%);
    color: #000000 !important;
}

.crehq-social-snapchat .crehq-social-icon {
    background: rgba(0,0,0,0.1);
}

.crehq-social-whatsapp {
    background: linear-gradient(135deg, #25d366 0%, #128c7e 100%);
}

.crehq-social-telegram {
    background: linear-gradient(135deg, #0088cc 0%, #006699 100%);
}

.crehq-social-reddit {
    background: linear-gradient(135deg, #ff4500 0%, #cc3700 100%);
}

/* Responsive adjustments for new features */
@media (max-width: 768px) {
    .crehq-franchise-grid {
        grid-template-columns: 1fr;
    }
    
    .crehq-filter-row {
        flex-direction: column;
    }
    
    .crehq-filter-group,
    .crehq-filter-search {
        width: 100%;
        min-width: unset;
    }
    
    .crehq-view-modes {
        position: static;
        margin-top: 20px;
        justify-content: center;
    }
    
    .crehq-companies-table {
        font-size: 12px;
    }
    
    .crehq-companies-table th,
    .crehq-companies-table td {
        padding: 10px;
    }
    
    .crehq-companies-list .crehq-company-card {
        flex-direction: column;
    }
    
    .crehq-companies-list .crehq-company-logo {
        width: 100%;
    }
    
    .crehq-social-grid-modern {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 15px;
    }
    
    .crehq-social-card {
        padding: 15px;
    }
    
    .crehq-social-icon {
        width: 40px;
        height: 40px;
        font-size: 20px;
    }
    
    .crehq-social-name {
        font-size: 14px;
    }
    
    .crehq-social-action {
        font-size: 12px;
    }
}
