/* ============================================
   HYPERLOCAL DELIVERY PAGE STYLES
   ============================================ */

/* CSS Custom Properties for consistent theming */
.hyperlocal-delivery {
    --primary-blue: #1E3A8A;
    --secondary-blue: #2F55D4;
    --gradient-start: #FFFFFF;
    --gradient-end: #CADCFE;
    --text-dark: #333333;
    --text-light: #FFFFFF;
    --shadow-text: rgba(0, 0, 0, 0.7);
    --hero-overlay: rgba(0, 0, 0, 0.85);

    --spacing-xs: 0.75rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2rem;
    --spacing-xl: 2.5rem;
    --spacing-2xl: 5rem;

    --border-radius: 1.5rem;
    --card-padding: 1.5rem;
}

/* Hero Section */
.hyperlocal-hero {
    position: relative;
    background-image: url("/media/hyperlocal-delivery.png");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 !important;
}

.hyperlocal-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--hero-overlay);
    z-index: 1;
}

.hyperlocal-hero-content {
    position: relative;
    z-index: 2;
    max-width: 53.3125rem;
    margin: 0 auto;
    text-align: center;
    padding: var(--spacing-md);
}

.hyperlocal-hero-title {
    font-weight: 600;
    font-size: clamp(2rem, 4vw, 3rem);
    line-height: 1.3;
    letter-spacing: -0.02em;
    color: var(--text-light);
    text-shadow: 2px 2px 4px var(--shadow-text);
    margin-bottom: var(--spacing-md);
}

.hyperlocal-hero-subtitle {
    font-weight: 500;
    font-size: clamp(1.125rem, 2.5vw, 1.5rem);
    line-height: 1.4;
    color: var(--text-light);
    text-shadow: 1px 1px 2px var(--shadow-text);
    margin-bottom: var(--spacing-lg);
}

.hyperlocal-hero-button {
    margin-top: var(--spacing-md);
    text-transform: uppercase;
}

/* Section Spacing */
.hyperlocal-spacer {
    height: var(--spacing-2xl);
}

/* Content Sections */
.hyperlocal-content-header {
    max-width: 62rem;
    margin: 0 auto var(--spacing-xl);
    text-align: center;
    padding: 0 var(--spacing-md);
}

.hyperlocal-section-title {
    font-weight: 600;
    font-size: clamp(2rem, 3.5vw, 3rem);
    line-height: 1.3;
    color: var(--primary-blue);
    margin-bottom: var(--spacing-md);
}

.hyperlocal-section-subtitle {
    font-weight: 400;
    font-size: clamp(1.125rem, 2vw, 1.5rem);
    line-height: 1.4;
    color: var(--text-dark);
}

/* Feature Grid */
.hyperlocal-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(2, 1fr);
    gap: 40px 20px;
    justify-content: space-between;
    margin: 0px auto;
    margin-top: 40px;
}

.hyperlocal-card {
    min-height: 18.75rem;
    border-radius: var(--border-radius);
    background: linear-gradient(180deg, var(--gradient-start) 0%, var(--gradient-end) 100%);
    display: flex;
    flex-direction: column;
    padding: var(--card-padding);
    box-sizing: border-box;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.hyperlocal-card-icon {
    width: 3.75rem;
    height: 3.75rem;
    margin-bottom: var(--spacing-md);
    flex-shrink: 0;
}

.hyperlocal-card-content {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.hyperlocal-card-title {
    font-weight: 600;
    font-size: 1.3rem;
    line-height: 1.4;
    color: var(--text-dark);
    margin-bottom: var(--spacing-sm);
}

.hyperlocal-card-description {
    font-weight: 400;
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text-dark);
}

/* Integration Section */
.hyperlocal-integration-title {
    font-weight: 600;
    font-size: clamp(2rem, 3vw, 2.8125rem);
    line-height: 1.3;
    color: var(--secondary-blue);
    margin-bottom: var(--spacing-md);
}

.hyperlocal-integration-description {
    font-weight: 400;
    font-size: 1.2rem;
    line-height: 1.6;
    color: var(--text-dark);
}

.hyperlocal-faq details[open] p {
    padding-left: 10px !important;
    font-size: 1.2rem !important;
}

.hyperlocal-faq-heading {

    background: linear-gradient(180deg, #1E3A8A 0%, #98E0FA 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Utility Classes */
.blue-primary {
    color: var(--primary-blue);
}

.blue-secondary {
    color: var(--secondary-blue);
}

.image-group {
    position: relative;
    width: 100%;


}

.image-group .image-back {
    width: 100%;
}


.image-group .image-front {
    position: absolute;
    bottom: 0;
    width: 300px;
    right: 100px;
}

.hyperlocal-integration-image-container {
    display: flex;
    gap: 20px;
    align-items: center;
    justify-content: space-between;
    margin-top: 20px;
    flex-wrap: wrap;
}

.hyperlocal-integration-image-container img {
    height: 50px;
    padding: 10px;
    width: 150px;
    object-fit: scale-down;
    box-shadow: rgba(0, 0, 0, 0.02) 0px 1px 3px 0px, rgba(27, 31, 35, 0.15) 0px 0px 0px 1px;
    border-radius: 15px;
}

.hyperlocal-grid.transparent-bg {
    gap: 60px 20px;
}

.hyperlocal-grid.transparent-bg .hyperlocal-card {
    background: transparent !important;
    text-align: center;
    position: relative;
}

.hyperlocal-grid.transparent-bg .hyperlocal-card .arrow-icon {
    position: absolute;
    right: -50px;
    top: 90px;
    width: 80px;
}

.hyperlocal-grid.transparent-bg .hyperlocal-card:nth-child(3) .arrow-icon {
    bottom: 0px;
    top: 95%;
    right: 45%;
    transform: rotate(90deg);
}

.hyperlocal-grid.transparent-bg .hyperlocal-card:nth-child(6) .arrow-icon {
    display: none;
}

.hyperlocal-grid.transparent-bg .hyperlocal-card:nth-child(4) .arrow-icon,
.hyperlocal-grid.transparent-bg .hyperlocal-card:nth-child(5) .arrow-icon {
    transform: rotate(180deg);
}

.hyperlocal-grid.transparent-bg .hyperlocal-card-icon {
    width: 120px;
    height: 120px;
    margin: 0 auto;
    margin-bottom: 30px;
}

.hyperlocal-grid.transparent-bg .hyperlocal-card-title {
    font-weight: 700;

}

.hyperlocal-blue-bg {
    background-color: #2F55D4;
}

.hyperlocal-blue-gradient-bg {
    background: linear-gradient(180deg, #5E5EDF 0%, #1E3A8A 100%);

}

.hyperlocal-white-button {
    background-color: #FFFFFF !important;
    color: #2f55d4 !important;
    text-transform: uppercase;
}

.hyperlocal-color-1 {
    background-color: #F5F5F5;
}

.hyperlocal-delivery-grocery {
    background-color: #98E0FA;
}

.hyperlocal-delivery-grocery img {
    width: 150px;
}

.hyperlocal-delivery-apparel {
    background: #F6F6F6;

}

.hyperlocal-delivery-apparel p {
    color: #1E3A8A;
}


.hyperlocal-delivery-beauty {
    background: #2A78E6;

}

.hyperlocal-delivery-beauty p {
    color: #fff;
}

.hyperlocal-delivery-beauty img {
    width: 130px;
}

.hyperlocal-delivery-wellness {
    background: #D9D9D9;

}

.hyperlocal-delivery-wellness p {
    color: #2F55D4;
}

.hyperlocal-delivery-wellness img {
    width: 180px;
}

.hyperlocal-grid.transparent-bg.grid-2 {
    grid-template-columns: repeat(2, 1fr);
    gap: 30px 0px;
}

.hyperlocal-grid.transparent-bg.grid-2 .hyperlocal-card {
    min-height: auto;
    border-radius: 0px;
    border-style: solid;
    padding: 0px 10px;
    border-left: 3px solid;
    border-image: linear-gradient(180deg, #2F55D4 0%, #FFFFFF 100%) 1;
    border-top: none;
    border-right: none;
    border-bottom: none;

}

/* Feature Comparison Table */
.feature-table {
    margin: 3rem auto 0;
    overflow: hidden;
}

.feature-table-header {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    padding: 0;
}

.feature-table-header-cell {
    padding: 1.5rem 1rem;
    text-align: center;
    font-weight: 600;
    font-size: 1.1rem;
    color: white;
}

.feature-table-header-cell:first-child {
    text-align: left;
    padding-left: 2rem;
}

.feature-table-body {
    display: flex;
    flex-direction: column;
}

.feature-table-row {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    transition: background-color 0.3s ease;
    border-bottom: 1px solid #ffffff40;
}

.feature-table-row:hover {
    background: rgba(255, 255, 255, 0.05);
}

.feature-table-cell {
    padding: 1.25rem 1rem;
    color: #CCCCCC;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
}

.feature-table-cell:first-child {
    justify-content: flex-start;
    padding-left: 2rem;
    font-weight: 500;
}

.feature-icon {
    margin-right: 0.5rem;
    font-size: 1.2rem;
}

.check-icon {
    width: 32px;
    height: 32px;
    background: #10B981;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    font-size: 1.2rem;
}

.cross-icon {
    width: 32px;
    height: 32px;
    background: #EF4444;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    font-size: 1.2rem;
}

.tchip {
    background: #272736;
    padding: 4px;
    border-radius: 50px;

    margin: 0 auto;
    border: 1px solid #fff;
    font-weight: 600;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hyperlocal-hero {
        min-height: 80vh;
    }

    /* Reduce all font sizes by 1/3 on small screens, then increase by 5px */
    .hyperlocal-hero-title {
        font-size: clamp(1.5rem, 2.67vw, 2.31rem);
    }

    .hyperlocal-hero-subtitle {
        font-size: clamp(1.06rem, 1.67vw, 1.31rem);
    }

    .hyperlocal-section-title {
        font-size: clamp(1.64rem, 2.33vw, 2.31rem);
    }

    .hyperlocal-section-subtitle {
        font-size: clamp(1.06rem, 1.33vw, 1.31rem);
    }

    .hyperlocal-card-title {
        font-size: 1.18rem;
    }

    .hyperlocal-card-description {
        font-size: 1rem;
    }

    .hyperlocal-integration-title {
        font-size: clamp(1.5rem, 2vw, 2.185rem);
    }

    .hyperlocal-integration-description {
        font-size: 1rem;
    }

    .hyperlocal-faq details[open] p {
        font-size: 1.11rem !important;
    }

    .feature-table-header-cell {
        font-size: 1.04rem;
    }

    .feature-table-cell {
        font-size: 0.98rem;
    }

    .feature-icon {
        font-size: 1.11rem;
    }

    .check-icon,
    .cross-icon {
        font-size: 1.11rem;
    }

    .hyperlocal-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-md);
    }

    .hyperlocal-card {
        min-height: auto;
    }


    .feature-table {
        margin: 2rem 1rem 0;
    }

    .feature-table-header {
        grid-template-columns: 1.5fr 1fr 1fr;
    }

    .feature-table-row {
        grid-template-columns: 1.5fr 1fr 1fr;
    }

    .feature-table-header-cell,
    .feature-table-cell {
        padding: 1rem 0.5rem;
    }

    .feature-table-cell:first-child {
        padding-left: 1rem;
    }

    .feature-table-header-cell:first-child {
        padding-left: 1rem;
    }

    .check-icon,
    .cross-icon {
        width: 28px;
        height: 28px;
    }

    .feature-table-header-cell:not(:first-child) {
        padding: 1rem 1rem;
        margin: 0.25rem;
        border-radius: 6px;
    }

    .tchip {
        background: transparent;
        border: none;
        font-size: 0.84rem;
        padding: 0px;
        margin: 0px;
    }
}

@media (max-width: 480px) {
    .hyperlocal-hero-content {
        padding: var(--spacing-sm);
    }

    /* Keep 1/3 reduction consistent on extra small screens, then increase by 5px */
    .hyperlocal-hero-title {
        font-size: clamp(1.64rem, 2.67vw, 2.31rem);
    }

    .hyperlocal-hero-subtitle {
        font-size: clamp(1rem, 1.67vw, 1.31rem);
    }

    .hyperlocal-section-title {
        font-size: clamp(1.64rem, 2.33vw, 2.31rem);
    }

    .hyperlocal-section-subtitle {
        font-size: clamp(1.06rem, 1.33vw, 1.31rem);
    }

    .hyperlocal-card-title {
        font-size: 1.18rem;
    }

    .hyperlocal-card-description {
        font-size: 0.98rem;
    }

    .hyperlocal-integration-title {
        font-size: clamp(1.64rem, 2vw, 2.185rem);
    }

    .hyperlocal-integration-description {
        font-size: 1.11rem;
    }

    .hyperlocal-faq details[open] p {
        font-size: 1.11rem !important;
    }


    .feature-table-header-cell {
        font-size: 1.04rem;
    }

    .feature-table-cell {
        font-size: 0.98rem;
    }

    .feature-icon {
        font-size: 1.11rem;
    }

    .check-icon,
    .cross-icon {
        font-size: 1.11rem;
    }

    .hyperlocal-content-header {
        padding: 0 var(--spacing-sm);
    }

    .hyperlocal-grid {
        padding: 0 var(--spacing-sm);
        gap: var(--spacing-sm);
    }

    .hyperlocal-card {
        padding: var(--spacing-md);
    }

    .feature-table-header-cell,
    .feature-table-cell {
        padding: 0.75rem 0.25rem;
    }

    .feature-table-cell:first-child {
        padding-left: 0.75rem;
    }

    .feature-table-header-cell:first-child {
        padding-left: 0.75rem;
    }

    .check-icon,
    .cross-icon {
        width: 24px;
        height: 24px;
    }

    /* Responsive adjustments */
    .feature-table-header-cell:not(:first-child) {
        padding: 0.75rem 0.75rem;
        margin: 0.25rem;
        border-radius: 4px;
    }

    .tchip {
        background: transparent;
        border: none;
        font-size: 0.84rem;
        padding: 0px;
        margin: 0px;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .hyperlocal-card {
        border: 2px solid var(--primary-blue);
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    .hyperlocal-card {
        transition: none;
    }

    .hyperlocal-card:hover {
        transform: none;
    }
}

@media (max-width: 768px) {
    .image-group {
        margin-top: 20px;
    }

    .hyperlocal-integration-image-container {
        gap: 2px;
    }

    .hyperlocal-integration-image-container img {
        width: 22%;
        height: 40px;
    }

    .hyperlocal-grid.transparent-bg .hyperlocal-card .arrow-icon,
    .hyperlocal-grid.transparent-bg .hyperlocal-card:nth-child(4) .arrow-icon,
    .hyperlocal-grid.transparent-bg .hyperlocal-card:nth-child(5) .arrow-icon {
        position: absolute;
        left: 40%;
        top: 95%;
        width: 50px;

        transform: translateX(-50%);
        transform: rotate(90deg);
    }

    .hyperlocal-hero-content {
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
    }

    .hyperlocal-delivery-grocery img,
    .hyperlocal-delivery-apparel img,
    .hyperlocal-delivery-beauty img,
    .hyperlocal-delivery-wellness img {
        width: 70%;
        margin-top: 50px;
    }

    .hyperlocal-grid {
        padding: 0px;
    }

    .image-group .image-front {
        width: 100px;
    }

    .hyperlocal-content-header {
        padding: 0;
    }

}