/* Project-specific narrow overrides. Keep this file small to avoid overriding theme styles. */

@media (max-width: 1023px) {
    .page-home .hero-tablet-offset {
        padding-top: 0 !important;
    }

    .page-home .hero-tablet-image {
        height: auto !important;
        max-height: 720px;
    }
}

@media (max-width: 639px) {
    .page-home .hero-mobile-offset {
        margin-top: 0 !important;
    }

    .page-home .hero-mobile-offset .hero-mobile-inner {
        padding-top: 0 !important;
    }
}

/* Header shell overrides: keep a single rounded menu bar like the reference */
.menu-shell {
    width: 100% !important;
    left: 0 !important;
    transform: none !important;
    position: fixed !important;
    top: 0 !important;
    right: 0 !important;
    margin-top: 0 !important;
    z-index: 1200 !important;
    transition: margin-top 0.2s ease, opacity 0.2s ease;
    will-change: width, left, transform;
}

.menu-shell::before {
    content: "";
    position: absolute;
    width: 100vw;
    inset: 0 auto 0 50%;
    transform: translateX(-50%);
    background: rgba(246, 248, 243, 0.94);
    border-bottom: 1px solid rgba(24, 32, 20, 0.08);
    border-left: 0;
    border-right: 0;
    border-top: 0;
    border-radius: 0;
    box-shadow: 0 10px 30px rgba(19, 28, 12, 0.12);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: background-color 0.22s ease,
        box-shadow 0.22s ease,
        border-color 0.22s ease,
        border-radius 0.22s ease,
        opacity 0.22s ease;
    z-index: -1;
}

.menu-shell .main-bar-wraper,
.menu-shell .main-bar {
    width: 100% !important;
}

.menu-shell .container {
    width: 100% !important;
}

.menu-shell .container::before {
    display: none !important;
}

.menu-shell .navbar-nav {
    display: flex !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
}

.menu-shell .navbar-nav > li {
    white-space: nowrap;
}

.menu-shell .navbar-nav > li > a {
    padding-left: 16px !important;
    padding-right: 16px !important;
}

.menu-shell .extra-nav .widget-content a {
    white-space: nowrap;
}

.menu-shell .extra-nav .btn {
    min-height: 42px !important;
    padding: 0.55rem 1rem !important;
    font-size: 15px !important;
}

/* Scroll state: keep header visible, full-width and glass-like */
.menu-shell.is-fixed {
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    transform: none !important;
    margin-top: 0 !important;
    z-index: 1200 !important;
}

.menu-shell.is-fixed::before {
    width: 100vw;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(246, 248, 243, 0.94);
    border-bottom: 1px solid rgba(24, 32, 20, 0.08);
    border-left: 0;
    border-right: 0;
    border-top: 0;
    box-shadow: 0 10px 30px rgba(19, 28, 12, 0.12);
    border-radius: 0;
}

.menu-shell.is-fixed:not(.sticky-no) .main-bar {
    position: relative !important;
    left: 0 !important;
    right: 0 !important;
    top: 0 !important;
    width: 100% !important;
    background: transparent !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    border-bottom: 0 !important;
    box-shadow: none !important;
    z-index: 1200;
    animation: none !important;
    opacity: 1 !important;
    transform: translateY(0) !important;
    margin-top: 0 !important;
}

.sticky-header-wrapper.is-fixed:not(.sticky-no) .main-bar {
    animation: none !important;
    margin-top: 0 !important;
}

.menu-shell .main-bar {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.2s ease, transform 0.2s ease;
}

/* keep disabled: legacy slide-down animation causes perceived disappearance */

/* Inner pages: prevent header overlap and keep first banner readable */
@media (min-width: 1024px) {
    .page-inner .page-content {
        padding-top: 118px;
    }
}

@media (max-width: 1023px) {
    .page-inner .page-content {
        padding-top: 84px;
    }
}

/* Fallback responsive widths for browsers that ignore media-range syntax in style.css */
@media (min-width: 576px) {
    .sm\:w-1\/2 {
        width: 50% !important;
    }
    .sm\:w-1\/3 {
        width: 33.333333% !important;
    }
    .sm\:w-2\/3 {
        width: 66.666667% !important;
    }
}

@media (min-width: 768px) {
    .md\:w-1\/2 {
        width: 50% !important;
    }
    .md\:w-1\/3 {
        width: 33.333333% !important;
    }
    .md\:w-1\/4 {
        width: 25% !important;
    }
    .md\:w-2\/3 {
        width: 66.666667% !important;
    }
}

@media (min-width: 992px) {
    .lg\:w-1\/2 {
        width: 50% !important;
    }
    .lg\:w-2\/3 {
        width: 66.666667% !important;
    }
    .lg\:w-5\/12 {
        width: 41.666667% !important;
    }
    .lg\:w-7\/12 {
        width: 58.333333% !important;
    }
}

@media (min-width: 1199px) {
    .xl\:w-1\/6 {
        width: 16.666667% !important;
    }
    .xl\:w-1\/4 {
        width: 25% !important;
    }
    .xl\:w-1\/3 {
        width: 33.333333% !important;
    }
    .xl\:w-1\/2 {
        width: 50% !important;
    }
    .xl\:w-2\/3 {
        width: 66.666667% !important;
    }
}

/* Pricing page: keep footer visible above decorative absolute layers */
.page-pricing footer {
    position: relative;
    z-index: 40;
    display: block !important;
}

/* Footer layout fallback: map and demo form side-by-side on all pages */
@media (min-width: 992px) {
    footer > .container-fluid > .row > div:first-child {
        width: 66.666667% !important;
        flex: 0 0 66.666667% !important;
        max-width: 66.666667% !important;
    }

    footer > .container-fluid > .row > div:last-child {
        width: 33.333333% !important;
        flex: 0 0 33.333333% !important;
        max-width: 33.333333% !important;
    }
}

/* Home hero desktop alignment fixes */
@media (min-width: 1024px) {
    .page-home .hero-mobile-offset {
        margin-top: 0 !important;
    }

    .page-home .hero-mobile-offset .hero-mobile-inner {
        padding-top: 18px !important;
    }

    .page-home .hero-mobile-inner .row {
        align-items: center !important;
    }

    .page-home .hero-mobile-inner .row > div:first-child {
        width: 50% !important;
        flex: 0 0 50% !important;
    }

    .page-home .hero-mobile-inner .row > div:last-child {
        width: 50% !important;
        flex: 0 0 50% !important;
    }

    .page-home .hero-copy {
        margin-top: 0;
        max-width: 680px;
    }

    .page-home .hero-subtitle {
        display: inline-block !important;
        width: auto !important;
        max-width: max-content !important;
        top: 0 !important;
        margin-bottom: 20px !important;
    }

    .page-home .hero-subtitle::after {
        width: 100% !important;
        left: 0 !important;
        right: auto !important;
        background-size: 100% auto !important;
    }

    .page-home .hero-tablet-image {
        height: auto !important;
        max-height: 700px !important;
        object-fit: contain !important;
        object-position: bottom center !important;
    }

    .page-home .hero-visual {
        width: min(620px, 100%) !important;
        margin-left: auto !important;
        margin-right: auto !important;
    }
}

@media (min-width: 640px) and (max-width: 1023px) {
    .page-home .hero-mobile-offset .hero-mobile-inner {
        padding-top: 0 !important;
    }
}

/* Premium UI pass: unify tone, spacing, and interaction quality */
:root {
    --premium-bg: #f6f8f3;
    --premium-surface: #ffffff;
    --premium-ink: #182014;
    --premium-muted: #5e6b56;
    --premium-primary: #5d8f1e;
    --premium-primary-dark: #476f15;
    --premium-border: #dce4d2;
    --premium-shadow-sm: 0 8px 20px rgba(24, 32, 20, 0.08);
    --premium-shadow-md: 0 18px 44px rgba(24, 32, 20, 0.12);
    --radius-2lg: 3px;
    --radius-xxl: 4px;
    --radius-2xxl: 6px;
    --radius-3xl: 8px;
    --btn-radius: 4px;
}

body {
    letter-spacing: 0.01em;
    color: var(--premium-muted);
}

h1,
h2,
h3,
h4 {
    letter-spacing: -0.01em;
}

.btn {
    font-weight: 600;
    letter-spacing: 0.02em;
    transition: transform 0.22s ease, box-shadow 0.22s ease, background-color 0.22s ease, border-color 0.22s ease;
}

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

.btn-primary {
    background: var(--premium-primary);
    border-color: var(--premium-primary);
    box-shadow: 0 10px 22px rgba(93, 143, 30, 0.28);
}

.btn-primary:hover {
    background: var(--premium-primary-dark);
    border-color: var(--premium-primary-dark);
}

.page-home .hero-mobile-offset {
    background: linear-gradient(120deg, #f4f8eb 0%, #f7f9f3 52%, #eef4df 100%) !important;
}

.page-home .hero-mobile-offset::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 82% 28%, rgba(93, 143, 30, 0.14), transparent 48%);
    pointer-events: none;
}

.page-home .hero-copy {
    max-width: 640px;
}

.page-home .hero-subtitle {
    font-family: "Montserrat", "Poppins", sans-serif !important;
    font-size: 13px !important;
    line-height: 1.2;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--premium-primary) !important;
    margin-bottom: 16px !important;
}

.page-home .hero-subtitle::before,
.page-home .hero-subtitle::after {
    display: none !important;
}

.page-home .hero-copy h1 {
    color: var(--premium-ink) !important;
    font-size: clamp(28px, 4vw, 50px) !important;
    line-height: 1.06;
    margin-bottom: 16px !important;
}

.page-home .hero-copy p {
    color: var(--premium-muted) !important;
    max-width: 58ch;
}

.page-home .hero-mobile-offset > .absolute.animate-move4,
.page-home .hero-mobile-offset > .h-full.w-20 {
    display: none !important;
}

.menu-shell.is-fixed:not(.sticky-no) .main-bar {
    background: transparent !important;
    border-bottom: 0 !important;
    box-shadow: none !important;
}

.menu-shell .navbar-nav > li > a {
    color: var(--premium-ink) !important;
    font-size: 15px !important;
}

.page-home .box-hover {
    border: 1px solid var(--premium-border);
    box-shadow: var(--premium-shadow-sm);
}

.page-home .box-hover:hover {
    transform: translateY(-4px);
    box-shadow: var(--premium-shadow-md);
}

.page-home section.bg-light {
    background: var(--premium-bg) !important;
}

.page-home .wow {
    animation-duration: 0.45s !important;
}

@media (max-width: 991px) {
    .page-home .hero-copy h1 {
        font-size: clamp(24px, 8vw, 38px) !important;
    }
}

/* UI standardization: button sizing + consistent rounded corners */
:root {
    --ui-radius-sm: 3px;
    --ui-radius-md: 4px;
    --ui-radius-lg: 6px;
}

body.page-home .rounded-2lg,
body.page-inner .rounded-2lg,
body.page-pricing .rounded-2lg {
    border-radius: 3px !important;
}

body.page-home .rounded-2xl,
body.page-inner .rounded-2xl,
body.page-pricing .rounded-2xl {
    border-radius: 4px !important;
}

body.page-home .rounded-xxl,
body.page-inner .rounded-xxl,
body.page-pricing .rounded-xxl {
    border-radius: 4px !important;
}

body.page-home .rounded-2xxl,
body.page-home .rounded-3xl,
body.page-inner .rounded-2xxl,
body.page-inner .rounded-3xl,
body.page-pricing .rounded-2xxl,
body.page-pricing .rounded-3xl {
    border-radius: 6px !important;
}

body.page-home .btn-square,
body.page-inner .btn-square,
body.page-pricing .btn-square {
    border-radius: 4px !important;
}

body.page-home .rounded-full,
body.page-inner .rounded-full,
body.page-pricing .rounded-full {
    border-radius: 6px !important;
}

.btn:not(.btn-square) {
    min-height: 48px;
    padding: 0.7rem 1.4rem;
    border-radius: var(--ui-radius-md) !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    line-height: 1.1;
}

.btn.btn-sm:not(.btn-square) {
    min-height: 40px;
    padding: 0.5rem 1rem;
    border-radius: var(--ui-radius-sm) !important;
}

.btn.btn-lg:not(.btn-square) {
    min-height: 52px;
    padding: 0.8rem 1.5rem;
    border-radius: var(--ui-radius-md) !important;
}

.btn.w-full {
    width: auto !important;
}

.box-hover,
.icon-bx-wraper,
.pricingtable-wrapper,
.pricingtable-inner,
.widget_about,
.widget_services,
.widget-address,
.dialog-content {
    border-radius: var(--ui-radius-lg) !important;
}

input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="color"]),
select,
textarea,
.form-control,
.custom-select .select-selected {
    border-radius: var(--ui-radius-md) !important;
}

input[type="checkbox"],
input[type="radio"] {
    border-radius: 6px;
}

.page-home .home-hero-checks {
    display: grid;
    gap: 10px;
    margin: 0 0 24px;
    padding: 0;
    list-style: none;
    color: var(--color-secondary);
}

.page-home .home-hero-checks li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    line-height: 1.5;
}

.page-home .home-hero-checks i,
.home-proof-strip__item i {
    color: var(--color-primary);
    margin-top: 3px;
}

.page-home .home-hero-note {
    margin: 18px 0 0;
    color: rgba(35, 40, 28, 0.72);
    font-size: 14px;
    line-height: 1.6;
    max-width: 640px;
}

.home-proof-strip {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
    padding: 20px 0 10px;
}

.home-proof-strip__item,
.home-step-card,
.home-module-card,
.home-audience-card {
    border: 1px solid rgba(35, 40, 28, 0.08);
    background: #fff;
    box-shadow: 0 10px 30px rgba(21, 34, 12, 0.05);
}

.home-proof-strip__item {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    padding: 18px 20px;
    border-radius: 4px;
    color: var(--color-secondary);
    font-size: 15px;
    line-height: 1.5;
}

.home-step-card,
.home-module-card,
.home-audience-card {
    height: 100%;
    padding: 28px;
    border-radius: 6px;
}

.home-step-card__step,
.home-section-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 14px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--color-primary);
}

.home-module-card__icon {
    width: 52px;
    height: 52px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    background: rgba(131, 197, 80, 0.14);
    color: var(--color-primary);
    font-size: 20px;
    margin-bottom: 16px;
}

.home-module-card__badge {
    display: inline-block;
    margin-bottom: 12px;
    color: var(--color-primary);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.home-audience-points {
    margin: 0;
    padding-left: 18px;
    color: var(--color-secondary);
}

.home-audience-points li + li {
    margin-top: 10px;
}

.home-pricing-callout {
    padding: 40px;
    border-radius: 6px;
    background: linear-gradient(135deg, #1f2a17 0%, #2b3621 100%);
    box-shadow: 0 20px 50px rgba(17, 27, 10, 0.16);
}

.home-pricing-callout__actions {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.home-pricing-callout__note {
    margin: 16px 0 0;
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
}

.home-pricing-callout__note a {
    color: inherit;
    text-decoration: underline;
}

@media (max-width: 1199px) {
    .home-proof-strip {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 767px) {
    .home-proof-strip {
        grid-template-columns: 1fr;
    }

    .home-pricing-callout {
        padding: 28px;
    }

    .home-step-card,
    .home-module-card,
    .home-audience-card {
        padding: 22px;
    }
}
