/* ============================================================
   1. CSS VARIABLES (CATEGORY-GROUPED)
   ============================================================ */

/* ---------- BRAND COLORS ---------- */
:root {
    --color-brand-primary: #001a4d;
    --color-brand-secondary: #082355;

    /* Accent / Call-to-Action */
    --color-accent: #ffce00;
    --color-accent-hover: #e5b700;

    /* ---------- SURFACE / BACKGROUND ---------- */
    --color-surface-1: #001a4d; /* main dark surface */
    --color-surface-2: #082355; /* dark card */
    --color-surface-3: #021b4e; /* pricing bg */
    --color-surface-4: #02173e; /* testimonials bg */

    /* Light mode surfaces */
    --color-light-1: #ffffff;
    --color-light-2: #f2f4f7;
    --color-light-3: #f8f9fc;
    --color-light-card: #ffffff;

    /* ---------- TEXT ---------- */
    --color-text-primary: #ffffff;
    --color-text-secondary: #d2d6e0;

    /* Light mode text */
    --color-light-text-primary: #1a1a1a;
    --color-light-text-secondary: #555;

    /* ---------- BORDER ---------- */
    --color-border-light: rgba(0,0,0,0.15);
    --color-border-dark: rgba(255,255,255,0.15);

    /* ---------- SHADOWS ---------- */
    --shadow-card: 0 4px 12px rgba(0,0,0,0.2);
    --shadow-light: 0 4px 14px rgba(0,0,0,0.06);
    --shadow-hover: 0 6px 18px rgba(0,0,0,0.25);

    /* ---------- TRANSITIONS ---------- */
    --transition-fast: 0.25s ease;
    --transition-slow: 0.4s ease;
}

/* Brand (logo + text) */
.nav-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.nav-brand-text {
    font-family: 'Dela Gothic One', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-weight: 400; /* Dela Gothic One is single-weight */
    font-size: 18px;
    color: var(--color-text-primary);
}

html.light-mode .nav-brand-text {
    color: var(--color-light-text-primary);
}

/* Optional: slightly smaller text on very small screens */
@media (max-width: 480px) {
    .nav-brand-text {
        font-size: 16px;
    }
}


/* ============================================================
   2. LIGHT MODE OVERRIDES (HYBRID THEME SYSTEM T3)
   ============================================================ */

html.light-mode {
    --color-surface-1: var(--color-light-2);
    --color-surface-2: var(--color-light-card);
    --color-surface-3: var(--color-light-3);
    --color-surface-4: var(--color-light-1);

    --color-text-primary: var(--color-light-text-primary);
    --color-text-secondary: var(--color-light-text-secondary);

    --color-border-light: rgba(0,0,0,0.15);
    --color-border-dark: rgba(0,0,0,0.2);

    --shadow-card: var(--shadow-light);
}

/* ============================================================
   3. BASE STYLES
   ============================================================ */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: var(--color-surface-1);
    color: var(--color-text-primary);
    font-family: Arial, sans-serif;
    text-align: center;
    line-height: 1.5;
}

img {
    max-width: 100%;
    height: auto;
}

a {
    color: var(--color-accent);
    text-decoration: none;
}

a:hover {
    opacity: 0.85;
}

ul {
    list-style: none;
}

/* ============================================================
   4. GLOBAL LAYOUT UTILITIES
   ============================================================ */

.container {
    width: min(1100px, 90%);
    margin: auto;
}

.section {
    padding: 70px 20px;
}

.text-center {
    text-align: center;
}

.hidden {
    display: none !important;
}

/* ============================================================
   5. NAVBAR
   ============================================================ */

.navbar {
    width: 100%;
    background: rgba(0,0,0,0.3);
    padding: 15px 0;
    position: fixed;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(6px);
}

html.light-mode .navbar {
    background: rgba(255,255,255,0.85);
    box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}

.navbar-container {
    max-width: 1100px;
    margin: auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
}

.nav-logo {
    width: 70px;
    transition: filter var(--transition-fast);
}

html.light-mode .nav-logo {
    filter: brightness(0.2);
}

.nav-links {
    display: flex;
    gap: 25px;
}

.nav-links a {
    color: var(--color-text-primary);
    font-weight: bold;
    font-size: 17px;

    /* NEW — Forces perfect vertical alignment */
    display: flex;
    align-items: center;
    justify-content: center;

    height: 40px;        /* exact height of the Contact button */
    padding: 0 10px;     /* horizontal padding only */
    text-decoration: none;
    transition: opacity var(--transition-fast);
}

html.light-mode .nav-links a {
    color: var(--color-light-text-primary);
}

.nav-links a:hover {
    opacity: 0.7;
}

/* Contact button remains a button but now matches alignment */
.btn-nav-contact {
    background: var(--color-accent);
    color: #000 !important;

    /* NEW — ensure same vertical alignment */
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;

    padding: 0 20px;
    border-radius: 6px;
    font-weight: bold;
    transition: var(--transition-fast);
}

.btn-nav-contact:hover {
    background: var(--color-accent-hover);
}

/* ============================================================
   6. THEME TOGGLE
   ============================================================ */

.theme-toggle {
    width: 38px;
    height: 38px;
    border-radius: 8px;
    border: 2px solid var(--color-border-dark);
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition-fast);
}

html.light-mode .theme-toggle {
    border-color: var(--color-light-text-primary);
    color: var(--color-light-text-primary);
}

.theme-toggle:hover {
    background: rgba(255,255,255,0.15);
}

html.light-mode .theme-toggle:hover {
    background: rgba(0,0,0,0.1);
}

.theme-toggle svg {
    width: 22px;
    height: 22px;
    stroke-width: 1.5;
}

/* ============================================================
   7. HAMBURGER MENU
   ============================================================ */

.hamburger {
    display: none;
    flex-direction: column;
    width: 28px;
    height: 22px;
    justify-content: space-between;
    background: transparent;
    border: none;
    cursor: pointer;
}

.hamburger span {
    width: 100%;
    height: 3px;
    background: var(--color-text-primary);
    border-radius: 3px;
    transition: var(--transition-fast);
}

html.light-mode .hamburger span {
    background: var(--color-light-text-primary);
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 6px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

.mobile-menu {
    display: none;
    flex-direction: column;
    background: rgba(0,0,0,0.9);
    padding: 20px 0;
    text-align: center;
}

html.light-mode .mobile-menu {
    background: var(--color-light-1);
}

.mobile-menu a {
    color: var(--color-text-primary);
    font-size: 20px;
    padding: 12px 0;
}

html.light-mode .mobile-menu a {
    color: var(--color-light-text-primary);
}

/* Mobile navbar breakpoint */
@media (max-width: 900px) {
    .nav-links {
        display: none;
    }
    .hamburger {
        display: flex;
    }
}

.mobile-menu {
    display: none;
    flex-direction: column;
    background: rgba(0,0,0,0.9);
    padding: 20px 0;
    text-align: center;
}

.mobile-menu.active {
    display: flex;
    flex-direction: column;
}

.mobile-menu.active {
    display: flex;
    flex-direction: column;
    animation: slideDown 0.25s ease-out;
}

@keyframes slideDown {
    from { opacity: 0; transform: translateY(-10px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ============================================================
   8. BUTTONS
   ============================================================ */

.button,
.pricing-btn,
.cta-button {
    display: inline-block;
    padding: 12px 24px;
    background: var(--color-accent);
    color: #001a4d; /* LOCK text colour */
    font-weight: bold;
    border-radius: 6px;
    text-decoration: none;
    transition: background var(--transition-fast),
                transform 0.2s ease,
                box-shadow 0.2s ease;
}

/* Hover */
.button:hover,
.pricing-btn:hover,
.cta-button:hover {
    background: var(--color-accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
}

/* Light mode button contrast */
html.light-mode .button,
html.light-mode .cta-button,
html.light-mode .pricing-btn {
    color: #001a4d;
}

/* Dark mode SAFETY override */
html.dark-mode .button,
html.dark-mode .cta-button,
html.dark-mode .pricing-btn {
    color: #001a4d !important;
}


/* ============================================================
   9. CARD COMPONENT (universal)
   ============================================================ */

.card {
    background: var(--color-surface-2);
    padding: 25px;
    border-radius: 12px;
    box-shadow: var(--shadow-card);
    transition: transform var(--transition-fast);
}

html.light-mode .card {
    background: var(--color-light-card);
    border: 1px solid var(--color-border-light);
}

.card:hover {
    transform: translateY(-5px);
}

/* ============================================================
   10. SERVICE CARDS (Home ─ Services Section)
   ============================================================ */

.service-card {
    background: var(--color-surface-2);
    padding: 25px;
    border-radius: 10px;
    box-shadow: var(--shadow-card);
    text-align: center;
}

html.light-mode .service-card {
    background: var(--color-light-card);
    border: 1px solid var(--color-border-light);
}

.service-card h3 {
    font-size: 22px;
    margin-bottom: 10px;
}

.service-card p {
    opacity: 0.9;
}

/* ============================================================
   11. SERVICE GRID (Reusable)
   ============================================================ */

.service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    max-width: 1100px;
    margin: auto;
}

/* ============================================================
   12. PRICING CARDS
   ============================================================ */

.pricing-card {
    background: var(--color-surface-2);
    padding: 25px;
    border-radius: 10px;
    text-align: center;
    box-shadow: var(--shadow-card);
    position: relative;
    transition: var(--transition-fast);
}

.pricing-card:hover {
    transform: translateY(-8px);
}

html.light-mode .pricing-card {
    background: var(--color-light-card);
    border: 1px solid var(--color-border-light);
}

.pricing-card.highlight {
    background: var(--color-brand-secondary);
    border: 2px solid var(--color-border-dark);
}

html.light-mode .pricing-card.highlight {
    background: #fff6d5;
    border-color: #f5d98b;
}

.pricing-card h3 {
    font-size: 22px;
    margin-bottom: 10px;
}

.price {
    font-size: 40px;
    margin: 15px 0;
    font-weight: bold;
}

.price span {
    font-size: 16px;
    opacity: 0.7;
}

.pricing-card ul {
    list-style: none;
    padding: 0;
    margin: 20px 0;
    line-height: 1.8;
    opacity: 0.9;
}

/* CTA button override for highlight card */
.highlight-btn {
    background: var(--color-accent) !important;
    color: black !important;
}

/* ============================================================
   13. TESTIMONIAL CARDS
   ============================================================ */

.testimonial-card {
    background: var(--color-surface-2);
    padding: 25px;
    border-radius: 10px;
    text-align: left;
    box-shadow: var(--shadow-card);
    transition: transform var(--transition-fast);
}

html.light-mode .testimonial-card {
    background: var(--color-light-card);
    border: 1px solid var(--color-border-light);
}

.testimonial-card:hover {
    transform: translateY(-8px);
}

.stars {
    color: var(--color-accent);
    font-size: 20px;
    margin-bottom: 10px;
    letter-spacing: 2px;
}

.quote {
    font-style: italic;
    opacity: 0.9;
    margin-bottom: 12px;
}

/* ============================================================
   14. RIBBON BADGE (Used in pricing)
   ============================================================ */

.ribbon {
    position: absolute;
    top: -10px;
    left: -10px;
    background: var(--color-accent);
    padding: 5px 12px;
    font-weight: bold;
    border-radius: 6px;
    color: #000;
    font-size: 13px;
    box-shadow: var(--shadow-card);
    z-index: 5;
}

/* ============================================================
   15. CONTACT FORM (shared)
   ============================================================ */

.contact-form,
.contact-page-form form {
    max-width: 600px;
    margin: auto;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.contact-form input,
.contact-form textarea,
.contact-page-form input,
.contact-page-form textarea {
    width: 100%;
    padding: 14px;
    border-radius: 6px;
    border: 1px solid var(--color-border-light);
    font-size: 16px;
    background: var(--color-surface-2);
    color: var(--color-text-primary);
}

html.light-mode .contact-form input,
html.light-mode .contact-page-form input,
html.light-mode .contact-form textarea,
html.light-mode .contact-page-form textarea {
    background: var(--color-light-2);
    color: var(--color-light-text-primary);
}

.contact-page-form button,
.contact-form button {
    width: 200px;
    align-self: center;
    padding: 14px;
    background: var(--color-accent);
    color: #000;
    font-weight: bold;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    font-size: 18px;
    transition: var(--transition-fast);
}

.contact-page-form button:hover,
.contact-form button:hover {
    background: var(--color-accent-hover);
}

/* Contact-page success message */
.contact-success {
    margin-top: 10px;
    color: #7CFC00;
    font-weight: bold;
}

/* ============================================================
   HOME PAGE — CONTACT CTA SECTION
   ============================================================ */

.cta {
    padding: 70px 20px;      /* Top + bottom spacing */
    background: var(--color-brand-secondary);
    color: var(--color-text-primary);
    text-align: center;
}

html.light-mode .cta {
    background: var(--color-light-1);
    color: var(--color-light-text-primary);
    border-top: 1px solid var(--color-border-light);
}

.cta h2 {
    margin-bottom: 15px;
    font-size: 32px;
}

.cta p {
    margin-bottom: 30px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    opacity: 0.9;
}

/* ============================================================
   16. UNIVERSAL GRID HELPERS
   ============================================================ */

.grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

.grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
}

.grid-1 {
    display: grid;
    grid-template-columns: 1fr;
    gap: 25px;
}

/* ============================================================
   17. CONTACT INFO ITEM (Fixes Alignment Issue)
   ============================================================ */

.contact-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

/* ============================================================
   18. HOME PAGE — HERO SECTION
   ============================================================ */

.hero {
    padding: 150px 20px 70px;
    background: var(--color-surface-1);
    color: var(--color-text-primary);
}

.hero img {
    width: 160px;
    margin-bottom: 20px;
}

.hero h1 {
    font-size: 44px;
    margin-bottom: 10px;
}

.hero p {
    font-size: 18px;
    opacity: 0.9;
}

/* Light Mode */
html.light-mode .hero {
    background: var(--color-light-1);
    color: var(--color-light-text-primary);
    border-bottom: 1px solid var(--color-border-light);
}

/* ============================================================
   19. HOME PAGE — SERVICES SECTION
   ============================================================ */

.services {
    padding: 70px 20px;
    background: var(--color-brand-secondary);
    color: var(--color-text-primary);
}

html.light-mode .services {
    background: var(--color-light-3);
    color: var(--color-light-text-primary);
    border-top: 1px solid var(--color-border-light);
    border-bottom: 1px solid var(--color-border-light);
}

.services h2 {
    font-size: 32px;
    margin-bottom: 40px;
}

.service-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 25px;
}

/* ============================================================
   20. HOME PAGE — ABOUT SECTION
   ============================================================ */

.about {
    padding: 60px 20px;
    background: var(--color-surface-1);
}

html.light-mode .about {
    background: var(--color-light-1);
    color: var(--color-light-text-primary);
    border-top: 1px solid var(--color-border-light);
    border-bottom: 1px solid var(--color-border-light);
}

.about h2 {
    font-size: 32px;
    margin-bottom: 20px;
}

.about p {
    max-width: 700px;
    margin: auto;
    opacity: 0.9;
    line-height: 1.6;
}

/* ============================================================
   21. HOME PAGE — PRICING SECTION
   ============================================================ */

.pricing {
    padding: 80px 20px;
    background: var(--color-surface-3);
}

html.light-mode .pricing {
    background: var(--color-light-3);
    color: var(--color-light-text-primary);
    border-top: 1px solid var(--color-border-light);
    border-bottom: 1px solid var(--color-border-light);
}

.pricing h2 {
    font-size: 32px;
    margin-bottom: 15px;
}

.pricing-intro {
    opacity: 0.85;
    margin-bottom: 40px;
}

.pricing-cards {
    display: grid;
    gap: 25px;
    grid-template-columns: repeat(4, 1fr);
    max-width: 1100px;
    margin: auto;
}

/* Pricing responsiveness */
@media (max-width: 900px) {
    .pricing-cards {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 550px) {
    .pricing-cards {
        grid-template-columns: 1fr;
    }
}

/* ============================================================
   22. HOME PAGE — TESTIMONIALS
   ============================================================ */

.testimonials {
    padding: 80px 20px;
    background: var(--color-surface-4);
}

html.light-mode .testimonials {
    background: var(--color-light-1);
    color: var(--color-light-text-primary);
    border-top: 1px solid var(--color-border-light);
    border-bottom: 1px solid var(--color-border-light);
}

.testimonials h2 {
    font-size: 32px;
    margin-bottom: 40px;
}

.testimonial-cards {
    max-width: 1000px;
    margin: auto;
    display: grid;
    gap: 25px;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

/* ============================================================
   23. CONTACT PAGE — HERO
   ============================================================ */

.contact-hero {
    padding: 140px 20px 40px;
    background: var(--color-surface-1);
    color: var(--color-text-primary);
}

html.light-mode .contact-hero {
    background: var(--color-light-2);
    color: var(--color-light-text-primary);
    border-bottom: 1px solid var(--color-border-light);
}

.contact-hero h1 {
    font-size: 42px;
    margin-bottom: 10px;
}

.contact-hero p {
    font-size: 18px;
    opacity: 0.85;
}

/* ============================================================
   24. CONTACT PAGE — INFO GRID (Fixed Alignment)
   ============================================================ */

.contact-details {
    padding: 60px 20px;
}

.contact-details-section {
    display: flex;
    justify-content: center;
    width: 100%;
}

.contact-info-box {
    max-width: 900px;
    width: 100%;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
    justify-items: center;
    text-align: center;
}

/* Tablet */
@media (max-width: 900px) {
    .contact-info-box {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Mobile */
@media (max-width: 550px) {
    .contact-info-box {
        grid-template-columns: 1fr;
    }
}

.contact-info-box h3 {
    font-size: 20px;
    margin-bottom: 5px;
}

.contact-info-box p {
    opacity: 0.85;
}

/* ============================================================
   25. CONTACT PAGE — FORM SECTION
   ============================================================ */

.contact-page-form {
    max-width: 600px;
    margin: 40px auto 80px;
}

.contact-page-form h2 {
    font-size: 28px;
    margin-bottom: 20px;
}

/* ============================================================
   26. SERVICES INDEX PAGE — HERO
   ============================================================ */

.services-hero {
    padding: 140px 20px 40px;
    background: var(--color-brand-primary);
    color: var(--color-text-primary);
}

html.light-mode .services-hero {
    background: var(--color-light-2);
    color: var(--color-light-text-primary);
}

.services-hero h1 {
    font-size: 42px;
}

.services-hero p {
    font-size: 18px;
    opacity: 0.85;
}

/* ============================================================
   27. SERVICES INDEX PAGE — LIST GRID (FINAL FIXED VERSION)
   ============================================================ */

.services-list {
    padding: 60px 20px;
}

.services-container {
    max-width: 1100px;
    margin: auto;

    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));

    gap: 25px;

    /* Center each item inside its grid cell */
    justify-items: center;

    /* Center the last row when not full */
    justify-content: center;
}

/* Service card wrapper */
.service-box {
    background: var(--color-surface-2);
    color: var(--color-text-primary);
    padding: 25px;
    border-radius: 12px;
    box-shadow: var(--shadow-card);
    text-decoration: none;
    max-width: 320px; /* prevents oversized cards */
    width: 100%;
    transition: var(--transition-fast);
}

html.light-mode .service-box {
    background: var(--color-light-card);
    color: var(--color-light-text-primary);
    border: 1px solid var(--color-border-light);
}

.service-box:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-hover);
}

/* Fix icon sizes across all service tiles */
.service-icon svg {
    width: 48px !important;
    height: 48px !important;
    stroke: var(--color-accent);
    stroke-width: 1.6;
    margin-bottom: 15px;
}

/* Service title */
.service-box h3 {
    margin-bottom: 10px;
    font-size: 22px;
}

/* Service description */
.service-box p {
    opacity: 0.9;
    font-size: 15px;
    line-height: 1.5;
}

/* ============================================================
   28. SERVICE DETAIL PAGES — HERO (FINAL VERSION)
   ============================================================ */

.service-hero {
    padding: 140px 20px 60px;
    text-align: center;

    background: var(--color-brand-primary);
    color: var(--color-text-primary);

    /* Smooth visual consistency */
    border-bottom: 1px solid var(--color-border-dark);
}

/* Light mode override */
html.light-mode .service-hero {
    background: var(--color-light-2);
    color: var(--color-light-text-primary);
    border-bottom: 1px solid var(--color-border-light);
}

/* Page icon above the title */
.service-hero svg {
    width: 70px !important;
    height: 70px !important;
    stroke-width: 1.7;
    margin-bottom: 18px;

    /* Theme-aware stroke color */
    stroke: var(--color-accent);
}

/* Title */
.service-hero h1 {
    font-size: 42px;
    font-weight: 600;
    margin-bottom: 12px;
}

/* Subtitle text */
.service-hero p {
    font-size: 18px;
    opacity: 0.88;
    max-width: 700px;
    margin: auto;
    line-height: 1.6;
}

/* Mobile scaling */
@media (max-width: 600px) {
    .service-hero {
        padding: 110px 20px 50px;
    }

    .service-hero h1 {
        font-size: 32px;
    }

    .service-hero p {
        font-size: 16px;
    }

    .service-hero svg {
        width: 54px !important;
        height: 54px !important;
    }
}

/* ============================================================
   29. SERVICE DETAIL PAGES — CONTENT SECTIONS
   ============================================================ */

.service-section,
.service-details,
.service-target {
    max-width: 900px;
    margin: 50px auto;
    padding: 0 20px;
    text-align: left;
}

.service-section h2,
.service-details h2,
.service-target h2 {
    font-size: 28px;
    margin-bottom: 15px;
}

.service-section p,
.service-details p {
    opacity: 0.9;
    line-height: 1.6;
}

/* ============================================================
   30. SERVICE DETAIL PAGES — FEATURE LISTS
   ============================================================ */

.service-list {
    list-style: none;
    padding: 0;
}

.service-list li {
    background: var(--color-surface-2);
    color: var(--color-text-primary);
    padding: 12px 16px;
    margin: 8px 0;
    border-radius: 8px;
    box-shadow: var(--shadow-card);
    display: flex;
    align-items: center;
    gap: 10px;
}

html.light-mode .service-list li {
    background: var(--color-light-card);
    color: var(--color-light-text-primary);
    border: 1px solid var(--color-border-light);
}

/* ============================================================
   31. SERVICE DETAIL PAGES — CTA BLOCK
   ============================================================ */

.service-cta {
    padding: 70px 20px;
    background: var(--color-brand-secondary);
    color: var(--color-text-primary);
    text-align: center;
    margin-top: 60px;
}

html.light-mode .service-cta {
    background: var(--color-light-1);
    color: var(--color-light-text-primary);
    border-top: 1px solid var(--color-border-light);
}

.service-cta h2 {
    font-size: 32px;
    margin-bottom: 10px;
}

.service-cta p {
    opacity: 0.9;
    margin-bottom: 25px;
}

/* ============================================================
   32. ANIMATIONS — FADE-IN ON SCROLL
   ============================================================ */

.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ============================================================
   33. FOOTER
   ============================================================ */

footer {
    padding: 25px;
    font-size: 14px;
    opacity: 0.7;
    background: var(--color-surface-1);
    color: var(--color-text-primary);
}

html.light-mode footer {
    background: var(--color-light-1);
    color: var(--color-light-text-secondary);
}

/* ============================================================
   34. RESPONSIVE — GLOBAL FIXES
   ============================================================ */

/* Make all sections breathe better on mobile */
@media (max-width: 600px) {
    .section,
    .services,
    .pricing,
    .testimonials,
    .about,
    .contact-details {
        padding: 50px 15px;
    }

    .hero h1,
    .contact-hero h1,
    .services-hero h1,
    .service-hero h1 {
        font-size: 32px;
    }

    .hero p,
    .contact-hero p,
    .services-hero p,
    .service-hero p {
        font-size: 16px;
    }
}

/* Buttons scale better on small screens */
@media (max-width: 450px) {
    .button,
    .pricing-btn,
    .cta-button,
    .contact-form button,
    .contact-page-form button {
        width: 100%;
        max-width: 260px;
    }
}

/* ============================================================
   35. RESPONSIVE — CONTACT PAGE FIXES
   ============================================================ */

@media (max-width: 600px) {
    .contact-page-form {
        padding: 0 15px;
    }

    .contact-page-form input,
    .contact-page-form textarea {
        font-size: 15px;
    }
}

/* ============================================================
   36. RESPONSIVE — NAVBAR (Mobile Menu)
   ============================================================ */

@media (max-width: 900px) {
    .navbar-container {
        padding: 0 15px;
    }

    .mobile-menu li {
        margin: 12px 0;
    }

    .mobile-menu a {
        font-size: 18px;
        padding: 10px 0;
    }
}

.btn-nav-contact {
    background: var(--color-accent);
    color: #000 !important;
    padding: 10px 20px;
    border-radius: 6px;
    font-weight: bold;
    transition: var(--transition-fast);
    display: inline-block;
}

.btn-nav-contact:hover {
    background: var(--color-accent-hover);
}

/* Light Mode */
html.light-mode .btn-nav-contact {
    background: var(--color-accent);
    color: #000 !important;
}

html.light-mode .btn-nav-contact:hover {
    background: var(--color-accent-hover);
}

/* MOBILE VERSION */
.btn-nav-contact.mobile {
    width: 80%;
    margin: 12px auto;
    text-align: center;
    padding: 12px 0;
}

/* ============================================================
   37. ACCESSIBILITY UTILITIES (Optional but recommended)
   ============================================================ */

:focus {
    outline: 2px dashed var(--color-accent);
    outline-offset: 4px;
}

a:focus,
button:focus {
    outline-color: var(--color-accent);
}

/* ============================================================
   38. OVERRIDES — ENSURE VARIABLE-BASED SYSTEM WINS
   ============================================================ */

/* Force light/dark theme images to match tone */
html.light-mode img.theme-adjust {
    filter: brightness(0.15);
}

img.theme-adjust {
    transition: filter var(--transition-fast);
}

/* Universal card rounding consistency */
.card,
.service-card,
.testimonial-card,
.pricing-card,
.service-box {
    border-radius: 12px;
}

/* Prevent overflow issues on small screens */
body {
    overflow-x: hidden;
}

/* Ensures consistent shadow styling */
.card:hover,
.service-card:hover,
.testimonial-card:hover,
.pricing-card:hover,
.service-box:hover {
    box-shadow: var(--shadow-hover);
}

/* ============================================================
   39. FINAL ELEMENT POLISH
   ============================================================ */

h1, h2, h3, h4 {
    font-weight: 600;
}

p {
    line-height: 1.6;
    opacity: 0.95;
}

.section-title {
    font-size: 32px;
    margin-bottom: 20px;
}

.center {
    text-align: center;
}

.max-width {
    max-width: 1100px;
    margin: auto;
}

/* ============================================================
   ABOUT PAGE
   ============================================================ */

/* HERO */
.about-hero {
    padding: 140px 20px 50px;
    background: var(--color-surface-1);
    color: var(--color-text-primary);
    text-align: center;
}

html.light-mode .about-hero {
    background: var(--color-light-2);
    color: var(--color-light-text-primary);
    border-bottom: 1px solid var(--color-border-light);
}

.about-hero h1 {
    font-size: 42px;
    margin-bottom: 10px;
}

.about-hero p {
    font-size: 18px;
    opacity: 0.9;
}

/* ABOUT INTRO SECTION */
.about-section {
    padding: 70px 20px;
    background: var(--color-surface-1);
    color: var(--color-text-primary);
}

html.light-mode .about-section {
    background: var(--color-light-1);
    color: var(--color-light-text-primary);
    border-bottom: 1px solid var(--color-border-light);
}

.about-container {
    max-width: 900px;
    margin: auto;
    text-align: center;
}

.about-container h2 {
    font-size: 32px;
    margin-bottom: 20px;
}

/* VALUES GRID */
.about-values {
    padding: 70px 20px;
    background: var(--color-surface-2);
}

html.light-mode .about-values {
    background: var(--color-light-3);
}

.values-grid {
    max-width: 1000px;
    margin: auto;
    display: grid;
    gap: 25px;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.value-card {
    background: var(--color-surface-2);
    padding: 25px;
    border-radius: 12px;
    box-shadow: var(--shadow-card);
    text-align: center;
}

html.light-mode .value-card {
    background: var(--color-light-card);
    border: 1px solid var(--color-border-light);
}

/* CTA */
.about-cta {
    padding: 80px 20px;
    background: var(--color-brand-secondary);
    color: var(--color-text-primary);
    text-align: center;
}

html.light-mode .about-cta {
    background: var(--color-light-1);
    color: var(--color-light-text-primary);
    border-top: 1px solid var(--color-border-light);
}

.about-cta h2 {
    font-size: 32px;
    margin-bottom: 15px;
}

.about-cta p {
    margin-bottom: 25px;
    opacity: 0.9;
}

.about-cta .cta-button {
    padding: 14px 28px;
}

/* ============================================================
   HERO SLIDER (Swiper.js)
   ============================================================ */

.hero-slider-section {
    width: 100%;
    height: 60vh;
    position: relative;
    margin-bottom: 40px;
}

.hero-swiper,
.hero-swiper .swiper-wrapper,
.hero-slide {
    width: 100%;
    height: 100%;
}

/* Dark overlay for readability */
.hero-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.55);
}

html.light-mode .hero-overlay {
    background: rgba(255,255,255,0.45);
}

/* Text & CTA positioning */
.hero-content {
    position: absolute;
    z-index: 10;
    color: var(--color-text-primary);
    text-align: center;
    width: 100%;
    top: 50%;
    transform: translateY(-50%);
    padding: 0 20px;
}

.hero-content h1 {
    font-size: 48px;
    margin-bottom: 12px;
}

.hero-content p {
    font-size: 20px;
    opacity: 0.9;
    margin-bottom: 25px;
}

.hero-btn {
    padding: 14px 28px;
    background: var(--color-accent);
    color: #000;
    font-weight: bold;
    border-radius: 8px;
    display: inline-block;
    text-decoration: none;
    transition: var(--transition-fast);
}

.hero-btn:hover {
    background: var(--color-accent-hover);
}

/* Swiper buttons */
.swiper-button-next,
.swiper-button-prev {
    color: var(--color-text-primary);
    opacity: 0.7;
    transition: opacity 0.3s;
}

.swiper-button-next:hover,
.swiper-button-prev:hover {
    opacity: 1;
}

html.light-mode .swiper-button-next,
html.light-mode .swiper-button-prev {
    color: var(--color-light-text-primary);
}

/* Pagination dots */
.swiper-pagination-bullet {
    background: var(--color-text-primary);
    opacity: 0.5;
}

.swiper-pagination-bullet-active {
    background: var(--color-accent);
    opacity: 1;
}

html.light-mode .swiper-pagination-bullet {
    background: var(--color-light-text-primary);
}

/* ----------------------------------------------
   MINI FOOTER (4 Columns, Centered, Responsive)
   ---------------------------------------------- */

.mini-footer {
    background: var(--color-surface-2);
    padding: 60px 20px;
    border-top: 1px solid var(--color-border-dark);
}

html.light-mode .mini-footer {
    background: var(--color-light-2);
    border-top: 1px solid var(--color-border-light);
}

.mini-footer-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    align-items: flex-start;
}

.mini-footer-column h3 {
    margin-bottom: 12px;
    font-size: 18px;
    font-weight: 600;
    color: var(--color-text-primary);
}

html.light-mode .mini-footer-column h3 {
    color: var(--color-light-text-primary);
}

.mini-footer-column ul li {
    margin: 6px 0;
}

.mini-footer-column ul li a {
    color: var(--color-text-primary);
    opacity: 0.85;
    text-decoration: none;
}

html.light-mode .mini-footer-column ul li a {
    color: var(--color-light-text-primary);
}

.mini-footer-column ul li a:hover {
    opacity: 1;
}

.mini-footer-column p,
.mini-footer-column a {
    color: var(--color-text-primary);
    opacity: 0.9;
    font-size: 15px;
}

html.light-mode .mini-footer-column p,
html.light-mode .mini-footer-column a {
    color: var(--color-light-text-primary);
}

/* CERTIFICATIONS */
.cert-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.cert-item {
    display: flex;
    align-items: center;
    gap: 10px;
}

.cert-item img {
    width: 26px;
    height: 26px;
    filter: brightness(0) invert(1);
    opacity: 0.9;
    transition: transform 0.2s ease;
}

html.light-mode .cert-item img {
    filter: brightness(0.1);
}

.cert-item span {
    font-size: 14px;
    opacity: 0.85;
}

.cert-item:hover img {
    transform: scale(1.1);
}

/* RESPONSIVE */
@media (max-width: 900px) {
    .mini-footer-grid {
        grid-template-columns: repeat(2, 1fr);
        text-align: center;
    }
}

@media (max-width: 550px) {
    .mini-footer-grid {
        grid-template-columns: 1fr;
    }
    .cert-list {
        align-items: center;
    }
}

/* ============================================================
   LEGAL PAGES
   ============================================================ */

.legal-section {
    max-width: 900px;
    margin: 140px auto 80px;
    padding: 0 20px;
    text-align: left;
}

.legal-section h1 {
    font-size: 38px;
    margin-bottom: 10px;
}

.legal-section h2 {
    font-size: 24px;
    margin-top: 30px;
    margin-bottom: 10px;
}

.legal-section p,
.legal-section ul {
    opacity: 0.9;
    line-height: 1.7;
}

.legal-section ul {
    margin-left: 20px;
    list-style: disc;
}

/* ============================================================
   COOKIE BANNER
   ============================================================ */

.cookie-banner {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    max-width: 900px;
    width: calc(100% - 40px);
    background: var(--color-surface-2);
    color: var(--color-text-primary);
    padding: 16px 20px;
    border-radius: 10px;
    box-shadow: var(--shadow-card);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
    z-index: 2000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
}

html.light-mode .cookie-banner {
    background: var(--color-light-card);
    color: var(--color-light-text-primary);
    border: 1px solid var(--color-border-light);
}

/* visible state */
.cookie-banner.show {
    opacity: 1;
    pointer-events: all;
}

.cookie-banner p {
    margin: 0;
    font-size: 15px;
    line-height: 1.4;
    flex: 1;
}

.cookie-banner a {
    color: var(--color-accent);
    text-decoration: underline;
}

.cookie-btn {
    padding: 10px 18px;
    background: var(--color-accent);
    color: #000;
    font-weight: bold;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    flex-shrink: 0;
}

.cookie-btn:hover {
    background: var(--color-accent-hover);
}

@media (max-width: 600px) {
    .cookie-banner {
        flex-direction: column;
        align-items: stretch;
        text-align: left;
    }

    .cookie-btn {
        width: 100%;
        margin-top: 8px;
    }
}

/* ============================================================
   FAQ PAGE — HERO
   ============================================================ */
.faq-hero {
    padding: 140px 20px 40px;
    background: var(--color-surface-1);
    color: var(--color-text-primary);
    text-align: center;
}

html.light-mode .faq-hero {
    background: var(--color-light-2);
    color: var(--color-light-text-primary);
}

/* ============================================================
   FAQ PAGE — ACCORDION STYLES
   ============================================================ */
.faq-section {
    max-width: 900px;
    margin: 50px auto 80px;
    padding: 0 20px;
}

.faq-category-title {
    font-size: 26px;
    margin: 40px 0 20px;
    text-align: left;
    color: var(--color-text-primary);
}

html.light-mode .faq-category-title {
    color: var(--color-light-text-primary);
}

.faq-item {
    margin-bottom: 15px;
    border-radius: 10px;
    background: var(--color-surface-2);
    box-shadow: var(--shadow-card);
    overflow: hidden;
}

html.light-mode .faq-item {
    background: var(--color-light-card);
    border: 1px solid var(--color-border-light);
}

.faq-question {
    width: 100%;
    text-align: left;
    padding: 18px 20px;
    background: transparent;
    border: none;
    color: var(--color-text-primary);
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    outline: none;
    transition: var(--transition-fast);
}

html.light-mode .faq-question {
    color: var(--color-light-text-primary);
}

.faq-question:hover {
    opacity: 0.7;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease;
    padding: 0 20px;
}

.faq-answer p {
    padding: 15px 0 20px;
    line-height: 1.6;
}

/* Expanded State */
.faq-item.open .faq-answer {
    max-height: 300px; /* Enough space for long answers */
}

/* ============================================================
   UNIVERSAL PAGE HERO WRAPPER
   ============================================================ */

.page-hero,
.services-hero,
.service-hero,
.contact-hero,
.about-hero,
.pricing-hero,
.faq-hero {
    padding: 140px 20px 50px;
    background: var(--color-surface-1);
    color: var(--color-text-primary);
    text-align: center;
    position: relative;
}

html.light-mode .page-hero,
html.light-mode .services-hero,
html.light-mode .service-hero,
html.light-mode .contact-hero,
html.light-mode .about-hero,
html.light-mode .pricing-hero,
html.light-mode .faq-hero {
    background: var(--color-light-2);
    color: var(--color-light-text-primary);
    border-bottom: 1px solid var(--color-border-light);
}

/* Icon wrapper for service pages only */
.hero-icon-wrapper {
    margin-bottom: 15px;
    display: flex;
    justify-content: center;
}

.hero-icon-wrapper svg {
    width: 55px;
    height: 55px;
    stroke-width: 1.8;
}

/* Title */
.page-hero h1,
.services-hero h1,
.service-hero h1,
.contact-hero h1,
.about-hero h1,
.pricing-hero h1,
.faq-hero h1 {
    font-size: 42px;
    margin-bottom: 10px;
}

/* Subtitle */
.page-hero p,
.services-hero p,
.service-hero p,
.contact-hero p,
.about-hero p,
.pricing-hero p,
.faq-hero p {
    font-size: 18px;
    opacity: 0.85;
}

/* Mobile responsiveness */
@media (max-width: 600px) {
    .page-hero h1,
    .services-hero h1,
    .service-hero h1,
    .contact-hero h1,
    .about-hero h1,
    .pricing-hero h1,
    .faq-hero h1 {
        font-size: 30px;
    }

    .page-hero p,
    .services-hero p,
    .service-hero p,
    .contact-hero p,
    .about-hero p,
    .pricing-hero p,
    .faq-hero p {
        font-size: 16px;
    }
}

/* ==============================================
   CONTACT PAGE — ICONS (Decoupled from Services)
   ============================================== */

.contact-icon {
    width: 36px;
    height: 36px;
    margin-bottom: 10px;
    opacity: 0.85;
    display: flex;
    align-items: center;
    justify-content: center;
}

.contact-icon svg {
    width: 100%;
    height: 100%;
}

/* ==============================
   CONTACT PAGE — SPACING POLISH
   ============================== */

.contact-details {
    padding-top: 40px;
}

.contact-page-form h2 {
    margin-bottom: 20px;
}


/* =================
   ARTICLE - POLISH
   ================= */

.kb-article-content {
    text-align: left;
    line-height: 1.7;
    font-size: 1.05rem;
}

.kb-article-content p {
    margin-bottom: 1.2rem;
}

.kb-article-content ul {
    margin: 1rem 0 1.5rem 1.2rem;
}

.kb-article-content li {
    margin-bottom: 0.5rem;
}

.kb-article-content a:not(.cta-button):not(.button):not(.pricing-btn) {
    color: #ffd400;
    text-decoration: underline;
}

/* =======
   REVIEWS
   ======= */

.google-review-link {
    margin-top: 0.75rem;
    font-size: 0.85rem;
}

.google-review-link a {
    color: #ffd400;
    text-decoration: none;
}

.google-review-link a:hover {
    text-decoration: underline;
}

/* ============================================================
   GLOBAL SECTION HEADINGS (H2)
   ============================================================ */

h2 {
    color: var(--color-accent); /* Brand yellow */
    font-weight: 700;
    margin-bottom: 1rem;
}

/* Ensure good contrast in light mode */
html.light-mode h2 {
    color: var(--color-accent);
}

/* Ensure consistency in dark mode */
html.dark-mode h2 {
    color: var(--color-accent);
}

.section h2,
.service-section h2,
.service-details h2,
.service-target h2,
.faq-section h2,
.faq-category-title {
    color: var(--color-accent) !important;
}

/* ==============
   SOCIAL LINKS
   ============== */

.social-links {
    margin-top: 20px;
    margin-bottom: 20px;
    display: flex;
    gap: 14px;
    align-items: center;
    justify-content: center;
}

.social-links a {
    width: 38px;
    height: 38px;
    border-radius: 8px;

    display: flex;
    align-items: center;
    justify-content: center;

    border: 1px solid var(--color-border-dark);
    color: var(--color-text-primary);
    background: transparent;

    transition: transform 0.2s ease,
                background 0.2s ease,
                color 0.2s ease;
}

.social-links a:hover {
    background: var(--color-accent);
    color: #000;
    transform: translateY(-2px);
}

.social-links svg {
    width: 18px;
    height: 18px;
}

/* Light mode */
html.light-mode .social-links a {
    border-color: var(--color-border-light);
    color: var(--color-light-text-primary);
}


/* ==============
   TOOLS
   ============== */

.tool-results {
    margin-top: 40px;
}

.tool-card {
    max-width: 900px;
    margin: 0 auto 24px;
    padding: 24px;
    background: var(--color-surface-2);
    border-radius: 12px;
    box-shadow: var(--shadow-card);
}

html.light-mode .tool-card {
    background: var(--color-light-card);
    border: 1px solid var(--color-border-light);
}

.tool-title {
    margin-bottom: 16px;
}

/* Tables */
.tool-table {
    width: 100%;
    border-collapse: collapse;
}

.tool-table td {
    padding: 10px 8px;
    border-bottom: 1px solid var(--color-border-dark);
}

html.light-mode .tool-table td {
    border-bottom: 1px solid var(--color-border-light);
}

.tool-status {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Status colours (icon-ready) */
.status-ok { color: #22c55e; }
.status-bad { color: #ef4444; }
.status-warn { color: #f59e0b; }

/* Suggestions */
.suggestion-group {
    margin-top: 16px;
}

.suggestion-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 8px;
}

.suggestion-chip {
    padding: 6px 10px;
    border-radius: 6px;
    background: var(--color-surface-3);
    font-size: 14px;
}

html.light-mode .suggestion-chip {
    background: var(--color-light-3);
}

.tool-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    max-width: 1100px;
    margin: 40px auto;
}

@media (max-width: 900px) {
    .tool-grid {
        grid-template-columns: 1fr;
    }
}

/* ============================================================
   TOOLS — SEARCH
   ============================================================ */

.tool-search {
    max-width: 600px;
    margin: auto;
    display: flex;
    gap: 12px;
    align-items: center;
}

.tool-search input {
    flex: 1;
    height: 48px;
    padding: 0 14px;
    border-radius: 6px;
    border: 1px solid var(--color-border-light);
    font-size: 16px;
    background: var(--color-surface-2);
    color: var(--color-text-primary);
    text-align: center;
}

html.light-mode .tool-search input {
    background: var(--color-light-2);
    color: var(--color-light-text-primary);
}

.tool-search button {
    height: 48px;
    padding: 0 24px;
    background: var(--color-accent);
    color: #000;
    font-weight: bold;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    font-size: 16px;
    transition: var(--transition-fast);
}

.tool-search button:hover {
    background: var(--color-accent-hover);
}

/* ============================================================
   TOOLS — REFINEMENT
   ============================================================ */

.tool-refine {
    max-width: 300px;
    margin: 12px auto 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-size: 14px;
}

.tool-refine label {
    opacity: 0.8;
}

.tool-refine select {
    height: 42px;
    padding: 0 12px;
    border-radius: 6px;
    border: 1px solid var(--color-border-light);
    background: var(--color-surface-2);
    color: var(--color-text-primary);
    font-size: 15px;
}

html.light-mode .tool-refine select {
    background: var(--color-light-2);
    color: var(--color-light-text-primary);
}

/* ============================================================
   TOOLS — TILE EXTENSIONS
   ============================================================ */

.service-box.tool-box {
    cursor: default;
    max-width: 360px;
}

/* Tool content inside tiles */
.tool-content {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* Individual result row */
.tool-row {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    font-size: 14px;
}

/* Prevent long text overflow */
.tool-row span:first-child {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Status colours */
.tool-row.available {
    color: #7CFC00;
}

.tool-row.taken {
    color: #ff6b6b;
}

.tool-row.warn {
    color: #f1c40f;
}

.tool-loader {
    margin-top: 20px;
    height: 8px;
    width: 100%;
    background: var(--color-border-light);
    overflow: hidden;
    border-radius: 2px;
}

.tool-loader::after {
    content: '';
    display: block;
    height: 100%;
    width: 40%;
    background: var(--color-accent);
    animation: tool-loading 1.2s infinite;
}

@keyframes tool-loading {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(250%); }
}

.copy-feedback {
    font-size: 12px;
    opacity: 0.8;
    margin-left: 6px;
}

/* ============================================================
   TOOLS – SUGGESTIONS
   ============================================================ */

.tool-suggestions {
    margin-top: 40px;
    padding: 25px;
    border-radius: 12px;
    background: var(--color-surface-2);
    box-shadow: var(--shadow-card);
}

html.light-mode .tool-suggestions {
    background: var(--color-light-card);
    border: 1px solid var(--color-border-light);
}

.tool-suggestions h3 {
    margin-bottom: 20px;
}

.suggestion-group {
    margin-bottom: 20px;
}

.suggestion-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}

.suggestion-chip {
    padding: 8px 14px;
    border-radius: 20px;
    background: rgba(255, 215, 0, 0.12);
    color: var(--color-text-primary);
    border: 1px solid var(--color-accent);
    font-size: 14px;
    cursor: pointer;
    transition: var(--transition-fast);
}

html.light-mode .suggestion-chip {
    background: rgba(255, 215, 0, 0.18);
    color: var(--color-light-text-primary);
}

.suggestion-chip:hover {
    background: var(--color-accent);
    color: #000;
}

/* ============================================================
   TOOLS — SUGGESTION COPY
   ============================================================ */

.suggestion-list {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
}

.suggestion-chip-wrap {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border-radius: 20px;
    background: rgba(255, 215, 0, 0.12);
    border: 1px solid var(--color-accent);
}

html.light-mode .suggestion-chip-wrap {
    background: rgba(255, 215, 0, 0.18);
}

.suggestion-chip-text {
    font-size: 14px;
    white-space: nowrap;
}

.suggestion-copy {
    background: none;
    border: none;
    cursor: pointer;
    padding: 2px;
    color: var(--color-accent);
    font-size: 13px;
    transition: var(--transition-fast);
}

.suggestion-copy svg {
    width: 16px;
    height: 16px;
}

.suggestion-copy:hover {
    transform: scale(1.1);
}

/* Copied state */
.suggestion-copy.copied {
    color: #7CFC00;
    font-weight: bold;
}

/* ============================================================
   TOOLS — CTA
   ============================================================ */

.tool-cta {
    margin-top: 50px;
    padding: 30px;
    border-radius: 12px;
    text-align: center;
    background: linear-gradient(
        135deg,
        rgba(255, 215, 0, 0.12),
        rgba(255, 215, 0, 0.05)
    );
    box-shadow: var(--shadow-card);
}

html.light-mode .tool-cta {
    background: linear-gradient(
        135deg,
        rgba(255, 215, 0, 0.2),
        rgba(255, 215, 0, 0.08)
    );
}

.tool-cta h3 {
    margin-bottom: 12px;
}

.tool-cta p {
    max-width: 600px;
    margin: 0 auto 20px;
    opacity: 0.9;
}

.tool-cta-actions {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.tool-cta .cta-link {
    font-weight: 600;
    text-decoration: underline;
    color: var(--color-text-primary);
}

/* ============================================================
   WEBSITE SECURITY SCANNER – RESULT STATES
   ============================================================ */

/* Space above each scanner tile */
#scan-results .card {
    margin-top: 1.25rem;
}

/* Base styling for all scan result cards */
#scan-results .card {
    border-left: 6px solid transparent;
}

/* PASS – Low risk (Green) */
#scan-results .status-pass {
    border-left-color: #28a745;
    background-color: rgba(40, 167, 69, 0.05);
}

/* WARN – Medium risk (Orange) */
#scan-results .status-warn {
    border-left-color: #f0ad4e;
    background-color: rgba(240, 173, 78, 0.08);
}

/* FAIL – High risk (Red) */
#scan-results .status-fail {
    border-left-color: #dc3545;
    background-color: rgba(220, 53, 69, 0.08);
}

/* Headings inherit severity colour */
#scan-results .status-pass h3 {
    color: #28a745;
}

#scan-results .status-warn h3 {
    color: #f0ad4e;
}

#scan-results .status-fail h3 {
    color: #dc3545;
}

/* Recommendation emphasis */
#scan-results .recommendation {
    margin-top: 0.75rem;
    font-weight: 600;
}

/* Small screens – reduce visual weight */
@media (max-width: 600px) {
    #scan-results .card {
        border-left-width: 4px;
    }
}

/* ============================================================
   SECURITY SCANNER — EMAIL REFINE
   ============================================================ */

.security-scan-email input {
    max-width: 420px;
    margin: 0 auto;
    display: block;
    height: 44px;
    padding: 0 14px;
    border-radius: 6px;
    border: 1px solid var(--color-border-light);
    background: var(--color-surface-2);
    color: var(--color-text-primary);
    text-align: center;
}

html.light-mode .security-scan-email input {
    background: var(--color-light-2);
    color: var(--color-light-text-primary);
}

/* ============================================================
   SECURITY SCANNER — PROGRESS LOADER
   ============================================================ */

.security-loader {
    max-width: 600px;
    margin: 30px auto 10px;
}

.security-loader-bar {
    position: relative;
    height: 8px;
    width: 100%;
    background: var(--color-border-light);
    border-radius: 4px;
    overflow: hidden;
}

.security-loader-bar::after {
    content: '';
    position: absolute;
    top: 0;
    left: -40%;
    height: 100%;
    width: 40%;
    background: var(--color-accent);
    animation: security-loader-move 1.4s infinite ease-in-out;
}

.security-loader-text {
    margin-top: 12px;
    text-align: center;
    font-size: 14px;
    color: var(--color-text-secondary);
}

@keyframes security-loader-move {
    0% {
        left: -40%;
    }
    100% {
        left: 120%;
    }
}

/* ==============================
   TOOL FILE INPUT (ATS, future tools)
   ============================== */

.tool-search input[type="file"] {
    flex: 1;
    height: 48px;
    padding: 0 14px;
    border: 1px solid var(--color-border);
    border-radius: 6px;
    background: var(--color-bg);
    color: var(--color-text-primary);
    cursor: pointer;
}

/* Remove ugly default focus outline */
.tool-search input[type="file"]:focus {
    outline: none;
    border-color: var(--color-accent);
}

/* Optional: improve file button appearance (Chrome, Edge) */
.tool-search input[type="file"]::file-selector-button {
    margin-right: 12px;
    border: none;
    background: var(--color-accent);
    color: #000;
    padding: 8px 12px;
    border-radius: 4px;
    cursor: pointer;
    margin-bottom:12px;
}

html.light-mode .tool-search input[type="file"] {
    border: 1px solid var(--color-border);
    background: var(--color-bg);
}

/* ==============================
   ATS RESULTS – PRIMARY SCORE
   ============================== */

.tool-box-primary {
    text-align: center;
}

.tool-score {
    margin-bottom: 12px;
}

.tool-score-value {
    font-size: 56px;
    font-weight: 700;
    line-height: 1;
    color: var(--color-accent);
}

.tool-score-value span {
    font-size: 20px;
    font-weight: 500;
    color: var(--color-text-secondary);
}

.tool-score-label {
    margin-top: 6px;
    font-size: 14px;
    color: var(--color-text-secondary);
}

/* ==============================
   ATS VERDICT
   ============================== */

.tool-verdict {
    margin-top: 10px;
}

.tool-verdict-label {
    display: block;
    font-size: 13px;
    color: var(--color-text-secondary);
    margin-bottom: 2px;
}

.tool-verdict-value {
    font-size: 20px;
    font-weight: 600;
    color: var(--color-text-primary);
}

/* ==============================
   ATS BREAKDOWN TABLE
   ============================== */

.tool-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 12px;
}

.tool-table th,
.tool-table td {
    padding: 10px 12px;
    text-align: justify;
    border-bottom: 1px solid var(--color-border);
    font-size: 14px;
}

.tool-table th {
    font-weight: 600;
    color: var(--color-text-primary);
}

.tool-table td {
    color: var(--color-text-secondary);
}

/* Add vertical spacing between stacked tool boxes */
.tool-box {
    margin-top: 20px;
}

/* Slightly more spacing when following a primary box */
.tool-box-primary{
    margin-top: 28px;
}
/* ==============================
   MOBILE REFINEMENTS
   ============================== */

@media (max-width: 640px) {
    .tool-score-value {
        font-size: 44px;
    }

    .tool-verdict-value {
        font-size: 18px;
    }
}

/* ============================================================
   END OF CSS — MOTASK.DEV CLEAN PRODUCTION THEME SYSTEM
   ============================================================ */
