@font-face {
  font-family: bariz-bareeq;
  src: url(../fonts/Bareeq-Regular.otf);
}
@font-face {
  font-family: bariz-bareeq-sub;
  src: url(../fonts/Bareeq-Bold.otf);
}
@font-face {
  font-family: bariz-tajawal;
  src: url(../fonts/Tajawal-Regular.ttf);
}

body, html {
  width: 100%;
  height: 100%;
}
body {
  font-family: Merriweather, 'Helvetica Neue', Arial, sans-serif;
  text-align: right;
}
hr {
  max-width: 50px;
  border-width: 3px;
  border-color: #2e0351;
}
hr.light {
  border-color: #fff;
}
a {
  color: #2e0351;
  transition: all .2s;
}
a:hover {
  color: #2e0351;
}
h1, h2, h3, h4, h5, h6 {
  font-family: 'Open Sans', 'Helvetica Neue', Arial, sans-serif;
}
.bg-primary {
  background-color: #2e0351 !important;
}
.bg-dark {
  background-color: #212529 !important;
}
.text-faded {
  color: rgba(255,255,255,.7);
}
section {
  padding: 4rem 0;
}
.section-heading {
  margin-top: 0;
}
::selection {
  color: #fff;
  background: #212529;
  text-shadow: none;
}
img::selection {
  color: #fff;
  background: 0 0;
}

/* Navbar */
#mainNav {
  border-bottom: 1px solid rgba(33,37,41,.1);
  background-color: #fff;
  font-family: 'Open Sans', 'Helvetica Neue', Arial, sans-serif;
  transition: all .2s;
}
#mainNav .navbar-brand {
  font-weight: 700;
  text-transform: uppercase;
  color: #2e0351;
  font-family: 'Open Sans', 'Helvetica Neue', Arial, sans-serif;
}
#mainNav .navbar-brand:focus,
#mainNav .navbar-brand:hover {
  color: #2e0351;
}
#mainNav .navbar-nav > li.nav-item > a.nav-link,
#mainNav .navbar-nav > li.nav-item > a.nav-link:focus {
  font-size: .9rem;
  font-weight: 700;
  text-transform: uppercase;
  color: #212529;
}
#mainNav .navbar-nav > li.nav-item > a.nav-link:hover {
  color: #2e0351;
}
#mainNav .navbar-nav > li.nav-item > a.nav-link.active {
  color: #2fbad1 !important;
  background-color: transparent;
}

@media (min-width: 992px) {
  #mainNav {
    border-color: transparent;
    background-color: transparent;
  }
  #mainNav .navbar-brand {
    color: rgba(255,255,255,.7);
  }
  #mainNav .navbar-brand:hover {
    color: #fff;
  }
  #mainNav .navbar-nav > li.nav-item > a.nav-link {
    padding: .5rem 15px;
    color: #212529 !important;
    font-size: 17px;
  }
  #mainNav .navbar-nav > li.nav-item > a.nav-link:hover {
    color: #2e0351 !important;
  }
  #mainNav.navbar-shrink {
    border-bottom: 1px solid rgba(33,37,41,.1);
    background-color: #fffffff5;
  }
  #mainNav.navbar-shrink .navbar-brand {
    color: #2e0351;
  }
  #mainNav.navbar-shrink .navbar-nav > li.nav-item > a.nav-link {
    color: #212529;
  }
  #mainNav .navbar-brand {
    margin-right: 0;
  }
}

/* Hero */
header.masthead {
  padding-top: 10rem;
  padding-bottom: calc(10rem - 56px);
  background-image: url(../img/bg/cover-bariz.jpg);
  background-position: center center;
  background-size: cover;
}
header.masthead hr {
  margin-top: 30px;
  margin-bottom: 30px;
}
header.masthead h1 {
  font-size: 2rem;
}
header.masthead p {
  font-weight: 300;
}
@media (min-width: 768px) {
  header.masthead p {
    font-size: 1.15rem;
  }
}
@media (min-width: 992px) {
  header.masthead {
    height: 100vh;
    min-height: 650px;
    padding-top: 0;
    padding-bottom: 0;
  }
  header.masthead h1 {
    font-size: 3rem;
  }
}
@media (min-width: 1200px) {
  header.masthead h1 {
    font-size: 4rem;
  }
}

/* Services */
.service-box {
  max-width: 400px;
}
.service-list {
  text-align: justify;
  margin-right: 10%;
  list-style: square;
}

/* Portfolio */
.portfolio-box {
  position: relative;
  display: block;
  max-width: 650px;
  margin: 0 auto;
}
.portfolio-box .portfolio-box-caption {
  position: absolute;
  bottom: 0;
  display: block;
  width: 100%;
  height: 100%;
  text-align: center;
  opacity: 0;
  color: #fff;
  background: rgba(46,3,81,.9);
  transition: all .2s;
}
.portfolio-box:hover .portfolio-box-caption {
  opacity: 1;
}

/* Buttons */
.text-primary {
  color: #2e0351 !important;
}
.btn {
  font-weight: 700;
  text-transform: uppercase;
  border: none;
  border-radius: 300px;
  font-family: 'Open Sans', 'Helvetica Neue', Arial, sans-serif;
}
.btn-xl {
  padding: 1rem 2rem;
}
.btn-primary {
  font-family: Changa, cursive;
  background: linear-gradient(180deg, #ffb836, #eead34);
  border-color: transparent;
  font-size: 17px;
  padding: .575rem 1.55rem;
  box-shadow: 0 0 15px -5px #828282;
  color: #fff;
}
.btn-primary:active,
.btn-primary:focus,
.btn-primary:hover {
  color: #fff;
  background: linear-gradient(180deg, #e8a420, #d49b20) !important;
  border-color: transparent !important;
  box-shadow: unset !important;
}
.btn-oval {
  border-radius: 300px;
}
.btn-circle {
  width: 70px;
  height: 70px;
  border-radius: 100%;
  font-size: 1.5rem;
  border: 2px solid #fff;
  background: transparent;
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.btn-circle:hover {
  background: rgba(255,255,255,.1);
  color: #fff;
}

/* Mobile hide */
@media (max-width: 1024px) {
  .mobile-hide {
    display: none !important;
  }
  #mainNav .navbar-nav > li.nav-item > a.nav-link {
    text-align: center !important;
  }
}

/* Custom fonts */
.bariz-bareeq {
  font-family: bariz-bareeq !important;
  font-size: 1.5rem;
}
.bariz-bareeq-sub {
  font-family: bariz-bareeq-sub !important;
  font-size: 3rem;
}

/* Typography overrides */
h1, h2, h3, h4, h5, h6 {
  font-family: Changa, cursive;
  color: #315f8e;
}
.accordion .accordion-title,
.btn, .lead-lg, .link, .link-dark,
p, li, select, textarea, input {
  font-family: bariz-tajawal, Cairo, sans-serif;
}

/* Backgrounds */
.bglines {
  background-image: url(../img/bg/lines.png);
  background-size: contain;
  background-color: rgba(132,132,165,.04);
  background-attachment: fixed;
}
.bariz-purple-bg {
  background: linear-gradient(45deg, #1e615d, #315f8e);
}
.bariz-purple-text {
  color: #1e615d;
}
.bariz-fuchsia-text {
  color: #90006c !important;
}
.bariz-lightblue-text {
  color: #10a8ce !important;
}
.no-caps {
  text-transform: none;
}

/* Arrow animation */
.arrow-p {
  color: #313131;
  font-size: 45px;
  font-weight: 700;
  animation: colorchange 1s infinite alternate;
}
@keyframes colorchange {
  0%   { color: #eead34; }
  100% { color: #dfdfdf; }
}

/* Client carousel */
.client-logo {
  height: 150px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.client-logo img {
  max-height: 100px;
  max-width: 160px;
  object-fit: contain;
}
.make-it-gray {
  margin-left: 12%;
  margin-right: 12%;
  opacity: .5;
  filter: grayscale(1);
  transition: all .3s;
}
.make-it-gray:hover {
  filter: grayscale(0);
  opacity: 1;
}

/* Footer */
.bgfooter {
  padding-top: 60px;
  height: 150px;
}
.bgfooter i, .bgfooter p {
  color: #1e615d;
}
.bgfooter .fa {
  font-size: 1.5rem;
  margin: 0 5px;
  transition: all .2s;
}
.bgfooter .fa:hover {
  color: #315f8e;
}

/* ml50 */
.ml50 {
  margin-left: 50% !important;
}

/* Mobile */
@media (max-width: 414px) {
  .bgfooter {
    padding-top: 0 !important;
  }
  .mob-center {
    text-align: center;
  }
  .mob-size {
    font-size: 2rem !important;
  }
  header.masthead {
    height: 120vh;
    background-position: left;
    background-attachment: scroll !important;
    background-image: url(../img/bg/cover-bariz-mob.jpg) !important;
  }
  .ml50 {
    margin-left: unset !important;
  }
  .make-it-white {
    color: #f8f8ff;
  }
  .navbar-nav {
    padding-left: 15px;
  }
}

/* Text white */
.text-white {
  color: #fff !important;
}
.text-justify {
  text-align: justify;
}

/* ── Inner page body ───────────────────────────────────── */
.page-body {
  height: auto;
}

/* ── Page Hero (shorter banner for inner pages) ────────── */
.page-hero {
  padding-top: 120px;
  padding-bottom: 60px;
  background: linear-gradient(45deg, #1e615d, #315f8e);
}
.page-hero h1 {
  color: #fff;
}
.page-hero-sub {
  font-size: 1.1rem;
  color: rgba(255,255,255,.85);
}

/* ── Request Form Card ─────────────────────────────────── */
.request-card {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 4px 30px rgba(49,95,142,.1);
  padding: 2.5rem 2.5rem;
  margin-top: -30px;
  position: relative;
  z-index: 2;
}
@media (max-width: 576px) {
  .request-card {
    padding: 1.5rem 1.2rem;
    margin-top: -10px;
  }
}

/* ── Step Bar ──────────────────────────────────────────── */
.step-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
}
.step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  min-width: 80px;
}
.step-circle {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: #e9ecef;
  color: #aaa;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: bariz-bareeq, Cairo, sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  transition: all .3s;
}
.step span {
  font-size: .78rem;
  color: #aaa;
  white-space: nowrap;
  transition: all .3s;
}
.step.active .step-circle {
  background: linear-gradient(180deg, #ffb836, #eead34);
  color: #fff;
  box-shadow: 0 4px 12px rgba(238,173,52,.4);
}
.step.active span {
  color: #315f8e;
  font-weight: 700;
}
.step.completed .step-circle {
  background: linear-gradient(45deg, #1e615d, #315f8e);
  color: #fff;
}
.step.completed span {
  color: #1e615d;
}
.step-line {
  flex: 1;
  height: 2px;
  background: #e9ecef;
  margin-bottom: 24px;
  min-width: 30px;
  transition: background .3s;
}

/* ── Form Controls ─────────────────────────────────────── */
.step-title {
  color: #315f8e;
  font-family: bariz-bareeq-sub, Changa, cursive;
  font-size: 1.4rem;
}
.form-control {
  border-radius: 10px;
  border: 1.5px solid #dee2e6;
  padding: .6rem 1rem;
  font-family: bariz-tajawal, Cairo, sans-serif;
  font-size: .95rem;
  transition: border-color .2s, box-shadow .2s;
}
.form-control:focus {
  border-color: #315f8e;
  box-shadow: 0 0 0 3px rgba(49,95,142,.12);
}
label {
  font-family: bariz-tajawal, Cairo, sans-serif;
  font-weight: 600;
  color: #444;
  margin-bottom: .35rem;
}

/* ── Service Card Selector ─────────────────────────────── */
.service-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
@media (max-width: 576px) {
  .service-cards {
    grid-template-columns: repeat(2, 1fr);
  }
}
.service-card-option {
  cursor: pointer;
  margin: 0;
}
.service-card-option input[type="radio"] {
  display: none;
}
.service-card-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 14px 8px;
  border: 2px solid #dee2e6;
  border-radius: 12px;
  text-align: center;
  font-family: bariz-tajawal, Cairo, sans-serif;
  font-size: .85rem;
  color: #555;
  transition: all .2s;
  background: #fafafa;
}
.service-card-box:hover {
  border-color: #315f8e;
  background: #f0f6ff;
}
.service-card-box.selected {
  border-color: #eead34;
  background: #fffbf0;
  color: #315f8e;
  box-shadow: 0 2px 10px rgba(238,173,52,.2);
}
.service-card-box img {
  opacity: .7;
  transition: opacity .2s;
}
.service-card-box.selected img {
  opacity: 1;
}

/* ── Review Box ────────────────────────────────────────── */
.review-box {
  background: #f8f9fa;
  border-radius: 12px;
  padding: 1.5rem;
  border: 1.5px solid #e9ecef;
}
.review-label {
  color: #315f8e;
  font-family: bariz-bareeq-sub, Changa, cursive;
  font-size: 1rem;
  margin-bottom: .75rem;
  padding-bottom: .4rem;
  border-bottom: 1px solid #dee2e6;
}
.review-row {
  display: flex;
  gap: 12px;
  padding: .35rem 0;
  font-size: .9rem;
}
.review-key {
  color: #888;
  min-width: 130px;
  flex-shrink: 0;
}
.review-val {
  color: #333;
  font-weight: 600;
  word-break: break-word;
}

/* ── Success State ─────────────────────────────────────── */
.success-state {
  padding: 2rem 0 1rem;
}
.success-icon .fa {
  font-size: 5rem;
  color: #1e615d;
}
.success-state h3 {
  color: #315f8e;
}

/* ── Outline button ────────────────────────────────────── */
.btn-outline-secondary {
  border: 2px solid #adb5bd;
  color: #6c757d;
  background: transparent;
  font-family: bariz-tajawal, Cairo, sans-serif;
}
.btn-outline-secondary:hover {
  background: #6c757d;
  color: #fff;
}

/* ── Active page button highlight ──────────────────────── */
.btn-primary.active-page {
  box-shadow: 0 0 0 3px rgba(238,173,52,.4);
}
