/* Global base styles */
body {
    color: #1f2937; /* slate-800 */
    background-color: #f6f9fc; /* very light background */
    margin: 0; /* no outer margins */
    font-family: 'Selawik', 'Segoe UI', Arial, Helvetica, sans-serif;
    font-weight: 400;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    /* Use real bold from @font-face, allow italic synthesis since no italic face is provided */
    font-synthesis-weight: none;
}

html, body {
    height: 100%;
}

/* Smooth scrolling for in-page anchors */
html {
    scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
}

img {
    max-width: 100%;
    display: block;
}

a {
    color: inherit;
}

/* Ensure correct weights for emphasis and headings */
strong, b {
    font-weight: 700;
}

em, i {
    font-style: italic;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
}

* {
    box-sizing: border-box;
}

/* ----- Modal ----- */

.img-modal {
    position: fixed;
    inset: 0;
    display: grid;
    place-items: center;
    pointer-events: none;
    z-index: 1000;
}

.img-modal::before {
    content: '';
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0);
    -webkit-backdrop-filter: blur(0px);
    backdrop-filter: blur(0px);
    opacity: 0;
    transition: opacity 300ms ease-in-out, background 300ms ease-in-out, backdrop-filter 300ms ease-in-out, -webkit-backdrop-filter 300ms ease-in-out;
    z-index: -1;
}

.img-modal.is-open::before {
    opacity: 1;
    background: rgba(15, 23, 42, 0.48);
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
}

.img-modal.is-open {
    pointer-events: auto;
}

.img-modal__backdrop {
    position: absolute;
    inset: 0;
}

.img-modal__dialog {
    position: relative;
    width: min(92vw, 1100px);
    max-width: min(92vw, 1100px);
    max-height: min(90vh, 900px);
    overflow: auto;
    border-radius: 1.5rem;
    opacity: 0;
    transform: scale(0.96) translateY(10px);
    transition: opacity 300ms ease-in-out, transform 300ms ease-in-out;
}

.img-modal.is-open .img-modal__dialog {
    opacity: 1;
    transform: scale(1) translateY(0);
}

.img-modal__close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 2.5rem;
    height: 2.5rem;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.75);
    color: #0f172a;
    font-size: 1.6rem;
    line-height: 1;
    cursor: pointer;
}

.img-modal__close:hover {
    background: rgba(255, 255, 255, 0.9);
}

.img-modal__dialog {
    background: #ffffff;
    border: 1px solid #dbe3ee;
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.25);
    display: grid;
    gap: 0.75rem;
    padding: 1rem;
}

.img-modal:not(.landing-modal) .img-modal__dialog {
    width: auto;
    max-width: min(94vw, 1200px);
    max-height: 92vh;
    overflow: auto;
}

.img-modal:not(.landing-modal) .img-modal__img {
    width: auto;
    height: auto;
    max-width: min(90vw, 1100px);
    max-height: 78vh;
    object-fit: contain;
    margin: 0 auto;
    border-radius: 0.75rem;
    background: transparent;
}

.img-modal:not(.landing-modal) .img-modal__caption {
    color: #475569;
    font-size: 0.95rem;
    text-align: center;
    line-height: 1.5;
    min-height: 1.25rem;
    max-width: min(90vw, 1100px);
    overflow-wrap: anywhere;
    word-break: break-word;
    white-space: normal;
    margin-inline: auto;
}

/* Fonts are loaded via /fonts/selawik.css and resets via /styles/global.css */

.landing-page {
    position: relative;
    min-height: 100vh;
    overflow: hidden;
}

.landing-page__bg {
    position: absolute;
    inset: 0;
    z-index: -1;
    background:
        radial-gradient(circle at top, rgba(33, 68, 123, 0.12), transparent 30%),
        radial-gradient(circle at 85% 18%, rgba(34, 167, 238, 0.1), transparent 20%);
}

.landing-modal__dialog {
    border: 1px solid #dbe3ee;
    background: rgba(246, 249, 252, 0.96);
    box-shadow: 0 30px 70px rgba(15, 23, 42, 0.22);
    overflow: hidden;
}

.landing-modal__content {
    min-height: auto;
    justify-content: flex-start;
    padding: 2rem;
}

.landing-modal__content.content-column {
    min-height: 0;
}

.content-column {
    width: 100%;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 0;
    padding: 2rem;
}

.hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 1.75rem;
    flex: 0 1 auto;
    width: 100%;
}

.landing-modal__content .hero {
    flex: 0 1 auto;
    justify-content: flex-start;
}

.logo {
    display: block;
    width: auto;
    height: auto;
    max-height: min(30dvh, 400px);
    max-width: 70vw;
}

.product-section {
    width: 100%;
    max-width: 1000px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
}

.section-title {
    margin: 0;
    font-size: 1.75rem;
    color: #1f2937;
}

.buttons {
    display: grid;
    gap: 0.875rem;
    width: 100%;
    max-width: 900px;
    margin-inline: auto;
}

.buttons.buttons-1 {
    grid-template-columns: repeat(1, minmax(0, 1fr));
}

.buttons.buttons-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.buttons.buttons-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.buttons-bottom-row {
    margin-top: 1rem;
}

.landing-modal__footer {
    margin-top: 1rem;
    flex: 0 0 auto;
}

.footer {
    margin-top: 0;
    width: 100%;
    display: flex;
    justify-content: center;
    padding-top: 0.5rem;
}

.container {
    width: min(1120px, calc(100% - 3rem));
    margin: 0 auto;
}

.section-spacing {
    padding: 5rem 0;
}

.section-spacing--tight {
    padding-top: 1.5rem;
    padding-bottom: 3.5rem;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    background: rgba(246, 249, 252, 0.85);
    border-bottom: 1px solid rgba(203, 213, 225, 0.8);
    -webkit-backdrop-filter: blur(18px);
    backdrop-filter: blur(18px);
}

.site-header__inner,
.site-footer__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
}

.site-header__inner {
    padding-top: 1rem;
    padding-bottom: 1rem;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
}

.brand__logo {
    height: 2.5rem;
    width: auto;
    border-radius: 0.85rem;
}

.brand__name {
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 2rem;
    color: #64748b;
    font-size: 0.95rem;
}

.site-nav a,
.site-footer__links a {
    text-decoration: none;
    transition: color 0.2s ease;
}

.site-nav a:hover,
.site-footer__links a:hover,
.footer-link:hover {
    color: #0f172a;
}

.hero-section {
    padding-top: 4rem;
}

.eyebrow-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.625rem;
    padding: 0.75rem 1rem;
    border: 1px solid #dbe3ee;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.72);
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.05);
    color: #475569;
    font-size: 0.95rem;
}

.eyebrow-pill__icon,
.highlight-card__icon,
.value-item__icon,
.step-card__number,
.service-card__icon {
    flex: 0 0 auto;
}

.hero-title,
.section-intro h2,
.approach-panel h2,
.contact-card h2 {
    margin: 1.5rem 0 0;
    color: #0f172a;
    letter-spacing: -0.04em;
    line-height: 1.05;
}

.hero-title {
    max-width: 900px;
    font-size: clamp(2.9rem, 7vw, 5.2rem);
    padding-inline: 1.75rem;
}

.hero-title-row {
    position: relative;
    display: block;
    min-height: clamp(180px, 24vw, 280px);
}

.hero-title-row .hero-title {
    position: relative;
    z-index: 2;
    max-width: none;
}

.hero-logo-visual {
    position: absolute;
    right: clamp(0.25rem, 2vw, 1.5rem);
    top: 50%;
    transform: translateY(-50%);
    width: clamp(180px, 22vw, 320px);
    aspect-ratio: 1 / 1;
    z-index: 1;
    pointer-events: none;
}

.hero-logo-visual__image {
    display: block;
    width: 100%;
    height: 100%;
    opacity: 0.25;
    filter: drop-shadow(0 14px 28px rgba(15, 23, 42, 0.28));
    transform-origin: center;
}

.hero-logo-visual__image {
    object-fit: contain;
    animation: heroLogoSpin 60s linear infinite;
}

@keyframes heroLogoSpin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

.hero-copy,
.section-intro p:not(.section-kicker),
.reference-main p,
.side-card p,
.approach-panel p,
.step-card p,
.contact-card p {
    margin: 1.5rem 0 0;
    color: #64748b;
    line-height: 1.8;
    font-size: 1.1rem;
}

.hero-copy {
    max-width: 760px;
    padding-inline: 1.75rem;
}

.cta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.875rem;
    margin-top: 2rem;
}

.cta-row--compact {
    margin-top: 1.75rem;
}

.highlight-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.875rem;
    max-width: 100%;
    margin-top: 2.5rem;
}

.highlight-card,
.value-item,
.approach-point {
    display: flex;
    align-items: center;
    gap: 0.875rem;
}

.highlight-card {
    padding: 1rem 1.125rem;
    border: 1px solid #dbe3ee;
    border-radius: 1.25rem;
    background: rgba(255, 255, 255, 0.8);
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.05);
    font-size: 1rem;
    font-weight: 600;
}

.highlight-card__icon,
.value-item__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.5rem;
    height: 1.5rem;
    border-radius: 999px;
    color: #21447b;
    background: rgba(33, 68, 123, 0.12);
    font-size: 0.95rem;
    font-weight: 700;
}

.section-intro {
    max-width: 760px;
    padding-inline: 1.75rem;
}

.section-intro--wide {
    max-width: 820px;
}

.section-kicker {
    margin: 0;
    color: #21447b;
    font-size: 1.45rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.section-kicker--light {
    color: rgba(255, 255, 255, 0.65);
}

.reference-shell {
    position: relative;
    margin-top: 2.75rem;
}

.reference-shell::before {
    content: "";
    position: absolute;
    inset: 1.5rem;
    z-index: -1;
    border-radius: 2rem;
    opacity: 0.6;
    background-image:
        linear-gradient(rgba(33, 68, 123, 0.07) 1px, transparent 1px),
        linear-gradient(90deg, rgba(33, 68, 123, 0.07) 1px, transparent 1px);
    background-size: 28px 28px;
}

.reference-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.9fr);
    gap: 1.25rem;
    padding: 1.5rem;
    border: 1px solid #dbe3ee;
    border-radius: 2rem;
    background: rgba(255, 255, 255, 0.85);
    box-shadow: 0 24px 55px rgba(15, 23, 42, 0.1);
}

.reference-main {
    padding: 1.75rem;
    border-radius: 1.5rem;
    background: #b7dbff;
    color: #0b1b33;
    box-shadow: 0 24px 40px rgba(15, 23, 42, 0.12);
}

.reference-main h3,
.side-card h3,
.service-card h3,
.step-card h3 {
    margin: 0;
    line-height: 1.25;
    letter-spacing: -0.03em;
}

.reference-main h3 {
    max-width: 680px;
    font-size: clamp(1.7rem, 3vw, 2.2rem);
}

.reference-main .value-list {
    display: grid;
    gap: 0.875rem;
    margin-top: 1.5rem;
}

.value-item {
    align-items: flex-start;
    padding: 0.95rem 1rem;
    border: 1px solid rgba(15, 23, 42, 0.12);
    border-radius: 1rem;
    background: rgba(255, 255, 255, 0.55);
    color: rgba(11, 27, 51, 0.92);
    line-height: 1.7;
}

.value-item__icon {
    margin-top: 0.15rem;
    color: #38bdf8;
    background: rgba(56, 189, 248, 0.18);
}

.reference-main .btn.btn-outline-light {
    color: #0b1b33;
    border-color: rgba(11, 27, 51, 0.25);
}

.reference-main .btn.btn-outline-light:hover {
    background: rgba(11, 27, 51, 0.06);
}

.reference-side {
    display: grid;
    gap: 1rem;
}

.side-card {
    padding: 1.5rem;
    border: 1px solid #dbe3ee;
    border-radius: 1.5rem;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.06);
}

.side-card--soft {
    background: rgba(241, 245, 249, 0.9);
}

.side-card--accent {
    background: rgba(226, 232, 240, 0.6);
}

.side-card__label {
    margin: 0;
    color: #475569;
    font-size: 0.92rem;
    font-weight: 600;
}

.side-card h3 {
    margin-top: 0.75rem;
    font-size: 1.45rem;
    color: #0f172a;
}

.side-card p:last-child {
    margin-top: 0.9rem;
    font-size: 0.98rem;
}

.services-grid,
.approach-steps {
    display: grid;
    gap: 1.25rem;
    margin-top: 3rem;
}

.services-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.service-card,
.step-card,
.contact-card {
    border: 1px solid #dbe3ee;
    background: rgba(255, 255, 255, 0.84);
    box-shadow: 0 14px 34px rgba(15, 23, 42, 0.06);
}

.service-card {
    padding: 1.75rem;
    border-radius: 1.75rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.service-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(15, 23, 42, 0.1);
}

.service-card__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 3rem;
    height: 3rem;
    border-radius: 1rem;
    color: #21447b;
    background: rgba(33, 68, 123, 0.1);
    font-size: 1.4rem;
}

.service-card h3 {
    margin-top: 1.25rem;
    font-size: 1.35rem;
    color: #0f172a;
}

.service-card p,
.step-card p {
    margin-top: 0.85rem;
    font-size: 0.98rem;
}

.approach-layout {
    display: block;
}

.approach-panel {
    padding: 2rem;
    border-radius: 2rem;
    background: #b7dbff;
    overflow: hidden;
    box-shadow: 0 24px 55px rgba(15, 23, 42, 0.12);
}

.approach-panel h2 {
    color: #0b1b33;
    font-size: clamp(2rem, 4vw, 2.8rem);
}

.approach-panel p {
    color: rgba(11, 27, 51, 0.82);
    font-size: 1rem;
}

.approach-panel .section-kicker--light {
    color: rgba(11, 27, 51, 0.7);
}

.approach-points {
    display: grid;
    gap: 0.9rem;
    margin-top: 2rem;
}

.approach-steps--inside {
    margin-top: 2rem;
    gap: 1rem;
}

.approach-point {
    color: rgba(11, 27, 51, 0.9);
    font-size: 0.96rem;
}

.approach-point span:first-child {
    color: #21447b;
}

.approach-steps {
    grid-template-columns: 1fr;
}

.step-card {
    padding: 1.75rem;
    border-radius: 1.75rem;
}

.step-card--inside {
    border-color: rgba(15, 23, 42, 0.12);
    background: rgba(255, 255, 255, 0.55);
    box-shadow: none;
}

.step-card__number {
    color: #21447b;
    font-size: 0.95rem;
    font-weight: 700;
}

.step-card--inside .step-card__number {
    color: #21447b;
}

.step-card h3 {
    margin-top: 1rem;
    font-size: 1.35rem;
    color: #0f172a;
}

.step-card--inside h3 {
    color: #0b1b33;
}

.step-card--inside p {
    color: rgba(11, 27, 51, 0.82);
}

.contact-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 2rem;
    align-items: center;
    padding: 2.25rem 3rem;
    border-radius: 2rem;
    box-shadow: 0 24px 55px rgba(15, 23, 42, 0.1);
}

.contact-actions {
    display: flex;
    flex-direction: column;
    gap: 0.875rem;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    text-decoration: none;
    font-family: inherit;
    cursor: pointer;
    background-color: #21447b; /* brand primary */
    color: #ffffff;
    padding: 0.95rem 1.25rem;
    border-radius: 12px;
    border: 0;
    appearance: none;
    -webkit-appearance: none;
    font-size: 1.125rem;
    font-weight: 600;
    box-shadow: 0 6px 16px rgba(33, 68, 123, 0.25);
    transition: transform 0.08s ease, filter 0.2s ease;
    width: 100%; /* fill grid cell for equal widths */
    box-sizing: border-box;
}

.btn-lg {
    min-height: 3.5rem;
    padding-inline: 1.35rem;
}

.btn-header {
    width: auto;
    white-space: nowrap;
}

.btn:hover {
    filter: brightness(0.95);
}

.btn:active {
    transform: translateY(1px);
}

/* Call-to-action gradient animated variant */
.btn.btn-call-to-action {
    /* Vivid multi-stop gradient */
    background: linear-gradient(135deg, #21447b, #2563eb, #4f46e5, #22a7ee, #2563eb, #21447b);
    background-size: 350% 350%;
    /* Faster gradient and added glow pulse */
    animation: ctaGradientShift 6s ease infinite, ctaGlow 3s ease-in-out infinite;
    position: relative;
    overflow: hidden;
    /* Base shadow slightly stronger */
    box-shadow: 0 8px 22px rgba(33, 68, 123, 0.38);
    /* Smooth shadow transition on hover */
    transition: transform 0.08s ease, filter 0.2s ease, box-shadow 0.25s ease;
}

@keyframes ctaGradientShift {
    0% {
        background-position: 0 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0 50%;
    }
}

@keyframes ctaGlow {
    0%, 100% {
        box-shadow: 0 8px 22px rgba(33, 68, 123, 0.38), 0 0 0 rgba(79, 70, 229, 0);
    }
    50% {
        box-shadow: 0 10px 28px rgba(33, 68, 123, 0.46), 0 0 26px rgba(79, 70, 229, 0.28);
    }
}

@media (prefers-reduced-motion: reduce) {
    .btn.btn-call-to-action {
        animation: none;
        background: linear-gradient(135deg, #21447b, #2b6cb0);
        background-size: auto;
        box-shadow: 0 6px 16px rgba(33, 68, 123, 0.25);
    }

    .hero-logo-visual__image {
        animation: none;
    }
}

.btn.btn-outline {
    background-color: transparent;
    color: #21447b;
    border: 2px solid #21447b;
    box-shadow: none;
}

.btn.btn-outline:hover {
    background-color: rgba(33, 68, 123, 0.08);
    filter: none; /* override base hover filter */
}

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

.btn.btn-outline-light:hover {
    background: rgba(255, 255, 255, 0.08);
}

.site-footer {
    border-top: 1px solid #dbe3ee;
    padding: 2rem 0;
}

.site-footer__inner {
    color: #64748b;
    font-size: 0.95rem;
}

.site-footer__links {
    display: flex;
    flex-wrap: wrap;
    gap: 1.25rem;
}

.footer-link {
    color: rgba(51, 65, 85, 0.3);
    text-decoration: underline;
    font-size: 0.95rem;
}

@media (max-width: 1080px) {
    .highlight-grid,
    .services-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .reference-grid,
    .contact-card {
        grid-template-columns: 1fr;
    }

    .contact-actions {
        flex-direction: row;
        flex-wrap: wrap;
    }
}

@media (max-width: 820px) {
    .site-nav {
        display: none;
    }

    .hero-title-row {
        min-height: clamp(170px, 42vw, 250px);
    }

    .hero-logo-visual {
        right: 0.25rem;
        left: auto;
        top: 50%;
        transform: translateY(-50%);
        width: clamp(150px, 38vw, 240px);
    }

    .hero-logo-visual__image {
        opacity: 0.3;
        animation: heroLogoSpin 60s linear infinite;
    }

    .services-grid,
    .approach-steps {
        grid-template-columns: 1fr;
    }

    .site-header__inner {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        flex-wrap: nowrap;
        gap: 1rem;
    }

    .site-footer__inner {
        flex-direction: column;
        align-items: flex-start;
    }

    .contact-card {
        padding: 2rem;
    }

    .buttons {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 600px) {
    .container {
        width: min(1120px, calc(100% - 1.5rem));
    }

    .section-spacing {
        padding: 4rem 0;
    }

    .hero-section {
        padding-top: 3rem;
    }

    .hero-copy,
    .section-intro p:not(.section-kicker),
    .reference-main p,
    .side-card p,
    .approach-panel p,
    .step-card p,
    .contact-card p {
        font-size: 1rem;
    }

    .eyebrow-pill {
        font-size: 0.88rem;
    }

    .btn {
        font-size: 1rem;
        padding: 0.85rem 1rem;
        border-radius: 10px;
    }

    .cta-row,
    .contact-actions {
        flex-direction: column;
    }

    .reference-grid,
    .reference-main,
    .side-card,
    .service-card,
    .step-card,
    .approach-panel,
    .contact-card,
    .landing-modal__content,
    .content-column {
        padding: 1.25rem;
    }

    .section-intro {
        padding-inline: 1.25rem;
    }

    .hero-title,
    .hero-copy {
        padding-inline: 1.25rem;
    }

    .img-modal__dialog {
        width: min(94vw, 1100px);
    }

    .img-modal:not(.landing-modal) .img-modal__dialog {
        width: auto;
        max-width: min(94vw, 1100px);
        padding: 0.75rem;
        overflow-x: hidden;
        justify-items: center;
    }

    .img-modal:not(.landing-modal) .img-modal__img,
    .img-modal:not(.landing-modal) .img-modal__caption {
        max-width: calc(94vw - 1.5rem);
    }

    .img-modal__close {
        top: 0.75rem;
        right: 0.75rem;
    }

    .logo {
        max-height: min(16dvh, 160px);
        max-width: 70vw;
    }

    .site-footer__links {
        gap: 0.75rem 1rem;
    }
}
