/*
 * Author: RaKiBuL HaSaN - CEO & Founder, The One Stop BD (theonestopbd.com)
 * Developer Phone: +8801752986368
 * Developer Email: rhs.rakibul@gmail.com
 *
 * File: css/theme.css
 * Purpose: AB TECH BD brand layer on top of style.css (corporate blue + navy) and components used only on this site.
 *
 * TABLE OF CONTENTS
 *  1. Variables
 *  2. Base tweaks
 *  3. Hero
 *  4. Cards: services, products, team, clients
 *  5. Footer
 *  6. Media queries
 */

/* ==========================================================
   1. VARIABLES
   ========================================================== */
:root {
    --brand: #1a5bb8;
    --brand-dark: #0f2040;
    --brand-soft: #e8f0fb;
    --accent: #f2a900;
    --navy: #0b1730;
    --ink: #101a2e;
    --text: #34415a;
    --muted: #5a6780;
    --bg-alt: #f4f7fb;
    --line: #dfe6f0;
}

/* ==========================================================
   2. BASE TWEAKS
   ========================================================== */
h1, h2 { letter-spacing: -.015em; }
.eyebrow { color: var(--brand); }
.page-banner { background: var(--brand-soft); border-bottom: 0; }
.page-banner h1 { color: var(--brand-dark); }
.icon-badge { background: var(--brand); }
.icon-badge-soft { background: var(--brand-soft); color: var(--brand); }
.btn-primary { background: var(--brand); }
.btn-outline { color: var(--brand); border-color: var(--brand); }
.main-nav a.active { color: var(--brand); background: var(--brand-soft); }
.bottom-nav a.active { color: var(--brand); }
.link-arrow { color: var(--brand); }
.step-num { background: var(--brand); }
.cta-band { background: var(--brand-dark); }
.brand img { height: 38px; width: auto; border-radius: 0; background: none; }
.card-title { font-size: 1.15rem; }
.disclaimer { background: var(--brand-soft); border-left: 4px solid var(--brand); border-radius: 8px; padding: 14px 16px; color: var(--ink); margin: 22px 0 0; }
.hc-icon { width: 44px; height: 44px; border-radius: 50%; background: var(--brand-soft); color: var(--brand); display: grid; place-items: center; }
.header-contact { display: none; align-items: center; gap: 10px; line-height: 1.2; }
.hc-text { display: flex; flex-direction: column; font-size: .9rem; font-weight: 600; }
.hc-text a { color: var(--brand-dark); }

/* ==========================================================
   3. HERO
   ========================================================== */
.hero-tech { min-height: 520px; background: var(--navy); color: #fff; align-items: center; overflow: hidden; position: relative; }
.hero-tech::before { content: ""; position: absolute; inset: 0; background:
    radial-gradient(circle at 85% 20%, rgba(26, 91, 184, .55), transparent 55%),
    radial-gradient(circle at 10% 90%, rgba(26, 91, 184, .25), transparent 50%); }
.hero-tech .hero-content { position: relative; padding-top: 56px; padding-bottom: 56px; }
.hero-tech h1 { color: #fff; max-width: 18ch; }
.hero-tech .hero-lead { color: rgba(255, 255, 255, .9); }
.hero-tech .eyebrow-light { color: #9cc4ff; }
.hero-tech .hero-points .icon { color: #8fc0ff; }

/* ==========================================================
   4. CARDS: SERVICES, PRODUCTS, TEAM, CLIENTS
   ========================================================== */
.service-link, .product-card { display: flex; flex-direction: column; gap: 6px; color: inherit; text-decoration: none !important; }
.service-link .link-arrow, .product-card .link-arrow { margin-top: auto; }
.service-link h3, .product-card h3, .product-card .card-title { color: var(--brand-dark); margin: 6px 0 2px; }
.service-link p, .product-card p { margin: 0; }
.product-media { display: block; aspect-ratio: 16 / 9; border-radius: 10px; overflow: hidden; background: var(--brand-soft); margin-bottom: 6px; }
.product-media img { width: 100%; height: 100%; object-fit: cover; }
.feature h3 { font-size: 1.05rem; }
.team-card { text-align: center; }
.team-card img { width: 100%; max-width: 220px; height: auto; aspect-ratio: 5 / 6; object-fit: cover; object-position: top; border-radius: 14px; margin: 0 auto 12px; background: var(--brand-soft); }
.team-role { color: var(--brand); font-weight: 700; margin: 0 0 6px; }
.client-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.client-grid li { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 14px; display: grid; place-items: center; min-height: 96px; }
.client-grid img { max-height: 64px; width: auto; max-width: 100%; object-fit: contain; background: none; }

/* ==========================================================
   5. FOOTER
   ========================================================== */
.site-footer { background: var(--navy); color: #bfcbe0; }
.site-footer a { color: #bfcbe0; }
.footer-title::after { content: ""; display: block; width: 34px; height: 2px; background: var(--accent); margin-top: 10px; }
.footer-logo { height: 44px; width: auto; background: #fff; padding: 6px 10px; border-radius: 8px; margin-bottom: 14px; }
.mobile-footer { background: var(--brand-soft); }
.social-dark a { background: var(--brand); }

/* ==========================================================
   6. MEDIA QUERIES
   ========================================================== */
@media (min-width: 768px) {
    .brand img { height: 46px; }
    .hero-tech { min-height: 600px; }
    .client-grid { grid-template-columns: repeat(4, 1fr); }
}
@media (min-width: 1024px) {
    .header-contact { display: flex; margin-left: 8px; }
    .hero-tech { min-height: 640px; }
}
@media (min-width: 1024px) and (hover: hover) {
    .service-link:hover, .product-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
    .service-link, .product-card { transition: transform .25s ease, box-shadow .25s ease; }
}

/* ===== Blog (public) ===== */
.web-login { white-space: nowrap; }
.web-login .icon { vertical-align: -2px; }
.blog-cats { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.blog-cats a { padding: 6px 14px; border: 1px solid var(--line); border-radius: 99px; background: #fff; color: var(--text); font-size: .9rem; }
.blog-cats a.active { background: var(--brand); border-color: var(--brand); color: #fff; }
.blog-card { padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.blog-thumb { display: block; aspect-ratio: 16 / 9; background: var(--bg-alt); }
.blog-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.blog-body { padding: 16px 18px 20px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.blog-body h2, .blog-body h3 { font-size: 1.15rem; margin: 0; }
.blog-body h2 a, .blog-body h3 a { color: var(--ink); }
.blog-body p { margin: 0; }
.blog-meta { font-size: .85rem; color: var(--muted); margin: 0; }
.blog-preview { background: #fff4e5; color: #b54708; border-radius: 8px; padding: 8px 12px; display: inline-block; font-weight: 600; }
.blog-empty { text-align: center; padding: 40px 20px; }
.pagination { display: flex; gap: 18px; justify-content: center; align-items: center; margin-top: 28px; }
.blog-article { max-width: 780px; }
.blog-hero { width: 100%; height: auto; margin-bottom: 22px; }
.blog-content { font-size: 1.05rem; line-height: 1.75; color: var(--text); overflow-wrap: anywhere; }
.blog-content h2 { font-size: 1.5rem; margin: 1.6em 0 .5em; }
.blog-content h3 { font-size: 1.25rem; margin: 1.4em 0 .4em; }
.blog-content p, .blog-content ul, .blog-content ol { margin: 0 0 1em; }
.blog-content ul, .blog-content ol { padding-left: 1.4em; }
.blog-content img { max-width: 100%; height: auto; border-radius: var(--radius-sm); margin: .6em 0; }
.blog-content blockquote { margin: 1.2em 0; padding: 6px 18px; border-left: 4px solid var(--brand); background: var(--bg-alt); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; }
.blog-content table { width: 100%; border-collapse: collapse; margin: 1em 0; display: block; overflow-x: auto; }
.blog-content th, .blog-content td { border: 1px solid var(--line); padding: 8px 10px; text-align: left; }
.blog-updated { color: var(--muted); font-size: .85rem; margin: 18px 0; }
.blog-cta { margin-top: 24px; }
.blog-cta h2 { font-size: 1.3rem; }

/* ===== Part of a Group (section above the footer) ===== */
.group-cards { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; grid-template-columns: 1fr; }
.group-card { margin: 0; }
.group-link { display: grid; grid-template-columns: 52px 1fr; column-gap: 14px; align-items: center; height: 100%; padding: 16px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); color: var(--text); }
a.group-link:hover { border-color: var(--brand); transform: translateY(-2px); }
.group-link { transition: transform .2s ease, border-color .2s ease; }
.group-badge { grid-row: 1 / span 3; width: 52px; height: 52px; border-radius: 14px; background: var(--brand); color: #fff; display: grid; place-items: center; font-weight: 800; font-size: .95rem; letter-spacing: .02em; }
.group-link strong { color: var(--ink); font-size: 1.05rem; line-height: 1.25; }
.group-link small { color: var(--muted); font-size: .85rem; line-height: 1.35; }
.group-link em { font-style: normal; font-size: .82rem; font-weight: 600; color: var(--brand); margin-top: 4px; }
.group-card.is-current .group-link { border-style: dashed; background: transparent; box-shadow: none; }
.group-card.is-current .group-badge { background: var(--muted); }
.group-card.is-current em { color: var(--muted); }
@media (min-width: 640px) { .group-cards { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .group-cards { grid-template-columns: repeat(5, 1fr); } .group-link { grid-template-columns: 1fr; row-gap: 6px; text-align: center; justify-items: center; padding: 20px 14px; } .group-badge { grid-row: auto; margin-bottom: 4px; } }

/* ===== Footer polish (more breathing room, tidy bottom bar, Web Login pill) ===== */
.site-footer .container { padding-left: 28px; padding-right: 28px; }
.footer-grid { padding-top: 64px; padding-bottom: 48px; gap: 40px; }
.footer-about img { width: 96px; height: 96px; object-fit: cover; padding: 4px; background: #fff; border-radius: 18px; margin-bottom: 20px; }
.footer-about p { line-height: 1.75; max-width: 40ch; margin: 0 0 18px; }
.footer-title { margin-bottom: 20px; }
.footer-col ul { gap: 12px; line-height: 1.5; }
.footer-bottom { padding: 22px 0 26px; }
.footer-bottom-inner { gap: 10px 28px; align-items: center; }
.footer-bottom p { line-height: 1.7; }
.web-login { display: inline-flex; align-items: center; gap: 6px; padding: 3px 12px; margin-left: 8px; border: 1px solid rgba(255, 255, 255, .3); border-radius: 99px; font-size: .85rem; line-height: 1.6; }
.web-login:hover { background: rgba(255, 255, 255, .14); color: #fff; }
.mobile-footer { padding: 28px 28px 34px; line-height: 1.7; }
.mobile-footer p { margin: 0 0 10px; }
.mobile-footer .web-login { margin: 0; color: var(--brand); background: #fff; border-color: var(--line); }
@media (min-width: 640px) and (max-width: 1023px) { .footer-grid { grid-template-columns: repeat(2, 1fr); } }
