/**
 * MoneyMoneyHome visual polish inspired by Blocksy Web Agency.
 *
 * Keep this layer scoped to the public presentation so Blocksy's generated
 * layout CSS remains the source of truth for structure and responsiveness.
 */

:root {
    --mmh-accent: var(--theme-palette-color-1, #e10106);
    --mmh-accent-dark: var(--theme-palette-color-2, #c90003);
    --mmh-ink: var(--theme-palette-color-4, #000000);
    --mmh-muted: var(--theme-palette-color-3, #5a5a5a);
    --mmh-soft-bg: #fafafa;
    --mmh-card-shadow: 0 24px 70px rgba(24, 32, 48, 0.08);
    --mmh-card-shadow-hover: 0 30px 90px rgba(24, 32, 48, 0.12);
}

/* Header */
#header .ct-header [data-row*="middle"] {
    border-bottom: 1px solid rgba(0, 0, 0, 0.04);
    box-shadow: 0 14px 34px rgba(24, 32, 48, 0.035);
}

/* Web Agency demo caps logo at 27px on the homepage only; keep Blocksy customizer sizes instead. */
header#header [data-id="logo"] .site-logo-container {
    --logo-max-height: 72px;
}

@media (max-width: 999.98px) {
    header#header [data-id="logo"] .site-logo-container {
        --logo-max-height: 36px;
    }
}

#header [data-id="logo"] img {
    transition: transform 0.2s ease;
}

#header [data-id="logo"] a:hover img {
    transform: translateY(-1px);
}

#header .ct-header [data-id="button"] .ct-button-ghost {
    border-width: 2px;
    border-radius: 999px;
    box-shadow: 0 10px 24px rgba(225, 1, 6, 0.08);
}

#header .ct-header [data-id="account"] .ct-account-item {
    gap: 8px;
}

header#header [data-id="menu"] {
    --dropdown-top-offset: -24px;
}

/* Homepage hero */
.home .elementor-1142 .elementor-element.elementor-element-b460453 {
    overflow: hidden;
    box-shadow: 0 28px 80px rgba(24, 32, 48, 0.13);
    --justify-content: flex-end;
    --align-items: flex-start;
    align-items: flex-start !important;
}

.home .elementor-1142 .elementor-element.elementor-element-7fccd0d {
    --margin-bottom: 72px;
}

.home .elementor-1142 .elementor-element.elementor-element-b460453::before {
    border-radius: inherit;
}

.home .elementor-1142 .elementor-element.elementor-element-b460453 .e-con-inner,
.home .elementor-1142 .elementor-element.elementor-element-b460453 > .elementor-element {
    width: min(100%, 760px);
    max-width: 760px;
}

.home .elementor-1142 .elementor-element.elementor-element-88c46f2 {
    text-align: left !important;
}

.home .elementor-1142 .elementor-element.elementor-element-88c46f2 > .elementor-widget-container {
    margin: 0 0 18px !important;
}

.home .elementor-1142 .elementor-element.elementor-element-88c46f2 .elementor-heading-title {
    position: relative;
    padding-bottom: 18px;
    color: #ffffff;
    font-size: clamp(34px, 5.4vw, 80px);
    font-weight: 800;
    line-height: 1.12;
    letter-spacing: -0.02em;
    text-shadow: 0 10px 30px rgba(0, 0, 0, 0.42);
    overflow-wrap: anywhere;
    text-wrap: balance;
}

.home .elementor-1142 .elementor-element.elementor-element-88c46f2 .elementor-heading-title::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 72px;
    height: 4px;
    border-radius: 999px;
    background: var(--mmh-accent, #e10106);
}

.home .elementor-1142 .elementor-element.elementor-element-88c46f2 .mmh-hero-accent {
    color: var(--mmh-accent, #e10106);
}

.home .elementor-1142 .elementor-element.elementor-element-56b9cc9 {
    text-align: left !important;
    color: rgba(255, 255, 255, 0.92) !important;
    font-size: clamp(16px, 1.8vw, 24px) !important;
    line-height: 1.65 !important;
}

.home .elementor-1142 .elementor-element.elementor-element-56b9cc9 > .elementor-widget-container {
    margin: 0 0 28px !important;
    padding: 0 !important;
    max-width: 640px;
}

.home .elementor-1142 .elementor-element.elementor-element-56b9cc9 p {
    margin: 0;
}

.home .elementor-1142 .elementor-element.elementor-element-56b9cc9 strong {
    font-weight: 600;
}

.home .mmh-hero-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    max-width: 760px;
}

.home .mmh-hero-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 42px;
    padding: 8px 16px;
    border: 1px solid rgba(255, 255, 255, 0.34);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(8px);
    color: #ffffff;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.2;
    white-space: nowrap;
}

.home .mmh-hero-tag__icon {
    width: 16px;
    height: 16px;
    flex: 0 0 16px;
    background: currentColor;
    opacity: 0.95;
}

.home .mmh-hero-tag__icon--chart {
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23000' d='M9.4 16.6 4.8 12l4.6-4.6L8 6l-6 6 6 6 1.4-1.4zm5.2 0 4.6-4.6-4.6-4.6L16 6l6 6-6 6-1.4-1.4z'/%3E%3C/svg%3E") center / contain no-repeat;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23000' d='M9.4 16.6 4.8 12l4.6-4.6L8 6l-6 6 6 6 1.4-1.4zm5.2 0 4.6-4.6-4.6-4.6L16 6l6 6-6 6-1.4-1.4z'/%3E%3C/svg%3E") center / contain no-repeat;
}

.home .mmh-hero-tag__icon--play {
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23000' d='M21.6 7.2a2.2 2.2 0 0 0-1.5-1.5C17.9 5.3 12 5.3 12 5.3s-5.9 0-8.1.4A2.2 2.2 0 0 0 2.4 7.2 23 23 0 0 0 2 12c0 1.7.1 3.4.4 4.8a2.2 2.2 0 0 0 1.5 1.5c2.2.4 8.1.4 8.1.4s5.9 0 8.1-.4a2.2 2.2 0 0 0 1.5-1.5c.3-1.4.4-3.1.4-4.8 0-1.7-.1-3.4-.4-4.8zM10 15.5V8.5l6 3.5-6 3.5z'/%3E%3C/svg%3E") center / contain no-repeat;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23000' d='M21.6 7.2a2.2 2.2 0 0 0-1.5-1.5C17.9 5.3 12 5.3 12 5.3s-5.9 0-8.1.4A2.2 2.2 0 0 0 2.4 7.2 23 23 0 0 0 2 12c0 1.7.1 3.4.4 4.8a2.2 2.2 0 0 0 1.5 1.5c2.2.4 8.1.4 8.1.4s5.9 0 8.1-.4a2.2 2.2 0 0 0 1.5-1.5c.3-1.4.4-3.1.4-4.8 0-1.7-.1-3.4-.4-4.8zM10 15.5V8.5l6 3.5-6 3.5z'/%3E%3C/svg%3E") center / contain no-repeat;
}

.home .mmh-hero-tag__icon--bot {
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23000' d='M12 7V3H2v18h20V7H12zM6 19H4v-2h2v2zm0-4H4v-2h2v2zm0-4H4V9h2v2zm0-4H4V5h2v2zm4 12H8v-2h2v2zm0-4H8v-2h2v2zm0-4H8V9h2v2zm0-4H8V5h2v2zm10 12h-8v-2h2v-2h-2v-2h2v-2h-2V9h8v10zm-2-8h-2v2h2v-2zm0 4h-2v2h2v-2z'/%3E%3C/svg%3E") center / contain no-repeat;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23000' d='M12 7V3H2v18h20V7H12zM6 19H4v-2h2v2zm0-4H4v-2h2v2zm0-4H4V9h2v2zm0-4H4V5h2v2zm4 12H8v-2h2v2zm0-4H8v-2h2v2zm0-4H8V9h2v2zm0-4H8V5h2v2zm10 12h-8v-2h2v-2h-2v-2h2v-2h-2V9h8v10zm-2-8h-2v2h2v-2zm0 4h-2v2h2v-2z'/%3E%3C/svg%3E") center / contain no-repeat;
}

.home .mmh-hero-tag__icon--card {
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23000' d='M4 4h16a2 2 0 0 1 2 2v12a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2zm0 4v10h16V8H4zm2 2h5v2H6v-2z'/%3E%3C/svg%3E") center / contain no-repeat;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23000' d='M4 4h16a2 2 0 0 1 2 2v12a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2zm0 4v10h16V8H4zm2 2h5v2H6v-2z'/%3E%3C/svg%3E") center / contain no-repeat;
}

.home .mmh-home-cards {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
    width: min(100%, 1288px);
    margin: 0 auto;
    padding-inline: clamp(16px, 3vw, 35px);
    position: relative;
    z-index: 2;
}

.home .elementor-element.elementor-element-mmhfc00 {
    width: 100%;
    max-width: none;
}

.home .mmh-home-card {
    display: flex;
    align-items: center;
    gap: 18px;
    min-height: 112px;
    padding: 22px 24px;
    border: 1px solid rgba(24, 32, 48, 0.06);
    border-radius: 22px;
    background: #ffffff;
    box-shadow: 0 18px 50px rgba(24, 32, 48, 0.08);
    color: inherit;
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.home .mmh-home-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 24px 60px rgba(24, 32, 48, 0.12);
}

.home .mmh-home-card__icon {
    width: 56px;
    height: 56px;
    flex: 0 0 56px;
    border-radius: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.home .mmh-home-card__icon svg {
    width: 30px;
    height: 30px;
    display: block;
    flex: 0 0 auto;
}

.home .mmh-home-card--red .mmh-home-card__icon {
    background: rgba(225, 1, 6, 0.14);
    color: #e10106;
}

.home .mmh-home-card--blue .mmh-home-card__icon {
    background: rgba(37, 99, 235, 0.14);
    color: #2563eb;
}

.home .mmh-home-card--purple .mmh-home-card__icon {
    background: rgba(124, 58, 237, 0.14);
    color: #7c3aed;
}

.home .mmh-home-card__body {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    gap: 6px;
    min-width: 0;
}

.home .mmh-home-card__title {
    color: var(--mmh-ink, #000000);
    font-size: clamp(18px, 2vw, 22px);
    font-weight: 800;
    line-height: 1.25;
}

.home .mmh-home-card__desc {
    color: var(--mmh-muted, #5a5a5a);
    font-size: 14px;
    line-height: 1.55;
}

.home .mmh-home-card__arrow {
    flex: 0 0 auto;
    color: var(--mmh-accent, #e10106);
    font-size: 24px;
    font-weight: 700;
    line-height: 1;
}

/* Services/product cards section */
.home .elementor-1142 .elementor-element.elementor-element-352098f {
    position: relative;
    isolation: isolate;
    --padding-bottom: 48px;
    padding-bottom: 48px !important;
}

/* Drop the extra spacer block between services cards and blog list */
.home .elementor-1142 .elementor-element.elementor-element-dde983b {
    display: none !important;
}

.home .elementor-1142 .elementor-element.elementor-element-352098f::before {
    content: "";
    position: absolute;
    inset: 6% 0 auto 45%;
    width: min(55vw, 760px);
    height: min(55vw, 720px);
    border-radius: 46% 54% 44% 56%;
    background:
        radial-gradient(circle at 28% 28%, rgba(225, 1, 6, 0.055), transparent 36%),
        linear-gradient(135deg, rgba(245, 246, 248, 0.92), rgba(255, 255, 255, 0));
    z-index: -1;
    pointer-events: none;
}

.home .elementor-widget-icon-box {
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.home .elementor-widget-icon-box .elementor-widget-container {
    border: 1px solid rgba(24, 32, 48, 0.045);
    border-radius: 26px;
    box-shadow: var(--mmh-card-shadow) !important;
}

.home .elementor-widget-icon-box:hover {
    transform: translateY(-4px);
}

.home .elementor-widget-icon-box:hover .elementor-widget-container {
    box-shadow: var(--mmh-card-shadow-hover) !important;
}

/* Blog cards — match header / Elementor boxed width (1290px) */
.home .elementor-element-a6bfda4 .ct-posts-shortcode,
.home .mmh-section--blog .ct-posts-shortcode,
.home .ct-posts-shortcode {
    width: 100%;
    max-width: none;
    margin-inline: 0;
}

.home .ct-posts-shortcode .entries[data-layout="simple"] {
    gap: 28px;
}

.home .ct-posts-shortcode .entries[data-layout="simple"] .entry-card {
    border: 1px solid rgba(24, 32, 48, 0.045);
    box-shadow: var(--mmh-card-shadow) !important;
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.home .ct-posts-shortcode .entries[data-layout="simple"] .entry-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--mmh-card-shadow-hover) !important;
}

.home .ct-posts-shortcode .entry-card .ct-media-container {
    border: 3px solid var(--mmh-accent);
    background: var(--mmh-accent);
}

.home .ct-posts-shortcode .entry-card .entry-title {
    color: var(--mmh-ink);
}

.home .ct-posts-shortcode .entry-card .entry-excerpt {
    color: var(--mmh-muted);
}

.home .ct-posts-shortcode .entry-meta [data-type="pill"] a,
.home .ct-posts-shortcode .entry-meta .meta-categories[data-type="pill"] a {
    font-weight: 700;
    letter-spacing: 0.01em;
    border-radius: 4px;
}

/* Footer */
#footer.ct-footer {
    background: var(--mmh-soft-bg);
}

#footer .ct-footer [data-row*="middle"] > div,
#footer [data-row*="middle"] > div {
    align-items: flex-start;
    --grid-template-columns: minmax(120px, 0.8fr) minmax(150px, 0.85fr) minmax(190px, 1fr) minmax(280px, 1.35fr);
    grid-template-columns: minmax(120px, 0.8fr) minmax(150px, 0.85fr) minmax(190px, 1fr) minmax(280px, 1.35fr) !important;
    column-gap: clamp(36px, 5vw, 72px);
}

#footer [data-column^="widget-area"] .ct-widget {
    margin-bottom: 0;
}

#footer [data-column="widget-area-1"] img {
    max-width: 92px;
    height: auto;
}

#footer .widget-title {
    margin-bottom: 16px;
    color: var(--mmh-ink);
    font-weight: 800;
}

#footer .textwidget,
#footer .textwidget p,
#footer .textwidget li,
#footer .wp-block-group {
    color: var(--mmh-muted);
    line-height: 1.75;
}

#footer .textwidget ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

#footer .textwidget li {
    white-space: nowrap;
}

#footer [data-column="widget-area-4"] .textwidget {
    max-width: 320px;
}

#footer [data-column="widget-area-4"] a {
    overflow-wrap: normal;
    word-break: normal;
}

#footer a {
    text-decoration: none;
}

#footer a:hover {
    color: var(--mmh-accent);
}

#footer [data-row*="bottom"] {
    color: rgba(90, 90, 90, 0.82);
}

@media (max-width: 999.98px) {
    .home .elementor-1142 .elementor-element.elementor-element-b460453 {
        box-shadow: 0 18px 55px rgba(24, 32, 48, 0.12);
        --padding-top: 120px;
        --padding-bottom: 56px;
    }

    .home .elementor-1142 .elementor-element.elementor-element-88c46f2 .elementor-heading-title::after {
        width: 56px;
    }

    .home .mmh-home-cards {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .home .elementor-element.elementor-element-mmhfc00 {
        --margin-top: 24px !important;
        --margin-bottom: 36px !important;
    }

    .home .mmh-home-card {
        min-height: 96px;
        padding: 18px 20px;
    }

    .home .mmh-hero-tag {
        min-height: 38px;
        padding: 7px 14px;
        font-size: 13px;
    }

	.home .elementor-1142 .elementor-element.elementor-element-352098f {
		--padding-bottom: 40px;
		padding-bottom: 40px !important;
	}

	.home .elementor-1142 .elementor-element.elementor-element-352098f::before {
        inset: 15% -20% auto auto;
        width: 85vw;
        height: 85vw;
    }

    #footer .ct-footer [data-row*="middle"] > div,
    #footer [data-row*="middle"] > div {
        --grid-template-columns: repeat(2, minmax(0, 1fr));
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        column-gap: 48px;
        row-gap: 36px;
    }

    #footer [data-column="widget-area-1"] {
        grid-column: 1 / -1;
        text-align: center;
    }

    #footer [data-column="widget-area-1"] .ct-widget {
        display: flex;
        justify-content: center;
    }

    #footer [data-column="widget-area-4"] {
        grid-column: 1 / -1;
    }

    #footer [data-column="widget-area-4"] .textwidget {
        max-width: none;
    }
}

@media (max-width: 1199.98px) and (min-width: 768px) {
    .home .mmh-home-cards {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .home .mmh-home-card:last-child {
        grid-column: 1 / -1;
    }
}

@media (max-width: 1199.98px) and (min-width: 768px) {
    .home .elementor-1142 .elementor-element.elementor-element-88c46f2 .elementor-heading-title {
        font-size: clamp(38px, 4.25vw, 50px);
        line-height: 1.18;
    }

    .home .elementor-1142 .elementor-element.elementor-element-56b9cc9 {
        font-size: clamp(18px, 2vw, 22px);
    }
}

@media (max-width: 689.98px) {
    .home .elementor-1142 .elementor-element.elementor-element-b460453 {
        --padding-top: 92px;
        --padding-bottom: 48px;
        --padding-left: 20px;
        --padding-right: 20px;
    }

    .home .elementor-1142 .elementor-element.elementor-element-88c46f2 > .elementor-widget-container {
        margin-bottom: 14px !important;
    }

    .home .mmh-hero-tags {
        gap: 8px;
        justify-content: flex-start;
    }

    .home .mmh-hero-tag {
        min-height: 36px;
        padding: 6px 12px;
        font-size: 12px;
        white-space: nowrap;
    }

    .home .mmh-hero-tag__label {
        white-space: nowrap;
    }
}

@media (max-width: 689.98px) {
    .home .ct-posts-shortcode .entry-card .ct-media-container {
        border-width: 2px;
    }

    #footer [data-column="widget-area-1"] img {
        max-width: 76px;
    }

    #footer .ct-footer [data-row*="middle"] > div,
    #footer [data-row*="middle"] > div {
        --grid-template-columns: 1fr;
        grid-template-columns: 1fr !important;
        row-gap: 28px;
        text-align: center;
    }

    #footer [data-column^="widget-area"] {
        grid-column: auto;
    }

    #footer .textwidget li {
        white-space: normal;
    }

    #footer [data-column="widget-area-4"] a {
        overflow-wrap: anywhere;
    }
}
