/* CoreBridge — site.css
   Palette: navy #1A365D · slate #4A5568 · white #FFFFFF · off-white #F8FAFC
   charcoal #1A202C · accent orange #DD6B20 · border #E2E8F0 */

:root {
  --navy: #1A365D;
  --slate: #4A5568;
  --white: #FFFFFF;
  --off-white: #F8FAFC;
  --charcoal: #1A202C;
  --orange: #DD6B20;
  --orange-dark: #C05621;
  --border: #E2E8F0;
  --input-border: #718096;
  --radius: 8px;
  --shadow: 0 1px 3px rgba(26, 32, 44, 0.08);
  --font-head: "Montserrat", "Segoe UI", Tahoma, Arial, sans-serif;
  --font-body: "Inter", "Segoe UI", Tahoma, Arial, sans-serif;
  --dir: 1;
  --header-h: 4.5rem;
}
[dir="rtl"] { --dir: -1; }

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 1rem); -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font-body); font-size: 1rem; line-height: 1.65; color: var(--charcoal); background: var(--white); }
body.no-scroll { overflow: hidden; }
img { display: block; max-width: 100%; height: auto; }
a { color: var(--navy); }
[hidden] { display: none !important; }
h1, h2, h3 { font-family: var(--font-head); color: var(--navy); line-height: 1.2; margin: 0 0 0.75rem; }
h2 { font-size: clamp(1.6rem, 3vw, 2.25rem); font-weight: 700; }
h3 { font-size: 1.2rem; font-weight: 700; }
p { margin: 0 0 1rem; }

:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; }

.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; }
.skip-link { position: absolute; top: -4rem; inset-inline-start: 0.75rem; z-index: 200; padding: 0.75rem 1.25rem; background: var(--navy); color: var(--white); font-weight: 600; border-radius: var(--radius); text-decoration: none; }
.skip-link:focus { top: 0.75rem; }

.container { width: min(100% - 3rem, 72rem); margin-inline: auto; }
.container--narrow { width: min(100% - 3rem, 48rem); }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; padding: 0.8rem 1.6rem; border: 2px solid transparent; border-radius: var(--radius); font: 600 1rem/1.2 var(--font-body); text-decoration: none; text-align: center; cursor: pointer; transition: transform 0.2s ease, background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease; }
.btn:hover { transform: translateY(-1px); }
.btn--sm { padding: 0.55rem 1.1rem; font-size: 0.9rem; }
.btn--block { width: 100%; }
.btn--primary { background: var(--orange); color: var(--charcoal); }
.btn--primary:hover { background: var(--orange-dark); color: var(--white); }
.btn--primary:focus-visible { outline-color: var(--navy); }
.btn--primary:disabled { opacity: 0.75; cursor: not-allowed; transform: none; }
.btn--outline { background: transparent; border-color: var(--navy); color: var(--navy); }
.btn--outline:hover { background: var(--navy); color: var(--white); }
.btn--outline-light { background: transparent; border-color: var(--white); color: var(--white); }
.btn--outline-light:hover { background: var(--white); color: var(--navy); }

/* Header */
.site-header { position: sticky; top: 0; z-index: 80; background: var(--white); border-bottom: 1px solid var(--border); }
.header__inner { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; min-height: var(--header-h); }
.brand { display: inline-flex; flex: none; }
.brand img { height: 44px; width: auto; }
.nav ul { display: flex; gap: 1.5rem; margin: 0; padding: 0; list-style: none; }
.nav a { display: inline-block; padding: 0.4rem 0; color: var(--slate); font-size: 0.95rem; font-weight: 500; text-decoration: none; border-bottom: 2px solid transparent; transition: color 0.2s ease, border-color 0.2s ease; }
.nav a:hover { color: var(--navy); border-bottom-color: var(--navy); }
.header__actions { display: flex; align-items: center; gap: 0.75rem; }
.lang__select { padding: 0.45rem 0.6rem; border: 1px solid var(--input-border); border-radius: var(--radius); background: var(--white); color: var(--navy); font: 600 0.9rem var(--font-body); cursor: pointer; }
.lang__select:focus-visible { border-color: var(--navy); outline: 3px solid var(--orange); outline-offset: 2px; }

/* Hamburger */
.hamburger { display: none; flex-direction: column; align-items: center; justify-content: center; gap: 5px; width: 44px; height: 44px; padding: 0; background: transparent; border: 1px solid var(--border); border-radius: var(--radius); cursor: pointer; }
.hamburger__bar { display: block; width: 22px; height: 2px; background: var(--navy); transition: transform 0.25s ease, opacity 0.25s ease; }
.hamburger[aria-expanded="true"] .hamburger__bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger[aria-expanded="true"] .hamburger__bar:nth-child(2) { opacity: 0; }
.hamburger[aria-expanded="true"] .hamburger__bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Drawer: slides in from the right (LTR) or the left (RTL) */
.overlay { position: fixed; inset: 0; z-index: 90; background: rgba(26, 32, 44, 0.55); }
.drawer { position: fixed; inset-block: 0; inset-inline-end: 0; z-index: 100; display: flex; flex-direction: column; width: min(86vw, 22rem); background: var(--white); box-shadow: 0 0 24px rgba(26, 32, 44, 0.18); overflow-y: auto; visibility: hidden; transform: translateX(calc(var(--dir) * 100%)); transition: transform 0.3s ease, visibility 0.3s; }
.drawer.is-open { visibility: visible; transform: none; }
.drawer__head { display: flex; justify-content: flex-end; padding: 0.75rem 1rem; }
.drawer__close { width: 44px; height: 44px; padding: 0; background: transparent; border: 0; border-radius: var(--radius); color: var(--navy); font-size: 2rem; line-height: 1; cursor: pointer; }
.drawer__links { margin: 0; padding: 0; list-style: none; }
.drawer__links a { display: block; padding: 0.9rem 1.5rem; border-bottom: 1px solid var(--border); color: var(--charcoal); font-weight: 600; text-decoration: none; transition: background-color 0.2s ease, color 0.2s ease; }
.drawer__links a:hover { background: var(--off-white); color: var(--navy); }
.drawer__foot { display: grid; gap: 0.75rem; margin-top: auto; padding: 1.5rem; }
.drawer__lang-label { color: var(--slate); font-size: 0.9rem; font-weight: 600; }

/* Hero */
.hero { position: relative; display: grid; align-items: center; min-height: min(80vh, 44rem); overflow: hidden; color: var(--white); background: var(--navy); }
.hero__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero__overlay { position: absolute; inset: 0; background: linear-gradient(to right, rgba(26, 54, 93, 0.92), rgba(26, 32, 44, 0.55)); }
[dir="rtl"] .hero__overlay { background: linear-gradient(to left, rgba(26, 54, 93, 0.92), rgba(26, 32, 44, 0.55)); }
.hero__content { position: relative; z-index: 1; padding-block: 4rem; }
.hero h1 { max-width: 40rem; color: var(--white); font-size: clamp(2rem, 5vw, 3.5rem); font-weight: 800; }
.hero__sub { max-width: 38rem; margin-block: 1.25rem 2rem; font-size: clamp(1.05rem, 2vw, 1.25rem); color: var(--off-white); }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 1rem; }

/* Sections */
.section { padding-block: clamp(3.5rem, 8vw, 6rem); }
.section--alt { background: var(--off-white); }
.section--navy { background: var(--navy); color: var(--border); }
.section--navy h2, .section--navy h3 { color: var(--white); }
.section__title { margin-block-end: 2.5rem; }
.section__sub { max-width: 40rem; margin: -1.5rem 0 2.5rem; color: var(--slate); font-size: 1.1rem; }

.split { display: grid; gap: 2.5rem; align-items: center; }
.split__text p { color: var(--slate); }
.img-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; }
.img-grid img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); }

.grid { display: grid; gap: 1.5rem; }
.card { padding: 1.75rem; background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); transition: border-color 0.2s ease; }
.card:hover { border-color: var(--navy); }
.card p { margin: 0; color: var(--slate); }

.checklist { margin: 0 0 1rem; padding: 0; list-style: none; }
.checklist li { position: relative; margin-bottom: 0.65rem; padding-inline-start: 1.6rem; color: var(--slate); }
.checklist li::before { content: ""; position: absolute; top: 0.6em; inset-inline-start: 0.1rem; width: 0.5rem; height: 0.5rem; border-top: 2px solid var(--orange); border-inline-end: 2px solid var(--orange); transform: rotate(45deg); }
[dir="rtl"] .checklist li::before { transform: rotate(-45deg); }

/* Timeline */
.timeline { position: relative; margin: 0; padding: 0; list-style: none; max-width: 48rem; }
.timeline::before { content: ""; position: absolute; top: 1.25rem; bottom: 1.25rem; inset-inline-start: calc(1.25rem - 1px); width: 2px; background: rgba(255, 255, 255, 0.3); }
.timeline__step { position: relative; display: grid; grid-template-columns: 2.5rem 1fr; gap: 1.5rem; padding-block-end: 2.5rem; }
.timeline__step:last-child { padding-block-end: 0; }
.timeline__num { position: relative; z-index: 1; display: grid; place-items: center; width: 2.5rem; height: 2.5rem; border-radius: 50%; background: var(--orange); color: var(--charcoal); font: 700 1rem var(--font-head); }
.timeline__body p { margin-bottom: 0; }
.timeline__img { width: 100%; max-width: 26rem; margin-top: 1.25rem; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); }

/* Gallery */
.gallery { display: grid; grid-template-columns: 1fr; gap: 1rem; }
.gallery img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); box-shadow: var(--shadow); }

/* Case studies */
.case { margin: 0; }
.case dt { margin-top: 1.1rem; color: var(--navy); font: 700 0.95rem var(--font-head); }
.case dd { margin: 0.25rem 0 0; color: var(--slate); }

/* FAQ */
.faq details { margin-bottom: 0.75rem; background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); }
.faq summary { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1.1rem 1.25rem; color: var(--navy); font-weight: 600; cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; color: var(--navy); font-size: 1.5rem; line-height: 1; }
.faq details[open] summary::after { content: "\2212"; }
.faq details[open] { border-color: var(--navy); }
.faq details p { margin: 0; padding: 0 1.25rem 1.25rem; color: var(--slate); }

/* Form */
.form { padding: 2rem; background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); }
.field { margin-bottom: 1.25rem; }
.field label { display: block; margin-bottom: 0.4rem; color: var(--charcoal); font-weight: 600; }
.field input[type="text"], .field input[type="email"], .field textarea { width: 100%; padding: 0.75rem 1rem; border: 1px solid var(--input-border); border-radius: var(--radius); background: var(--white); color: var(--charcoal); font: 400 1rem var(--font-body); transition: border-color 0.2s ease, box-shadow 0.2s ease; }
.field textarea { resize: vertical; min-height: 9rem; }
.field input:focus, .field textarea:focus { border-color: var(--navy); outline: 3px solid var(--orange); outline-offset: 2px; }
.field--check { display: flex; align-items: flex-start; gap: 0.75rem; }
.field--check input { flex: none; width: 1.25rem; height: 1.25rem; margin: 0.2rem 0 0; accent-color: var(--navy); }
.field--check label { margin: 0; font-weight: 400; color: var(--slate); }
.form__msg { margin: 1rem 0 0; padding: 0.9rem 1rem; border: 1px solid; border-radius: var(--radius); font-weight: 500; }
.form__msg--ok { background: #F0FFF4; border-color: #9AE6B4; color: #22543D; }
.form__msg--err { background: #FFFAF0; border-color: var(--orange); color: #7B341E; }

/* Contact info block */
.contact-info { margin-bottom: 2rem; padding: 1.5rem; background: var(--off-white); border: 1px solid var(--border); border-radius: var(--radius); text-align: center; }
.contact-info__item { margin: 0.5rem 0; color: var(--slate); }
.contact-info__item strong { color: var(--navy); margin-inline-end: 0.4rem; }
.contact-info a { color: var(--navy); font-weight: 600; text-decoration: none; }
.contact-info a:hover { text-decoration: underline; }

/* Footer */
.site-footer { padding-block: 2.5rem; background: var(--navy); color: var(--border); text-align: center; }
.footer__inner { display: flex; flex-direction: column; align-items: center; gap: 0.75rem; }
.footer__inner img { height: 36px; width: auto; filter: brightness(0) invert(1); }
.footer__inner p { margin: 0; font-size: 0.95rem; }
.footer__link { color: var(--white); font-size: 0.95rem; }

/* Scroll reveal: only hidden when JS is running */
.js .reveal { opacity: 0; transform: translateY(16px); transition: opacity 0.6s ease, transform 0.6s ease; }
.js .reveal.is-visible { opacity: 1; transform: none; }

/* Privacy page */
.policy h1 { margin-bottom: 0.5rem; font-size: clamp(1.9rem, 4vw, 2.6rem); font-weight: 800; }
.policy__meta { color: var(--slate); font-size: 0.95rem; }
.policy section { margin-top: 2.5rem; }
.policy h2 { font-size: 1.35rem; }
.policy p, .policy li { color: var(--slate); }

/* Responsive */
@media (min-width: 560px) { .gallery { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 720px) { .grid--2 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) {
  .split { grid-template-columns: 1fr 1fr; gap: 4rem; }
  .gallery { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 960px) { .grid--3 { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 1023px) {
  .nav--desktop, .lang, .header__quote { display: none; }
  .hamburger { display: flex; }
}
@media (max-width: 480px) {
  .form { padding: 1.25rem; }
  .hero__ctas .btn { width: 100%; }
}

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