/* ============================================
   SUSTEMA DYNAMICS – MASTER STYLESHEET
   High contrast, cross‑browser compatible
   ============================================ */

/* ---------- RESET & BASE ---------- */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Inter', 'Proxima Nova', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #1a202c; /* high contrast dark grey */
    background-color: #f7fafc;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ---------- TYPOGRAPHY (high contrast) ---------- */
h1, h2, h3, h4, h5, h6 {
    margin-bottom: 1rem;
    font-weight: 700;
    line-height: 1.2;
    color: #0a2540; /* very dark blue – great contrast */
}

p, li, .text {
    color: #2d3748; /* dark enough on light backgrounds */
}

a {
    color: #2d74da;
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: #1a4f9e;
    text-decoration: underline;
}

/* ---------- CONTAINER ---------- */
.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ---------- HEADER & NAVIGATION ---------- */
header {
    background: #ffffff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    flex-wrap: wrap;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-img {
    height: 40px;
    width: auto;
    border-radius: 6px;
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 700;
    color: #0a2540;
}

.logo-text span {
    color: #2d74da;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 2rem;
    margin: 0;
    padding: 0;
}

nav ul li a {
    font-weight: 600;
    color: #2d3748;
    padding: 0.5rem 0;
}

nav ul li a:hover,
nav ul li a.active {
    color: #2d74da;
}

.menu-toggle {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #0a2540;
}

/* ---------- BUTTONS ---------- */
.btn {
    display: inline-block;
    padding: 12px 28px;
    background: #2d74da;
    color: white;
    border-radius: 40px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

.btn:hover {
    background: #1a4f9e;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.btn-outline {
    background: transparent;
    border: 2px solid #2d74da;
    color: #2d74da;
}

.btn-outline:hover {
    background: #2d74da;
    color: white;
}

/* ---------- HERO SECTION ---------- */
.hero {
    background: linear-gradient(135deg, #0a2540 0%, #2d74da 100%);
    color: white;
    padding: 160px 0 100px;
    text-align: center;
}

.hero h1 {
    color: white;
    font-size: 3rem;
    margin-bottom: 1rem;
}

.hero p {
    color: #f0f4fa; /* light but readable on dark background */
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto 2rem;
}

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

/* Page hero (inner pages) */
.page-hero {
    background: linear-gradient(135deg, #0a2540 0%, #2d74da 100%);
    color: white;
    padding: 140px 0 70px;
    text-align: center;
}

.page-hero h1 {
    color: white;
    font-size: 2.8rem;
}

.page-hero p {
    color: #f0f4fa;
    font-size: 1.1rem;
}

/* ---------- FEATURE CARDS (homepage) ---------- */
.features {
    padding: 80px 0;
    background: white;
}

.features h2,
.testimonials h2,
.contact h2 {
    text-align: center;
    margin-bottom: 3rem;
    color: #0a2540;
}

.features h2::after,
.testimonials h2::after,
.contact h2::after {
    content: '';
    position: absolute;
    bottom: -12px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: #2d74da;
    border-radius: 2px;
}

.features-grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

.feature-card {
    background: #f8fafc;
    padding: 2rem;
    border-radius: 24px;
    text-align: center;
    transition: all 0.3s;
    border: 1px solid #e2e8f0;
}

.feature-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.feature-icon {
    font-size: 2.5rem;
    color: #2d74da;
    margin-bottom: 1rem;
}

.feature-card h3 {
    color: #0a2540;
    margin-bottom: 0.75rem;
}

.feature-card p {
    color: #2d3748;
}

.service-link {
    display: inline-block;
    margin-top: 1rem;
    font-weight: 600;
    color: #2d74da;
}

/* ---------- TESTIMONIALS ---------- */
.testimonials {
    padding: 80px 0;
    background: #f8fafc;
}

.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.testimonial-card {
    background: white;
    padding: 2rem;
    border-radius: 24px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.05);
}

.testimonial-text {
    font-style: italic;
    margin-bottom: 1rem;
    color: #1a202c;
}

/* ---------- CONTACT SECTION ---------- */
.contact {
    padding: 80px 0;
    background: white;
}

.contact-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

.contact-form {
    background: #f8fafc;
    padding: 2rem;
    border-radius: 24px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1rem;
}

.form-group {
    margin-bottom: 1rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #0a2540;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #cbd5e0;
    border-radius: 12px;
    font-family: inherit;
    font-size: 1rem;
    background: white;
    color: #1a202c;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: #2d74da;
}

.success-message,
.error-message {
    display: none;
    padding: 0.75rem;
    border-radius: 12px;
    margin-top: 1rem;
}

.success-message {
    background: #c6f6d5;
    color: #22543d;
}

.error-message {
    background: #fed7d7;
    color: #742a2a;
}

/* Contact info */
.contact-info {
    padding: 1rem 0;
}

.contact-item {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.contact-icon {
    font-size: 1.4rem;
    color: #2d74da;
    width: 32px;
}

.contact-info h4 {
    color: #0a2540;
    margin-bottom: 0.25rem;
}

.contact-info p {
    color: #2d3748;
}

/* ---------- SERVICES PAGE SPECIFIC ---------- */
.services-grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    margin: 3rem 0;
}

.service-card {
    background: white;
    border-radius: 24px;
    padding: 1.8rem;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #eef2f6;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.service-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 32px rgba(0, 0, 0, 0.1);
}

.service-icon {
    font-size: 2.2rem;
    color: #1E4A76;
    margin-bottom: 1.2rem;
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
    color: #0a2540;
}

.service-card p {
    color: #2d3748;
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
    line-height: 1.5;
}

.service-features {
    list-style: none;
    padding: 0;
    margin: 0;
    flex-grow: 1;
}

.service-features li {
    font-size: 0.9rem;
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    color: #2d3748;
}

.service-features li i {
    color: #2d74da;
    font-size: 0.85rem;
    width: 18px;
    flex-shrink: 0;
}

/* Full‑width cards (Development Process, How We Work, Why Us) */
.full-width-card {
    width: 100%;
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border-radius: 32px;
    padding: 2.5rem;
    margin: 2rem 0;
    box-shadow: 0 20px 35px -10px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(45, 116, 218, 0.1);
}

.full-width-card h3 {
    font-size: 1.8rem;
    color: #0a2540;
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 12px;
}

.full-width-card h3 i {
    color: #2d74da;
    font-size: 2rem;
}

.full-width-card .subhead {
    font-size: 1.1rem;
    color: #2d3748;
    margin-bottom: 2rem;
    border-left: 4px solid #2d74da;
    padding-left: 1rem;
}

/* Two‑column lists */
.two-col-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-top: 1rem;
}

.feature-item {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    background: white;
    padding: 1rem 1.2rem;
    border-radius: 20px;
    transition: all 0.2s;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
    border: 1px solid #eef2f6;
}

.feature-item i {
    font-size: 1.4rem;
    color: #2d74da;
    margin-top: 0.2rem;
}

.feature-item strong {
    display: block;
    margin-bottom: 0.25rem;
    color: #0a2540;
    font-size: 1rem;
}

.feature-item div {
    font-size: 0.9rem;
    color: #2d3748;
    line-height: 1.4;
}

/* Badges */
.badge-container {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin: 1.5rem 0;
}

.badge {
    background: white;
    padding: 0.5rem 1.2rem;
    border-radius: 40px;
    font-weight: 500;
    font-size: 0.85rem;
    color: #0a2540;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.badge i {
    color: #2a7f6e;
}

/* Service delivery approach steps */
.process-steps-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    margin-top: 1rem;
}

.process-step-card {
    background: white;
    border-radius: 24px;
    padding: 1.8rem 1.5rem;
    text-align: center;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.05);
    transition: all 0.3s;
    border: 1px solid #eef2f6;
}

.process-step-number {
    width: 55px;
    height: 55px;
    background: #1E4A76;
    color: white;
    font-size: 1.6rem;
    font-weight: 700;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.2rem;
}

.process-step-card h3 {
    margin-bottom: 0.75rem;
    font-size: 1.3rem;
    color: #0a2540;
}

.process-step-card p {
    font-size: 0.9rem;
    color: #2d3748;
    line-height: 1.5;
}

/* ---------- CAREERS PAGE ---------- */
.careers-intro {
    padding: 80px 0;
    background: white;
}

.intro-content h2 {
    color: #0a2540;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.benefit {
    text-align: center;
    padding: 2rem;
    background: #f8fafc;
    border-radius: 24px;
}

.benefit h3 {
    color: #0a2540;
}

.benefit p {
    color: #2d3748;
}

.benefit-icon {
    font-size: 2rem;
    color: #2d74da;
    margin-bottom: 1rem;
}

.current-openings {
    padding: 80px 0;
    background: #f8fafc;
}

.current-openings h2 {
    color: #0a2540;
}

.vacancies-table-wrapper {
    overflow-x: auto;
    margin-top: 2rem;
}

.vacancies-table {
    width: 100%;
    background: white;
    border-collapse: collapse;
    border-radius: 24px;
    overflow: hidden;
}

.vacancies-table th,
.vacancies-table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid #e2e8f0;
    color: #2d3748;
}

.vacancies-table th {
    background: #e2e8f0;
    font-weight: 600;
    color: #0a2540;
}

.apply-btn {
    background: #2d74da;
    color: white;
    padding: 0.3rem 1rem;
    border-radius: 30px;
    font-size: 0.8rem;
    font-weight: 500;
    display: inline-block;
}

.application-process {
    padding: 80px 0;
    background: white;
}

.application-process h2 {
    color: #0a2540;
}

.process-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 2rem;
    text-align: center;
}

.step-number {
    width: 50px;
    height: 50px;
    background: #2d74da;
    color: white;
    font-size: 1.5rem;
    font-weight: bold;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
}

.process-step h3 {
    color: #0a2540;
}

.process-step p {
    color: #2d3748;
}

/* General application form */
.general-application {
    padding: 80px 0;
    background: #f8fafc;
}

.general-application h2 {
    color: #0a2540;
}

.application-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

.application-info p {
    color: #2d3748;
}

.application-benefits {
    background: white;
    padding: 1.5rem;
    border-radius: 24px;
    margin-top: 1.5rem;
}

.application-benefits ul li {
    color: #2d3748;
    margin-bottom: 0.5rem;
}

/* ---------- ABOUT PAGE ---------- */
.about-story {
    padding: 80px 0;
    background: white;
}

.about-story h2, .about-story h3 {
    color: #0a2540;
}

.timeline {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.milestone {
    background: #f8fafc;
    padding: 1.5rem;
    border-radius: 24px;
    text-align: center;
}

.year {
    font-size: 2rem;
    font-weight: 700;
    color: #2d74da;
}

.milestone p {
    color: #2d3748;
}

.mission-vision {
    padding: 80px 0;
    background: linear-gradient(135deg, #0a2540 0%, #2d74da 100%);
    color: white;
}

.mission-vision .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

.mission h2, .vision h2 {
    color: white;
}

.mission p, .vision p {
    color: #f0f4fa;
}

.core-values {
    padding: 80px 0;
    background: white;
}

.core-values h2 {
    color: #0a2540;
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2rem;
}

.value-card {
    text-align: center;
    padding: 2rem;
    background: #f8fafc;
    border-radius: 24px;
}

.value-card h3 {
    color: #0a2540;
}

.value-card p {
    color: #2d3748;
}

.value-icon {
    font-size: 2rem;
    color: #2d74da;
    margin-bottom: 1rem;
}

.leadership {
    padding: 80px 0;
    background: #f8fafc;
}

.leadership h2 {
    color: #0a2540;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.team-member {
    background: white;
    border-radius: 24px;
    overflow: hidden;
    text-align: center;
    padding: 2rem;
}

.team-member h3 {
    color: #0a2540;
}

.team-member .position {
    color: #2d74da;
    font-weight: 600;
    margin: 0.5rem 0;
}

.team-member .bio {
    color: #2d3748;
}

.impact-stats {
    padding: 80px 0;
    background: linear-gradient(135deg, #0a2540 0%, #2d74da 100%);
    color: white;
}

.impact-stats h2 {
    color: white;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    text-align: center;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: white;
}

.stat-label {
    color: #f0f4fa;
}

/* ---------- LEGAL PAGES (Privacy, Terms, Cookies) ---------- */
.legal-content {
    padding: 80px 0;
    background: white;
}

.legal-content .container {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 3rem;
}

.legal-navigation {
    background: #f8fafc;
    padding: 1.5rem;
    border-radius: 24px;
    position: sticky;
    top: 100px;
    height: fit-content;
}

.legal-navigation h3 {
    color: #0a2540;
}

.legal-nav li a {
    color: #2d3748;
}

.legal-nav li a:hover {
    color: #2d74da;
}

.policy-section h2 {
    color: #0a2540;
}

.policy-section p, .policy-section li {
    color: #2d3748;
}

.notice-box {
    background: #fff3cd;
    border-left: 4px solid #ffc107;
    padding: 1rem;
    margin-bottom: 2rem;
    border-radius: 12px;
}

.notice-box p {
    color: #856404;
}

/* Cookie banner & modal */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #0a2540;
    color: #f0f4fa;
    padding: 1.2rem;
    z-index: 1001;
    display: none;
}

.banner-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.cookie-settings-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1002;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: white;
    max-width: 550px;
    width: 90%;
    padding: 2rem;
    border-radius: 24px;
    max-height: 80vh;
    overflow-y: auto;
}

.modal-content h3, .modal-content h4 {
    color: #0a2540;
}

.modal-content p {
    color: #2d3748;
}

/* Switch for cookie preferences */
.switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 24px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #cbd5e0;
    transition: 0.3s;
    border-radius: 24px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: 0.3s;
    border-radius: 50%;
}

input:checked + .slider {
    background-color: #2d74da;
}

input:checked + .slider:before {
    transform: translateX(26px);
}

/* ---------- FLOATING BUTTONS ---------- */
.floating-buttons {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.whatsapp-float,
.telegram-float {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 55px;
    height: 55px;
    border-radius: 50%;
    font-size: 28px;
    color: white;
    transition: transform 0.2s;
}

.whatsapp-float {
    background: #25D366;
}

.telegram-float {
    background: #0088cc;
}

.whatsapp-float:hover,
.telegram-float:hover {
    transform: scale(1.1);
    color: white;
}

/* ---------- FOOTER (high contrast fix) ---------- */
footer {
    background: #0a2540;
    color: #f0f4fa;
    padding: 60px 0 0;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 1rem;
}

.footer-logo img {
    height: 35px;
    width: auto;
}

.footer-column h3,
.footer-column h4 {
    color: white;
    margin-bottom: 1.2rem;
}

.footer-column p {
    color: #cbd5e0; /* light but readable on dark background */
    line-height: 1.5;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.6rem;
}

.footer-links a {
    color: #cbd5e0;
}

.footer-links a:hover {
    color: white;
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    color: white;
    transition: background 0.2s;
}

.social-links a:hover {
    background: #2d74da;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    padding: 1.5rem 0;
    text-align: center;
    font-size: 0.85rem;
    color: #cbd5e0; /* much lighter than before, readable */
}

/* ---------- RESPONSIVE BREAKPOINTS ---------- */
@media (max-width: 992px) {
    .services-grid-4,
    .features-grid-4,
    .process-steps-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .two-col-list {
        grid-template-columns: 1fr;
    }
    .legal-content .container {
        grid-template-columns: 1fr;
    }
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .mission-vision .container,
    .application-container,
    .contact-container {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }
    nav ul {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 70px;
        left: 0;
        width: 100%;
        background: white;
        padding: 1rem;
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    }
    nav ul.active {
        display: flex;
    }
    .hero h1 {
        font-size: 2rem;
    }
    .page-hero h1 {
        font-size: 1.8rem;
    }
    .services-grid-4,
    .features-grid-4,
    .process-steps-grid {
        grid-template-columns: 1fr;
    }
    .stats-grid {
        grid-template-columns: 1fr;
    }
    .form-row {
        grid-template-columns: 1fr;
    }
    .full-width-card {
        padding: 1.5rem;
    }
}

@media (max-width: 640px) {
    .container {
        width: 95%;
        padding: 0 10px;
    }
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    .btn {
        width: 100%;
        text-align: center;
    }
}