/* ============================================
   FONT LOADING
   ============================================ */
@font-face {
    font-family: 'Expletus Sans';
    src: url('../images/Branding/Expletus_Sans/static/ExpletusSans-Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
}

@font-face {
    font-family: 'Expletus Sans';
    src: url('../images/Branding/Expletus_Sans/static/ExpletusSans-Medium.ttf') format('truetype');
    font-weight: 500;
    font-style: normal;
}

@font-face {
    font-family: 'Expletus Sans';
    src: url('../images/Branding/Expletus_Sans/static/ExpletusSans-SemiBold.ttf') format('truetype');
    font-weight: 600;
    font-style: normal;
}

@font-face {
    font-family: 'Expletus Sans';
    src: url('../images/Branding/Expletus_Sans/static/ExpletusSans-Bold.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
}

@font-face {
    font-family: 'Nunito Sans';
    src: url('../images/Branding/Nunito_Sans/NunitoSans-VariableFont_YTLC,opsz,wdth,wght.ttf') format('truetype');
    font-weight: 200 1000;
    font-style: normal;
}

/* ============================================
   BRANDING PAGE STYLES
   ============================================ */

.branding-page {
    padding: 40px 0 100px; /* top reduced: old fixed navbar is gone, new header is sticky */
    background: var(--bg-light);
    min-height: 100vh;
}

.branding-page .section-header h1 {
    font-size: 3rem;
    margin-top: 20px;
}

.branding-page .section-header p {
    color: var(--text-light);
    font-size: 1.1rem;
}

/* ============================================
   BRANDING TABS
   ============================================ */

.branding-tabs {
    max-width: 1400px;
    margin: 0 auto;
}

.branding-tab-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.branding-tab-button {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 25px 40px;
    background: var(--white);
    border: 3px solid transparent;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-dark);
    box-shadow: var(--shadow);
}

.branding-tab-button i {
    font-size: 2rem;
    color: var(--secondary-color);
}

.branding-tab-button:hover {
    border-color: var(--secondary-color);
    transform: translateY(-3px);
    box-shadow: var(--shadow-hover);
}

.branding-tab-button.active {
    background: var(--secondary-color);
    color: var(--white);
    border-color: var(--secondary-color);
}

.branding-tab-button.active i {
    color: var(--white);
}

.branding-tab-content {
    background: var(--white);
    padding: 50px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    min-height: 600px;
}

.branding-tab-panel {
    display: none;
    animation: fadeIn 0.5s ease;
}

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

/* ============================================
   LOGO USAGE TAB
   ============================================ */

.pdf-download-section {
    text-align: center;
    margin-bottom: 40px;
    padding: 30px;
    background: var(--bg-light);
    border-radius: var(--border-radius);
}

.pdf-download-section .btn {
    font-size: 1.1rem;
    padding: 15px 40px;
}

.logo-selector {
    margin-bottom: 50px;
}

.logo-selector h3 {
    font-size: 1.8rem;
    margin-bottom: 25px;
    color: var(--text-dark);
}

.logo-thumbnails {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    padding: 20px 10px;
    scroll-behavior: smooth;
}

.logo-thumb {
    min-width: 150px;
    padding: 20px;
    background: var(--bg-light);
    border: 3px solid transparent;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

.logo-thumb img {
    width: 100%;
    height: 100px;
    object-fit: contain;
    margin-bottom: 10px;
    border-radius: 0;
    box-shadow: none;
}

.logo-thumb p {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-dark);
    margin: 0;
}

.logo-thumb:hover {
    border-color: var(--secondary-color);
    transform: translateY(-5px);
    box-shadow: var(--shadow);
}

.logo-thumb.active {
    border-color: var(--secondary-color);
    background: var(--white);
    box-shadow: var(--shadow);
}

.logo-preview-section {
    margin-top: 40px;
}

.logo-preview-section h3 {
    font-size: 1.8rem;
    margin-bottom: 25px;
    color: var(--text-dark);
}

.logo-preview {
    background: var(--bg-light);
    padding: 60px;
    border-radius: var(--border-radius);
    text-align: center;
    margin-bottom: 30px;
    min-height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-preview img {
    max-width: 500px;
    max-height: 300px;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 0;
    box-shadow: none;
}

.logo-info {
    background: var(--bg-light);
    padding: 30px;
    border-radius: var(--border-radius);
}

.logo-info h4 {
    font-size: 1.5rem;
    margin-bottom: 20px;
    color: var(--text-dark);
}

.logo-downloads {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    margin-top: 20px;
}

.logo-downloads .btn {
    min-width: 120px;
}

/* ============================================
   SIGNATURES TAB
   ============================================ */

.signature-section h3 {
    font-size: 1.8rem;
    margin-bottom: 15px;
    color: var(--text-dark);
}

.instructions {
    color: var(--text-light);
    font-size: 1.1rem;
    margin-bottom: 30px;
}

.signature-form-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-top: 30px;
}

.signature-form {
    background: var(--bg-light);
    padding: 30px;
    border-radius: var(--border-radius);
}

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

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-dark);
}

.form-group input {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
    font-family: 'Nunito Sans', sans-serif;
}

.form-group input:focus {
    outline: none;
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

.signature-preview-container {
    background: var(--bg-light);
    padding: 30px;
    border-radius: var(--border-radius);
}

.signature-preview-container h4 {
    font-size: 1.3rem;
    margin-bottom: 20px;
    color: var(--text-dark);
}

.signature-preview {
    background: var(--white);
    padding: 30px;
    border-radius: var(--border-radius);
    margin-bottom: 20px;
    min-height: 200px;
    border: 2px dashed #ddd;
}

.signature-html {
    font-family: 'Nunito Sans', sans-serif;
    line-height: 1.6;
}

.signature-table {
    border-collapse: collapse;
    font-family: 'Nunito Sans', sans-serif;
}

.signature-table td {
    vertical-align: top;
    padding: 0;
}

.signature-logo-cell {
    padding-right: 15px;
}

.signature-logo-cell img {
    display: block;
    width: 100px;
    height: auto;
    border-radius: 0;
    box-shadow: none;
}

.signature-text {
    font-size: 14px;
    color: #2c3e50;
    line-height: 1.5;
}

.signature-name {
    font-weight: 700;
    font-size: 16px;
    color: #034904;
    margin-bottom: 2px;
}

.signature-title {
    font-weight: 600;
    color: #34904A;
    margin-bottom: 8px;
}

.signature-company {
    font-weight: 700;
    color: #034904;
    margin-bottom: 5px;
}

.signature-contact {
    margin: 2px 0;
}

.signature-contact a {
    color: #3498db;
    text-decoration: none;
}

.copy-signature-btn {
    width: 100%;
    font-size: 1.1rem;
    padding: 15px;
    position: relative;
}

.copy-feedback {
    display: none;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #27ae60;
    color: white;
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 600;
    animation: fadeInOut 2s ease;
    pointer-events: none;
}

.copy-feedback.show {
    display: block;
}

@keyframes fadeInOut {
    0% { opacity: 0; transform: translate(-50%, -50%) scale(0.8); }
    20% { opacity: 1; transform: translate(-50%, -50%) scale(1); }
    80% { opacity: 1; transform: translate(-50%, -50%) scale(1); }
    100% { opacity: 0; transform: translate(-50%, -50%) scale(0.8); }
}

/* ============================================
   FONTS TAB
   ============================================ */

.fonts-section h3 {
    font-size: 2rem;
    margin-bottom: 30px;
    color: var(--text-dark);
}

.font-showcase {
    background: var(--bg-light);
    padding: 40px;
    border-radius: var(--border-radius);
    margin-bottom: 40px;
}

.font-showcase h4 {
    font-size: 1.8rem;
    margin-bottom: 10px;
    color: var(--text-dark);
}

.font-usage {
    color: var(--text-light);
    font-style: italic;
    margin-bottom: 30px;
}

.font-preview {
    background: var(--white);
    padding: 30px;
    border-radius: var(--border-radius);
    margin-bottom: 30px;
}

.font-sample {
    margin-bottom: 30px;
}

.font-sample .alphabet {
    font-size: 1.5rem;
    margin-bottom: 10px;
    letter-spacing: 2px;
}

.font-sample .numbers {
    font-size: 1.5rem;
    letter-spacing: 2px;
}

.expletus-preview .font-sample {
    font-family: 'Expletus Sans', sans-serif;
}

.nunito-preview .font-sample {
    font-family: 'Nunito Sans', sans-serif;
}

.font-weights p {
    font-size: 1.2rem;
    margin-bottom: 15px;
    padding: 10px;
    background: var(--bg-light);
    border-radius: 8px;
}

.expletus-preview .weight-regular {
    font-family: 'Expletus Sans', sans-serif;
    font-weight: 400;
}

.expletus-preview .weight-medium {
    font-family: 'Expletus Sans', sans-serif;
    font-weight: 500;
}

.expletus-preview .weight-semibold {
    font-family: 'Expletus Sans', sans-serif;
    font-weight: 600;
}

.expletus-preview .weight-bold {
    font-family: 'Expletus Sans', sans-serif;
    font-weight: 700;
}

.nunito-preview .weight-regular {
    font-family: 'Nunito Sans', sans-serif;
    font-weight: 400;
}

.nunito-preview .weight-semibold {
    font-family: 'Nunito Sans', sans-serif;
    font-weight: 600;
}

.nunito-preview .weight-bold {
    font-family: 'Nunito Sans', sans-serif;
    font-weight: 700;
}

.font-downloads {
    margin-top: 25px;
}

.font-downloads h5 {
    font-size: 1.2rem;
    margin-bottom: 15px;
    color: var(--text-dark);
}

.font-downloads h5 i {
    color: var(--secondary-color);
    margin-right: 8px;
}

.download-links {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.download-links .btn {
    min-width: 100px;
}

/* Color Reference */
.color-reference {
    background: var(--bg-light);
    padding: 40px;
    border-radius: var(--border-radius);
    margin-top: 40px;
}

.color-reference h4 {
    font-size: 1.8rem;
    margin-bottom: 25px;
    color: var(--text-dark);
}

.color-swatches {
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
}

.color-swatch {
    width: 200px;
    height: 120px;
    border-radius: var(--border-radius);
    display: flex;
    align-items: flex-end;
    padding: 15px;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
}

.color-swatch:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.color-swatch span {
    background: rgba(255, 255, 255, 0.9);
    padding: 5px 15px;
    border-radius: 5px;
    font-weight: 700;
    font-family: monospace;
    font-size: 1rem;
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

@media (max-width: 1024px) {
    .signature-form-container {
        grid-template-columns: 1fr;
    }
    
    .logo-preview img {
        max-width: 400px;
    }
}

@media (max-width: 768px) {
    .branding-page {
        padding: 40px 0 60px;
    }
    
    .branding-page .section-header h1 {
        font-size: 2rem;
    }
    
    .branding-tab-content {
        padding: 30px 20px;
    }
    
    .branding-tab-buttons {
        flex-direction: column;
        gap: 15px;
    }
    
    .branding-tab-button {
        width: 100%;
        padding: 20px;
    }
    
    .logo-thumbnails {
        gap: 15px;
    }
    
    .logo-thumb {
        min-width: 120px;
    }
    
    .logo-preview {
        padding: 30px 20px;
    }
    
    .logo-preview img {
        max-width: 300px;
    }
    
    .color-swatches {
        flex-direction: column;
    }
    
    .color-swatch {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .branding-tab-content {
        padding: 20px 15px;
    }
    
    .logo-thumb {
        min-width: 100px;
    }
    
    .logo-thumb img {
        height: 80px;
    }
    
    .font-showcase {
        padding: 20px;
    }
    
    .font-sample .alphabet,
    .font-sample .numbers {
        font-size: 1.2rem;
    }
    
    .font-weights p {
        font-size: 1rem;
    }
}
