/* ==========================================================================
   Effilogiq website — brand colours taken from the Effilogiq logo
   ========================================================================== */
:root {
    --brand-navy: #1d2d5b;
    --brand-blue: #3a7bbf;
    --brand-blue-dark: #2c639e;
    --brand-green: #239a48;
    --brand-green-dark: #1b7d3a;
    --brand-deep: #013a51;

    --ink: #1f2a37;
    --muted: #5b6b7b;
    --surface: #ffffff;
    --surface-alt: #f2f7fb;
    --line: #e2e9f0;

    --radius: 14px;
    --radius-sm: 10px;
    --shadow-sm: 0 2px 8px rgba(16, 42, 67, .06);
    --shadow-md: 0 14px 34px rgba(16, 42, 67, .12);

    --font-heading: "PT Sans", "Segoe UI", Arial, sans-serif;
    --font-body: "Nunito", "Segoe UI", Arial, sans-serif;
}

html { scroll-behavior: smooth; scroll-padding-top: 96px; }

body {
    font-family: var(--font-body);
    color: var(--ink);
    background: var(--surface);
    font-size: 16px;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--brand-navy);
    line-height: 1.25;
}

a { color: var(--brand-blue); text-decoration: none; }
a:hover { color: var(--brand-blue-dark); }

:focus-visible { outline: 3px solid rgba(58, 123, 191, .45); outline-offset: 2px; }

.skip-link {
    position: absolute;
    left: 16px;
    top: -60px;
    z-index: 2000;
    background: var(--brand-navy);
    color: #fff;
    padding: 10px 16px;
    border-radius: 8px;
}
.skip-link:focus { top: 12px; color: #fff; }

/* ---------- Buttons ---------- */
.btn { font-family: var(--font-heading); font-weight: 700; border-radius: 999px; padding: .65rem 1.5rem; letter-spacing: .01em; }
.btn-lg { padding: .8rem 1.9rem; font-size: 1.05rem; }
.btn i { margin-left: .35rem; }
.btn i:first-child { margin-left: 0; margin-right: .35rem; }

.btn-brand { background: var(--brand-green); border: 2px solid var(--brand-green); color: #fff; }
.btn-brand:hover, .btn-brand:focus { background: var(--brand-green-dark); border-color: var(--brand-green-dark); color: #fff; }

.btn-outline-brand { border: 2px solid var(--brand-blue); color: var(--brand-blue); background: transparent; }
.btn-outline-brand:hover, .btn-outline-brand:focus { background: var(--brand-blue); color: #fff; }

.btn-outline-light-brand { border: 2px solid rgba(255, 255, 255, .7); color: #fff; background: transparent; }
.btn-outline-light-brand:hover, .btn-outline-light-brand:focus { background: #fff; color: var(--brand-deep); }

/* ---------- Top bar + header ---------- */
.topbar {
    background: var(--brand-navy);
    color: rgba(255, 255, 255, .85);
    font-size: .875rem;
    padding: 8px 0;
}
.topbar-item { color: rgba(255, 255, 255, .85); }
.topbar a.topbar-item:hover { color: #fff; }
.topbar i { color: #7fc79a; margin-right: 6px; }

.site-header {
    position: sticky;
    top: 0;
    z-index: 1030;
    background: rgba(255, 255, 255, .97);
    border-bottom: 1px solid var(--line);
    transition: box-shadow .2s ease;
}
.site-header.is-scrolled { box-shadow: var(--shadow-md); }

.site-header .navbar { padding: 12px 0; }
.site-logo { height: 54px; width: auto; max-width: 220px; object-fit: contain; }

.site-header .nav-link {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.02rem;
    color: var(--brand-navy);
    padding: .5rem 1rem !important;
    position: relative;
}
.site-header .nav-link:hover { color: var(--brand-blue); }
.site-header .nav-link.active { color: var(--brand-green); }

@media (min-width: 992px) {
    .site-header .nav-link::after {
        content: "";
        position: absolute;
        left: 1rem;
        right: 1rem;
        bottom: 0;
        height: 3px;
        border-radius: 3px;
        background: var(--brand-green);
        transform: scaleX(0);
        transition: transform .2s ease;
    }
    .site-header .nav-link:hover::after,
    .site-header .nav-link.active::after { transform: scaleX(1); }
}

.navbar-toggler {
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 6px 10px;
    font-size: 1.6rem;
    line-height: 1;
    color: var(--brand-navy);
}
.navbar-toggler:focus { box-shadow: 0 0 0 3px rgba(58, 123, 191, .25); }

@media (max-width: 991.98px) {
    .site-logo { height: 44px; }
    .site-header .navbar-collapse { border-top: 1px solid var(--line); margin-top: 12px; padding-top: 8px; }
    .site-header .nav-link { padding: .65rem 0 !important; }
}

/* ---------- Home hero slider ---------- */
.hero-slide {
    position: relative;
    display: flex;
    align-items: center;
    min-height: clamp(460px, 72vh, 620px);
    padding: 80px 0;
    background-color: var(--brand-deep);
    background-image:
        linear-gradient(180deg, rgba(1, 58, 81, .72), rgba(1, 58, 81, .78)),
        var(--hero-image, none);
    background-size: cover;
    background-position: center;
    color: #fff;
    text-align: center;
}
.hero-content { max-width: 880px; margin: 0 auto; }
.hero-title {
    color: #fff;
    font-size: clamp(1.9rem, 4.4vw, 3.3rem);
    line-height: 1.2;
    margin-bottom: 1.1rem;
    text-wrap: balance;
}
.hero-text {
    font-size: clamp(1rem, 1.6vw, 1.2rem);
    color: rgba(255, 255, 255, .9);
    max-width: 720px;
    margin: 0 auto 1.9rem;
}
.hero .carousel-indicators [data-bs-target] { width: 28px; height: 4px; border-radius: 4px; }
.hero .carousel-control-prev, .hero .carousel-control-next { width: 8%; }
@media (max-width: 767.98px) {
    /* Arrows would sit on top of the text; swipe and the indicators still work. */
    .hero .carousel-control-prev, .hero .carousel-control-next { display: none; }
}

/* ---------- Inner page hero ---------- */
.page-hero {
    position: relative;
    padding: clamp(70px, 10vw, 120px) 0 clamp(60px, 8vw, 100px);
    background-color: var(--brand-deep);
    background-image:
        linear-gradient(180deg, rgba(1, 58, 81, .78), rgba(1, 58, 81, .84)),
        var(--hero-image, linear-gradient(135deg, var(--brand-navy), var(--brand-blue)));
    background-size: cover;
    background-position: center;
    color: #fff;
    text-align: center;
}
.page-hero-title { color: #fff; font-size: clamp(1.9rem, 4vw, 3rem); margin-bottom: .9rem; text-wrap: balance; }
.page-hero-text { color: rgba(255, 255, 255, .9); font-size: clamp(1rem, 1.5vw, 1.15rem); max-width: 760px; margin: 0 auto; }

.hero-breadcrumb {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 8px;
    list-style: none;
    padding: 6px 16px;
    margin: 0 0 1.1rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, .12);
    font-size: .9rem;
}
.hero-breadcrumb li { color: rgba(255, 255, 255, .85); }
.hero-breadcrumb li + li::before { content: "/"; margin-right: 8px; color: rgba(255, 255, 255, .5); }
.hero-breadcrumb a { color: #fff; }

/* ---------- Sections ---------- */
.section { padding: clamp(56px, 8vw, 96px) 0; }
.section-alt { background: var(--surface-alt); }
.section-head { text-align: center; max-width: 760px; margin: 0 auto 2.75rem; }
.section-title { font-size: clamp(1.6rem, 3vw, 2.25rem); margin-bottom: 1rem; }
.section-text { color: var(--muted); margin-bottom: .5rem; }
.lead-text { color: var(--muted); font-size: 1.06rem; }

.eyebrow {
    display: inline-block;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: .8rem;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--brand-green);
    margin-bottom: .6rem;
}

.media-frame {
    position: relative;
    margin: 0;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-md);
}
.media-frame img { display: block; width: 100%; height: 100%; object-fit: cover; aspect-ratio: 3 / 2; }
.media-frame.h-100 img { aspect-ratio: auto; min-height: 100%; }

/* ---------- Cards ---------- */
.icon-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    flex-shrink: 0;
    border-radius: 14px;
    background: rgba(58, 123, 191, .12);
    color: var(--brand-blue);
    font-size: 1.6rem;
}
.icon-badge.is-green { background: rgba(35, 154, 72, .12); color: var(--brand-green); }

.card-title { font-size: 1.2rem; margin: 0 0 .5rem; }
.card-text { color: var(--muted); margin-bottom: 0; }

.feature-card {
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: 28px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    color: var(--ink);
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
a.feature-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: rgba(58, 123, 191, .35); color: var(--ink); }
.feature-card .card-text { flex-grow: 1; }
.card-link { font-family: var(--font-heading); font-weight: 700; color: var(--brand-blue); }
.card-link i { transition: transform .2s ease; display: inline-block; }
a.feature-card:hover .card-link i { transform: translateX(4px); }

.value-card {
    padding: 28px 24px;
    text-align: center;
    background: var(--surface);
    border: 2px solid rgba(58, 123, 191, .35);
    border-radius: 18px;
    box-shadow: var(--shadow-sm);
}
.value-media {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 180px;
    max-width: 100%;
    aspect-ratio: 1;
    margin: 0 auto 18px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: #fff;
    overflow: hidden;
}
.value-media img { width: 100%; height: 100%; object-fit: contain; }
.value-media i { font-size: 4rem; color: var(--brand-blue); }

.cert-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 20px 14px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
}
.cert-logo { display: flex; align-items: center; justify-content: center; width: 100%; height: 110px; margin-bottom: 14px; }
.cert-logo img { max-width: 100%; max-height: 100%; object-fit: contain; }
.cert-logo i { font-size: 3rem; color: var(--brand-blue); }
.cert-title { font-family: var(--font-heading); font-weight: 700; color: var(--brand-navy); font-size: .98rem; line-height: 1.35; margin: 0; }

.industry-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 22px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
}
.industry-card .card-title { font-size: 1.05rem; }

.contact-card {
    padding: 30px 24px;
    text-align: center;
    background: var(--surface);
    border: 1px solid var(--line);
    border-top: 4px solid var(--brand-blue);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
}
.contact-card .icon-badge { margin-bottom: 14px; }
.contact-value { font-size: 1.08rem; font-weight: 700; color: var(--ink); word-break: break-word; }
.contact-value:hover { color: var(--brand-blue); }

/* ---------- Services page ---------- */
.service-nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-bottom: 3rem;
}
.service-nav a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: var(--surface);
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--brand-navy);
    box-shadow: var(--shadow-sm);
}
.service-nav a:hover { border-color: var(--brand-blue); color: var(--brand-blue); }
.service-nav i { color: var(--brand-green); }

.service-list { display: grid; gap: 28px; }
.service-block {
    padding: clamp(24px, 4vw, 44px);
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 18px;
    box-shadow: var(--shadow-sm);
}
.service-block:nth-child(even) { background: var(--surface-alt); }
.service-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.service-number { font-family: var(--font-heading); font-weight: 700; font-size: 2.6rem; line-height: 1; color: rgba(29, 45, 91, .12); }
.service-title { font-size: clamp(1.4rem, 2.4vw, 1.85rem); margin-bottom: .9rem; }

.benefit-box {
    margin-top: 1.25rem;
    padding: 16px 18px;
    border-left: 4px solid var(--brand-green);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    background: rgba(35, 154, 72, .08);
}
.benefit-label { display: block; font-family: var(--font-heading); font-weight: 700; color: var(--brand-green-dark); margin-bottom: 4px; }

.point-panel {
    height: 100%;
    padding: clamp(20px, 3vw, 30px);
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
}
.point-title { font-size: 1.1rem; margin-bottom: 1rem; color: var(--brand-blue); }
.check-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.check-list li { display: flex; gap: 12px; align-items: flex-start; }
.check-list i { color: var(--brand-green); margin-top: 2px; flex-shrink: 0; }

/* ---------- Testimonials ---------- */
.testimonial-card {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin: 0;
    padding: 30px 28px 26px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-top: 4px solid var(--brand-green);
    border-radius: 18px;
    box-shadow: var(--shadow-sm);
}
.testimonial-quote { font-size: 2.8rem; line-height: .6; color: rgba(35, 154, 72, .3); }
.testimonial-stars { display: flex; gap: 3px; color: #e9a019; font-size: .95rem; }
.testimonial-text { flex-grow: 1; margin: 0; color: var(--ink); font-size: 1.02rem; }
.testimonial-text p { margin: 0; white-space: pre-line; }
.testimonial-author { display: flex; align-items: center; gap: 12px; padding-top: 16px; border-top: 1px solid var(--line); }
.testimonial-avatar { width: 52px; height: 52px; flex-shrink: 0; border-radius: 50%; object-fit: cover; border: 2px solid var(--surface-alt); }
.testimonial-initials {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(58, 123, 191, .12);
    color: var(--brand-blue);
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.1rem;
}
.testimonial-name { display: block; font-family: var(--font-heading); font-weight: 700; color: var(--brand-navy); line-height: 1.3; }
.testimonial-role { display: block; font-size: .9rem; color: var(--muted); line-height: 1.4; }

/* More than three: a swipeable strip with arrow buttons */
.testimonial-track {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: calc((100% - 48px) / 3);
    gap: 24px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding: 4px 2px 18px;
    scrollbar-width: thin;
}
.testimonial-slide { scroll-snap-align: start; }
@media (max-width: 991.98px) { .testimonial-track { grid-auto-columns: calc((100% - 24px) / 2); } }
@media (max-width: 575.98px) { .testimonial-track { grid-auto-columns: 88%; } }

.testimonial-controls { display: flex; justify-content: center; gap: 12px; margin-top: 12px; }
.testimonial-nav {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    border: 1px solid var(--line);
    background: var(--surface);
    color: var(--brand-navy);
    box-shadow: var(--shadow-sm);
    transition: background-color .2s ease, color .2s ease;
}
.testimonial-nav:hover, .testimonial-nav:focus-visible { background: var(--brand-blue); border-color: var(--brand-blue); color: #fff; }

/* ---------- CTA ---------- */
.cta-band { background: linear-gradient(120deg, var(--brand-navy), var(--brand-deep) 55%, #0b5a6e); color: #fff; padding: clamp(44px, 6vw, 64px) 0; }
.cta-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; }
.cta-title { color: #fff; font-size: clamp(1.5rem, 2.6vw, 2rem); margin-bottom: .35rem; }
.cta-text { color: rgba(255, 255, 255, .85); margin: 0; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Contact form ---------- */
.form-card {
    padding: clamp(24px, 4vw, 40px);
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 18px;
    box-shadow: var(--shadow-md);
}
.form-label { font-weight: 700; color: var(--brand-navy); margin-bottom: .35rem; }
.form-label .req { color: #c0392b; }
.form-control { border-radius: var(--radius-sm); border-color: #cfd9e3; padding: .7rem .9rem; }
.form-control:focus { border-color: var(--brand-blue); box-shadow: 0 0 0 3px rgba(58, 123, 191, .2); }
.hp-field { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- Footer ---------- */
.site-footer { background: var(--surface-alt); border-top: 1px solid var(--line); padding-top: clamp(48px, 7vw, 72px); color: var(--muted); }
.footer-logo img { height: 56px; width: auto; max-width: 230px; object-fit: contain; }
.footer-about { margin: 1.1rem 0 0; font-size: .95rem; }
.footer-title { font-size: 1.05rem; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 1.1rem; }
.footer-links, .footer-contact { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.footer-links a, .footer-contact a { color: var(--muted); }
.footer-links a:hover, .footer-contact a:hover { color: var(--brand-blue); }
.footer-contact li { display: flex; gap: 10px; align-items: flex-start; }
.footer-contact i { color: var(--brand-green); margin-top: 2px; }
.footer-contact a, .footer-contact span { word-break: break-word; }
.footer-bottom {
    margin-top: clamp(40px, 6vw, 56px);
    padding: 18px 0;
    background: var(--brand-deep);
    color: rgba(255, 255, 255, .85);
    text-align: center;
    font-size: .92rem;
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { transition: none !important; animation: none !important; }
}
