/*
 * KatsalaOne Nigeria Limited - Corporate Website Styles
 * Brand Colors:
 * - Deep Navy Blue: #0A2540
 * - Professional Green: #008060
 * - White & Light Gray backgrounds
 */

/* ============================================
   CSS VARIABLES & BASE STYLES
   ============================================ */
:root {
    --navy-blue: #0A2540;
    --navy-dark: #061b2e;
    --navy-light: #0f3a5c;
    --professional-green: #008060;
    --green-dark: #00664d;
    --green-light: #00a37a;
    --white: #ffffff;
    --gray-100: #f8f9fa;
    --gray-200: #e9ecef;
    --gray-300: #dee2e6;
    --gray-400: #adb5bd;
    --gray-500: #6c757d;
    --gray-600: #495057;
    --gray-700: #343a40;
    --gray-800: #212529;
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.07);
    --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
    --border-radius: 8px;
    --border-radius-lg: 12px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    font-size: 16px;
    line-height: 1.6;
    color: var(--gray-700);
    background-color: var(--white);
    overflow-x: hidden;
}

/* ============================================
   TYPOGRAPHY
   ============================================ */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    color: var(--navy-blue);
    line-height: 1.3;
}

a {
    color: var(--professional-green);
    text-decoration: none;
    transition: var(--transition);
}

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

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

.section-subtitle {
    color: var(--professional-green);
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 10px;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--navy-blue);
}

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

/* ============================================
   NAVIGATION
   ============================================ */
.navbar {
    padding: 15px 0;
    transition: var(--transition);
    background: transparent;
}

.navbar.scrolled {
    background: var(--navy-blue);
    box-shadow: var(--shadow-md);
    padding: 10px 0;
}

.navbar-brand {
    font-size: 1.5rem;
    letter-spacing: 1px;
}

.brand-primary {
    color: var(--white);
}

.brand-secondary {
    color: var(--professional-green);
}

.navbar-nav .nav-link {
    color: rgba(255, 255, 255, 0.9) !important;
    font-weight: 500;
    padding: 8px 16px !important;
    border-radius: var(--border-radius);
    transition: var(--transition);
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    color: var(--white) !important;
    background: rgba(255, 255, 255, 0.1);
}

.translate-wrapper select {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--white);
    padding: 5px 10px;
    border-radius: var(--border-radius);
    font-size: 14px;
    cursor: pointer;
}

.translate-wrapper select option {
    background: var(--navy-blue);
    color: var(--white);
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero-section {
    min-height: 100vh;
    background: var(--navy-blue);
    position: relative;
    display: flex;
    align-items: center;
    padding-top: 80px;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        linear-gradient(135deg, rgba(10, 37, 64, 0.95) 0%, rgba(10, 37, 64, 0.85) 100%),
        url('../images/hero-bg.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 0;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--white);
    line-height: 1.2;
    animation: fadeInUp 0.8s ease-out;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.8);
    max-width: 700px;
    margin: 0 auto;
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

.hero-buttons {
    animation: fadeInUp 0.8s ease-out 0.4s both;
}

.btn-primary {
    background: var(--professional-green);
    border: 2px solid var(--professional-green);
    color: var(--white);
    padding: 12px 30px;
    font-weight: 600;
    border-radius: var(--border-radius);
    transition: var(--transition);
}

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

.btn-outline-light {
    border: 2px solid rgba(255, 255, 255, 0.5);
    color: var(--white);
    padding: 12px 30px;
    font-weight: 600;
    border-radius: var(--border-radius);
    transition: var(--transition);
}

.btn-outline-light:hover {
    background: var(--white);
    color: var(--navy-blue);
    border-color: var(--white);
}

.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1;
}

.scroll-link {
    color: rgba(255, 255, 255, 0.6);
    font-size: 2rem;
    animation: bounce 2s infinite;
    display: inline-block;
}

.scroll-link:hover {
    color: var(--white);
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-10px); }
    60% { transform: translateY(-5px); }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ============================================
   ABOUT SECTION
   ============================================ */
.bg-light {
    background-color: var(--gray-100) !important;
}

.about-card {
    background: var(--white);
    padding: 35px;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    height: 100%;
    border: 1px solid var(--gray-200);
}

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

.about-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--professional-green), var(--green-light));
    border-radius: var(--border-radius);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.about-icon i {
    font-size: 1.8rem;
    color: var(--white);
}

.about-card h4 {
    font-size: 1.3rem;
    margin-bottom: 15px;
    color: var(--navy-blue);
}

.about-card p {
    color: var(--gray-600);
    font-size: 0.95rem;
    line-height: 1.7;
}

.values-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.values-list li {
    display: flex;
    align-items: center;
    padding: 8px 0;
    color: var(--gray-700);
    font-weight: 500;
}

.values-list li i {
    color: var(--professional-green);
    margin-right: 10px;
    font-size: 1.1rem;
}

/* Stats Row */
.stats-row {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    background: var(--white);
    padding: 40px;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-sm);
    margin-top: 40px;
}

.stat-item {
    text-align: center;
    padding: 15px;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--professional-green);
    margin-bottom: 5px;
}

.stat-label {
    color: var(--gray-600);
    font-size: 0.95rem;
    font-weight: 500;
}

/* ============================================
   SERVICES SECTION
   ============================================ */
.service-card {
    background: var(--white);
    padding: 35px;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    height: 100%;
    border: 1px solid var(--gray-200);
    cursor: pointer;
}

.service-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-5px);
    border-color: var(--professional-green);
}

.service-icon {
    width: 70px;
    height: 70px;
    background: var(--gray-100);
    border-radius: var(--border-radius);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    transition: var(--transition);
}

.service-card:hover .service-icon {
    background: var(--professional-green);
}

.service-icon i {
    font-size: 2rem;
    color: var(--professional-green);
    transition: var(--transition);
}

.service-card:hover .service-icon i {
    color: var(--white);
}

.service-card h4 {
    font-size: 1.3rem;
    margin-bottom: 15px;
    color: var(--navy-blue);
}

.service-card p {
    color: var(--gray-600);
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 20px;
}

.service-link {
    color: var(--professional-green);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    transition: var(--transition);
}

.service-link i {
    margin-left: 5px;
    transition: var(--transition);
}

.service-card:hover .service-link i {
    transform: translateX(5px);
}

/* ============================================
   PORTFOLIO SECTION
   ============================================ */
.portfolio-card {
    background: var(--white);
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    height: 100%;
    border: 1px solid var(--gray-200);
}

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

.portfolio-preview {
    position: relative;
    height: 250px;
    overflow: hidden;
    background: var(--gray-100);
}

.portfolio-preview iframe {
    width: 100%;
    height: 100%;
    border: none;
    pointer-events: none;
    transform: scale(0.25);
    transform-origin: 0 0;
    width: 400%;
    height: 400%;
}

.portfolio-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 37, 64, 0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
}

.portfolio-card:hover .portfolio-overlay {
    opacity: 1;
}

.portfolio-content {
    padding: 25px;
}

.portfolio-content h4 {
    font-size: 1.2rem;
    margin-bottom: 10px;
    color: var(--navy-blue);
}

.portfolio-content p {
    color: var(--gray-600);
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 15px;
}

.portfolio-link {
    color: var(--professional-green);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
}

.portfolio-link i {
    margin-left: 5px;
    transition: var(--transition);
}

.portfolio-link:hover i {
    transform: translateX(5px);
}

/* ============================================
   INTERACTIVE QUIZ SECTION
   ============================================ */
.quiz-container {
    background: var(--white);
    padding: 40px;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--gray-200);
}

.quiz-icon {
    font-size: 4rem;
    color: var(--professional-green);
    margin-bottom: 20px;
}

.quiz-start h4 {
    margin-bottom: 15px;
    color: var(--navy-blue);
}

.progress {
    height: 8px;
    background: var(--gray-200);
    border-radius: 4px;
}

.progress-bar {
    background: var(--professional-green);
    border-radius: 4px;
    transition: width 0.3s ease;
}

.quiz-option {
    text-align: left;
    padding: 15px 20px;
    background: var(--gray-100);
    border: 2px solid transparent;
    border-radius: var(--border-radius);
    transition: var(--transition);
    cursor: pointer;
    font-weight: 500;
}

.quiz-option:hover {
    background: var(--white);
    border-color: var(--professional-green);
    color: var(--professional-green);
}

.result-icon {
    font-size: 4rem;
    margin-bottom: 20px;
}

.result-recommendation {
    background: var(--gray-100);
    padding: 20px;
    border-radius: var(--border-radius);
    margin-bottom: 20px;
    text-align: left;
}

.result-recommendation h6 {
    color: var(--navy-blue);
    margin-bottom: 10px;
}

.result-recommendation ul {
    margin: 0;
    padding-left: 20px;
    color: var(--gray-600);
}

.result-recommendation li {
    margin-bottom: 5px;
}

/* ============================================
   CONTACT SECTION
   ============================================ */
.contact-info-card {
    background: var(--white);
    padding: 35px;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-sm);
    height: 100%;
    border: 1px solid var(--gray-200);
}

.contact-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 25px;
}

.contact-icon {
    width: 45px;
    height: 45px;
    background: var(--gray-100);
    border-radius: var(--border-radius);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    flex-shrink: 0;
}

.contact-icon i {
    font-size: 1.2rem;
    color: var(--professional-green);
}

.contact-item h6 {
    font-size: 0.9rem;
    color: var(--gray-500);
    margin-bottom: 3px;
}

.contact-item p {
    font-size: 1rem;
    color: var(--navy-blue);
    font-weight: 500;
    margin: 0;
}

.social-links h6 {
    color: var(--navy-blue);
}

.social-link {
    width: 40px;
    height: 40px;
    background: var(--gray-100);
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-right: 10px;
    color: var(--gray-600);
    transition: var(--transition);
}

.social-link:hover {
    background: var(--professional-green);
    color: var(--white);
    transform: translateY(-3px);
}

.contact-form-card {
    background: var(--white);
    padding: 35px;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--gray-200);
}

.form-label {
    font-weight: 500;
    color: var(--navy-blue);
    margin-bottom: 8px;
}

.form-control {
    padding: 12px 15px;
    border: 1px solid var(--gray-300);
    border-radius: var(--border-radius);
    transition: var(--transition);
    font-size: 0.95rem;
}

.form-control:focus {
    border-color: var(--professional-green);
    box-shadow: 0 0 0 3px rgba(0, 128, 96, 0.1);
}

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

/* ============================================
   SIGNATURE SECTION
   ============================================ */
.signature-section {
    background: var(--navy-blue);
    padding: 100px 0;
    position: relative;
    overflow: hidden;
}

.signature-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 80% 80%, rgba(0, 128, 96, 0.1) 0%, transparent 50%);
}

.signature-title {
    color: var(--white);
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 25px;
}

.signature-text {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.1rem;
    line-height: 1.8;
    max-width: 800px;
    margin: 0 auto 40px;
}

.signature-trust {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 30px;
    margin-bottom: 30px;
}

.trust-item {
    display: flex;
    align-items: center;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
}

.trust-item i {
    color: var(--professional-green);
    font-size: 1.3rem;
    margin-right: 10px;
}

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

.footer-brand h4 {
    color: var(--white);
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.footer-tagline {
    color: var(--professional-green);
    font-weight: 500;
    margin-bottom: 15px;
}

.footer-description {
    font-size: 0.9rem;
    line-height: 1.7;
    max-width: 300px;
}

.footer-title {
    color: var(--white);
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer-links,
.footer-contact {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li,
.footer-contact li {
    margin-bottom: 12px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    transition: var(--transition);
    display: inline-block;
}

.footer-links a:hover {
    color: var(--professional-green);
    transform: translateX(5px);
}

.footer-contact li {
    display: flex;
    align-items: center;
}

.footer-contact i {
    color: var(--professional-green);
    margin-right: 10px;
    font-size: 1rem;
}

.footer-divider {
    border-color: rgba(255, 255, 255, 0.1);
    margin: 40px 0 30px;
}

.copyright {
    font-size: 0.9rem;
    margin: 0;
}

.footer-social .social-link {
    background: rgba(255, 255, 255, 0.1);
    color: var(--white);
}

.footer-social .social-link:hover {
    background: var(--professional-green);
}

/* ============================================
   MODALS
   ============================================ */
.modal-content {
    border: none;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-lg);
}

.modal-header {
    background: var(--gray-100);
    border-bottom: 1px solid var(--gray-200);
    padding: 20px 25px;
}

.modal-title {
    color: var(--navy-blue);
    font-weight: 600;
}

.modal-body {
    padding: 25px;
}

.modal-description {
    color: var(--gray-600);
    margin-bottom: 20px;
}

.btn-close {
    opacity: 0.5;
    transition: var(--transition);
}

.btn-close:hover {
    opacity: 1;
}

/* ============================================
   GOOGLE TRANSLATE CUSTOMIZATION
   ============================================ */
.goog-te-banner-frame {
    display: none !important;
}

body {
    top: 0 !important;
}

.goog-te-gadget {
    font-family: var(--font-primary) !important;
}

.goog-te-gadget-simple {
    background: transparent !important;
    border: none !important;
    padding: 0 !important;
}

.goog-te-menu-value {
    color: var(--white) !important;
}

.goog-te-menu-value span {
    color: var(--white) !important;
    border: none !important;
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */
@media (max-width: 991px) {
    .section-title {
        font-size: 2rem;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .navbar-collapse {
        background: var(--navy-blue);
        padding: 20px;
        border-radius: var(--border-radius);
        margin-top: 15px;
    }
    
    .translate-wrapper {
        margin-top: 10px;
    }
    
    .stats-row {
        padding: 25px;
    }
    
    .stat-item {
        flex: 0 0 50%;
        padding: 15px;
    }
}

@media (max-width: 767px) {
    .section-padding {
        padding: 60px 0;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .section-title {
        font-size: 1.75rem;
    }
    
    .about-card,
    .service-card,
    .portfolio-card,
    .quiz-container,
    .contact-info-card,
    .contact-form-card {
        padding: 25px;
    }
    
    .signature-title {
        font-size: 1.75rem;
    }
    
    .signature-trust {
        flex-direction: column;
        gap: 15px;
    }
    
    .stat-item {
        flex: 0 0 100%;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    .portfolio-preview {
        height: 200px;
    }
}

@media (max-width: 575px) {
    .hero-title {
        font-size: 1.75rem;
    }
    
    .hero-buttons .btn {
        display: block;
        width: 100%;
        margin-right: 0 !important;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
    
    .stats-row {
        flex-direction: column;
    }
}

/* ============================================
   UTILITY CLASSES
   ============================================ */
.z-1 {
    z-index: 1;
}

.text-success {
    color: var(--professional-green) !important;
}

.bg-success {
    background-color: var(--professional-green) !important;
}

/* Smooth scroll offset for fixed navbar */
section[id] {
    scroll-margin-top: 80px;
}

/* Loading animation */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid var(--gray-300);
    border-top-color: var(--professional-green);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

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

/* Focus visible for accessibility */
*:focus-visible {
    outline: 2px solid var(--professional-green);
    outline-offset: 2px;
}

/* Print styles */
@media print {
    .navbar,
    .scroll-indicator,
    .quiz-container,
    .footer {
        display: none !important;
    }
    
    .hero-section {
        min-height: auto;
        padding: 40px 0;
    }
    
    .section-padding {
        padding: 30px 0;
    }
}
