/* ============================================================
   CTECHi Ghana — Core theme v2.0
   Font pairing: Lexend (display) + Inter (body)
   Companion files: layout.css, theme.css
   ============================================================ */
:root {
    --primary: #00CCBB;
    --primary-dark: #00A396;
    --primary-deep: #007E74;
    --primary-light: #E4F7F5;
    --primary-soft: #F2FCFB;
    --secondary: #F59E0B;
    --dark: #0F1B2D;
    --dark-2: #16233A;
    --heading: #0F1B2D;
    --body: #4B5A6E;
    --muted: #8A97A8;
    --bg-light: #F6F8FB;
    --border: #E6EBF1;
    --whatsapp: #25D366;
    --bs-primary: #00CCBB;
    --bs-primary-rgb: 0, 204, 187;
    --shadow-sm: 0 1px 2px rgba(15, 23, 42, .04), 0 2px 8px rgba(15, 23, 42, .04);
    --shadow-md: 0 4px 14px rgba(15, 23, 42, .06), 0 14px 34px rgba(15, 23, 42, .08);
    --shadow-lg: 0 10px 24px rgba(15, 23, 42, .08), 0 30px 70px rgba(15, 23, 42, .14);
    --font-body: 'Inter', -apple-system, 'Segoe UI', sans-serif;
    --font-display: 'Lexend', -apple-system, 'Segoe UI', sans-serif;
    --radius-sm: 8px;
    --radius: 12px;
    --radius-lg: 16px;
    --radius-xl: 20px;
    --transition: all .3s cubic-bezier(.4, 0, .2, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    font-family: var(--font-body);
    font-size: 15.5px;
    line-height: 1.7;
    color: var(--body);
    background: #fff;
    padding-top: 76px;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4, h5, h6, .navbar-brand, .brand-text {
    font-family: var(--font-display);
    color: var(--heading);
    letter-spacing: -0.01em;
}
a { color: var(--dark); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--primary-deep); }
img { max-width: 100%; height: auto; }
::selection { background: var(--primary); color: #fff; }
:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
[id] { scroll-margin-top: 96px; }
.text-primary { color: var(--primary-deep) !important; }
.bg-primary { background-color: var(--primary) !important; }

/* ---------- Buttons ---------- */
.btn {
    border-radius: 10px;
    font-weight: 500;
    font-size: 14.5px;
    letter-spacing: .01em;
    transition: var(--transition);
}
.btn-lg { padding: 13px 30px; font-size: 15.5px; border-radius: 12px; }
.btn-sm { padding: 7px 16px; font-size: 13px; border-radius: 8px; }
.btn-primary {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
    box-shadow: 0 4px 14px rgba(0, 204, 187, .3);
}
.btn-primary:hover, .btn-primary:focus {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 8px 22px rgba(0, 204, 187, .38);
}
.btn-outline-primary {
    border-color: var(--primary);
    color: var(--primary-deep);
    background: #fff;
}
.btn-outline-primary:hover, .btn-outline-primary:focus {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(0, 204, 187, .3);
}
.btn-success {
    background: var(--whatsapp);
    border-color: var(--whatsapp);
    color: #fff;
    box-shadow: 0 4px 14px rgba(37, 211, 102, .25);
}
.btn-success:hover, .btn-success:focus {
    background: #1FBE5B;
    border-color: #1FBE5B;
    color: #fff;
    transform: translateY(-1px);
}
.btn-outline-light:hover, .btn-outline-light:focus {
    background: #fff;
    color: var(--dark) !important;
    transform: translateY(-1px);
}
.btn-outline-dark:hover { background: var(--dark); color: #fff !important; }

/* ---------- Floating buttons ---------- */
#floating-buttons {
    position: fixed;
    bottom: 100px;
    right: 20px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
#floating-buttons a {
    width: 54px;
    height: 54px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: #fff;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    animation: floatIn .5s ease-out;
}
.fb-whatsapp { background: var(--whatsapp); }
.fb-email { background: var(--primary); }
.fb-top {
    background: var(--dark);
    font-size: 18px !important;
    opacity: 0;
    transform: translateY(14px) scale(.85);
    pointer-events: none;
}
.fb-top.visible { opacity: 1; transform: none; pointer-events: auto; }
#floating-buttons a:hover {
    transform: scale(1.08) translateY(-3px);
    box-shadow: var(--shadow-lg);
}
.fb-whatsapp:hover { background: #1FBE5B; }
@keyframes floatIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ---------- Navigation ---------- */
.navbar {
    background: rgba(15, 27, 45, .92) !important;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 0;
    transition: var(--transition);
    border-bottom: 1px solid rgba(255, 255, 255, .06);
}
.navbar.scrolled {
    background: rgba(11, 20, 34, .97) !important;
    box-shadow: 0 12px 32px rgba(15, 23, 42, .22);
}
.navbar-brand { padding: 12px 0; }
.navbar-brand .img-fluid { max-height: 46px; }
.brand-text { color: #fff; font-size: 19px; font-weight: 600; }
.navbar .nav-link {
    padding: 10px 13px !important;
    font-size: 12.5px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: .6px;
    color: rgba(255, 255, 255, .78) !important;
    position: relative;
    border-radius: 6px;
    transition: all .25s ease;
    margin: 6px 2px;
}
.navbar .nav-link::before {
    content: '';
    position: absolute;
    left: 13px;
    right: 13px;
    bottom: 1px;
    height: 2px;
    border-radius: 2px;
    background: var(--primary);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .3s ease;
}
.navbar .nav-link:hover,
.navbar .nav-link:focus,
.navbar .nav-link.show,
.navbar .nav-link.active {
    color: #fff !important;
    background: transparent !important;
    box-shadow: none !important;
    outline: none !important;
}
.navbar .nav-link:hover::before,
.navbar .nav-link.show::before,
.navbar .nav-link.active::before { transform: scaleX(1); }
.navbar .nav-link.dropdown-toggle::after { display: none !important; }
.navbar .navbar-nav .dropdown-menu {
    background: #fff;
    border: none;
    border-radius: 0;
    padding: 0;
    color: #222;
}
.dropdown-menu, .dropdown-menu .form-control, .dropdown-menu .btn { color: #222; }
.dropdown-toggle-custom::after {
    display: inline-block !important;
    margin-left: 5px;
    vertical-align: middle;
    content: "\f107";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    border: none;
    font-size: 12px;
}

/* ---------- Mega menu ---------- */
.mega-dropdown { position: static !important; }
.mega-menu {
    position: absolute;
    left: 0 !important;
    right: 0 !important;
    top: 100% !important;
    margin-top: 0 !important;
    width: 100% !important;
    max-width: 100vw;
    border: none;
    border-top: 2px solid var(--primary);
    border-radius: 0 0 18px 18px;
    padding: 10px 0 22px;
    box-shadow: var(--shadow-lg);
    background: #fff;
}
.mega-menu .nav-link { color: #222 !important; }
.mega-tabs-col { border-right: 1px solid var(--border); padding-right: 8px; }
.mega-tabs .mega-tab {
    background: transparent;
    color: #34415A !important;
    border-radius: 8px;
    padding: 10px 14px;
    margin-bottom: 2px;
    font-size: 13px;
    font-weight: 500;
    text-align: left;
    transition: var(--transition);
    border: none;
    position: relative;
}
.mega-tabs .mega-tab:hover { background: var(--bg-light); color: var(--dark) !important; }
.mega-tabs .mega-tab.active {
    background: var(--primary-light);
    color: var(--primary-deep) !important;
    font-weight: 600;
}
.mega-tabs .mega-tab.active::before {
    content: '';
    position: absolute;
    left: 0;
    top: 22%;
    height: 56%;
    width: 3px;
    border-radius: 2px;
    background: var(--primary);
}
.mega-view-all {
    display: inline-block;
    color: var(--primary-deep) !important;
    background: var(--primary-light);
    font-weight: 600 !important;
    padding: 7px 16px !important;
    font-size: 13px !important;
    border-radius: 8px;
    transition: var(--transition);
}
.mega-view-all:hover {
    background: var(--primary) !important;
    color: #fff !important;
}
.mega-content-col { padding-left: 10px; }
.mega-product-card {
    display: block;
    text-align: center;
    padding: 8px 6px;
    border-radius: 10px;
    transition: var(--transition);
    border: 1px solid transparent;
}
.mega-product-card:hover {
    border-color: var(--border);
    box-shadow: var(--shadow-sm);
    transform: translateY(-2px);
}
.mega-product-img {
    width: 100%;
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-light);
    border-radius: 8px;
    padding: 6px;
    margin-bottom: 6px;
    overflow: hidden;
}
.mega-product-img img { max-width: 100%; max-height: 100%; object-fit: contain; }
.mega-product-info h6 {
    font-size: 12px;
    font-weight: 500;
    color: #34415A !important;
    margin: 0;
    line-height: 1.3;
}
.mega-solution-card { padding: 10px; }
.mega-solution-card h5 { color: var(--dark); font-weight: 600; font-size: 15px; }
.mega-solution-card p { font-size: 13px; color: var(--body); margin-bottom: 8px; }
.mega-solution-img {
    width: 100%;
    height: 160px;
    overflow: hidden;
    border-radius: 10px;
}
.mega-solution-img img { width: 100%; height: 100%; object-fit: cover; }
.mega-menu .btn-outline-primary {
    border-color: var(--primary);
    color: var(--primary-deep);
}
.mega-menu .btn-outline-primary:hover {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}
.mega-tab-icon-img {
    width: 22px; height: 22px; object-fit: cover; border-radius: 5px; margin-right: 8px; vertical-align: middle;
}

/* ---------- Search ---------- */
.dropdown-search .search-toggle {
    font-size: 15px !important;
    padding: 22px 12px !important;
    border-radius: 8px;
    margin: 8px 2px;
}
.dropdown-search .search-toggle::before { display: none !important; }
.search-dropdown {
    min-width: 320px !important;
    padding: 20px;
    border: none;
    border-top: 2px solid var(--primary);
    border-radius: 0 0 14px 14px;
    margin-top: 0 !important;
    box-shadow: var(--shadow-lg);
}
.search-dropdown .form-control, .search-dropdown .form-control:focus { color: #222; background: #fff; }
.search-dropdown .btn-primary {
    background: var(--primary);
    border-color: var(--primary);
    border-radius: 0 8px 8px 0;
}

/* ---------- Hero ---------- */
.hero-swiper {
    width: 100%;
    height: 88vh;
    min-height: 540px;
    max-height: 860px;
    overflow: hidden;
}
.hero-slide {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    background-size: cover;
    background-position: center;
    background-color: var(--dark);
}
.hero-slide::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(9, 15, 28, .62) 0%, rgba(9, 15, 28, .35) 45%, rgba(9, 15, 28, .66) 100%);
    z-index: 1;
}
.hero-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}
.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: #fff;
    max-width: 820px;
    padding: 0 20px;
}
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, .12);
    border: 1px solid rgba(255, 255, 255, .28);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.4px;
    padding: 8px 18px;
    border-radius: 50px;
    margin-bottom: 22px;
    animation: fadeUp 1s ease-out;
}
.hero-badge i { color: var(--primary); }
.hero-content h1 {
    font-size: clamp(34px, 4.6vw, 60px);
    font-weight: 700;
    line-height: 1.12;
    letter-spacing: -1px;
    color: #fff;
    margin-bottom: 20px;
    text-shadow: 0 2px 30px rgba(0, 0, 0, .35);
    animation: fadeUp 1s ease-out;
}
.hero-content p {
    font-size: 17px;
    line-height: 1.75;
    margin: 0 auto 30px;
    max-width: 640px;
    opacity: .92;
    animation: fadeUp 1s ease-out .15s both;
}
.hero-buttons { animation: fadeUp 1s ease-out .3s both; }
.hero-buttons .btn {
    padding: 14px 34px;
    font-weight: 600;
    border-radius: 50px;
    margin: 5px 8px;
    text-transform: uppercase;
    font-size: 13.5px;
    letter-spacing: .6px;
    transition: var(--transition);
}
.hero-buttons .btn-primary {
    background: var(--primary);
    border-color: var(--primary);
    box-shadow: 0 10px 30px rgba(0, 204, 187, .4);
}
.hero-buttons .btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-3px);
    box-shadow: 0 14px 36px rgba(0, 204, 187, .5);
}
.hero-buttons .btn-outline-light { border-width: 1.5px; }
.hero-buttons .btn-outline-light:hover {
    background: #fff;
    color: var(--dark) !important;
    box-shadow: 0 10px 28px rgba(255, 255, 255, .22);
}
.hero-scroll {
    position: absolute;
    bottom: 26px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
}
.hero-scroll a {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: 1.5px solid rgba(255, 255, 255, .5);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 15px;
    animation: bounceDown 2.2s ease-in-out infinite;
}
.hero-scroll a:hover { background: var(--primary); border-color: var(--primary); color: #fff; }
@keyframes bounceDown {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(8px); }
}
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ---------- Swiper ---------- */
.swiper-pagination-bullet {
    width: 9px;
    height: 9px;
    background: rgba(255, 255, 255, .5);
    opacity: 1;
    transition: var(--transition);
}
.swiper-pagination-bullet-active {
    background: var(--primary);
    width: 26px;
    border-radius: 6px;
}
.swiper-button-next, .swiper-button-prev { color: #fff; }
.hero-swiper .swiper-button-next, .hero-swiper .swiper-button-prev {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .1);
    border: 1px solid rgba(255, 255, 255, .25);
    backdrop-filter: blur(6px);
    transition: var(--transition);
}
.hero-swiper .swiper-button-next:hover, .hero-swiper .swiper-button-prev:hover { background: var(--primary); }
.hero-swiper .swiper-button-next::after, .hero-swiper .swiper-button-prev::after { font-size: 18px; font-weight: 700; }

/* ---------- Sections ---------- */
.section-padding { padding: 84px 0; }
.section-bg-light { background: var(--bg-light); }
.section-bg-primary-light { background: var(--primary-soft); }
.section-kicker {
    display: inline-block;
    font-size: 11.5px;
    font-weight: 600;
    letter-spacing: 1.4px;
    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;
}
.section-title {
    font-size: clamp(28px, 3.2vw, 40px);
    font-weight: 700;
    letter-spacing: -.5px;
    color: var(--heading);
    margin-bottom: 14px;
}
.section-subtitle {
    font-size: 16px;
    color: var(--body);
    max-width: 620px;
    margin: 0 auto 44px;
    line-height: 1.7;
}

/* ---------- Cards (shared) ---------- */
.featured-card, .product-card, .story-card, .service-card, .team-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: var(--transition);
    height: 100%;
    box-shadow: var(--shadow-sm);
}
.featured-card:hover, .product-card:hover, .story-card:hover, .service-card:hover, .team-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-5px);
    border-color: rgba(0, 204, 187, .4);
}
.featured-card-img, .product-card-img {
    height: 240px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(180deg, #FBFCFE, #F1F5F9);
    padding: 24px;
    overflow: hidden;
}
.product-card-img { height: 260px; }
.featured-card-img img, .product-card-img img {
    max-height: 100%;
    max-width: 100%;
    object-fit: contain;
    transition: transform .55s cubic-bezier(.4, 0, .2, 1);
}
.featured-card:hover .featured-card-img img, .product-card:hover .product-card-img img { transform: scale(1.07); }
.featured-card-body { padding: 22px; }
.product-card-body { padding: 22px; }
.featured-card-body h5, .product-card-body h5 {
    font-size: 16.5px;
    font-weight: 600;
    color: var(--heading);
    margin-bottom: 8px;
    line-height: 1.4;
}
.featured-card-body p, .product-card-body p { font-size: 13.5px; color: var(--body); margin-bottom: 14px; }
.featured-card .highlights, .product-card .highlights {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 16px;
}
.featured-card .highlights span, .product-card .highlights span {
    font-size: 11px;
    background: var(--primary-light);
    color: var(--primary-deep);
    padding: 4px 11px;
    border-radius: 50px;
    font-weight: 500;
}
.product-card-body .btn-outline-primary, .featured-card-body .btn-outline-primary {
    border-radius: 8px;
    padding: 7px 18px;
    font-size: 13px;
    font-weight: 500;
}

/* ---------- Category pills (products page) ---------- */
.nav-pills .nav-link {
    color: var(--body);
    font-weight: 500;
    font-size: 13.5px;
    padding: 9px 20px;
    border-radius: 50px;
    transition: var(--transition);
    background: #fff;
    border: 1px solid var(--border);
    margin-right: 8px;
    margin-bottom: 8px;
}
.nav-pills .nav-link:hover {
    background: var(--primary-light);
    color: var(--primary-deep);
    border-color: rgba(0, 204, 187, .35);
}
.nav-pills .nav-link.active, .nav-pills .show > .nav-link {
    background: var(--primary) !important;
    color: #fff !important;
    border-color: var(--primary) !important;
    box-shadow: 0 6px 18px rgba(0, 204, 187, .35);
}

/* ---------- Solution cards ---------- */
.solution-card {
    text-align: center;
    padding: 40px 26px;
    border-radius: var(--radius-lg);
    background: #fff;
    border: 1px solid var(--border);
    transition: var(--transition);
    height: 100%;
    display: block;
    box-shadow: var(--shadow-sm);
    position: relative;
    overflow: hidden;
}
.solution-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--primary-dark));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .35s ease;
}
.solution-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-5px);
    border-color: rgba(0, 204, 187, .4);
}
.solution-card:hover::before { transform: scaleX(1); }
.solution-card .icon-wrap {
    width: 76px;
    height: 76px;
    border-radius: 20px;
    background: var(--primary-light);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 30px;
    color: var(--primary-deep);
    transition: var(--transition);
}
.solution-card:hover .icon-wrap {
    background: var(--primary);
    color: #fff;
    border-radius: 50%;
    transform: scale(1.05);
    box-shadow: 0 10px 26px rgba(0, 204, 187, .4);
}
.solution-card h5 { font-size: 17px; font-weight: 600; color: var(--heading); margin-bottom: 10px; }
.solution-card p { font-size: 14px; margin-bottom: 0; }
.solution-card .icon-wrap .solution-icon-img {
    width: 76px; height: 76px; object-fit: cover; border-radius: 20px;
}
.solution-card:hover .icon-wrap .solution-icon-img { border-radius: 50%; }
