/* app.css - Mobile App UI Styles */

.app-ui {
    background-color: #f2f2f6; /* iOS gray background */
    margin: 0;
    padding: 0;
    padding-top: 60px; /* Space for Top App Bar */
    padding-bottom: 90px; /* Space for Bottom Nav */
    font-family: 'Outfit', sans-serif;
    -webkit-font-smoothing: antialiased;
}

/* Typography Resets for App */
.app-ui h1, .app-ui h2, .app-ui h3 {
    margin-top: 0;
    color: #1c1c1e;
}

/* Top App Bar */
.app-top-bar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 60px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    border-bottom: 1px solid rgba(0,0,0,0.05);
    box-shadow: 0 1px 3px rgba(0,0,0,0.02);
}

.app-top-bar .app-logo {
    height: 32px;
}

.app-top-bar .app-action {
    position: absolute;
    right: 16px;
    color: var(--accent-red);
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
}

/* App Hero Swiper */
.app-hero-container {
    width: 100%;
    height: 50vh;
    position: relative;
    overflow: hidden;
    background: #000;
}

.app-hero-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.85;
}

.app-hero-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 40px 20px 20px;
    background: linear-gradient(to top, rgba(0,0,0,0.9), transparent);
    color: white;
}

.app-hero-tag {
    background: var(--accent-red);
    color: white;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 4px 8px;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
    display: inline-block;
}

.app-hero-overlay h1 {
    color: white;
    font-size: 2.2rem;
    line-height: 1.1;
    margin-bottom: 8px;
}

.app-hero-overlay p {
    font-size: 0.95rem;
    color: #e5e5ea;
    margin: 0;
}

/* Generic App Card */
.app-card {
    background: #ffffff;
    border-radius: 4px;
    margin: 16px;
    padding: 24px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.04);
    overflow: hidden;
}

/* Grid Row (Replacing Horizontal Scroller) */
.app-scroll-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    padding: 0 16px;
}

/* For full-width stacked rows, use an override class or direct styling */
.app-scroll-row.stacked {
    grid-template-columns: 1fr;
}

.app-cert-item {
    background: white;
    padding: 12px;
    border-radius: 4px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.03);
    display: flex;
    align-items: center;
    justify-content: center;
    height: 60px;
}

.app-cert-item img {
    height: 100%;
    width: auto;
}

/* Story Card */
.app-story-card {
    padding: 0;
}

.app-story-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.app-story-content {
    padding: 24px;
}

.app-story-content h2 {
    font-size: 1.6rem;
    margin-bottom: 12px;
}

.app-story-content p {
    color: #3a3a3c;
    line-height: 1.5;
    font-size: 0.95rem;
    margin-bottom: 16px;
}

.app-story-content .read-more {
    color: var(--accent-red);
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

/* Feature Cards (The Edge) */
.app-feature-card {
    display: flex;
    flex-direction: column;
    padding: 0;
    position: relative;
}

.app-feature-image {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.app-feature-text {
    padding: 20px;
}

.app-feature-ordinal {
    position: absolute;
    top: 12px;
    right: 16px;
    background: rgba(255,255,255,0.9);
    backdrop-filter: blur(5px);
    color: var(--text-primary);
    font-weight: 700;
    font-size: 1rem;
    padding: 4px 10px;
    border-radius: 4px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

/* Dark B2B Card */
.app-b2b-card {
    background: #1c1c1e;
    color: white;
}

.app-b2b-card h2 {
    color: white;
}

.app-b2b-card p {
    color: #aeaeb2;
}

.app-btn-full {
    display: block;
    width: 100%;
    background: var(--accent-red);
    color: white;
    text-align: center;
    padding: 16px;
    border-radius: 4px;
    font-weight: 600;
    font-size: 1.05rem;
    text-decoration: none;
    margin-top: 16px;
}

/* Section Titles inside App */
.app-section-title {
    font-size: 0.85rem;
    font-weight: 700;
    margin: 32px 16px 12px 16px;
    color: #8e8e93;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Redesigned App Quality Assurance & Certifications */
.app-cert-grid-redesign {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    padding: 0 16px;
}

.app-cert-item-redesign {
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.04);
    border-radius: 8px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    box-shadow: 0 4px 12px rgba(43, 37, 33, 0.02);
}

.app-cert-item-redesign img {
    height: 48px;
    object-fit: contain;
    margin-bottom: 8px;
}

.app-cert-item-redesign span {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-primary);
}

/* App Quality Slider */
.app-quality-slider {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 16px;
    padding: 16px;
    scrollbar-width: none; /* Hide scrollbar for Firefox */
}

.app-quality-slider::-webkit-scrollbar {
    display: none; /* Hide scrollbar for Chrome/Safari/Opera */
}

.app-quality-card-new {
    flex: 0 0 85%;
    scroll-snap-align: center;
    background: #ffffff;
    border-radius: 12px;
    padding: 24px;
    border: 1px solid rgba(43, 37, 33, 0.04);
    box-shadow: 0 8px 24px rgba(43, 37, 33, 0.03);
    position: relative;
    overflow: hidden;
}

.app-quality-card-new::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background-color: var(--accent-red);
}

.app-quality-card-new:nth-child(even)::before {
    background-color: var(--accent-gold);
}

.app-quality-badge-num {
    font-family: var(--font-heading);
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--accent-gold);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
    display: block;
}

.app-quality-card-new h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.app-quality-card-new p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.55;
    margin: 0;
}

.app-quality-indicator-dots {
    display: flex;
    justify-content: center;
    gap: 6px;
    margin-top: 4px;
    margin-bottom: 24px;
}

.app-quality-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.15);
    transition: background-color var(--transition-fast), width var(--transition-fast);
}

.app-quality-dot.active {
    width: 14px;
    border-radius: 3px;
    background: var(--accent-red);
}

/* ---- App UI Style Overrides (No Rounded Corners / Sharp Editorial Look) ---- */
.app-ui .app-card, 
.app-ui .app-cert-item, 
.app-ui .app-cert-item-redesign, 
.app-ui .app-quality-card-new, 
.app-ui .app-btn-full, 
.app-ui .app-story-image, 
.app-ui .app-feature-image,
.app-ui .app-feature-card,
.app-ui .app-feature-ordinal,
.app-ui .app-timeline-card,
.app-ui .app-why-card,
.app-ui .app-sector-tile,
.app-ui .app-cta-card,
.app-ui .app-product-card-new,
.app-ui .app-product-card-new img {
    border-radius: 0 !important;
}

/* App Core Values Grid */
.app-values-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    padding: 0 16px;
}

.app-value-card {
    background: #ffffff;
    border: 1px solid rgba(0,0,0,0.04);
    padding: 16px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.02);
    text-align: left;
}

.app-value-card svg {
    color: var(--accent-gold);
    width: 24px;
    height: 24px;
    margin-bottom: 8px;
}

.app-value-card h4 {
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 6px;
    color: var(--text-primary);
}

.app-value-card p {
    font-size: 0.8rem;
    color: #555;
    line-height: 1.4;
    margin: 0;
}

/* App Timeline List */
.app-timeline-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 0 16px;
}

.app-timeline-card {
    background: #ffffff;
    border: 1px solid rgba(0,0,0,0.04);
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.02);
    position: relative;
}

.app-timeline-year {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--accent-red);
    margin-bottom: 6px;
}

.app-timeline-card h4 {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.app-timeline-card p {
    font-size: 0.85rem;
    color: #444;
    line-height: 1.5;
    margin: 0;
}

/* App Why Choose Us Grid */
.app-why-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    padding: 0 16px;
}

.app-why-card {
    background: #ffffff;
    border: 1px solid rgba(0,0,0,0.04);
    padding: 16px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.02);
}

.app-why-card svg {
    color: var(--accent-red);
    width: 24px;
    height: 24px;
    margin-bottom: 8px;
}

.app-why-card h4 {
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 6px;
    color: var(--text-primary);
}

.app-why-card p {
    font-size: 0.8rem;
    color: #555;
    line-height: 1.45;
    margin: 0;
}

/* App Product Highlights Slider */
.app-products-slider {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 12px;
    padding: 16px;
    scrollbar-width: none;
}

.app-products-slider::-webkit-scrollbar {
    display: none;
}

.app-product-card-new {
    flex: 0 0 75%;
    scroll-snap-align: center;
    background: #ffffff;
    border: 1px solid rgba(0,0,0,0.04);
    box-shadow: 0 4px 15px rgba(0,0,0,0.03);
    display: flex;
    flex-direction: column;
}

.app-product-img-wrap {
    height: 140px;
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px;
    border-bottom: 1px solid #f2f2f6;
}

.app-product-img-wrap img {
    max-height: 100%;
    width: auto;
    object-fit: contain;
}

.app-product-info-wrap {
    padding: 16px;
}

.app-product-info-wrap span {
    font-size: 0.7rem;
    color: var(--accent-gold);
    font-weight: 700;
    text-transform: uppercase;
    display: block;
    margin-bottom: 4px;
}

.app-product-info-wrap h4 {
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 6px;
    color: var(--text-primary);
}

.app-product-info-wrap p {
    font-size: 0.8rem;
    color: #666;
    line-height: 1.4;
    margin: 0;
}

/* App Industries Sector Grid */
.app-sector-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    padding: 0 16px;
}

.app-sector-tile {
    background: #ffffff;
    border: 1px solid rgba(0,0,0,0.04);
    padding: 16px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.02);
}

.app-sector-tile svg {
    color: var(--accent-gold);
    width: 24px;
    height: 24px;
    margin-bottom: 8px;
}

.app-sector-tile h4 {
    font-size: 0.9rem;
    font-weight: 700;
    margin: 0;
    color: var(--text-primary);
}

/* App CTA Card */
.app-cta-card {
    background-image: linear-gradient(rgba(23, 21, 19, 0.88), rgba(23, 21, 19, 0.94)), url('images/hero_food_spread.png');
    background-size: cover;
    background-position: center;
    color: #ffffff;
    margin: 16px;
    padding: 32px 24px;
    text-align: center;
    border: 1px solid rgba(212, 175, 55, 0.15);
}

.app-cta-card h3 {
    font-family: var(--font-serif);
    font-size: 1.4rem;
    color: #ffffff;
    margin-bottom: 12px;
}

.app-cta-card p {
    font-size: 0.85rem;
    color: #ccc;
    line-height: 1.5;
    margin-bottom: 20px;
}

/* App 2x2 Products Grid */
.app-products-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    padding: 0 16px;
}

.app-product-card-grid {
    background: #ffffff;
    border: 1px solid rgba(0,0,0,0.04);
    box-shadow: 0 2px 8px rgba(0,0,0,0.02);
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
}

.app-product-card-grid:active {
    background: #fcfcfd;
}

.app-ui .app-product-card-grid {
    border-radius: 0 !important;
}

/* App Media Slider */
.app-media-slider {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 12px;
    padding: 16px;
    scrollbar-width: none;
}

.app-media-slider::-webkit-scrollbar {
    display: none;
}

.app-media-card {
    flex: 0 0 80%;
    scroll-snap-align: center;
    background: #ffffff;
    border: 1px solid rgba(0,0,0,0.04);
    box-shadow: 0 4px 15px rgba(0,0,0,0.03);
    display: flex;
    flex-direction: column;
}

.app-media-thumb {
    position: relative;
    height: 130px;
    background: #000;
}

.app-media-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.85;
}

.app-media-play {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 44px;
    height: 44px;
    background: var(--accent-red);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.app-media-play svg {
    width: 20px;
    height: 20px;
    color: #ffffff;
    margin-left: 2px;
}

.app-media-time {
    position: absolute;
    bottom: 8px;
    right: 8px;
    background: rgba(0,0,0,0.75);
    color: #fff;
    font-size: 0.7rem;
    padding: 2px 4px;
}

.app-media-info {
    padding: 12px;
}

.app-media-info h4 {
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 4px;
    color: var(--text-primary);
}

.app-media-info p {
    font-size: 0.8rem;
    color: #666;
    line-height: 1.4;
    margin: 0;
}

.app-ui .app-media-card,
.app-ui .app-media-thumb {
    border-radius: 0 !important;
}



