/* =================================================================
   Dana Duhok — Bento layout system
   A modern mosaic of mixed-size, mixed-colour tiles. Used to give
   the homepage a distinctive, non-uniform composition.
   ================================================================= */

.bento {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    grid-auto-rows: minmax(150px, auto);
    gap: 16px;
}
.bento + .bento { margin-top: 16px; }

/* Column spans (12-col) */
.b-3  { grid-column: span 3; }
.b-4  { grid-column: span 4; }
.b-5  { grid-column: span 5; }
.b-6  { grid-column: span 6; }
.b-7  { grid-column: span 7; }
.b-8  { grid-column: span 8; }
.b-12 { grid-column: span 12; }
.b-rows-2 { grid-row: span 2; }

/* Tile base */
.bento__tile {
    position: relative;
    border-radius: var(--radius-xl);
    padding: 28px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    color: var(--c-text);
    text-decoration: none;
    transition: transform .28s cubic-bezier(.2,.7,.2,1), box-shadow .28s ease;
}
a.bento__tile:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); color: inherit; }

/* Tile surfaces */
.tile--surface { background: var(--c-surface); border: 1px solid var(--c-border); box-shadow: var(--shadow-sm); }
.tile--tint    { background: var(--c-tint); }
.tile--solid   { background: var(--c-primary); color: #fff; }
.tile--accent  { background: var(--grad-hero); color: #fff; }
.tile--dark    { background: #0A1326; color: #fff; }
.tile--accent h1, .tile--accent h2, .tile--accent h3,
.tile--solid  h1, .tile--solid  h2, .tile--solid  h3,
.tile--dark   h1, .tile--dark   h2, .tile--dark   h3 { color: #fff; }

/* Decorative soft orb on coloured tiles for depth */
.tile--accent::after, .tile--solid::after, .tile--dark::after {
    content: '';
    position: absolute;
    width: 220px; height: 220px;
    right: -70px; top: -70px;
    border-radius: 50%;
    background: rgba(255,255,255,.10);
    pointer-events: none;
}

/* ---- Hero bento ---- */
.bento--hero { margin-top: 8px; }
.bento__hero-main { justify-content: center; gap: 8px; min-height: 320px; }
.bento__title {
    font-size: clamp(2.3rem, 1.4rem + 3.4vw, 4rem);
    line-height: 1.03;
    letter-spacing: -.035em;
    font-weight: 800;
    margin: 14px 0 12px;
}
.bento__title em { font-style: normal; color: #fff; opacity: .9; }
.bento__lead { font-size: 1.12rem; line-height: 1.6; max-width: 48ch; margin: 0; color: rgba(255,255,255,.92); }
.bento__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.tile--accent .eyebrow { background: rgba(255,255,255,.18); color: #fff; align-self: flex-start; }
.tile--accent .eyebrow__dot { background: #fff; }
/* white CTA on accent tiles */
.tile--accent .btn--primary { background: #fff; color: var(--c-primary-2); box-shadow: none; }
.tile--accent .btn--primary:hover { background: #fff; transform: translateY(-2px); box-shadow: 0 12px 28px -10px rgba(0,0,0,.4); }
.tile--accent .btn--ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.5); }
.tile--accent .btn--ghost:hover { background: rgba(255,255,255,.14); color: #fff; border-color: #fff; }

/* ---- Stat tile ---- */
.stat-tile { justify-content: center; }
.stat-tile__value {
    font-size: clamp(2.2rem, 1.4rem + 2vw, 3rem);
    font-weight: 800; line-height: 1; letter-spacing: -.03em;
    color: var(--c-primary);
}
.tile--solid .stat-tile__value, .tile--dark .stat-tile__value, .tile--accent .stat-tile__value { color: #fff; }
.stat-tile__label { margin-top: 8px; color: var(--c-text-2); font-size: .9rem; }
.tile--solid .stat-tile__label, .tile--dark .stat-tile__label, .tile--accent .stat-tile__label { color: rgba(255,255,255,.85); }
.tile--tint .stat-tile__value { color: var(--c-accent-ink); }

/* ---- Icon/feature tile ---- */
.bento__icon {
    width: 54px; height: 54px; border-radius: var(--radius-md);
    display: inline-flex; align-items: center; justify-content: center;
    background: var(--c-tint); color: var(--c-primary);
    margin-bottom: 16px;
}
.tile--surface .bento__icon { background: var(--grad-primary); color: #fff; box-shadow: var(--shadow-btn); }
.tile--accent .bento__icon, .tile--solid .bento__icon, .tile--dark .bento__icon { background: rgba(255,255,255,.16); color: #fff; }
.bento__icon svg { width: 28px; height: 28px; }
.bento__tile h3 { font-size: 1.25rem; margin: 0 0 8px; }
.bento__tile p  { margin: 0; color: var(--c-text-2); font-size: .96rem; }
.tile--accent p, .tile--solid p, .tile--dark p { color: rgba(255,255,255,.9); }
.bento__more {
    margin-top: auto; padding-top: 16px;
    display: inline-flex; align-items: center; gap: 7px;
    font-weight: 600; font-size: .9rem; color: var(--c-accent-ink);
}
.tile--accent .bento__more, .tile--solid .bento__more, .tile--dark .bento__more { color: #fff; }
.bento__more svg { width: 16px; height: 16px; transition: transform .25s; }
a.bento__tile:hover .bento__more svg { transform: translateX(4px); }

/* chips list inside a tile (e.g. certifications) */
.bento__chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; padding-top: 14px; }
.bento__chip {
    font-size: .76rem; font-weight: 600; letter-spacing: .02em;
    padding: 6px 12px; border-radius: 999px;
    background: rgba(255,255,255,.16); color: #fff;
}

/* Avatar (team/clients) inside tiles */
.bento__avatar {
    width: 64px; height: 64px; border-radius: 999px;
    display: inline-flex; align-items: center; justify-content: center;
    background: var(--grad-primary); color: #fff; font-weight: 800; font-size: 1.25rem;
    margin-bottom: 14px; box-shadow: var(--shadow-btn);
}
.bento__tile .muted { color: var(--c-text-3); }

/* full-width feature tiles (newsletter / cta) */
.tile--feature { padding: clamp(32px, 4vw, 56px); text-align: center; align-items: center; }
.tile--feature h2 { font-size: clamp(1.8rem, 1.2rem + 2vw, 2.7rem); margin: 14px 0 10px; }
.tile--feature p { max-width: 580px; margin: 0 auto; }
.tile--feature .eyebrow { align-self: center; }
.newsletter-tile .newsletter__form { width: 100%; max-width: 460px; }

/* =================================================================
   Responsive
   ================================================================= */
@media (max-width: 980px) {
    .bento { grid-template-columns: repeat(6, 1fr); }
    .b-8, .b-7 { grid-column: span 6; }
    .b-6, .b-5 { grid-column: span 6; }
    .b-4 { grid-column: span 3; }
    .b-3 { grid-column: span 3; }
    .b-rows-2 { grid-row: span 1; }
    .bento__hero-main { min-height: 260px; }
}
@media (max-width: 600px) {
    .bento { grid-template-columns: 1fr; gap: 14px; }
    .bento [class*="b-"] { grid-column: 1 / -1; }
    .bento__tile { padding: 24px; }
}

/* =================================================================
   Special sections (each a distinct UI)
   ================================================================= */

/* --- Certifications marquee --- */
.marquee-section { padding: 30px 0 6px; }
.marquee__label { display: block; text-align: center; font-size: .72rem; letter-spacing: .18em; text-transform: uppercase; color: var(--c-text-3); margin-bottom: 18px; }
.marquee { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.marquee__track { display: inline-flex; align-items: center; white-space: nowrap; animation: marquee 34s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__item { font-weight: 700; font-size: 1.05rem; color: var(--c-text-2); letter-spacing: -.01em; }
.marquee__sep { color: var(--c-primary); padding: 0 22px; font-size: .7rem; opacity: .55; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .marquee__track { animation: none; } }

/* --- Split feature (logistics) --- */
.split { display: grid; grid-template-columns: 1fr; gap: clamp(28px, 4vw, 56px); align-items: center; }
.split__body h2 { margin: 14px 0 12px; }
.checklist { list-style: none; padding: 0; margin: 0 0 26px; display: flex; flex-direction: column; gap: 13px; }
.checklist li { position: relative; padding-left: 34px; color: var(--c-text-2); }
.checklist li::before { content: ''; position: absolute; left: 0; top: 0; width: 22px; height: 22px; border-radius: 999px; background: var(--c-accent-soft); }
.checklist li::after { content: ''; position: absolute; left: 7px; top: 6px; width: 8px; height: 5px; border-left: 2px solid var(--c-primary); border-bottom: 2px solid var(--c-primary); transform: rotate(-45deg); }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }

/* --- Testimonials carousel --- */
.tcarousel { position: relative; }
.tcarousel__track {
    display: flex; gap: 18px;
    overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth;
    padding: 6px 2px 18px;
    scrollbar-width: none; -ms-overflow-style: none;
}
.tcarousel__track::-webkit-scrollbar { display: none; }
.tcard {
    scroll-snap-align: start;
    flex: 0 0 clamp(280px, 80vw, 380px);
    background: var(--c-surface); border: 1px solid var(--c-border);
    border-radius: var(--radius-xl); padding: 30px;
    box-shadow: var(--shadow-sm);
    display: flex; flex-direction: column;
}
.tcard__stars { color: var(--c-primary); letter-spacing: 3px; margin-bottom: 14px; }
.tcard__quote { font-size: 1.08rem; line-height: 1.6; color: var(--c-text); margin: 0 0 22px; flex: 1; }
.tcard__author { display: flex; align-items: center; gap: 12px; }
.tcard__avatar { width: 46px; height: 46px; border-radius: 999px; background: var(--grad-primary); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-weight: 800; box-shadow: var(--shadow-btn); flex-shrink: 0; }
.tcard__meta strong { display: block; }
.tcarousel__nav {
    position: absolute; top: 40%;
    width: 44px; height: 44px; border-radius: 999px;
    border: 1px solid var(--c-border); background: var(--c-surface); color: var(--c-text);
    display: inline-flex; align-items: center; justify-content: center;
    cursor: pointer; box-shadow: var(--shadow-md); z-index: 2;
    transition: background-color .2s, transform .2s;
}
.tcarousel__nav:hover { background: var(--c-tint); color: var(--c-accent-ink); transform: scale(1.06); }
.tcarousel__nav--prev { left: -10px; }
.tcarousel__nav--next { right: -10px; }
@media (max-width: 860px) { .tcarousel__nav { display: none; } }

/* --- FAQ accordion (native details) --- */
.faq { display: flex; flex-direction: column; gap: 12px; }
.faq__item {
    border: 1px solid var(--c-border); border-radius: var(--radius-lg);
    background: var(--c-surface); overflow: hidden;
    transition: border-color .2s, box-shadow .2s;
}
.faq__item[open] { border-color: color-mix(in srgb, var(--c-primary) 40%, var(--c-border)); box-shadow: var(--shadow-sm); }
.faq__q {
    list-style: none; cursor: pointer;
    padding: 20px 22px; font-weight: 700; font-size: 1.05rem; color: var(--c-text);
    display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.faq__q::-webkit-details-marker { display: none; }
.faq__icon { position: relative; width: 18px; height: 18px; flex-shrink: 0; }
.faq__icon::before, .faq__icon::after { content: ''; position: absolute; background: var(--c-primary); border-radius: 2px; }
.faq__icon::before { left: 0; right: 0; top: 8px; height: 2px; }
.faq__icon::after { top: 0; bottom: 0; left: 8px; width: 2px; transition: transform .25s, opacity .2s; }
.faq__item[open] .faq__icon::after { transform: scaleY(0); opacity: 0; }
.faq__a { padding: 0 22px 22px; color: var(--c-text-2); line-height: 1.65; }

/* --- Back to top --- */
.to-top {
    position: fixed; right: 22px; bottom: 22px;
    width: 46px; height: 46px; border-radius: 999px;
    border: 1px solid var(--c-border); background: var(--c-surface); color: var(--c-primary);
    display: inline-flex; align-items: center; justify-content: center; cursor: pointer;
    box-shadow: var(--shadow-lg); z-index: 90;
    opacity: 0; visibility: hidden; transform: translateY(10px);
    transition: opacity .25s, transform .25s, visibility .25s, background-color .2s, color .2s;
}
.to-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { background: var(--c-primary); color: #fff; border-color: var(--c-primary); }
.to-top svg { width: 20px; height: 20px; }
@media (max-width: 600px) { .to-top { right: 16px; bottom: 16px; } }
