/* Shared components: loaded by the 3D home page and by every inner page.
   Everything is namespaced (.td-*) so it never collides with the 3D engine styles. */
:root {
    --td-bg: #050806;
    --td-bg-2: #0a110d;
    --td-card: rgba(255, 255, 255, 0.035);
    --td-card-hover: rgba(255, 255, 255, 0.06);
    --td-line: rgba(255, 255, 255, 0.09);
    --td-text: #f2f6f3;
    --td-muted: #a4aea8;
    --td-green: #22e05a;
    --td-green-2: #8dc63f;
    --td-green-deep: #0f7a3c;
    --td-radius: 18px;
}

/* ---- Buttons ---- */
.td-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 10px;
    padding: 13px 22px; border-radius: 999px;
    font: 600 14px/1 'Space Grotesk', system-ui, sans-serif; letter-spacing: 0.01em;
    text-decoration: none; white-space: nowrap;
    transition: transform .25s ease, background .25s ease, border-color .25s ease, color .25s ease, box-shadow .25s ease;
}
.td-btn-primary { background: var(--td-green); color: #03140a; box-shadow: 0 0 0 0 rgba(34, 224, 90, 0); }
.td-btn-primary:hover { transform: translateY(-1px); box-shadow: 0 8px 30px rgba(34, 224, 90, 0.28); }
.td-btn-ghost { border: 1px solid rgba(255, 255, 255, 0.22); color: var(--td-text); background: rgba(255, 255, 255, 0.02); }
.td-btn-ghost:hover { border-color: rgba(255, 255, 255, 0.6); background: rgba(255, 255, 255, 0.06); }
.td-btn .arrow { font-size: 15px; line-height: 1; }

/* ---- Logo ---- */
.td-logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.td-logo img { display: block; width: auto; }
.td-logo .logo-mark { height: 38px; }
.td-logo .logo-text { height: 14px; }

/* ---- Menu overlay (home + inner pages) ---- */
.td-menu-btn {
    display: inline-flex; align-items: center; gap: 10px;
    padding: 9px 16px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, 0.22);
    background: rgba(255, 255, 255, 0.03); color: #fff;
    font: 500 12px/1 'Space Grotesk', sans-serif; letter-spacing: 0.04em;
}
.td-menu-btn:hover { border-color: rgba(255, 255, 255, 0.6); }
.td-burger { position: relative; width: 14px; height: 9px; display: inline-block; }
.td-burger::before, .td-burger::after { content: ""; position: absolute; left: 0; right: 0; height: 1.5px; background: currentColor; border-radius: 2px; }
.td-burger::before { top: 0; }
.td-burger::after { bottom: 0; }

.td-menu {
    position: fixed; inset: 0; z-index: 9500;
    display: grid; place-items: center; padding: 90px 24px 40px; overflow-y: auto;
    background: rgba(3, 7, 5, 0.86);
    -webkit-backdrop-filter: blur(22px) saturate(140%); backdrop-filter: blur(22px) saturate(140%);
    opacity: 0; visibility: hidden; transition: opacity .35s ease, visibility 0s linear .35s;
}
.td-menu.is-open { opacity: 1; visibility: visible; transition: opacity .35s ease; }
.td-menu-close {
    position: absolute; top: 22px; right: 24px; width: 44px; height: 44px; border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.22); background: transparent; color: #fff; font-size: 22px; line-height: 1;
}
.td-menu-inner { width: min(1000px, 100%); display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 40px; }
.td-menu h2 { font: 500 11px/1 'Space Grotesk', sans-serif; letter-spacing: .16em; text-transform: uppercase; color: var(--td-muted); margin: 0 0 18px; }
.td-menu ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.td-menu a { color: var(--td-text); text-decoration: none; }
.td-menu .td-menu-big a { display: block; padding: 6px 0; font: 400 clamp(22px, 2.6vw, 30px)/1.15 'Space Grotesk', sans-serif; letter-spacing: -0.02em; transition: color .2s, transform .2s; }
.td-menu .td-menu-big a:hover { color: var(--td-green); transform: translateX(4px); }
.td-menu .td-menu-small a { display: block; padding: 7px 0; font-size: 16px; color: #d6ddd8; }
.td-menu .td-menu-small a:hover { color: var(--td-green); }
.td-menu-cta { display: grid; gap: 12px; align-content: start; }
.td-menu-cta p { color: var(--td-muted); font-size: 14px; line-height: 1.6; margin: 0 0 6px; }
@media (max-width: 820px) {
    .td-menu { place-items: start center; }
    .td-menu-inner { grid-template-columns: 1fr; gap: 30px; }
}

/* ---- Site footer ---- */
.td-footer {
    position: relative; z-index: 8;
    background: linear-gradient(180deg, #040705 0%, #020403 100%);
    border-top: 1px solid var(--td-line);
    color: var(--td-muted); font: 400 14px/1.6 'Space Grotesk', system-ui, sans-serif;
    padding: 64px 24px 28px;
}
.td-footer-inner { max-width: 1240px; margin: 0 auto; }
.td-footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr 1.2fr; gap: 36px; }
.td-footer h2 { font: 600 12px/1 'Space Grotesk', sans-serif; letter-spacing: .14em; text-transform: uppercase; color: #e8eee9; margin: 0 0 16px; }
.td-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.td-footer a { color: var(--td-muted); text-decoration: none; transition: color .2s; }
.td-footer a:hover { color: var(--td-green); }
.td-footer-about p { margin: 16px 0 18px; max-width: 30ch; }
.td-social { display: flex; gap: 10px; }
.td-social a {
    display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%;
    border: 1px solid var(--td-line); color: #e8eee9;
}
.td-social a:hover { border-color: var(--td-green); color: var(--td-green); }
.td-social svg { width: 16px; height: 16px; }
.td-footer-bottom {
    margin-top: 48px; padding: 22px 76px 0 0; border-top: 1px solid var(--td-line);
    display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: 13px;
}
.td-footer-bottom nav { display: flex; flex-wrap: wrap; gap: 18px; }
@media (max-width: 1000px) { .td-footer-grid { grid-template-columns: 1fr 1fr; } .td-footer-about { grid-column: 1 / -1; } }
@media (max-width: 560px) { .td-footer-grid { grid-template-columns: 1fr; } }

/* ---- WhatsApp floating button ---- */
.td-wa {
    position: fixed; right: 20px; bottom: 20px; z-index: 9000;
    display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%;
    background: #25d366; color: #fff; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
    transition: transform .25s ease;
}
.td-wa:hover { transform: scale(1.06); }
.td-wa svg { width: 28px; height: 28px; }

/* ---- Google rating badge ---- */
.td-google { display: inline-flex; align-items: center; gap: 8px; margin-top: 16px; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--td-line); color: #e8eee9 !important; font-size: 13px; text-decoration: none; }
.td-google:hover { border-color: #fbbc04; }
.td-stars { color: #fbbc04; letter-spacing: 1px; }

/* ---- Forms: spam trap and success state (shared by the home and inner pages) ---- */
.hp { position: absolute !important; left: -10000px !important; width: 1px; height: 1px; overflow: hidden; }
.form-success { padding: 30px 6px; text-align: center; }
.form-success strong { display: block; margin-bottom: 10px; font-size: 22px; color: var(--td-green); }
.form-success p { margin: 0; color: #d6ddd8; }
