/* ===== HERO SECTION ===== */
.hero-section {
    padding: 2rem 0;
    background: white;
}

.hero-banner {
    position: relative;
    background-color: #f3e3cd;
    border-radius: 1.5rem;
    overflow: hidden;
    display: flex;
    align-items: center;
    min-height: 384px;
}

.hero-content {
    position: relative;
    z-index: 2;
    width: 50%;
    padding: 3rem 0 3rem 3.5rem;
}

.hero-logo {
    width: 100%;
    max-width: 420px;
    height: auto;
    margin-bottom: 2rem;
}

.hero-content p {
    font-size: 1.35rem;
    color: #3a3a3a;
    margin-bottom: 2rem;
    line-height: 1.5;
    font-weight: 400;
}

.hero-image {
    position: absolute;
    top: -110px;
    right: 0;
    width: 70%;
    height: 100%;
}

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

/* Fade image into cream background on its left edge */
.hero-image::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 35%;
    height: 100%;
    background: linear-gradient(to right, #f3e3cd 0%, rgba(243,227,205,0.6) 50%, rgba(243,227,205,0) 100%);
    z-index: 1;
    pointer-events: none;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn-explore {
    background-color: #b91c1c;
    color: white;
    border: none;
    padding: 0.75rem 2rem;
    font-weight: 600;
    border-radius: 2rem;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.btn-explore:hover {
    background-color: #b91c1c;
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(220, 38, 38, 0.3);
    color: white;
}

.btn-support {
    background-color: #00377a;
    color: white;
    border: none;
    padding: 0.75rem 2rem;
    font-weight: 600;
    border-radius: 2rem;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.btn-support:hover {
    background-color: #1e3a8a;
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(30, 64, 175, 0.3);
    color: white;
}
a {
    color: rgba(var(--bs-link-color-rgb), var(--bs-link-opacity, 1));
    text-decoration: none!important;
}
/* ===== WHAT IS SECTION ===== */
.what-section {
    padding: 2rem 0;
    background: white;
}

.what-section .container {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
}

.what-section h2 {
    color: var(--primary-red);
    font-weight: 700;
    font-size: 45px;
    margin-bottom: 1.5rem;
}

.what-section p {
    font-size: 1.05rem;
    color: #555;
    margin-bottom: 3rem;
    line-height: 1.8;
    /* max-width: 600px; */
}
/*.device-image{
    position: absolute;
}
.device-image picture{
    position: relative;
    width: 100%;
    z-index: 2;
    left: 75%;
    top: 40px;
}*/
.device-image picture img{
    max-height: 480px;
    object-fit: contain;
}

.feature-trio {
    display: flex;
    gap: 3rem;
    margin-bottom: 0;
}

.feature-item {
    text-align: center;
}

.feature-icon {
    display: flex;
    justify-content: center;
    margin-bottom: 1rem;
}

.feature-icon img {
    width: 80px;
    height: 80px;
}

.feature-item h3 {
    color: var(--primary-red);
    font-weight: 700;
    font-size: 1.5rem;
    margin-bottom: 0.4rem;
}

.feature-item p {
    font-size: 0.95rem;
    color: #555;
    margin: 0;
    max-width: none;
}

.device-image {
    text-align: center;
}

.device-image picture {
    display: inline-block;
}

.device-image img {
    width: auto;
    max-width: 100%;
    max-height: 420px;
    height: auto;
    margin: 0 auto;
}

/* ===== KEY FEATURES SECTION ===== */
.features-section {
    padding: 4rem 0;
    background: white;
}

.features-section .container {
    background-color: #f3f3f3;
    border-radius: 2rem;
    padding: 4rem 3rem;
    /* max-width: 1200px; */
}

.features-section h2 {
    text-align: center;
    color: var(--primary-red);
    font-weight: 700;
    font-size: 45px;
    margin-bottom: 1rem;
}

.features-section > .container > p {
    text-align: center;
    color: #555;
    margin-bottom: 3rem;
    font-size: 1.05rem;
}

.feature-card {
    background: white;
    border-radius: 1rem;
    padding: 2.5rem 2rem;
    text-align: center;
    transition: all 0.3s ease;
    height: 100%;
}

.feature-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.08);
}

.feature-card .icon {
    font-size: 2.75rem;
    color: var(--primary-blue);
    margin-bottom: 1.25rem;
    line-height: 1;
}

.feature-card h3 {
    color: var(--primary-blue);
    font-weight: 700;
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

.feature-card p {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0;
}

/* Bakery image fills the 8th grid slot */
.features-bakery {
    height: 100%;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    position: absolute;
    /* padding-bottom: 1rem; */
    z-index: 1;
    left: 24%;
    /* bottom: 10px; */
    top: 130px;
    width: max-content;
}

.features-bakery::before {
    content: "";
    position: absolute;
    bottom: 1.5rem;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 340px;
    aspect-ratio: 1 / 1;
    background-color: #e6e6e6;
    border-radius: 50%;
    z-index: 0;
}

.features-bakery picture {
    position: relative;
    z-index: 1;
    display: block;
    width: 100%;
    text-align: center;
    height: 427px;
}

.features-bakery img {
    width: 100%;
    max-width: 390px;
    height: auto;
    margin: 0 auto;
}
.features-section .container .features-bakery-main{
    position: relative;
}

/* ===== QUERIES SECTION ===== */
.queries-section {
    padding: 5rem 0;
    background: white;
}

.queries-section h2 {
    text-align: center;
    color: var(--primary-red);
    font-weight: 700;
    font-size: 45px;
    margin-bottom: 1rem;
}

.queries-section > .container > p {
    text-align: center;
    color: #000000;
    margin-bottom: 3rem;
    font-size: 25px;
}

.helpdesk-card {
    background: white;
    border-radius: 1rem;
/*    padding: 2rem 2rem 2rem 0;*/
    /* border: 1px solid #e5e7eb; */
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.helpdesk-wrapper {
    display: flex;
/*    flex-direction: column-reverse;*/
    gap: 1.5rem;
}
.helpdesk-image {
    min-width: 135px;
    max-width: 135px;
    width: 135px;
}

.helpdesk-image {
    text-align: center;
}

.helpdesk-image img {
    max-width: 100%;
    height: auto;
    max-height: 280px;
    object-fit: contain;
}



.helpdesk-icon {
    font-size: 3rem;
    color: var(--primary-blue);
    margin-bottom: 1.5rem;
}

.helpdesk-card h3 {
    color: #00377A;
    font-weight: 700;
    font-size: 27px;
    margin-bottom: 1.5rem;
}

.helpdesk-info {
    flex-grow: 1;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.info-item i {
    color: var(--primary-blue);
    font-size: 1.2rem;
    margin-top: 0.25rem;
    flex-shrink: 0;
}

.info-item div {
    flex-grow: 1;
}

.info-label {
    font-size: 0.85rem;
    color: #888;
    margin-bottom: 0.25rem;
}

.info-content {
    color: #222;
    font-weight: 500;
    font-size: 20px;
}
.info-item .info-icon {
    width: 35px;
    height: 35px;
    margin-top: 0;
    flex-shrink: 0;
}
.feature-card .icon {
    display: flex;
    justify-content: center;
}
.feature-card .icon img {
    width: 80px;
    height: 80px;
}

/* ===== TOUCH-FRIENDLY TARGETS ===== */
@media (hover: none) and (pointer: coarse) {
    .btn-explore, .btn-support {
        padding: 0.85rem 2.2rem;
        min-height: 48px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    .feature-card,
    .helpdesk-card {
        cursor: pointer;
    }

    a {
        min-height: 44px;
        display: inline-block;
    }
}

/* ===== IMAGE OPTIMIZATION ===== */
img {
    max-width: 100%;
    height: auto;
    display: block;
}

.hero-image img,
.device-image img,
.features-bottom-image img {
    width: 100%;
    height: auto;
    object-fit: cover;
}

/* ===== CONTAINER PADDING FOR SMALL SCREENS ===== */
@media (max-width: 576px) {
    .container {
        padding-left: 0.75rem;
        padding-right: 0.75rem;
    }
}

/* ===== RESPONSIVE - EXTRA SMALL PHONES (320px - 480px) ===== */
@media (max-width: 576px) {
    body {
        font-size: 14px;
    }

    .hero-section {
        padding: 1rem 0;
    }

    .hero-banner {
        flex-direction: column;
        min-height: auto;
        border-radius: 1rem;
    }

    .hero-content {
        width: 100%;
        padding: 2rem 1.5rem 1.5rem;
        text-align: center;
        order: 2;
    }

    .hero-logo {
        max-width: 260px;
        margin: 0 auto 1.5rem;
    }

    .hero-content p {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }

    .hero-image {
        position: relative;
        top: auto;
        right: auto;
        width: 100%;
        height: 240px;
        order: 1;
    }

    .hero-image::before {
        display: none;
    }

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

    .hero-buttons {
        flex-direction: column;
        gap: 0.75rem;
        justify-content: center;
    }

    .btn-explore, .btn-support {
        width: 100%;
        padding: 0.65rem 1.5rem;
        font-size: 0.95rem;
        text-align: center;
    }

    .what-section,
    .features-section,
    .queries-section {
        padding: 2rem 0;
    }

    .features-section .container {
        padding: 2rem 1.25rem;
        border-radius: 1.25rem;
    }

    .features-bakery {
        margin-top: 1rem;
    }

    .features-bakery img {
        max-width: 320px;
    }

    .feature-card {
        padding: 1.75rem 1.5rem;
    }

    .what-section h2,
    .features-section h2,
    .queries-section h2 {
        font-size: 1.5rem;
        margin-bottom: 1rem;
    }

    .what-section p,
    .features-section > .container > p,
    .queries-section > .container > p {
        font-size: 0.95rem;
    }

    .feature-trio {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        gap: 1.5rem;
        text-align: center;
    }

    .feature-item {
        flex: 1;
        min-width: 90px;
    }

    .feature-item h3 {
        font-size: 1.2rem;
    }

    .feature-item p {
        font-size: 0.8rem;
    }

    .feature-icon img {
        width: 60px;
        height: 60px;
    }

    .what-section p {
        text-align: center;
    }

    .device-image {
        margin-top: 2rem;
    }

    .device-image img {
        max-height: 360px;
    }

    .feature-card {
        padding: 1.2rem;
    }

    .feature-card h3 {
        font-size: 1.1rem;
        margin-bottom: 0.75rem;
    }

    .feature-card p {
        font-size: 0.9rem;
    }

    .feature-card .icon {
        font-size: 2.5rem;
        margin-bottom: 1rem;
    }

    .helpdesk-card {
        padding: 1.5rem;
        margin-bottom: 1.5rem;
    }

    .helpdesk-icon {
        font-size: 2.5rem;
    }

    .helpdesk-card h3 {
        font-size: 1.1rem;
    }

    .helpdesk-wrapper {
        flex-direction: column-reverse;
    }

    .helpdesk-image img {
        max-height: 200px;
    }

    .info-item {
        margin-bottom: 0.75rem;
        gap: 0.75rem;
    }

    .info-label {
        font-size: 0.8rem;
    }

    .info-content {
        font-size: 0.9rem;
    }
}

/* ===== RESPONSIVE - SMALL TABLETS (576px - 768px) ===== */
@media (min-width: 577px) and (max-width: 768px) {
    .hero-section {
        padding: 1.5rem 0;
    }

    .hero-banner {
        flex-direction: column;
        min-height: auto;
    }

    .hero-content {
        width: 100%;
        padding: 2.5rem 2rem 2rem;
        text-align: center;
        order: 2;
    }

    .hero-logo {
        max-width: 320px;
        margin: 0 auto 1.5rem;
    }

    .hero-content p {
        font-size: 1.1rem;
    }

    .hero-image {
        position: relative;
        top: auto;
        right: auto;
        width: 100%;
        height: 300px;
        order: 1;
    }

    .hero-image::before {
        display: none;
    }

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

    .hero-buttons {
        justify-content: center;
    }

    .btn-explore, .btn-support {
        text-align: center;
    }

    .what-section,
    .features-section,
    .queries-section {
        padding: 3rem 0;
    }

    .what-section {
        padding-bottom: 0rem;
    }

    .what-section h2,
    .features-section h2,
    .queries-section h2 {
        font-size: 1.75rem;
    }

    .feature-trio {
        flex-direction: row;
        justify-content: center;
        gap: 2.5rem;
    }

    .device-image {
        margin-top: 1rem !important;
    }

    .device-image img {
        max-height: 340px;
    }

    .feature-card {
        padding: 1.5rem;
    }

    .feature-card h3 {
        font-size: 1.1rem;
    }

    .helpdesk-card {
        margin-bottom: 2rem;
    }
}

/* ===== RESPONSIVE - MEDIUM TABLETS (769px - 1024px) ===== */
@media (min-width: 769px) and (max-width: 1024px) {
    .hero-content {
        padding: 2.5rem 0 2.5rem 2.5rem;
    }

    .hero-logo {
        max-width: 340px;
    }

    .hero-content p {
        font-size: 1.15rem;
    }

    .feature-trio {
        gap: 2rem;
    }

    .what-section,
    .features-section,
    .queries-section {
        padding: 4rem 0;
    }

    .helpdesk-wrapper {
        flex-direction: column-reverse;
    }
}

/* ===== RESPONSIVE - LARGE DESKTOPS (1400px+) ===== */
@media (min-width: 1400px) {
    .container {
        max-width: 1320px;
    }

    .hero-banner {
        min-height: 340px;
    }

    .hero-logo {
        max-width: 460px;
    }

    .feature-trio {
        gap: 3.5rem;
    }

    .helpdesk-wrapper {
        flex-direction: row;
        align-items: center;
        gap: 0px;
    }

    .helpdesk-image {
        flex: 0 0 auto;
        width: 240px;
        min-width: 240px;
        max-width: 240px;
    }

    .helpdesk-card {
        flex: 1;
    }
}

/* ===== RESPONSIVE - LANDSCAPE MODE ===== */
@media (max-height: 600px) and (orientation: landscape) {
    .hero-section {
        padding: 1.5rem 0;
    }

    .hero-content h1 {
        margin-bottom: 0.75rem;
    }

    .hero-buttons {
        margin-bottom: 1rem;
    }
}
/* ===== TABLET & MOBILE FIX: reset absolute-positioned images to normal flow ===== */
@media (max-width: 1024px) {
    /* What-section QR device */
    .device-image {
        position: relative !important;
        text-align: center;
        margin-top: 2rem;
    }
    .device-image picture {
        position: relative;
        left: auto !important;
        top: auto !important;
        width: auto;
        display: inline-block;
    }
    .device-image picture img,
    .device-image img {
        max-height: 400px;
        width: auto;
        margin: 0 auto;
    }

    /* Key Features bakery */
    .features-bakery {
        position: relative !important;
        left: auto !important;
        top: auto !important;
        width: auto !important;
        height: 100%;
        margin-top: 0;
        padding-bottom: 1rem;
    }
    .features-bakery picture {
        height: auto !important;
    }
    .features-bakery img {
        max-width: 360px;
    }
    .features-bakery::before {
        bottom: 1.5rem;
        max-width: 300px;
    }
    .helpdesk-image {
    order: 1;
}
}

/* Desktop: vertical line between columns */
@media (min-width: 768px) {
    .queries-section .row > [class*="col-"]:nth-child(2) {
        border-left: 2px solid #dcdcdc;
    }
}

/* Mobile: horizontal line when stacked */
@media (max-width: 767.98px) {
    .queries-section .row > [class*="col-"]:nth-child(2) {
        border-top: 1px solid #dcdcdc;
        margin-top: 1.5rem;
        padding-top: 2rem;
    }

    /* Image on the left, details on the right */
    .queries-section .helpdesk-wrapper {
        flex-direction: row;
        align-items: center;
        gap: 1rem;
    }

    .queries-section .helpdesk-image {
        flex: 0 0 auto;
        width: 95px;
        order: 0;
        margin: 0;
    }

    .queries-section .helpdesk-image img {
        max-height: 170px;
        width: 100%;
    }

    .queries-section .helpdesk-card {
        flex: 1;
        order: 1;
        padding: 0;
        margin: 0;
    }

    .queries-section .helpdesk-card h3 {
        font-size: 18px;
        margin-bottom: 1rem;
    }

    .queries-section .info-content {
        font-size: 0.95rem;
    }

    .queries-section .info-item {
        margin-bottom: 0.6rem;
        gap: 0.6rem;
    }

    .queries-section .info-item .info-icon {
        width: 24px;
        height: 24px;
    }
    .hero-banner .hero-image {
    order: 2;
}
#features {
    padding-bottom: 0;
}
#features .container {
    padding-bottom: 0;
}
#features .features-bakery {
    padding: 0;
    position: relative;
    bottom: -47px;
}
#queries {
    padding-top: 70px;
}
.helpdesk-image {
    min-width: 90px;
    max-width: 90px;
    width: 90px;
}
}