/* Hirly/styling/pages/page-about.css */
/* Redesigned About Us page: Neat, Elegant, Clean, and Optimized for Compact Sections (Final Pass) */

/* General Page Content Container Adjustment */
.page-content {
    /* Removed padding-top here to prevent gap between header and hero */
    padding-bottom: var(--spacing-xxl); /* Slightly increased bottom padding */
    display: flex;
    flex-direction: column;
    gap: var(--spacing-xl); /* Reduced space between major sections from xxl to xl */
    background-color: var(--background-light); /* Ensure main content area uses the unified background */
}

/* Consistent Section Headings - Lean and impactful */
.section-heading {
    font-size: var(--font-size-xxl); /* Main headings concise and crisp */
    color: var(--text-dark);
    margin-bottom: var(--spacing-md); /* Slightly increased space below main heading */
    font-weight: 700;
    text-align: center;
    line-height: 1.2;
}

/* Section Titles (Sub-headings for sections) - Super compact */
.section-title {
    text-align: center;
    margin-bottom: var(--spacing-xl); /* Slightly increased space below title */
    display: flex; /* Make it a flex container */
    flex-direction: column; /* Stack children vertically */
    align-items: center; /* Center children horizontally */
    justify-content: center; /* Center children vertically (if applicable) */
}

.section-title h2 {
    font-size: var(--font-size-lg); /* Slightly larger size */
    color: var(--primary-dark);
    margin-bottom: var(--spacing-sm); /* Slightly increased space below */
    font-weight: 600;
}

.section-title p {
    font-size: var(--font-size-base); /* Slightly larger body text size */
    color: var(--text-body);
    max-width: 700px; /* Adjusted width for better text flow and centering */
    margin-left: auto;
    margin-right: auto;
    line-height: 1.7; /* Slightly increased line height for readability */
    text-align: center; /* Ensure text is centered within its block */
}

/* New Hero Section - Ultra Sleek */
.about-hero-new {
    /* Using a subtle gradient from primary-extra-light to white for a soft, unified start */
    background: linear-gradient(135deg, var(--primary-extra-light) 0%, var(--white) 100%);
    padding: var(--spacing-xl) var(--spacing-md); /* Reduced top padding for hero itself from xxl to xl */
    text-align: center;
    border-radius: 0;
    box-shadow: none;
    margin-bottom: var(--spacing-xl); /* Reduced consistent spacing to next section from xxl to xl */
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.about-hero-new .hero-content {
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--spacing-md); /* Reduced gap from lg to md */
    padding: 0 var(--spacing-md);
}

.about-hero-new h1 {
    font-size: calc(var(--font-size-xxxl) * 1.2);
    color: var(--primary-dark);
    line-height: 1.2;
    font-weight: 700;
    max-width: 800px;
    margin: 0 auto;
}

.about-hero-new p {
    font-size: var(--font-size-lg);
    color: var(--text-body);
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.6;
}

.about-hero-new .hero-cta {
    display: flex;
    gap: var(--spacing-md);
    justify-content: center;
    margin-top: var(--spacing-lg);
}

.about-hero-new .btn-lg {
    font-size: var(--font-size-base);
    padding: var(--spacing-md) var(--spacing-xl);
    min-width: 200px;
    transition: transform 0.2s ease;
    font-weight: 600;
}

.about-hero-new .btn-lg:hover {
    transform: translateY(-2px);
}

/* Our Story / Who We Are Section - Extremely Concise */
.story-section {
    padding: var(--spacing-xl) 0; /* Reduced vertical padding from xxl to xl */
    background-color: var(--background-light); /* Ensure consistent background */
}

.story-section .content-wrapper {
    display: flex;
    align-items: center;
    gap: var(--spacing-xl); /* Increased gap for closer elements */
    flex-direction: column; /* Default to column for mobile */
    max-width: 1000px; /* Wider container */
    margin: 0 auto;
}

.story-section .story-text {
    flex: 1;
    text-align: center; /* Center text on mobile */
}

.story-section .story-text p {
    font-size: var(--font-size-base); /* Slightly larger text */
    color: var(--text-body);
    line-height: 1.7;
    margin-bottom: var(--spacing-lg);
    max-width: 550px; /* Slightly wider text block */
    margin-left: auto;
    margin-right: auto;
}

.story-section .story-text .btn {
    margin-top: var(--spacing-lg); /* Increased button margin from md to lg for better separation */
}

.story-section .story-image {
    flex: 1;
    display: flex;
    justify-content: center; /* Center image on mobile */
    align-items: center;
}

.story-section .story-image .img-fluid {
    max-width: 100%;
    height: auto;
    border-radius: var(--border-radius); /* Softer, larger radius */
    box-shadow: none; /* No shadow */
}

/* Mission, Vision & Values Section - Minimalist & Compact Cards */
.mission-values-section {
    background-color: var(--primary-extra-light); /* Using the new light primary for section background */
    padding: var(--spacing-xl) var(--spacing-md); /* Reduced padding from xxl to xl */
    border-radius: var(--border-radius-lg);
    box-shadow: none; /* No box-shadow */
}

.mission-values-section .section-title {
    margin-bottom: var(--spacing-lg); /* Reduced space below title from xl to lg */
}

.mission-vision-container {
    display: grid;
    grid-template-columns: 1fr; /* Stack on mobile */
    gap: var(--spacing-md); /* Reduced space between cards from xl to md */
    max-width: 800px; /* Wider container */
    margin: 0 auto var(--spacing-lg); /* Reduced space below from xl to lg */
}

.mission-card,
.vision-card {
    background-color: var(--white); /* Pure white for cards on light primary background */
    padding: var(--spacing-lg); /* Reduced internal padding from xl to lg */
    border-radius: var(--border-radius); /* Softer, larger radius */
    box-shadow: var(--shadow-sm); /* Adding a subtle shadow to lift cards */
    text-align: center;
    border: 1px solid var(--border-color); /* Light border */
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--spacing-xs); /* Very tight gap within card */
    transition: transform 0.1s ease, box-shadow 0.1s ease; /* Ultra fast transition */
}
.mission-card:hover, .vision-card:hover {
    transform: translateY(-2px); /* Very subtle lift */
    box-shadow: var(--shadow-md); /* Slightly more pronounced shadow on hover */
}

.mission-card .icon-large,
.vision-card .icon-large {
    font-size: var(--font-size-xxl); /* Larger icon size */
    color: var(--primary);
    margin-bottom: var(--spacing-md);
}

.mission-card h3,
.vision-card h3 {
    font-size: var(--font-size-lg);
    color: var(--primary-dark);
    margin-bottom: var(--spacing-sm);
}

.mission-card p,
.vision-card p {
    font-size: var(--font-size-base); /* Slightly larger body text */
    color: var(--text-body);
    line-height: 1.6;
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); /* Slightly wider grid items */
    gap: var(--spacing-md); /* Increased gap */
    max-width: 900px; /* Wider grid container */
    margin: 0 auto;
}

.value-card {
    background-color: var(--white); /* Pure white for cards on light primary background */
    padding: var(--spacing-lg); /* Increased internal padding */
    border-radius: var(--radius-sm); /* Even smaller radius */
    box-shadow: var(--shadow-sm); /* Adding a subtle shadow to lift cards */
    text-align: center;
    transition: transform 0.1s ease, box-shadow 0.1s ease; /* Ultra fast transition */
    border: 1px solid var(--border-color); /* Light border */
}
.value-card:hover {
    transform: translateY(-2px); /* Very subtle lift */
    box-shadow: var(--shadow-md); /* Slightly more pronounced shadow on hover */
}
.value-card .value-icon {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: var(--spacing-sm);
    font-size: var(--font-size-xxl); /* Larger icons */
    color: var(--accent); /* Using accent color */
}
.value-card h3 {
    color: var(--primary-dark);
    margin-bottom: var(--spacing-sm);
    font-size: var(--font-size-base);
}
.value-card p {
    font-size: var(--font-size-sm); /* Slightly larger text */
    color: var(--text-light);
    margin-bottom: 0;
    line-height: 1.5;
}

/* How It Works Section - Minimal Tabs and Steps */
.how-it-works-section {
    padding: var(--spacing-xl) 0; /* Reduced vertical padding from xxl to xl */
    background-color: var(--background-light); /* Ensure consistent background */
}

.about-tabs {
    display: flex;
    justify-content: center;
    margin-bottom: var(--spacing-lg); /* Reduced space below tabs from xl to lg */
    border-bottom: 1px solid var(--border-color); /* Subtle tab separator */
    gap: var(--spacing-md); /* Reduced space between tabs from lg to md */
}

.about-tab {
    background-color: transparent;
    border: none;
    padding: var(--spacing-sm) var(--spacing-md);
    font-size: var(--font-size-lg); /* Slightly larger tab text size */
    font-weight: 600;
    color: var(--text-light);
    cursor: pointer;
    transition: all 0.1s ease; /* Ultra fast transition */
    position: relative;
    border-bottom: 2px solid transparent; /* Thinner active indicator */
}

.about-tab:hover:not(.active) {
    color: var(--primary);
}

.about-tab.active {
    color: var(--primary-dark);
    border-color: var(--primary);
}

.steps-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); /* Slightly wider steps container */
    gap: var(--spacing-md); /* Reduced gap from lg to md */
    padding: var(--spacing-lg);
    max-width: 900px; /* Wider container */
    margin: 0 auto;
}

.steps-container .step-card {
    background-color: var(--white); /* Pure white for cards on light background */
    padding: var(--spacing-lg); /* Increased internal padding */
    border-radius: var(--radius-sm); /* Even smaller radius */
    box-shadow: var(--shadow-sm); /* Adding a subtle shadow to lift cards */
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--spacing-sm);
    transition: transform 0.1s ease, box-shadow 0.1s ease; /* Ultra fast transition */
}

.steps-container .step-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.steps-container .step-icon {
    font-size: var(--font-size-xxl); /* Larger icon size */
    color: var(--primary);
    margin-bottom: var(--spacing-md);
}

.steps-container .step-card h3 {
    font-size: var(--font-size-lg);
    color: var(--primary-dark);
    margin-bottom: var(--spacing-sm);
}

.steps-container .step-card p {
    font-size: var(--font-size-base); /* Slightly larger body text */
    color: var(--text-body);
    line-height: 1.6;
}


/* Why Choose Section (Features Grid) - Clean and Concise */
.why-choose-section {
    background-color: var(--primary-extra-light); /* Using the new light primary for section background */
    padding: var(--spacing-xl) var(--spacing-md); /* Reduced padding from xxl to xl */
    border-radius: var(--border-radius-lg);
    box-shadow: none; /* No box-shadow */
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); /* Slightly wider grid items */
    gap: var(--spacing-md); /* Reduced gap from lg to md */
    max-width: 1000px; /* Wider grid container */
    margin: 0 auto;
}

.feature-card {
    background-color: var(--white); /* Pure white for cards on light primary background */
    padding: var(--spacing-lg); /* Increased internal padding */
    border-radius: var(--radius-sm); /* Even smaller radius */
    box-shadow: var(--shadow-sm); /* Adding a subtle shadow to lift cards */
    text-align: center;
    transition: transform 0.1s ease, box-shadow 0.1s ease; /* Ultra fast transition */
    border: 1px solid var(--border-color); /* Light border */
}

.feature-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.feature-card .feature-icon {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: var(--spacing-sm);
    font-size: var(--font-size-xxl); /* Larger icon size */
    color: var(--primary);
}

.feature-card h3 {
    color: var(--primary-dark);
    margin-bottom: var(--spacing-sm);
    font-size: var(--font-size-lg);
}

.feature-card p {
    font-size: var(--font-size-base); /* Slightly larger text */
    color: var(--text-light);
    margin-bottom: 0;
    line-height: 1.5;
}

/* Final Call to Action - Very Concise & Impactful */
.cta-bottom {
    /* Background is now the primary dark for a strong, unified closing */
    background-color: var(--background-dark); /* Dark Gray/Almost Black for strong CTA */
    color: var(--white); /* White text for contrast */
    padding: var(--spacing-xl) var(--spacing-md); /* Reduced padding from xxl to xl */
    text-align: center;
    border-radius: var(--border-radius); /* Softer, smaller radius */
    box-shadow: none; /* No shadow */
}

.cta-bottom .cta-content {
    max-width: 800px; /* Wider content area */
    margin: 0 auto;
}

.cta-bottom h2 {
    font-size: var(--font-size-xxl); /* Impactful title for CTA */
    margin-bottom: var(--spacing-lg); /* Increased space below title */
    line-height: 1.2;
    color: var(--white); /* Ensure heading is white on dark background */
}

.cta-bottom p {
    font-size: var(--font-size-lg); /* Slightly larger paragraph */
    margin-bottom: var(--spacing-xl); /* Increased space below paragraph */
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.5;
    color: var(--text-on-dark); /* Use the new text-on-dark for subtle text on dark background */
}

.cta-bottom .cta-buttons {
    display: flex;
    justify-content: center;
    gap: var(--spacing-lg); /* Increased space between buttons */
    flex-wrap: wrap;
}

/* Adjust button styles for optimal contrast on the new darker CTA background */
.cta-bottom .btn-primary {
    background-color: var(--white); /* White background for primary button */
    color: var(--primary-dark); /* Dark primary text on white */
    border-color: var(--white);
}
.cta-bottom .btn-primary:hover {
    background-color: var(--primary-light); /* New primary-light for hover background */
    color: var(--primary-dark); /* Dark primary text on hover */
    border-color: var(--primary-light);
}

.cta-bottom .btn-outline-white {
    /* This button is now on a dark background, so white outline is appropriate */
    border-color: var(--white);
    color: var(--white);
    background-color: transparent;
}
.cta-bottom .btn-outline-white:hover {
    background-color: rgba(255, 255, 255, 0.15); /* Subtle white overlay */
    color: var(--white);
    border-color: var(--white);
}


/* Responsive Design for the new layout - Optimized for ultra-compactness */
@media (min-width: 992px) {
    .story-section .content-wrapper {
        flex-direction: row; /* Two columns on larger screens */
        text-align: left; /* Align text left */
    }

    .story-section .story-text {
        text-align: left; /* Ensure text is left-aligned on desktop */
    }

    .story-section .story-image {
        order: 2; /* Image on right */
    }

    .mission-vision-container {
        grid-template-columns: 1fr 1fr; /* Two columns for mission/vision cards */
    }
}

@media (max-width: 768px) {
    .page-content {
        padding-left: var(--spacing-md);
        padding-right: var(--spacing-md);
        gap: var(--spacing-xl); /* Reduced gap for mobile sections from xxl to xl */
    }

    .about-hero-new {
        padding: var(--spacing-lg) var(--spacing-md); /* Reduced padding for mobile hero */
    }
    .about-hero-new h1 {
        font-size: var(--font-size-xxl);
    }
    .about-hero-new p {
        font-size: var(--font-size-base);
        margin-bottom: var(--spacing-lg);
    }

    .section-heading {
        font-size: var(--font-size-xxl);
    }
    .section-title h2 {
        font-size: var(--font-size-lg);
    }
    .section-title p {
        font-size: var(--font-size-base);
    }

    .mission-card,
    .vision-card {
        padding: var(--spacing-md); /* Reduced padding for mobile cards */
    }
    .mission-card .icon-large,
    .vision-card .icon-large {
        font-size: var(--font-size-xxl);
    }
    .mission-card h3,
    .vision-card h3 {
        font-size: var(--font-size-lg);
    }

    .about-tabs {
        flex-direction: column;
        gap: var(--spacing-sm);
        margin-bottom: var(--spacing-lg);
        border-bottom: none; /* Remove border on mobile */
    }
    .about-tab {
        font-size: var(--font-size-base);
        padding: var(--spacing-sm) var(--spacing-md);
        border-bottom: none; /* Remove bottom border */
        border-radius: var(--radius-sm);
        background-color: var(--background-light);
    }
    .about-tab.active {
        background-color: var(--primary);
        color: var(--white);
        border-color: var(--primary);
    }
    .about-tab:hover:not(.active) {
        background-color: var(--primary-light);
        color: var(--primary-dark);
    }

    .steps-container, .values-grid, .features-grid {
        grid-template-columns: 1fr; /* Single column for all card grids on small screens */
        padding: var(--spacing-md);
    }
    .step-card, .value-card, .feature-card {
        padding: var(--spacing-md);
    }
    .steps-container .step-icon,
    .value-card .value-icon,
    .feature-card .feature-icon {
        font-size: var(--font-size-xxl);
    }

    .cta-bottom {
        padding: var(--spacing-xl) var(--spacing-md); /* Reduced padding for mobile CTA */
    }
    .cta-bottom h2 {
        font-size: var(--font-size-xxl);
    }
    .cta-bottom p {
        font-size: var(--font-size-base);
    }
    .cta-bottom .cta-buttons {
        flex-direction: column;
        gap: var(--spacing-md);
    }
    .cta-bottom .btn {
        width: 100%; /* Full width buttons on mobile */
    }

    .about-hero-new .hero-cta {
        flex-direction: column;
        gap: var(--spacing-sm);
    }

    .about-hero-new .btn-lg {
        width: 100%;
        min-width: unset;
    }
}
