/*
Theme Name: Twenty Twenty-Five
Theme URI: https://wordpress.org/themes/twentytwentyfive/
Author: the WordPress team
Author URI: https://wordpress.org
Description: Twenty Twenty-Five emphasizes simplicity and adaptability. Custom PROLO design system and unified landing & legal templates.
Requires at least: 6.7
Tested up to: 7.0
Requires PHP: 7.2
Version: 1.5
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: twentytwentyfive
*/

/* ==========================================================================
   1. GLOBAL DESIGN TOKENS & CSS VARIABLES
   Strictly adhering to PROLO Handoff Color Palette & Design System:
   - Primary: #14B8A6 (Teal)
   - Primary Dark: #0D9488
   - Heading: #2D3748 (Charcoal)
   - Body: #374151
   - Secondary / Muted: #6B7280
   - Page Background: #F9FAFB
   ========================================================================== */

:root,
.prolo-site-wrapper,
#prolo-app-landing,
#prolo-legal-page {
    --primary: #14B8A6;
    --primary-dark: #0D9488;
    --primary-light: rgba(20, 184, 166, 0.08);
    --primary-glow: rgba(20, 184, 166, 0.2);

    --text-heading: #2D3748;
    --text-body: #374151;
    --text-muted: #6B7280;
    --secondary: #6B7280;

    --bg-page: #F9FAFB;
    --bg-white: #FFFFFF;
    --border-color: #E5E7EB;
    --border-focus: #14B8A6;

    --font-heading: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

    --header-height: 80px;
    --transition-speed: 0.3s;
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-full: 9999px;
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 20px 40px rgba(45, 55, 72, 0.08);
}

/* ==========================================================================
   2. BASE RESETS, TYPOGRAPHY & LAYOUT
   ========================================================================== */

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-page);
    color: var(--text-body);
    line-height: 1.6;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.prolo-site-wrapper {
    width: 100%;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    color: var(--text-heading);
    line-height: 1.25;
    font-weight: 700;
}

p {
    color: var(--text-body);
    font-size: 16px;
    line-height: 1.65;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all var(--transition-speed) ease;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    width: 100%;
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ==========================================================================
   3. GLOBAL HEADER & NAVIGATION (Sticky on Scroll)
   ========================================================================== */

.prolo_announcement-bar {

    text-align: center;
    font-size: 14px;
    padding: 10px;
    background-color: #fff;
    color: var(--primary);
    border-bottom: 1px solid rgba(20, 184, 166, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    position: fixed;
    top: 0;
    z-index: 9999;
    width: 100%;
    min-height: 40px;
    line-height: normal;
    font-weight: 500;
}

.main-header {
    position: fixed;
    top: 40px;
    left: 0;
    width: 100%;
    height: var(--header-height);
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border-color);
    z-index: 9999;
    display: flex;
    align-items: center;
    transition: all var(--transition-speed) ease;
}

body.admin-bar .main-header {
    top: 32px;
}

@media screen and (max-width: 782px) {
    body.admin-bar .main-header {
        top: 46px;
    }
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 24px;
}

.brand-wrapper {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo {
    font-family: var(--font-heading);
    font-size: 26px;
    font-weight: 800;
    color: var(--text-heading);
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    gap: 4px;
}

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

.nav-links {
    display: flex;
    align-items: center;
    list-style: none;
    gap: 28px;
    margin: 0;
    padding: 0;
}

.nav-link {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-body);
    position: relative;
    padding: 8px 0;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2.5px;
    background-color: var(--primary);
    border-radius: 2px;
    transition: width var(--transition-speed) ease;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.mobile-nav-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text-heading);
    font-size: 24px;
    cursor: pointer;
    padding: 8px;
}

/* ==========================================================================
   4. BUTTONS, BADGES & COMMON UI COMPONENTS
   ========================================================================== */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    font-family: var(--font-heading);
    font-size: 14px;
    font-weight: 700;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all var(--transition-speed) ease;
    border: 2px solid transparent;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    line-height: 1;
    white-space: nowrap;
}

.btn-primary {
    background-color: var(--primary);
    color: #FFFFFF !important;
    box-shadow: 0 4px 16px var(--primary-glow);
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(20, 184, 166, 0.35);
}

.btn-secondary {
    background-color: var(--bg-white);
    color: var(--text-heading);
    border-color: var(--border-color);
    box-shadow: var(--shadow-sm);
}

.btn-secondary:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: var(--primary-light);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-cta-light {
    background: #FFFFFF;
    color: var(--text-heading);
    padding: 16px 36px;
    font-size: 16px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.btn-cta-light:hover {
    background: #F3F4F6;
    color: var(--primary);
    transform: translateY(-3px);
}

.badge {
    display: inline-flex;
    align-items: center;
    padding: 6px 16px;
    background: var(--primary-light);
    color: var(--primary);
    border: 1px solid rgba(20, 184, 166, 0.3);
    border-radius: var(--radius-full);
    font-family: var(--font-heading);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 16px;
}

.section-header {
    text-align: center;
    max-width: 760px;
    margin: 0 auto 50px auto;
}

.section-subtitle {
    font-family: var(--font-heading);
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--primary);
    font-weight: 700;
    display: inline-block;
    margin-bottom: 10px;
}

.section-header h2 {
    font-size: 36px;
    font-weight: 800;
    margin-bottom: 16px;
}

.section-desc {
    font-size: 17px;
    color: var(--text-muted);
}

/* ==========================================================================
   5. CONTACT SECTION & FORM CONTROLS (WPCF7 Integration)
   ========================================================================== */

.contact-section,
.about-credentials-section {
    padding: 90px 0;
    background: var(--bg-page);
    border-bottom: 1px solid var(--border-color);
}

.contact-grid,
.about-credentials-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: start;
}

.about-company-card {
    background: #FFFFFF;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 40px;
    box-shadow: var(--shadow-md);
}

.about-company-card .section-subtitle {
    display: inline-block;
    color: var(--primary);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    margin-bottom: 10px;
}

.about-company-card h2 {
    font-size: 28px;
    font-weight: 800;
    color: var(--text-heading);
    margin-bottom: 12px;
}

.company-legal-name {
    font-size: 18px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 2px dashed var(--border-color);
}

.company-details-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.company-details-list li {
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

.company-details-list .detail-icon {
    width: 42px;
    height: 42px;
    background-color: var(--primary-light);
    color: var(--primary);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 18px;
}

.company-details-list .detail-content {
    display: flex;
    flex-direction: column;
}

.company-details-list .detail-label {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: var(--text-muted);
    margin-bottom: 4px;
}

.company-details-list .detail-value {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-heading);
    line-height: 1.5;
}

/* Clickable links styling */
.company-details-list a.detail-link {
    color: var(--text-heading);
    text-decoration: none;
    transition: color var(--transition-speed) ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.company-details-list a.detail-link:hover {
    color: var(--primary);
    text-decoration: underline;
}

.company-details-list a.detail-link i.external-icon {
    font-size: 11px;
    color: var(--primary);
    opacity: 0.8;
}

.cin-badge {
    display: inline-block;
    background: #F1F5F9;
    color: var(--text-heading);
    font-family: monospace;
    font-size: 14px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 6px;
    border: 1px solid #CBD5E1;
    letter-spacing: 0.5px;
}

.contact-info h2 {
    font-size: 34px;
    font-weight: 800;
    margin-bottom: 16px;
}

.contact-info p {
    color: var(--text-muted);
    margin-bottom: 32px;
    font-size: 16px;
}

.contact-details {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact-details li {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    font-size: 15px;
}

.contact-form-wrapper {
    background: #FFFFFF;
    border: 1px solid var(--border-color);
    padding: 40px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
}

.contact-form-wrapper form,
.wpcf7-form {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.contact-form-wrapper p,
.wpcf7 p {
    margin-bottom: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-family: var(--font-heading);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-muted);
}

.contact-form-wrapper label,
.wpcf7 label {
    font-family: var(--font-heading);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-muted);
    font-weight: 700;
}

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="url"],
input[type="search"],
textarea,
select,
.wpcf7-form-control:not(.wpcf7-submit) {
    width: 100%;
    background: #FFFFFF;
    border: 1.5px solid #D1D5DB;
    border-radius: var(--radius-sm);
    padding: 14px 18px;
    color: var(--text-heading);
    font-family: var(--font-body);
    font-size: 15px;
    outline: none;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
    transition: all 0.25s ease;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="tel"]:focus,
textarea:focus,
.wpcf7-form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(20, 184, 166, 0.18);
}

input[type="submit"],
button[type="submit"],
.wpcf7-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 28px;
    font-family: var(--font-heading);
    font-size: 15px;
    font-weight: 700;
    border-radius: var(--radius-sm);
    cursor: pointer;
    border: none;
    background-color: var(--primary);
    color: #FFFFFF !important;
    box-shadow: 0 4px 16px var(--primary-glow);
    width: 100%;
    transition: all 0.25s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 8px;
}

input[type="submit"]:hover,
button[type="submit"]:hover,
.wpcf7-submit:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(20, 184, 166, 0.35);
}

/* ==========================================================================
   6. LEGAL / INNER PAGES STYLING (Privacy Policy & Terms)
   ========================================================================== */

.legal-page-main {
    flex: 1;
}

.legal-hero-section {
    padding-top: calc(var(--header-height) + 36px);
    padding-bottom: 28px;
    background: linear-gradient(180deg, rgba(20, 184, 166, 0.05) 0%, rgba(249, 250, 251, 0.8) 100%);
    border-bottom: 1px solid rgba(229, 231, 235, 0.8);
    text-align: center;
}

.legal-hero-content {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.legal-page-title {
    font-family: var(--font-heading);
    font-size: 36px;
    font-weight: 800;
    color: var(--text-heading);
    letter-spacing: -0.5px;
    margin-bottom: 12px;
    line-height: 1.2;
}

.legal-hero-subtitle {
    font-size: 15.5px;
    color: var(--text-muted);
    line-height: 1.5;
    margin-bottom: 18px;
    max-width: 650px;
}

.legal-meta-bar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    background: #FFFFFF;
    padding: 8px 18px;
    border-radius: var(--radius-full);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    font-size: 13px;
    color: var(--text-muted);
    font-weight: 500;
}

.legal-meta-bar .meta-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.legal-meta-bar i {
    color: var(--primary);
}

.legal-meta-bar .meta-separator {
    color: var(--border-color);
}

.legal-page-section {
    padding: 30px 0 70px 0;
    background-color: var(--bg-page);
}

.legal-page-card {
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 40px 48px;
    box-shadow: 0 10px 30px rgba(45, 55, 72, 0.04);
    margin: 0 auto;
    max-width: 1000px;
}

.legal-page-content {
    color: var(--text-body);
    font-size: 15.5px;
    line-height: 1.75;
}

.legal-page-content>h1:first-child,
.legal-page-content>h2:first-child {
    display: none;
}

.legal-page-content h2,
.legal-page-content h3 {
    font-family: var(--font-heading);
    font-size: 20px;
    font-weight: 700;
    color: var(--text-heading);
    margin: 28px 0 12px 0;
}

.legal-page-content h4,
.legal-page-content h5 {
    font-family: var(--font-heading);
    font-size: 16px;
    font-weight: 700;
    color: var(--text-heading);
    margin: 20px 0 8px 0;
}

.legal-page-content p {
    font-size: 15.5px;
    color: var(--text-body);
    line-height: 1.75;
    margin-bottom: 14px;
}

.legal-page-content ul,
.legal-page-content ol {
    margin: 10px 0 18px 24px;
    padding: 0;
}

.legal-page-content li {
    font-size: 15.5px;
    color: var(--text-body);
    line-height: 1.7;
    margin-bottom: 6px;
}

.legal-page-content li strong,
.legal-page-content p strong {
    color: var(--text-heading);
    font-weight: 700;
}

.legal-page-content a {
    color: var(--primary);
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.legal-page-content a:hover {
    color: var(--primary-dark);
}

.legal-page-content blockquote {
    background: var(--primary-light);
    border-left: 4px solid var(--primary);
    padding: 16px 22px;
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
    margin: 24px 0;
    font-style: italic;
    color: var(--text-heading);
    font-size: 15px;
}

.legal-page-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 24px 0;
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 1px solid var(--border-color);
}

.legal-page-content th {
    background: #F8FAFC;
    color: var(--text-heading);
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 13.5px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 12px 16px;
    text-align: left;
    border-bottom: 2px solid var(--border-color);
}

.legal-page-content td {
    padding: 12px 16px;
    border-bottom: 1px solid var(--border-color);
    font-size: 14.5px;
    color: var(--text-body);
}

.legal-cta-box {
    margin-top: 36px;
    padding: 24px 28px;
    background: linear-gradient(135deg, rgba(20, 184, 166, 0.05) 0%, rgba(255, 255, 255, 1) 100%);
    border: 1px solid rgba(20, 184, 166, 0.25);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.legal-cta-icon {
    font-size: 28px;
    color: var(--primary);
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.legal-cta-text h3 {
    font-family: var(--font-heading);
    font-size: 16.5px;
    font-weight: 700;
    color: var(--text-heading);
    margin-bottom: 4px;
}

.legal-cta-text p {
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 0;
}

.legal-cta-btn {
    flex-shrink: 0;
    white-space: nowrap;
    padding: 10px 20px;
    font-size: 14px;
}

/* ==========================================================================
   7. GLOBAL FOOTER
   ========================================================================== */

.main-footer {
    padding: 36px 0;
    background: var(--text-heading);
    font-size: 14px;
    color: #E5E7EB;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: auto;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 24px;
}

.footer-col {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-col-right {
    text-align: right;
    align-items: flex-end;
}

.footer-brand {
    font-family: var(--font-heading);
    font-size: 17px;
    font-weight: 800;
    color: #FFFFFF;
}

.footer-brand span {
    color: var(--primary);
    font-weight: 600;
}

.footer-links {
    display: flex;
    align-items: center;
    gap: 14px;
    font-size: 13.5px;
}

.footer-links a {
    color: #E2E8F0;
    font-weight: 500;
}

.footer-links a:hover,
.footer-links a.active {
    color: var(--primary);
}

.footer-links .separator {
    color: #64748B;
}

.copy_right {
    color: #E2E8F0;
    font-size: 13.5px;
    margin-bottom: 0;
}

.devloped_by {
    color: #94A3B8;
    font-size: 12.5px;
    margin-bottom: 0;
}

/* ==========================================================================
   8. RESPONSIVE BREAKPOINTS & MOBILE DRAWER
   ========================================================================== */

.nav-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 9990;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.nav-backdrop.active {
    opacity: 1;
    pointer-events: auto;
}

@media (max-width: 991px) {
    .mobile-nav-toggle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        font-size: 24px;
        color: var(--text-heading);
        z-index: 10001;
        cursor: pointer;
        padding: 8px;
        background: transparent;
        border: none;
        position: relative;
    }

    .nav-links {
        position: fixed;
        top: 0;
        left: -320px;
        width: 290px;
        max-width: 85vw;
        height: 100vh;
        background: #FFFFFF;
        box-shadow: 10px 0 30px rgba(0, 0, 0, 0.25);
        flex-direction: column;
        align-items: flex-start;
        padding: 90px 24px 40px 24px;
        gap: 18px;
        transition: all 0.35s ease-in-out;
        z-index: 9998;
        overflow-y: auto;
        opacity: 0;
        visibility: hidden;
    }

    .nav-links.active {
        left: 0;
        opacity: 1;
        visibility: visible;
        display: flex;
    }

    .nav-link {
        width: 100%;
        font-size: 16px;
        padding: 10px 0;
        border-bottom: 1px solid var(--border-color);
    }

    .nav-links li {
        width: 100%;
    }

    .nav-links .btn {
        width: 100%;
        margin-top: 10px;
    }

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

    .footer-content {
        flex-direction: column;
        text-align: center;
        align-items: center;
        gap: 18px;
    }

    .footer-col-right {
        text-align: center;
        align-items: center;
    }

    .legal-hero-section {
        padding-top: calc(var(--header-height) + 24px);
        padding-bottom: 24px;
    }

    .legal-page-title {
        font-size: 28px;
    }

    .legal-page-card {
        padding: 28px 24px;
        border-radius: 16px;
    }

    .legal-cta-box {
        flex-direction: column;
        text-align: center;
        padding: 20px 18px;
    }

    .legal-cta-btn {
        width: 100%;
    }
}

@media (max-width: 576px) {
    .legal-page-card {
        padding: 20px 16px;
    }

    .legal-page-title {
        font-size: 22px;
    }

    .legal-page-content h2,
    .legal-page-content h3 {
        font-size: 18px;
    }

    .legal-meta-bar {
        flex-direction: column;
        gap: 4px;
        border-radius: 14px;
        padding: 10px 14px;
    }

    .legal-meta-bar .meta-separator {
        display: none;
    }
}

@media (max-width: 390px) {
    .prolo_announcement-bar {
        font-size: 12px;
    }

    .main-header {
        top: 40px;
    }
}