/* Color Variables */
:root {
    --primary-blue: #2f5aae;
    --secondary-blue: #4a6bc5;
    --accent-red: #b3343f;
    --secondary-red: #d63447;
    --dark-gray: #2c3e50;
    --light-gray: #bdc3c7;
    --text-dark: #2c3e50;
    --text-light: #7f8c8d;
    --background-light: #f8f9fa;
    --white: #ffffff;
    --error-red: #dc3545;
    --success-green: #28a745;
}

/* Screen reader only utility */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', 'Arial', 'Helvetica', sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--white);
}

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

/* =====================
   HEADER
   ===================== */
.header {
    background-color: var(--white);
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    transition: background-color 0.3s ease, backdrop-filter 0.3s ease;
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
    height: 70px;
}

.logo {
    overflow: hidden;
    height: 70px;
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.logo-img {
    height: 130px;
    width: auto;
    max-width: 280px;
    object-fit: contain;
    margin: -30px 0;
}

.nav {
    display: flex;
    gap: 1.75rem;
    align-items: center;
}

.nav a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.3s ease;
    position: relative;
    padding-bottom: 2px;
}

.nav a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-blue);
    transition: width 0.3s ease;
}

.nav a:hover::after,
.nav a.active::after {
    width: 100%;
}

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

/* Hamburger button */
.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
}

.hamburger,
.hamburger::before,
.hamburger::after {
    display: block;
    width: 24px;
    height: 2px;
    background-color: var(--text-dark);
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.hamburger {
    position: relative;
}

.hamburger::before,
.hamburger::after {
    content: '';
    position: absolute;
    left: 0;
}

.hamburger::before { top: -7px; }
.hamburger::after  { top: 7px; }

.nav-toggle[aria-expanded="true"] .hamburger {
    background-color: transparent;
}
.nav-toggle[aria-expanded="true"] .hamburger::before {
    transform: translateY(7px) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] .hamburger::after {
    transform: translateY(-7px) rotate(-45deg);
}

/* =====================
   HERO
   ===================== */
.hero {
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--secondary-blue) 100%);
    color: var(--white);
    padding: 110px 0 80px;
    overflow: hidden;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
    min-height: 55vh;
}

.hero-text {
    text-align: left;
}

.hero-text h1 {
    font-size: 2.8rem;
    margin-bottom: 1rem;
    font-weight: 700;
    line-height: 1.2;
    color: var(--white);
}

.hero-text p {
    font-size: 1.15rem;
    margin-bottom: 2rem;
    line-height: 1.7;
    opacity: 0.92;
}

.hero-graphic {
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Data Animation */
.data-animation {
    position: relative;
    width: 300px;
    height: 300px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.orbit {
    position: absolute;
    width: 100%;
    height: 100%;
    border: 2px dashed rgba(255,255,255,0.3);
    border-radius: 50%;
    animation: spin 10s linear infinite;
}

.node {
    position: absolute;
    width: 52px;
    height: 52px;
    background: rgba(255,255,255,0.15);
    border: 2px solid rgba(255,255,255,0.5);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    backdrop-filter: blur(4px);
    animation: counter-spin 10s linear infinite;
}

.node-1 { top: -26px; left: calc(50% - 26px); }
.node-2 { right: -26px; top: calc(50% - 26px); }
.node-3 { bottom: -26px; left: calc(50% - 26px); }
.node-4 { left: -26px; top: calc(50% - 26px); }

.center-node {
    width: 90px;
    height: 90px;
    background: rgba(255,255,255,0.2);
    border: 3px solid rgba(255,255,255,0.7);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    font-weight: bold;
    color: white;
    letter-spacing: 2px;
    animation: pulse-glow 2s ease-in-out infinite;
    z-index: 1;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes counter-spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(-360deg); }
}

@keyframes pulse-glow {
    0%, 100% { box-shadow: 0 0 20px rgba(255,255,255,0.3); }
    50% { box-shadow: 0 0 40px rgba(255,255,255,0.6); }
}

.cta-button {
    display: inline-block;
    background-color: var(--accent-red);
    color: var(--white);
    padding: 14px 28px;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.cta-button:hover {
    background-color: #9a2b35;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

/* =====================
   SECTIONS BASE
   ===================== */
section {
    padding: 80px 0;
}

section h2 {
    text-align: center;
    font-size: 2.2rem;
    margin-bottom: 3rem;
    color: var(--primary-blue);
    font-weight: 700;
}

/* =====================
   WHY SECTION
   ===================== */
.why {
    background-color: var(--background-light);
}

.why-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 2rem;
}

.why-item {
    background: var(--white);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.07);
    text-align: center;
    border-top: 3px solid var(--accent-red);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.why-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.why-icon {
    font-size: 2.5rem;
    display: block;
    margin-bottom: 1rem;
}

.why-item p {
    color: var(--text-light);
    line-height: 1.7;
    font-size: 0.97rem;
}

/* =====================
   SERVICES SECTION
   ===================== */
.services {
    background-color: var(--white);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
    gap: 2rem;
}

.service-card {
    background: var(--background-light);
    padding: 2rem;
    border-radius: 10px;
    border-left: 4px solid var(--primary-blue);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.service-icon {
    font-size: 2rem;
    margin-bottom: 0.75rem;
    display: block;
}

.service-card h3 {
    color: var(--primary-blue);
    margin-bottom: 1rem;
    font-size: 1.15rem;
    font-weight: 600;
}

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

.service-card ul li {
    color: var(--text-light);
    line-height: 1.7;
    padding-left: 1.1rem;
    position: relative;
    font-size: 0.95rem;
}

.service-card ul li::before {
    content: "→";
    position: absolute;
    left: 0;
    color: var(--accent-red);
    font-size: 0.85rem;
}

/* =====================
   SOLUTIONS SECTION
   ===================== */
.solutions {
    background-color: var(--background-light);
}

.solutions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.solution-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.07);
    border-left: 4px solid var(--accent-red);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.solution-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.12);
}

.solution-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 0.75rem;
    gap: 1rem;
}

.solution-header h3 {
    color: var(--primary-blue);
    font-size: 1.15rem;
    font-weight: 600;
    flex: 1;
}

.solution-tag {
    background-color: var(--primary-blue);
    color: var(--white);
    padding: 0.2rem 0.7rem;
    border-radius: 20px;
    font-size: 0.72rem;
    font-weight: 600;
    white-space: nowrap;
    letter-spacing: 0.3px;
}

.solution-card p {
    color: var(--text-light);
    line-height: 1.6;
    font-size: 0.95rem;
    flex: 1;
    margin-bottom: 1.25rem;
}

.solution-cta {
    display: inline-block;
    color: var(--accent-red);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: color 0.2s ease;
    align-self: flex-start;
}

.solution-cta:hover {
    color: #9a2b35;
    text-decoration: underline;
}

/* =====================
   SECTORS SECTION
   ===================== */
.sectors {
    background-color: var(--white);
}

.sectors-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
    gap: 2rem;
}

.sector-card {
    background: var(--background-light);
    padding: 2rem;
    border-radius: 10px;
    border-top: 3px solid var(--primary-blue);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.sector-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.sector-icon {
    font-size: 2.5rem;
    display: block;
    margin-bottom: 1rem;
}

.sector-card h3 {
    color: var(--primary-blue);
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.sector-card > p {
    color: var(--text-light);
    font-size: 0.88rem;
    margin-bottom: 1rem;
    font-style: italic;
}

.sector-card ul {
    list-style: none;
    padding: 0;
    text-align: left;
}

.sector-card ul li {
    color: var(--text-light);
    line-height: 1.7;
    padding-left: 1.1rem;
    position: relative;
    font-size: 0.95rem;
}

.sector-card ul li::before {
    content: "→";
    position: absolute;
    left: 0;
    color: var(--accent-red);
    font-size: 0.85rem;
}

/* =====================
   PROCESS SECTION
   ===================== */
.process {
    background-color: var(--background-light);
}

.process-intro {
    text-align: center;
    font-size: 1.05rem;
    margin-bottom: 3rem;
    color: var(--text-light);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

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

.step {
    text-align: center;
    padding: 2rem;
}

.step-number {
    width: 60px;
    height: 60px;
    background-color: var(--accent-red);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: bold;
    margin: 0 auto 1rem;
}

.step h3 {
    color: var(--primary-blue);
    margin-bottom: 0.75rem;
    font-size: 1.15rem;
    font-weight: 600;
}

.step p {
    color: var(--text-light);
    line-height: 1.6;
    font-size: 0.97rem;
}

/* =====================
   CONTACT SECTION
   ===================== */
.contact {
    background-color: var(--white);
}

.contact > .container > p {
    text-align: center;
    font-size: 1.05rem;
    margin-bottom: 3rem;
    color: var(--text-light);
}

.contact-form {
    max-width: 580px;
    margin: 0 auto;
}

.form-group {
    margin-bottom: 1.5rem;
}

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

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 14px;
    border: 2px solid var(--light-gray);
    border-radius: 6px;
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    background-color: var(--white);
    color: var(--text-dark);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 3px rgba(47, 90, 174, 0.12);
}

.form-group input.invalid,
.form-group textarea.invalid {
    border-color: var(--error-red);
}

.form-group input.invalid:focus,
.form-group textarea.invalid:focus {
    box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.12);
}

.field-error {
    display: block;
    color: var(--error-red);
    font-size: 0.85rem;
    margin-top: 0.35rem;
    min-height: 1.2em;
}

.form-feedback {
    border-radius: 6px;
    font-size: 0.95rem;
    font-weight: 500;
    margin-bottom: 1rem;
}

.form-feedback.success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
    padding: 12px 16px;
}

.form-feedback.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
    padding: 12px 16px;
}

.submit-button {
    background-color: var(--accent-red);
    color: var(--white);
    padding: 14px 28px;
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
}

.submit-button:hover:not(:disabled) {
    background-color: #9a2b35;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.submit-button:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

/* =====================
   FOOTER
   ===================== */
.footer {
    background-color: var(--dark-gray);
    color: var(--white);
    text-align: center;
    padding: 2.5rem 0;
}

.footer-content {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
}

.footer-logo {
    height: 42px;
    width: auto;
    opacity: 0.9;
}

.footer p {
    font-size: 0.9rem;
    opacity: 0.8;
}

.footer-links {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
    justify-content: center;
}

.footer-links a {
    color: var(--white);
    text-decoration: none;
    font-size: 0.88rem;
    opacity: 0.8;
    transition: color 0.3s ease, opacity 0.3s ease;
}

.footer-links a:hover {
    color: var(--accent-red);
    opacity: 1;
}

/* =====================
   COOKIE BANNER
   ===================== */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: var(--white);
    box-shadow: 0 -2px 12px rgba(0,0,0,0.12);
    border-top: 3px solid var(--accent-red);
    z-index: 1100;
    transform: translateY(100%);
    transition: transform 0.35s ease;
}

.cookie-banner.show {
    transform: translateY(0);
}

.cookie-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
    gap: 2rem;
}

.cookie-text p {
    margin: 0;
    color: var(--text-dark);
    font-size: 0.9rem;
}

.cookie-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-shrink: 0;
}

.cookie-btn {
    padding: 0.5rem 1.1rem;
    border: none;
    border-radius: 5px;
    font-size: 0.9rem;
    font-weight: 500;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.3s ease;
}

.cookie-btn.accept {
    background-color: var(--accent-red);
    color: var(--white);
}

.cookie-btn.accept:hover {
    background-color: #9a2b35;
}

.cookie-btn.reject {
    background-color: var(--light-gray);
    color: var(--text-dark);
}

.cookie-btn.reject:hover {
    background-color: #95a5a6;
}

.cookie-link {
    color: var(--primary-blue);
    text-decoration: none;
    font-size: 0.88rem;
    font-weight: 500;
}

.cookie-link:hover {
    text-decoration: underline;
}

/* =====================
   ANIMATIONS
   ===================== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(24px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.55s ease-out both;
}

/* =====================
   RESPONSIVE — TABLET
   ===================== */
@media (max-width: 900px) {
    .hero-text h1 {
        font-size: 2.3rem;
    }

    .nav {
        gap: 1.25rem;
    }
}

/* =====================
   RESPONSIVE — MOBILE
   ===================== */
@media (max-width: 768px) {
    .header .container {
        height: 60px;
    }

    .logo {
        height: 60px;
    }

    .logo-img {
        height: 110px;
        margin: -25px 0;
    }

    .nav-toggle {
        display: flex;
    }

    .nav {
        display: none;
        position: absolute;
        top: 60px;
        left: 0;
        right: 0;
        background-color: var(--white);
        flex-direction: column;
        gap: 0;
        box-shadow: 0 4px 12px rgba(0,0,0,0.1);
        border-top: 1px solid var(--background-light);
        padding: 0.5rem 0;
    }

    .nav.open {
        display: flex;
    }

    .nav a {
        padding: 0.85rem 1.5rem;
        border-bottom: 1px solid var(--background-light);
        font-size: 1rem;
    }

    .nav a::after {
        display: none;
    }

    .nav a:last-child {
        border-bottom: none;
    }

    .hero {
        padding: 90px 0 60px;
    }

    .hero-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
        min-height: auto;
    }

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

    .hero-text h1 {
        font-size: 2rem;
    }

    .hero-graphic {
        display: none;
    }

    section {
        padding: 60px 0;
    }

    section h2 {
        font-size: 1.9rem;
        margin-bottom: 2rem;
    }

    .why-grid,
    .services-grid,
    .solutions-grid,
    .sectors-grid,
    .process-steps {
        grid-template-columns: 1fr;
    }

    .solution-header {
        flex-direction: column;
        gap: 0.5rem;
    }

    .footer-links {
        gap: 1rem;
    }

    .cookie-content {
        flex-direction: column;
        gap: 1rem;
        padding: 1rem;
    }

    .cookie-actions {
        width: 100%;
        justify-content: center;
        flex-wrap: wrap;
    }
}

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

    .hero-text h1 {
        font-size: 1.75rem;
    }

    .hero-text p {
        font-size: 1rem;
    }

    section h2 {
        font-size: 1.7rem;
    }
}
