/* Global Tools - Main Stylesheet */

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    color: #333;
}

/* Navbar */
.navbar-brand {
    font-size: 1.4rem;
    color: #2563eb !important;
}

/* Breadcrumb */
.breadcrumb {
    background: transparent;
    padding: 0;
    font-size: 0.875rem;
}
.breadcrumb-item a {
    text-decoration: none;
    color: #6b7280;
}
.breadcrumb-item a:hover {
    color: #2563eb;
}

/* Cards */
.card {
    transition: transform 0.2s, box-shadow 0.2s;
}
a.card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1) !important;
}

/* Tool page */
.tool-view h1 {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

/* Ad containers */
.ad-container {
    max-width: 728px;
    overflow: hidden;
}

/* FAQ */
.faq-section h2 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
}
.accordion-button {
    font-weight: 500;
}
.accordion-button:not(.collapsed) {
    background-color: #f0f7ff;
    color: #1e40af;
}

/* Related tools */
.related-tools h2 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

/* Footer */
footer h5, footer h6 {
    font-size: 0.95rem;
    font-weight: 600;
}

/* Tables */
.table th {
    font-weight: 600;
    color: #374151;
}

/* Language switcher */
.language-switcher .btn {
    font-size: 0.85rem;
}

/* Responsive */
@media (max-width: 768px) {
    .tool-view h1 {
        font-size: 1.35rem;
    }
    .ad-container {
        max-width: 100%;
    }
}

/* Form inputs in tool cards */
.card .form-select,
.card .form-control {
    border-radius: 0.375rem;
}

/* Result table highlighting */
.result-highlight {
    background-color: #fef3c7;
    font-weight: 600;
}

/* Postal code view */
.postal-code-view .card-header {
    background-color: #f8fafc;
    font-weight: 600;
}

/* ============================================================
   Homepage design system
   ============================================================ */
:root {
    --gt-primary: #2563eb;
    --gt-ink: #0f172a;
    --gt-muted: #64748b;
    --gt-border: #e2e8f0;
    --gt-bg-soft: #f8fafc;
}

/* Hero */
.gt-hero {
    position: relative;
    background:
        radial-gradient(1100px 380px at 15% -20%, rgba(37, 99, 235, 0.10), transparent 60%),
        radial-gradient(900px 340px at 90% 0%, rgba(99, 102, 241, 0.10), transparent 55%),
        linear-gradient(180deg, #f8fbff 0%, #ffffff 100%);
    border: 1px solid var(--gt-border);
    border-radius: 20px;
    padding: 3.25rem 1.5rem 2.75rem;
    text-align: center;
    margin-bottom: 2.5rem;
    overflow: hidden;
}
.gt-hero h1 {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--gt-ink);
    margin-bottom: 0.75rem;
}
.gt-hero .lead {
    font-size: 1.1rem;
    color: var(--gt-muted);
    max-width: 640px;
    margin: 0 auto 1.5rem;
}
.gt-hero .gt-gradient-text {
    background: linear-gradient(90deg, #2563eb, #7c3aed);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Trust chips */
.gt-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
}
.gt-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: #ffffff;
    border: 1px solid var(--gt-border);
    border-radius: 999px;
    padding: 0.4rem 0.9rem;
    font-size: 0.85rem;
    font-weight: 600;
    color: #334155;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}
.gt-chip .gt-chip-ico { font-size: 1rem; line-height: 1; }

/* Section heading */
.gt-section-title {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.01em;
    color: var(--gt-ink);
}
.gt-section-sub { color: var(--gt-muted); }

/* Category cards */
.gt-cat-card {
    height: 100%;
    background: #fff;
    border: 1px solid var(--gt-border);
    border-radius: 16px;
    padding: 1.4rem;
    display: flex;
    flex-direction: column;
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}
.gt-cat-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.10);
    border-color: transparent;
}
.gt-cat-ico {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 0.9rem;
    background: var(--cat-bg, #eff6ff);
    color: var(--cat-fg, #2563eb);
}
.gt-cat-card h3 {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--gt-ink);
    margin-bottom: 0.35rem;
}
.gt-cat-card .gt-cat-desc {
    font-size: 0.85rem;
    color: var(--gt-muted);
    margin-bottom: 0.9rem;
}
.gt-tool-list { list-style: none; padding: 0; margin: 0 0 0.9rem; }
.gt-tool-list li { margin: 0; }
.gt-tool-list a {
    display: block;
    padding: 0.4rem 0.6rem;
    margin: 0 -0.6rem;
    border-radius: 8px;
    font-size: 0.9rem;
    color: #334155;
    text-decoration: none;
    transition: background 0.15s ease, color 0.15s ease;
}
.gt-tool-list a:hover {
    background: var(--cat-bg, #eff6ff);
    color: var(--cat-fg, #2563eb);
}
.gt-cat-more {
    margin-top: auto;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--cat-fg, #2563eb);
    text-decoration: none;
}
.gt-cat-more:hover { text-decoration: underline; }

/* Popular tool chips */
.gt-popular-chip {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    background: #fff;
    border: 1px solid var(--gt-border);
    border-radius: 12px;
    padding: 0.7rem 0.9rem;
    font-size: 0.9rem;
    font-weight: 600;
    color: #334155;
    text-decoration: none;
    height: 100%;
    transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}
.gt-popular-chip:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.08);
    border-color: #c7d2fe;
    color: var(--gt-primary);
}
.gt-popular-chip .gt-pop-ico {
    font-size: 1.1rem;
    width: 1.6rem;
    text-align: center;
}

/* Feature row */
.gt-feature {
    text-align: center;
    padding: 0.5rem;
}
.gt-feature-ico {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    margin: 0 auto 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    background: #eff6ff;
    color: var(--gt-primary);
}
.gt-feature h3 { font-size: 1rem; font-weight: 700; color: var(--gt-ink); }
.gt-feature p { font-size: 0.85rem; color: var(--gt-muted); margin: 0; }

/* Soft band background for a section */
.gt-band {
    background: var(--gt-bg-soft);
    border-radius: 20px;
    padding: 2rem 1.5rem;
}

@media (max-width: 768px) {
    .gt-hero { padding: 2.25rem 1rem 2rem; border-radius: 16px; }
    .gt-section-title { font-size: 1.25rem; }
}

/* ---- Tools directory page ---- */
.gt-tools-filter {
    max-width: 420px;
}
.gt-cat-head {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding-bottom: 0.75rem;
    margin-bottom: 1rem;
    border-bottom: 1px solid var(--gt-border);
}
.gt-cat-head .gt-cat-ico {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    font-size: 1.25rem;
    margin: 0;
}
.gt-cat-head h2 {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--gt-ink);
    margin: 0;
}
.gt-cat-head .gt-cat-count {
    font-size: 0.8rem;
    color: var(--gt-muted);
    background: var(--gt-bg-soft);
    border-radius: 999px;
    padding: 0.15rem 0.6rem;
    font-weight: 600;
}
.gt-tool-card {
    height: 100%;
    display: block;
    background: #fff;
    border: 1px solid var(--gt-border);
    border-radius: 12px;
    border-left: 3px solid var(--cat-fg, var(--gt-primary));
    padding: 0.9rem 1rem;
    text-decoration: none;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.gt-tool-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 22px rgba(15, 23, 42, 0.09);
}
.gt-tool-card .gt-tool-name {
    font-size: 0.98rem;
    font-weight: 700;
    color: var(--gt-ink);
    margin-bottom: 0.2rem;
}
.gt-tool-card .gt-tool-desc {
    font-size: 0.82rem;
    color: var(--gt-muted);
    margin: 0;
    line-height: 1.45;
}
.gt-tool-hidden { display: none !important; }
.gt-no-results {
    color: var(--gt-muted);
    padding: 2rem 0;
    text-align: center;
}

/* ---- Nav search autocomplete ---- */
.gt-search-suggest {
    display: none;
    position: absolute;
    top: calc(100% + 6px);
    right: 0;
    left: auto;
    width: 320px;
    max-width: 80vw;
    background: #fff;
    border: 1px solid var(--gt-border);
    border-radius: 12px;
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.14);
    overflow: hidden;
    z-index: 1040;
}
.gt-search-suggest.show { display: block; }
.gt-suggest-item {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.55rem 0.85rem;
    text-decoration: none;
    color: #334155;
    border-bottom: 1px solid var(--gt-bg-soft);
}
.gt-suggest-item:last-child { border-bottom: none; }
.gt-suggest-item:hover { background: var(--gt-bg-soft); color: var(--gt-primary); }
.gt-suggest-ico { font-size: 1.05rem; width: 1.4rem; text-align: center; }
.gt-suggest-text { display: flex; flex-direction: column; line-height: 1.25; min-width: 0; }
.gt-suggest-text strong { font-size: 0.9rem; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gt-suggest-sub { font-size: 0.75rem; color: var(--gt-muted); }
@media (max-width: 992px) {
    .gt-search-suggest { left: 0; right: auto; width: 100%; }
}

/* ---- Back to top ---- */
.gt-to-top {
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 1030;
    width: 44px;
    height: 44px;
    border: none;
    border-radius: 50%;
    background: var(--gt-primary);
    color: #fff;
    font-size: 1.2rem;
    line-height: 1;
    box-shadow: 0 6px 18px rgba(37, 99, 235, 0.35);
    cursor: pointer;
    opacity: 0;
    transform: translateY(12px);
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease, bottom 0.2s ease;
}
.gt-to-top.visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}
.gt-to-top.raised { bottom: 92px; }        /* clear the consent banner */
.gt-to-top:hover { background: #1d4ed8; }
.gt-to-top:focus-visible { outline: 3px solid #93c5fd; outline-offset: 2px; }
@media (max-width: 576px) {
    .gt-to-top { right: 16px; bottom: 16px; width: 40px; height: 40px; }
    .gt-to-top.raised { bottom: 84px; }
}
