/* ===================================
   EngCompSolutions - Moderno CSS
   =================================== */

/* --- Reset --- */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #1a3c6e;
    --primary-light: #2a5ca8;
    --accent: #FFA500;
    --accent-hover: #e69400;
    --success: #16a34a;
    --danger: #dc2626;
    --dark: #1a1a2e;
    --dark-light: #2d2d44;
    --text: #333333;
    --text-light: #666666;
    --bg: #ffffff;
    --bg-alt: #f8f9fa;
    --bg-dark: #0f1729;
    --border: #e2e8f0;
    --radius: 8px;
    --radius-lg: 12px;
    --shadow: 0 1px 3px rgba(0,0,0,0.1), 0 1px 2px rgba(0,0,0,0.06);
    --shadow-md: 0 4px 6px rgba(0,0,0,0.07), 0 2px 4px rgba(0,0,0,0.06);
    --shadow-lg: 0 10px 25px rgba(0,0,0,0.1), 0 6px 10px rgba(0,0,0,0.08);
    --transition: all 0.3s ease;
    --container: 1200px;
    --space-1: 0.25rem;
    --space-2: 0.5rem;
    --space-3: 0.75rem;
    --space-4: 1rem;
    --space-5: 1.5rem;
    --space-6: 2rem;
    --space-7: 3rem;
    --space-8: 4rem;
    --space-9: 5rem;
    --font-sans: 'Open Sans', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    --font-display: 'Montserrat', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    --fs-hero: clamp(2rem, 5vw, 3.2rem);
    --fs-h2: clamp(1.6rem, 3vw, 2.2rem);
    --fs-h3: clamp(1.2rem, 2vw, 1.4rem);
}

[data-theme="dark"] {
    --primary: #60a5fa;
    --primary-light: #93c5fd;
    --text: #e2e8f0;
    --text-light: #94a3b8;
    --bg: #0f172a;
    --bg-alt: #1e293b;
    --bg-dark: #020617;
    --border: #334155;
    --shadow: 0 1px 3px rgba(0,0,0,0.3), 0 1px 2px rgba(0,0,0,0.2);
    --shadow-md: 0 4px 6px rgba(0,0,0,0.25), 0 2px 4px rgba(0,0,0,0.2);
    --shadow-lg: 0 10px 25px rgba(0,0,0,0.35), 0 6px 10px rgba(0,0,0,0.25);
}

html {
    scroll-behavior: smooth;
    transition: background-color 0.3s ease, color 0.3s ease;
}

body {
    font-family: var(--font-sans);
    color: var(--text);
    line-height: 1.6;
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* --- Accessibility utilities --- */
.visually-hidden,
.skip-link {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.skip-link:focus,
.skip-link:focus-visible {
    position: fixed;
    top: 12px;
    left: 12px;
    width: auto;
    height: auto;
    clip: auto;
    padding: 12px 20px;
    background: var(--primary);
    color: #fff;
    text-decoration: none;
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    z-index: 9999;
    font-weight: 600;
}

main:focus {
    outline: none;
}

/* --- Focus visible (WCAG 2.4.7) --- */
a:focus-visible,
button:focus-visible,
.btn:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
summary:focus-visible,
.menu-toggle:focus-visible,
.theme-toggle:focus-visible,
.lang-toggle:focus-visible,
.lang-option:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.001ms !important;
        scroll-behavior: auto !important;
    }
}

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

a:hover {
    color: var(--accent);
}

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

.container {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 24px;
}

/* --- Header --- */
.site-header {
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 24px;
    height: 96px;
    gap: 12px;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary);
    white-space: nowrap;
    flex-shrink: 0;
    text-decoration: none;
}

.logo-mark {
    width: 80px;
    height: 80px;
    border-radius: 14px;
    object-fit: contain;
    background: #fff;
    padding: 12px;
    box-shadow: var(--shadow);
}

.logo-accent,
.footer-logo .logo-accent {
    color: var(--accent);
    margin-left: 2px;
}

.main-nav ul {
    display: flex;
    list-style: none;
    gap: 4px;
    flex: 1;
    justify-content: center;
    overflow: hidden;
}

.main-nav a {
    display: block;
    padding: 8px 16px;
    color: var(--text);
    font-weight: 500;
    font-size: 0.95rem;
    border-radius: var(--radius);
    transition: var(--transition);
    white-space: nowrap;
    text-decoration: none;
}

.main-nav a:hover,
.main-nav a.active,
.main-nav a[aria-current="page"] {
    color: var(--accent);
    background: rgba(255, 165, 0, 0.08);
}

.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.menu-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text);
    border-radius: 2px;
    transition: var(--transition);
}

/* --- Language Selector --- */
.lang-selector {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    position: relative;
}

.lang-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: transparent;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    cursor: pointer;
    transition: var(--transition);
    color: var(--text);
    font-size: 1.1rem;
    flex-shrink: 0;
}

.lang-toggle:hover {
    background: var(--bg-alt);
    border-color: var(--accent);
    color: var(--accent);
}

.lang-dropdown {
    position: absolute;
    top: 64px;
    right: 0;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-md);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    z-index: 1001;
}

.lang-dropdown[hidden] {
    display: none;
}

.lang-dropdown a {
    display: block;
    padding: 8px 16px;
    color: var(--text);
    font-weight: 500;
    font-size: 0.85rem;
    text-decoration: none;
    transition: var(--transition);
}

.lang-dropdown a:hover {
    background: var(--bg-alt);
    color: var(--accent);
}

.lang-dropdown a.active {
    background: rgba(255, 165, 0, 0.08);
    color: var(--accent);
}

[data-theme="dark"] .lang-dropdown {
    background: var(--bg-dark);
    border-color: var(--border);
}

[data-theme="dark"] .lang-dropdown a {
    color: var(--text);
}

[data-theme="dark"] .lang-dropdown a:hover {
    background: rgba(255, 255, 255, 0.06);
    color: var(--accent);
}

[data-theme="dark"] .lang-dropdown a.active {
    background: rgba(255, 165, 0, 0.12);
    color: var(--accent);
}

/* --- Theme Toggle --- */
.theme-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: transparent;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    cursor: pointer;
    transition: var(--transition);
    color: var(--text);
    font-size: 1.1rem;
    margin-left: 4px;
    flex-shrink: 0;
}

.theme-toggle:hover {
    background: var(--bg-alt);
    border-color: var(--accent);
    color: var(--accent);
}

.theme-toggle .fa-sun {
    display: none;
}

.theme-toggle .fa-moon {
    display: inline;
}

[data-theme="dark"] .theme-toggle .fa-sun {
    display: inline;
}

[data-theme="dark"] .theme-toggle .fa-moon {
    display: none;
}

/* --- Hero --- */
.hero {
    background: linear-gradient(135deg, var(--primary) 0%, var(--dark) 100%);
    color: white;
    padding: 80px 24px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="g" width="10" height="10" patternUnits="userSpaceOnUse"><circle cx="1" cy="1" r="0.5" fill="rgba(255,255,255,0.05)"/></pattern></defs><rect fill="url(%23g)" width="100" height="100"/></svg>') repeat;
    opacity: 0.5;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    margin: 0 auto;
}

.hero h1 {
    font-size: 2.8rem;
    font-weight: 700;
    margin-bottom: 16px;
    line-height: 1.2;
}

.hero h1 span {
    color: var(--accent);
}

.hero p {
    font-size: 1.2rem;
    opacity: 0.9;
    margin-bottom: 32px;
    line-height: 1.7;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 28px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: var(--radius);
    border: 2px solid transparent;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
}

.btn-primary {
    background: var(--accent);
    color: var(--dark);
    border-color: var(--accent);
}

.btn-primary:hover {
    background: var(--accent-hover);
    border-color: var(--accent-hover);
    color: var(--dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-outline {
    background: transparent;
    color: var(--bg);
    border-color: rgba(255,255,255,0.4);
}

.btn-outline:hover {
    background: var(--accent);
    color: var(--dark);
    border-color: var(--accent);
    transform: translateY(-2px);
}

.btn-outline-dark {
    background: transparent;
    color: var(--primary);
    border-color: var(--primary);
}

.btn-outline-dark:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* --- Sections --- */
.section {
    padding: 80px 24px;
}

.section-alt {
    background: var(--bg-alt);
}

.section-dark {
    background: var(--bg-dark);
    color: white;
}

.section-title {
    text-align: center;
    margin-bottom: 48px;
}

.section-title h2 {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--primary);
}

.section-dark .section-title h2 {
    color: white;
}

.section-title h2 span {
    color: var(--accent);
}

.section-title p {
    font-size: 1.1rem;
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto;
}

.section-dark .section-title p {
    color: rgba(255,255,255,0.7);
}

/* --- Cards Grid --- */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    max-width: var(--container);
    margin: 0 auto;
}

.card {
    background: var(--bg);
    border-radius: var(--radius-lg);
    padding: 32px;
    border: 1px solid var(--border);
    transition: var(--transition);
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--accent);
}

.card-icon {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, var(--accent), var(--accent-hover));
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.card-icon i {
    font-size: 1.5rem;
    color: white;
}

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

.card p {
    color: var(--text-light);
    font-size: 0.95rem;
    line-height: 1.7;
}

/* --- Services List --- */
.services-list {
    max-width: var(--container);
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 16px;
}

.service-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 20px;
    background: var(--bg);
    border-radius: var(--radius);
    border: 1px solid var(--border);
    transition: var(--transition);
}

.service-item:hover {
    border-color: var(--accent);
    box-shadow: var(--shadow);
    transform: translateX(4px);
}

.service-item .service-icon {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    background: rgba(255, 165, 0, 0.12);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
}

.service-item .service-icon i {
    color: var(--accent);
    font-size: 1.1rem;
}

.service-item h4 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 4px;
}

.service-item p {
    font-size: 0.9rem;
    color: var(--text-light);
    line-height: 1.6;
}

/* --- About --- */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    max-width: var(--container);
    margin: 0 auto;
    align-items: center;
}

.about-text h3 {
    font-size: 1.6rem;
    color: var(--primary);
    margin-bottom: 16px;
}

.about-text p {
    color: var(--text-light);
    margin-bottom: 16px;
    line-height: 1.8;
}

.about-text ul {
    list-style: none;
    margin: 20px 0;
}

.about-text ul li {
    padding: 8px 0;
    padding-left: 28px;
    position: relative;
    color: var(--text);
}

.about-text ul li::before {
    content: '\f00c';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    left: 0;
    color: var(--accent);
}

.about-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.about-feature {
    padding: 20px;
    background: var(--bg-alt);
    border-radius: var(--radius);
    text-align: center;
    border: 1px solid var(--border);
}

.about-feature i {
    font-size: 2rem;
    color: var(--accent);
    margin-bottom: 8px;
}

.about-feature h4 {
    font-size: 0.95rem;
    color: var(--primary);
    margin-bottom: 4px;
}

.about-feature p {
    font-size: 0.85rem;
    color: var(--text-light);
}

/* --- Mission / Vision / Values --- */
.mvv-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    max-width: var(--container);
    margin: 0 auto;
}

.mvv-card {
    background: var(--bg);
    border-radius: var(--radius-lg);
    padding: 32px;
    border: 1px solid var(--border);
    text-align: center;
    transition: var(--transition);
}

.mvv-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--accent);
}

.mvv-card .mvv-icon {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, var(--accent), var(--accent-hover));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.mvv-card .mvv-icon i {
    font-size: 1.5rem;
    color: white;
}

.mvv-card h3 {
    font-size: 1.3rem;
    color: var(--primary);
    margin-bottom: 12px;
}

.mvv-card p {
    color: var(--text-light);
    font-size: 0.95rem;
    line-height: 1.7;
}

/* --- Solutions --- */
.solutions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
    max-width: var(--container);
    margin: 0 auto;
}

.solution-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    background: var(--bg);
    border-radius: var(--radius);
    border: 1px solid var(--border);
    transition: var(--transition);
    font-weight: 500;
    color: var(--primary);
}

.solution-item:hover {
    border-color: var(--accent);
    background: rgba(255, 165, 0, 0.05);
    transform: translateX(4px);
}

.solution-item i {
    color: var(--accent);
    font-size: 1rem;
}

/* --- Consulting --- */
.consulting-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 16px;
    max-width: var(--container);
    margin: 0 auto;
}

.consulting-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 18px 20px;
    background: var(--bg-alt);
    border-radius: var(--radius);
    border: 1px solid var(--border);
    transition: var(--transition);
    color: var(--text);
    font-weight: 500;
}

.consulting-item:hover {
    background: rgba(255, 165, 0, 0.08);
    border-color: var(--accent);
    transform: translateX(4px);
}

.consulting-item i {
    color: var(--accent);
    font-size: 1rem;
}

/* Dark mode override */
[data-theme="dark"] .consulting-item {
    background: rgba(255,255,255,0.06);
    border-color: rgba(255,255,255,0.1);
    color: white;
}

[data-theme="dark"] .consulting-item:hover {
    background: rgba(255, 165, 0, 0.12);
}

/* --- Success Cases --- */
.cases-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.cases-content p {
    font-size: 1.05rem;
    color: rgba(255,255,255,0.8);
    line-height: 1.8;
    margin-bottom: 24px;
}

.cases-values {
    display: flex;
    justify-content: center;
    gap: 32px;
    flex-wrap: wrap;
    margin: 32px 0;
}

.cases-values li {
    display: flex;
    align-items: center;
    gap: 10px;
    color: white;
    font-weight: 500;
}

.cases-values li i {
    color: var(--accent);
}

/* --- Partners --- */
.partners-content {
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
}

.partners-content p {
    font-size: 1.1rem;
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: 40px;
}

.partners-logos {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 24px;
    max-width: 900px;
    margin: 0 auto;
}

.partner-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: var(--bg);
    border-radius: var(--radius);
    border: 1px solid var(--border);
    font-weight: 600;
    color: var(--text-light);
    transition: var(--transition);
}

.partner-logo:hover {
    border-color: var(--accent);
    box-shadow: var(--shadow);
    transform: scale(1.02);
}

/* --- Contact --- */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    max-width: var(--container);
    margin: 0 auto;
}

.contact-info h3 {
    font-size: 1.4rem;
    color: var(--primary);
    margin-bottom: 20px;
}

.contact-info p {
    color: var(--text-light);
    margin-bottom: 12px;
    line-height: 1.7;
}

.contact-info .contact-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 16px;
}

.contact-info .contact-item i {
    color: var(--accent);
    font-size: 1.1rem;
    margin-top: 3px;
}

.contact-info .contact-item i.contact-phone-icon {
    margin-top: 0;
    align-self: center;
}

.contact-form {
    background: var(--bg);
    border-radius: var(--radius-lg);
    padding: 32px;
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.form-group {
    margin-bottom: 16px;
}

.form-group label {
    display: block;
    font-weight: 500;
    margin-bottom: 6px;
    color: var(--text);
    font-size: 0.9rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-size: 0.95rem;
    font-family: inherit;
    transition: var(--transition);
    background: var(--bg);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(255, 165, 0, 0.15);
}

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

.form-submit {
    display: flex;
    gap: 12px;
}

/* --- Footer --- */
.site-footer {
    background: var(--bg-dark);
    color: white;
    padding: 60px 24px 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1.5fr 1fr;
    gap: 40px;
    max-width: var(--container);
    margin: 0 auto;
}

.footer-col h3 {
    font-size: 1.1rem;
    margin-bottom: 16px;
    color: var(--accent);
}

.footer-col p {
    color: rgba(255,255,255,0.7);
    font-size: 0.9rem;
    line-height: 1.7;
}

.footer-col span {
    color: var(--accent);
}

.footer-social {
    display: flex;
    gap: 12px;
    margin-top: 16px;
}

.footer-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    color: white;
    transition: var(--transition);
}

.footer-social a:hover {
    background: var(--accent);
    color: var(--dark);
}

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

.footer-col ul li {
    margin-bottom: 8px;
}

.footer-col ul.list-disc li {
    padding-left: 18px;
    position: relative;
}

.footer-col ul.list-disc li::before {
    content: '\f111';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    left: 0;
    top: 4px;
    font-size: 0.45rem;
    color: var(--accent);
}

.footer-col ul a {
    color: rgba(255,255,255,0.7);
    font-size: 0.9rem;
    transition: var(--transition);
}

.footer-col ul a:hover {
    color: var(--accent);
    padding-left: 4px;
}

.footer-col ul a i {
    font-size: 0.7rem;
    margin-right: 8px;
    color: var(--accent);
}

.footer-contact p {
    margin-bottom: 10px;
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

.footer-contact i {
    color: var(--accent);
    margin-top: 3px;
    flex-shrink: 0;
}

/* Phone number block: aligned icons on both sides (phone + WhatsApp) */
.contact-phone {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    line-height: 1;
}

.contact-phone-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    line-height: 1;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.contact-phone-number {
    display: inline-flex;
    align-items: center;
    height: 20px;
    line-height: 1;
}

.contact-phone-whatsapp {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    color: #25D366;
}

.contact-phone-whatsapp .contact-phone-icon {
    width: 100%;
    height: 100%;
    font-size: 1.1rem;
}

.contact-phone-whatsapp:hover {
    color: #1ebe5d;
}

.footer-contact a {
    color: rgba(255,255,255,0.7);
}

.footer-contact a:hover {
    color: var(--accent);
}

.footer-cta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.footer-cta .btn-outline {
    font-size: 0.8rem;
    padding: 8px 14px;
}

[data-theme="dark"] .footer-cta .btn-outline {
    background: rgba(255,255,255,0.08);
    color: rgba(255,255,255,0.85);
    border-color: rgba(255,255,255,0.2);
}

[data-theme="dark"] .footer-cta .btn-outline:hover {
    background: var(--accent);
    color: var(--dark);
    border-color: var(--accent);
}

.footer-bottom {
    margin-top: 40px;
    padding: 20px 0;
    border-top: 1px solid rgba(255,255,255,0.1);
    text-align: center;
}

.footer-bottom p {
    color: rgba(255,255,255,0.5);
    font-size: 0.85rem;
}

/* --- Back to top --- */
.back-to-top {
    position: fixed;
    bottom: 24px;
    left: 24px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: none;
    background: var(--accent);
    color: var(--dark);
    font-size: 1.1rem;
    box-shadow: var(--shadow-lg);
    cursor: pointer;
    z-index: 998;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.back-to-top:hover {
    background: var(--accent-hover);
    transform: translateY(-3px);
}

.back-to-top[hidden] {
    display: none;
}

/* --- Floating WhatsApp FAB --- */
.whatsapp-fab {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: #25D366;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    text-decoration: none;
    box-shadow: 0 6px 16px rgba(37, 211, 102, 0.4), 0 2px 4px rgba(0, 0, 0, 0.15);
    z-index: 999;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.whatsapp-fab:hover,
.whatsapp-fab:focus-visible {
    transform: scale(1.08);
    box-shadow: 0 8px 22px rgba(37, 211, 102, 0.55), 0 3px 6px rgba(0, 0, 0, 0.18);
    color: #fff;
    outline: none;
}

.whatsapp-fab-pulse {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: #25D366;
    opacity: 0.6;
    z-index: -1;
    animation: whatsapp-pulse 2s ease-out infinite;
    pointer-events: none;
}

@keyframes whatsapp-pulse {
    0%   { transform: scale(1);    opacity: 0.55; }
    70%  { transform: scale(1.7);  opacity: 0;    }
    100% { transform: scale(1.7);  opacity: 0;    }
}

@media (prefers-reduced-motion: reduce) {
    .whatsapp-fab-pulse { animation: none; opacity: 0; }
    .whatsapp-fab { transition: none; }
    .whatsapp-fab:hover { transform: none; }
}

/* --- Cookie / LGPD banner --- */
.cookie-banner {
    position: fixed;
    left: 16px;
    right: 16px;
    bottom: 16px;
    z-index: 1100;
    background: var(--bg);
    color: var(--text);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    padding: 16px 20px;
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    align-items: center;
    justify-content: space-between;
    max-width: 880px;
    margin: 0 auto;
}

.cookie-banner[hidden] {
    display: none;
}

.cookie-banner p {
    margin: 0;
    font-size: 0.9rem;
    color: var(--text);
    line-height: 1.6;
}

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

.cookie-accept {
    border: 1px solid var(--accent);
    background: transparent;
    color: var(--primary);
}

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

/* --- Lang current label --- */
.lang-current {
    margin-left: 6px;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text);
}

.lang-toggle[aria-expanded="true"] {
    border-color: var(--accent);
    color: var(--accent);
}

.lang-option {
    background: transparent;
    border: none;
    text-align: left;
    cursor: pointer;
    font: inherit;
    color: inherit;
    padding: 8px 16px;
    transition: var(--transition);
}

.lang-option:hover {
    background: var(--bg-alt);
    color: var(--accent);
}

.lang-option.active {
    background: rgba(255, 165, 0, 0.08);
    color: var(--accent);
    font-weight: 600;
}

/* --- Notices (success/error inline in forms) --- */
.notice,
.alert {
    padding: 14px 18px;
    border-radius: var(--radius);
    margin-bottom: 24px;
    border-left: 4px solid;
    font-size: 0.95rem;
    line-height: 1.6;
}

.notice-success,
.alert-success {
    background: rgba(22, 163, 74, 0.08);
    border-color: var(--success);
    color: #166534;
}

.notice-error,
.alert-error {
    background: rgba(220, 38, 38, 0.08);
    border-color: var(--danger);
    color: #991b1b;
}

[data-theme="dark"] .notice-success,
[data-theme="dark"] .alert-success {
    background: rgba(22, 163, 74, 0.15);
    color: #86efac;
}

[data-theme="dark"] .notice-error,
[data-theme="dark"] .alert-error {
    background: rgba(220, 38, 38, 0.15);
    color: #fca5a5;
}

.notice ul {
    margin: 8px 0 0 20px;
}

/* --- FAQ --- */
.faq {
    max-width: 820px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.faq details {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 16px 20px;
    transition: var(--transition);
}

.faq details[open] {
    border-color: var(--accent);
    box-shadow: var(--shadow);
}

.faq summary {
    cursor: pointer;
    font-weight: 600;
    color: var(--primary);
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.faq summary::-webkit-details-marker {
    display: none;
}

.faq summary::after {
    content: '\f078';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    color: var(--accent);
    transition: transform 0.3s ease;
}

.faq details[open] summary::after {
    transform: rotate(180deg);
}

.faq details p {
    margin-top: 12px;
    color: var(--text-light);
    line-height: 1.7;
}

/* --- Team cards --- */
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 24px;
    max-width: var(--container);
    margin: 0 auto;
}

.team-card {
    text-align: center;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 32px 24px;
    transition: var(--transition);
}

.team-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--accent);
}

.team-avatar {
    width: 96px;
    height: 96px;
    border-radius: 50%;
    margin: 0 auto 16px;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 2rem;
    font-family: var(--font-display);
    font-weight: 700;
}

.team-card h3 {
    font-size: 1.15rem;
    color: var(--primary);
    margin-bottom: 4px;
}

.team-card .team-role {
    font-size: 0.85rem;
    color: var(--accent);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 12px;
}

.team-card p {
    color: var(--text-light);
    font-size: 0.9rem;
    line-height: 1.6;
}

/* --- Testimonials (real, attributed to areas) --- */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    max-width: var(--container);
    margin: 0 auto;
}

.testimonial {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 28px;
    transition: var(--transition);
}

.testimonial:hover {
    border-color: var(--accent);
    box-shadow: var(--shadow);
}

.testimonial-stars {
    color: var(--accent);
    margin-bottom: 12px;
    font-size: 0.95rem;
}

.testimonial blockquote {
    margin: 0 0 16px;
    color: var(--text);
    font-size: 0.95rem;
    line-height: 1.7;
    font-style: italic;
}

.testimonial-author {
    font-size: 0.85rem;
    color: var(--text-light);
}

.testimonial-author strong {
    display: block;
    color: var(--primary);
    font-size: 0.95rem;
}

/* --- Legal page layout --- */
.legal-content {
    max-width: 820px;
    margin: 0 auto;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 40px;
    box-shadow: var(--shadow);
}

.legal-content h1 {
    font-family: var(--font-display);
    color: var(--primary);
    font-size: var(--fs-h2);
    margin-bottom: 16px;
}

.legal-content h2 {
    font-family: var(--font-display);
    color: var(--primary);
    font-size: 1.25rem;
    margin: 28px 0 12px;
}

.legal-content p,
.legal-content li {
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: 12px;
}

.legal-content ul,
.legal-content ol {
    padding-left: 20px;
}

.legal-meta {
    font-size: 0.85rem;
    color: var(--text-light);
    margin-bottom: 24px;
}

/* --- Process steps (4-step horizontal) --- */
.process-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    max-width: var(--container);
    margin: 0 auto;
    counter-reset: step;
}

.process-step {
    text-align: center;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 28px 20px;
    position: relative;
    transition: var(--transition);
}

.process-step:hover {
    border-color: var(--accent);
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.process-step::before {
    counter-increment: step;
    content: counter(step);
    position: absolute;
    top: -16px;
    left: 50%;
    transform: translateX(-50%);
    width: 32px;
    height: 32px;
    background: var(--accent);
    color: var(--dark);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-family: var(--font-display);
}

.process-step i {
    font-size: 2rem;
    color: var(--accent);
    margin-bottom: 12px;
    display: block;
}

.process-step h3 {
    color: var(--primary);
    margin-bottom: 8px;
    font-size: 1.1rem;
}

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

/* --- Print --- */
@media print {
    .site-header,
    .site-footer,
    .back-to-top,
    .cookie-banner,
    .menu-toggle,
    .theme-toggle,
    .lang-selector,
    .header-actions {
        display: none !important;
    }

    body {
        background: #fff;
        color: #000;
        font-size: 12pt;
    }

    a {
        color: #000;
        text-decoration: underline;
    }

    .hero {
        background: #fff;
        color: #000;
    }

    .section-dark {
        background: #fff;
        color: #000;
    }

    .card,
    .service-item,
    .mvv-card,
    .solution-item,
    .consulting-item {
        break-inside: avoid;
        box-shadow: none;
        border: 1px solid #ccc;
    }
}

/* --- Responsive --- */
@media (max-width: 992px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }

    .about-grid,
    .contact-grid {
        grid-template-columns: 1fr;
    }

    .mvv-grid {
        grid-template-columns: 1fr;
    }

    .process-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .legal-content {
        padding: 24px;
    }
}

@media (max-width: 768px) {
    .lang-selector {
        position: static;
    }
    .lang-dropdown {
        position: static;
        flex-direction: row;
        margin-top: 8px;
    }
    .menu-toggle {
        display: flex;
    }

    .main-nav {
        position: fixed;
        top: 96px;
        left: 0;
        right: 0;
        background: var(--bg);
        border-bottom: 1px solid var(--border);
        box-shadow: var(--shadow-lg);
        transform: translateY(-120%);
        transition: var(--transition);
        z-index: 999;
    }

    .main-nav.open {
        transform: translateY(0);
    }

    .main-nav ul {
        flex-direction: column;
        padding: 16px 24px;
        gap: 2px;
    }

    .main-nav a {
        padding: 12px 16px;
    }

    .hero {
        padding: 50px 16px;
    }

    .hero h1 {
        font-size: var(--fs-hero);
    }

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

    .section {
        padding: 50px 16px;
    }

    .section-title h2 {
        font-size: var(--fs-h2);
    }

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

    .form-row {
        grid-template-columns: 1fr;
    }

    .about-features {
        grid-template-columns: 1fr;
    }

    .cases-values {
        flex-direction: column;
        align-items: center;
    }

    .process-grid {
        grid-template-columns: 1fr;
    }

    .cookie-banner {
        flex-direction: column;
        align-items: stretch;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .btn {
        width: 100%;
        justify-content: center;
    }

    .cards-grid {
        grid-template-columns: 1fr;
    }

    .services-list {
        grid-template-columns: 1fr;
    }

    .solutions-grid {
        grid-template-columns: 1fr;
    }

    .header-inner {
        gap: 8px;
    }

    .back-to-top {
        bottom: 16px;
        right: 16px;
    }
}
