/** 
Use:        Custom organogram page styles
Scope:      All devices
Theme:      Genesis Sample
Author:     Bongani Khoza | Rokkit Digital Agency
Copyrights: © 2026 CMH Group
*/

:root {
    --cmh-red: #e32128;
    --cmh-red-dark: #c21b21;
    --cmh-black: #111;
    --cmh-border: #e24a4a;
    --cmh-bg: #f8fafc;
    --font-stack: Arial, Helvetica, sans-serif;
}

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

body {
    color: #111827;
    font-family: var(--font-stack);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    padding-bottom: 4rem;
}

::selection {
    background-color: #fee2e2;
    color: var(--cmh-red);
}

/* Layout Shell */
.container {
    max-width: 1152px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

@media (min-width: 768px) {
    .container {
        padding: 2rem 1.5rem;
    }
}

/* Dashed and Solid Connectors */
.connector-dashed-v {
    background-image: repeating-linear-gradient(to bottom, #d62828 0, #d62828 6px, transparent 6px, transparent 12px);
    width: 2px;
    margin: 0 auto;
}

.connector-dashed-h {
    background-image: repeating-linear-gradient(to right, #d62828 0, #d62828 6px, transparent 6px, transparent 12px);
    background-repeat: repeat-x;
    background-position: center;
    height: 2px;
    min-width: 3rem;
    margin: 0;
    align-self: center;
}

.connector-dark-v {
    background-image: repeating-linear-gradient(to bottom, #222222 0, #222222 5px, transparent 5px, transparent 10px);
    width: 2px;
    margin: 0 auto;
}

.connector-dark-h {
    background-image: repeating-linear-gradient(to right, #222222 0, #222222 5px, transparent 5px, transparent 10px);
    height: 2px;
    align-self: center;
}

/* Group Structure Overview */
.group-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    margin-bottom: 0.5rem;
}

.badge-circle {
    width: 10rem;
    height: 10rem;
    border-radius: 50%;
    background-color: #000;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    font-weight: 600;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

@media (min-width: 768px) {
    .badge-circle {
        width: 12rem;
        height: 12rem;
        font-size: 3rem;
    }
}

.logo-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 0 1rem;
}

@media (min-width: 768px) {
    .logo-text {
        font-size: 3rem;
    }
}

.logo-subtext {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    color: #374151;
    text-transform: uppercase;
    margin-top: 0.25rem;
}

@media (min-width: 768px) {
    .logo-subtext {
        font-size: 0.875rem;
    }
}

.logo-company-name {
    font-size: 2rem;
    font-weight: 700;
    color: #1f2937;
    margin-top: 2rem;
}

@media (min-width: 768px) {
    .logo-company-name {
        font-size: 2rem;
    }
}

/* Primary Holdings Branch */
.holdings-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    margin: 0.25rem 0;
}

.box-holdings-primary {
    background-color: var(--cmh-red);
    color: #fff;
    font-weight: 700;
    font-size: 1.125rem;
    padding: 0.75rem 2rem;
    border-radius: 2px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    text-align: center;
    min-width: 240px;
    z-index: 10;
}

@media (min-width: 768px) {
    .box-holdings-primary {
        font-size: 1.75rem;
    }
}

.connector-main-street {
    width: 2.5rem;
    display: none;
}

@media (min-width: 640px) {
    .box-holdings-secondary {
        display: block;
        font-size: 1rem;
    }

    .connector-main-street {
        display: block;
        width: 4rem;
    }
}

.mobile-sub-holder {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 0.5rem 0;
}

@media (min-width: 640px) {
    .mobile-sub-holder {
        display: none;
    }
}

/* Subsidiaries Grid */
.subsidiaries-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.5rem;
    width: 100%;
    margin: 0.5rem auto 0;
}

@media (min-width: 640px) {
    .subsidiaries-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (min-width: 768px) {
    .subsidiaries-grid {
        grid-template-columns: repeat(5, minmax(0, 1fr));
        gap: 0.625rem;
    }
}

.subsidiary-card {
    background-color: #000;
    color: #fff;
    padding: 0.25rem;
    border-radius: 4px;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 60px;
}

.subsidiary-name {
	font-size: 1.4rem;
    line-height: 1.25;
    margin-bottom: 0;
    font-weight: 600;
}

/* Titles & Headers */
.title-banner-red {
    background-color: var(--cmh-red);
    color: #fff;
    font-size: 2rem;
    font-weight: 700;
    padding: 2rem 2.5rem;
    border-radius: 4px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    text-align: center;
    width: 100%;
	max-width: 48rem;
    margin: 0 auto 2rem;
}

.title-banner-dark {
    background-color: #000;
    color: #fff;
    font-size: 2rem;
    font-weight: 700;
    padding: 2rem 2.5rem;
    border-radius: 4px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    text-align: center;
    width: 100%;
	max-width: 48rem;
    margin: 0 auto 2rem;
}

@media (min-width: 640px) {

    .title-banner-red,
    .title-banner-dark {
        font-size: 1.875rem;
        padding-left: 4rem;
        padding-right: 4rem;
    }
}

@media (min-width: 768px) {

    .title-banner-red,
    .title-banner-dark {
        font-size: 2.5rem;
    }
}

/* Organogram Cards */
.organogram-pair {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    width: 100%;
}

@media (min-width: 640px) {
    .organogram-pair {
        flex-direction: row;
        gap: 0;
    }
}

.person-card-director {
    border: 1px solid var(--cmh-border);
    border-radius: 2px;
    padding: 0.25rem 4rem;
    text-align: center;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.person-name {
    font-weight: 600;
    font-size: 1.75rem;
    color: #111827;
	margin-bottom: 0;
}

.person-title {
    font-size: 12px;
    color: #4b5563;
    margin-top: 0.125rem;
	margin-bottom: 0;
}

/* Executive Committee Row */
.exec-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.75rem;
    align-items: center;
    width: 100%;
    margin: 0.5rem auto 0;
}

.exec-grid > .connector-dashed-h {
    display: none;
}

@media (min-width: 640px) {
    .exec-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 1024px) {
    .exec-grid {
        display: flex;
        gap: 0;
    }

    .exec-grid > .person-card-exec {
        flex: 1 1 0;
        min-width: 0;
    }

    .exec-grid > .connector-dashed-h {
        display: block;
        flex: 0 0 3rem;
        width: 3rem;
    }
}

.person-card-exec {
    border: 1px solid var(--cmh-border);
    border-radius: 2px;
    padding: 0.25rem;
    text-align: center;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    justify-content: center;
	min-height: 6.5rem;
}

/* Motor Retail Committee Styles */
.leader-box-black {
    border: 1px solid #000;
    border-radius: 2px;
    padding: 0.5rem 0.5rem;
    text-align: center;
    width: 100%;
    max-width: 20rem;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.franchise-grid-3 {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    width: 100%;
    margin: 0 auto;
}

.franchise-linked-grid > .connector-dark-h {
    display: none;
}

@media (min-width: 768px) {
    .franchise-grid-3 {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 1.5rem;
    }

    .franchise-linked-grid {
        display: flex;
        gap: 0;
    }

    .franchise-linked-grid > .franchise-box,
    .franchise-linked-grid > .support-box {
        flex: 1 1 0;
        min-width: 0;
    }

    .franchise-linked-grid > .connector-dark-h {
        display: block;
        flex: 0 0 3rem;
    }
}

.franchise-box {
    border: 1px solid #000;
    border-radius: 2px;
    padding: 0.5rem 0.5rem;
    text-align: center;
    background-color: #fff;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.support-box {
    border: 1px solid #000;
    border-radius: 2px;
    padding: 0.75rem 1rem;
    text-align: center;
    background-color: #fff;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.role-subtitle {
    font-size: 0.75rem;
    font-weight: 500;
    color: #374151;
    margin-top: 0.25rem;
}

.franchise-label {
    font-size: 11px;
    color: #6b7280;
    margin-top: 0.125rem;
}

.franchise-brands {
    font-size: 11px;
    font-weight: 600;
    color: #374151;
    line-height: 1.4;
    margin-top: 0.125rem;
}

/* Utility Helpers */
.flex-col-center {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.h-4 {
    height: 2rem;
}

.h-6 {
    height: 3rem;
}

.h-8 {
    height: 4rem;
}

.w-12 {
    width: 3rem;
}
