/* =========================================================
   Home page corporate refresh — alternating pale sections,
   inverted icon treatment, and tightened hero product cards.
   Scoped only under .home-section and #secondhead.
   ========================================================= */

/* ----- Hero product cards (header — 3 vignettes) ----- */
/* Neutralize legacy layout.css rules that still target .prodz / .bla / .plusdet with
   absolute positioning, fixed 75vh heights, negative margins, etc. Everything below
   uses flex layout and needs these resets. */
#secondhead .prodz .blbak .bla > div,
#secondhead .prodz .blbak .bla > div span,
#secondhead .prodz .blbak .bla a {
    position: static !important;
    top: auto !important;
    bottom: auto !important;
    left: auto !important;
    right: auto !important;
    line-height: normal;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    padding-left: 0 !important;
    float: none !important;
}

/* Layout.css forces multiple legacy header constraints that fight with our
   home hero layout:
   - overflow: hidden  → clips the proof band labels
   - width: 100vw      → blocks horizontal natural growth
   - height: 110vh     → fixes header taller than viewport, pushing proof off
   - min-height: 850px → similar
   - padding-top: 80px + border-bottom: 5px solid → eats vertical space
   We neutralize these on the home so our flex layout can manage height. */
body.index > header {
    overflow: visible !important;
    width: auto !important;
    height: auto !important;
    min-height: 100vh;
    max-height: none !important;
    border-bottom: none !important;
    padding-bottom: 0 !important;
    /* Keep padding-top from layout.css (80px) — it clears the fixed navbar */
    background-image: none !important;
}

/* Home hero fills the viewport height — header is the blue area + cards + proof band */
body.index > header {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}
body.index > header > .container:first-of-type { flex: 0 0 auto; }
#secondhead {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-top: 10px;
    padding-bottom: 20px;
}
body.index > header > .home-proof { flex: 0 0 auto; }

/* Mobile block — body.index prefix boosts specificity over later generic !important rules */
@media (max-width: 991px) {
    body.index > header { min-height: auto; }
    body.index #secondhead { padding-top: 20px !important; padding-bottom: 30px !important; }
    /* Override legacy layout.css .prodz (80vh min-height 560px) + current desktop rules */
    body.index #secondhead .prodz {
        height: auto !important;
        min-height: 0 !important;
        margin-top: 18px !important;
        width: 100% !important;
        max-width: 100% !important;
        padding: 0 !important;
    }
    /* Full width cards: edge-to-edge on phone */
    body.index #secondhead .container {
        padding-left: 12px !important;
        padding-right: 12px !important;
    }
    body.index #secondhead .row,
    body.index #secondhead .row > [class^="col-"] {
        padding-left: 0 !important;
        padding-right: 0 !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }
    body.index #secondhead .prodz .blbak {
        max-width: none !important;
        min-height: 420px !important;
        margin: 0 !important;
    }
    body.index #secondhead .prodz .blbak .bla {
        position: relative !important;
        top: auto !important;
        bottom: auto !important;
        left: auto !important;
        right: auto !important;
        padding: 0 !important;
        margin: 0 !important;
    }
    body.index #secondhead .prodz .blbak .bla a {
        margin-bottom: 8px !important;
        margin-top: 0 !important;
        float: none !important;
        position: static !important;
        bottom: auto !important;
        right: auto !important;
    }
}
/* Force flex row so both cards stretch to equal height regardless of h3 wrapping */
#secondhead .row {
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
    margin-left: 0;
    margin-right: 0;
}
#secondhead .row > h1 {
    flex: 0 0 100%;
    width: 100%;
}
#secondhead .prodz {
    height: auto !important;
    margin-top: 40px !important;
    padding: 0 !important;
    display: flex;
}
#secondhead .prodz .blbak {
    position: relative !important;
    top: auto !important;
    bottom: auto !important;
    left: auto !important;
    right: auto !important;
    margin: 0 auto !important;
    padding: 22px 22px 20px !important;
    border-radius: 14px !important;
    background: linear-gradient(180deg, #2a87d6 0%, #1e6fb8 100%) !important;
    border: 1px solid rgba(255, 255, 255, 0.16) !important;
    box-shadow: 0 18px 42px rgba(0, 0, 0, 0.22) !important;
    min-height: 460px;
    height: 100%;
    width: 100%;
    max-width: 360px;
    display: flex;
    flex-direction: column;
}
/* NEW card keeps the standard border (yellow pill badge signals "new") */
@media (max-width: 991px) {
    #secondhead .prodz .blbak { margin-bottom: 22px !important; }
}
#secondhead .prodz .blbak h3 {
    font-size: 24px !important;
    font-weight: 700 !important;
    color: #fff !important;
    text-align: center;
    margin: 0 0 18px !important;
    line-height: 1.25 !important;
    min-height: 2.5em;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Image slot: FIXED height (clamped by viewport) so caption-dots align across cards */
#secondhead .prodz .blbak .bg {
    position: relative !important;
    top: auto !important;
    left: auto !important;
    right: auto !important;
    bottom: auto !important;
    flex: 0 0 auto !important;
    height: clamp(220px, 32vh, 320px) !important;
    min-height: 0;
    max-height: none;
    width: 100%;
    margin: 0 0 18px !important;
    background-size: contain !important;
    background-position: center center !important;
}
@media (max-width: 991px) {
    #secondhead .prodz .blbak .bg {
        height: 230px !important;
    }
}
@media (max-width: 560px) {
    #secondhead .prodz .blbak .bg {
        height: 200px !important;
    }
}

/* Content block: description + buttons stacked cleanly */
#secondhead .prodz .blbak .bla {
    position: relative !important;
    top: auto !important;
    left: auto !important;
    right: auto !important;
    margin: 0 !important;
    padding: 0 !important;
    flex: 1;
    display: flex;
    flex-direction: column;
    color: #fff;
    text-align: center;
}
#secondhead .prodz .blbak .bla > div:first-child {
    flex: 1;
    margin-bottom: 18px !important;
    font-size: 15px !important;
    font-weight: 400 !important;
    line-height: 1.45;
}
#secondhead .prodz .blbak .bla > div:first-child span {
    color: rgba(255, 255, 255, 0.92);
    font-weight: 400;
}

/* ----- Product badge pill (top of blue card) ----- */
#secondhead .prodz .blbak .prodz-badge {
    display: inline-block;
    align-self: center;
    background: rgba(255, 255, 255, 0.14);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 6px 16px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    margin: 0 auto 16px !important;
    text-align: center;
}
#secondhead .prodz .blbak .prodz-badge.prodz-badge--new {
    background: #ffe500;
    color: #1a2a3a;
    border-color: #ffe500;
    box-shadow: 0 2px 10px rgba(255, 229, 0, 0.45);
}
/* SVG illustration (IPAchat) fits the same slot as the product image */
#secondhead .prodz .blbak .prodz-svg-bg {
    background: transparent !important;
    display: flex;
    align-items: center;
    justify-content: center;
}
#secondhead .prodz .blbak .prodz-svg-bg svg,
#secondhead .prodz .blbak .prodz-svg-bg img.prodz-img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: 100%;
    object-fit: contain;
    display: block;
    margin: 0 auto;
}

/* ----- Multi-device composition (layers stacked inside .bg slot) ----- */
#secondhead .prodz .blbak .prodz-compose {
    position: relative;
    background: transparent !important;
}
#secondhead .prodz .blbak .prodz-compose .prodz-layer {
    display: block;
    object-fit: contain;
    width: auto;
    height: auto;
}

/* ---- Virtu (solo): one phone centered, takes the vertical space ---- */
#secondhead .prodz .blbak .prodz-compose--solo {
    display: flex;
    align-items: center;
    justify-content: center;
}
#secondhead .prodz .blbak .prodz-compose--solo .prodz-layer--phone {
    max-height: 100%;
    max-width: 48%;
    filter: drop-shadow(0 12px 22px rgba(0, 0, 0, 0.28));
}

/* ---- IPA (team): laptop + tablet + phone, staggered & balanced ---- */
#secondhead .prodz .blbak .prodz-compose--team .prodz-layer {
    position: absolute;
}
#secondhead .prodz .blbak .prodz-compose--team .prodz-layer--laptop {
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    max-height: 56%;
    max-width: 88%;
    z-index: 1;
    filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.25));
}
#secondhead .prodz .blbak .prodz-compose--team .prodz-layer--tablet {
    left: -2%;
    bottom: 2%;
    max-height: 54%;
    max-width: 56%;
    z-index: 2;
    filter: drop-shadow(0 10px 18px rgba(0, 0, 0, 0.28));
}
#secondhead .prodz .blbak .prodz-compose--team .prodz-layer--phone {
    right: 0;
    bottom: 0;
    max-height: 78%;
    max-width: 34%;
    z-index: 3;
    filter: drop-shadow(0 10px 18px rgba(0, 0, 0, 0.32));
}

/* ---- IPAchat: screen (left) + tablet (right), balanced ---- */
#secondhead .prodz .blbak .prodz-compose--chat .prodz-layer {
    position: absolute;
}
#secondhead .prodz .blbak .prodz-compose--chat .prodz-layer--screen {
    left: -4%;
    top: 0;
    max-height: 78%;
    max-width: 72%;
    z-index: 1;
    filter: drop-shadow(0 12px 22px rgba(0, 0, 0, 0.26));
}
#secondhead .prodz .blbak .prodz-compose--chat .prodz-layer--tablet {
    right: -2%;
    bottom: 2%;
    max-height: 62%;
    max-width: 58%;
    z-index: 2;
    filter: drop-shadow(0 10px 18px rgba(0, 0, 0, 0.28));
}

/* Smaller screens: tighten slightly */
@media (max-width: 991px) {
    #secondhead .prodz .blbak .prodz-compose--solo  .prodz-layer--phone  { max-width: 45%; }
    #secondhead .prodz .blbak .prodz-compose--team  .prodz-layer--laptop { max-width: 82%; }
    #secondhead .prodz .blbak .prodz-compose--team  .prodz-layer--phone  { max-width: 32%; }
    #secondhead .prodz .blbak .prodz-compose--team  .prodz-layer--tablet { max-width: 52%; }
    #secondhead .prodz .blbak .prodz-compose--chat  .prodz-layer--screen { max-width: 66%; }
    #secondhead .prodz .blbak .prodz-compose--chat  .prodz-layer--tablet { max-width: 54%; }
}

/* ----- Caption dots (Reçu/Lu/Répondu pattern, reused from /ipa) ----- */
#secondhead .prodz .blbak .bla > .prodz-caption {
    flex: 1 1 auto !important;
    margin: 4px 0 16px !important;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
#secondhead .prodz .blbak .bla > .prodz-caption .prodz-caption-dots {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 22px;
    font-size: 14px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.95);
    letter-spacing: 0.02em;
}
#secondhead .prodz .blbak .bla > .prodz-caption .prodz-caption-dots > span {
    display: inline-flex;
    align-items: center;
    gap: 7px;
}
#secondhead .prodz .blbak .bla .prodz-dot {
    display: inline-block;
    width: 9px;
    height: 9px;
    border-radius: 50%;
    flex-shrink: 0;
}
.prodz-dot--blue   { background: #4aa8ff; box-shadow: 0 0 10px rgba(74, 168, 255, 0.6); }
.prodz-dot--yellow { background: #f1c40f; box-shadow: 0 0 10px rgba(241, 196, 15, 0.6); }
.prodz-dot--green  { background: #28a745; box-shadow: 0 0 10px rgba(40, 167, 69, 0.6); }

/* Buttons — equal style, no overflow, stacked or side-by-side */
#secondhead .prodz .blbak .bla > a {
    display: block;
    width: 100%;
    margin: 0 0 8px !important;
    padding: 11px 16px !important;
    border-radius: 4px !important;
    font-size: 12px !important;
    font-weight: 700 !important;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    text-align: center;
    text-decoration: none !important;
    transition: all 0.15s ease;
    box-sizing: border-box;
}
#secondhead .prodz .blbak .bla > a.plusdet {
    position: static !important;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    width: auto !important;
    align-self: center !important;
    margin: 0 auto 16px !important;
    padding: 7px 22px !important;
    border-radius: 999px !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    letter-spacing: 0.1em !important;
    background: rgba(255, 255, 255, 0.08) !important;
    color: #fff !important;
    border: 1px solid rgba(255, 255, 255, 0.38) !important;
    bottom: auto !important;
    right: auto !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: all 0.15s ease !important;
}
#secondhead .prodz .blbak .bla > a.plusdet:hover {
    background: rgba(255, 255, 255, 0.22) !important;
    border-color: rgba(255, 255, 255, 0.7) !important;
    color: #fff !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}
#secondhead .prodz .blbak .bla > a.btn-primary2 {
    background: #ffe500 !important;
    color: #333 !important;
    border: 1.5px solid #d8ca52 !important;
    box-shadow: 0 4px 14px rgba(216, 202, 82, 0.38);
    margin-bottom: 0 !important;
}
#secondhead .prodz .blbak .bla > a.btn-primary2:hover {
    background: #f5d900 !important;
    border-color: #c9bc4a !important;
    color: #222 !important;
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(216, 202, 82, 0.55);
}

/* H1 title in hero: clean up the inline weirdness */
#secondhead .row > h1 {
    margin: 60px 0 30px !important;
    font-size: 34px;
    font-weight: 700;
    text-align: center;
    line-height: 1.2;
    letter-spacing: -0.01em;
}

/* =========================================================
   Alternating pale sections + inverted icons
   ========================================================= */

.home-section {
    padding: 90px 0;
    text-align: center;
    color: #1a2a3a;
}
.home-section--light { background: #ffffff !important; }
.home-section--dark  { background: #f6f9fc !important; }

/* Override legacy `color:#fff` from #teleavdet / #ipadet / #massdet / #usecase / #services */
section#teleavdet.home-section,
section#ipadet.home-section,
section#massdet.home-section,
section#usecase.home-section,
section#services.home-section {
    color: #1a2a3a;
}

/* H2 / H3 in the title block */
section.home-section .titlz h2,
section.home-section h2.service-heading {
    color: #00549a !important;
    letter-spacing: -0.01em;
}
section.home-section .titlz h3 {
    color: #586b7d !important;
    font-style: italic;
}
section.home-section h2,
section.home-section h3,
section.home-section h4,
section.home-section p {
    color: #1a2a3a;
}

/* ----- Icon badges (teleavdet / ipadet / massdet) ----- */
/* Invert: blue solid circle with white icon, soft shadow */
section.home-section .icodet {
    background: #00549a !important;
    box-shadow: 0 14px 32px rgba(0, 84, 154, 0.22);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
section.home-section .icodet:before {
    color: #fff !important;
}
section.home-section .col-sm-4 a:hover .icodet {
    transform: translateY(-4px);
    box-shadow: 0 22px 44px rgba(0, 84, 154, 0.3);
}

/* Caption below icon */
section.home-section .detico {
    color: #1a2a3a !important;
}
section.home-section .detico span {
    color: #586b7d !important;
}
section.home-section .detico span:before {
    border-top-color: rgba(0, 0, 0, 0.08) !important;
}

/* Links wrapping the icon blocks */
section.home-section .col-sm-4 a {
    color: inherit;
    text-decoration: none;
}
section.home-section .col-sm-4 a:hover {
    color: #00549a;
    text-decoration: none;
}

/* ----- Use case cards (#usecase) ----- */

/* Override legacy layout.less that forced height:100vh, overflow:hidden,
   min-height:875px, padding:380px — that was for the old slider layout
   and clips the new card grid. */
section#usecase.home-section {
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    overflow: visible !important;
    padding: 90px 0 !important;
    position: relative;
}

section#usecase.home-section .usecase-head {
    max-width: 760px;
    margin: 0 auto 56px;
    text-align: center;
}
section#usecase.home-section .usecase-head h2 {
    font-size: 36px;
    font-weight: 700;
    color: #00549a !important;
    margin: 0 0 14px;
    letter-spacing: -0.01em;
    line-height: 1.2;
}
section#usecase.home-section .usecase-head p {
    font-size: 17px;
    line-height: 1.6;
    color: #586b7d !important;
    margin: 0;
}

.usecase-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 26px;
}

.usecase-card {
    background: #fff;
    border: 1px solid #e3ebf3;
    border-radius: 14px;
    padding: 30px 28px;
    text-align: left;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
    display: flex;
    flex-direction: column;
    position: relative;
}
.usecase-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(0, 84, 154, 0.14);
    border-color: #c7d7e6;
}
/* Stretched link — makes the whole card clickable to /solutions/<sector> */
.usecase-card__link {
    position: absolute;
    inset: 0;
    z-index: 1;
    border-radius: inherit;
    text-decoration: none;
    color: transparent;
    outline-offset: 3px;
}
.usecase-card__link:focus-visible {
    outline: 2px solid #00549a;
    outline-offset: 2px;
}
.usecase-card__more {
    position: relative;
    z-index: 0;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 14px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.04em;
    color: #00549a;
    text-transform: uppercase;
}
.usecase-card__more::after {
    content: "\2192"; /* → */
    transition: transform 0.15s ease;
}
.usecase-card:hover .usecase-card__more::after {
    transform: translateX(3px);
}

.usecase-card__icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    background: linear-gradient(135deg, #eaf4ff 0%, #d5e8fa 100%);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #00549a;
    margin-bottom: 22px;
    flex-shrink: 0;
}
.usecase-card__icon svg {
    width: 28px;
    height: 28px;
}

.usecase-card__title {
    font-size: 20px;
    font-weight: 700;
    color: #1a2a3a !important;
    margin: 0 0 10px;
    line-height: 1.3;
    text-align: left !important;
}

.usecase-card__desc {
    font-size: 14.5px;
    line-height: 1.6;
    color: #586b7d !important;
    margin: 0 0 18px;
    flex: 1;
    text-align: left !important;
}

.usecase-card__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}
.usecase-card__tags span {
    font-size: 11.5px;
    font-weight: 600;
    color: #00549a;
    background: rgba(0, 84, 154, 0.08);
    padding: 5px 11px;
    border-radius: 999px;
    letter-spacing: 0.01em;
    white-space: nowrap;
}

@media (max-width: 991px) {
    .usecase-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; }
    section#usecase.home-section .usecase-head h2 { font-size: 28px; }
}
@media (max-width: 580px) {
    .usecase-grid { grid-template-columns: 1fr; }
}

/* ----- Final CTA (blue gradient, 2 yellow buttons) ----- */
.home-finalcta {
    background: linear-gradient(135deg, #00549a 0%, #003d72 100%);
    color: #fff;
    padding: 90px 0;
    text-align: center;
}
.home-finalcta h2 {
    font-size: 34px;
    font-weight: 700;
    color: #fff !important;
    margin: 0 0 14px;
    letter-spacing: -0.01em;
    line-height: 1.2;
}
.home-finalcta p {
    font-size: 17px;
    color: rgba(255, 255, 255, 0.88) !important;
    margin: 0 auto 40px;
    max-width: 620px;
    line-height: 1.5;
}
.home-finalcta__choices {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 22px;
    max-width: 820px;
    margin: 0 auto;
}
.home-finalcta__choice {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 26px 22px 24px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0.03) 100%);
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 14px;
    text-decoration: none !important;
    color: #fff !important;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease, background 0.2s ease;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}
.home-finalcta__choice:hover,
.home-finalcta__choice:focus {
    transform: translateY(-4px);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.14) 0%, rgba(255, 255, 255, 0.06) 100%);
    border-color: rgba(255, 255, 255, 0.5);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.3);
    color: #fff !important;
    text-decoration: none !important;
}
.home-finalcta__choice-img {
    width: 160px;
    height: 130px;
    object-fit: contain;
    margin-bottom: 18px;
    filter: drop-shadow(0 6px 14px rgba(0, 0, 0, 0.25));
}
.home-finalcta__choice-body {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
}
.home-finalcta__choice-cta {
    margin-top: auto;
}
.home-finalcta__choice-body h3 {
    font-size: 20px;
    font-weight: 700;
    color: #fff !important;
    margin: 0 0 6px;
    line-height: 1.25;
}
.home-finalcta__choice-sub {
    font-size: 13px;
    font-style: italic;
    color: rgba(255, 255, 255, 0.78) !important;
    margin: 0 0 14px !important;
    letter-spacing: 0.01em;
}
.home-finalcta__choice-cta {
    display: inline-block;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #ffe500;
    padding-top: 6px;
    border-top: 1px solid rgba(255, 255, 255, 0.18);
    transition: color 0.15s ease, transform 0.15s ease;
    min-width: 140px;
}
.home-finalcta__choice:hover .home-finalcta__choice-cta {
    color: #fff;
    transform: translateX(2px);
}

/* Add-on mention under the 2 main choices (IPAchat) */
.home-finalcta__addon {
    margin-top: 26px !important;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.85) !important;
    letter-spacing: 0.01em;
}
.home-finalcta__addon-link {
    display: inline-block;
    color: #ffe500;
    font-weight: 700;
    text-decoration: none;
    border-bottom: 1px dashed rgba(255, 229, 0, 0.5);
    padding-bottom: 1px;
    transition: color 0.15s, border-color 0.15s, transform 0.15s;
}
.home-finalcta__addon-link:hover {
    color: #fff;
    border-bottom-color: #fff;
    text-decoration: none;
    transform: translateX(2px);
}

@media (max-width: 560px) {
    .home-finalcta h2 { font-size: 26px; }
    .home-finalcta__choices { grid-template-columns: 1fr; }
    .home-finalcta__addon { font-size: 13px; margin-top: 22px !important; }
    .home-finalcta__addon-link { display: inline-block; margin-top: 4px; }
}

/* ----- Message form section (#services) ----- */
section#services.home-section {
    padding: 90px 0;
}
section#services.home-section .services-head {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 44px;
}
section#services.home-section .services-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    border-radius: 14px;
    background: linear-gradient(135deg, #eaf4ff 0%, #d5e8fa 100%);
    color: #00549a;
    margin: 0 auto 18px;
}
section#services.home-section .services-icon svg {
    width: 26px;
    height: 26px;
}
section#services.home-section .service-heading {
    font-size: 32px;
    font-weight: 700;
    color: #00549a !important;
    margin: 0 0 12px;
    line-height: 1.2;
    letter-spacing: -0.01em;
}
section#services.home-section .service-lead {
    font-size: 16px;
    line-height: 1.55;
    color: #586b7d !important;
    margin: 0;
}

/* Centered wrapper ensures the card sits in the middle regardless of
   inherited text-align / display quirks from legacy CSS. */
section#services.home-section .services-center {
    display: flex;
    justify-content: center;
    width: 100%;
}

/* Form card */
section#services.home-section .services-card {
    width: 100%;
    max-width: 520px;
    margin: 0 auto !important;
    background: #fff;
    border: 1px solid #e3ebf3;
    border-radius: 14px;
    padding: 36px 34px;
    box-shadow: 0 14px 40px rgba(0, 84, 154, 0.08);
    box-sizing: border-box;
}
section#services.home-section .services-card .pager {
    display: block !important;
    width: 100% !important;
    vertical-align: baseline !important;
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
}

/* Form groups — reset fieldset defaults that cause inputs to look narrow/offset */
section#services.home-section fieldset.form-group {
    margin: 0 auto 20px !important;
    padding: 0 !important;
    border: none !important;
    text-align: left;
    display: block;
    width: 100%;
    min-width: 0;
	text-align: center;

}
section#services.home-section label {
    display: block;
    font-size: 13px;
    font-weight: 700;
    color: #1a2a3a !important;
    margin-bottom: 8px;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}
section#services.home-section .form-control {
    display: block;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box;
    border: 1.5px solid #d6dfe8;
    border-radius: 6px;
    padding: 12px 14px;
    font-size: 15px;
    color: #1a2a3a;
    background: #fff;
    transition: border-color 0.15s, box-shadow 0.15s;
    box-shadow: none;
}
section#services.home-section .form-control:focus {
    border-color: #00549a;
    box-shadow: 0 0 0 3px rgba(0, 84, 154, 0.12);
    outline: none;
}
section#services.home-section textarea.form-control {
    resize: vertical;
    min-height: 90px;
}

/* Character counter row */
section#services.home-section .char-counter {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 8px;
    justify-content: flex-end;
}
section#services.home-section .char-counter .count-input {
    width: 54px !important;
    padding: 6px 8px !important;
    font-family: monospace;
    font-weight: 600;
    text-align: center;
    font-size: 13px;
    color: #586b7d;
}
section#services.home-section .char-counter small {
    font-size: 12px;
    color: #7a8a9a;
    font-weight: 600;
}

/* Buttons */
section#services.home-section .form-actions {
    display: flex;
    gap: 10px;
    align-items: center;
    justify-content: center;
    text-align: center;
    margin-top: 24px;
    margin-bottom: 0;
}
section#services.home-section .btn-send {
    background: #00549a !important;
    color: #fff !important;
    border: 2px solid #00549a !important;
    padding: 12px 30px !important;
    border-radius: 6px !important;
    font-weight: 700 !important;
    font-size: 13px !important;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    box-shadow: 0 4px 14px rgba(0, 84, 154, 0.25);
    transition: background 0.15s, transform 0.15s, box-shadow 0.15s;
    cursor: pointer;
}
section#services.home-section .btn-send:hover {
    background: #003d72 !important;
    border-color: #003d72 !important;
    transform: translateY(-1px);
    box-shadow: 0 8px 22px rgba(0, 84, 154, 0.35);
}
section#services.home-section .btn-reset {
    background: transparent !important;
    color: #00549a !important;
    border: 2px solid #00549a !important;
    padding: 12px 22px !important;
    border-radius: 6px !important;
    font-weight: 700 !important;
    font-size: 13px !important;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    transition: background 0.15s;
    cursor: pointer;
}
section#services.home-section .btn-reset:hover {
    background: #f6f9fc !important;
}

/* Feedback messages */
section#services.home-section #formok:not(:empty),
section#services.home-section #formerror:not(:empty) {
    padding: 12px 14px;
    border-radius: 6px;
    font-size: 14px;
    margin-bottom: 14px;
    text-align: center;
}
section#services.home-section #formok:not(:empty) {
    background: rgba(40, 167, 69, 0.1);
    color: #218838;
    border: 1px solid rgba(40, 167, 69, 0.2);
    margin-top: 14px;
    margin-bottom: 0;
}
section#services.home-section #formerror:not(:empty) {
    background: rgba(231, 76, 60, 0.1);
    color: #c0392b;
    border: 1px solid rgba(231, 76, 60, 0.2);
}

/* Direct link */
section#services.home-section .services-direct {
    display: block;
    margin-top: 22px;
    text-align: center;
    font-size: 13px;
    color: #00549a;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.15s;
}
section#services.home-section .services-direct:hover {
    color: #003d72;
    text-decoration: underline;
}

@media (max-width: 560px) {
    section#services.home-section .services-card { padding: 28px 20px; }
    section#services.home-section .service-heading { font-size: 26px; }
    section#services.home-section .form-actions { flex-direction: column; }
    section#services.home-section .btn-send,
    section#services.home-section .btn-reset { width: 100%; }
}

/* ----- Home proof band: 3 stats inside the blue hero ----- */
.home-proof {
    padding: 34px 0 40px;
    margin-top: 16px;
    background: transparent;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
}
.home-proof .container {
    max-width: 1100px;
}
.home-proof__grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    align-items: center;
    gap: 30px;
    text-align: center;
}
.home-proof__stat {
    flex: 1 1 220px;
    max-width: 300px;
    padding: 0 10px;
}
.home-proof__big {
    font-size: 48px;
    font-weight: 800;
    color: #ffffff;
    line-height: 1;
    letter-spacing: -0.02em;
}
.home-proof__label {
    font-size: 14px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.85);
    margin-top: 12px;
    line-height: 1.4;
    letter-spacing: 0.01em;
}
@media (max-width: 767px) {
    .home-proof { padding: 26px 0 32px; }
    .home-proof__big { font-size: 38px; }
    .home-proof__label { font-size: 13px; }
    .home-proof__grid { gap: 22px; }
}
