/* Phase 6: design tokens, accessibility and small UI additions.
   Loaded after style.css so these rules can override where needed. */

:root {
    --sd-color-primary: #0052cc;
    --sd-color-dark: #1b1b1b;
    --sd-color-light-bg: #f8f9fa;
    --sd-color-text: #333333;
    --sd-color-muted: #666666;

    --sd-space-xs: 8px;
    --sd-space-sm: 16px;
    --sd-space-md: 24px;
    --sd-space-lg: 40px;
    --sd-space-xl: 64px;

    --sd-radius-sm: 6px;
    --sd-radius-md: 12px;
    --sd-radius-lg: 20px;

    --sd-shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
    --sd-shadow-md: 0 8px 24px rgba(0, 0, 0, 0.12);
}

body {
    line-height: 1.7;
}

h1, h2, h3, h4, h5, h6 {
    line-height: 1.3;
}

/* Visible keyboard focus state on every interactive element (WCAG 2.2 AA) */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible,
.btn:focus-visible {
    outline: 3px solid var(--sd-color-primary);
    outline-offset: 2px;
}

/* Respect reduced-motion preference: turn off decorative animation */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.001ms !important;
        scroll-behavior: auto !important;
    }
}

/* Equal-height portfolio cards in a responsive grid */
.portfolio_carousel .swiper-slide,
.filter_elements_wrapper .portfolio_block {
    display: flex;
}
.portfolio_block {
    display: flex;
    flex-direction: column;
    width: 100%;
}
.portfolio_content {
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* Equal-size portfolio images: each source screenshot has a
   different native aspect ratio, which was making cards in the
   same row render at different heights. Crop every portfolio image
   to the same 3:2 box instead. */
.portfolio_image {
    aspect-ratio: 3 / 2;
    overflow: hidden;
}
.portfolio_image img,
.portfolio_image_wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Floating WhatsApp / Call buttons (mobile) */
.floating_contact_buttons {
    position: fixed;
    right: 16px;
    bottom: 16px;
    z-index: 999;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.floating_contact_buttons a {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 22px;
    box-shadow: var(--sd-shadow-md);
}
.floating_contact_buttons .whatsapp_btn { background: #25D366; }
.floating_contact_buttons .call_btn { background: var(--sd-color-primary); }

@media (min-width: 992px) {
    /* Desktop already has header contact buttons; keep floating
       buttons for mobile/tablet only, where thumb-reach matters most. */
    .floating_contact_buttons { display: none; }
}

/* Cookie consent banner: styled explicitly rather than with theme
   .btn classes, since the theme's own .btn rules (loaded after
   Bootstrap) override Bootstrap's btn-outline-light text colour and
   make it unreadable on a dark background. */
.cookie_consent_banner {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10000;
    background: var(--sd-color-dark);
    padding: var(--sd-space-sm) var(--sd-space-md);
    box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.25);
}
.cookie_consent_btn {
    font-size: 14px;
    font-weight: 600;
    padding: 8px 18px;
    border-radius: var(--sd-radius-sm);
    cursor: pointer;
    line-height: 1.4;
}
.cookie_consent_btn_reject {
    background: transparent;
    color: #ffffff;
    border: 1px solid #ffffff;
}
.cookie_consent_btn_reject:hover { background: rgba(255, 255, 255, 0.1); }
.cookie_consent_btn_accept {
    background: var(--sd-color-primary);
    color: #ffffff;
    border: 1px solid var(--sd-color-primary);
}
.cookie_consent_btn_accept:hover { filter: brightness(1.1); }

/* Lift the floating buttons and back-to-top above the consent
   banner instead of overlapping it while the banner is shown. */
body:has(#cookie_consent_banner[style*="block"]) .floating_contact_buttons,
body:has(#cookie_consent_banner[style*="block"]) .backtotop {
    bottom: 90px;
}

/* Footer address text: these two lines were converted from fake "#"
   links to plain text (so they're not misleadingly clickable), but
   lost the brighter colour the theme only applies to <a> tags inside
   .icon_list. Restore readable contrast explicitly. */
.footer_address_text {
    color: rgba(255, 255, 255, 0.85);
}

/* Header Webmail + Get Started buttons: the theme's header_btns_group
   wrapped onto two lines once a second button was added, because its
   column didn't have flex-wrap: nowrap and the Webmail button used
   the same padding as a full-size .btn. Force one row and compact
   the Webmail button so both fit. */
.header_btns_group_nowrap {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: 10px;
}
.header_btns_group_nowrap .btn-sm {
    padding: 8px 16px;
    font-size: 13px;
}

/* =====================================================================
   Enterprise polish pass - Home, About, Services, Portfolio, Contact.
   Keeps the existing navy/blue brand palette and page structure; just
   elevates type, spacing, shadows and hover behaviour on top of it.
   ===================================================================== */

:root {
    --sd-elevation-1: 0 1px 2px rgba(16, 24, 64, 0.06), 0 1px 3px rgba(16, 24, 64, 0.08);
    --sd-elevation-2: 0 4px 12px rgba(16, 24, 64, 0.08), 0 2px 4px rgba(16, 24, 64, 0.06);
    --sd-elevation-3: 0 16px 40px rgba(16, 24, 64, 0.14), 0 4px 12px rgba(16, 24, 64, 0.08);
    --sd-ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* Tighter, more deliberate heading type scale with negative tracking
   on large display text - a common enterprise-SaaS cue. */
.page_title,
.heading_text {
    letter-spacing: -0.02em;
    font-weight: 700;
}
.software_company_hero_section h1 {
    letter-spacing: -0.03em;
}
.heading_description {
    color: var(--sd-color-muted);
}

/* Eyebrow / badge pills used throughout ("Crafting", "Services", etc.) */
.heading_focus_text .badge,
.badge.bg-secondary {
    letter-spacing: 0.04em;
    text-transform: uppercase;
    font-weight: 600;
    font-size: 11px;
    padding: 6px 12px;
}

/* Buttons: subtle elevation + lift on hover instead of a flat flip */
.btn {
    transition: transform 0.2s var(--sd-ease), box-shadow 0.2s var(--sd-ease);
}
.btn-primary {
    box-shadow: var(--sd-elevation-1);
}
.btn-primary:hover,
.btn-outline-primary:hover,
.cookie_consent_btn_accept:hover {
    transform: translateY(-2px);
    box-shadow: var(--sd-elevation-2);
}

/* Card surfaces: consistent radius + resting elevation, with a
   coordinated lift on hover across every card type on these pages. */
.service_block_2,
.iconbox_block,
.iconbox_block_2,
.case_study_block,
.review_block_2,
.contact_info_box .iconbox_block,
.filter_elements_wrapper .portfolio_block {
    border-radius: var(--sd-radius-md);
    box-shadow: var(--sd-elevation-1);
    transition: transform 0.3s var(--sd-ease), box-shadow 0.3s var(--sd-ease);
}
.service_block_2:hover,
.iconbox_block:hover,
.iconbox_block_2:hover,
.case_study_block:hover,
.review_block_2:hover,
.filter_elements_wrapper .portfolio_block:hover {
    transform: translateY(-6px);
    box-shadow: var(--sd-elevation-3);
}

/* Portfolio image zoom on hover, contained by the fixed-ratio crop
   added earlier so it never reflows the card. */
.portfolio_image {
    transition: none;
}
.portfolio_image img {
    transition: transform 0.5s var(--sd-ease);
}
.portfolio_block:hover .portfolio_image img {
    transform: scale(1.06);
}

/* Accordion (FAQ, process steps): rounded, elevated, with a clearer
   active-state accent instead of the default Bootstrap flat panel. */
.accordion-item {
    border: none;
    border-radius: var(--sd-radius-md) !important;
    box-shadow: var(--sd-elevation-1);
    margin-bottom: var(--sd-space-sm);
    overflow: hidden;
}
.accordion-button {
    font-weight: 600;
}
.accordion-button:not(.collapsed) {
    color: var(--sd-color-primary);
    background-color: rgba(0, 82, 204, 0.06);
    box-shadow: none;
}
.accordion-button:focus {
    box-shadow: 0 0 0 3px rgba(0, 82, 204, 0.25);
}

/* Contact form: clearer resting/focus states on every field */
.contact_form .form-control {
    border-radius: var(--sd-radius-sm);
    border: 1px solid #dfe3ea;
    transition: border-color 0.2s var(--sd-ease), box-shadow 0.2s var(--sd-ease);
}
.contact_form .form-control:focus {
    border-color: var(--sd-color-primary);
    box-shadow: 0 0 0 3px rgba(0, 82, 204, 0.15);
}

/* Section rhythm: slightly more generous breathing room between
   major sections for a less dense, higher-end feel. */
.section_space {
    padding-top: clamp(64px, 8vw, 112px);
    padding-bottom: clamp(64px, 8vw, 112px);
}

@media (prefers-reduced-motion: reduce) {
    .btn,
    .service_block_2,
    .iconbox_block,
    .iconbox_block_2,
    .case_study_block,
    .review_block_2,
    .filter_elements_wrapper .portfolio_block,
    .portfolio_image img {
        transition: none !important;
    }
}

/* =====================================================================
   Home page section innovations (hero/slider intentionally untouched).
   ===================================================================== */

/* --- Services: numbered index + accent icon chip ----------------- */
.service_section .row {
    counter-reset: sd-service;
}
.service_block_2 {
    position: relative;
    padding-top: calc(var(--sd-space-md) + 6px);
    overflow: hidden;
}
.service_block_2::before {
    counter-increment: sd-service;
    content: counter(sd-service, decimal-leading-zero);
    position: absolute;
    top: -10px;
    right: 4px;
    font-size: 56px;
    font-weight: 800;
    line-height: 1;
    color: rgba(0, 82, 204, 0.08);
    pointer-events: none;
}
.service_icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    border-radius: var(--sd-radius-md);
    background: linear-gradient(135deg, rgba(0, 82, 204, 0.12), rgba(0, 82, 204, 0.04));
}
.service_block_2:hover .service_icon {
    background: var(--sd-color-primary);
}
.service_block_2:hover .service_icon img {
    filter: brightness(0) invert(1);
}
.service_icon img {
    transition: filter 0.3s var(--sd-ease);
}

/* --- Case studies: bigger visual impact with image zoom + overlay - */
.case_study_block {
    overflow: hidden;
}
.case_study_image {
    overflow: hidden;
    border-radius: var(--sd-radius-md);
    position: relative;
}
.case_study_image::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 50%, rgba(10, 14, 46, 0.75) 100%);
    opacity: 0;
    transition: opacity 0.3s var(--sd-ease);
}
.case_study_block:hover .case_study_image::after {
    opacity: 1;
}
.case_study_image img {
    transition: transform 0.5s var(--sd-ease);
}
.case_study_block:hover .case_study_image img {
    transform: scale(1.08);
}
.case_title a {
    transition: color 0.2s var(--sd-ease);
}
.case_study_block:hover .case_title a {
    color: var(--sd-color-primary);
}

/* --- Working Process: connected step indicator -------------------- */
#service_process_faq .accordion-item {
    position: relative;
    padding-left: 4px;
}

/* --- Tech stack tabs: clearer active state ------------------------- */
.process_technology_review_section .nav-pills .nav-link {
    border-radius: var(--sd-radius-sm);
    font-weight: 600;
    transition: background-color 0.2s var(--sd-ease), color 0.2s var(--sd-ease);
}
.process_technology_review_section .nav-pills .nav-link.active {
    background-color: var(--sd-color-primary);
    box-shadow: var(--sd-elevation-1);
}

/* --- Testimonials: quote glyph + elevated card --------------------- */
.review_block_2 {
    position: relative;
    padding-top: calc(var(--sd-space-md) + 10px);
}
.review_block_2::before {
    content: "\201C";
    position: absolute;
    top: 4px;
    left: var(--sd-space-md);
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 64px;
    line-height: 1;
    color: rgba(0, 82, 204, 0.15);
}

/* --- Home lead-gen CTA band: give the form a distinct "panel" feel - */
.instant_contact_form {
    background: #fff;
    border-radius: var(--sd-radius-lg);
    box-shadow: var(--sd-elevation-2);
    padding: var(--sd-space-lg);
}
.contact_method_box {
    background: linear-gradient(160deg, var(--sd-color-dark), #0a0e2e);
    border-radius: var(--sd-radius-lg);
    padding: var(--sd-space-lg);
    color: #fff;
}
.contact_method_box .heading_text,
.contact_method_box .heading_description,
.contact_method_box .contact_method_list a,
.contact_method_box .support_step .text {
    color: #fff;
}
.contact_method_box .contact_method_list a:hover {
    color: #9cd6ff;
}
.contact_method_box .contact_method_list .icon {
    background: rgba(255, 255, 255, 0.15);
}

/* =====================================================================
   About section ("Our Commitment to Client Satisfaction") and Case
   Studies: further requested innovations.
   ===================================================================== */

.sd_about_image_wrap {
    position: relative;
}
.sd_about_badge_card {
    position: absolute;
    left: 24px;
    bottom: 24px;
    display: flex;
    align-items: center;
    gap: 12px;
    background: #fff;
    border-radius: var(--sd-radius-md);
    box-shadow: var(--sd-elevation-3);
    padding: 14px 18px;
    max-width: 280px;
}
.sd_about_badge_icon {
    flex: 0 0 auto;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--sd-color-primary);
    color: #fff;
    font-size: 16px;
}
.sd_about_badge_text {
    font-weight: 700;
    font-size: 14px;
    line-height: 1.4;
    color: var(--sd-color-dark);
}
.sd_about_badge_text small {
    font-weight: 400;
    color: var(--sd-color-muted);
}

.sd_checklist .icon_list_icon {
    width: 24px;
    height: 24px;
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(0, 82, 204, 0.12);
    color: var(--sd-color-primary);
    font-size: 12px;
}

/* Case studies: numbered index, zig-zag layout, tech icon polish */
.case_study_block {
    position: relative;
}
.case_study_index {
    position: absolute;
    top: 24px;
    left: 24px;
    z-index: 2;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.92);
    color: var(--sd-color-primary);
    font-weight: 700;
    font-size: 13px;
    box-shadow: var(--sd-elevation-1);
}
.case_studies_wrapper .case_study_block:nth-child(even) .case_study_image {
    order: 2;
}
.case_study_block .category_list li span {
    color: var(--sd-color-primary);
    font-weight: 600;
    letter-spacing: 0.04em;
}
.case_technologies li img {
    border-radius: 50%;
    box-shadow: var(--sd-elevation-1);
    transition: transform 0.2s var(--sd-ease);
}
.case_technologies li img:hover {
    transform: translateY(-3px);
}
.case_study_content .btn-outline-primary {
    margin-top: var(--sd-space-sm);
}

@media (max-width: 991px) {
    .case_studies_wrapper .case_study_block:nth-child(even) .case_study_image {
        order: 1;
    }
}

/* =====================================================================
   /services index: each card now links to its own detail page instead
   of dead-ending as a static tile.
   ===================================================================== */
.service_block_link {
    display: block;
    color: inherit;
    text-decoration: none;
    height: 100%;
}
.service_block_link:hover {
    color: inherit;
}
.service_block_cta {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: var(--sd-space-sm);
    font-weight: 600;
    color: var(--sd-color-primary);
}
.service_block_link:hover .service_block_cta i {
    transform: translateX(3px);
}
.service_block_cta i {
    font-size: 12px;
    transition: transform 0.2s var(--sd-ease);
}

/* =====================================================================
   Footer widgets: all four (Services, Community, Industries, Our
   Location) are equal-width col-lg-3 columns now, so the branches in
   "Our Location" stack vertically rather than needing side-by-side
   space.
   ===================================================================== */
.footer_location_grid {
    display: flex;
    flex-direction: column;
    gap: var(--sd-space-sm);
}
.footer_branch_title {
    font-size: 14px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.55);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 10px;
}
