/* Home page styles (Original) */
.hero {
    text-align: center;
    padding: 5rem 2rem;
    background-color: var(--bg-light);
}

.hero h1 {
    font-size: var(--font-size-4xl);
    margin-bottom: 1rem;
    color: var(--color-black);
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    color: var(--text-secondary);
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.features {
    padding: 4rem 2rem;
    background-color: var(--bg-white);
}

.features h2 {
    text-align: center;
    margin-bottom: 3rem;
    color: var(--color-black);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.feature-card {
    padding: 1.5rem;
    border-radius: var(--radius-none);
    text-align: center;
}

.feature-card i {
    font-size: var(--font-size-4xl);
    color: var(--color-black);
    margin-bottom: 1rem;
}

.feature-card h3 {
    margin-bottom: 1rem;
    color: var(--color-black);
}

/* Modern Homepage Styles - Hero Section */
.hero-section {
    position: relative;
    height: 100dvh;
    min-height: 700px;
    display: flex;
    align-items: center;
    background: var(--bg-white);
    border-bottom: 1px solid var(--border-color);
}

.hero-content {
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 4rem;
    position: relative;
    z-index: 2;
    text-align: left;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 6rem;
    align-items: center;
}

.hero-text {
    max-width: 720px;
}

.welcome-text {
    font-size: var(--font-size-sm);
    font-weight: var(--font-weight-medium);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.hero-title {
    font-size: clamp(2.75rem, 4.5vw, 5.5rem);
    line-height: 1.05;
    font-weight: 500;
    margin-bottom: 2.5rem;
    letter-spacing: -0.035em;
}

.hero-subtitle {
    font-size: clamp(1.125rem, 1.4vw, 1.5rem);
    color: var(--text-secondary);
    margin-bottom: 0;
    line-height: 1.65;
    max-width: 48ch;
}

.value-prop {
    margin-bottom: 4rem;
    position: relative;
    z-index: 2;
    max-width: 800px; /* From older style */
    /* text-align from .hero-text will apply if nested, or center if top level */
}

.value-prop p {
    font-size: var(--font-size-lg);
    line-height: 1.6;
    margin-bottom: 2rem;
    color: var(--color-gray-800);
}

/* .btn-sign-up removed — use standard .btn .btn-primary */

.hero-image-container {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.hero-image {
    width: 100%;
    max-width: 640px;
    aspect-ratio: 4 / 5;
    overflow: hidden;
    margin-left: auto;
}

.hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

/* Floating profiles (decorative for hero) */
.floating-profiles {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
}

.profile-img {
    position: absolute;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: contain;
}
.p1 { top: 10%; left: 15%; }
.p2 { top: 5%; right: 20%; }
.p3 { top: 40%; left: 5%; }
.p4 { top: 30%; right: 10%; }
.p5 { bottom: 20%; left: 20%; }
.p6 { bottom: 15%; right: 25%; }


/* Logos Section */
.logos-section {
    padding: 2rem 0;
    background-color: var(--bg-white);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.logos-title {
    text-align: center;
    color: var(--text-muted);
    font-weight: var(--font-weight-medium);
    margin-bottom: 2rem;
    font-size: var(--font-size-base);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.logos-grid {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 2.5rem;
    max-width: 1200px;
    margin: 0 auto;
}

.logo-item {
    width: 140px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    filter: grayscale(100%);
    opacity: 0.7;
    transition: all var(--transition-slow);
}

.logo-item:hover {
    filter: grayscale(0%);
    opacity: 1;
}

.logo-item img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

/* Featured Section (Modern) */
.featured-section {
    padding: 4rem 0 8rem 0;
    background: var(--bg-white);
}

.stats-grid { /* Modern stats grid for homepage */
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin: 4rem auto;
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 800px;
}

.stat-item { /* from modern homepage styles */
    text-align: center;
}

.stat-number {
    font-size: var(--font-size-4xl);
    font-weight: var(--font-weight-semibold);
    letter-spacing: -0.02em;
    margin-bottom: 0.5rem;
}

.stat-label { /* from modern homepage styles, distinct from dashboard .stat-label */
    font-size: var(--font-size-sm);
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.featured-grid { /* Modern featured grid, distinct from older .features-grid */
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.featured-item {
    padding: 2rem;
    transition: background-color var(--transition-base);
}

.featured-image {
    width: 100%;
    aspect-ratio: 1/1;
    max-height: 160px;
    margin-bottom: 2rem;
    overflow: hidden;
}

.featured-image img {
    width: 100%;
    height: 100%;
    max-width: 160px;
    object-fit: contain;
}

.featured-title {
    margin-bottom: 1.5rem;
}

.featured-description {
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Reconciled/Modern Features Section (from lines 2577-2603) */
.features-section { /* This replaces the older .features */
    padding: 6rem 0;
    background: var(--bg-white);
}

/* This is the modern .features-grid, different from the one at line 785 */
.features-section .features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* This is the modern .feature-card */
.features-section .feature-card {
    text-align: center;
}

.feature-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-body);
    border-radius: var(--radius-none);
}

.feature-icon i {
    font-size: var(--font-size-2xl);
    color: var(--color-black);
}

.feature-title {
    font-size: var(--font-size-lg);
    font-weight: var(--font-weight-semibold);
    margin-bottom: 1rem;
}

.feature-description {
    font-size: var(--font-size-sm);
    color: var(--text-secondary);
    line-height: 1.6;
}

.feature-content p { /* From line 2970 */
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 0;
    font-size: var(--font-size-base);
}

/* CTA Parallax Section */
.cta-parallax-section {
    position: relative;
    min-height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background-image: url('../images/dwayne-joe-ViRd-VjY9y4-unsplash.webp');
    background-attachment: fixed;
    background-size: cover;
    background-position: center;
    overflow: hidden;
}

.cta-parallax-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1;
}

.cta-parallax-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 680px;
    padding: 6rem 2rem;
}

.cta-parallax-content h2 {
    font-size: clamp(2.25rem, 4vw, 4rem);
    font-weight: 600;
    color: var(--color-white);
    line-height: 1.2;
    letter-spacing: -0.01em;
    margin-bottom: 2.5rem;
}

.cta-parallax-content .btn-outline {
    color: var(--color-gray-300);
    border-color: var(--color-gray-500);
}

.cta-parallax-content .btn-outline:hover {
    color: var(--color-white);
    border-color: var(--color-gray-300);
    background: transparent;
}

/* .btn-cta moved to standard .btn system */

/* Gallery Section */
.gallery-section {
    padding: 8rem 0;
    background: var(--bg-light);
}

.gallery-grid {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1px;
}

.gallery-item {
    aspect-ratio: 1;
    background: var(--border-color);
    overflow: hidden;
    position: relative;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.gallery-item:hover img {
    transform: scale(1.05);
}

.gallery-overlay {
    position: absolute;
    inset: 0;
    background: rgb(0 0 0 / 30%);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0%;
    transition: opacity var(--transition-slow);
}

.gallery-item:hover .gallery-overlay {
    opacity: 100%;
}

.gallery-text {
    color: var(--color-white);
    font-size: var(--font-size-xl);
    font-weight: var(--font-weight-medium);
    letter-spacing: -0.01em;
}

/* Testimonials Section Styles */
.testimonials-section {
    padding: 6rem 0;
    background-color: var(--bg-light);
    border-top: 1px solid var(--border-color);
}

.testimonials-section .container-fluid {
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 4rem;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.testimonial-card {
    background: var(--bg-white);
    box-sizing: border-box;
    padding: 2.5rem;
    border: 1px solid var(--border-color);
    transition: border-color 0.2s ease;
}

.testimonial-card:hover {
    border-color: var(--color-gray-400);
}

.testimonial-card blockquote {
    margin: 0;
    padding: 0;
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.testimonial-card blockquote p {
    font-size: var(--font-size-base);
    line-height: 1.7;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    position: relative;
    flex: 1;
}

.testimonial-card blockquote p .bold-text {
    font-weight: var(--font-weight-semibold);
    color: var(--color-black);
}

.testimonial-card blockquote p .light-text {
    font-weight: 300;
    color: var(--text-muted);
}

.testimonial-card blockquote p::before {
    content: '\201C';
    display: block;
    font-size: 3rem;
    color: rgba(0, 0, 0, 0.1);
    line-height: 1;
    margin-bottom: 0.75rem;
}

.testimonial-card cite {
    font-style: normal;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    border-top: 1px solid var(--border-color);
    padding-top: 1.5rem;
    margin-top: auto;
}

.testimonial-card .author-name {
    font-weight: var(--font-weight-medium);
    font-size: var(--font-size-sm);
    color: var(--color-black);
}

.testimonial-card .author-title {
    font-size: var(--font-size-xs);
    color: var(--text-muted);
}

/* Responsive Styles for Home Page */
@media (max-width: 768px) {
    .hero h1 { /* Original hero responsive */
        font-size: var(--font-size-3xl);
    }

    .hero p { /* Original hero responsive */
        font-size: var(--font-size-base);
    }

    .features-grid { /* Original features-grid responsive */
        grid-template-columns: 1fr;
    }

    .logos-grid {
        gap: 1.5rem;
    }

    .logo-item {
        width: 100px;
        height: 50px;
    }

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

    .featured-grid, 
    .features-section .features-grid {
        grid-template-columns: 1fr;
    }
    
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .testimonials-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .testimonials-section .container-fluid {
        padding: 0 2rem;
    }
}



/* Styles moved from index.php <style> block */

/* Hero trusted logos styles */
.hero-trusted-logos {
    margin-top: 2.5rem;
    width: 100%;
    text-align: center;
}

.trusted-label {
    font-size: var(--font-size-sm);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #555;
    margin-bottom: 1rem;
}

.trusted-logos-img {
    max-width: 100%;
    height: auto;
    opacity: 0.8;
}

/* Section Headlines */
.section-headline {
    display: flex;
    flex-direction: column;
    margin-bottom: 3rem;
    text-align: left;
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
}

.section-headline.centered {
    text-align: center;
}

.section-tag {
    font-size: var(--font-size-sm);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-black);
    margin-bottom: 1rem;
    font-weight: var(--font-weight-medium);
}

.section-headline h2 {
    font-size: var(--font-size-4xl);
    font-weight: var(--font-weight-normal);
    margin: 0;
    line-height: 1.1;
    color: var(--color-black);
}

/* Live Tenders Section Styles */
.live-tenders-section {
    padding: 4rem 0;
    background-color: var(--bg-body);
}

.live-tenders-section .tenders-grid { /* Homepage specific tender grid */
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    max-width: 1400px;
    margin: 0 auto 4rem;
}

.tender-preview-card {
    background: var(--bg-white);
    display: flex;
    flex-direction: column;
    transition: transform var(--transition-slow);
}

.tender-link {
    text-decoration: none;
    color: inherit;
    display: block;
    height: 100%;
}

.tender-preview-image {
    width: 100%;
    height: 240px;
    overflow: hidden;
}

.tender-preview-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.tender-preview-content {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.tender-preview-meta {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.tender-category, .tender-location {
    font-size: var(--font-size-sm);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #555;
}

.tender-preview-title {
    font-size: var(--font-size-xl);
    font-weight: var(--font-weight-medium);
    margin-bottom: 0.75rem;
    color: var(--color-black);
}

.tender-preview-description {
    font-size: 0.95rem;
    line-height: 1.5;
    color: var(--color-gray-800);
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.tender-preview-footer {
    display: flex;
    justify-content: space-between;
    font-size: var(--font-size-sm);
    color: #555;
    margin-top: auto;
}

.tenders-cta {
    text-align: center;
    margin-top: 2rem;
}

/* How It Works Section Styles */
.how-it-works-section {
    padding: 8rem 0;
    background-color: var(--bg-white);
    position: relative;
}

.process-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.process-visual {
    position: relative;
    margin: 3.5rem 0 0 0;
}

.process-horizontal-line {
    position: absolute;
    top: 24px;
    left: 0;
    right: 0;
    height: 1.5px;
    background: #bbb;
    z-index: 1;
}

.process-grid {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    position: relative;
    z-index: 2;
    gap: 5rem;
}

.process-step {
    flex: 1 1 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    min-width: 0;
    padding: 0 1rem;
}

.step-number {
    width: 44px;
    height: 44px;
    background: var(--bg-white);
    border: 1.5px solid #bbb;
    border-radius: var(--radius-circle);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--font-size-xl);
    font-weight: var(--font-weight-normal);
    color: #444;
    margin-bottom: 0.5rem;
    position: relative;
    z-index: 2;
    box-shadow: none;
}

.step-content h3 {
    font-size: var(--font-size-xl);
    font-weight: var(--font-weight-medium);
    margin-bottom: 1rem;
    margin-top: 1rem;
    letter-spacing: 0.01em;
    color: #222;
}

.step-content p {
    font-size: 0.98rem;
    color: #444;
    line-height: 1.6;
    margin: 0;
    font-weight: var(--font-weight-normal);
}

.process-cta {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 4rem;
}

.process-image-container {
    margin-top: 2rem;
    width: 100%;
    height: auto;
    overflow: hidden;
}

.process-image {
    width: 100%;
    height: 100%;
    max-width: 1400px;
    margin: 0 auto;
}

.process-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    max-height: 650px;
}


/* Hero CTA Group */
.hero-cta-group {
    display: flex;
    gap: 1rem;
    margin-top: 3rem;
}

/* Gallery grid update for 992px breakpoint */
@media (max-width: 992px) { 
    .hero-section {
        height: auto;
        min-height: auto;
        padding-top: 8rem;
        padding-bottom: 4rem;
    }
    
    .hero-content {
        padding: 0 2rem;
    }

    .hero-grid {
        display: flex;
        flex-direction: column;
        text-align: center;
        align-items: center;
        gap: 3rem;
    }

    .hero-text {
        order: 2;
        max-width: 600px;
    }

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

    .hero-image-container {
        order: 1;
        max-width: 500px;
        margin: 0 auto;
        width: 100%;
    }

    .hero-cta-group {
        justify-content: center;
    }
    .hero-image {
        width: 100%;
        max-width: 500px;
        margin-left: 0;
        aspect-ratio: 4 / 5;
    }
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .process-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .process-cta {
        margin-top: 2rem;
    }
}

@media (max-width: 768px) {
    .hero-section {
        padding-top: 6rem; /* More padding on mobile */
        padding-bottom: 4rem;
        min-height: auto; /* Allow natural height */
        height: auto; /* Override 100dvh for mobile */
        margin-bottom: 0;
    }
    .hero-content {
        padding: 0 1.5rem;
    }
    .hero-grid {
        flex-direction: column; /* Stack vertically */
        gap: 3rem;
        text-align: center;
    }
    .hero-text {
        order: 2; /* Text second on mobile */
        max-width: 100%;
    }
    .hero-image-container {
        order: 1; /* Image first on mobile */
        margin: 0 auto;
        max-width: 100%;
        display: flex;
        justify-content: center;
    }
    .hero-image {
        width: 100%;
        max-width: 350px;
        aspect-ratio: 4 / 5;
    }
    .hero-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center;
    }
    .hero-title {
        font-size: 2.25rem; 
        margin-bottom: 1.5rem;
    }
    .hero-subtitle {
        font-size: var(--font-size-base); 
    }
    .hero-cta-group {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
        margin-top: 2rem;
    }
    .hero-cta-group .btn {
        width: 100%;
        max-width: 320px;
        text-align: center;
    }
    .hero-trusted-logos {
        margin-top: 3rem;
    }
    .trusted-label {
        font-size: 0.8rem;
    }

    .section-headline {
        margin-bottom: 3rem;
        align-items: center; /* Center align for mobile (was in 1200px) */
        text-align: center; /* Center align for mobile (was in 1200px) */
    }
    .section-tag {
        font-size: 0.8rem;
        margin-bottom: 0.75rem;
    }
    .section-headline h2 {
        font-size: var(--font-size-3xl); /* Reduce section heading size */
    }

    .how-it-works-section,
    .live-tenders-section {
        padding: 4rem 0; /* Uniform padding for sections */
    }
    .testimonials-section {
        padding: 4rem 0;
    }
    .process-step {
        text-align: center;
    }

    .cta-parallax-section {
        background-attachment: scroll;
        min-height: 50vh;
    }
    .cta-parallax-content {
        padding: 4rem 1.5rem;
    }

    .live-tenders-section .tenders-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem; /* Reduce gap for stacked tender cards */
    }
    .tender-preview-content {
        padding: 1.25rem;
    }
    .tender-preview-title {
        font-size: 1.15rem;
    }

    .testimonials-grid {
        grid-template-columns: 1fr;
    }
    .testimonials-section .container-fluid {
        padding: 0 1.5rem;
    }
    .testimonial-card {
        padding: 2rem 1.5rem;
    }
    .testimonial-card blockquote p {
        font-size: var(--font-size-sm);
        line-height: 1.6;
    }


    .logos-grid {
        gap: 1.5rem;
    }
    .logo-item {
        width: 100px;
        height: 50px;
    }
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem; /* Reduce gap for stats grid */
    }
    .stat-item {
        margin-bottom: 1rem; /* Add some space between stacked stat items */
    }
    .stat-number {
        font-size: var(--font-size-3xl);
    }
    .stat-label {
        font-size: 0.8rem; /* Reduce stat label size */
    }

    .featured-grid, 
    .features-section .features-grid {
        grid-template-columns: 1fr;
        gap: 2rem; /* Adjust gap for featured/features grid */
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: var(--font-size-3xl);
    }
    .hero-subtitle {
        font-size: var(--font-size-base);
    }
    .section-headline h2 {
        font-size: 1.75rem;
    }
    .live-tenders-section .tender-preview-title {
        font-size: 1.1rem;
    }
    .testimonial-card blockquote p {
        font-size: 0.9rem;
    }
    .photo-placeholder { /* from our-story, but good to keep consistent small screen handling */
        width: 100%;
        max-width: 200px; /* Smaller placeholder on very small screens */
        height: 250px;
    }
}

@media (max-width: 900px) {
  .process-container {
    max-width: 100%;
    padding: 0 0.5rem;
  }
  .process-grid {
    flex-direction: column;
    gap: 2.5rem;
    align-items: center;
  }
  .process-horizontal-line {
    display: none;
  }
  .process-step {
    align-items: center;
    text-align: center;
    padding: 0 0 2rem 0;
    width: 100%;
    max-width: 400px;
  }
}

@media (max-width: 600px) {
  .process-step {
    padding-bottom: 2.5rem;
    max-width: 100%;
  }
} 
/* 16:9 Vimeo embed in "How it works" */
.how-it-works-frame {
    padding: 56.25% 0 0 0;
    position: relative;
}

.how-it-works-frame iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}
