:root {
  --blue: #146cf0;
  --blue-2: #0c71c3;
  --green: #03a885;
  --green-dark: #016d52;
  --text: #666;
  --heading: #333f48;
  --light: #f2f3f7;
  --field: #eee;
  --footer: #1f2030;
  --footer-2: #272937;
  --footer-3: #14151f;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font: 400 15px/1.7 "Helvetica Neue", Helvetica, Arial, sans-serif;
  color: var(--text);
  background: #fff;
}
[dir="rtl"] { font-family: Tahoma, "Geeza Pro", Arial, sans-serif; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); text-decoration: none; }
h1, h2, h3, h4 { color: var(--heading); font-weight: 500; line-height: 1.25; margin: 0 0 .6em; }
p { margin: 0 0 1em; }

.container { width: 80%; max-width: 1080px; margin: 0 auto; }
.narrow { max-width: 780px; }
.center { text-align: center; }
.justify { text-align: justify; }
.section { padding: 60px 0; }
.pt0 { padding-top: 0; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; }

/* Header */
.site-header { position: relative; z-index: 10; background: #fff; }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 84px; }

.logo img { width: 300px; height: auto; }
.main-nav { display: flex; gap: 26px; }
.main-nav a { color: var(--heading); font-weight: 700; font-size: 18px; }
.main-nav a:hover { opacity: .7; }
.main-nav a.active { color: var(--green); }
.nav-toggle { display: none; background: none; border: 0; padding: 8px; cursor: pointer; }
.nav-toggle span { display: block; width: 24px; height: 2px; margin: 5px 0; background: var(--heading); }

/* Buttons */
.btn {
  display: inline-block; padding: 6px 18px; font: inherit; font-size: 16px; cursor: pointer;
  color: var(--blue-2); background: transparent; border: 2px solid var(--blue-2); border-radius: 3px;
  transition: background .2s, color .2s;
}
.btn:hover { background: var(--blue-2); color: #fff; }
.btn-dark { color: var(--heading); border-color: var(--heading); font-size: 14px; }
.btn-dark:hover { background: var(--heading); color: #fff; }

/* Titles */
.page-title { padding: 120px 10% 60px; text-align: center; }
.page-title h1 { font-size: 40px; }
.title-blue { color: var(--blue-2); font-size: 36px; font-weight: 400; }
.title-blue.big { color: #1446c8; }
.title-dark { font-size: 36px; font-weight: 400; }

/* Home hero */
.hero {
  padding: 110px 0 120px;
  background: linear-gradient(180deg, rgba(255,255,255,.92) 0%, rgba(43,135,218,.75) 100%), url(../img/hero-office.jpg) center/cover;
}
.hero-kicker { font-size: 26px; color: var(--heading); margin-bottom: 18px; }
.hero h1 { font-size: 46px; font-weight: 700; color: var(--blue); margin-bottom: 12px; }
.hero-text { font-size: 24px; line-height: 1.6; color: #333; margin-bottom: 36px; }

/* About on home */
.about-home { display: grid; grid-template-columns: 300px 1fr; gap: 60px; align-items: start; }
.blue-box { background: var(--blue-2); color: #fff; font-size: 40px; font-weight: 400; padding: 30px 60px; margin: 0; }
.small-text { font-size: 13px; color: #888; padding-top: 80px; }
.about-img { width: 225px; margin-top: 20px; }
.small-text p { margin-bottom: 2.5em; }

/* Services list on home */
.services-head { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
.services-head p { font-size: 22px; color: #333; }
.services-list { max-width: 920px; margin: 30px auto 0; }
.services-list div { margin-bottom: 36px; }
.services-list h3 { text-align: center; color: var(--blue); font-weight: 700; font-size: 28px; margin-bottom: 10px; }
.services-list p { font-size: 22px; color: #333; }
.services-list .pay { margin-top: 70px; }

/* Achievements */
.achievements { padding: 90px 0; background: linear-gradient(45deg, var(--green) 0%, var(--green-dark) 100%); color: #fff; }
.achievements h2 { color: #fff; font-size: 40px; font-weight: 400; margin-bottom: 40px; }
.counter { display: block; font-size: 72px; line-height: 1.1; font-weight: 300; }
.achievements p { font-size: 20px; margin: 0; }

/* Forms */
.contact-form { display: grid; gap: 14px; text-align: left; }
.contact-form input, .contact-form textarea {
  width: 100%; padding: 14px 16px; font: inherit; font-size: 14px; color: #333;
  background: var(--field); border: 0; border-radius: 0; text-align: center;
}
.contact-form input:focus, .contact-form textarea:focus { outline: 2px solid var(--blue-2); }
.contact-form .btn { justify-self: start; }
.narrow-form { max-width: 480px; margin: 40px auto 0; }
.wide-form { max-width: 860px; margin: 30px auto 0; }

/* Office info */
.office-row { display: flex; justify-content: center; margin-top: 60px; }
.office-row .info-list { grid-template-columns: repeat(2, auto); gap: 24px 80px; }
.info-list { display: grid; gap: 24px; }
.info { display: flex; gap: 16px; align-items: flex-start; }
.info h4 { font-size: 22px; font-weight: 400; margin-bottom: 4px; }
.info p { margin: 0; font-size: 15px; }
.info a { color: inherit; }
.ico {
  flex: 0 0 auto; width: 44px; height: 44px; border-radius: 50%; background: var(--blue);
  display: inline-grid; place-items: center;
}
.ico::before {
  content: ""; width: 24px; height: 24px; background: #fff;
  -webkit-mask: var(--i) center/contain no-repeat; mask: var(--i) center/contain no-repeat;
}
.ico-mail { --i: url(https://cdn.jsdelivr.net/npm/@phosphor-icons/core@2.1.1/assets/fill/envelope-simple-fill.svg); }
.ico-phone { --i: url(https://cdn.jsdelivr.net/npm/@phosphor-icons/core@2.1.1/assets/fill/phone-fill.svg); }

/* About page */
.inset { background: #f7f8fa; box-shadow: inset 0 0 18px rgba(0,0,0,.25); padding: 70px 0; font-size: 18px; }

/* Services page */
.blurbs { row-gap: 50px; }
.blurb { display: flex; gap: 18px; align-items: flex-start; }
.blurb h3 { font-size: 24px; font-weight: 400; text-align: center; }
.blurb p { text-align: center; font-size: 16px; }
.testimonial {
  padding: 90px 0 120px; color: #fff;
  background: linear-gradient(rgba(46,163,242,.55), rgba(46,163,242,.55)), url(../img/testimonial-bg.jpg) center/cover;
}
.quote-mark {
  display: inline-grid; place-items: center; width: 50px; height: 50px; border: 3px solid #fff; border-radius: 50%;
  font: 700 54px/1 Georgia, serif; padding-top: 22px; margin-bottom: 30px;
}
.testimonial blockquote { margin: 0 0 40px; font-size: 22px; line-height: 1.75; }
.cite { color: rgba(255,255,255,.7); font-weight: 600; }

/* Contact page */
.contact-split { position: relative; padding: 60px 0 100px; }
.contact-split::before {
  content: ""; position: absolute; inset: 0; z-index: -1; background: #f7f8fa;
  clip-path: polygon(0 20%, 50% 7%, 100% 0, 100% 100%, 0 100%);
}
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; }
.card { background: #fff; padding: 20px; }

/* Jobs page (RTL) */
.jobs-hero { background: linear-gradient(rgba(20,20,20,.88), rgba(20,20,20,.88)), url(../img/jobs-bg.jpg) center/cover; padding: 120px 0 260px; }
.kicker-green { color: var(--green); font-size: 13px; margin: 0; }
.jobs-hero h2 { color: #fff; font-size: 36px; font-weight: 700; }
.divider { display: block; width: 60px; height: 2px; margin: 20px auto 0; background: var(--green); }
.jobs-cards { margin-top: -200px; padding-bottom: 80px; }
.job {
  background: #fff; border: 1px dashed #ccc; padding: 70px 30px; text-align: center;
  box-shadow: 0 15px 80px -6px rgba(0,0,0,.2);
}
.job h3 { font-size: 16px; font-weight: 700; margin: 24px 0 12px; }
.job p { font-size: 14px; line-height: 1.8; margin: 0; }
.ico-green { width: 82px; height: 82px; background: var(--green); }
.ico-green::before { width: 34px; height: 34px; }
.jobs-apply { background: var(--light); padding: 30px 0 60px; }
.apply-card { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; padding: 40px 60px; box-shadow: 0 10px 40px rgba(0,0,0,.15); }
.apply-card h2 { font-size: 30px; font-weight: 700; }
.line-form input { background: none; border-bottom: 1px solid #ddd; text-align: right; }
.line-form textarea { background: #f8f8f8; border: 1px solid #ddd; text-align: right; }
.line-form .btn { justify-self: end; background: var(--green); border-color: var(--green); color: #fff; }
.apply-info { align-self: center; font-size: 15px; }
.apply-info a { color: inherit; }

/* Legal pages */
.legal { padding: 50px 0 40px; color: #000; font-size: 15px; }
.legal h1 { font-size: 40px; font-weight: 400; }
.legal h2 { font-size: 26px; }
.legal h3, .legal h4 { font-size: 18px; font-weight: 700; color: #000; margin-top: 1.4em; }
.legal li p { margin: 0 0 .4em; }
.legal blockquote { margin: 0 0 1em; padding-left: 16px; border-left: 4px solid var(--blue-2); }

/* Footer */
.site-footer { color: #fff; }
.footer-top-wrap { background: var(--footer); }
.footer-top { padding: 60px 0 100px; display: flex; gap: 4px; }
.footer-top img { width: 48px; }
.footer-links { background: var(--footer-2); padding: 14px 0; }
.footer-links .container { display: flex; flex-wrap: wrap; gap: 8px 26px; }
.footer-links a { color: rgba(255,255,255,.8); font-size: 12px; font-weight: 600; }
.footer-links a:hover, .footer-links a.active { color: var(--blue); }
.footer-bottom { background: var(--footer-3); padding: 14px 0; font-size: 14px; color: rgba(255,255,255,.8); }

/* Responsive */
@media (max-width: 980px) {
  .container { width: 88%; }
  .nav-toggle { display: block; }
  .logo img { width: min(300px, 55vw); }
  .main-nav {
    display: none; position: absolute; top: 84px; left: 0; right: 0; flex-direction: column; gap: 0;
    background: #fff; border-top: 3px solid var(--blue); box-shadow: 0 2px 5px rgba(0,0,0,.1);
  }
  .main-nav a { padding: 12px 6%; border-bottom: 1px solid rgba(0,0,0,.05); }
  .nav-open .main-nav { display: flex; }
  .grid-3, .about-home, .services-head, .office-row, .contact-grid, .apply-card { grid-template-columns: 1fr; }
  .small-text { padding-top: 0; }
  .office-row .info-list { grid-template-columns: 1fr; }
  .hero h1 { font-size: 34px; }
  .hero-kicker { font-size: 20px; }
  .hero-text, .services-list p, .services-head p { font-size: 17px; }
  .services-list h3 { font-size: 22px; }
  .jobs-hero { padding-bottom: 220px; }
  .apply-card { padding: 30px 24px; }
}
