/* ============================================================
   Lysen Solutions
   Site stylesheet (shared by the Arabic RTL and English LTR pages)
   Palette: navy #13294F · gold #2F6DBF
   ============================================================ */

:root {
    --primary: #13294F;
    --primary-hover: #1E3D74;
    --accent: #2F6DBF;
    --accent-hover: #24579B;
    --text: #13294F;
    --text-light: rgba(0, 0, 0, 0.7);
    --white: #FFFFFF;
    --light-bg: #F5F5F5;
    --card-bg: #D9D9D9;
    --input-bg: #F0F0F0;
    --shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    --radius-lg: 30px;
    --radius-md: 20px;
    --radius-sm: 15px;
    --ease: 0.3s ease;
    --font-ar: 'Zain', 'Tajawal', sans-serif;
    --font-en: 'Inter', system-ui, sans-serif;
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
    font-family: var(--font-ar);
    font-size: clamp(17px, 1.05vw, 19px);
    line-height: 1.75;
    color: var(--text);
    background: var(--white);
    direction: rtl;
    -webkit-font-smoothing: antialiased;
}

body.ltr {
    font-family: var(--font-en);
    direction: ltr;
    text-align: left;
}

.container {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 clamp(20px, 4vw, 60px);
}

a { color: inherit; text-decoration: none; }
ul { list-style: none; }
img { max-width: 100%; height: auto; display: block; }
button { font-family: inherit; }

/* ------------------------------------------------------------
   Header / navigation
   ------------------------------------------------------------ */
.header {
    position: fixed;
    inset: 0 0 auto 0;
    z-index: 1000;
    background: var(--white);
    padding: 15px 0;
    transition: padding var(--ease), box-shadow var(--ease);
}
.header.scrolled { box-shadow: var(--shadow); padding: 10px 0; }

.nav { display: flex; justify-content: space-between; align-items: center; gap: 20px; }

.logo { display: inline-flex; align-items: center; gap: 13px; direction: ltr; }
.logo-mark { width: clamp(34px, 3.2vw, 46px); height: auto; flex: none; transition: width var(--ease); }
.header.scrolled .logo-mark { width: clamp(30px, 2.7vw, 39px); }
.logo-text { display: flex; flex-direction: column; line-height: 1; }
.logo-name {
    font-family: var(--font-en);
    font-weight: 700;
    font-size: clamp(21px, 2vw, 29px);
    letter-spacing: 0.13em;
    color: var(--primary);
    white-space: nowrap;
}
.logo-sub {
    font-family: var(--font-en);
    font-weight: 600;
    font-size: clamp(8px, 0.72vw, 10.5px);
    letter-spacing: 0.34em;
    color: var(--accent);
    margin-top: 5px;
}

.nav-menu { display: flex; align-items: center; gap: clamp(15px, 2vw, 40px); }

.nav-link {
    position: relative;
    display: inline-block;
    padding: 5px 0;
    font-size: clamp(14px, 1.15vw, 20px);
    font-weight: 800;
    color: var(--primary);
    white-space: nowrap;
    transition: color var(--ease);
}
.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    inset-inline-start: 0;
    width: 0;
    height: 3px;
    background: var(--accent);
    transition: width var(--ease);
}
.nav-link:hover, .nav-link.active { color: var(--accent); }
.nav-link:hover::after, .nav-link.active::after { width: 100%; }

.lang-switcher { display: flex; align-items: center; gap: 6px; flex-shrink: 0; margin-inline-start: 15px; }
.lang-btn {
    padding: clamp(4px, 0.5vw, 6px) clamp(8px, 1vw, 12px);
    border-radius: 6px;
    border: 2px solid transparent;
    font-size: clamp(12px, 0.9vw, 14px);
    font-weight: 700;
    color: var(--primary);
    transition: all var(--ease);
}
.lang-btn:hover { background: rgba(47, 109, 191, 0.1); border-color: var(--accent); color: var(--accent); }
.lang-btn.active { background: var(--primary); border-color: var(--primary); color: var(--white); }
.lang-divider { color: #ccc; user-select: none; }

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    background: none;
    border: 0;
    padding: 5px;
    cursor: pointer;
}
.nav-toggle span {
    width: 30px; height: 3px;
    background: var(--primary);
    border-radius: 3px;
    transition: transform var(--ease), opacity var(--ease);
}

/* ------------------------------------------------------------
   Buttons
   ------------------------------------------------------------ */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 15px 30px;
    border: 0;
    border-radius: var(--radius-md);
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    transition: transform var(--ease), box-shadow var(--ease), background-color var(--ease);
}
.btn-primary {
    background: var(--accent);
    color: var(--white);
    box-shadow: 0 4px 15px rgba(47, 109, 191, 0.3);
}
.btn-primary:hover {
    background: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(47, 109, 191, 0.4);
}
.btn svg { transition: transform var(--ease); }
.btn:hover svg { transform: translateX(-5px); }
body.ltr .btn:hover svg { transform: translateX(5px); }
body:not(.ltr) .btn svg, body:not(.ltr) .work-link svg { transform: scaleX(-1); }
body:not(.ltr) .btn:hover svg { transform: scaleX(-1) translateX(5px); }

/* ------------------------------------------------------------
   Section titles
   ------------------------------------------------------------ */
.section-title {
    font-size: clamp(32px, 4vw, 55px);
    font-weight: 700;
    text-align: center;
    color: var(--primary);
    margin-bottom: 60px;
}
.section-title.light { color: var(--accent); }
.highlight { color: var(--accent); }

/* ------------------------------------------------------------
   Hero
   ------------------------------------------------------------ */
.hero {
    min-height: 100vh;
    padding: 180px 0 100px;
    display: flex;
    align-items: center;
    background: var(--white);
}
.hero-content { display: flex; justify-content: space-between; align-items: center; gap: 60px; }
.hero-text { flex: 1; max-width: 661px; }
.hero-text h1 {
    font-size: clamp(28px, 4vw, 52px);
    font-weight: 800;
    line-height: 1.3;
    color: var(--primary);
    margin-bottom: 40px;
}
.hero-image { flex: 1; max-width: 633px; }
.hero-image img { width: 100%; }

/* ------------------------------------------------------------
   Vision & mission
   ------------------------------------------------------------ */
.vision-mission { padding: 100px 0; }
.vision-mission-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 60px;
    margin-bottom: 60px;
}
.vision-card, .mission-card { text-align: center; }
.card-icon { width: 104px; height: 113px; display: flex; align-items: center; justify-content: center; margin: 0 auto 20px; }
.vision-card h3, .mission-card h3 {
    font-size: clamp(24px, 2.2vw, 30px);
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 15px;
}
.vision-card p, .mission-card p {
    max-width: 567px;
    margin: 0 auto;
    font-size: clamp(17px, 1.4vw, 21px);
    line-height: 1.8;
    color: var(--text-light);
}
.divider { max-width: 800px; height: 1px; margin: 0 auto; background: rgba(0, 0, 0, 0.1); }

/* ------------------------------------------------------------
   Services (navy band)
   ------------------------------------------------------------ */
.services {
    position: relative;
    overflow: hidden;
    padding: 100px 0;
    background: var(--primary);
}
.pattern {
    position: absolute;
    inset: 0;
    pointer-events: none;
    opacity: 0.08;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='60' viewBox='0 0 60 60'%3E%3Cpath d='M30 4l26 26-26 26L4 30z' fill='none' stroke='%23ffffff' stroke-width='1.5'/%3E%3Ccircle cx='30' cy='30' r='4' fill='%23ffffff'/%3E%3C/svg%3E");
    background-size: 60px 60px;
}
.services .container { position: relative; z-index: 1; }
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.service-card {
    display: block;
    background: var(--card-bg);
    border-radius: var(--radius-lg);
    padding: 40px 30px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: transform var(--ease), box-shadow var(--ease);
}
.service-card:hover { transform: translateY(-10px); box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2); }
.service-icon { width: 85px; height: 85px; margin: 0 auto 25px; }
.service-icon img { width: 100%; height: 100%; object-fit: contain; }
.service-card h3 { font-size: 24px; font-weight: 800; color: var(--primary); margin-bottom: 15px; }
.service-card p { font-size: clamp(16px, 1.05vw, 18px); line-height: 1.8; color: var(--text-light); }

/* ------------------------------------------------------------
   Journey timeline
   ------------------------------------------------------------ */
.journey { padding: 100px 0; }
.journey-timeline { display: flex; justify-content: center; align-items: flex-start; gap: 20px; flex-wrap: wrap; }
.journey-step { max-width: 200px; text-align: center; }
.step-circle {
    position: relative;
    width: 144px; height: 144px;
    margin: 0 auto 20px;
    border-radius: 50%;
    background: var(--primary);
    display: flex; align-items: center; justify-content: center;
    box-shadow: var(--shadow);
}
.step-circle img { width: 70px; height: 70px; object-fit: contain; }
.step-number {
    position: absolute;
    bottom: -5px;
    inset-inline-end: -5px;
    width: 40px; height: 40px;
    border-radius: 50%;
    background: var(--accent);
    color: var(--white);
    font-size: 16px; font-weight: 700;
    display: flex; align-items: center; justify-content: center;
}
.journey-step h4 { font-size: clamp(24px, 2.5vw, 32px); font-weight: 800; color: var(--primary); margin-bottom: 10px; }
.journey-step p { font-size: clamp(15px, 1vw, 17px); color: var(--text-light); }
.journey-arrow { display: flex; align-items: center; padding-top: 60px; }
body:not(.ltr) .journey-arrow svg { transform: scaleX(-1); }

/* ------------------------------------------------------------
   Works / portfolio
   ------------------------------------------------------------ */
.works { padding: 100px 0; }
.works-filter { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-bottom: 40px; }
.filter-btn {
    padding: 9px 26px;
    border: 2px solid rgba(31, 51, 78, 0.15);
    border-radius: 30px;
    background: transparent;
    font-size: clamp(14px, 1.1vw, 17px);
    font-weight: 700;
    color: var(--primary);
    cursor: pointer;
    white-space: nowrap;
    transition: color 0.25s, background-color 0.25s, border-color 0.25s, transform 0.15s;
}
.filter-btn:hover { border-color: var(--accent); color: var(--accent); }
.filter-btn.active { background: var(--primary); border-color: var(--primary); color: var(--white); }
.filter-btn:active { transform: scale(0.96); }

.works-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; margin-bottom: 40px; }
.work-card {
    display: block;
    overflow: hidden;
    border-radius: var(--radius-md);
    background: var(--white);
    box-shadow: var(--shadow);
    transition: transform var(--ease), box-shadow var(--ease);
}
.work-card:hover { transform: translateY(-10px); box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15); }
.work-card.is-hidden { display: none; }
.work-card.is-animating { animation: workFadeIn 0.45s ease both; }
@keyframes workFadeIn { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: none; } }
.work-image { height: 250px; overflow: hidden; }
.work-image img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--ease); }
.work-card:hover .work-image img { transform: scale(1.05); }
.work-info { padding: 20px; }
.work-info h4 { font-size: 18px; font-weight: 700; color: var(--primary); margin-bottom: 10px; }
.work-link { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; color: var(--accent); }
.work-link svg { transition: transform var(--ease); }
.work-card:hover .work-link svg { transform: translateX(5px); }
body:not(.ltr) .work-card:hover .work-link svg { transform: scaleX(-1) translateX(5px); }
.works-more { text-align: center; margin-top: 40px; }

/* ------------------------------------------------------------
   CTA
   ------------------------------------------------------------ */
.cta { padding: 100px 0; text-align: center; }
.cta h2 { font-size: clamp(32px, 4.5vw, 60px); font-weight: 700; color: var(--primary); margin-bottom: 40px; }

/* ------------------------------------------------------------
   Reviews
   ------------------------------------------------------------ */
.reviews { padding: 80px 0; }
.reviews .section-title { font-size: clamp(32px, 4vw, 48px); margin-bottom: 40px; }
.reviews-list { display: flex; flex-direction: column; gap: 25px; max-width: 900px; margin: 0 auto 50px; }
.reviews-empty { text-align: center; padding: 40px; color: #999; font-size: 18px; }
.review-item {
    display: flex; align-items: flex-start; gap: 15px;
    padding: 20px;
    border-radius: var(--radius-sm);
    background: var(--white);
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.05);
    animation: fadeInUp 0.5s ease both;
}
.review-avatar {
    width: 50px; height: 50px; flex: none;
    border-radius: 50%;
    background: var(--input-bg);
    display: flex; align-items: center; justify-content: center;
    color: #999;
}
.review-avatar svg { width: 30px; height: 30px; }
.review-content { flex: 1; }
.review-header { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px; margin-bottom: 8px; }
.review-name { font-size: 18px; font-weight: 700; color: var(--primary); }
.review-stars { display: flex; gap: 2px; }
.review-text { font-size: clamp(16px, 1.05vw, 18px); line-height: 1.8; color: var(--text-light); }

.review-form-container {
    max-width: 860px;
    margin: 0 auto;
    padding: 40px;
    border-radius: 25px;
    border: 1px solid rgba(0, 0, 0, 0.05);
    background: var(--white);
    box-shadow: 0 10px 50px rgba(0, 0, 0, 0.08);
}
.review-form-title { font-size: 24px; font-weight: 700; color: var(--primary); margin-bottom: 25px; }
.star-rating { display: flex; gap: 8px; margin-bottom: 25px; }
.star { cursor: pointer; display: flex; transition: transform 0.2s; }
.star:hover { transform: scale(1.15); }
.star svg { width: 32px; height: 32px; fill: transparent; stroke: #ccc; stroke-width: 1.5; transition: fill 0.2s, stroke 0.2s; }
.star.active svg, .star.hover svg { fill: var(--accent); stroke: var(--accent); }
.review-form { display: flex; flex-direction: column; gap: 20px; }
.review-input, .review-textarea {
    width: 100%;
    padding: 20px 25px;
    border: 0;
    border-radius: var(--radius-sm);
    background: var(--input-bg);
    font-family: inherit;
    font-size: 16px;
    color: var(--text);
    outline: none;
    transition: box-shadow var(--ease), background-color var(--ease);
}
.review-input { height: 69px; }
.review-textarea { min-height: 218px; resize: vertical; }
.review-input:focus, .review-textarea:focus { background: #e8e8e8; box-shadow: 0 0 0 3px rgba(47, 109, 191, 0.2); }
.review-submit-btn {
    display: block;
    width: 282px; height: 50px;
    margin: 10px auto 0;
    border: 0;
    border-radius: var(--radius-md);
    background: var(--primary);
    color: var(--white);
    font-size: 18px; font-weight: 700;
    cursor: pointer;
    transition: background-color var(--ease), transform var(--ease), box-shadow var(--ease);
}
.review-submit-btn:hover { background: var(--primary-hover); transform: translateY(-2px); box-shadow: 0 5px 20px rgba(31, 51, 78, 0.3); }
.review-submit-btn:disabled { background: #ccc; cursor: not-allowed; transform: none; box-shadow: none; }

/* ------------------------------------------------------------
   Contact form
   ------------------------------------------------------------ */
.contact-section { padding: 100px 0; background: linear-gradient(135deg, var(--light-bg) 0%, #e8ecf1 100%); }
.contact-section .section-header { text-align: center; margin-bottom: 50px; }
.contact-section .section-subtitle { font-size: 20px; color: var(--text-light); margin-top: -40px; }
.contact-wrapper {
    max-width: 750px;
    margin: 0 auto;
    padding: 50px;
    border-radius: var(--radius-lg);
    background: var(--white);
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.1);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form-group { margin-bottom: 25px; }
.contact-form label { display: block; margin-bottom: 10px; font-size: 16px; font-weight: 700; color: var(--primary); }
.contact-form input, .contact-form select, .contact-form textarea {
    width: 100%;
    padding: 16px 20px;
    border: 2px solid #e5e7eb;
    border-radius: var(--radius-sm);
    background: var(--input-bg);
    font-family: inherit;
    font-size: 16px;
    color: var(--text);
    transition: all var(--ease);
}
.contact-form input:focus, .contact-form select:focus, .contact-form textarea:focus {
    outline: none;
    border-color: var(--accent);
    background: var(--white);
    box-shadow: 0 0 0 4px rgba(47, 109, 191, 0.15);
}
.contact-form ::placeholder { color: #9ca3af; }
.contact-form select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: left 15px center;
    padding-left: 45px;
}
body.ltr .contact-form select { background-position: right 15px center; padding-right: 45px; padding-left: 20px; }
.contact-form textarea { min-height: 130px; resize: vertical; }
.form-trust {
    display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 4px 8px;
    margin-bottom: 14px;
    font-size: 13.5px; line-height: 1.6;
    color: var(--text-light);
    text-align: center;
}
.form-trust b { color: var(--primary); font-variant-numeric: tabular-nums; unicode-bidi: plaintext; }
.form-trust svg { flex: none; color: #1F8A5B; }
.submit-btn {
    display: flex; align-items: center; justify-content: center; gap: 10px;
    width: 100%;
    padding: 18px;
    border: 0;
    border-radius: var(--radius-sm);
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-hover) 100%);
    color: var(--white);
    font-size: 20px; font-weight: 700;
    cursor: pointer;
    box-shadow: 0 5px 20px rgba(47, 109, 191, 0.3);
    transition: all var(--ease);
}
.submit-btn:hover { transform: translateY(-3px); box-shadow: 0 10px 30px rgba(47, 109, 191, 0.4); }
.submit-btn:disabled { opacity: 0.7; cursor: not-allowed; transform: none; }
.submit-btn .spinner { width: 24px; height: 24px; animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.form-message { padding: 18px 25px; margin-bottom: 25px; border-radius: var(--radius-sm); text-align: center; font-weight: 600; font-size: 16px; }
.form-message.success { background: linear-gradient(135deg, #dcfce7, #bbf7d0); color: #166534; border: 1px solid #86efac; }
.form-message.error { background: linear-gradient(135deg, #fee2e2, #fecaca); color: #991b1b; border: 1px solid #fca5a5; }

/* ------------------------------------------------------------
   Footer
   ------------------------------------------------------------ */
.footer { position: relative; overflow: hidden; padding: 80px 0 96px; background: var(--primary); }
.footer .container { position: relative; z-index: 1; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 48px; margin-bottom: 60px; }
.footer-logo-box { margin-bottom: 20px; }
.footer-logo .logo-mark { width: clamp(32px, 2.8vw, 42px); }
.footer-logo .logo-name { font-size: clamp(20px, 1.8vw, 26px); color: var(--white); }
.footer-logo .logo-sub { color: rgba(255, 255, 255, 0.82); }
.footer-about p { font-size: clamp(16px, 1.5vw, 24px); line-height: 1.8; color: rgba(255, 255, 255, 0.8); }
.footer h4 {
    display: inline-block;
    margin-bottom: 25px;
    padding: 10px 25px;
    border: 3px solid var(--accent);
    border-radius: var(--radius-md);
    font-size: clamp(16px, 1.3vw, 20px);
    font-weight: 700;
    color: var(--white);
}
.footer ul { display: flex; flex-direction: column; gap: 15px; }
.footer-links a {
    display: flex; align-items: center; gap: 10px;
    font-size: clamp(16px, 1.3vw, 20px);
    font-weight: 700;
    color: rgba(255, 255, 255, 0.8);
    transition: color var(--ease);
}
.footer-links a::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
.footer-links a:hover { color: var(--accent); }
.footer-contact li { display: flex; align-items: center; gap: 10px; font-size: 18px; color: rgba(255, 255, 255, 0.8); }
.footer-contact svg { flex: none; color: var(--accent); }
.footer-contact a:hover { color: var(--accent); }
.footer-bottom { padding-top: 30px; border-top: 1px solid rgba(255, 255, 255, 0.1); text-align: center; }
.footer-bottom p { font-size: clamp(15px, 1vw, 17px); color: rgba(255, 255, 255, 0.6); }

.trust-band {
    position: relative;
    display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 16px 30px;
    max-width: min(100%, 1024px);
    margin: 28px auto 26px;
    padding: 18px 24px;
    border: 1px solid rgba(255, 255, 255, 0.24);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.10);
}
.trust-band::before {
    content: '';
    position: absolute;
    inset-inline-start: 0; top: 18px; bottom: 18px;
    width: 4px; border-radius: 2px;
    background: linear-gradient(180deg, var(--accent), #1E4F94);
}
.trust-ids { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 28px; }
.trust-ids > div { text-align: center; }
.trust-ids dt { font-size: 12px; color: rgba(255, 255, 255, 0.72); margin-bottom: 3px; }
.trust-ids dd { font-size: 17px; font-weight: 700; color: #fff; font-variant-numeric: tabular-nums; unicode-bidi: plaintext; }
.trust-ids dd.is-valid { color: #6FD39A; }
.trust-verify {
    display: inline-flex; align-items: center; gap: 7px;
    min-height: 44px;
    padding: 9px 18px;
    border: 1px solid rgba(47, 109, 191, 0.75);
    border-radius: 999px;
    font-size: 14px; font-weight: 700;
    color: var(--accent);
    transition: all var(--ease);
}
.trust-verify:hover { background: var(--accent); color: #0B1626; }

/* ------------------------------------------------------------
   Floating chat button
   ------------------------------------------------------------ */
.chat-fab {
    position: fixed;
    bottom: 24px;
    inset-inline-start: 24px;
    z-index: 9998;
    width: 64px; height: 64px;
    border-radius: 50%;
    border: 1px solid rgba(31, 51, 78, 0.10);
    background: radial-gradient(125% 125% at 32% 16%, #fff 0%, #eef2f8 100%);
    color: var(--primary);
    display: flex; align-items: center; justify-content: center;
    cursor: pointer;
    box-shadow: 0 12px 32px rgba(31, 51, 78, 0.24), 0 3px 10px rgba(0, 0, 0, 0.12);
    animation: fabPulse 2.8s ease-in-out infinite;
    transition: transform 0.25s;
}
.chat-fab:hover { transform: scale(1.08); }
.chat-fab svg { width: 28px; height: 28px; }
@keyframes fabPulse {
    0%, 100% { box-shadow: 0 12px 32px rgba(31,51,78,0.24), 0 0 0 0 rgba(47,109,191,0.45); }
    50% { box-shadow: 0 12px 32px rgba(31,51,78,0.24), 0 0 0 13px rgba(47,109,191,0); }
}
.chat-panel {
    position: fixed;
    bottom: 100px;
    inset-inline-start: 24px;
    z-index: 9998;
    width: min(340px, calc(100vw - 48px));
    padding: 22px;
    border-radius: 22px;
    background: var(--white);
    box-shadow: 0 20px 60px rgba(31, 51, 78, 0.28);
    animation: fadeInUp 0.3s ease both;
}
.chat-panel h5 { font-size: 18px; font-weight: 800; color: var(--primary); margin-bottom: 6px; }
.chat-panel p { font-size: 15px; color: var(--text-light); margin-bottom: 16px; }
.chat-panel .btn { width: 100%; justify-content: center; padding: 12px 20px; font-size: 16px; }

/* ------------------------------------------------------------
   Animations
   ------------------------------------------------------------ */
@keyframes fadeInUp { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: none; } }
.animate-fadeInUp { animation: fadeInUp 0.5s ease both; }

/* ------------------------------------------------------------
   Responsive
   ------------------------------------------------------------ */
@media (max-width: 1200px) {
    .nav-menu { gap: 18px; }
    .nav-link { font-size: 15px; }
}

@media (max-width: 992px) {
    .nav-menu {
        position: fixed;
        top: 0;
        inset-inline-end: -100%;
        width: 80%;
        max-width: 400px;
        height: 100vh;
        flex-direction: column;
        justify-content: center;
        gap: 30px;
        background: var(--white);
        box-shadow: 0 0 30px rgba(0, 0, 0, 0.1);
        transition: inset-inline-end var(--ease);
    }
    .nav-menu.active { inset-inline-end: 0; }
    .nav-link { font-size: 20px; }
    .nav-toggle { display: flex; z-index: 1001; }
    .nav-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(6px, 6px); }
    .nav-toggle.active span:nth-child(2) { opacity: 0; }
    .nav-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(6px, -6px); }
    .lang-switcher { position: absolute; inset-inline-end: 70px; top: 50%; transform: translateY(-50%); margin: 0; }

    .hero-content { flex-direction: column-reverse; text-align: center; }
    .hero-text { max-width: 100%; }
    .hero-text h1 { font-size: 36px; }
    .vision-mission-grid { grid-template-columns: 1fr; gap: 40px; }
    .services-grid { grid-template-columns: repeat(2, 1fr); }
    .journey-timeline { flex-direction: column; align-items: center; }
    .journey-arrow { transform: rotate(90deg); padding: 20px 0; }
    .works-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: 1fr; gap: 40px; text-align: center; }
    .footer-logo-box { display: flex; justify-content: center; }
    .footer-links a, .footer-contact li { justify-content: center; }
}

@media (max-width: 768px) {
    .hero { padding: 140px 0 60px; }
    .hero-text h1 { font-size: 28px; }
    .section-title { margin-bottom: 40px; }
    .services-grid, .works-grid { grid-template-columns: 1fr; }
    .form-row { grid-template-columns: 1fr; gap: 0; }
    .contact-section { padding: 60px 0; }
    .contact-wrapper { padding: 30px 20px; border-radius: var(--radius-md); }
    .review-form-container { padding: 25px 20px; border-radius: var(--radius-md); }
    .review-item, .review-header { flex-direction: column; align-items: flex-start; }
    .review-form-title { text-align: center; }
    .star-rating { justify-content: center; }
    .review-submit-btn { width: 100%; }
    .footer-about p { font-size: 18px; }
    .footer-contact a { font-size: 14px; word-break: break-all; }
    .lang-switcher { inset-inline-end: 60px; }
    .lang-btn { padding: 4px 8px; font-size: 12px; }
}

@media (max-width: 480px) {
    .lang-switcher { inset-inline-end: 55px; }
    .trust-ids { flex-basis: 100%; }
}

@media print {
    .header, .footer, .nav-toggle, .reviews, .contact-section, .chat-fab, .chat-panel { display: none; }
    .hero { padding-top: 20px; }
}

/* ------------------------------------------------------------
   Portfolio page
   ------------------------------------------------------------ */
.works-page { padding-top: 160px; }
.works-page .section-title { margin-bottom: 12px; }
.works-page .section-subtitle { text-align: center; font-size: 20px; color: var(--text-light); margin-bottom: 40px; }
@media (max-width: 768px) { .works-page { padding-top: 120px; } }

/* ------------------------------------------------------------
   Inner pages: services and project details
   ------------------------------------------------------------ */
.page-hero, .project-hero { padding: 150px 0 40px; }
.page-hero .section-title { margin-bottom: 12px; }
.page-hero .section-subtitle, .cta .section-subtitle { text-align: center; font-size: 20px; color: var(--text-light); margin-bottom: 30px; }
.breadcrumb ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; font-size: 14px; color: var(--text-light); margin-bottom: 24px; justify-content: center; }
.breadcrumb li:not(:last-child)::after { content: '/'; margin-inline-start: 6px; opacity: 0.5; }
.breadcrumb a:hover { color: var(--accent); }
.project-hero { text-align: center; }
.project-cat { display: inline-block; padding: 6px 16px; border-radius: 30px; background: rgba(47, 109, 191, 0.12); color: #a67a00; font-size: 14px; font-weight: 700; margin-bottom: 14px; }
.project-hero h1 { font-size: clamp(32px, 4vw, 52px); font-weight: 800; color: var(--primary); margin-bottom: 10px; }
.project-tagline { font-size: clamp(18px, 1.5vw, 22px); color: var(--text-light); max-width: 760px; margin: 0 auto 36px; }
.project-shot { max-width: 1000px; margin: 0 auto; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); }
.project-shot img { width: 100%; }
.project-body, .service-body { padding: 40px 0 80px; }
.project-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 48px; align-items: start; }
.project-main h2 { font-size: clamp(22px, 2vw, 28px); font-weight: 800; color: var(--primary); margin: 36px 0 14px; }
.project-main h2:first-child { margin-top: 0; }
.project-main p { font-size: clamp(16px, 1.1vw, 18px); line-height: 1.85; color: var(--text-light); margin-bottom: 16px; }
.check-list { display: flex; flex-direction: column; gap: 10px; }
.check-list li { position: relative; padding-inline-start: 30px; font-size: clamp(16px, 1.05vw, 18px); color: var(--text-light); }
.check-list li::before { content: ''; position: absolute; inset-inline-start: 0; top: 7px; width: 18px; height: 18px; border-radius: 50%; background: var(--accent); }
.check-list li::after { content: ''; position: absolute; inset-inline-start: 6px; top: 11px; width: 6px; height: 9px; border: solid var(--white); border-width: 0 2.5px 2.5px 0; transform: rotate(45deg); }
.steps { list-style: none; counter-reset: step; display: flex; flex-direction: column; gap: 18px; }
.steps li { position: relative; padding-inline-start: 58px; counter-increment: step; }
.steps li::before { content: counter(step, decimal-leading-zero); position: absolute; inset-inline-start: 0; top: 0; width: 42px; height: 42px; border-radius: 50%; background: var(--primary); color: var(--white); font-size: 15px; font-weight: 700; display: flex; align-items: center; justify-content: center; }
.steps strong { display: block; font-size: 18px; font-weight: 800; color: var(--primary); margin-bottom: 4px; }
.steps span { font-size: 16px; color: var(--text-light); }
details { border: 1px solid rgba(31, 51, 78, 0.12); border-radius: var(--radius-sm); padding: 14px 20px; margin-bottom: 12px; background: var(--white); }
details summary { cursor: pointer; font-weight: 700; color: var(--primary); font-size: 17px; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
details summary::-webkit-details-marker { display: none; }
details summary::after { content: '+'; color: var(--accent); font-size: 22px; font-weight: 700; flex: none; }
details[open] summary::after { content: '−'; }
details p { margin: 12px 0 0; font-size: 16px; color: var(--text-light); line-height: 1.8; }
.project-side { position: sticky; top: 120px; padding: 28px; border-radius: 25px; background: var(--light-bg); }
.project-side h3 { font-size: 18px; font-weight: 800; color: var(--primary); margin-bottom: 14px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
.chips li { padding: 6px 14px; border-radius: 30px; background: var(--white); border: 1px solid rgba(31, 51, 78, 0.12); font-size: 14px; font-weight: 600; color: var(--primary); }
.project-side .btn { width: 100%; justify-content: center; }
.related-works { padding: 60px 0 80px; background: var(--light-bg); }
.related-works .section-title { font-size: clamp(26px, 3vw, 38px); margin-bottom: 36px; }
.services-grid-4 { grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.services .service-card .work-link { margin-top: 16px; }
.service-hero-row { display: flex; align-items: center; gap: 24px; }
.service-hero-row .service-icon { margin: 0; flex: none; }
.service-hero-row h1 { font-size: clamp(30px, 3.6vw, 48px); font-weight: 800; color: var(--primary); margin-bottom: 6px; }
.service-hero-row .section-subtitle { text-align: start; margin: 0; }
@media (max-width: 1200px) { .services-grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 992px) { .project-grid { grid-template-columns: 1fr; } .project-side { position: static; } }
@media (max-width: 768px) {
    .page-hero, .project-hero { padding: 120px 0 30px; }
    .services-grid-4 { grid-template-columns: 1fr; }
    .service-hero-row { flex-direction: column; text-align: center; }
    .service-hero-row .section-subtitle { text-align: center; }
}

/* ------------------------------------------------------------
   WhatsApp button under the contact form
   ------------------------------------------------------------ */
.wa-direct { display: flex; flex-direction: column; align-items: center; gap: 14px; margin-top: 28px; padding-top: 24px; border-top: 1px solid #e5e7eb; }
.wa-or { position: relative; top: -37px; background: var(--white); padding: 0 14px; color: var(--text-light); font-size: 15px; margin-bottom: -30px; }
.wa-btn { width: 100%; justify-content: center; padding: 18px 24px; border-radius: var(--radius-sm); background: #25D366; color: var(--white); font-size: 20px; box-shadow: 0 5px 20px rgba(37, 211, 102, 0.35); }
.wa-btn:hover { background: #1ebe5b; transform: translateY(-3px); box-shadow: 0 10px 30px rgba(37, 211, 102, 0.45); }
.wa-btn svg { flex: none; transform: none !important; }
@media (max-width: 768px) { .wa-btn { font-size: 18px; padding: 16px; } }

/* ------------------------------------------------------------
   Careers page
   ------------------------------------------------------------ */
.careers-page .page-hero .section-subtitle { max-width: 720px; margin-inline: auto; }
.perks { padding: 20px 0 80px; }
.perks-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; max-width: 1100px; margin: 0 auto; }
.perk { background: var(--white); border-radius: var(--radius-md); padding: 26px 22px; box-shadow: var(--shadow); border-top: 4px solid var(--accent); }
.perk h3 { font-size: 20px; font-weight: 800; color: var(--primary); margin-bottom: 8px; }
.perk p { font-size: 16px; color: var(--text-light); line-height: 1.7; }
.roles-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.role { background: rgba(255, 255, 255, 0.06); border: 1px solid rgba(255, 255, 255, 0.14); border-radius: var(--radius-md); padding: 22px; color: var(--white); transition: background var(--ease), transform var(--ease); }
.role:hover { background: rgba(47, 109, 191, 0.14); transform: translateY(-4px); }
.role h3 { font-size: 19px; font-weight: 800; color: var(--accent); margin-bottom: 6px; }
.role p { font-size: 15.5px; color: rgba(255, 255, 255, 0.8); line-height: 1.7; }
.steps-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; max-width: 1100px; margin: 0 auto; }
.steps-row li { padding-inline-start: 0; padding-top: 58px; }
.steps-row li::before { inset-inline-start: 0; }
@media (max-width: 992px) { .perks-grid, .steps-row { grid-template-columns: repeat(2, 1fr); } .roles-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .perks-grid, .roles-grid, .steps-row { grid-template-columns: 1fr; } }
