/* styles.css */

.tz-brand {
    color: #ff9900;
    font-weight: bold;
}

.tz-brand .ai-highlight {
    color: #333;
}

.blog-index {
    list-style: none;
    padding: 0;
    margin: 20px 0;
}

.blog-index li {
    background: #fff;
    border-left: 4px solid #ff9900;
    padding: 16px 20px;
    margin-bottom: 16px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}

.blog-index h3 {
    margin: 0 0 6px 0;
    font-size: 1.25em;
}

.blog-index h3 a {
    color: #333;
    text-decoration: none;
}

.blog-index h3 a:hover {
    color: #ff9900;
    text-decoration: underline;
}

.blog-index .blog-meta {
    margin: 0 0 8px 0;
    color: #888;
    font-size: 0.85em;
}

.blog-index li p:last-child {
    margin-bottom: 0;
}

body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f4f4f9;
    color: #333;
}

header {
    background-color: #333;
    color: white;
    padding: 10px 20px;
    text-align: center;
}

header h1 {
    margin: 0;
    font-size: 2.5em;
}

header p {
    font-style: italic;
}

nav {
    background: #444;
    color: white;
    padding: 10px;
    text-align: center;
}

nav a {
    color: #ff9900;
    margin: 0 15px;
    text-decoration: none;
    font-weight: bold;
}

nav a:hover {
    text-decoration: underline;
}

main {
    padding: 20px;
}

main h2 {
    font-size: 2em;
    color: #444;
}

main p {
    line-height: 1.6;
    margin-bottom: 20px;
}

main ul {
    list-style-type: disc;
    margin-left: 40px;
}

main ul li {
    margin-bottom: 10px;
}

.cta {
    text-align: center;
    margin-top: 20px;
}

.cta button {
    background-color: #ff9900;
    color: white;
    border: none;
    padding: 10px 20px;
    cursor: pointer;
    font-size: 1.2em;
    border-radius: 5px;
}

.cta button:hover {
    background-color: #e68a00;
}

footer {
    background-color: #333;
    color: white;
    text-align: center;
    padding: 10px;
    margin-top: 20px;
}

footer p {
    margin: 0;
    font-size: 0.9em;
}

/* "Free Quote" prize modal */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.65);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 20px;
}
.modal-overlay.open {
    display: flex;
}
.modal-box {
    background: white;
    color: #333;
    max-width: 560px;
    width: 100%;
    border-radius: 10px;
    padding: 30px 32px;
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.35);
    position: relative;
    border-top: 6px solid #ff9900;
}
.modal-box h2 {
    margin-top: 0;
    text-align: center;
    color: #333;
}
.modal-box .modal-tagline {
    font-style: italic;
    color: #666;
    text-align: center;
    margin-bottom: 12px;
}
.modal-box ul {
    margin: 16px 0;
    padding-left: 22px;
}
.modal-box ul li {
    margin-bottom: 6px;
}
.modal-box .fine-print {
    font-size: 0.75em;
    color: #888;
    margin-top: 12px;
}
.modal-close {
    position: absolute;
    top: 8px;
    right: 14px;
    font-size: 26px;
    color: #999;
    cursor: pointer;
    background: none;
    border: none;
    line-height: 1;
}
.modal-close:hover {
    color: #333;
}
.modal-actions {
    text-align: center;
    margin-top: 18px;
}
.modal-actions .claim-btn {
    background-color: #ff9900;
    color: white;
    border: none;
    padding: 10px 24px;
    cursor: pointer;
    font-size: 1.1em;
    border-radius: 5px;
}
.modal-actions .claim-btn:hover {
    background-color: #e68a00;
}

/* Footer trust-badge strip */
.trust-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    align-items: center;
    margin: 14px auto 4px;
    max-width: 1100px;
}
.trust-badges img {
    height: 50px;
    width: auto;
}
.trust-badge {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 110px;
    height: 50px;
    padding: 4px 12px;
    background: white;
    color: #333;
    border-radius: 4px;
    font-family: Arial, sans-serif;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
    box-sizing: border-box;
}
.trust-badge-line1 {
    font-weight: bold;
    font-size: 0.85em;
    line-height: 1.1;
    text-align: center;
}
.trust-badge-line2 {
    font-size: 0.65em;
    color: #666;
    margin-top: 2px;
    text-align: center;
}
.trust-badge--blue {
    background: #003a70;
    color: white;
}
.trust-badge--blue .trust-badge-line2 {
    color: #b3c5d9;
}
.trust-badge--gold {
    background: linear-gradient(180deg, #fdf3c3, #f0c041);
    color: #4a3000;
    border: 1px solid #c8a233;
}
.trust-badge--gold .trust-badge-line2 {
    color: #6b4900;
}
.trust-badge--green {
    background: #1e7a1e;
    color: white;
}
.trust-badge--green .trust-badge-line2 {
    color: #c0e0c0;
}
.trust-badge--red {
    background: #c11920;
    color: white;
}
.trust-badge--red .trust-badge-line2 {
    color: #f0c0c0;
}
.trust-badge--stars {
    background: #00b67a;
    color: white;
}
.trust-badge--stars .trust-badge-line2 {
    color: #c0f0e0;
}

/* Article-page feature figure (linguists, concept, services, contact).
   Scales down with the viewport on desktop and goes full-width / no float
   on mobile to avoid horizontal overflow. */
.feature-figure {
    float: right;
    width: 600px;
    max-width: 50%;
    margin: 0 0 14px 18px;
}
.feature-figure img {
    width: 100%;
    height: auto;
    border-radius: 6px;
    display: block;
}
.feature-figure figcaption {
    font-size: 0.8em;
    color: #666;
    text-align: center;
    margin-top: 6px;
    font-style: italic;
}
@media (max-width: 768px) {
    .feature-figure {
        float: none;
        width: 100%;
        max-width: 100%;
        margin: 0 auto 14px;
    }
}

/* Home-page hero image (keyboard.jpg). Same responsive behaviour. */
.home-image {
    width: 500px;
    max-width: 100%;
    height: auto;
    float: right;
    margin-left: 18px;
}
@media (max-width: 768px) {
    .home-image {
        float: none;
        width: 100%;
        display: block;
        margin: 0 auto 14px;
    }
}

/* Annoying flashing BLOG nav link */
@keyframes blog-flash {
    0%   { background-color: #ff0066; color: #ffffff; }
    25%  { background-color: #ffff00; color: #000000; }
    50%  { background-color: #00cc00; color: #ffffff; }
    75%  { background-color: #ff9900; color: #000000; }
    100% { background-color: #ff0066; color: #ffffff; }
}

nav a.flashing {
    animation: blog-flash 1.2s step-end infinite !important;
    padding: 2px 8px !important;
    border-radius: 3px !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
}

@media (prefers-reduced-motion: reduce) {
    nav a.flashing {
        animation: none !important;
        background-color: #ff0066 !important;
        color: #ffffff !important;
    }
}
