/* ============================================================
   CTECHi Ghana — Layout components v2.0
   Page banners, product detail, contact, about, stories, footer
   ============================================================ */

/* ---------- Page banner ---------- */
.page-banner {
    position: relative;
    background:
        radial-gradient(900px 380px at 85% -20%, rgba(0, 204, 187, .28), transparent 60%),
        radial-gradient(700px 320px at 5% 130%, rgba(0, 204, 187, .14), transparent 60%),
        linear-gradient(160deg, #101C30 0%, #16233A 60%, #1A2B45 100%);
    padding: 62px 0 42px;
    color: #fff;
    text-align: center;
    overflow: hidden;
}
.page-banner::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: linear-gradient(rgba(255, 255, 255, .04) 1px, transparent 1px),
                      linear-gradient(90deg, rgba(255, 255, 255, .04) 1px, transparent 1px);
    background-size: 44px 44px;
    mask-image: radial-gradient(ellipse at 50% 0%, rgba(0, 0, 0, .9), transparent 75%);
    -webkit-mask-image: radial-gradient(ellipse at 50% 0%, rgba(0, 0, 0, .9), transparent 75%);
    pointer-events: none;
}
.page-banner h1 {
    font-size: clamp(26px, 3.4vw, 36px);
    font-weight: 700;
    color: #fff;
    letter-spacing: -.4px;
    position: relative;
    z-index: 1;
}
.page-banner .breadcrumb {
    background: transparent;
    justify-content: center;
    padding: 0;
    margin: 12px 0 0;
    font-size: 13px;
    position: relative;
    z-index: 1;
}
.page-banner .breadcrumb-item,
.page-banner .breadcrumb-item a { color: rgba(255, 255, 255, .65); }
.page-banner .breadcrumb-item a:hover { color: var(--primary); }
.page-banner .breadcrumb-item.active { color: var(--primary); }
.page-banner .breadcrumb-item + .breadcrumb-item::before { color: rgba(255, 255, 255, .35); }

/* ---------- Product detail ---------- */
.product-detail-section { padding: 56px 0 40px; }
.product-gallery { position: sticky; top: 96px; }
.gallery-main {
    background: linear-gradient(180deg, #FBFCFE, #F1F5F9);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: 34px;
    aspect-ratio: 1 / .92;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
}
.gallery-main::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    box-shadow: inset 0 0 0 1px rgba(15, 23, 42, .03);
    pointer-events: none;
}
.gallery-main img {
    max-height: 100%;
    max-width: 100%;
    object-fit: contain;
    transition: transform .4s ease;
}
.gallery-thumbs {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    margin-top: 12px;
}
.gallery-thumb {
    border: 2px solid var(--border);
    background: var(--bg-light);
    border-radius: 12px;
    padding: 8px;
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
}
.gallery-thumb img { max-height: 100%; max-width: 100%; object-fit: contain; }
.gallery-thumb:hover { border-color: rgba(0, 204, 187, .5); transform: translateY(-2px); }
.gallery-thumb.active { border-color: var(--primary); background: var(--primary-soft); }

.product-category {
    display: inline-block;
    font-size: 11.5px;
    font-weight: 600;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    color: var(--primary-deep);
    background: var(--primary-light);
    border: 1px solid rgba(0, 204, 187, .25);
    padding: 6px 14px;
    border-radius: 50px;
    margin-bottom: 14px;
}
.product-info h1 {
    font-size: clamp(26px, 3vw, 34px);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 12px;
}
.product-short { font-size: 15.5px; color: var(--body); margin-bottom: 18px; }
.product-info .highlights {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 22px;
}
.product-info .highlights .badge {
    background: var(--primary-light);
    color: var(--primary-deep);
    font-size: 12.5px;
    padding: 8px 16px;
    font-weight: 500;
    border-radius: 50px;
}
.spec-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-bottom: 26px;
}
.spec-cell {
    background: var(--bg-light);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 12px 14px;
    transition: var(--transition);
}
.spec-cell:hover { border-color: rgba(0, 204, 187, .4); background: var(--primary-soft); }
.spec-cell .label {
    display: block;
    font-size: 10.5px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .8px;
    color: var(--muted);
    margin-bottom: 3px;
}
.spec-cell .value {
    display: block;
    font-size: 13.5px;
    font-weight: 600;
    color: var(--heading);
    line-height: 1.35;
}
.product-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 14px; }
.product-actions .btn { padding: 13px 26px; font-weight: 600; }
.product-note { font-size: 12.5px; color: var(--muted); margin: 0; }

/* Product detail tabs */
.product-tabs-section { padding: 24px 0 80px; }
.product-tabs { gap: 8px; margin-bottom: 26px; }
.product-tabs .nav-link {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 50px;
    padding: 9px 22px;
    font-weight: 500;
    font-size: 14px;
    color: var(--body);
    transition: var(--transition);
}
.product-tabs .nav-link:hover { border-color: rgba(0, 204, 187, .5); color: var(--primary-deep); }
.product-tabs .nav-link.active {
    background: var(--dark);
    border-color: var(--dark);
    color: #fff;
    box-shadow: 0 8px 20px rgba(15, 27, 45, .25);
}
.tab-pane-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 30px 34px;
    box-shadow: var(--shadow-sm);
}
.prose { font-size: 15.5px; line-height: 1.8; color: var(--body); max-width: 760px; }
.prose p { margin-bottom: 16px; }
.prose p:last-child { margin-bottom: 0; }
.prose h2, .prose h3 { margin: 22px 0 12px; }
.prose ul { padding-left: 20px; margin-bottom: 16px; }
.prose li { margin-bottom: 6px; }

.spec-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    font-size: 14px;
}
.spec-table td {
    padding: 13px 18px;
    border-bottom: 1px solid var(--border);
    color: var(--body);
    vertical-align: top;
}
.spec-table td:first-child {
    width: 38%;
    font-weight: 600;
    color: var(--heading);
    background: var(--bg-light);
}
.spec-table tr:last-child td { border-bottom: none; }
.spec-table-html table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}
.spec-table-html td {
    padding: 13px 18px;
    border-bottom: 1px solid var(--border);
    color: var(--body);
    vertical-align: top;
}
.spec-table-html td:first-child { font-weight: 600; color: var(--heading); width: 38%; background: var(--bg-light); }
.spec-table-html table tr:last-child td { border-bottom: none; }

/* Mobile sticky CTA */
.product-sticky-cta {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1030;
    display: flex;
    gap: 10px;
    padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
    background: rgba(255, 255, 255, .94);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-top: 1px solid var(--border);
    box-shadow: 0 -8px 30px rgba(15, 23, 42, .12);
    transform: translateY(110%);
    transition: transform .35s ease;
}
.product-sticky-cta.show { transform: translateY(0); }
.product-sticky-cta .btn { flex: 1; padding: 13px 10px; font-weight: 600; }

/* ---------- Solution detail ---------- */
.solution-hero { position: relative; min-height: 340px; display: flex; align-items: flex-end; }
.solution-hero.has-bg { background-size: cover; background-position: center; background-repeat: no-repeat; }
.solution-hero.has-bg::before { content: ''; position: absolute; inset: 0; background: rgba(9, 15, 28, .62); }
.solution-hero-overlay {
    position: relative;
    z-index: 1;
    padding: 34px 38px;
    background: rgba(255, 255, 255, .92);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-radius: 18px;
    box-shadow: var(--shadow-md);
    border: 1px solid rgba(255, 255, 255, .6);
}
.solution-hero.has-bg .solution-short-desc,
.solution-hero.has-bg .solution-full-desc,
.solution-hero.has-bg .solution-full-desc p { color: #1E293B; }
.solution-hero:not(.has-bg) { padding: 70px 0 0; }
.solution-short-desc { font-size: 1.35rem; font-weight: 600; color: var(--heading); line-height: 1.5; margin-bottom: 16px; font-family: var(--font-display); }
.solution-full-desc { font-size: 15px; font-weight: 400; color: #334155; line-height: 1.8; }
.solution-full-desc p { margin-bottom: 14px; color: #334155; }
.solution-full-desc p:last-child { margin-bottom: 0; }
.solution-section-content { font-size: 15px; font-weight: 400; color: #334155; line-height: 1.75; }
.solution-section-content h3 { color: var(--heading); font-weight: 600; margin-bottom: 12px; font-size: 1.15rem; font-family: var(--font-display); }
.solution-section-content p { font-size: 15px; font-weight: 400; line-height: 1.75; margin-bottom: 0; color: #334155; }
.section-icon {
    width: 64px;
    height: 64px;
    border-radius: 18px;
    background: var(--primary-light);
    color: var(--primary-deep);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    margin-bottom: 20px;
}
.solution-section-img { max-width: 80%; border-radius: 18px !important; }

/* ---------- Why choose us ---------- */
.why-item { display: flex; gap: 20px; margin-bottom: 30px; }
.why-icon {
    min-width: 60px;
    width: 60px;
    height: 60px;
    border-radius: 18px;
    background: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: #fff;
    box-shadow: 0 8px 20px rgba(0, 204, 187, .3);
}
.why-item h5 { font-size: 17px; font-weight: 600; color: var(--heading); }
.why-item p { font-size: 14px; margin: 0; }

/* ---------- CTA section ---------- */
.cta-section {
    position: relative;
    overflow: hidden;
    background: linear-gradient(115deg, #0E1A2C 0%, #12303D 55%, #0E1A2C 100%);
    padding: 84px 0;
    color: #fff;
}
.cta-section::before, .cta-section::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    opacity: .5;
}
.cta-section::before {
    width: 420px;
    height: 420px;
    background: rgba(0, 204, 187, .35);
    top: -160px;
    right: -80px;
}
.cta-section::after {
    width: 340px;
    height: 340px;
    background: rgba(0, 163, 150, .3);
    bottom: -150px;
    left: -60px;
}
.cta-section h2 {
    font-size: clamp(28px, 3.6vw, 42px);
    font-weight: 700;
    margin-bottom: 14px;
    color: #fff;
    position: relative;
    z-index: 1;
}
.cta-section p {
    font-size: 16px;
    opacity: .9;
    position: relative;
    z-index: 1;
}
.cta-section .btn { position: relative; z-index: 1; }
.cta-section .btn-primary {
    background: var(--primary);
    border-color: var(--primary);
    padding: 14px 40px;
    border-radius: 50px;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 13.5px;
    box-shadow: 0 10px 30px rgba(0, 204, 187, .4);
}
.cta-section .btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 14px 36px rgba(0, 204, 187, .5);
}

/* ---------- Partner strip ---------- */
.partner-strip { padding: 52px 0; background: #fff; }
.partner-strip-title {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.6px;
    color: var(--muted);
    text-align: center;
    margin-bottom: 26px;
}
.partner-strip img {
    max-height: 54px;
    padding: 12px 22px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 12px;
    opacity: .65;
    transition: var(--transition);
    filter: grayscale(100%);
}
.partner-strip img:hover {
    opacity: 1;
    filter: grayscale(0%);
    transform: translateY(-3px);
    box-shadow: var(--shadow-sm);
}

/* ---------- Contact ---------- */
.contact-info-card {
    display: flex;
    gap: 16px;
    padding: 20px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    margin-bottom: 16px;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
}
.contact-info-card:hover {
    background: var(--primary-soft);
    border-color: rgba(0, 204, 187, .4);
    transform: translateX(4px);
}
.contact-info-card .icon {
    width: 50px;
    height: 50px;
    min-width: 50px;
    border-radius: 14px;
    background: var(--primary);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    box-shadow: 0 6px 16px rgba(0, 204, 187, .3);
}
.contact-info-card h6 { font-size: 14px; font-weight: 600; color: var(--heading); margin-bottom: 4px; }
.contact-info-card p { font-size: 14px; margin: 0; }
.contact-form-wrapper {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: 34px;
    box-shadow: var(--shadow-sm);
}
.contact-form-wrapper h3 { font-size: 22px; font-weight: 600; color: var(--heading); }
.contact-form-wrapper .form-label { font-size: 13px; font-weight: 500; color: var(--heading); margin-bottom: 6px; }
.contact-form-wrapper .form-control,
.contact-form-wrapper .form-select {
    border-radius: 10px;
    padding: 11px 14px;
    border: 1px solid var(--border);
    font-size: 14.5px;
    background: var(--bg-light);
    transition: var(--transition);
}
.contact-form-wrapper .form-control:focus,
.contact-form-wrapper .form-select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(0, 204, 187, .14);
    background: #fff;
}
.map-wrapper {
    border-radius: var(--radius-xl);
    overflow: hidden;
    height: 400px;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
}
.map-wrapper iframe { width: 100%; height: 100%; border: 0; }

/* ---------- Services ---------- */
.service-card-img {
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(180deg, var(--primary-soft), var(--primary-light));
    font-size: 58px;
    color: var(--primary-deep);
    transition: var(--transition);
}
.service-card:hover .service-card-img { background: linear-gradient(180deg, var(--primary-soft), var(--primary-soft)); }
.service-card-body { padding: 24px; }
.service-card-body h5 { font-size: 17px; font-weight: 600; color: var(--heading); }
.service-card-body p { font-size: 14px; }
.service-card-body .story-content { font-size: 13.5px; color: var(--body); }
.service-card-body .story-content p { margin-bottom: 10px; }

/* ---------- About ---------- */
.about-hero {
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(700px 320px at 80% -10%, rgba(0, 204, 187, .25), transparent 60%),
        linear-gradient(160deg, #101C30 0%, #16233A 60%, #1A2B45 100%);
    color: #fff;
    padding: 96px 0;
    text-align: center;
}
.about-hero h1 { font-size: clamp(30px, 4vw, 42px); font-weight: 700; color: #fff; }
.about-hero p { font-size: 17px; opacity: .85; max-width: 700px; margin: 18px auto 0; }
.stat-card {
    background: var(--primary-soft);
    border: 1px solid rgba(0, 204, 187, .22);
    border-radius: var(--radius-lg);
    padding: 18px 10px;
    text-align: center;
    transition: var(--transition);
}
.stat-card:hover { background: var(--primary-light); transform: translateY(-3px); }
.stat-card h3 { font-size: 26px; font-weight: 700; color: var(--primary-deep); margin-bottom: 2px; }
.stat-card small { font-size: 12px; color: var(--body); font-weight: 500; }
.team-card { padding: 30px 22px; text-align: center; }
.team-card .avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: var(--primary-light);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    font-size: 48px;
    color: var(--primary);
    overflow: hidden;
    border: 3px solid var(--primary-light);
    transition: var(--transition);
}
.team-card:hover .avatar { border-color: var(--primary); }
.team-card h5 { font-size: 16px; font-weight: 600; color: var(--heading); }
.team-card .position { font-size: 13px; color: var(--primary-deep); margin-bottom: 8px; font-weight: 500; }
.team-card p.small { font-size: 13px; color: var(--body); }

/* ---------- Stories ---------- */
.story-card-img {
    height: 200px;
    background: linear-gradient(180deg, var(--primary-soft), var(--primary-light));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 46px;
    color: var(--primary-deep);
    overflow: hidden;
}
.story-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .55s cubic-bezier(.4, 0, .2, 1);
}
.story-card:hover .story-card-img img { transform: scale(1.06); }
.story-card-body { padding: 20px 22px; }
.story-card-body h5 { font-size: 15.5px; font-weight: 600; color: var(--heading); line-height: 1.45; }
.story-card-body .location { font-size: 12.5px; color: var(--primary-deep); margin-bottom: 6px; font-weight: 500; }
.story-card-body p { font-size: 13.5px; }

/* Story detail */
.story-detail-image { border-radius: var(--radius-xl); overflow: hidden; box-shadow: var(--shadow-md); border: 1px solid var(--border); }
.story-meta-badges .badge {
    background: var(--primary-light);
    color: var(--primary-deep);
    font-weight: 500;
    font-size: 13px;
    padding: 9px 16px;
    border-radius: 50px;
}
.story-content { font-size: 15.5px; line-height: 1.85; color: var(--body); }
.story-content h2 { font-size: 23px; font-weight: 600; color: var(--heading); margin-top: 30px; font-family: var(--font-display); }
.story-content ul { padding-left: 20px; }
.story-content li { margin-bottom: 6px; }
.story-cta {
    background: var(--primary-soft);
    border: 1px solid rgba(0, 204, 187, .25);
    border-radius: var(--radius-lg);
    padding: 26px 28px;
}

/* ---------- Search / empty states ---------- */
.empty-state { padding: 60px 0; }
.empty-state .empty-icon {
    width: 88px;
    height: 88px;
    border-radius: 50%;
    background: var(--primary-light);
    color: var(--primary-deep);
    font-size: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 22px;
}
.empty-state h4 { font-weight: 600; color: var(--heading); }
.search-bar-lg .form-control {
    border-radius: 50px 0 0 50px;
    padding: 13px 22px;
    border: 1px solid var(--border);
    background: #fff;
    font-size: 15px;
}
.search-bar-lg .btn {
    border-radius: 0 50px 50px 0;
    padding: 13px 26px;
}

/* ---------- 404 ---------- */
.error-code {
    font-size: clamp(96px, 18vw, 170px);
    font-weight: 700;
    line-height: 1;
    font-family: var(--font-display);
    background: linear-gradient(120deg, var(--primary) 10%, var(--primary-dark) 50%, #0E7490 90%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -4px;
}
