:root {
    --td-bg: #f7f4f4;
    --td-text: #000000;
    --td-muted: rgba(0, 0, 0, 0.62);
    --td-card:  rgba(255, 0, 0, 0.06);
    --td-border: rgba(255, 0, 0, 0.22);
    --td-accent: #ff0000;
    --td-menu-panel: rgba(247, 244, 244, 0.88);
    --td-dropdown-bg: rgba(255, 255, 255, 0.92);
    --td-dropdown-border: rgba(0, 0, 0, 0.08);
    --td-control-bg: #050505;
    --td-control-color: #ffffff;
    --td-control-border: #050505;
}

html[data-theme="dark"] {
    --td-bg: #090909;
    --td-text: #ffffff;
    --td-muted: rgba(255, 255, 255, 0.72);
    --td-card: rgba(18, 18, 18, 0.82);
    --td-border: rgba(255, 0, 0, 0.32);
    --td-accent: #ff0000;
    --td-menu-panel: rgba(9, 9, 9, 0.78);
    --td-dropdown-bg: rgba(12, 12, 12, 0.92);
    --td-dropdown-border: rgba(255, 255, 255, 0.12);
    --td-control-bg: #050505;
    --td-control-color: #ffffff;
    --td-control-border: #ffffff;
}

html,
body {
    margin: 0;
    padding: 0;
    background:var(--td-bg) !important;
    color:var(--td-text) !important;
}

body {
    min-height: 100vh;
    background-image: none !important;
}

a {
    color: inherit;
    text-decoration: none;
}

/* Keep v1.2 stable behavior: sticky header does not create the top strip bug. */
.td-site-header {
    position: relative;
    top: 0;
    z-index: 9999;
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
}

/* Hide Astra generated headers if parent theme outputs any. */
.site-header,
.ast-primary-header-bar,
.ast-main-header-wrap,
.ast-mobile-header-wrap {
    display: none !important;
}

.td-header-inner {
    width: min(1200px, calc(100% - 48px));
    min-height: 108px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
    background: transparent !important;
}

.td-logo img,
.td-logo .custom-logo {
    max-height: 58px;
    width: auto;
    max-width: 160px;
    object-fit: contain;
    display: block;
}

.td-main-nav {
    flex: 1 1 auto;
    display: flex;
    justify-content: center;
}

.td-menu,
.td-mobile-menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

.td-menu {
    display: flex;
    align-items: center;
    gap: 38px;
}

.td-menu li {
    position: relative;
}

.td-menu a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    font-size: 16px;
    font-weight: 400;
    color: var(--td-text);
    text-decoration: none;
}

.td-menu a:hover,
.td-menu .current-menu-item > a,
.td-menu .current-menu-ancestor > a {
    color: var(--td-text);
}

.td-menu .menu-item-has-children > a::after {
    content: "";
    width: 6px;
    height: 6px;
    margin-left: 8px;
    border-right: 1.5px solid currentColor;
    border-bottom: 1.5px solid currentColor;
    transform: rotate(45deg) translateY(-2px);
}

/* Desktop dropdown */
.td-menu .sub-menu {
    position: absolute;
    top: calc(100% + 10px);
    left: 50%;
    transform: translateX(-50%) translateY(8px);
    min-width: 220px;
    padding: 10px;
    margin: 0;
    list-style: none;
    background: var(--td-dropdown-bg);
    border: 1px solid var(--td-dropdown-border);
    border-radius: 5px;
    box-shadow: 0 18px 44px rgba(0, 0, 0, 0.16);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.td-menu li:hover > .sub-menu,
.td-menu li:focus-within > .sub-menu {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateX(-50%) translateY(0);
}

.td-menu .sub-menu::before {
    content: "";
    position: absolute;
    top: -10px;
    left: 0;
    right: 0;
    height: 10px;
}

.td-menu .sub-menu a {
    width: 100%;
    min-height: auto;
    padding: 10px 12px;
    border-radius: 5px;
    color: var(--td-text);
    font-size: 14px;
    line-height: 1.25;
    white-space: nowrap;
}

.td-menu .sub-menu a:hover,
.td-menu .sub-menu .current-menu-item > a {
    background: rgba(255, 0, 0, 0.08);
    color: var(--td-accent);
}

.td-header-actions {
    display: flex;
    align-items: center;
    gap: 14px;
    flex: 0 0 auto;
}

/* Toggle: no hover, black pill, active icon gets white circle. */
.td-theme-toggle {
    width: 69px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 4px 7px;
    border: 0 !important;
    border-radius: 999px;
    background: #101010 !important;
    color: #ffffff !important;
    cursor: pointer;
    box-shadow: none !important;
    outline: none !important;
    line-height: 1;
}

.td-theme-toggle:hover,
.td-theme-toggle:focus,
.td-theme-toggle:active {
    background: #101010 !important;
    color: #ffffff !important;
    border: 0 !important;
    box-shadow: none !important;
    outline: none !important;
    transform: none !important;
}

.td-theme-toggle span {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    color: #ffffff;
    flex: 0 0 24px;
}

.td-theme-toggle svg {
    display: block;
}

/* Active icon white circle */
html:not([data-theme="dark"]) .td-sun,
html[data-theme="light"] .td-sun,
html[data-theme="dark"] .td-moon {
    background: #ffffff;
    color: #050505;
}

html:not([data-theme="dark"]) .td-moon,
html[data-theme="light"] .td-moon,
html[data-theme="dark"] .td-sun {
    background: transparent;
    color: #ffffff;
}

/* Mobile toggle size */
@media (max-width: 480px) {
    .td-theme-toggle {
        width: 34px;
        height: 15px;
        padding: 2px 3px;
        gap: 2px;
    }

    .td-theme-toggle span {
        width: 10px;
        height: 10px;
        flex-basis: 10px;
    }

    .td-theme-toggle svg {
        width: 7px;
        height: 7px;
    }
}

/* Hamburger: transparent square, color follows mode. */
.td-mobile-toggle {
    width: 31px;
    height: 31px;
    display: none;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 4px;
    border: 1.5px solid var(--td-text) !important;
    border-radius: 6px;
    background: transparent !important;
    color: var(--td-text) !important;
    cursor: pointer;
    padding: 0;
    box-shadow: none !important;
    outline: none !important;
}

.td-mobile-toggle:hover,
.td-mobile-toggle:focus,
.td-mobile-toggle:active {
    background: transparent !important;
    color: var(--td-text) !important;
    border-color: var(--td-text) !important;
    box-shadow: none !important;
    outline: none !important;
    transform: none !important;
}

.td-mobile-toggle span {
    width: 15px;
    height: 1.5px;
    background: currentColor;
    border-radius: 5px;
    transform-origin: center;
}

body.td-menu-open .td-mobile-toggle span:nth-child(1) {
    transform: translateY(5.5px) rotate(45deg);
}

body.td-menu-open .td-mobile-toggle span:nth-child(2) {
    opacity: 0;
}

body.td-menu-open .td-mobile-toggle span:nth-child(3) {
    transform: translateY(-5.5px) rotate(-45deg);
}

.td-mobile-nav {
    display: none;
}

.td-site-main {
    width: min(1200px, calc(100% - 48px));
    margin: 0 auto;
    min-height: 60vh;
}

/* Elementor utility classes */
.td-section {
    background: transparent !important;
    color: var(--td-text) !important;
}

.td-card {
    background: var(--td-card) !important;
    border: 1px solid var(--td-border) !important;
}

.td-heading {
    color: var(--td-text) !important;
}

.td-heading span,
.td-accent {
    color: var(--td-accent) !important;
}

.td-muted {
    color: var(--td-muted) !important;
}

.td-button {
    border: 1px solid var(--td-accent) !important;
    color: var(--td-text) !important;
    background: rgba(255, 0, 0, 0.12) !important;
}

/* Keep only useful color transitions. No transform/hover movement. */
body,
.td-card,
.td-section,
.td-heading,
.td-muted,
.td-button,
.td-mobile-nav {
    transition: background-color .3s ease, color .3s ease, border-color .3s ease;
}

@media (max-width: 921px) {
    .td-header-inner {
        min-height: 86px;
        width: min(100% - 32px, 1200px);
        gap: 18px;
    }

    .td-logo img,
    .td-logo .custom-logo {
        max-height: 54px;
        max-width: 140px;
    }

    .td-main-nav {
        display: none;
    }

    .td-mobile-toggle {
        display: inline-flex;
    }

    .td-mobile-nav {
        display: block;
        max-height: 0;
        overflow: hidden;
        background: transparent !important;
        border: 0 !important;
        box-shadow: none !important;
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
    }

    body.td-menu-open .td-mobile-nav {
        max-height: 80vh;
    }

    .td-mobile-menu {
        width: min(100% - 32px, 1200px);
        margin: 0 auto;
        padding: 10px 0 22px;
        background: var(--td-dropdown-bg);
        border: 1px solid var(--td-dropdown-border);
        border-radius: 14px;
        backdrop-filter: blur(16px);
        -webkit-backdrop-filter: blur(16px);
        box-shadow: 0 18px 44px rgba(0, 0, 0, 0.14);
    }

    .td-mobile-menu li {
        list-style: none;
        margin: 0;
    }

    .td-mobile-menu a {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 12px 18px;
        color: var(--td-text);
        font-size: 16px;
        line-height: 1.35;
        border-bottom: 1px solid rgba(128, 128, 128, .16);
    }

    .td-mobile-menu > li:last-child > a {
        border-bottom: 0;
    }

    .td-mobile-menu .menu-item-has-children > a::after {
        content: "";
        width: 6px;
        height: 6px;
        margin-left: 10px;
        border-right: 1.5px solid currentColor;
        border-bottom: 1.5px solid currentColor;
        transform: rotate(45deg) translateY(-2px);
    }

    .td-mobile-menu .sub-menu {
        display: block;
        margin: 0;
        padding: 6px 0 8px 16px;
        list-style: none;
        background: rgba(128, 128, 128, 0.06);
        border-bottom: 1px solid rgba(128, 128, 128, .12);
    }

    .td-mobile-menu .sub-menu a {
        padding: 9px 18px;
        font-size: 14px;
        color: var(--td-muted);
        border-bottom: 0;
    }
}

@media (max-width: 480px) {
    .td-header-inner {
        min-height: 74px;
        width: calc(100% - 22px);
        gap: 10px;
    }

    .td-logo img,
    .td-logo .custom-logo {
        max-height: 44px;
        max-width: 92px;
    }

    .td-header-actions {
        gap: 8px;
    }

    .td-theme-toggle {
        width: 34px;
        height: 15px;
        padding: 2px 3px;
        gap: 2px;
    }

    .td-theme-toggle span {
        width: 10px;
        height: 10px;
        font-size: 7px;
    }

    .td-mobile-toggle {
        width: 18px;
        height: 18px;
        border-width: 1px !important;
        border-radius: 3px;
        gap: 2px;
    }

    .td-mobile-toggle span {
        width: 9px;
        height: 1px;
    }

    body.td-menu-open .td-mobile-toggle span:nth-child(1) {
        transform: translateY(3px) rotate(45deg);
    }

    body.td-menu-open .td-mobile-toggle span:nth-child(3) {
        transform: translateY(-3px) rotate(-45deg);
    }

    .td-mobile-menu {
        width: calc(100% - 22px);
        padding: 8px 0 14px;
    }

    .td-mobile-menu a {
        padding: 10px 14px;
        font-size: 14px;
    }

    .td-mobile-menu .sub-menu a {
        font-size: 13px;
        padding: 8px 14px;
    }
}

/* Light/Dark Logo */
.td-logo-img {
    max-height: 58px;
    width: auto;
    max-width: 160px;
    object-fit: contain;
    display: block;
}

.td-logo-dark {
    display: none;
}

html[data-theme="dark"] .td-logo-light {
    display: none;
}

html[data-theme="dark"] .td-logo-dark {
    display: block;
}

html:not([data-theme="dark"]) .td-logo-light,
html[data-theme="light"] .td-logo-light {
    display: block;
}

html:not([data-theme="dark"]) .td-logo-dark,
html[data-theme="light"] .td-logo-dark {
    display: none;
}

/* Mobile submenu closed by default */
@media (max-width: 921px) {
    .td-mobile-menu .menu-item-has-children > .sub-menu {
        display: none;
    }

    .td-mobile-menu .menu-item-has-children.td-submenu-open > .sub-menu {
        display: block;
    }

    .td-mobile-menu .menu-item-has-children.td-submenu-open > a::after {
        transform: rotate(-135deg) translateY(-1px);
    }
}

@media (max-width: 480px) {
    .td-logo-img {
        max-height: 44px;
        max-width: 92px;
    }
}

/*************************************** Footer **********************************/

.td-site-footer {
    background: transparent !important;
    border: 0 !important;
    padding: 42px 0 30px;
    color: var(--td-text);
}

.td-footer-inner {
    width: min(1200px, calc(100% - 96px));
    margin: 0 auto;
    display: block;
}

.td-site-footer,
.td-footer-menu,
.td-footer-email,
.td-footer-address,
.td-footer-social {
    font-family: "Nunito", sans-serif;
}

.td-footer-title,
.td-footer-brand {
    font-family: "Tomorrow", sans-serif;
}

/* ====================================
   FOOTER ROW 1
==================================== */

.td-footer-row-top {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 18px;
    padding-bottom: 30px;
}

.td-footer-row-top::after {
    content: "";
    grid-column: 2;
    grid-row: 1;
    height: 1px;
    background: rgba(130, 130, 130, 0.26);
}

/* ====================================
   FOOTER TITLE
==================================== */

.td-footer-title {
    margin: 0;
    font-size: clamp(15px, 4.2vw, 60px);
    line-height: 1;
    font-weight: 800;
    color: var(--td-text);
    white-space: nowrap;
    display: flex;
    align-items: center;
}


/* ====================================
   FOOTER WORD ROLLER
==================================== */

.td-footer-word-roller {
    display: inline-flex;
    height: 1em;
    width: auto;
    overflow: hidden;
    margin: 0 10px;
    vertical-align: middle;
    flex-shrink: 0;
    transition: width 0.3s ease;
}


/* ====================================
   WORD LIST
==================================== */

.td-footer-word-list {
    display: flex;
    flex-direction: column;
    margin: 0;
    padding: 0;
    flex-shrink: 0;
    transform: translateY(0);
    will-change: transform;
}

/* ====================================
   WORD
==================================== */

.td-footer-word-list span {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    height: 1em;
    line-height: 1em;
    white-space: nowrap;
    color: var(--td-accent);
    font-weight: 800;
    flex-shrink: 0;
}

/* Row 2 */
.td-footer-row-menu {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 22px;
}

.td-footer-menu {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 16px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.td-footer-menu a {
    font-size: clamp(8px, 0.85vw, 12px);
    font-weight: 600;
    color: var(--td-text);
    text-decoration: none;
    white-space: nowrap;
}

/* Row 3 */
.td-footer-row-contact {
    display: grid;
    grid-template-columns: auto minmax(140px, 1fr) auto minmax(140px, 1fr) auto;
    align-items: center;
    gap: 14px;
    padding-bottom: 42px;
}

.td-footer-row-contact::before,
.td-footer-row-contact::after {
    content: "";
    display: block;
    width: 100%;
    height: 1px;
    background: rgba(130, 130, 130, 0.32);
    align-self: center;
}

.td-footer-row-contact::before {
    grid-column: 2;
    grid-row: 1;
}

.td-footer-row-contact::after {
    grid-column: 4;
    grid-row: 1;
}

.td-footer-social {
    grid-column: 1;
    grid-row: 1;
    display: flex;
    align-items: center;
    gap: 7px;
    white-space: nowrap;
}

.td-footer-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--td-text);
    text-decoration: none;
    line-height: 1;
}

.td-footer-social svg {
    height: 16px;
    display: block;
    fill: currentColor;
}

.td-footer-email {
    grid-column: 3;
    grid-row: 1;
    display: block;
    font-size: clamp(8px, 1vw, 14px);
    font-weight: 400;
    color: var(--td-text);
    text-decoration: none;
    white-space: nowrap;
    line-height: 1;
}

.td-footer-address {
    grid-column: 5;
    grid-row: 1;
    margin: 0;
    font-size: clamp(8px, 0.85vw, 12px);
    font-weight: 400;
    line-height: 1.35;
    color: var(--td-muted);
    text-align: left;
    white-space: nowrap;
}

/* Row 4 */
.td-footer-brand {
    margin: 30px 0 0;
    font-size: clamp(50px, 11.8vw, 166px);
    line-height: 0.82;
    font-weight: 800;
    letter-spacing: -7px;
    color: rgba(0, 0, 0, 0.42);
}

html[data-theme="dark"] .td-footer-brand {
    color: rgba(255, 255, 255, 0.42);
}

.td-footer-brand span {
    color: #ff0000;
    
}

/* Subscribe Button â€” Updated Figma Style */

.td-animated-btn{
    position:relative;
    display:inline-flex;
    align-items:center;
    justify-content:center;

    padding:9px 28px;

    border-radius:999px;
    overflow:hidden;
    isolation:isolate;
    text-decoration:none;
    border:0;

    font-family:"Nunito",sans-serif;
    font-size:clamp(8px,1vw,18px);
    font-weight:700;
    line-height:1;

    transition:none;

    color:#ffffff;

    background:
        linear-gradient(
            90deg,
            rgba(92,0,0,.78) 0%,
            rgba(132,48,48,.58) 42%,
            rgba(165,165,165,.70) 100%
        );
}

/* Light mode button */

html:not([data-theme="dark"]) .td-animated-btn,
html[data-theme="light"] .td-animated-btn{

    color:#000000;

    background:
        linear-gradient(
            90deg,
            rgba(255,210,206,.95) 0%,
            rgba(255,226,223,.82) 45%,
            rgba(255,255,255,.88) 100%
        );
}

/* animated moving border */

.td-animated-btn::before{

    content:"";
    position:absolute;
    inset:0;

    padding:2px;
    border-radius:inherit;

    background:
        conic-gradient(
            from var(--td-btn-angle),
            #ffffff 0deg,
            #ff2b2b 70deg,
            #ff0000 140deg,
            #ffffff 220deg,
            rgba(255,255,255,.25) 285deg,
            #ffffff 360deg
        );

    mask:
        linear-gradient(#000 0 0) content-box,
        linear-gradient(#000 0 0);

    -webkit-mask-composite:xor;
    mask-composite:exclude;

    animation:td-btn-circle-light 2.3s linear infinite;

    z-index:-1;
}

/* no hover animation */

.td-animated-btn:hover,
.td-animated-btn:focus,
.td-animated-btn:active{

    transform:none;
    outline:none;
    box-shadow:none;
}

html[data-theme="dark"] .td-animated-btn:hover,
html[data-theme="dark"] .td-animated-btn:focus,
html[data-theme="dark"] .td-animated-btn:active{
    color:#ffffff;
}

html:not([data-theme="dark"]) .td-animated-btn:hover,
html[data-theme="light"] .td-animated-btn:hover{
    color:#000000;
}

@property --td-btn-angle{
    syntax:"<angle>";
    initial-value:0deg;
    inherits:false;
}

@keyframes td-btn-circle-light{
    to{
        --td-btn-angle:360deg;
    }
}

/* Tablet */
@media (max-width: 921px) {
    .td-footer-inner {
        width: min(100% - 56px, 900px);
    }

    .td-footer-row-top {
        padding-bottom: 24px;
    }

    .td-footer-row-menu {
        margin-bottom: 16px;
    }

    .td-footer-menu {
        gap: 9px;
    }

    .td-footer-row-contact {
        grid-template-columns: auto minmax(60px, 1fr) auto minmax(60px, 1fr) auto;
        gap: 10px;
        padding-bottom: 28px;
    }

    .td-footer-social svg {
        width: 10px;
        height: 10px;
    }

    .td-footer-brand {
        letter-spacing: -2px;
    }
}

/* Mobile */
@media (max-width: 600px) {

    .td-footer-inner{
        width:calc(100% - 32px);
    }

    .td-footer-row-contact{

        display:grid;

        grid-template-columns:
            auto
            minmax(20px,1fr)
            auto
            minmax(20px,1fr)
            auto;

        align-items:center;
        gap:8px;

        padding-bottom:20px;
    }

    /* KEEP divider lines visible */

    .td-footer-row-contact::before,
    .td-footer-row-contact::after{
        display:block;
        height:1px;
        width:100%;
        background:rgba(130,130,130,.32);
        align-self:center;
    }

    .td-footer-row-contact::before{
        grid-column:2;
        grid-row:1;
    }

    .td-footer-row-contact::after{
        grid-column:4;
        grid-row:1;
    }

    .td-footer-social{
        grid-column:1;
        grid-row:1;
        gap:4px;
    }

    .td-footer-social svg{
        width:8px;
        height:8px;
    }

    .td-footer-email{
        grid-column:3;
        grid-row:1;
        white-space:nowrap;
        text-align:center;
    }

    .td-footer-address{
        grid-column:5;
        grid-row:1;
        line-height:1.35;
        white-space:normal;
        text-align:left;
        max-width:95px;
    }

}

/* Keyboard focus visibility */
.td-theme-toggle:focus-visible,
.td-mobile-toggle:focus-visible,
.td-animated-btn:focus-visible,
.td-products-next:focus-visible,
.td-products-prev:focus-visible,
.td-prev-btn:focus-visible,
.td-next-btn:focus-visible,
.td-service-tab:focus-visible,
.td-home-service-tab:focus-visible,
.td-main-nav a:focus-visible,
.td-mobile-nav a:focus-visible,
.td-footer-menu a:focus-visible,
.td-footer-social a:focus-visible,
.td-footer-email:focus-visible,
button:focus-visible {
    outline: 2px solid var(--td-accent) !important;
    outline-offset: 3px;
}