/*
Theme Name: Initvalue
Description: Full theme.css tuned for the current block-based homepage and service pages.
Version: 1.4
*/

/* =========================
   1. Design tokens
   ========================= */
:root {
    --iv-bg: #ffffff;
    --iv-surface: #ffffff;
    --iv-surface-alt: #e6f3fb;
    --iv-text: #1a1a1a;
    --iv-text-soft: #5a6a7a;
    --iv-border: #e8eef4;
    --iv-blue: #1a7abf;
    --iv-blue-dark: #0c447c;
    --iv-blue-deep: #0c447c;
    --iv-blue-soft: #e6f3fb;
    --iv-accent: #1a7abf;
    --iv-shadow: 0 10px 30px rgba(12, 68, 124, 0.10);
    --iv-shadow-sm: 0 6px 18px rgba(12, 68, 124, 0.08);
    --iv-radius: 12px;
    --iv-radius-sm: 8px;
    --iv-max: 1100px;
    --iv-max-narrow: 900px;
    --iv-font: "Montserrat", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

/* =========================
   2. Reset / base
   ========================= */
html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--iv-bg);
    color: var(--iv-text);
    font-family: var(--iv-font);
    line-height: 1.65;
    font-size: 16px;
}

img {
    max-width: 100%;
    height: auto;
}

a {
    color: var(--iv-blue);
    text-decoration: none;
}

a:hover {
    color: var(--iv-blue-dark);
}

p {
    margin: 0 0 1.1rem;
}

ul,
ol {
    margin: 0 0 1.2rem 1.2rem;
    padding: 0;
}

li {
    margin: 0 0 .45rem;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    margin: 0 0 1rem;
    line-height: 1.12;
    color: var(--iv-text);
    font-weight: 700;
    letter-spacing: -0.02em;
}

h1 {
    font-size: clamp(2.3rem, 5vw, 4.4rem);
}

h2 {
    font-size: clamp(1.8rem, 3vw, 2.6rem);
}

h3 {
    font-size: clamp(1.2rem, 2vw, 1.45rem);
}

.has-text-align-center {
    text-align: center;
}

/* =========================
   3. Theme containers
   ========================= */
.wp-site-blocks,
.iv-main--page-content {
    max-width: none;
}

.wp-block-group,
.wp-block-columns,
.wp-block-cover,
.wp-block-media-text {
    box-sizing: border-box;
}

.wp-block-group.alignfull,
.alignfull {
    width: 100%;
    margin-left: 0 !important;
    margin-right: 0 !important;
}

.wp-block-group:not(.alignfull):not(.is-style-wide),
.wp-block-columns:not(.alignwide):not(.alignfull),
.wp-block-buttons,
.wp-block-heading,
.wp-block-list,
.wp-block-paragraph,
.wp-block-image,
.wp-block-table,
.wp-block-quote {
    max-width: var(--iv-max);
    margin-left: auto;
    margin-right: auto;
}

.wp-block-group>.wp-block-group__inner-container {
    max-width: var(--iv-max);
    margin-left: auto;
    margin-right: auto;
}

.wp-block-group.alignfull>.wp-block-group__inner-container {
    max-width: var(--iv-max);
    margin-left: auto;
    margin-right: auto;
}

.wp-block-columns {
    gap: 28px;
    align-items: stretch;
}

.wp-block-column {
    min-width: 0;
}

@media (max-width: 900px) {
    .wp-block-columns {
        gap: 22px;
    }
}

@media (max-width: 781px) {
    .wp-block-columns {
        display: block;
    }

    .wp-block-column {
        margin-bottom: 22px;
    }

    .wp-block-column:last-child {
        margin-bottom: 0;
    }
}

/* =========================
   4. Header / footer
   ========================= */
.iv-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255, 255, 255, .92);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(37, 99, 235, .08);
}

.iv-header__inner,
.iv-footer__inner {
    max-width: var(--iv-max);
    margin: 0 auto;
    padding: 16px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}

.iv-header__logo,
.iv-footer__logo {
    display: flex;
    align-items: center;
}

.iv-logo-img,
.iv-footer__logo-img {
    display: block;
    max-height: 46px;
    width: auto;
}

.iv-nav__list,
.iv-footer__nav-list {
    list-style: none;
    display: flex;
    gap: 22px;
    margin: 0;
    padding: 0;
}

.iv-nav__list a,
.iv-footer__nav-list a {
    color: var(--iv-text);
    font-weight: 600;
}

.iv-nav__list a:hover,
.iv-footer__nav-list a:hover {
    color: var(--iv-blue);
}

.iv-header__actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.iv-burger {
    display: none;
}

.iv-footer {
    background: #fff;
    border-top: 1px solid var(--iv-border);
}

.iv-footer__copy {
    margin: 0;
    color: var(--iv-text-soft);
    font-size: .95rem;
}

@media (max-width: 900px) {

    .iv-header__inner,
    .iv-footer__inner {
        padding: 14px 18px;
    }

    .iv-nav {
        display: none;
    }

    .iv-burger {
        display: inline-flex;
        flex-direction: column;
        justify-content: center;
        gap: 4px;
        width: 40px;
        height: 40px;
        border: 1px solid var(--iv-border);
        border-radius: 10px;
        background: #fff;
    }

    .iv-burger span {
        width: 18px;
        height: 2px;
        background: var(--iv-text);
        margin: 0 auto;
        display: block;
    }

    .iv-footer__inner {
        flex-direction: column;
        text-align: center;
    }

    .iv-footer__nav-list {
        flex-wrap: wrap;
        justify-content: center;
    }
}

/* =========================
   5. Buttons
   Canonical Initvalue button system
   ========================= */
.wp-block-buttons {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    align-items: center;
    margin-top: 1rem;
}

.wp-block-button {
    margin: 0;
}

/* Shared dimensions and typography */
.wp-block-button__link,
.iv-btn,
a.iv-btn,
button.iv-btn,
.iv-button,
a.iv-button,
button.iv-button,
.fluentform .ff-btn-submit {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    min-height: auto;
    padding: 12px 24px !important;
    border-radius: var(--iv-radius-sm) !important;
    font-family: var(--iv-font) !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    line-height: 1.2 !important;
    text-decoration: none !important;
    white-space: normal;
    cursor: pointer;
    transition: all .2s ease;
    box-shadow: none !important;
}

/* Primary buttons */
.wp-block-button__link,
.iv-btn,
a.iv-btn,
button.iv-btn,
.iv-button-primary,
a.iv-button-primary,
button.iv-button-primary,
.fluentform .ff-btn-submit {
    background: var(--iv-blue) !important;
    color: #fff !important;
    border: 2px solid var(--iv-blue) !important;
}

.wp-block-button__link:hover,
.iv-btn:hover,
a.iv-btn:hover,
button.iv-btn:hover,
.iv-button-primary:hover,
a.iv-button-primary:hover,
button.iv-button-primary:hover,
.fluentform .ff-btn-submit:hover,
.fluentform .ff-btn-submit:focus {
    background: var(--iv-blue-dark) !important;
    border-color: var(--iv-blue-dark) !important;
    color: #fff !important;
    transform: translateY(-1px);
}

/* Outline buttons */
.wp-block-button.is-style-outline .wp-block-button__link,
.iv-btn--outline,
a.iv-btn--outline,
.iv-button:not(.iv-button-primary),
a.iv-button:not(.iv-button-primary),
button.iv-button:not(.iv-button-primary) {
    background: transparent !important;
    color: var(--iv-blue) !important;
    border: 2px solid var(--iv-blue) !important;
}

.wp-block-button.is-style-outline .wp-block-button__link:hover,
.iv-btn--outline:hover,
a.iv-btn--outline:hover,
.iv-button:not(.iv-button-primary):hover,
a.iv-button:not(.iv-button-primary):hover,
button.iv-button:not(.iv-button-primary):hover {
    background: var(--iv-blue-soft) !important;
    color: var(--iv-blue-dark) !important;
    border-color: var(--iv-blue-dark) !important;
}

/* White button */
.iv-btn--white,
a.iv-btn--white {
    background: #fff !important;
    color: var(--iv-blue-deep) !important;
    border-color: #fff !important;
}

.iv-btn--white:hover,
a.iv-btn--white:hover {
    background: #edf3ff !important;
    border-color: #edf3ff !important;
    color: var(--iv-blue-deep) !important;
}

/* Size variants */
.iv-btn--sm,
a.iv-btn--sm {
    min-height: 40px;
    padding: 9px 20px !important;
    font-size: 13px !important;
}

.iv-btn--lg,
a.iv-btn--lg {
    min-height: 50px;
    padding: 14px 30px !important;
    font-size: 14px !important;
}

/* Fluent Forms states */
.fluentform .ff-btn-submit:disabled,
.fluentform .ff-btn-submit.ff-working {
    opacity: .65;
    cursor: wait;
    transform: none;
}

/* =========================
   6. Homepage block sections
   ========================= */

/* Hero */
.wp-block-group.alignfull:first-of-type>.wp-block-group__inner-container,
.wp-block-group.alignfull:first-of-type {
    position: relative;
}

.wp-block-group.alignfull:first-of-type p.has-small-font-size:first-child {
    color: var(--iv-blue-dark);
    background: rgba(37, 99, 235, .10);
    display: inline-flex;
    align-items: center;
    padding: 8px 14px;
    border-radius: 999px;
    font-weight: 700;
    margin-bottom: 18px;
}

.wp-block-group.alignfull:first-of-type h1 {
    max-width: 12ch;
    margin-bottom: 18px;
}

.wp-block-group.alignfull:first-of-type .has-medium-font-size {
    max-width: 650px;
    color: var(--iv-text-soft);
    font-size: 1.15rem !important;
}

/* Services */
#services,
.wp-block-group.has-cyan-bluish-gray-background-color {
    background: linear-gradient(180deg, #edf5ff 0%, #e7f0ff 100%) !important;
    border-top: 1px solid rgba(37, 99, 235, .08);
    border-bottom: 1px solid rgba(37, 99, 235, .08);
}

#services>.wp-block-group__inner-container,
.wp-block-group.has-cyan-bluish-gray-background-color>.wp-block-group__inner-container {
    max-width: var(--iv-max);
}

#services p.has-small-font-size:first-child,
.wp-block-group.has-cyan-bluish-gray-background-color p.has-small-font-size:first-child {
    color: var(--iv-blue-dark);
    font-weight: 700;
}

#services .wp-block-columns>.wp-block-column>.wp-block-group,
.wp-block-group.has-cyan-bluish-gray-background-color .wp-block-columns>.wp-block-column>.wp-block-group {
    height: 100%;
    background: #fff !important;
    border: 1px solid rgba(37, 99, 235, .10);
    box-shadow: var(--iv-shadow-sm);
}

#services .wp-block-group p[style*="font-weight:700"]:first-child,
.wp-block-group.has-cyan-bluish-gray-background-color .wp-block-group p[style*="font-weight:700"]:first-child {
    color: var(--iv-blue);
    font-size: 1rem;
    margin-bottom: 4px;
}

#services .wp-block-group h3,
.wp-block-group.has-cyan-bluish-gray-background-color .wp-block-group h3 {
    color: var(--iv-blue-deep);
}

#services .wp-block-group ul,
.wp-block-group.has-cyan-bluish-gray-background-color .wp-block-group ul {
    color: var(--iv-text-soft);
}

#services .wp-block-buttons,
.wp-block-group.has-cyan-bluish-gray-background-color .wp-block-buttons {
    margin-top: 22px;
}

/* About */
#about .wp-block-columns {
    align-items: start;
}

#about .wp-block-column:last-child {
    background: #fff;
    border: 1px solid rgba(37, 99, 235, .10);
    border-radius: var(--iv-radius);
    padding: 22px 24px;
    box-shadow: var(--iv-shadow-sm);
}

#about ul {
    margin-left: 1.1rem;
}

#about li {
    color: var(--iv-text-soft);
}

/* Contact band */
#contact,
.wp-block-group.has-black-background-color {
    background: linear-gradient(135deg, var(--iv-blue-deep) 0%, var(--iv-blue-dark) 100%) !important;
}

#contact h2,
#contact p,
.wp-block-group.has-black-background-color h2,
.wp-block-group.has-black-background-color p {
    color: #fff !important;
}

#contact .wp-block-buttons {
    justify-content: center;
}

/* =========================
   7. General pages / content
   ========================= */
.iv-main,
.entry-content,
.wp-block-post-content {
    padding-bottom: 48px;
}

.entry-content>*:first-child,
.wp-block-post-content>*:first-child {
    margin-top: 0;
}

.entry-content h1,
.wp-block-post-content h1 {
    max-width: var(--iv-max);
    margin-left: auto;
    margin-right: auto;
}

.entry-content p,
.entry-content ul,
.entry-content ol,
.entry-content .wp-block-buttons,
.wp-block-post-content p,
.wp-block-post-content ul,
.wp-block-post-content ol,
.wp-block-post-content .wp-block-buttons {
    max-width: var(--iv-max-narrow);
}

/* Service page helpers */
.entry-content h2,
.wp-block-post-content h2 {
    margin-top: 2.4rem;
}

.entry-content h3,
.wp-block-post-content h3 {
    margin-top: 1.8rem;
}

.entry-content .wp-block-buttons:last-child,
.wp-block-post-content .wp-block-buttons:last-child {
    margin-top: 1.6rem;
}

/* =========================
   8. Legacy iv-* compatibility
   ========================= */
.iv-main {
    width: 100%;
}

.iv-container {
    max-width: var(--iv-max);
    margin: 0 auto;
    padding-left: 24px;
    padding-right: 24px;
}

.iv-section {
    padding: 72px 24px;
}

.iv-section--gray {
    background: linear-gradient(180deg, #edf5ff 0%, #e7f0ff 100%);
}

.iv-label {
    color: var(--iv-blue-dark);
    text-transform: uppercase;
    letter-spacing: .08em;
    font-weight: 700;
    font-size: .85rem;
    margin-bottom: 12px;
}

.iv-section__title {
    margin-bottom: 14px;
}

.iv-section__sub {
    max-width: var(--iv-max-narrow);
    color: var(--iv-text-soft);
    margin-bottom: 28px;
}

.iv-hero {
    padding: 84px 24px 72px;
    background:
        radial-gradient(circle at top right, rgba(37, 99, 235, .10), transparent 34%),
        linear-gradient(180deg, #ffffff 0%, #f6faff 100%);
}

.iv-hero__inner {
    max-width: var(--iv-max);
    margin: 0 auto;
}

.iv-hero__content {
    max-width: 700px;
}

.iv-pill {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 14px;
    border-radius: 999px;
    background: rgba(37, 99, 235, .10);
    color: var(--iv-blue-dark);
    font-weight: 700;
    font-size: .9rem;
    margin-bottom: 18px;
}

.iv-pill__dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--iv-blue);
}

.iv-hero__title {
    max-width: 12ch;
}

.iv-accent {
    color: var(--iv-accent);
}

.iv-hero__sub {
    max-width: 660px;
    color: var(--iv-text-soft);
    font-size: 1.08rem;
}

.iv-hero__btns {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 1.2rem;
}

.iv-card {
    background: #fff;
    border: 1px solid rgba(37, 99, 235, .10);
    border-radius: 22px;
    box-shadow: var(--iv-shadow);
}

.iv-card--glass {
    padding: 28px;
}

.iv-card__label {
    text-transform: uppercase;
    letter-spacing: .08em;
    font-size: .85rem;
    font-weight: 700;
    color: var(--iv-blue-dark);
}

.iv-card__title {
    font-size: 1.55rem;
}

.iv-stat-grid {
    display: flex;
    gap: 18px;
    margin: 16px 0;
}

.iv-stat {
    flex: 1;
    background: var(--iv-blue-soft);
    border: 1px solid rgba(37, 99, 235, .12);
    border-radius: 14px;
    padding: 14px;
}

.iv-stat__val {
    font-size: 1.8rem;
    line-height: 1;
    font-weight: 700;
    color: var(--iv-blue-deep);
    margin-bottom: 6px;
}

.iv-stat__lbl {
    margin: 0;
    color: var(--iv-text-soft);
}

.iv-tag-row {
    color: var(--iv-text-soft);
}

.iv-tag {
    display: inline-block;
    padding: 7px 11px;
    margin: 0 8px 8px 0;
    background: #f2f6fd;
    border: 1px solid var(--iv-border);
    border-radius: 999px;
    font-size: .85rem;
}

.iv-tag--active {
    background: var(--iv-blue-soft);
    border-color: rgba(37, 99, 235, .18);
    color: var(--iv-blue-dark);
}

.iv-services {
    display: flex;
    gap: 28px;
}

.iv-svc {
    height: 100%;
    background: #fff;
    border: 1px solid rgba(37, 99, 235, .10);
    border-radius: 18px;
    box-shadow: var(--iv-shadow-sm);
    padding: 24px;
}

.iv-svc__num {
    color: var(--iv-blue);
    font-weight: 700;
    margin-bottom: 4px;
}

.iv-svc__title {
    color: var(--iv-blue-deep);
}

.iv-svc__desc,
.iv-svc__list {
    color: var(--iv-text-soft);
}

.iv-svc__link {
    font-weight: 700;
    color: var(--iv-blue);
    text-decoration: underline;
}

.iv-about {
    display: flex;
    gap: 32px;
    align-items: flex-start;
}

.iv-about__content {
    max-width: 700px;
}

.iv-about__avatar {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--iv-blue) 0%, var(--iv-blue-dark) 100%);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 16px;
}

.iv-about__role,
.iv-about__text {
    color: var(--iv-text-soft);
}

.iv-creds {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.iv-cred {
    background: #fff;
    border: 1px solid rgba(37, 99, 235, .10);
    border-radius: 16px;
    box-shadow: var(--iv-shadow-sm);
    padding: 18px;
}

.iv-cred__val {
    display: block;
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--iv-blue-deep);
    margin-bottom: 4px;
}

.iv-cred__lbl {
    color: var(--iv-text-soft);
    font-size: .95rem;
}

.iv-cta {
    padding: 72px 24px;
    text-align: center;
    background: linear-gradient(135deg, var(--iv-blue-deep) 0%, var(--iv-blue-dark) 100%);
}

.iv-cta__title,
.iv-cta__sub {
    color: #fff;
}

.iv-cta__sub {
    max-width: 840px;
    margin: 0 auto 20px;
}

/* =========================
   9. Utilities / motion
   ========================= */
.fade-in {
    opacity: 1;
    transform: none;
}

@media (prefers-reduced-motion:no-preference) {

    .wp-block-button__link,
    .iv-btn,
    a.iv-btn,
    .iv-button,
    a.iv-button,
    button.iv-button,
    .fluentform .ff-btn-submit,
    .iv-svc,
    .iv-cred,
    .wp-block-group.has-white-background-color {
        transition: all .2s ease;
    }

    .iv-svc:hover,
    .iv-cred:hover,
    .wp-block-group.has-white-background-color:hover {
        transform: translateY(-2px);
        box-shadow: 0 14px 34px rgba(21, 56, 122, .12);
    }
}

/* =========================
   10. Responsive tweaks
   ========================= */
@media (max-width: 1100px) {

    .iv-container,
    .iv-header__inner,
    .iv-footer__inner {
        padding-left: 20px;
        padding-right: 20px;
    }
}

@media (max-width: 900px) {

    .iv-hero,
    .iv-section,
    .iv-cta {
        padding-top: 56px;
        padding-bottom: 56px;
    }

    .iv-services,
    .iv-about {
        display: block;
    }

    .iv-svc,
    .iv-about__content,
    .iv-creds {
        margin-bottom: 20px;
    }

    .iv-creds {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    body {
        font-size: 15px;
    }

    .wp-block-group.alignfull,
    .iv-hero,
    .iv-section,
    .iv-cta {
        padding-left: 16px !important;
        padding-right: 16px !important;
    }

    .iv-card--glass,
    .iv-svc,
    .iv-cred {
        padding: 20px;
    }

    .wp-block-button__link,
    .iv-btn,
    a.iv-btn,
    .iv-button,
    a.iv-button,
    button.iv-button,
    .fluentform .ff-btn-submit {
        width: 100%;
    }

    .wp-block-buttons,
    .iv-hero__btns {
        width: 100%;
    }
}


/* =========================
   11. Restored original colors + font sizes
   from theme org.css
   ========================= */

/* General */
body {
    background: var(--iv-bg);
    color: var(--iv-text);
    font-size: 16px;
}

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

a:hover {
    color: var(--iv-blue-dark);
}

/* Header / footer accents */
.iv-header {
    border-bottom: 1px solid var(--iv-border);
}

.iv-header__inner {
    height: 70px;
}

.iv-nav__list a,
.iv-footer__nav-list a {
    font-size: 13px;
    color: var(--iv-text-soft);
}

.iv-nav__list a:hover,
.iv-footer__nav-list a:hover {
    color: var(--iv-blue);
}

.iv-footer {
    background: var(--iv-text);
    border-top: none;
}

.iv-footer__nav-list a,
.iv-footer__nav a {
    color: rgba(255, 255, 255, .55);
}

.iv-footer__nav-list a:hover,
.iv-footer__nav a:hover {
    color: #50b4e8;
}

.iv-footer__copy {
    color: rgba(255, 255, 255, .35);
    font-size: 12px;
}

/* Hero restored closer to original */
.wp-block-group.alignfull:first-of-type {
    background: #ffffff;
}

.wp-block-group.alignfull:first-of-type p.has-small-font-size:first-child {
    font-size: 11px !important;
    letter-spacing: .05em;
    text-transform: uppercase;
    background: var(--iv-blue-soft);
    color: var(--iv-blue-dark);
    padding: 6px 14px;
    border-radius: 20px;
}

.wp-block-group.alignfull:first-of-type h1 {
    font-size: 48px !important;
    font-weight: 900;
    line-height: 1.04;
    letter-spacing: -2px;
    color: var(--iv-text);
    max-width: 12ch;
}

.wp-block-group.alignfull:first-of-type .has-medium-font-size,
.wp-block-group.alignfull:first-of-type p:not(.has-small-font-size) {
    font-size: 15px !important;
    line-height: 1.75;
    color: var(--iv-text-soft);
}

/* Services section */
#services,
.wp-block-group.has-cyan-bluish-gray-background-color {
    background: #f4f8fb !important;
    border-top: none;
    border-bottom: none;
}

#services p.has-small-font-size:first-child,
.wp-block-group.has-cyan-bluish-gray-background-color p.has-small-font-size:first-child {
    font-size: 11px !important;
    font-weight: 800;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--iv-blue);
}

#services h2,
.wp-block-group.has-cyan-bluish-gray-background-color h2 {
    font-size: 34px !important;
    font-weight: 900;
    letter-spacing: -1px;
    line-height: 1.12;
    color: var(--iv-text);
}

#services>.wp-block-group__inner-container>p,
.wp-block-group.has-cyan-bluish-gray-background-color>.wp-block-group__inner-container>p {
    font-size: 16px !important;
    line-height: 1.75;
    color: var(--iv-text-soft);
    max-width: 580px;
}

#services .wp-block-columns>.wp-block-column>.wp-block-group,
.wp-block-group.has-cyan-bluish-gray-background-color .wp-block-columns>.wp-block-column>.wp-block-group {
    border: 1px solid var(--iv-border);
    border-radius: var(--iv-radius);
    box-shadow: none;
}

#services .wp-block-group p[style*="font-weight:700"]:first-child,
.wp-block-group.has-cyan-bluish-gray-background-color .wp-block-group p[style*="font-weight:700"]:first-child {
    font-size: 11px !important;
    font-weight: 800 !important;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--iv-blue);
}

#services .wp-block-group h3,
.wp-block-group.has-cyan-bluish-gray-background-color .wp-block-group h3 {
    font-size: 17px !important;
    font-weight: 800;
    color: var(--iv-text);
}

#services .wp-block-group p,
#services .wp-block-group li,
.wp-block-group.has-cyan-bluish-gray-background-color .wp-block-group p,
.wp-block-group.has-cyan-bluish-gray-background-color .wp-block-group li {
    font-size: 14px !important;
    line-height: 1.7;
    color: var(--iv-text-soft);
}

/* Initvalue homepage service-card alignment
   Align CTA buttons at the bottom of each service card. */

#services .wp-block-columns {
    align-items: stretch !important;
}

#services .wp-block-column {
    display: flex !important;
    align-items: stretch !important;
}

#services .wp-block-column>.wp-block-group {
    display: flex !important;
    flex-direction: column !important;
    flex: 1 1 auto !important;
    height: 100% !important;
}

#services .wp-block-column>.wp-block-group>.wp-block-group__inner-container {
    display: flex !important;
    flex-direction: column !important;
    flex: 1 1 auto !important;
    height: 100% !important;
}

/* Push the button group to the bottom */
#services .wp-block-column>.wp-block-group>.wp-block-group__inner-container>.wp-block-buttons {
    margin-top: auto !important;
    padding-top: 12px !important;
}

/* Keep buttons visually consistent */
#services .wp-block-column .wp-block-button__link {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
}

/* About section */
#about h2 {
    font-size: 28px !important;
    font-weight: 900;
    letter-spacing: -.5px;
    color: var(--iv-text);
}

#about p,
#about li {
    font-size: 15px !important;
    line-height: 1.8;
    color: var(--iv-text-soft);
}

#about .wp-block-column:last-child {
    background: var(--iv-bg);
    border: 1px solid var(--iv-border);
    border-radius: var(--iv-radius-sm);
    box-shadow: none;
}

/* CTA */
#contact,
.wp-block-group.has-black-background-color {
    background: var(--iv-blue) !important;
}

#contact h2,
.wp-block-group.has-black-background-color h2 {
    font-size: 34px !important;
    font-weight: 900;
    letter-spacing: -1px;
    line-height: 1.1;
    color: #fff !important;
}

#contact p,
.wp-block-group.has-black-background-color p {
    font-size: 16px !important;
    line-height: 1.8;
    color: rgba(255, 255, 255, .82) !important;
}

/* Legacy iv-* elements also restored */
.iv-label {
    font-size: 11px;
    font-weight: 800;
    color: var(--iv-blue);
    letter-spacing: .12em;
}

.iv-section__title {
    font-size: 34px;
    font-weight: 900;
    letter-spacing: -1px;
    color: var(--iv-text);
}

.iv-section__sub {
    font-size: 16px;
    line-height: 1.75;
    color: var(--iv-text-soft);
}

.iv-hero__title {
    font-size: 48px;
    font-weight: 900;
    line-height: 1.04;
    letter-spacing: -2px;
    color: var(--iv-text);
}

.iv-hero__sub {
    font-size: 15px;
    line-height: 1.75;
    color: var(--iv-text-soft);
}

.iv-card--glass {
    background: var(--iv-blue-soft);
    border: 1px solid var(--iv-border);
}

.iv-card__label {
    font-size: 11px;
    font-weight: 700;
    color: var(--iv-blue);
    letter-spacing: .1em;
}

.iv-card__title {
    font-size: 18px;
    font-weight: 800;
    color: var(--iv-text);
}

.iv-stat {
    background: #fff;
    border: 1px solid var(--iv-border);
    border-radius: var(--iv-radius-sm);
}

.iv-stat__val {
    font-size: 22px;
    font-weight: 900;
    color: var(--iv-blue);
}

.iv-stat__lbl {
    font-size: 11px;
    font-weight: 600;
    color: var(--iv-text-soft);
}

.iv-tag {
    background: #fff;
    border: 1px solid var(--iv-border);
    color: var(--iv-text-soft);
    font-size: 12px;
    border-radius: 20px;
}

.iv-tag--active {
    background: var(--iv-blue);
    color: #fff;
    border-color: var(--iv-blue);
}

.iv-svc__title {
    font-size: 17px;
    font-weight: 800;
    color: var(--iv-text);
}

.iv-svc__desc {
    font-size: 14px;
    line-height: 1.7;
    color: var(--iv-text-soft);
}

.iv-svc__list li {
    font-size: 13px;
    line-height: 1.45;
    color: var(--iv-text-soft);
}

.iv-about__name {
    font-size: 28px;
    font-weight: 900;
    letter-spacing: -.5px;
}

.iv-about__role {
    font-size: 14px;
    font-weight: 700;
    color: var(--iv-blue);
}

.iv-about__text {
    font-size: 15px;
    line-height: 1.8;
    color: var(--iv-text-soft);
}

.iv-cred {
    background: #f4f8fb;
    border: 1px solid var(--iv-border);
    border-radius: var(--iv-radius-sm);
    box-shadow: none;
}

.iv-cred__val {
    font-size: 24px;
    font-weight: 900;
    color: var(--iv-blue);
}

.iv-cred__lbl {
    font-size: 11px;
    font-weight: 600;
    color: var(--iv-text-soft);
}

.iv-cta {
    background: var(--iv-blue);
}

.iv-cta__title {
    font-size: 34px;
    font-weight: 900;
    letter-spacing: -1px;
    color: #fff;
}

.iv-cta__sub {
    font-size: 16px;
    line-height: 1.8;
    color: rgba(255, 255, 255, .82);
}

/* Responsive font sizes from original */
@media (max-width: 1000px) {

    .wp-block-group.alignfull:first-of-type h1,
    .iv-hero__title {
        font-size: 34px !important;
        letter-spacing: -1px;
    }

    #services h2,
    #contact h2,
    .iv-section__title,
    .iv-cta__title {
        font-size: 28px !important;
    }
}

@media (max-width: 720px) {

    .wp-block-group.alignfull:first-of-type h1,
    .iv-hero__title {
        font-size: 28px !important;
        letter-spacing: -1px;
    }
}

.iv-card-label {
    display: block;
    margin: 0 0 8px;
    font-size: 1.1rem;
    font-weight: 700;
    line-height: 1.3;
}


/* =========================
   13. Page H1 title size
   Smaller H1 titles on regular pages.
   Keeps the sticky header unchanged.
   ========================= */
body.page:not(.home) h1,
body.single:not(.home) h1,
.iv-main--page h1,
.iv-main--page-content h1,
.entry-content h1,
.wp-block-post-content h1,
.iv-article__title {
    font-size: clamp(1.9rem, 3vw, 2.5rem) !important;
    font-weight: 800;
    line-height: 1.12;
    letter-spacing: -0.9px;
    max-width: 820px;
}

/* If a page uses the first full-width block as a page hero, override the 48px hero H1. */
body.page:not(.home) .wp-block-group.alignfull:first-of-type h1,
body.single:not(.home) .wp-block-group.alignfull:first-of-type h1,
.entry-content .wp-block-group.alignfull:first-of-type h1,
.wp-block-post-content .wp-block-group.alignfull:first-of-type h1 {
    font-size: clamp(1.9rem, 3vw, 2.5rem) !important;
    font-weight: 800;
    line-height: 1.12;
    letter-spacing: -0.9px;
    max-width: 820px;
}

@media (max-width: 1000px) {

    body.page:not(.home) h1,
    body.single:not(.home) h1,
    .iv-main--page h1,
    .iv-main--page-content h1,
    .entry-content h1,
    .wp-block-post-content h1,
    .iv-article__title,
    body.page:not(.home) .wp-block-group.alignfull:first-of-type h1,
    body.single:not(.home) .wp-block-group.alignfull:first-of-type h1,
    .entry-content .wp-block-group.alignfull:first-of-type h1,
    .wp-block-post-content .wp-block-group.alignfull:first-of-type h1 {
        font-size: 31px !important;
        letter-spacing: -0.7px;
    }
}

@media (max-width: 720px) {

    body.page:not(.home) h1,
    body.single:not(.home) h1,
    .iv-main--page h1,
    .iv-main--page-content h1,
    .entry-content h1,
    .wp-block-post-content h1,
    .iv-article__title,
    body.page:not(.home) .wp-block-group.alignfull:first-of-type h1,
    body.single:not(.home) .wp-block-group.alignfull:first-of-type h1,
    .entry-content .wp-block-group.alignfull:first-of-type h1,
    .wp-block-post-content .wp-block-group.alignfull:first-of-type h1 {
        font-size: 26px !important;
        letter-spacing: -0.5px;
    }
}

/* =========================
   14. Page H1 width and sticky-header clearance
   Keeps the sticky header unchanged.
   ========================= */
body.page:not(.home) h1,
body.single:not(.home) h1,
.iv-main--page h1,
.iv-main--page-content h1,
.entry-content h1,
.wp-block-post-content h1,
.iv-article__title,
body.page:not(.home) .wp-block-group.alignfull:first-of-type h1,
body.single:not(.home) .wp-block-group.alignfull:first-of-type h1,
.entry-content .wp-block-group.alignfull:first-of-type h1,
.wp-block-post-content .wp-block-group.alignfull:first-of-type h1 {
    max-width: 980px !important;
    margin-top: 48px !important;
}

/* Keep anchor targets clear of the sticky header. */
html {
    scroll-padding-top: 96px;
}

@media (max-width: 1000px) {

    body.page:not(.home) h1,
    body.single:not(.home) h1,
    .iv-main--page h1,
    .iv-main--page-content h1,
    .entry-content h1,
    .wp-block-post-content h1,
    .iv-article__title,
    body.page:not(.home) .wp-block-group.alignfull:first-of-type h1,
    body.single:not(.home) .wp-block-group.alignfull:first-of-type h1,
    .entry-content .wp-block-group.alignfull:first-of-type h1,
    .wp-block-post-content .wp-block-group.alignfull:first-of-type h1 {
        max-width: 92vw !important;
        margin-top: 40px !important;
    }
}

@media (max-width: 720px) {

    body.page:not(.home) h1,
    body.single:not(.home) h1,
    .iv-main--page h1,
    .iv-main--page-content h1,
    .entry-content h1,
    .wp-block-post-content h1,
    .iv-article__title,
    body.page:not(.home) .wp-block-group.alignfull:first-of-type h1,
    body.single:not(.home) .wp-block-group.alignfull:first-of-type h1,
    .entry-content .wp-block-group.alignfull:first-of-type h1,
    .wp-block-post-content .wp-block-group.alignfull:first-of-type h1 {
        max-width: 100% !important;
        margin-top: 32px !important;
    }
}

/* Top-level menu-items als dropdown-context */
header nav>ul>li,
.site-header nav>ul>li,
.main-navigation>ul>li,
.main-navigation .menu>li {
    position: relative;
}

/* Submenu standaard verbergen */
header nav ul ul,
.site-header nav ul ul,
.main-navigation ul ul,
.menu ul {
    display: none !important;
    position: absolute;
    top: 100%;
    left: 0;
    z-index: 9999;
    min-width: 16rem;
    margin: 0;
    padding: 0.5rem 0;
    list-style: none;
    background: #ffffff;
    box-shadow: 0 0.75rem 1.5rem rgba(0, 0, 0, 0.16);
}

/* Tonen bij hover of keyboard-focus */
header nav li:hover>ul,
header nav li:focus-within>ul,
.site-header nav li:hover>ul,
.site-header nav li:focus-within>ul,
.main-navigation li:hover>ul,
.main-navigation li:focus-within>ul,
.menu li:hover>ul,
.menu li:focus-within>ul {
    display: block !important;
}

/* Submenu-items verticaal tonen */
header nav ul ul li,
.site-header nav ul ul li,
.main-navigation ul ul li,
.menu ul li {
    display: block;
    width: 100%;
}

/* Submenu-links */
header nav ul ul a,
.site-header nav ul ul a,
.main-navigation ul ul a,
.menu ul a {
    display: block;
    padding: 0.65rem 1rem;
    white-space: nowrap;
    text-decoration: none;
}

.iv-service-icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    background: #eaf3fb;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    color: #1f78c8;
}

.iv-service-icon svg {
    width: 24px;
    height: 24px;
}

.iv-service-icon svg * {
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

@media (max-width: 900px) {
    .iv-header {
        z-index: 1000;
    }

    .iv-header__inner {
        position: relative;
    }

    .iv-nav {
        display: none !important;
        position: absolute;
        top: calc(100% + 8px);
        left: 18px;
        right: 18px;
        z-index: 1001;
        margin: 0;
        padding: 10px;
        background: #ffffff;
        border: 1px solid var(--iv-border);
        border-radius: 16px;
        box-shadow: 0 18px 40px rgba(15, 23, 42, 0.16);
    }

    .iv-nav.is-open {
        display: block !important;
    }

    .iv-nav .iv-nav__list {
        display: flex;
        flex-direction: column;
        gap: 0;
        width: 100%;
        margin: 0;
        padding: 0;
    }

    .iv-nav .iv-nav__list>li {
        display: block;
        width: 100%;
        border-bottom: 1px solid rgba(15, 23, 42, 0.08);
    }

    .iv-nav .iv-nav__list>li:last-child {
        border-bottom: 0;
    }

    .iv-nav .iv-nav__list a {
        display: flex;
        align-items: center;
        justify-content: space-between;
        width: 100%;
        padding: 12px 10px;
        white-space: normal;
    }

    .iv-nav .menu-item-has-children>a::after,
    .iv-nav .page_item_has_children>a::after {
        content: "▾";
        margin-left: 10px;
        font-size: 0.85em;
    }

    .iv-nav ul ul,
    .iv-nav .sub-menu,
    .iv-nav .children {
        display: none !important;
        position: static !important;
        min-width: 0;
        margin: 0 0 8px;
        padding: 4px 0 4px 12px;
        background: transparent;
        box-shadow: none;
        border-left: 2px solid rgba(37, 99, 235, 0.18);
    }

    .iv-nav li.is-submenu-open>ul,
    .iv-nav li.is-submenu-open>.sub-menu,
    .iv-nav li.is-submenu-open>.children,
    .iv-nav li:focus-within>ul,
    .iv-nav li:focus-within>.sub-menu,
    .iv-nav li:focus-within>.children {
        display: block !important;
    }

    .iv-nav ul ul li,
    .iv-nav .sub-menu li,
    .iv-nav .children li {
        display: block;
        width: 100%;
    }

    .iv-nav ul ul a,
    .iv-nav .sub-menu a,
    .iv-nav .children a {
        padding: 10px;
        font-weight: 500;
    }
}

/* =========================
   Manual language switcher
   ========================= */
.iv-lang-switcher {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 38px;
    height: 34px;
    padding: 0 10px;
    border: 1px solid var(--iv-border);
    border-radius: 999px;
    color: var(--iv-text-soft);
    background: #fff;
    font-size: 12px;
    font-weight: 800;
    line-height: 1;
    letter-spacing: .04em;
}

.iv-lang-switcher:hover {
    color: var(--iv-blue);
    border-color: var(--iv-blue);
    background: var(--iv-blue-soft);
}

@media (max-width: 900px) {
    .iv-lang-switcher {
        height: 40px;
        min-width: 42px;
    }
}

/* =========================
   15. Homepage H1 size override
   Match the front page hero H1 with the smaller page H1 size.
   ========================= */
body.home .wp-block-group.alignfull:first-of-type h1,
body.front-page .wp-block-group.alignfull:first-of-type h1,
.home .wp-block-group.alignfull:first-of-type h1 {
    font-size: clamp(1.9rem, 3vw, 2.5rem) !important;
    font-weight: 800;
    line-height: 1.12;
    letter-spacing: -0.9px;
    max-width: 820px;
}

@media (max-width: 1000px) {

    body.home .wp-block-group.alignfull:first-of-type h1,
    body.front-page .wp-block-group.alignfull:first-of-type h1,
    .home .wp-block-group.alignfull:first-of-type h1 {
        font-size: 31px !important;
        letter-spacing: -0.7px;
    }
}

@media (max-width: 720px) {

    body.home .wp-block-group.alignfull:first-of-type h1,
    body.front-page .wp-block-group.alignfull:first-of-type h1,
    .home .wp-block-group.alignfull:first-of-type h1 {
        font-size: 26px !important;
        letter-spacing: -0.5px;
    }
}

/* =========================
   16. Service detail pages
   Scoped overrides for pages using <main class="iv-service-page">
   Keeps service detail layout separate from homepage/legacy iv-* styling.
   ========================= */

.iv-service-page {
    max-width: 1120px;
    margin: 0 auto;
    padding: 48px 20px 64px;
    line-height: 1.6;
}

.iv-service-page h1,
.iv-service-page h2,
.iv-service-page h3 {
    line-height: 1.2;
}

.iv-service-page .iv-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
    align-items: start;
    margin-bottom: 56px;
    padding: 0;
    background: transparent;
}

.iv-service-page .iv-hero h1 {
    margin: 0 0 20px;
    font-size: clamp(2.1rem, 5vw, 4rem);
}

.iv-service-page .iv-lead {
    font-size: 1.18rem;
    max-width: var(--iv-max-narrow);
}

.iv-service-page .iv-card {
    border: 1px solid rgba(0, 0, 0, .12);
    border-radius: 18px;
    padding: 26px;
    background: #fff;
    box-shadow: none;
}

.iv-service-page .iv-card h2,
.iv-service-page .iv-card h3 {
    margin-top: 0;
}

.iv-service-page .iv-list {
    margin: 16px 0 0;
    padding-left: 1.2rem;
}

.iv-service-page .iv-grid-2 {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
    margin: 32px 0 56px;
}

.iv-service-page .iv-grid-3 {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
    margin: 32px 0 56px;
}

.iv-service-page .iv-columns-3 {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
    margin-top: 20px;
}

.iv-service-page .iv-section {
    margin: 0 0 56px;
    padding: 0;
    background: transparent;
}

.iv-service-page .iv-section h2 {
    margin-bottom: 16px;
    font-size: clamp(1.7rem, 3vw, 2.4rem);
}

.iv-service-page .iv-section-proof {
    margin-bottom: 32px;
}

.iv-service-page .iv-section-proof+.iv-grid-3 {
    margin-top: 24px;
}

.iv-service-page .iv-cta {
    border-radius: 20px;
    padding: 34px;
    background: #f4f7fb;
    margin-top: 32px;
    text-align: left;
}

.iv-service-page .iv-cta h2,
.iv-service-page .iv-cta p {
    color: var(--iv-text);
}

.iv-service-page .iv-button-row {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    margin-top: 22px;
}

@media (max-width: 860px) {

    .iv-service-page .iv-hero,
    .iv-service-page .iv-grid-2,
    .iv-service-page .iv-grid-3,
    .iv-service-page .iv-columns-3 {
        grid-template-columns: 1fr;
    }
}

/* Fluent Forms confirmation message */
.fluentform .ff-message-success {
    margin: 24px 0 0;
    padding: 20px 22px;
    border: 1px solid var(--iv-blue);
    border-left: 6px solid var(--iv-blue);
    border-radius: var(--iv-radius-sm);
    background: var(--iv-blue-soft);
    color: var(--iv-text);
    font-family: var(--iv-font);
    font-size: 16px;
    font-weight: 600;
    line-height: 1.6;
    box-shadow: none;
}

.fluentform .ff-message-success::before {
    content: "✓";
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    margin-right: 10px;
    border-radius: 50%;
    background: var(--iv-blue);
    color: #fff;
    font-weight: 800;
    vertical-align: middle;
}

/* =========================
   17. Privacy page
   Compact section headings while preserving correct H1/H2 hierarchy.
   Add class="iv-privacy-page" to the privacy-page content wrapper.
   ========================= */
.iv-privacy-page h2,
.iv-privacy-page .wp-block-heading:is(h2) {
    font-size: 1.45rem !important;
    line-height: 1.25;
    letter-spacing: -0.02em;
    margin-top: 2.1rem !important;
    margin-bottom: 0.8rem;
}

.iv-privacy-page h2:first-child,
.iv-privacy-page .wp-block-heading:is(h2):first-child {
    margin-top: 0 !important;
}

@media (max-width: 720px) {

    .iv-privacy-page h2,
    .iv-privacy-page .wp-block-heading:is(h2) {
        font-size: 1.3rem !important;
        margin-top: 1.8rem !important;
    }
}

/* Complianz: hide Manage services link */
html body a.cmplz-link.cmplz-manage-options.cookie-statement {
    display: none !important;
}
