/* Public site of groupesti.com, on top of the Webadmin Bootstrap 5 theme. */
:root {
    --gsti-blue: #1f58c7;
    --gsti-blue-dark: #0b2c80;
    --gsti-navy: #03113d;
    --gsti-sky: #2a86f0;
    --gsti-ink: #1b2337;
    --gsti-muted: #5d6779;
    --gsti-surface: #f4f7fc;
    --gsti-border: #e3e8f2;
    --gsti-radius: 1rem;
    --gsti-shadow: 0 0.75rem 2rem rgba(3, 17, 61, 0.08);
    --gsti-shadow-hover: 0 1.25rem 2.5rem rgba(3, 17, 61, 0.14);

    /* Font Awesome duotone: brand colours for both layers. */
    --fa-primary-color: var(--gsti-blue);
    --fa-secondary-color: var(--gsti-sky);
    --fa-secondary-opacity: 0.35;
}

body {
    color: var(--gsti-ink);
    background: #fff;
    font-family: "IBM Plex Sans", system-ui, sans-serif;
    font-size: 1rem;
    line-height: 1.65;
}

h1, h2, h3, h4, h5, h6, .brand-name, .navbar-nav .nav-link, .btn {
    font-family: "Montserrat", "IBM Plex Sans", sans-serif;
}

h1, h2, h3 {
    color: var(--gsti-navy);
    font-weight: 700;
    letter-spacing: -0.01em;
}

h1 {
    font-size: clamp(2rem, 4.5vw, 3.25rem);
    line-height: 1.15;
}

h2 {
    font-size: clamp(1.6rem, 3vw, 2.25rem);
    line-height: 1.2;
}

h3 {
    font-size: 1.15rem;
}

a {
    color: var(--gsti-blue);
}

.lead {
    color: var(--gsti-muted);
    font-size: 1.15rem;
}

.btn {
    font-weight: 600;
    border-radius: 0.65rem;
}

/* Icons inside buttons take the text colour. */
.btn .fa-duotone {
    --fa-primary-color: currentColor;
    --fa-secondary-color: currentColor;
    --fa-secondary-opacity: 0.45;
}

.btn-outline-light {
    color: #fff;
    border-color: rgba(255, 255, 255, 0.55);
}

.btn-outline-light:hover,
.btn-outline-light:focus-visible {
    color: var(--gsti-blue-dark);
    background: #fff;
    border-color: #fff;
}

/* FocusOnNavigate moves the focus to the h1 after each navigation: no visible ring for it. */
h1:focus {
    outline: none;
}

.btn-lg {
    padding: 0.8rem 1.5rem;
    font-size: 1rem;
}

.skip-link {
    position: absolute;
    top: 0.5rem;
    left: 0.5rem;
    z-index: 2000;
    padding: 0.5rem 1rem;
    background: #fff;
    border-radius: 0.5rem;
}

/* Header */
.site-header {
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: saturate(180%) blur(12px);
    border-bottom: 1px solid var(--gsti-border);
}

.site-header .navbar {
    padding: 0.75rem 0;
}

.brand-name {
    color: var(--gsti-navy);
    font-weight: 700;
    font-size: 1.1rem;
}

.navbar-nav .nav-link {
    color: var(--gsti-ink);
    font-weight: 600;
    font-size: 0.95rem;
    padding: 0.5rem 0.9rem !important;
    border-radius: 0.5rem;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    color: var(--gsti-blue);
    background: var(--gsti-surface);
}

.navbar-toggler {
    border: 0;
    font-size: 1.5rem;
    color: var(--gsti-navy);
}

.navbar-toggler:focus {
    box-shadow: none;
}

.dropdown-menu {
    border: 1px solid var(--gsti-border);
    border-radius: 0.75rem;
    box-shadow: var(--gsti-shadow);
    padding: 0.5rem;
}

.dropdown-item {
    border-radius: 0.5rem;
    padding: 0.5rem 0.75rem;
}

.lang-switch {
    color: var(--gsti-ink);
    font-weight: 600;
    text-decoration: none;
}

/* Hero */
.hero {
    position: relative;
    overflow: hidden;
    padding: clamp(4rem, 9vw, 7rem) 0;
    color: #fff;
    background:
        radial-gradient(circle at 85% 15%, rgba(42, 134, 240, 0.55), transparent 45%),
        radial-gradient(circle at 10% 90%, rgba(109, 147, 234, 0.35), transparent 40%),
        linear-gradient(135deg, var(--gsti-navy) 0%, var(--gsti-blue-dark) 55%, var(--gsti-blue) 100%);
}

.hero h1 {
    color: #fff;
}

.hero .lead {
    color: rgba(255, 255, 255, 0.82);
    max-width: 40rem;
}

.hero-panel {
    display: grid;
    gap: 0.9rem;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 1.5rem;
    backdrop-filter: blur(6px);
}

.hero-panel-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.9rem 1rem;
    color: #fff;
    font-family: "Montserrat", sans-serif;
    font-weight: 600;
    text-decoration: none;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 0.9rem;
    transition: background 0.2s, transform 0.2s;
}

.hero-panel-item:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.18);
    transform: translateX(4px);
}

.hero-panel-item .icon-tile {
    --fa-primary-color: #fff;
    --fa-secondary-color: #9cd0ff;
    --fa-secondary-opacity: 0.6;
    background: rgba(255, 255, 255, 0.14);
}

.eyebrow {
    margin-bottom: 0.75rem;
    color: var(--gsti-blue);
    font-family: "Montserrat", sans-serif;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.eyebrow-light,
.page-hero .eyebrow {
    color: #9cd0ff;
}

/* Inner page banner */
.page-hero {
    padding: clamp(3rem, 7vw, 5rem) 0;
    color: #fff;
    background:
        radial-gradient(circle at 90% 10%, rgba(42, 134, 240, 0.5), transparent 45%),
        linear-gradient(135deg, var(--gsti-navy) 0%, var(--gsti-blue-dark) 70%, var(--gsti-blue) 100%);
}

.page-hero h1 {
    color: #fff;
    max-width: 50rem;
}

.page-hero .lead {
    color: rgba(255, 255, 255, 0.82);
    max-width: 46rem;
    margin-bottom: 0;
}

.service-index {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.service-index a {
    --fa-primary-color: #fff;
    --fa-secondary-color: #9cd0ff;
    padding: 0.45rem 0.9rem;
    color: #fff;
    font-size: 0.9rem;
    text-decoration: none;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 2rem;
}

.service-index a:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* Sections */
.section {
    padding: clamp(3.5rem, 7vw, 5.5rem) 0;
}

.section-muted {
    background: var(--gsti-surface);
}

.section-heading {
    max-width: 44rem;
    margin: 0 auto 3rem;
    text-align: center;
}

.service-detail {
    scroll-margin-top: 5rem;
}

/* Icon tiles */
.icon-tile {
    display: inline-flex;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    width: 2.75rem;
    height: 2.75rem;
    font-size: 1.25rem;
    background: rgba(31, 88, 199, 0.08);
    border-radius: 0.8rem;
}

.icon-tile-lg {
    width: 3.5rem;
    height: 3.5rem;
    font-size: 1.6rem;
}

.icon-tile-xl {
    width: 4.5rem;
    height: 4.5rem;
    font-size: 2.1rem;
    border-radius: 1.1rem;
}

/* Cards */
.feature-card,
.product-card {
    display: flex;
    flex-direction: column;
    padding: 1.75rem;
    color: var(--gsti-ink);
    text-decoration: none;
    background: #fff;
    border: 1px solid var(--gsti-border);
    border-radius: var(--gsti-radius);
    box-shadow: var(--gsti-shadow);
    transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}

.feature-card:hover,
.product-card:hover {
    color: var(--gsti-ink);
    border-color: rgba(31, 88, 199, 0.35);
    box-shadow: var(--gsti-shadow-hover);
    transform: translateY(-4px);
}

.feature-card .icon-tile {
    margin-bottom: 1.25rem;
}

.feature-card p,
.product-card p {
    color: var(--gsti-muted);
}

.product-card {
    padding: 2rem;
}

.product-tagline {
    color: var(--gsti-blue);
    font-weight: 600;
}

.card-link {
    margin-top: auto;
    color: var(--gsti-blue);
    font-family: "Montserrat", sans-serif;
    font-weight: 600;
    font-size: 0.95rem;
}

.detail-card {
    padding: 2rem;
    background: #fff;
    border: 1px solid var(--gsti-border);
    border-radius: var(--gsti-radius);
    box-shadow: var(--gsti-shadow);
}

.value-item {
    height: 100%;
}

.value-item .icon-tile {
    margin-bottom: 1rem;
}

.value-item p {
    color: var(--gsti-muted);
}

.check-list {
    display: grid;
    gap: 0.85rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.check-list li {
    display: flex;
    align-items: baseline;
    font-weight: 500;
}

.check-list .fa-duotone {
    --fa-primary-color: #fff;
    --fa-secondary-color: var(--gsti-blue);
    --fa-secondary-opacity: 1;
}

/* Process */
.process {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
    gap: 1.5rem;
    margin: 0;
    padding: 0;
    list-style: none;
    counter-reset: step;
}

.process li {
    position: relative;
    padding: 1.75rem;
    background: #fff;
    border: 1px solid var(--gsti-border);
    border-radius: var(--gsti-radius);
    counter-increment: step;
}

.process li::before {
    position: absolute;
    top: 1.25rem;
    right: 1.5rem;
    color: rgba(31, 88, 199, 0.15);
    font-family: "Montserrat", sans-serif;
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1;
    content: "0" counter(step);
}

.process .icon-tile {
    margin-bottom: 1rem;
}

.process p {
    margin: 0;
    color: var(--gsti-muted);
}

/* Call to action */
.cta-band {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    padding: clamp(2rem, 5vw, 3rem);
    color: #fff;
    background:
        radial-gradient(circle at 100% 0%, rgba(42, 134, 240, 0.6), transparent 50%),
        linear-gradient(135deg, var(--gsti-blue-dark), var(--gsti-blue));
    border-radius: 1.5rem;
    box-shadow: var(--gsti-shadow-hover);
}

.cta-band h2 {
    color: #fff;
}

.cta-band p {
    color: rgba(255, 255, 255, 0.85);
    max-width: 38rem;
}

.btn-light {
    color: var(--gsti-blue-dark);
}

/* Contact form */
.contact-form .form-control,
.contact-form .form-select {
    padding: 0.7rem 0.9rem;
    border-radius: 0.65rem;
}

.contact-form .required {
    color: #d63939;
}

.contact-website {
    position: absolute;
    left: -10000px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.contact-list {
    display: grid;
    gap: 0.9rem;
}

/* Legal text */
.legal {
    max-width: 48rem;
}

.legal h2 {
    margin-top: 2.25rem;
    font-size: 1.35rem;
}

.legal h2:first-child {
    margin-top: 0;
}

/* Error pages */
.error-page {
    min-height: 55vh;
    display: flex;
    align-items: center;
}

/* Footer */
.site-footer {
    padding: 4rem 0 2rem;
    color: rgba(255, 255, 255, 0.72);
    background: var(--gsti-navy);
    --fa-primary-color: #fff;
    --fa-secondary-color: #9cd0ff;
    --fa-secondary-opacity: 0.5;
}

.site-footer a {
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
}

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

.footer-brand {
    color: #fff !important;
    font-family: "Montserrat", sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
    text-decoration: none !important;
}

.footer-title {
    margin-bottom: 1rem;
    color: #fff;
    font-size: 0.85rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.footer-links,
.footer-contact {
    display: grid;
    gap: 0.6rem;
}

.footer-bottom {
    margin-top: 3rem;
    padding-top: 1.5rem;
    font-size: 0.9rem;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
}

@media (max-width: 991.98px) {
    .site-header .navbar-collapse {
        padding: 1rem 0;
    }
}

@media (prefers-reduced-motion: reduce) {
    .feature-card,
    .product-card,
    .hero-panel-item {
        transition: none;
    }
}

/* Brand icons (assets/branding) inside the icon tiles. */
.brand-icon {
    display: block;
    object-fit: contain;
}

.hero-panel-item .icon-tile .brand-icon {
    filter: drop-shadow(0 0 6px rgba(156, 208, 255, 0.45));
}
