/* Extra styles added for the PHP version (header/footer, forms, legal pages, 404, thank-you) */

.skip-link { position: absolute; left: -9999px; top: 0; background: #000; color: #fff; padding: 10px 16px; z-index: 3000; }
.skip-link:focus { left: 10px; top: 10px; }

/* honeypot - hidden from people, visible to bots */
.hp-field { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; }

.form-msg { display: none; margin-top: 14px; font-size: 15px; font-weight: 600; }
.form-msg.ok, .form-msg.err { display: block; }
.form-msg.ok { color: #1a7f37; }
.form-msg.err { color: #c62828; }
.btn-primary:disabled { opacity: .7; cursor: not-allowed; }

/* minimal header (logo + button) */
.btn-nav { text-decoration: none; font-weight: 700; display: inline-block; }

/* footer */
.site-footer { background: #111; color: #fff; padding: 30px 0 24px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; text-align: left; padding-bottom: 36px; border-bottom: 1px solid #2a2a2a; }
.footer-brand img { height: 50px; width: auto; margin-bottom: 16px; }
.site-footer p { color: #cfcfcf; font-size: 16px; margin-bottom: 0; }
.site-footer h4 { font-size: 17px; margin-bottom: 14px; color: #fff; }
.site-footer ul { list-style: none; }
.site-footer li { margin-bottom: 10px; }
.site-footer a { color: #cfcfcf; text-decoration: none; font-size: 16px; transition: color .3s; }
.site-footer a:hover { color: var(--bright-yellow); }
.footer-social { display: flex; gap: 12px; margin-top: 16px; }
.footer-social a { width: 40px; height: 40px; border-radius: 50%; background: #222; display: inline-flex; align-items: center; justify-content: center; }
.footer-social a:hover { background: var(--primary-blue); color: #fff; }
.footer-logo-min { height: 46px; width: auto; display: block; margin: 0 auto 20px; }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; padding-top: 22px; }
.footer-bottom p { font-size: 15px; }
.footer-legal span { margin: 0 8px; color: #555; }
.footer-legal a { font-size: 15px; }
.site-footer .container > .footer-bottom:only-child, .footer-logo-min + .footer-bottom { justify-content: center; text-align: center; }

/* floating WhatsApp button (left side; scroll-to-top is on the right) */
.wa-float { position: fixed; left: max(22px, env(safe-area-inset-left)); bottom: max(22px, env(safe-area-inset-bottom)); width: 56px; height: 56px; border-radius: 50%; background: #25d366; color: #fff; display: flex; align-items: center; justify-content: center; font-size: 30px; text-decoration: none; z-index: 1900; box-shadow: 0 8px 22px rgba(0,0,0,.3); transition: transform .3s ease; }
.wa-float:hover { transform: translateY(-4px) scale(1.05); }

/* simple inner pages */
.page-hero { background: var(--primary-blue); color: #fff; padding: 70px 0; text-align: center; }
.page-hero h1 { font-size: 46px; margin-bottom: 10px; }
.page-hero p { color: #e1ecff; margin: 0; }
.legal { max-width: 860px; margin: 0 auto; padding: 60px 20px 80px; }
.legal h2 { font-size: 26px; margin: 34px 0 12px; }
.legal p, .legal li { font-size: 18px; color: #333; }
.legal ul { margin: 0 0 20px 24px; }
.legal a { color: var(--primary-blue); }

.center-page { min-height: 62vh; display: flex; align-items: center; justify-content: center; text-align: center; padding: 80px 20px; }
.center-page .big { font-size: 110px; font-weight: 800; color: var(--primary-blue); line-height: 1; margin-bottom: 10px; }
.center-page .icon { font-size: 80px; color: #25d366; margin-bottom: 20px; }
.center-page h1 { font-size: 40px; }
.center-page .btn-navv { margin-top: 10px; }

@media (max-width: 900px) {
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .footer-brand { grid-column: 1 / -1; }
    .page-hero h1 { font-size: 36px; }
}
@media (max-width: 640px) {
    .footer-grid { grid-template-columns: 1fr; gap: 28px; }
    .footer-bottom { flex-direction: column; text-align: center; }
    .wa-float { width: 50px; height: 50px; font-size: 27px; left: 16px; bottom: 16px; }
    .center-page .big { font-size: 80px; }
    .center-page h1 { font-size: 30px; }
    .legal p, .legal li { font-size: 17px; }
}

/* --------------------------------------------------------------
   TOOL BOARD – responsive grid
----------------------------------------------------------------*/
.tool-board {
    padding: 3rem 0;
    text-align: center;
}
.tool-board .section-title {
    font-size: 2.5rem;
    margin-bottom: .5rem;
}
.tool-board .section-intro {
    color: #666;
    margin-bottom: 2rem;
}

/* Grid container – CSS Grid gives us 3‑ or 4‑columns automatically */
.tool-grid {
    display: grid;
    gap: 1.5rem;
    /* 3 columns on tablets, 4 on desktop, 1‑2 on mobile */
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

/* --------------------------------------------------------------
   CARD – clickable <a>
----------------------------------------------------------------*/
.tool-card {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    background: #fff;
    border-radius: .75rem;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,.08);
    transition: transform .2s, box-shadow .2s;
    color: inherit;
    --accent: #333;               /* fallback if no colour is set */
}
.tool-card:hover,
.tool-card:focus {
    transform: translateY(-4px);
    box-shadow: 0 6px 20px rgba(0,0,0,.12);
}

/* Icon area – coloured accent strip */
.tool-card__icon {
    background: var(--accent);
    padding: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}
.tool-card__icon img {
    max-height: 64px;
    max-width: 100%;
}

/* Body – title + tagline */
.tool-card__body {
    padding: 1rem 1.25rem 1.5rem;
    text-align: left;
}
.tool-card__title {
    margin: 0 0 .4rem;
    font-size: 1.2rem;
    font-weight: 600;
    color: #222;
}
.tool-card__tagline {
    margin: 0;
    font-size: .9rem;
    color: #555;
}

/* Optional: make cards the same height */
.tool-grid {
    align-items: stretch;
}
.tool-card {
    height: 100%;
}

 /* Grid Styling */
    .niche-grid {
        display: grid;
        grid-template-columns: repeat(3, 1fr); /* 3 Columns */
        gap: 30px;
        margin-top: 40px;
    }

    /* Card Styling */
    .niche-card-v2 {
        background: #ffffff;
        border-radius: 15px;
        padding: 20px;
        box-shadow: 0 10px 30px rgba(0,0,0,0.05);
        transition: transform 0.3s ease;
        border: 1px solid #eee;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
    }

    .niche-card-v2:hover {
        transform: translateY(-10px);
    }

    .niche-card-v2 img {
        width: 100%;
        border-radius: 10px;
        margin-bottom: 20px;
    }

    .niche-card-v2 h3 {
        font-size: 1.4rem;
        font-weight: 700;
        margin-bottom: 10px;
        color: #333;
    }

    .niche-card-v2 p {
        color: #666;
        margin-bottom: 20px;
        flex-grow: 1; /* Ensures buttons align even if text length differs */
    }

    /* THE ONE BUTTON STYLE */
    .btn-open-tool {
        background: var(--primary-blue);
        color: white;
        padding: 12px 20px;
        text-decoration: none;
        border-radius: 8px;
        font-weight: 600;
        display: inline-block;
        transition: background 0.3s;
    }

    .btn-open-tool:hover {
        background: #0056b3; /* Darker blue on hover */
        color: white;
    }

    /* Responsive: 1 column on mobile, 2 on tablet */
    @media (max-width: 992px) {
        .niche-grid { grid-template-columns: repeat(2, 1fr); }
    }
    @media (max-width: 600px) {
        .niche-grid { grid-template-columns: 1fr; }
    }
    
    .hero-section2 {
        padding: 0px 0px 80px 0px ;   
    }
    }