/* =========================================================
   Cabinox — base stylesheet
   ========================================================= */

:root {
    --color-primary: #10343d;
    --color-primary-dark: #0a2027;
    --color-accent: #5c7680;
    --color-accent-light: #8fa3aa;
    --color-text: #333333;
    --color-text-light: #6b6b6b;
    --color-bg-light: #f5f7f8;
    --color-border: #e6e9ea;
    --color-white: #ffffff;
    --font-heading: 'Poppins', Arial, sans-serif;
    --font-body: 'Hind', Arial, sans-serif;
    --container-width: 1170px;
    --header-height: 84px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.65;
    color: var(--color-text);
    background: var(--color-white);
    -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--color-primary); text-decoration: none; transition: color .2s ease; }
a:hover { color: var(--color-accent); }

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--color-primary);
    font-weight: 600;
    line-height: 1.3;
    margin: 0 0 16px;
}

p { margin: 0 0 16px; color: #444; }

ul { margin: 0; padding: 0; list-style: none; }

.container {
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

.sec-padd { padding: 70px 0; }
.sec-padd-sm { padding: 40px 0; }

.text-center { text-align: center; }

.btn {
    display: inline-block;
    padding: 13px 32px;
    background: var(--color-primary);
    color: #fff;
    font-family: var(--font-heading);
    font-weight: 500;
    font-size: 15px;
    letter-spacing: .3px;
    border: 2px solid var(--color-primary);
    border-radius: 2px;
    cursor: pointer;
    transition: all .25s ease;
}
.btn:hover { background: transparent; color: var(--color-primary); }
.btn-outline { background: transparent; color: #fff; border-color: #fff; }
.btn-outline:hover { background: #fff; color: var(--color-primary); }

.section-title { margin-bottom: 40px; }
.section-title.center { text-align: center; }
.section-title h2 {
    font-size: 32px;
    position: relative;
}
.section-title .subtitle { color: var(--color-text-light); font-size: 16px; margin-top: 6px; }

/* =========================================================
   Header / Navigation
   ========================================================= */
.site-header {
    position: sticky;
    top: 0;
    z-index: 500;
    background: #fff;
    box-shadow: 0 2px 12px rgba(0,0,0,.08);
}
.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: var(--header-height);
}
.logo img { height: 46px; width: auto; }

.main-nav ul { display: flex; gap: 8px; }
.main-nav a {
    display: block;
    padding: 10px 16px;
    font-family: var(--font-heading);
    font-weight: 500;
    font-size: 15px;
    color: var(--color-primary);
    border-bottom: 2px solid transparent;
}
.main-nav li.active a,
.main-nav a:hover {
    color: var(--color-accent);
    border-bottom-color: var(--color-accent);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 40px;
    height: 40px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
}
.nav-toggle span {
    display: block;
    height: 2px;
    width: 26px;
    background: var(--color-primary);
    transition: transform .25s ease, opacity .25s ease;
}
.nav-toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.is-open span:nth-child(2) { opacity: 0; }
.nav-toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* =========================================================
   Inner banner (interior pages)
   ========================================================= */
.inner-banner {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
    padding: 46px 0;
    color: #fff;
}
.inner-banner h1 { color: #fff; margin: 0 0 8px; font-size: 30px; }
.inner-banner .breadcrumb { display: flex; justify-content: center; gap: 6px; font-size: 14px; color: rgba(255,255,255,.75); }
.inner-banner .breadcrumb li:not(:last-child)::after { content: '/'; margin-left: 6px; color: rgba(255,255,255,.5); }
.inner-banner .breadcrumb a { color: rgba(255,255,255,.85); }
.inner-banner .breadcrumb a:hover { color: #fff; }

/* =========================================================
   Hero slider (homepage)
   ========================================================= */
.hero-slider {
    position: relative;
    height: 640px;
    overflow: hidden;
    background: var(--color-primary-dark);
}
.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    visibility: hidden;
    transition: opacity 1s ease;
    background-size: cover;
    background-position: center;
}
.hero-slide.is-active { opacity: 1; visibility: visible; }
.hero-slide::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(10,32,39,.35) 0%, rgba(10,32,39,.65) 100%);
}
.hero-slide-content {
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0 20px;
}
.hero-slide-content h2 {
    color: #fff;
    font-size: 42px;
    max-width: 820px;
    text-shadow: 0 2px 12px rgba(0,0,0,.35);
}
.hero-dots {
    position: absolute;
    z-index: 3;
    bottom: 26px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    gap: 10px;
}
.hero-dots button {
    width: 11px;
    height: 11px;
    border-radius: 50%;
    border: 2px solid #fff;
    background: transparent;
    cursor: pointer;
    padding: 0;
}
.hero-dots button.is-active { background: #fff; }

/* =========================================================
   Solutions cards (homepage)
   ========================================================= */
.solutions-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}
.solution-card {
    position: relative;
    padding: 34px 24px;
    text-align: center;
    background: var(--color-bg-light);
    border-radius: 4px;
    overflow: hidden;
    transition: transform .25s ease, box-shadow .25s ease;
}
.solution-card:hover { transform: translateY(-6px); box-shadow: 0 14px 30px rgba(16,52,61,.12); }
.solution-card .icon-box { margin-bottom: 18px; }
.solution-card .icon-box img { width: 46px; height: 46px; margin: 0 auto; }
.solution-card h3 { font-size: 18px; margin-bottom: 0; }
.solution-card h3 a { color: var(--color-primary); }
.solution-card .count {
    position: absolute;
    top: 10px;
    right: 16px;
    font-size: 40px;
    font-weight: 700;
    color: rgba(16,52,61,.06);
}

/* =========================================================
   Services grid (homepage + nos-solutions gallery)
   ========================================================= */
.services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}
.service-card {
    background: #fff;
    border: 1px solid var(--color-border);
    border-radius: 4px;
    overflow: hidden;
    transition: box-shadow .25s ease, transform .25s ease;
}
.service-card:hover { box-shadow: 0 14px 30px rgba(16,52,61,.12); transform: translateY(-4px); }
.service-card .img-box { aspect-ratio: 13/8; overflow: hidden; }
.service-card .img-box img { width: 100%; height: 100%; object-fit: cover; }
.service-card .content { padding: 20px; }
.service-card .tag { display: block; font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--color-accent); margin-bottom: 6px; }
.service-card h3 { font-size: 17px; margin-bottom: 10px; }
.service-card h3 a { color: var(--color-primary); }
.service-card p { font-size: 14px; color: var(--color-text-light); margin-bottom: 14px; }
.service-card .read-more { font-family: var(--font-heading); font-size: 13px; font-weight: 600; color: var(--color-primary); }
.service-card .read-more:hover { color: var(--color-accent); }

/* =========================================================
   World map band
   ========================================================= */
.worldmap-section img { max-width: 900px; margin: 0 auto; }

/* =========================================================
   Contact CTA band
   ========================================================= */
.contact-cta {
    background: var(--color-primary);
    color: #fff;
}
.contact-cta .cta-grid {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 50px;
    align-items: center;
}
.contact-cta h2, .contact-cta h3 { color: #fff; }
.contact-cta .contact-list li { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; font-size: 15px; }
.contact-cta .contact-list .ico {
    width: 34px; height: 34px; border-radius: 50%;
    border: 1px solid rgba(255,255,255,.4);
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
    font-size: 14px;
}

/* =========================================================
   Logo strips (partners / references)
   ========================================================= */
.logo-strip {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 40px;
}
.logo-strip .item {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 140px;
    height: 70px;
    transition: transform .25s ease;
}
.logo-strip .item img { max-width: 100%; max-height: 100%; width: auto; object-fit: contain; }
.logo-strip .item:hover { transform: translateY(-3px); }

/* =========================================================
   Call-out band (logo + tagline)
   ========================================================= */
.callout {
    background: var(--color-bg-light);
    padding: 34px 0;
}
.callout .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: wrap;
}
.callout h4 { margin: 0; font-size: 20px; }

/* =========================================================
   Generic content sections (interior pages)
   ========================================================= */
.content-section { padding: 60px 0; }
.content-block + .content-block { margin-top: 50px; padding-top: 50px; border-top: 1px solid var(--color-border); }
.content-row { display: grid; grid-template-columns: 1.2fr 1fr; gap: 40px; align-items: center; }
.content-row.reverse .media { order: 2; }
.content-row h3 { font-size: 22px; }
.content-row .media img { border-radius: 4px; }
.content-row ul.link-list li { margin-bottom: 8px; }
.content-row ul.link-list a { font-weight: 500; }
.content-row ul.link-list a::before { content: '›'; margin-right: 8px; color: var(--color-accent); }

.three-col {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    margin-top: 20px;
}
.three-col figure { margin: 0 0 18px; border-radius: 4px; overflow: hidden; aspect-ratio: 4/3; }
.three-col figure img { width: 100%; height: 100%; object-fit: cover; }
.three-col h4 { font-size: 18px; }

.mini-gallery {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin: 30px 0;
}
.mini-gallery figure { margin: 0; text-align: center; }
.mini-gallery img { border-radius: 4px; margin-bottom: 8px; aspect-ratio: 2/1; width: 100%; object-fit: cover; }
.mini-gallery figcaption { font-size: 13px; color: var(--color-text-light); }

/* =========================================================
   Service detail page
   ========================================================= */
.service-detail .featured-img { margin-bottom: 34px; border-radius: 4px; overflow: hidden; }
.service-detail .article-body h2,
.service-detail .article-body h3 { font-size: 20px; margin-top: 30px; }
.service-detail .article-body ul,
.service-detail .article-body ol { margin: 0 0 20px 22px; list-style: disc; }
.service-detail .article-body ol { list-style: decimal; }
.service-detail .article-body li { margin-bottom: 6px; color: #444; }
.service-detail .article-body img { margin: 24px 0; border-radius: 4px; }
.service-detail .share-box { margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--color-border); display: flex; align-items: center; gap: 14px; }
.service-detail .share-box .social a {
    display: inline-flex; align-items: center; justify-content: center;
    width: 34px; height: 34px; border-radius: 50%;
    background: var(--color-bg-light); color: var(--color-primary);
    margin-left: 6px; font-size: 14px;
}
.service-detail .share-box .social a:hover { background: var(--color-primary); color: #fff; }

/* =========================================================
   Contact page map
   ========================================================= */
.contact-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; }
.contact-map iframe { width: 100%; height: 100%; min-height: 420px; border: 0; border-radius: 4px; }
.contact-info-list li { display: flex; gap: 14px; margin-bottom: 18px; font-size: 15px; }
.contact-info-list .ico {
    width: 38px; height: 38px; border-radius: 50%; background: var(--color-bg-light);
    display: flex; align-items: center; justify-content: center; flex-shrink: 0; color: var(--color-primary);
}

/* =========================================================
   Footer
   ========================================================= */
.site-footer { background: var(--color-primary-dark); color: rgba(255,255,255,.75); }
.footer-inner {
    display: grid;
    grid-template-columns: 1.3fr 1fr 1fr;
    gap: 40px;
    padding: 50px 0 30px;
}
.footer-brand img { margin-bottom: 14px; filter: brightness(0) invert(1); }
.footer-brand p { color: rgba(255,255,255,.6); }
.footer-contact p { margin-bottom: 10px; font-size: 14px; }
.footer-nav { display: flex; flex-direction: column; gap: 10px; }
.footer-nav a { color: rgba(255,255,255,.75); font-size: 14px; }
.footer-nav a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); padding: 18px 0; }
.footer-bottom p { margin: 0; font-size: 13px; color: rgba(255,255,255,.5); text-align: center; }
