/* SME Cyber Solutions - Global Styles - CLEANED VERSION */
/* All duplicates removed, conflicts resolved, organised by standard CSS structure */

/* ==========================================================================
   1. TOOL SECTIONS & EMERGENCY FIXES (moved to top for specificity)
   ========================================================================== */
.tool-section { display: none !important; }
.tool-section.active { display: block !important; }
.tool-tab { cursor: pointer; }

.tool-tabs {
    display: flex;
    margin: 2rem 0;
    border-radius: 12px;
    overflow: hidden;
    background: #f8f9fa;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.tool-tab {
    flex: 1;
    padding: 1.2rem 2rem;
    text-align: center;
    cursor: pointer;
    font-weight: 600;
    font-size: 1.1rem;
    border: none;
    background: transparent;
    transition: all 0.3s ease;
    color: var(--dark-grey);
}

.tool-tab.active, .tool-tab:hover {
    background: var(--primary-blue);
    color: var(--white);
}

/* ==========================================================================
   2. CSS CUSTOM PROPERTIES
   ========================================================================== */
:root {
    --primary-blue: #1E90FF;
    --electric-blue: #00D4FF;
    --deep-blue: #0047AB;
    --navy: #1A365D;
    --cyan: #00CED1;
    --light-blue: #E6F7FF;
    --medium-grey: #E0E0E0;
    --dark-grey: #4A5568;
    --success-green: #10B981;
    --accent-orange: #FF6B35;
    --accent-purple: #8B5CF6;
    --white: #FFFFFF;
    --text-dark: #1A202C;
    --gradient-1: linear-gradient(135deg, #1E90FF 0%, #00D4FF 100%);
    --gradient-2: linear-gradient(135deg, #0047AB 0%, #1E90FF 100%);
    --gradient-3: linear-gradient(135deg, #00CED1 0%, #1E90FF 100%);
}

/* ==========================================================================
   3. RESET & BASE STYLES
   ========================================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Open Sans', 'Segoe UI', sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
    font-size: 16px;
}

/* ==========================================================================
   4. TYPOGRAPHY
   ========================================================================== */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Poppins', 'Montserrat', sans-serif;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
}

h1 { font-size: 3rem; }
h2 { 
    font-size: 2.5rem; 
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
h3 { font-size: 2rem; }
h4 { font-size: 1.5rem; }
h5 { font-size: 1.25rem; }

.card h3 {
    font-size: 1.5rem;
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
}

.card h3:first-of-type {
    margin-top: 1rem;
}

p { margin-bottom: 1rem; }

/* ==========================================================================
   5. LAYOUT
   ========================================================================== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.container-wide {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

section {
    padding: 80px 0;
    overflow: auto;
}

section.grey-bg {
    background: linear-gradient(to bottom, #F8FAFC 0%, #E6F7FF 100%);
}

section.hero {
    margin-bottom: 2rem !important;
}

/* Grid Systems - Consolidated */
.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: start;
}

.grid-2 > div {
    display: flex;
    flex-direction: column;
}

.grid-2 > div .card {
    flex-grow: 0;
    margin-bottom: 1rem;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    align-items: stretch;
}

.grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    align-items: stretch;
}

.grid-2 > div:first-child ul {
    list-style: none;
    padding-left: 0;
    margin: 0.75rem 0 1rem 0;
}

.grid-2 > div:first-child ul li {
    position: relative;
    padding-left: 2rem;
    margin-bottom: 0.25rem;
    color: var(--dark-grey);
    line-height: 1.6;
}

.grid-2 > div:first-child ul li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--success-green);
    font-weight: bold;
    font-size: 1.1rem;
}

.grid-2 > div h3 {
    margin-top: 1rem;
    margin-bottom: 0.75rem;
    font-size: 1.5rem;
}

/* ==========================================================================
   6. HEADER & NAVIGATION
   ========================================================================== */
header {
    background: var(--white);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 0;
    min-height: 80px;
}

.logo {
    font-size: 1rem;
    font-weight: 700;
    color: var(--primary-blue);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    max-width: 250px;
}

.logo img {
    height: 40px !important;
    width: auto !important;
    max-height: 40px !important;
    max-width: 240px !important;
    object-fit: contain;
    display: block;
}

.logo span { display: none; }

.nav-links {
    display: flex;
    list-style: none;
    gap: 2.5rem;
    align-items: center;
}

.nav-links a {
    text-decoration: none;
    color: var(--navy);
    font-weight: 500;
    font-size: 1.05rem;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: var(--primary-blue);
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--navy);
}

/* ==========================================================================
   7. BUTTONS
   ========================================================================== */
.btn {
    display: inline-block;
    padding: 14px 32px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
    border: 2px solid transparent;
    cursor: pointer;
    font-size: 1rem;
}

.btn-primary {
    background: var(--gradient-1);
    color: var(--white);
    border: none;
    animation: pulse-glow 2s ease-in-out infinite;
}

.btn-primary:hover {
    background: var(--gradient-2);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(30, 144, 255, 0.4);
}

.btn-secondary {
    background: #FFFFFF;
    color: var(--deep-blue);
    border: 3px solid #FFFFFF;
    position: relative;
    overflow: hidden;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
    font-weight: 700;
}

.btn-secondary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--gradient-1);
    transition: left 0.3s ease;
    z-index: -1;
}

.btn-secondary:hover {
    color: var(--white);
    border-color: transparent;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(30, 144, 255, 0.5);
}

.btn-secondary:hover::before {
    left: 0;
}

.btn-large {
    padding: 18px 40px;
    font-size: 1.1rem;
}

/* ==========================================================================
   8. HERO SECTION
   ========================================================================== */
.hero {
    background: var(--gradient-1);
    background-size: 200% 200%;
    animation: gradient-shift 15s ease infinite;
    padding: 100px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 20% 50%, rgba(0, 212, 255, 0.3) 0%, transparent 50%),
                radial-gradient(circle at 80% 80%, rgba(30, 144, 255, 0.3) 0%, transparent 50%);
    pointer-events: none;
}

.hero .container {
    position: relative;
    z-index: 1;
}

.hero h1 {
    margin-bottom: 1.5rem;
    color: var(--white);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.hero .subheadline {
    font-size: 1.3rem;
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 2rem;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.hero .supporting-text {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2.5rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    font-style: italic;
}

.hero-cta {
    display: flex;
    gap: 1rem;
    justify-content: center;
    align-items: center;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

/* ==========================================================================
   9. SECTION HEADERS
   ========================================================================== */
.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header h2 {
    margin-bottom: 1rem;
}

.section-header .subheadline {
    font-size: 1.2rem;
    color: var(--dark-grey);
    max-width: 700px;
    margin: 0 auto;
}

/* ==========================================================================
   10. CARDS & CONTENT BLOCKS
   ========================================================================== */
.card {
    background: var(--white);
    border-radius: 10px;
    padding: 2rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
    border-top: 3px solid transparent;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.card > * {
    flex-shrink: 0;
}

.card > p {
    flex-grow: 1;
}

.card > .btn, .card > a.btn {
    margin-top: auto;
}

.card .btn {
    align-self: flex-start;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(30, 144, 255, 0.2);
    border-top-color: var(--primary-blue);
}

/* ========================== */
/* Card Icons & Card Styling  */
/* ========================== */

/* Card icons — visible, crisp, consistent across all pages */
.card-icon {
    font-size: 5rem;                          /* size of the icon */
    display: inline-block;
    line-height: 1;
    color: #FFFFFF;                            /* solid white color */
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.4); /* subtle shadow for contrast */
    background: none !important;               /* remove any inherited gradients */
    -webkit-background-clip: unset !important;
    -webkit-text-fill-color: unset !important;
    background-clip: unset !important;
    margin-bottom: 1rem;
    vertical-align: middle;
}

/* Card container */
.card {
    background: var(--white);
    border-radius: 10px;
    padding: 2rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
    border-top: 3px solid transparent;
    display: flex;
    flex-direction: column;
    height: 100%;
}

/* Card headings */
.card h3 {
    margin-bottom: 1rem;
    color: var(--navy);
    font-size: 1.5rem;
}

/* Strong text inside paragraphs */
.card p strong {
    color: var(--navy);
}

/* Card paragraph text */
.card p {
    color: var(--dark-grey);
    line-height: 1.6;
}

/* Card lists */
.card ul {
    list-style: none;
    margin: 1rem 0;
    padding-left: 0;
}

/* Card list items */
.card ul li {
    position: relative;
    padding: 0.5rem 0 0.5rem 1.5rem;
    color: var(--dark-grey);
    line-height: 1.6;
}

/* List item checkmarks */
.card ul li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--success-green);
    font-weight: bold;
}

/* Negative comparison styling */
.card.comparison-negative ul li::before {
    content: "✗";
    color: #dc3545;
}

/* Nested cards inside cards */
.card .card {
    margin-top: 1.5rem;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.08);
}

/* Nested card headings */
.card .card h4 {
    margin-bottom: 0.75rem;
    font-size: 1.25rem;
    color: var(--navy);
}

/* Hover effect for cards */
.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(30, 144, 255, 0.2);
    border-top-color: var(--primary-blue);
}

/* ==========================================================================
   11. TESTIMONIALS
   ========================================================================== */
.testimonial {
    background: var(--white);
    border-radius: 10px;
    padding: 2rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    border-left: 4px solid transparent;
    background-image: linear-gradient(white, white), var(--gradient-1);
    background-origin: border-box;
    background-clip: padding-box, border-box;
    transition: all 0.3s ease;
}

.testimonial:hover {
    box-shadow: 0 8px 25px rgba(30, 144, 255, 0.2);
    transform: translateY(-3px);
}

.testimonial-text {
    font-style: italic;
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    color: var(--dark-grey);
    line-height: 1.7;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.testimonial-author strong {
    display: block;
    color: var(--navy);
    margin-bottom: 0.25rem;
}

.testimonial-author span {
    font-size: 0.9rem;
    color: var(--dark-grey);
}

/* ==========================================================================
   12. CTA & BUTTON GROUPS
   ========================================================================== */
.cta-buttons {
    display: flex;
    gap: 1rem;
    align-items: center;
    flex-wrap: wrap;
}

/* ==========================================================================
   13. TEAM
   ========================================================================== */
.team-member {
    text-align: center;
}

.team-photo {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    margin: 0 auto 1.5rem;
    overflow: hidden;
    border: 4px solid var(--primary-blue);
}

.team-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.team-member h4 {
    color: var(--navy);
    margin-bottom: 0.5rem;
}

.team-member .role {
    color: var(--primary-blue);
    font-weight: 600;
    margin-bottom: 1rem;
    display: block;
}

.team-member p {
    color: var(--dark-grey);
    text-align: left;
}

/* ==========================================================================
   14. PROCESS TIMELINE
   ========================================================================== */
.process-timeline {
    position: relative;
    padding: 2rem 0;
}

.process-step {
    display: flex;
    gap: 2rem;
    margin-bottom: 3rem;
    position: relative;
}

.step-number {
    flex-shrink: 0;
    width: 80px;
    height: 80px;
    background: var(--gradient-1);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: bold;
    box-shadow: 0 4px 15px rgba(30, 144, 255, 0.3);
}

.step-content {
    flex: 1;
}

.step-content h3 {
    color: var(--navy);
    margin-bottom: 0.5rem;
}

.step-timeline {
    font-size: 0.9rem;
    color: var(--primary-blue);
    font-weight: 600;
    margin-bottom: 1rem;
}

/* ==========================================================================
   15. FORMS
   ========================================================================== */
.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--navy);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid var(--medium-grey);
    border-radius: 5px;
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-blue);
}

.form-group textarea {
    min-height: 150px;
    resize: vertical;
}

/* ==========================================================================
   16. FAQ
   ========================================================================== */
.faq-item {
    background: var(--white);
    border-radius: 10px;
    padding: 2rem;
    margin-bottom: 1rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.faq-question {
    font-weight: 600;
    color: var(--navy);
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

.faq-answer {
    color: var(--dark-grey);
}

/* ==========================================================================
   17. TRUST BADGES
   ========================================================================== */
.trust-badges {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
    align-items: center;
    padding: 2rem 0;
    margin-top: 2rem;
    border-top: 1px solid var(--medium-grey);
}

.trust-badge {
    font-size: 0.9rem;
    color: var(--dark-grey);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.trust-badge::before {
    content: "✓";
    color: var(--success-green);
    font-weight: bold;
    font-size: 1.2rem;
    background: linear-gradient(135deg, #10B981 0%, #00CED1 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ==========================================================================
   18. SECURITY TOOLS SPECIFIC
   ========================================================================== */
.tool-card {
    background: var(--white);
    padding: 2.5rem;
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.1);
    margin-bottom: 2rem;
}

.tool-input {
    width: 100%;
    padding: 1rem 1.5rem;
    border: 2px solid var(--medium-grey);
    border-radius: 12px;
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    transition: border-color 0.3s ease;
}

.tool-input:focus {
    outline: none;
    border-color: var(--primary-blue);
}

.tool-button {
    background: var(--gradient-1);
    color: var(--white);
    padding: 1rem 2.5rem;
    border: none;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
}

.tool-button:hover:not(:disabled) {
    background: var(--gradient-2);
    transform: translateY(-2px);
}

.tool-button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.loader {
    border: 4px solid #f3f3f3;
    border-top: 4px solid var(--primary-blue);
    border-radius: 50%;
    width: 48px;
    height: 48px;
    animation: spin 1s linear infinite;
    margin: 2rem auto;
}

.results-container {
    margin-top: 2rem;
}

.results-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.result-item {
    padding: 1.5rem;
    border-radius: 12px;
    text-align: center;
    font-weight: 600;
    font-size: 1.1rem;
}

.result-item.pass { 
    background: #d4edda; 
    color: #155724; 
    border: 2px solid #c3e6cb; 
}

.result-item.warning { 
    background: #fff3cd; 
    color: #856404; 
    border: 2px solid #ffeaa7; 
}

.result-item.fail { 
    background: #f8d7da; 
    color: #721c24; 
    border: 2px solid #f5c6cb; 
}

.info-box {
    background: var(--light-blue);
    padding: 1.5rem 2rem;
    border-radius: 12px;
    border-left: 4px solid var(--primary-blue);
    margin-bottom: 2rem;
}

.info-box h4 {
    margin-bottom: 1rem;
    color: var(--navy);
}

.info-box ul {
    margin: 0;
    padding-left: 0;
}

.info-box ul li {
    padding: 0.5rem 0;
    color: var(--dark-grey);
    line-height: 1.8;
}

/* ==========================================================================
   19. FOOTER
   ========================================================================== */
footer {
    background: var(--gradient-2);
    color: var(--white);
    padding: 60px 0 30px;
    position: relative;
    overflow: hidden;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, rgba(0, 212, 255, 0.5) 50%, transparent 100%);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h4 {
    color: var(--white);
    margin-bottom: 1rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section a {
    color: var(--light-grey);
    text-decoration: none;
    transition: color 0.3s;
}

.footer-section a:hover {
    color: var(--primary-blue);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--light-grey);
}

.partner-logos {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
    align-items: center;
    margin-top: 1rem;
}

.partner-logo {
    background: linear-gradient(135deg, #F8FAFC 0%, #E6F7FF 100%);
    padding: 0.5rem 1rem;
    border-radius: 5px;
    font-size: 0.85rem;
    color: var(--navy);
    font-weight: 600;
    border: 1px solid rgba(30, 144, 255, 0.2);
    transition: all 0.3s ease;
}

.partner-logo:hover {
    background: var(--gradient-1);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(30, 144, 255, 0.3);
}

/* ==========================================================================
   20. CTA SECTIONS
   ========================================================================== */
.cta-section {
    background: var(--gradient-2);
    color: var(--white);
    text-align: center;
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(0, 212, 255, 0.2) 0%, transparent 70%);
    border-radius: 50%;
}

.cta-section::after {
    content: '';
    position: absolute;
    bottom: -50%;
    left: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(0, 206, 209, 0.2) 0%, transparent 70%);
    border-radius: 50%;
}

.cta-section h2 {
    color: var(--white);
    margin-bottom: 1rem;
}

.cta-section .subheadline {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.95;
}

.cta-section .btn-primary {
    background: var(--white);
    color: var(--primary-blue);
}

.cta-section .btn-primary:hover {
    background: var(--light-grey);
}

.cta-section .btn-secondary {
    border-color: var(--white);
    color: var(--white);
}

.cta-section .btn-secondary:hover {
    background: var(--white);
    color: var(--primary-blue);
}

/* ==========================================================================
   21. UTILITY CLASSES
   ========================================================================== */
.text-center { text-align: center; }

.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }
.mb-3 { margin-bottom: 3rem; }
.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mt-3 { margin-top: 3rem; }

/* ==========================================================================
   22. ANIMATIONS
   ========================================================================== */
@keyframes gradient-shift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

@keyframes pulse-glow {
    0%, 100% { box-shadow: 0 4px 12px rgba(30, 144, 255, 0.3); }
    50% { box-shadow: 0 8px 20px rgba(30, 144, 255, 0.5); }
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* ==========================================================================
   23. RESPONSIVE DESIGN
   ========================================================================== */
@media (max-width: 992px) {
    .grid-2 {
        grid-template-columns: 1fr;
    }
    .grid-2 > div .card {
        margin-bottom: 1.5rem;
    }
}

/* ==========================================================================
   FINAL FIXED NAVIGATION & RESPONSIVE LOGIC
   ========================================================================== */

@media (max-width: 768px) {
    h1 { font-size: 2rem; }
    h2 { font-size: 1.75rem; }
    h3 { font-size: 1.5rem; }

    /* Layout Adjustments */
    .grid-2, .grid-3, .grid-4 {
        grid-template-columns: 1fr;
    }

    .footer-content {
        grid-template-columns: 1fr;
    }

    .hero {
        padding: 60px 0;
    }

    .hero-cta {
        flex-direction: column;
        align-items: center;
    }

    section {
        padding: 60px 0;
    }

    .process-step {
        flex-direction: column;
    }

    /* BURGER MENU FIX START */
    .mobile-menu-toggle {
        display: block; /* Show burger on mobile */
        font-size: 2.5rem;
        cursor: pointer;
        background: none;
        border: none;
        position: relative;
        z-index: 10001; /* Stays above the sliding menu */
        color: var(--navy);
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -300px; /* Hidden off-screen */
        width: 250px;
        height: 100vh;
        background: var(--white);
        flex-direction: column;
        padding: 5rem 2rem; 
        gap: 1.5rem;
        transition: right 0.3s ease-in-out;
        z-index: 10000;
        overflow-y: auto;
        display: flex; 
        box-shadow: -5px 0 15px rgba(0,0,0,0.1);
    }

    .nav-links.active {
        right: 0; /* Slides into view */
    }

    .nav-links li a {
        font-size: 1.2rem;
        padding: 0.8rem 0;
        display: block;
        border-bottom: 1px solid rgba(0,0,0,0.05);
    }

    .nav-links li:last-child a.btn {
        margin-top: 1rem;
        border-bottom: none;
    }
    /* BURGER MENU FIX END */
}

@media (max-width: 576px) {
    .grid-2 > div .card {
        margin-bottom: 1rem;
    }
}

/* Footer partner logos - single line, no hover */
.partner-logos {
    display: flex;
    flex-wrap: nowrap;
    gap: 15px;
    justify-content: center;
    align-items: center;
    margin-top: 10px;
    padding: 10px 0;
    overflow-x: auto;
}

.partner-logo {
    height: 50px;
    width: auto;
    object-fit: contain;
    display: block;
    pointer-events: none;
    transition: none !important;
}

@media (max-width: 768px) {
    .partner-logo {
        height: 40px;
    }
}

@media (max-width: 480px) {
    .partner-logo {
        height: 35px;
    }
}

/* Process step spacing */
.what-you-get {
    margin-top: 1.5rem;
    margin-bottom: 1.5rem;
    font-weight: 600;
}

/* Reset Desktop Styles */
@media (min-width: 769px) {
    .mobile-menu-toggle {
        display: none;
    }

    .nav-links {
        display: flex;
        list-style: none;
        gap: 1.5rem;
        align-items: center;
        position: static;
        background: transparent;
        height: auto;
        width: auto;
        padding: 0;
        box-shadow: none;
    }
}
/* GLOBAL FIX: Ensure bottom CTA and buttons are always clickable */
section, .cta-section {
    position: relative;
    z-index: 1;
}

/* Specifically boost the last section and all primary buttons */
section:last-of-type, 
.btn, 
.btn-primary {
    position: relative;
    z-index: 50 !important;
}

/* Ensure the footer doesn't 'leak' over the section above it */
footer {
    position: relative;
    z-index: 5;
    background-color: var(--navy); /* Ensures it is solid */
}
.hero {padding: 60px 0 40px;}
.tools-section {padding: 3rem 0;}
.tool-tabs {display:flex;gap:10px;margin-bottom:20px;}
.tool-tab {padding:10px 15px;border:1px solid #ccc;border-radius:5px;cursor:pointer;background:#f5f5f5;}
.tool-tab.active {background:#2AA2FF;color:white;}
.tool-section {display:none;margin-top:15px;}
.tool-section.active {display:block;}
.tool-card {background:white;color:black;border:2px solid black;border-radius:8px;padding:20px;margin-bottom:20px;}
.tool-button {padding:10px 15px;border:none;background:#2AA2FF;color:white;border-radius:5px;cursor:pointer;}
.tool-button:hover {background:#0047AB;}
.result-box {background:#fff9e6;border:2px solid black;border-radius:10px;padding:15px;margin-top:15px;}
.result-line {padding:5px;margin:3px 0;border-radius:5px;}
.consequences-box {background:#fff3cd;border:2px solid #ffeeba;border-radius:10px;padding:15px;margin-top:10px;}
.error {background:#ffcccc;color:#990000;padding:10px;border-radius:5px;margin-top:10px;}
input[type=text] {width:100%;padding:10px;border:2px solid black;border-radius:5px;margin-top:5px;margin-bottom:10px;}
.mozilla-note {background:#e6f0ff;border:2px solid #99c2ff;border-radius:8px;padding:10px;margin-top:15px;font-size:14px;}
.mozilla-note em {color:#333;}
@keyframes mozilla-spin {
    from { transform: rotate(0deg); }
    to   { transform: rotate(360deg); }
}
.mozilla-spinner {
    display:inline-block;
    width:18px;
    height:18px;
    border:3px solid #99c2ff;
    border-top-color:transparent;
    border-radius:50%;
    margin-right:8px;
    vertical-align:middle;
    animation:mozilla-spin 0.9s linear infinite;
}
.tool-tab {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 4px;
}

/* optional: adjust sizing on mobile */
@media (max-width: 480px) {
    .tool-tab-icon {
        font-size: 18px;
    }
    .tool-tab-label {
        font-size: 13px;
    }
}
