/*
Theme Name: Cosmic Movers & Packers
Theme URI: http://cosmicmovers.co.ke
Author: Cosmic Movers
Author URI: http://cosmicmovers.co.ke
Description: Custom theme for Cosmic Movers & Packers - Professional moving, packing, storage and cleaning services across all counties in Kenya.
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: cosmicmovers
Tags: moving, packers, logistics, kenya

Cosmic Movers & Packers - Your Trusted Moving Partner
*/

/* ============================================
   CSS VARIABLES & GLOBAL STYLES
   ============================================ */
:root {
    --cm-navy: #0B1F3B;
    --cm-navy-light: #132d52;
    --cm-white: #FFFFFF;
    --cm-cyan: #3EC5FF;
    --cm-cyan-dark: #2ba8e0;
    --cm-gray-light: #F5F7FA;
    --cm-gray: #6C7A89;
    --cm-text: #2C3E50;
    --cm-border: #E1E8ED;
    --cm-success: #27AE60;
    --cm-font-primary: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --cm-font-heading: 'Poppins', 'Inter', sans-serif;
    --cm-radius: 8px;
    --cm-shadow: 0 4px 6px rgba(11, 31, 59, 0.1);
    --cm-shadow-lg: 0 10px 40px rgba(11, 31, 59, 0.15);
    --cm-transition: all 0.3s ease;
}

/* Reset & Base */
*, *::before, *::after {
    box-sizing: border-box;
}

body {
    font-family: var(--cm-font-primary);
    color: var(--cm-text);
    line-height: 1.6;
    margin: 0;
    padding: 0;
    background: var(--cm-white);
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--cm-font-heading);
    color: var(--cm-navy);
    font-weight: 700;
    line-height: 1.2;
}

a {
    color: var(--cm-cyan);
    text-decoration: none;
    transition: var(--cm-transition);
}

a:hover {
    color: var(--cm-cyan-dark);
}

img {
    max-width: 100%;
    height: auto;
}

/* ============================================
   HEADER
   ============================================ */
.site-header {
    background: var(--cm-navy);
    padding: 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--cm-shadow);
}

.header-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 20px;
}

.site-logo img {
    height: 50px;
    width: auto;
}

.site-logo .site-title {
    color: var(--cm-white);
    font-size: 1.5rem;
    font-weight: 700;
    font-family: var(--cm-font-heading);
}

.site-logo .site-title span {
    color: var(--cm-cyan);
}

/* Navigation */
.main-navigation ul {
    list-style: none;
    display: flex;
    gap: 30px;
    margin: 0;
    padding: 0;
}

.main-navigation a {
    color: var(--cm-white);
    font-weight: 500;
    font-size: 0.95rem;
    padding: 8px 0;
    position: relative;
}

.main-navigation a:hover,
.main-navigation .current-menu-item a {
    color: var(--cm-cyan);
}

.main-navigation a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--cm-cyan);
    transition: var(--cm-transition);
}

.main-navigation a:hover::after {
    width: 100%;
}

.header-cta {
    display: flex;
    align-items: center;
    gap: 15px;
}

.header-phone {
    color: var(--cm-white);
    font-weight: 600;
    font-size: 0.9rem;
}

.header-phone i {
    color: var(--cm-cyan);
    margin-right: 5px;
}

/* ============================================
   BUTTONS
   ============================================ */
.btn-primary {
    background: var(--cm-cyan);
    color: var(--cm-white);
    padding: 12px 28px;
    border-radius: var(--cm-radius);
    font-weight: 600;
    font-size: 0.95rem;
    border: none;
    cursor: pointer;
    transition: var(--cm-transition);
    display: inline-block;
    text-align: center;
}

.btn-primary:hover {
    background: var(--cm-cyan-dark);
    color: var(--cm-white);
    transform: translateY(-2px);
    box-shadow: var(--cm-shadow);
}

.btn-secondary {
    background: transparent;
    color: var(--cm-white);
    padding: 12px 28px;
    border-radius: var(--cm-radius);
    font-weight: 600;
    font-size: 0.95rem;
    border: 2px solid var(--cm-white);
    cursor: pointer;
    transition: var(--cm-transition);
    display: inline-block;
    text-align: center;
}

.btn-secondary:hover {
    background: var(--cm-white);
    color: var(--cm-navy);
}

.btn-navy {
    background: var(--cm-navy);
    color: var(--cm-white);
    padding: 12px 28px;
    border-radius: var(--cm-radius);
    font-weight: 600;
    font-size: 0.95rem;
    border: none;
    cursor: pointer;
    transition: var(--cm-transition);
    display: inline-block;
}

.btn-navy:hover {
    background: var(--cm-navy-light);
    color: var(--cm-white);
    transform: translateY(-2px);
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero-section {
    background: linear-gradient(135deg, var(--cm-navy) 0%, var(--cm-navy-light) 100%);
    padding: 100px 20px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 500px;
    height: 500px;
    border-radius: 50%;
    background: rgba(62, 197, 255, 0.05);
}

.hero-section h1 {
    color: var(--cm-white);
    font-size: 3rem;
    margin-bottom: 20px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.hero-section h1 span {
    color: var(--cm-cyan);
}

.hero-section p {
    color: rgba(255, 255, 255, 0.85);
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto 30px;
}

.hero-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ============================================
   SERVICES SECTION
   ============================================ */
.services-section {
    padding: 80px 20px;
    background: var(--cm-gray-light);
}

.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-header h2 {
    font-size: 2.2rem;
    margin-bottom: 15px;
}

.section-header p {
    color: var(--cm-gray);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.service-card {
    background: var(--cm-white);
    border-radius: 12px;
    padding: 40px 30px;
    text-align: center;
    transition: var(--cm-transition);
    box-shadow: var(--cm-shadow);
}

.service-card.has-image {
    padding: 0;
    overflow: hidden;
}

.service-card.has-image .service-card-content {
    padding: 25px 25px 30px;
}

.service-card-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.service-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.service-card:hover .service-card-image img {
    transform: scale(1.08);
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--cm-shadow-lg);
}

.service-card .icon {
    width: 70px;
    height: 70px;
    background: rgba(62, 197, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 28px;
    color: var(--cm-cyan);
}

.service-card.has-image .icon {
    width: 50px;
    height: 50px;
    font-size: 22px;
    margin-bottom: 12px;
}

.service-card h3 {
    font-size: 1.3rem;
    margin-bottom: 12px;
}

.service-card p {
    color: var(--cm-gray);
    font-size: 0.95rem;
}

/* ============================================
   TEAM SECTION
   ============================================ */
.team-section {
    padding: 80px 20px;
    background: var(--cm-white);
}

.team-showcase {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    max-width: 1100px;
    margin: 0 auto;
    align-items: center;
}

.team-image {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--cm-shadow-lg);
}

.team-image img {
    width: 100%;
    height: auto;
    display: block;
}

.team-text h3 {
    font-size: 1.6rem;
    margin-bottom: 15px;
}

.team-text p {
    color: var(--cm-gray);
    margin-bottom: 20px;
    line-height: 1.8;
}

.team-text ul {
    list-style: none;
    padding: 0;
}

.team-text ul li {
    padding: 6px 0;
    color: var(--cm-text);
    font-size: 0.95rem;
}

/* ============================================
   PHOTO GALLERY
   ============================================ */
.gallery-section {
    padding: 80px 20px;
    background: var(--cm-gray-light);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
    max-width: 1200px;
    margin: 0 auto;
}

.gallery-item {
    border-radius: 10px;
    overflow: hidden;
    aspect-ratio: 4/3;
    cursor: pointer;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
    display: block;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

/* ============================================
   VIDEO SECTION
   ============================================ */
.video-section {
    padding: 80px 20px;
    background: var(--cm-navy);
}

.video-section .section-header h2 {
    color: var(--cm-white);
}

.video-section .section-header p {
    color: rgba(255, 255, 255, 0.7);
}

.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    max-width: 1100px;
    margin: 0 auto;
}

.video-item {
    text-align: center;
}

.video-item video {
    width: 100%;
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
    background: #000;
}

.video-item p {
    color: rgba(255, 255, 255, 0.85);
    margin-top: 12px;
    font-weight: 500;
}

/* ============================================
   PRICING SECTION
   ============================================ */
.pricing-section {
    padding: 80px 20px;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    max-width: 1000px;
    margin: 0 auto;
}

.pricing-card {
    border: 2px solid var(--cm-border);
    border-radius: 12px;
    padding: 40px 30px;
    text-align: center;
    transition: var(--cm-transition);
}

.pricing-card.featured {
    border-color: var(--cm-cyan);
    position: relative;
}

.pricing-card.featured::before {
    content: 'Most Popular';
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--cm-cyan);
    color: var(--cm-white);
    padding: 4px 16px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.pricing-card .price {
    font-size: 2.5rem;
    color: var(--cm-navy);
    font-weight: 700;
    margin: 15px 0;
}

.pricing-card .price span {
    font-size: 1rem;
    color: var(--cm-gray);
    font-weight: 400;
}

/* ============================================
   HOW IT WORKS - ANIMATED STEPS
   ============================================ */
.steps-section {
    padding: 80px 20px;
    background: #f4f8fc;
}

.steps-container {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    position: relative;
}

.steps-line {
    position: absolute;
    top: 55px;
    left: 12%;
    right: 12%;
    height: 3px;
    background: linear-gradient(90deg, #3EC5FF 0%, #2ba8e0 100%);
    opacity: 0.3;
    z-index: 0;
}

.step-item {
    text-align: center;
    position: relative;
    z-index: 1;
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.step-item.animate-in {
    opacity: 1;
    transform: translateY(0);
}

.step-item[data-step="2"] { transition-delay: 0.2s; }
.step-item[data-step="3"] { transition-delay: 0.4s; }
.step-item[data-step="4"] { transition-delay: 0.6s; }

.step-icon {
    width: 90px;
    height: 90px;
    margin: 0 auto 20px;
    border-radius: 50%;
    background: var(--cm-white);
    border: 3px solid var(--cm-cyan);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    box-shadow: 0 8px 25px rgba(62, 197, 255, 0.15);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.step-item.animate-in .step-icon {
    animation: stepPulse 0.6s ease forwards;
}

.step-item[data-step="2"].animate-in .step-icon { animation-delay: 0.2s; }
.step-item[data-step="3"].animate-in .step-icon { animation-delay: 0.4s; }
.step-item[data-step="4"].animate-in .step-icon { animation-delay: 0.6s; }

.step-icon:hover {
    transform: scale(1.1);
    box-shadow: 0 12px 35px rgba(62, 197, 255, 0.3);
}

.step-icon i {
    font-size: 2rem;
    color: var(--cm-cyan);
}

.step-number {
    position: absolute;
    top: -8px;
    right: -8px;
    width: 28px;
    height: 28px;
    background: var(--cm-navy);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.8rem;
    font-family: var(--cm-font-heading);
}

.step-item h3 {
    font-size: 1.1rem;
    color: var(--cm-navy);
    margin-bottom: 8px;
}

.step-item p {
    font-size: 0.9rem;
    color: #6C7A89;
    line-height: 1.5;
}

@keyframes stepPulse {
    0% { transform: scale(0.5); opacity: 0; }
    60% { transform: scale(1.1); }
    100% { transform: scale(1); opacity: 1; }
}

@media (max-width: 768px) {
    .steps-container {
        grid-template-columns: 1fr 1fr;
        gap: 40px 20px;
    }
    .steps-line {
        display: none;
    }
}

@media (max-width: 480px) {
    .steps-container {
        grid-template-columns: 1fr;
    }
}

/* ============================================
   WHY CHOOSE US
   ============================================ */
.why-us-section {
    padding: 80px 20px;
    background: var(--cm-navy);
    color: var(--cm-white);
}

.why-us-section h2 {
    color: var(--cm-white);
    text-align: center;
    margin-bottom: 50px;
}

.why-us-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.why-us-item {
    text-align: center;
    padding: 20px;
}

.why-us-item .number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--cm-cyan);
    display: block;
    margin-bottom: 10px;
}

/* ============================================
   TESTIMONIALS
   ============================================ */
.testimonials-section {
    padding: 80px 20px;
    background: var(--cm-gray-light);
}

.testimonial-card {
    background: var(--cm-white);
    border-radius: 12px;
    padding: 30px;
    box-shadow: var(--cm-shadow);
    margin-bottom: 20px;
}

.testimonial-card .stars {
    color: #F39C12;
    margin-bottom: 15px;
}

.testimonial-card .author {
    font-weight: 600;
    color: var(--cm-navy);
    margin-top: 15px;
}

/* ============================================
   CTA SECTION
   ============================================ */
.cta-section {
    padding: 80px 20px;
    background: linear-gradient(135deg, var(--cm-cyan) 0%, #2ba8e0 100%);
    text-align: center;
    color: var(--cm-white);
}

.cta-section h2 {
    color: var(--cm-white);
    font-size: 2.2rem;
    margin-bottom: 15px;
}

.cta-section p {
    font-size: 1.1rem;
    margin-bottom: 30px;
    opacity: 0.9;
}

/* ============================================
   PAGE HERO & SERVICE DETAIL
   ============================================ */
.page-hero {
    background: var(--cm-navy);
    padding: 80px 20px 60px;
    text-align: center;
}

.page-hero h1 {
    color: var(--cm-white);
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.page-hero p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.15rem;
    max-width: 600px;
    margin: 0 auto;
}

.service-detail {
    display: flex;
    align-items: flex-start;
    gap: 40px;
    background: var(--cm-white);
    border-radius: 12px;
    padding: 40px;
    margin-bottom: 30px;
    box-shadow: var(--cm-shadow);
}

.service-detail.reverse {
    flex-direction: row-reverse;
}

.service-detail-icon {
    flex-shrink: 0;
    width: 80px;
    height: 80px;
    background: rgba(62, 197, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    color: var(--cm-cyan);
}

.service-detail-text h2 {
    font-size: 1.5rem;
    margin-bottom: 12px;
}

.service-detail-text p {
    color: var(--cm-gray);
    line-height: 1.8;
    margin-bottom: 15px;
}

.service-detail-text ul {
    list-style: none;
    padding: 0;
    margin-bottom: 20px;
}

.service-detail-text ul li {
    padding: 5px 0;
    color: var(--cm-text);
    font-size: 0.95rem;
}

.service-detail-text ul li::before {
    content: '✓';
    color: var(--cm-cyan);
    font-weight: 700;
    margin-right: 10px;
}

@media (max-width: 768px) {
    .service-detail,
    .service-detail.reverse {
        flex-direction: column;
        padding: 25px;
    }

    .page-hero h1 {
        font-size: 1.8rem;
    }
}

/* ============================================
   QUOTE FORM
   ============================================ */
.quote-form .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.quote-form .form-group {
    margin-bottom: 20px;
}

.quote-form label {
    display: block;
    font-weight: 600;
    color: var(--cm-navy);
    margin-bottom: 6px;
    font-size: 0.95rem;
}

.quote-form input,
.quote-form select,
.quote-form textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--cm-border);
    border-radius: var(--cm-radius);
    font-family: var(--cm-font-primary);
    font-size: 1rem;
    color: var(--cm-text);
    transition: var(--cm-transition);
    background: #fff;
}

.quote-form input:focus,
.quote-form select:focus,
.quote-form textarea:focus {
    outline: none;
    border-color: var(--cm-cyan);
    box-shadow: 0 0 0 3px rgba(62, 197, 255, 0.15);
}

@media (max-width: 768px) {
    .quote-form .form-row {
        grid-template-columns: 1fr;
    }
}

/* ============================================
   FOOTER
   ============================================ */
.site-footer {
    background: var(--cm-navy);
    color: rgba(255, 255, 255, 0.8);
    padding: 60px 20px 30px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
}

.footer-col h4 {
    color: var(--cm-white);
    font-size: 1.1rem;
    margin-bottom: 20px;
}

.footer-col ul {
    list-style: none;
    padding: 0;
}

.footer-col ul li {
    margin-bottom: 10px;
}

.footer-col ul li a {
    color: rgba(255, 255, 255, 0.7);
    transition: var(--cm-transition);
}

.footer-col ul li a:hover {
    color: var(--cm-cyan);
}

.footer-contact p {
    margin-bottom: 10px;
}

.footer-contact i {
    color: var(--cm-cyan);
    margin-right: 8px;
    width: 20px;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 40px;
    padding-top: 20px;
    text-align: center;
    font-size: 0.9rem;
}

/* ============================================
   CUSTOMER PORTAL
   ============================================ */
.portal-section {
    padding: 60px 20px;
    min-height: 70vh;
    background: #f4f8fc;
}

.portal-container {
    max-width: 900px;
    margin: 0 auto;
}

.portal-header {
    text-align: center;
    margin-bottom: 30px;
    position: relative;
}

.portal-header h1 {
    font-size: 2rem;
    color: var(--cm-navy);
    margin-bottom: 8px;
}

.portal-header h1 i {
    color: var(--cm-cyan);
    margin-right: 10px;
}

.portal-header p {
    color: #6C7A89;
    font-size: 1rem;
}

.portal-logout {
    position: absolute;
    top: 0;
    right: 0;
    color: #e74c3c;
    font-size: 0.9rem;
    text-decoration: none;
    transition: opacity 0.2s;
}

.portal-logout:hover { opacity: 0.7; }

/* Alerts */
.portal-alert {
    padding: 14px 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 0.95rem;
}

.portal-alert-error {
    background: #fdeaea;
    color: #c0392b;
    border: 1px solid #f5c6cb;
}

.portal-alert-success {
    background: #e8f8f0;
    color: #1e8449;
    border: 1px solid #a3e4d7;
}

/* Tabs */
.portal-tabs {
    display: flex;
    gap: 0;
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--cm-shadow);
    margin-bottom: 25px;
}

.portal-tab {
    flex: 1;
    padding: 14px 20px;
    border: none;
    background: #fff;
    cursor: pointer;
    font-size: 0.95rem;
    font-weight: 600;
    color: #6C7A89;
    transition: all 0.3s;
    font-family: var(--cm-font-heading);
}

.portal-tab:hover { background: #f0f7ff; }

.portal-tab.active {
    background: var(--cm-navy);
    color: #fff;
}

.portal-tab i { margin-right: 6px; }

/* Tab Content */
.portal-tab-content {
    display: none;
    background: #fff;
    border-radius: 12px;
    padding: 30px;
    box-shadow: var(--cm-shadow);
    animation: fadeIn 0.3s ease;
}

.portal-tab-content.active { display: block; }

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Forms */
.portal-form .form-group {
    margin-bottom: 18px;
}

.portal-form label {
    display: block;
    font-weight: 600;
    color: var(--cm-navy);
    margin-bottom: 6px;
    font-size: 0.9rem;
}

.portal-form label i {
    color: var(--cm-cyan);
    margin-right: 6px;
    width: 16px;
}

.portal-form input[type="text"],
.portal-form input[type="email"],
.portal-form input[type="tel"],
.portal-form input[type="password"] {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e8ecf1;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s;
    font-family: var(--cm-font-body);
}

.portal-form input:focus {
    outline: none;
    border-color: var(--cm-cyan);
}

.form-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.checkbox-label {
    display: flex !important;
    align-items: center;
    gap: 8px;
    font-weight: 400 !important;
    cursor: pointer;
}

.forgot-link {
    color: var(--cm-cyan);
    font-size: 0.85rem;
    text-decoration: none;
}

.forgot-link:hover { text-decoration: underline; }

.portal-btn {
    width: 100%;
    padding: 14px;
    font-size: 1.05rem;
    margin-top: 10px;
    border: none;
    cursor: pointer;
}

.portal-btn i { margin-right: 8px; }

/* Stats */
.portal-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
    margin-bottom: 25px;
}

.portal-stat-card {
    background: #fff;
    border-radius: 12px;
    padding: 20px 15px;
    text-align: center;
    box-shadow: var(--cm-shadow);
    transition: transform 0.2s;
}

.portal-stat-card:hover { transform: translateY(-3px); }

.portal-stat-card i {
    font-size: 1.5rem;
    color: var(--cm-cyan);
    margin-bottom: 8px;
}

.portal-stat-card .stat-num {
    display: block;
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--cm-navy);
    font-family: var(--cm-font-heading);
}

.portal-stat-card .stat-label {
    font-size: 0.8rem;
    color: #6C7A89;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Tables */
.portal-table-wrap {
    overflow-x: auto;
}

.portal-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}

.portal-table th {
    background: #f4f8fc;
    padding: 12px 14px;
    text-align: left;
    font-weight: 600;
    color: var(--cm-navy);
    white-space: nowrap;
}

.portal-table td {
    padding: 12px 14px;
    border-bottom: 1px solid #eef2f7;
    color: #444;
}

.portal-table tr:hover td {
    background: #f9fcff;
}

.status-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

.status-pending, .status-draft { background: #fff3e0; color: #e67e22; }
.status-confirmed, .status-accepted, .status-active { background: #e8f8f0; color: #27ae60; }
.status-completed, .status-paid { background: #e3f2fd; color: #2196f3; }
.status-cancelled, .status-overdue { background: #fdeaea; color: #e74c3c; }
.status-in-progress, .status-partial { background: #f3e5f5; color: #9b59b6; }

/* Empty State */
.portal-empty {
    text-align: center;
    padding: 50px 20px;
}

.portal-empty i {
    font-size: 3rem;
    color: #d5dce4;
    margin-bottom: 15px;
}

.portal-empty h3 {
    color: var(--cm-navy);
    margin-bottom: 8px;
}

.portal-empty p {
    color: #6C7A89;
    margin-bottom: 20px;
}

/* Profile */
.portal-profile-card {
    display: flex;
    align-items: center;
    gap: 30px;
    margin-bottom: 30px;
}

.profile-avatar i {
    font-size: 5rem;
    color: var(--cm-cyan);
}

.profile-details { flex: 1; }

.profile-row {
    display: flex;
    padding: 10px 0;
    border-bottom: 1px solid #eef2f7;
}

.profile-label {
    width: 120px;
    font-weight: 600;
    color: var(--cm-navy);
    font-size: 0.9rem;
}

.profile-value {
    color: #444;
    font-size: 0.95rem;
}

.portal-help-box {
    background: linear-gradient(135deg, var(--cm-navy), #132d52);
    border-radius: 12px;
    padding: 25px 30px;
    color: #fff;
}

.portal-help-box h3 {
    color: #fff;
    margin-bottom: 8px;
}

.portal-help-box h3 i {
    color: var(--cm-cyan);
    margin-right: 8px;
}

.portal-help-box p {
    color: rgba(255,255,255,0.7);
    margin-bottom: 15px;
}

.help-actions {
    display: flex;
    gap: 12px;
}

/* Payment Options */
.btn-pay-now {
    background: var(--cm-success);
    color: #fff;
    border: none;
    padding: 6px 14px;
    border-radius: 4px;
    font-size: 0.85rem;
    cursor: pointer;
    font-weight: 500;
    transition: var(--cm-transition);
}
.btn-pay-now:hover {
    background: #219a52;
    transform: translateY(-1px);
}
.text-muted {
    color: var(--cm-gray);
    font-size: 0.85rem;
}

.payment-options-header {
    text-align: center;
    margin-bottom: 30px;
}
.payment-options-header h2 {
    color: var(--cm-navy);
    font-family: var(--cm-font-heading);
    font-size: 1.6rem;
    margin-bottom: 8px;
}
.payment-options-header h2 i {
    color: var(--cm-cyan);
    margin-right: 8px;
}
.payment-options-header p {
    color: var(--cm-gray);
    font-size: 0.95rem;
}

.payment-methods-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
    margin-bottom: 30px;
}

.payment-method-card {
    background: #fff;
    border-radius: var(--cm-radius);
    border: 1px solid var(--cm-border);
    padding: 24px;
    transition: var(--cm-transition);
    position: relative;
    overflow: hidden;
}
.payment-method-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
}
.mpesa-card::before {
    background: linear-gradient(90deg, #4CAF50, #8BC34A);
}
.till-card::before {
    background: linear-gradient(90deg, #FF9800, #FFC107);
}
.bank-card::before {
    background: linear-gradient(90deg, #1976D2, #42A5F5);
}
.payment-method-card:hover {
    box-shadow: var(--cm-shadow-lg);
    transform: translateY(-3px);
}

.payment-method-icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
    font-size: 1.4rem;
}
.mpesa-card .payment-method-icon {
    background: #e8f5e9;
    color: #4CAF50;
}
.till-card .payment-method-icon {
    background: #fff3e0;
    color: #FF9800;
}
.bank-card .payment-method-icon {
    background: #e3f2fd;
    color: #1976D2;
}

.payment-method-card h3 {
    font-family: var(--cm-font-heading);
    color: var(--cm-navy);
    font-size: 1.1rem;
    margin-bottom: 16px;
}

.payment-details {
    background: var(--cm-gray-light);
    border-radius: 6px;
    padding: 14px;
    margin-bottom: 16px;
}
.payment-detail-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 6px 0;
    border-bottom: 1px solid var(--cm-border);
}
.payment-detail-row:last-child {
    border-bottom: none;
}
.detail-label {
    font-size: 0.85rem;
    color: var(--cm-gray);
    font-weight: 500;
}
.detail-value {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--cm-navy);
    letter-spacing: 0.5px;
}

.btn-copy {
    background: none;
    border: 1px solid var(--cm-border);
    border-radius: 4px;
    padding: 4px 8px;
    cursor: pointer;
    color: var(--cm-gray);
    font-size: 0.8rem;
    transition: var(--cm-transition);
}
.btn-copy:hover {
    background: var(--cm-cyan);
    color: #fff;
    border-color: var(--cm-cyan);
}
.btn-copy.copied {
    background: var(--cm-success);
    color: #fff;
    border-color: var(--cm-success);
}

.payment-steps {
    margin-top: 12px;
}
.payment-steps p {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--cm-navy);
    margin-bottom: 8px;
}
.payment-steps ol {
    padding-left: 18px;
    margin: 0;
}
.payment-steps ol li {
    font-size: 0.82rem;
    color: var(--cm-gray);
    line-height: 1.7;
}

.payment-notice {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    background: #fff8e1;
    border: 1px solid #ffe082;
    border-radius: var(--cm-radius);
    padding: 16px 20px;
}
.payment-notice i {
    color: #FF9800;
    font-size: 1.3rem;
    margin-top: 2px;
}
.payment-notice p {
    margin: 0;
    font-size: 0.9rem;
    color: #5d4037;
    line-height: 1.6;
}
.payment-notice a {
    color: #4CAF50;
    font-weight: 600;
    text-decoration: none;
}
.payment-notice a:hover {
    text-decoration: underline;
}

/* Portal Responsive */
@media (max-width: 768px) {
    .portal-stats {
        grid-template-columns: repeat(2, 1fr);
    }
    .portal-tabs {
        flex-wrap: wrap;
    }
    .portal-tab {
        flex: 1 1 48%;
    }
    .portal-profile-card {
        flex-direction: column;
        text-align: center;
    }
    .profile-row {
        flex-direction: column;
        gap: 4px;
    }
    .portal-logout {
        position: static;
        display: inline-block;
        margin-top: 10px;
    }
    .payment-methods-grid {
        grid-template-columns: 1fr;
    }
    .payment-notice {
        flex-direction: column;
    }
    .payment-detail-row {
        flex-wrap: wrap;
        gap: 4px;
    }
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 768px) {
    .hero-section h1 {
        font-size: 2rem;
    }

    .header-inner {
        flex-wrap: wrap;
    }

    .main-navigation ul {
        flex-direction: column;
        gap: 10px;
        display: none;
    }

    .main-navigation.active ul {
        display: flex;
    }

    .mobile-toggle {
        display: block;
        color: var(--cm-white);
        font-size: 1.5rem;
        cursor: pointer;
        background: none;
        border: none;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .team-showcase {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .video-grid {
        grid-template-columns: 1fr;
    }
}

@media (min-width: 769px) {
    .mobile-toggle {
        display: none;
    }
}

/* ============================================
   WHATSAPP FLOATING BUTTON OVERRIDE
   ============================================ */
.ht-ctc-chat {
    z-index: 9999 !important;
}
