/* ==========================================================================
   Kimia Data Processing — site styles
   Merged from: main.css + projects-home.css + our-customer.css + inline <style>
   ========================================================================== */

/* --------------------------------------------------------------------------
   Base
   -------------------------------------------------------------------------- */
html {
    width: 100%;
    height: 100%;
    scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
}

body {
    width: 100%;
    height: 100%;
    font-family: 'Droid Arabic Naskh', tahoma, sans-serif;
    color: #000;
    background-color: #fff;
    -webkit-tap-highlight-color: rgba(255, 255, 255, .2);
}

/* offset for the fixed navbar when jumping to an #anchor */
section[id] { scroll-margin-top: 70px; }

h1, h2, h3, h4, h5, h6 {
    margin: 0 0 35px;
    font-family: 'Droid Arabic Naskh', tahoma, sans-serif;
    font-weight: 700;
    letter-spacing: 1px;
}

p {
    margin: 0 0 25px;
    font-size: 18px;
    line-height: 1.5;
}

@media (min-width: 767px) {
    p {
        margin: 0 0 35px;
        font-size: 14px;
        line-height: 1.6;
    }
}

a {
    color: #1B7A98;                 /* WCAG AA contrast on white (~4.6:1) */
    transition: color .2s ease-in-out;
}

a:hover,
a:focus {
    text-decoration: none;
    color: #176e61;
}

.light { font-weight: 400; }

.sr-only-focusable:focus {
    position: static;
    width: auto;
    height: auto;
    margin: 0;
    overflow: visible;
    clip: auto;
}

/* --------------------------------------------------------------------------
   Icons (inline SVG replacing Font Awesome)
   -------------------------------------------------------------------------- */
.icon {
    display: inline-block;
    width: 1em;
    height: 1em;
    fill: currentColor;
    vertical-align: -.125em;
}

.icon-lg { width: 1.25em; height: 1.25em; }

/* --------------------------------------------------------------------------
   Navbar
   -------------------------------------------------------------------------- */
.navbar {
    margin-bottom: 0;
    border-bottom: 1px solid rgba(255, 255, 255, .3);
    font-family: 'Droid Arabic Naskh', tahoma, sans-serif;
    background-color: #000;
}

.navbar-brand { font-weight: 700; }

.navbar-brand img {
    display: block;
    margin-top: -6px;
}

.navbar-custom a { color: #fff; }

.navbar-custom .nav li a { transition: background .3s ease-in-out; }

.navbar-custom .nav li a:hover,
.navbar-custom .nav li a:focus,
.navbar-custom .nav li.active {
    background-color: rgba(255, 255, 255, .2);
}

.navbar-toggle {
    padding: 4px 6px;
    font-size: 16px;
    color: #fff;
}

/* Visible keyboard focus — replaces the old `outline: 0` rules */
.navbar-brand:focus-visible,
.navbar-toggle:focus-visible,
.btn-circle:focus-visible,
.navbar-custom .nav li a:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 2px;
}

@media (min-width: 767px) {
    .navbar {
        padding: 20px 0;
        border-bottom: 0;
        letter-spacing: 1px;
        background: transparent;
        transition: background .5s ease-in-out, padding .5s ease-in-out;
    }

    .top-nav-collapse {
        padding: 0;
        background-color: #46B8DA;
    }

    .navbar-custom.top-nav-collapse {
        border-bottom: 1px solid rgba(255, 255, 255, .3);
    }
}

/* --------------------------------------------------------------------------
   Intro / hero
   -------------------------------------------------------------------------- */
.intro {
    display: table;
    width: 100%;
    height: auto;
    padding: 100px 0;
    text-align: center;
    color: #fff;
    background: url(../img/opt/intro-bg.webp) no-repeat center center;
    background-size: cover;
    background-color: #86C3C4;
}

.intro-body {
    display: table-cell;
    vertical-align: middle;
}

.brand-heading {
    margin: 0 0 35px;
    font-size: 40px;
}

.intro-text { font-size: 18px; }

@media (min-width: 767px) {
    .intro {
        height: 100%;
        padding: 0;
    }

    .brand-heading { font-size: 60px; }
    .intro-text    { font-size: 25px; }
}

.btn-circle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 70px;
    height: 70px;
    margin-top: 15px;
    padding: 0;
    border: 2px solid #fff;
    border-radius: 35px;
    font-size: 40px;
    line-height: 1;
    color: #fff;
    background: transparent;
    transition: background .3s ease-in-out;
}

.btn-circle:hover,
.btn-circle:focus {
    color: #fff;
    background: rgba(255, 255, 255, .1);
}

.btn-circle .icon {
    width: 40px;
    height: 40px;
}

.page-scroll .btn-circle:hover .icon.animated {
    animation: pulse 1.5s linear infinite;
}

@media (prefers-reduced-motion: reduce) {
    .page-scroll .btn-circle:hover .icon.animated { animation: none; }
}

@keyframes pulse {
    0%   { transform: scale(1); }
    50%  { transform: scale(1.2); }
    100% { transform: scale(1); }
}

/* --------------------------------------------------------------------------
   Sections
   -------------------------------------------------------------------------- */
.content-section { padding-top: 100px; }

.download-section {
    width: 100%;
    padding: 50px 0;
    color: #fff;
    background: url(../img/opt/downloads-bg.webp) no-repeat center center;
    background-size: cover;
    background-color: #000;
}

@media (min-width: 767px) {
    .content-section  { padding-top: 60px; }
    .download-section { padding: 100px 0; }
}

/* --------------------------------------------------------------------------
   Projects
   -------------------------------------------------------------------------- */
.project { margin-bottom: 0; }

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

.project .holder .thumbnail {
    max-width: 180px;
    width: 100%;
    height: auto;
    margin-inline: auto;
}

.project h3 {
    margin: 0 0 20px;
    font-size: 20px;
    line-height: 1.6;
}

.project h3 a { color: #000; }

.project h3 a:hover,
.project h3 a:focus { color: #176e61; }

.project ol {
    margin: 0 0 25px;
    padding-inline-start: 25px;
    font-size: 18px;
    line-height: 1.5;
}

@media (min-width: 767px) {
    .project ol {
        margin: 0 0 35px;
        font-size: 14px;
        line-height: 1.6;
    }
}

/* --------------------------------------------------------------------------
   Contact
   -------------------------------------------------------------------------- */
#contact { padding-bottom: 120px; }

#contact .contact-info {
    text-align: right;
    margin-top: 60px;
}

.contact-address {
    margin: 0;
    font-style: normal;
    line-height: 1.8;
}

.contact-address p { margin: 0 0 18px; }

.captcha-row .captcha-input { width: 110px; }

.captcha-img {
    cursor: pointer;
    vertical-align: middle;
}

.captcha-refresh {
    margin-inline-start: 6px;
    background: none;
    border: 0;
    padding: 4px;
    color: #1B7A98;
    cursor: pointer;
}

.contact-alert {
    text-align: right;
    max-width: 480px;
}

/* Honeypot: hidden from users without pushing the page off-screen.
   An off-canvas `left:-9999px` is scrollable in an RTL document and
   was giving the page a ~10000px wide horizontal scroll. */
.hp-field {
    position: absolute !important;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    border: 0;
    overflow: hidden;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    white-space: nowrap;
}

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */
.btn {
    font-family: 'Droid Arabic Naskh', tahoma, sans-serif;
    font-weight: 400;
    transition: color .3s ease-in-out, background-color .3s ease-in-out, border-color .3s ease-in-out;
}

.btn-default {
    border: 1px solid #5BC0DE;
    color: #1B7A98;
    background-color: transparent;
}

.btn-default:hover,
.btn-default:focus {
    border: 1px solid #5BC0DE;
    color: #000;
    background-color: #5BC0DE;
}

/* --------------------------------------------------------------------------
   Footer / Enamad trust seal
   -------------------------------------------------------------------------- */
footer { padding-top: 40px; }

.site-footer-links {
    text-align: center;
    color: #fff;
    margin-top: 20px;
}

.site-footer-links a {
    color: #fff;
    text-decoration: underline;
}

.enamad-container {
    margin: 20px 0;
    padding: 20px;
    display: inline-block;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, .1), 0 0 0 1px rgba(255, 255, 255, .5) inset;
    transition: transform .3s ease, box-shadow .3s ease;
    position: relative;
    overflow: hidden;
    min-width: 200px;
    min-height: 70px;
}

/* Shimmer sweep — animates `transform` only, so it stays on the compositor.
   The old version animated `left` on a 200%x200% box: layout + paint per frame. */
.enamad-container::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, .3), transparent);
    transform: translateX(0) rotate(45deg);
    transition: transform .5s ease;
}

.enamad-container:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, .15), 0 0 0 1px rgba(255, 255, 255, .5) inset;
}

.enamad-container:hover::before {
    transform: translateX(100%) rotate(45deg);
}

@media (prefers-reduced-motion: reduce) {
    .enamad-container,
    .enamad-container::before { transition: none; }
    .enamad-container:hover { transform: none; }
}

.enamad-link {
    display: inline-block;
    text-decoration: none;
    transition: transform .3s ease;
    position: relative;
    z-index: 1;
}

.enamad-link:hover { transform: scale(1.08); }

.enamad-logo {
    cursor: pointer;
    display: block;
    max-width: 130px;
    height: auto;
    filter: drop-shadow(0 3px 6px rgba(0, 0, 0, .25));
    transition: filter .3s ease, opacity .3s ease;
    border-radius: 5px;
}

.enamad-link:hover .enamad-logo {
    filter: drop-shadow(0 5px 10px rgba(0, 0, 0, .35));
}

.enamad-placeholder {
    display: inline-block;
    min-width: 130px;
    min-height: 60px;
    line-height: 60px;
    color: #666;
    font-size: 12px;
    text-align: center;
    position: relative;
    opacity: .7;
    transition: opacity .3s ease;
}

.enamad-placeholder.loading { opacity: 1; }

.enamad-placeholder::before {
    content: '';
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid #ccc;
    border-top-color: #666;
    border-radius: 50%;
    animation: spin .8s linear infinite;
    margin-inline-end: 8px;
    vertical-align: middle;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.enamad-logo.loaded  { display: block !important; }
.enamad-logo.loading { opacity: .5; }

.captcha-actions {
    float: right;   /* physical on purpose: `inline-end` is too new to rely on */
}
