/*
Theme Name: AfriNex BTP
Theme URI: https://afrinex.com
Author: AfriNex Dev Team
Author URI: https://afrinex.com
Description: Thème WordPress professionnel pour AfriNex, entreprise multisectorielle spécialisée dans le BTP, l'IT et le Voyage & Tourisme. Design moderne avec la charte graphique AfriNex.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: afrinex
Tags: construction, btp, one-column, two-columns, custom-menu, featured-images, theme-options
*/

/* ============================================
   CSS VARIABLES - CHARTE GRAPHIQUE AFRINEX
   ============================================ */
:root {
    --afrinex-green: #2ECC71;
    --afrinex-green-dark: #27AE60;
    --afrinex-blue: #1F77B4;
    --afrinex-blue-dark: #1565A0;
    --afrinex-red: #E74C3C;
    --afrinex-red-dark: #C0392B;
    --afrinex-orange: #F39C12;
    --afrinex-orange-dark: #E67E22;
    --afrinex-dark: #1A1A2E;
    --afrinex-gray-dark: #2D2D44;
    --afrinex-gray: #6C757D;
    --afrinex-gray-light: #F4F6F9;
    --afrinex-white: #FFFFFF;
    --afrinex-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    --afrinex-shadow-hover: 0 8px 30px rgba(0, 0, 0, 0.15);
    --afrinex-transition: all 0.3s ease;
    --afrinex-radius: 8px;
    --afrinex-radius-lg: 16px;
}

/* ============================================
   RESET & BASE
   ============================================ */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

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

body {
    font-family: 'Segoe UI', 'Roboto', 'Helvetica Neue', Arial, sans-serif;
    color: var(--afrinex-dark);
    line-height: 1.6;
    background-color: var(--afrinex-white);
    overflow-x: hidden;
}

a {
    color: var(--afrinex-blue);
    text-decoration: none;
    transition: var(--afrinex-transition);
}

a:hover {
    color: var(--afrinex-green);
}

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

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.3;
    color: var(--afrinex-dark);
}

h1 { font-size: 3rem; }
h2 { font-size: 2.25rem; }
h3 { font-size: 1.75rem; }
h4 { font-size: 1.25rem; }

p {
    margin-bottom: 1rem;
}

ul {
    list-style: none;
}

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

.section-padding {
    padding: 80px 0;
}

/* ============================================
   BUTTONS
   ============================================ */
.btn {
    display: inline-block;
    padding: 14px 32px;
    border-radius: var(--afrinex-radius);
    font-weight: 600;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: var(--afrinex-transition);
    cursor: pointer;
    border: none;
    text-align: center;
}

.btn-primary {
    background: linear-gradient(135deg, var(--afrinex-blue), var(--afrinex-blue-dark));
    color: var(--afrinex-white);
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--afrinex-green), var(--afrinex-green-dark));
    color: var(--afrinex-white);
    transform: translateY(-2px);
    box-shadow: var(--afrinex-shadow-hover);
}

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

.btn-outline:hover {
    background: var(--afrinex-white);
    color: var(--afrinex-blue);
    transform: translateY(-2px);
}

.btn-green {
    background: linear-gradient(135deg, var(--afrinex-green), var(--afrinex-green-dark));
    color: var(--afrinex-white);
}

.btn-green:hover {
    background: linear-gradient(135deg, var(--afrinex-blue), var(--afrinex-blue-dark));
    color: var(--afrinex-white);
    transform: translateY(-2px);
}

/* ============================================
   HEADER & NAVIGATION
   ============================================ */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: var(--afrinex-transition);
}

/* Header dark variant */
.site-header.header-dark {
    background: rgba(26, 26, 46, 0.95);
}
.site-header.header-dark .main-navigation a { color: rgba(255,255,255,0.85); }
.site-header.header-dark .main-navigation a:hover { color: var(--afrinex-green); background: rgba(255,255,255,0.05); }
.site-header.header-dark .site-logo .logo-text { color: var(--afrinex-white); }
.site-header.header-dark .menu-toggle span { background: var(--afrinex-white); }
.site-header.header-dark .header-actions .social-link { color: rgba(255,255,255,0.7); }
.site-header.header-dark .header-actions .social-link:hover { color: var(--afrinex-green); }

/* Header transparent variant */
.site-header.header-transparent {
    background: transparent;
    box-shadow: none;
}
.site-header.header-transparent .main-navigation a { color: rgba(255,255,255,0.85); }
.site-header.header-transparent .main-navigation a:hover { color: var(--afrinex-green); }
.site-header.header-transparent .site-logo .logo-text { color: var(--afrinex-white); }
.site-header.header-transparent .menu-toggle span { background: var(--afrinex-white); }
.site-header.header-transparent.scrolled {
    background: rgba(26, 26, 46, 0.95);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.site-header.scrolled {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    gap: 20px;
}

.header-inner.logo-left .site-logo {
    flex-shrink: 0;
}

.header-inner.logo-left .main-navigation {
    flex: 1;
    justify-content: flex-end;
}

.site-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.site-logo img {
    max-height: 50px;
    width: auto;
}

.site-logo .logo-text {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--afrinex-blue);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.main-navigation {
    display: flex;
    align-items: center;
}

.main-navigation ul {
    display: flex;
    gap: 5px;
}

.main-navigation a {
    padding: 10px 18px;
    color: var(--afrinex-dark);
    font-weight: 500;
    font-size: 0.95rem;
    border-radius: var(--afrinex-radius);
    transition: var(--afrinex-transition);
}

.main-navigation a:hover,
.main-navigation .current-menu-item a {
    color: var(--afrinex-blue);
    background: rgba(31, 119, 180, 0.08);
}

/* Header Actions (social + CTA) */
.header-actions {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-shrink: 0;
}

.header-social {
    display: flex;
    align-items: center;
    gap: 6px;
}

.header-social .social-link {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--afrinex-gray);
    transition: var(--afrinex-transition);
    background: var(--afrinex-gray-light);
}

.header-social .social-link:hover {
    color: var(--afrinex-white);
    transform: translateY(-2px);
}

.header-social .social-link.social-facebook:hover { background: #1877F2; }
.header-social .social-link.social-twitter-x:hover { background: #000000; }
.header-social .social-link.social-instagram:hover { background: #E4405F; }
.header-social .social-link.social-linkedin:hover { background: #0A66C2; }
.header-social .social-link.social-youtube:hover { background: #FF0000; }
.header-social .social-link.social-whatsapp:hover { background: #25D366; }
.header-social .social-link.social-tiktok:hover { background: #000000; }
.header-social .social-link.social-telegram:hover { background: #26A5E4; }

.nav-cta-btn {
    padding: 10px 24px;
    font-size: 0.9rem;
}

/* Mobile Menu Toggle */
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    background: none;
    border: none;
    padding: 10px;
}

.menu-toggle span {
    width: 28px;
    height: 3px;
    background: var(--afrinex-dark);
    border-radius: 3px;
    transition: var(--afrinex-transition);
}

.menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 6px);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -6px);
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, var(--afrinex-dark) 0%, var(--afrinex-gray-dark) 50%, var(--afrinex-blue) 100%);
    overflow: hidden;
    padding-top: 80px;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(46, 204, 113, 0.15) 0%, transparent 70%);
    border-radius: 50%;
}

.hero-section::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(243, 156, 18, 0.1) 0%, transparent 70%);
    border-radius: 50%;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 700px;
}

.hero-badge {
    display: inline-block;
    padding: 8px 20px;
    background: rgba(46, 204, 113, 0.15);
    border: 1px solid rgba(46, 204, 113, 0.3);
    border-radius: 30px;
    color: var(--afrinex-green);
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 25px;
}

.hero-title {
    font-size: 3.5rem;
    color: var(--afrinex-white);
    margin-bottom: 20px;
    line-height: 1.15;
}

.hero-title span {
    color: var(--afrinex-green);
}

.hero-description {
    font-size: 1.15rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 35px;
    max-width: 550px;
}

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

.hero-stats {
    position: relative;
    z-index: 2;
    display: flex;
    gap: 40px;
    margin-top: 60px;
}

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

.stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--afrinex-green);
    display: block;
}

.stat-label {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Geometric shapes decoration */
.hero-shapes {
    position: absolute;
    top: 0;
    right: 0;
    width: 50%;
    height: 100%;
    z-index: 1;
}

.hero-shape {
    position: absolute;
    opacity: 0.1;
}

.hero-shape-1 {
    top: 15%;
    right: 10%;
    width: 0;
    height: 0;
    border-left: 100px solid transparent;
    border-right: 100px solid transparent;
    border-bottom: 173px solid var(--afrinex-green);
}

.hero-shape-2 {
    top: 40%;
    right: 30%;
    width: 0;
    height: 0;
    border-left: 70px solid transparent;
    border-right: 70px solid transparent;
    border-bottom: 121px solid var(--afrinex-orange);
}

.hero-shape-3 {
    bottom: 20%;
    right: 5%;
    width: 0;
    height: 0;
    border-left: 80px solid transparent;
    border-right: 80px solid transparent;
    border-bottom: 139px solid var(--afrinex-red);
}

/* ============================================
   SECTION HEADERS
   ============================================ */
.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-subtitle {
    display: inline-block;
    padding: 6px 18px;
    background: rgba(31, 119, 180, 0.08);
    color: var(--afrinex-blue);
    border-radius: 30px;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 15px;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.section-title span {
    color: var(--afrinex-blue);
}

.section-description {
    max-width: 600px;
    margin: 0 auto;
    color: var(--afrinex-gray);
    font-size: 1.05rem;
}

/* ============================================
   ABOUT SECTION
   ============================================ */
.about-section {
    background: var(--afrinex-white);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-image {
    position: relative;
    border-radius: var(--afrinex-radius-lg);
    overflow: hidden;
    box-shadow: var(--afrinex-shadow);
}

.about-image img {
    width: 100%;
    height: 400px;
    object-fit: cover;
}

.about-image-badge {
    position: absolute;
    bottom: 20px;
    left: 20px;
    background: var(--afrinex-blue);
    color: var(--afrinex-white);
    padding: 15px 25px;
    border-radius: var(--afrinex-radius);
    font-weight: 700;
    font-size: 1.1rem;
}

.about-content h2 {
    margin-bottom: 20px;
}

.about-text {
    color: var(--afrinex-gray);
    margin-bottom: 30px;
    font-size: 1.05rem;
}

.about-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 30px;
}

.about-feature {
    display: flex;
    align-items: center;
    gap: 12px;
}

.about-feature-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.about-feature-icon.green { background: rgba(46, 204, 113, 0.1); color: var(--afrinex-green); }
.about-feature-icon.blue { background: rgba(31, 119, 180, 0.1); color: var(--afrinex-blue); }
.about-feature-icon.red { background: rgba(231, 76, 60, 0.1); color: var(--afrinex-red); }
.about-feature-icon.orange { background: rgba(243, 156, 18, 0.1); color: var(--afrinex-orange); }

/* ============================================
   SERVICES SECTION
   ============================================ */
.services-section {
    background: var(--afrinex-gray-light);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.service-card {
    background: var(--afrinex-white);
    border-radius: var(--afrinex-radius-lg);
    padding: 40px 30px;
    text-align: center;
    box-shadow: var(--afrinex-shadow);
    transition: var(--afrinex-transition);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    transition: var(--afrinex-transition);
}

.service-card:nth-child(1)::before { background: var(--afrinex-green); }
.service-card:nth-child(2)::before { background: var(--afrinex-blue); }
.service-card:nth-child(3)::before { background: var(--afrinex-orange); }

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--afrinex-shadow-hover);
}

.service-card:hover::before {
    height: 6px;
}

.service-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    font-size: 2rem;
}

.service-icon.green { background: rgba(46, 204, 113, 0.1); color: var(--afrinex-green); }
.service-icon.blue { background: rgba(31, 119, 180, 0.1); color: var(--afrinex-blue); }
.service-icon.orange { background: rgba(243, 156, 18, 0.1); color: var(--afrinex-orange); }

.service-card h3 {
    margin-bottom: 15px;
    font-size: 1.3rem;
}

.service-card p {
    color: var(--afrinex-gray);
    margin-bottom: 20px;
}

.service-list {
    text-align: left;
    margin-bottom: 25px;
}

.service-list li {
    padding: 8px 0;
    color: var(--afrinex-gray);
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.service-list li::before {
    content: '\2713';
    color: var(--afrinex-green);
    font-weight: 700;
}

/* ============================================
   BTP SERVICES DETAIL
   ============================================ */
.btp-section {
    background: var(--afrinex-white);
}

.btp-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
}

.btp-card {
    background: var(--afrinex-gray-light);
    border-radius: var(--afrinex-radius-lg);
    padding: 30px;
    transition: var(--afrinex-transition);
    border: 1px solid transparent;
}

.btp-card:hover {
    background: var(--afrinex-white);
    border-color: var(--afrinex-green);
    box-shadow: var(--afrinex-shadow-hover);
    transform: translateY(-4px);
}

.btp-card-icon {
    width: 60px;
    height: 60px;
    border-radius: var(--afrinex-radius);
    background: linear-gradient(135deg, var(--afrinex-green), var(--afrinex-green-dark));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--afrinex-white);
    margin-bottom: 20px;
}

.btp-card h4 {
    margin-bottom: 10px;
}

.btp-card p {
    color: var(--afrinex-gray);
    font-size: 0.95rem;
}

/* ============================================
   PROJECTS / PORTFOLIO SECTION
   ============================================ */
.projects-section {
    background: var(--afrinex-dark);
    color: var(--afrinex-white);
}

.projects-section .section-subtitle {
    background: rgba(46, 204, 113, 0.15);
    color: var(--afrinex-green);
}

.projects-section .section-title {
    color: var(--afrinex-white);
}

.projects-section .section-title span {
    color: var(--afrinex-green);
}

.projects-section .section-description {
    color: rgba(255, 255, 255, 0.6);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.project-card {
    position: relative;
    border-radius: var(--afrinex-radius-lg);
    overflow: hidden;
    aspect-ratio: 4/3;
}

.project-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.project-card:hover img {
    transform: scale(1.1);
}

.project-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 30px;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    transform: translateY(20px);
    opacity: 0;
    transition: var(--afrinex-transition);
}

.project-card:hover .project-overlay {
    transform: translateY(0);
    opacity: 1;
}

.project-category {
    color: var(--afrinex-green);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
}

.project-title {
    color: var(--afrinex-white);
    font-size: 1.2rem;
    margin-bottom: 5px;
}

/* ============================================
   VALUES SECTION
   ============================================ */
.values-section {
    background: var(--afrinex-gray-light);
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
}

.value-card {
    text-align: center;
    padding: 30px 20px;
    background: var(--afrinex-white);
    border-radius: var(--afrinex-radius-lg);
    box-shadow: var(--afrinex-shadow);
    transition: var(--afrinex-transition);
}

.value-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--afrinex-shadow-hover);
}

.value-icon {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 1.8rem;
}

.value-card:nth-child(1) .value-icon { background: rgba(46, 204, 113, 0.1); color: var(--afrinex-green); }
.value-card:nth-child(2) .value-icon { background: rgba(31, 119, 180, 0.1); color: var(--afrinex-blue); }
.value-card:nth-child(3) .value-icon { background: rgba(243, 156, 18, 0.1); color: var(--afrinex-orange); }
.value-card:nth-child(4) .value-icon { background: rgba(231, 76, 60, 0.1); color: var(--afrinex-red); }
.value-card:nth-child(5) .value-icon { background: rgba(46, 204, 113, 0.1); color: var(--afrinex-green); }

.value-card h4 {
    margin-bottom: 10px;
    font-size: 1rem;
}

.value-card p {
    color: var(--afrinex-gray);
    font-size: 0.9rem;
}

/* ============================================
   WHY US / ATOUTS SECTION
   ============================================ */
.why-us-section {
    background: var(--afrinex-white);
}

.why-us-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.why-us-content h2 {
    margin-bottom: 20px;
}

.why-us-item {
    display: flex;
    gap: 20px;
    margin-bottom: 25px;
}

.why-us-number {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--afrinex-blue), var(--afrinex-green));
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--afrinex-white);
    font-weight: 800;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.why-us-item h4 {
    margin-bottom: 5px;
    color: var(--afrinex-blue);
}

.why-us-item p {
    color: var(--afrinex-gray);
    font-size: 0.95rem;
}

/* ============================================
   CTA SECTION
   ============================================ */
.cta-section {
    background: linear-gradient(135deg, var(--afrinex-blue), var(--afrinex-green));
    text-align: center;
    padding: 80px 0;
}

.cta-title {
    color: var(--afrinex-white);
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.cta-description {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.15rem;
    margin-bottom: 30px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* ============================================
   CONTACT SECTION
   ============================================ */
.contact-section {
    background: var(--afrinex-gray-light);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
}

.contact-info h3 {
    margin-bottom: 20px;
}

.contact-info-item {
    display: flex;
    gap: 15px;
    margin-bottom: 25px;
}

.contact-info-icon {
    width: 50px;
    height: 50px;
    border-radius: var(--afrinex-radius);
    background: linear-gradient(135deg, var(--afrinex-blue), var(--afrinex-green));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: var(--afrinex-white);
    flex-shrink: 0;
}

.contact-info-item h4 {
    margin-bottom: 3px;
    font-size: 1rem;
}

.contact-info-item p {
    color: var(--afrinex-gray);
    font-size: 0.95rem;
}

.contact-form-wrapper {
    background: var(--afrinex-white);
    padding: 40px;
    border-radius: var(--afrinex-radius-lg);
    box-shadow: var(--afrinex-shadow);
}

.contact-form .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.contact-form input,
.contact-form textarea,
.contact-form select {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid #E8ECF1;
    border-radius: var(--afrinex-radius);
    font-size: 1rem;
    font-family: inherit;
    transition: var(--afrinex-transition);
    background: var(--afrinex-white);
}

.contact-form input:focus,
.contact-form textarea:focus,
.contact-form select:focus {
    outline: none;
    border-color: var(--afrinex-blue);
    box-shadow: 0 0 0 3px rgba(31, 119, 180, 0.1);
}

.contact-form textarea {
    height: 120px;
    resize: vertical;
}

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

.contact-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--afrinex-dark);
}

/* ============================================
   FOOTER
   ============================================ */
.site-footer {
    background: var(--afrinex-dark);
    color: rgba(255, 255, 255, 0.7);
    padding-top: 60px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-brand .logo-text {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--afrinex-white);
    margin-bottom: 15px;
}

.footer-brand .logo-text span {
    color: var(--afrinex-green);
}

.footer-brand p {
    margin-bottom: 20px;
    font-size: 0.95rem;
    line-height: 1.7;
}

/* ============================================
   SVG ICON SYSTEM
   ============================================ */
.afrinex-icon {
    display: inline-block;
    vertical-align: middle;
    color: inherit;
    fill: none;
    flex-shrink: 0;
}

.afrinex-icon[fill="currentColor"] {
    fill: currentColor;
}

/* Icon sizing for specific contexts */
.btp-card-icon .afrinex-icon,
.service-icon .afrinex-icon {
    width: 100%;
    height: 100%;
}

.contact-info-icon .afrinex-icon {
    color: var(--afrinex-white);
}

.value-icon .afrinex-icon {
    width: 100%;
    height: 100%;
}

/* ============================================
   SOCIAL LINKS (shared header + footer)
   ============================================ */
.social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: var(--afrinex-transition);
}

.footer-social {
    display: flex;
    gap: 12px;
}

.footer-social a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--afrinex-white);
    font-size: 1rem;
    transition: var(--afrinex-transition);
}

.footer-social a:hover {
    color: var(--afrinex-white);
    transform: translateY(-3px);
}

.footer-social a.social-facebook:hover { background: #1877F2; }
.footer-social a.social-twitter-x:hover { background: #000000; }
.footer-social a.social-instagram:hover { background: #E4405F; }
.footer-social a.social-linkedin:hover { background: #0A66C2; }
.footer-social a.social-youtube:hover { background: #FF0000; }
.footer-social a.social-whatsapp:hover { background: #25D366; }
.footer-social a.social-tiktok:hover { background: #000000; }
.footer-social a.social-telegram:hover { background: #26A5E4; }

.footer-column h4 {
    color: var(--afrinex-white);
    font-size: 1.1rem;
    margin-bottom: 20px;
    position: relative;
}

.footer-column h4::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 30px;
    height: 3px;
    background: var(--afrinex-green);
    border-radius: 3px;
}

.footer-column ul li {
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer-column ul li .afrinex-icon {
    color: var(--afrinex-green);
    flex-shrink: 0;
}

.footer-column ul li a {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.95rem;
    transition: var(--afrinex-transition);
}

.footer-column ul li a:hover {
    color: var(--afrinex-green);
    padding-left: 5px;
}

.footer-bottom {
    padding: 20px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
}

.footer-bottom a {
    color: var(--afrinex-green);
}

/* ============================================
   PAGE & POST TEMPLATES
   ============================================ */
.page-header {
    background: linear-gradient(135deg, var(--afrinex-dark), var(--afrinex-blue));
    padding: 140px 0 60px;
    text-align: center;
    color: var(--afrinex-white);
}

.page-header h1 {
    color: var(--afrinex-white);
    font-size: 2.5rem;
}

.page-header p {
    color: rgba(255, 255, 255, 0.7);
}

.breadcrumb {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 15px;
    font-size: 0.9rem;
}

.breadcrumb a {
    color: rgba(255, 255, 255, 0.7);
}

.breadcrumb a:hover {
    color: var(--afrinex-green);
}

.breadcrumb span {
    color: var(--afrinex-green);
}

.content-area {
    padding: 60px 0;
}

.entry-content {
    max-width: 800px;
    margin: 0 auto;
}

.entry-content h2 {
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.entry-content p {
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.entry-content img {
    border-radius: var(--afrinex-radius);
    margin: 20px 0;
}

/* ============================================
   404 PAGE
   ============================================ */
.error-404 {
    text-align: center;
    padding: 120px 0;
}

.error-404 h1 {
    font-size: 8rem;
    color: var(--afrinex-blue);
    line-height: 1;
}

.error-404 p {
    color: var(--afrinex-gray);
    font-size: 1.2rem;
    margin-bottom: 30px;
}

/* ============================================
   ANIMATIONS
   ============================================ */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */
@media (max-width: 1024px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .projects-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .values-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    h1 { font-size: 2.2rem; }
    h2 { font-size: 1.8rem; }

    .menu-toggle {
        display: flex;
    }

    .main-navigation {
        position: fixed;
        top: 80px;
        left: 0;
        width: 100%;
        background: var(--afrinex-white);
        padding: 20px;
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
        transform: translateY(-120%);
        transition: transform 0.3s ease;
    }

    .main-navigation.active {
        transform: translateY(0);
    }

    .main-navigation ul {
        flex-direction: column;
        gap: 0;
    }

    .main-navigation a {
        display: block;
        padding: 12px 0;
        border-bottom: 1px solid #f0f0f0;
    }

    .nav-cta {
        margin-left: 0;
        margin-top: 15px;
    }

    .hero-title {
        font-size: 2.2rem;
    }

    .hero-stats {
        gap: 20px;
    }

    .stat-number {
        font-size: 1.8rem;
    }

    .about-grid,
    .why-us-grid,
    .contact-grid {
        grid-template-columns: 1fr;
    }

    .services-grid,
    .projects-grid {
        grid-template-columns: 1fr;
    }

    .values-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .about-features {
        grid-template-columns: 1fr;
    }

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

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

    .footer-bottom {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }

    .section-padding {
        padding: 50px 0;
    }

    .cta-title {
        font-size: 1.8rem;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 1.8rem;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .hero-stats {
        flex-direction: column;
        gap: 15px;
    }

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

/* ============================================
   WORDPRESS ALIGNMENT CLASSES
   ============================================ */
.alignleft {
    float: left;
    margin-right: 1.5em;
    margin-bottom: 1em;
}

.alignright {
    float: right;
    margin-left: 1.5em;
    margin-bottom: 1em;
}

.aligncenter {
    clear: both;
    display: block;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 1em;
}

.alignwide {
    margin-left: -80px;
    margin-right: -80px;
    max-width: calc(100% + 160px);
}

.alignfull {
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
    max-width: 100vw;
}

.wp-block-image img {
    border-radius: var(--afrinex-radius);
}

/* ============================================
   WORDPRESS GALLERY
   ============================================ */
.wp-block-gallery {
    display: grid;
    gap: 10px;
    margin: 20px 0;
}

/* ============================================
   SCREEN READER TEXT
   ============================================ */
.screen-reader-text {
    border: 0;
    clip: rect(1px, 1px, 1px, 1px);
    clip-path: inset(50%);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px;
    word-wrap: normal !important;
}

/* ============================================
   PAGINATION
   ============================================ */
.pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 40px;
}

.pagination a,
.pagination span {
    padding: 10px 18px;
    border-radius: var(--afrinex-radius);
    background: var(--afrinex-gray-light);
    color: var(--afrinex-dark);
    font-weight: 500;
    transition: var(--afrinex-transition);
}

.pagination a:hover,
.pagination .current {
    background: var(--afrinex-blue);
    color: var(--afrinex-white);
}

/* ============================================
   WIDGETS
   ============================================ */
.widget {
    margin-bottom: 30px;
}

.widget-title {
    font-size: 1.2rem;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 3px solid var(--afrinex-green);
}

.widget ul li {
    padding: 8px 0;
    border-bottom: 1px solid #f0f0f0;
}

/* ============================================
   COMMENTS
   ============================================ */
.comment-list {
    list-style: none;
}

.comment-body {
    padding: 20px;
    margin-bottom: 20px;
    background: var(--afrinex-gray-light);
    border-radius: var(--afrinex-radius);
}

.comment-author {
    font-weight: 700;
    margin-bottom: 5px;
}

.comment-content p {
    margin-bottom: 0;
}

#respond {
    margin-top: 30px;
}

#respond h3 {
    margin-bottom: 20px;
}

.comment-form input,
.comment-form textarea {
    width: 100%;
    padding: 12px;
    margin-bottom: 15px;
    border: 2px solid #E8ECF1;
    border-radius: var(--afrinex-radius);
    font-family: inherit;
}

.comment-form input:focus,
.comment-form textarea:focus {
    outline: none;
    border-color: var(--afrinex-blue);
}
