/**
 * EgyCarService — layout + palette
 * Cream / navy / teal system (replaces lime-green + white + red)
 */

:root {
  --egy-navy: #0B2430;
  --egy-navy-deep: #071820;
  --egy-ink: #12262F;
  --egy-teal: #148F82;
  --egy-teal-deep: #0E6F65;
  --egy-gold: #C9922A;
  --egy-gold-deep: #A8761E;
  --egy-cream: #F5F0E6;
  --egy-cream-2: #EBE4D4;
  --egy-white: #FFFdf8;
  --egy-muted: #5C6E74;
  --egy-line: rgba(11, 36, 48, 0.12);
  --egy-radius: 14px;
  --egy-radius-lg: 22px;
  --egy-shadow: 0 16px 40px rgba(11, 36, 48, 0.12);
}

html { scroll-behavior: smooth; }

body {
  background: var(--egy-cream) !important;
  color: var(--egy-ink);
  font-family: "Cairo", "Readex Pro", sans-serif;
  direction: rtl;
}

a { color: var(--egy-teal-deep); }

/* ---------- Navbar ---------- */
.egy-nav {
  background: #ffffff !important;
  position: sticky !important;
  top: 0;
  z-index: 1040;
  padding: 0.35rem 0 !important;
  box-shadow: 0 8px 24px rgba(11, 36, 48, 0.08);
  border-bottom: 1px solid var(--egy-line);
}

.egy-nav::before {
  content: "";
  display: block;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #F78E20, #1A1F2B, #F78E20);
}

.egy-nav .container {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.egy-logo {
  height: 78px;
  width: auto;
  max-width: 260px;
  object-fit: contain;
  display: block;
  border-radius: 12px;
}

.egy-nav .navbar-brand {
  margin: 0;
  padding: 0.2rem 0;
}

.egy-nav .navbar-toggler {
  border: 1px solid var(--egy-line);
  border-radius: 10px;
  padding: 0.4rem 0.55rem;
}

.egy-nav .navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(26, 31, 43, 0.92)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") !important;
}

.egy-nav.navbar a {
  color: var(--egy-ink) !important;
}

.egy-nav .navbar-nav {
  gap: 0.15rem;
  align-items: center;
}

.egy-nav .navbar-nav .nav-link,
.egy-nav .navbar-nav > li > a {
  color: var(--egy-ink) !important;
  font-weight: 700;
  padding: 0.45rem 0.85rem !important;
  border-radius: 10px;
  font-size: 0.98rem;
}

.egy-nav .navbar-nav > li.current-menu-item > a,
.egy-nav .navbar-nav > li.current_page_item > a,
.egy-nav .navbar-nav .nav-link.active {
  background: var(--egy-navy) !important;
  color: #fff !important;
}

.navbar a.egy-nav-call,
.egy-nav a.egy-nav-call,
a.egy-nav-call {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: var(--egy-gold);
  color: #fff !important;
  font-weight: 800;
  padding: 0.55rem 1rem;
  border-radius: 999px;
  text-decoration: none !important;
  white-space: nowrap;
  box-shadow: 0 8px 18px rgba(201, 146, 42, 0.28);
}

.navbar a.egy-nav-call i,
.egy-nav a.egy-nav-call i {
  color: #fff !important;
}

.navbar a.egy-nav-call:hover,
.egy-nav a.egy-nav-call:hover {
  background: var(--egy-gold-deep);
  color: #fff !important;
}

.egy-nav-call-mobile {
  margin-inline-start: auto;
  padding: 0.4rem 0.75rem;
  font-size: 0.85rem;
}

@media (max-width: 991px) {
  .egy-logo { height: 58px; max-width: 180px; }
  .egy-nav .navbar-collapse {
    background: #ffffff;
    border-radius: 14px;
    margin-top: 0.75rem;
    padding: 0.75rem;
    border: 1px solid var(--egy-line);
  }
}

/* ---------- Buttons ---------- */
.egy-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.8rem 1.35rem;
  border-radius: 999px;
  font-weight: 800;
  text-decoration: none !important;
  border: 0;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.egy-btn:hover { transform: translateY(-2px); }

.egy-btn-primary {
  background: var(--egy-teal);
  color: #fff !important;
  box-shadow: 0 10px 22px rgba(20, 143, 130, 0.28);
}

.egy-btn-primary:hover { background: var(--egy-teal-deep); }

.egy-btn-gold {
  background: var(--egy-gold);
  color: #fff !important;
}

.egy-btn-ghost {
  background: transparent;
  color: #fff !important;
  border: 1px solid rgba(255, 255, 255, 0.45);
}

.btn-danger,
.btn-primary,
.btn.bg-secondary,
.card .btn {
  background: var(--egy-teal) !important;
  border: 0 !important;
  color: #fff !important;
  border-radius: 999px !important;
  font-weight: 700;
  padding: 0.55rem 1.15rem;
}

.text-danger { color: var(--egy-teal-deep) !important; }
.bg-danger { background: var(--egy-navy) !important; }

/* ---------- Hero ---------- */
.egy-hero {
  position: relative;
  margin-bottom: 0;
}

.egy-hero .container-fluid {
  padding: 0 !important;
  margin: 0 !important;
}

.egy-hero #header-carousel .carousel-item {
  position: relative;
  min-height: min(86vh, 760px);
  background: var(--egy-navy-deep);
}

.egy-hero #header-carousel .carousel-item > img.w-100 {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.65) brightness(0.52) contrast(1.05);
}

.egy-hero .carousel-item::before {
  display: none !important;
}

.egy-hero .carousel-caption {
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 3 !important;
  background:
    linear-gradient(270deg, rgba(7, 24, 32, 0.88) 0%, rgba(7, 24, 32, 0.55) 48%, rgba(7, 24, 32, 0.22) 100%) !important;
  display: flex !important;
  align-items: flex-end !important;
  text-align: right;
  padding: 7vh 0 11vh;
}

.egy-hero .carousel-caption .row {
  width: 100%;
  justify-content: flex-start !important;
}

.egy-hero .egy-hero-copy {
  max-width: 640px;
  text-align: right;
  width: 100%;
}

.egy-hero .egy-kicker,
.egy-kicker {
  display: inline-block;
  color: var(--egy-gold);
  font-weight: 800;
  letter-spacing: 0.04em;
  margin-bottom: 0.6rem;
  font-size: 0.95rem;
}

.egy-hero h1 {
  font-size: clamp(2rem, 5vw, 3.6rem) !important;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 0.75rem !important;
  text-shadow: none;
}

.egy-hero .egy-lead {
  color: rgba(255, 255, 255, 0.82);
  font-size: 1.05rem;
  max-width: 34em;
  margin-bottom: 1.4rem;
}

.egy-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
}

.egy-hero .carousel-control-prev,
.egy-hero .carousel-control-next {
  width: 7%;
  opacity: 0.7;
}

@media (max-width: 768px) {
  .egy-hero #header-carousel .carousel-item {
    min-height: 78vh;
  }
  .egy-hero .carousel-caption {
    align-items: flex-end !important;
    padding: 5vh 0.75rem 9vh;
    left: 0 !important;
    right: 0 !important;
  }
  .egy-hero .egy-hero-copy {
    max-width: 100%;
  }
}

/* ---------- Stats ---------- */
.egy-stats {
  position: relative;
  z-index: 2;
  margin-top: -48px;
  margin-bottom: 1.5rem;
}

.egy-stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  background: var(--egy-navy);
  color: #fff;
  border-radius: var(--egy-radius-lg);
  overflow: hidden;
  box-shadow: var(--egy-shadow);
}

.egy-stats-grid > div {
  padding: 1.35rem 1rem;
  text-align: center;
  border-left: 1px solid rgba(255, 255, 255, 0.1);
}

.egy-stats-grid > div:last-child { border-left: 0; }

.egy-stats-grid strong {
  display: block;
  font-size: clamp(1.4rem, 3vw, 2rem);
  color: var(--egy-gold);
  font-weight: 800;
}

.egy-stats-grid span {
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.92rem;
}

@media (max-width: 700px) {
  .egy-stats { margin-top: -28px; }
  .egy-stats-grid { grid-template-columns: 1fr; }
  .egy-stats-grid > div {
    border-left: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }
  .egy-stats-grid > div:last-child { border-bottom: 0; }
}

/* ---------- Sections ---------- */
.egy-section {
  padding: 3.5rem 0;
}

.egy-section-head {
  text-align: center;
  margin-bottom: 2rem;
}

.egy-section-head h2 {
  font-weight: 800;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  color: var(--egy-navy);
  margin: 0;
}

.egy-section-head .egy-kicker {
  color: var(--egy-teal-deep);
}

/* ---------- Services bento ---------- */
.egy-services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.1rem;
}

.egy-service {
  background: var(--egy-white);
  border: 1px solid var(--egy-line);
  border-radius: var(--egy-radius-lg);
  padding: 1.5rem 1.35rem 1.4rem;
  text-align: right;
  box-shadow: 0 10px 26px rgba(11, 36, 48, 0.05);
  position: relative;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.egy-service:hover {
  transform: translateY(-4px);
  box-shadow: var(--egy-shadow);
}

.egy-service-num {
  position: absolute;
  top: 1rem;
  left: 1.1rem;
  font-weight: 800;
  color: var(--egy-cream-2);
  font-size: 1.6rem;
  line-height: 1;
}

.egy-service i {
  font-size: 1.7rem;
  color: var(--egy-teal);
  margin-bottom: 0.7rem;
  display: inline-block;
}

.egy-service h3 {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--egy-navy);
  margin-bottom: 0.45rem;
}

.egy-service p {
  color: var(--egy-muted);
  margin: 0;
  line-height: 1.75;
}

@media (max-width: 700px) {
  .egy-services-grid { grid-template-columns: 1fr; }
}

/* fallback old .services if any leftover */
.services {
  display: none;
}

/* ---------- Steps ---------- */
.egy-steps {
  background: var(--egy-navy);
  color: #fff;
  padding: 3.4rem 0;
}

.egy-steps .egy-section-head h2,
.egy-steps .egy-kicker { color: var(--egy-gold); }
.egy-steps .egy-section-head h2 { color: #fff; }

.egy-steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.egy-step {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--egy-radius-lg);
  padding: 1.5rem 1.2rem;
  text-align: center;
}

.egy-step b {
  display: flex;
  width: 44px;
  height: 44px;
  margin: 0 auto 0.85rem;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--egy-teal);
  color: #fff;
  font-size: 1.1rem;
}

.egy-step h3 {
  font-size: 1.1rem;
  font-weight: 800;
  margin-bottom: 0.4rem;
}

.egy-step p {
  color: rgba(255, 255, 255, 0.75);
  margin: 0;
  font-size: 0.95rem;
}

@media (max-width: 700px) {
  .egy-steps-grid { grid-template-columns: 1fr; }
}

/* ---------- CTA band ---------- */
.egy-band {
  background: linear-gradient(135deg, var(--egy-teal-deep), var(--egy-teal) 55%, #1aa897);
  color: #fff;
  text-align: center;
  padding: 2.6rem 1rem;
}

.egy-band h2 {
  font-weight: 800;
  font-size: clamp(1.4rem, 3vw, 2rem);
  margin-bottom: 0.5rem;
}

.egy-band p { margin-bottom: 1.1rem; opacity: 0.92; }

.egy-band .egy-btn-gold { color: #fff !important; }

/* ---------- Articles / gallery ---------- */
.egy-articles h1,
.egy-gallery h1,
.egy-about > .row > h1 {
  font-size: clamp(1.5rem, 3vw, 2rem) !important;
  color: var(--egy-navy) !important;
  font-weight: 800;
}

.egy-articles h1 i,
.egy-gallery h1 i,
.egy-about h1 i {
  color: var(--egy-teal);
  margin-left: 0.35rem;
}

.egy-articles hr,
.egy-gallery hr {
  opacity: 0.15;
  border-color: var(--egy-navy);
}

.egy-articles .card,
.category .card,
.archive .card {
  border: 1px solid var(--egy-line) !important;
  border-radius: var(--egy-radius-lg) !important;
  overflow: hidden;
  background: var(--egy-white);
  box-shadow: 0 10px 24px rgba(11, 36, 48, 0.06);
}

.egy-articles .card-title a,
.category .card-title a,
.archive .card-title a {
  color: var(--egy-navy) !important;
  font-weight: 800;
}

.egy-gallery .image-container {
  border-radius: var(--egy-radius);
  overflow: hidden;
  background: var(--egy-navy);
}

.egy-gallery .post-title {
  background: var(--egy-navy) !important;
}

.egy-gallery .image-container .circle { display: none; }

.owl-carousel .owl-nav button.owl-next,
.owl-carousel .owl-nav button.owl-prev {
  background: var(--egy-teal) !important;
  color: #fff !important;
  border-radius: 50%;
}

.owl-carousel .owl-nav button.owl-next:hover,
.owl-carousel .owl-nav button.owl-prev:hover {
  background: var(--egy-navy) !important;
}

.owl-carousel button.owl-dot { background: var(--egy-cream-2) !important; }
.owl-carousel button.owl-dot.active { background: var(--egy-teal) !important; }

/* ---------- About ---------- */
.egy-about {
  padding: 3.2rem 0 4rem;
}

.egy-about-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 2rem;
  align-items: center;
  background: var(--egy-white);
  border: 1px solid var(--egy-line);
  border-radius: var(--egy-radius-lg);
  padding: 2rem;
  box-shadow: 0 12px 30px rgba(11, 36, 48, 0.05);
}

.egy-about-grid p {
  text-align: right;
  color: var(--egy-muted);
  line-height: 1.9;
  margin: 0;
}

.egy-about-grid img {
  max-height: 240px;
  width: auto;
  margin: 0 auto;
  display: block;
  border-radius: 18px;
}

@media (max-width: 800px) {
  .egy-about-grid { grid-template-columns: 1fr; }
}

/* ---------- Footer ---------- */
footer.egy-footer,
footer.bg-dark {
  background: var(--egy-navy-deep) !important;
  text-align: right !important;
  padding: 2.6rem 0 1.4rem;
  margin-top: 0;
  border-top: 4px solid var(--egy-teal);
}

footer.egy-footer h5,
footer.bg-dark h5 {
  color: var(--egy-gold);
  font-weight: 800;
  margin-bottom: 0.8rem;
}

footer.egy-footer p,
footer.bg-dark p {
  color: rgba(255, 255, 255, 0.78);
}

footer.egy-footer a,
footer.bg-dark a {
  color: #fff !important;
}

footer.egy-footer hr,
footer.bg-dark hr {
  border-color: rgba(255, 255, 255, 0.12);
}

footer .egy-copy {
  text-align: center !important;
  font-size: 0.9rem;
}

/* ---------- Floating actions ---------- */
.egy-fabs {
  position: fixed;
  bottom: 1.15rem;
  left: 1.15rem;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.egy-fab {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff !important;
  text-decoration: none !important;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.22);
  font-size: 1.35rem;
  transition: transform 0.15s ease;
}

.egy-fab:hover { transform: scale(1.07); color: #fff !important; }
.egy-fab-phone { background: var(--egy-teal); }
.egy-fab-wa { background: #25d366; }

.contact-icon,
.contact-icon2 { display: none !important; }

/* ---------- Inner pages ---------- */
.page .container > .row > h1,
.single .container > .row > h1,
.archive h2.bg-dark,
.category h2.bg-dark,
.contact-heading,
.error404 h1 {
  background: var(--egy-navy) !important;
  color: #fff !important;
  border-radius: var(--egy-radius);
  padding: 1rem 1.2rem !important;
  font-weight: 800;
  margin-top: 1.4rem;
  margin-bottom: 1.4rem;
}

.page .container,
.single .container,
.archive .container,
.category .container,
.error404 .container {
  padding-bottom: 2.5rem;
}

.contact-info {
  background: var(--egy-white);
  border: 1px solid var(--egy-line);
  border-radius: var(--egy-radius-lg);
  padding: 1.4rem;
  margin-bottom: 1.5rem;
  text-align: right;
}

.wpcf7 {
  height: auto !important;
  display: block !important;
  padding-bottom: 2rem;
}

.wpcf7-form {
  max-width: 560px;
  margin: 0 auto 2rem;
  background: var(--egy-white) !important;
  border: 1px solid var(--egy-line) !important;
  border-radius: var(--egy-radius-lg) !important;
  padding: 1.4rem !important;
}

.wpcf7-form input[type="submit"] {
  background: var(--egy-teal) !important;
  border-radius: 999px;
  font-weight: 800;
}

.pagination .page-item.active .page-link,
.pagination .page-link:hover {
  background-color: var(--egy-navy) !important;
  border-color: var(--egy-navy) !important;
  color: #fff !important;
}

/* ---------- Responsive / small screens ---------- */
html,
body {
  max-width: 100%;
  overflow-x: hidden;
}

img,
video,
iframe {
  max-width: 100%;
  height: auto;
}

.egy-nav > .container {
  flex-wrap: wrap !important;
  max-width: 100%;
}

.egy-nav .navbar-brand {
  min-width: 0;
  flex: 0 1 auto;
}

.egy-hero,
.egy-hero .carousel,
.egy-hero .carousel-inner {
  overflow: hidden;
  max-width: 100%;
}

.egy-articles,
.egy-gallery,
.owl-carousel,
.owl-stage-outer {
  max-width: 100%;
  overflow: hidden;
}

@media (max-width: 991.98px) {
  .egy-nav .navbar-collapse {
    flex: 1 1 100%;
    width: 100%;
    max-width: 100%;
  }

  .egy-logo {
    height: 52px;
    max-width: min(168px, 42vw);
  }
}

@media (max-width: 768px) {
  .egy-hero .carousel-inner {
    min-height: 68vh;
  }

  .egy-hero #header-carousel .carousel-item {
    min-height: 68vh !important;
    height: 68vh;
  }

  .egy-hero #header-carousel .carousel-item > img.w-100 {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  .egy-hero .carousel-caption {
    position: absolute !important;
    inset: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    display: flex !important;
    flex-direction: column;
    justify-content: center;
    align-items: stretch;
    text-align: right;
    padding: 1.4rem 1rem 1.3rem !important;
    transform: none !important;
  }

  .egy-hero .carousel-item:not(.active) .carousel-caption {
    display: none !important;
  }

  .egy-hero .carousel-caption .container,
  .egy-hero .carousel-caption .row,
  .egy-hero .egy-hero-copy {
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding-left: 0;
    padding-right: 0;
  }

  .egy-hero h1 {
    font-size: clamp(1.3rem, 6.4vw, 1.75rem) !important;
    line-height: 1.35 !important;
  }

  .egy-hero .egy-lead {
    font-size: 0.9rem;
    margin-bottom: 0.85rem;
  }

  .egy-hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .egy-hero-actions .egy-btn {
    width: 100%;
    justify-content: center;
    padding: 0.7rem 1rem;
  }

  .egy-hero .carousel-control-prev,
  .egy-hero .carousel-control-next {
    width: 2.2rem;
    height: 2.2rem;
    top: 40%;
    opacity: 0.8;
  }

  .egy-hero .carousel-control-prev-icon,
  .egy-hero .carousel-control-next-icon {
    width: 1.25rem;
    height: 1.25rem;
  }

  .egy-stats {
    margin-top: 0.85rem;
    margin-bottom: 0.5rem;
    padding: 0 0.75rem;
  }

  .egy-section {
    padding: 2rem 0;
  }

  .egy-about-grid {
    padding: 1.15rem;
    gap: 1.1rem;
  }

  .egy-fabs {
    bottom: 0.7rem;
    left: 0.7rem;
  }

  .egy-fab {
    width: 48px;
    height: 48px;
    font-size: 1.15rem;
  }

  footer.egy-footer,
  footer.bg-dark {
    padding-bottom: 5.5rem !important;
  }

  .page .container,
  .single .container,
  .archive .container,
  .category .container,
  .error404 .container {
    padding-left: 12px;
    padding-right: 12px;
  }

  .wpcf7-form {
    max-width: 100% !important;
    width: 100%;
  }

  .card-img-top,
  .card img {
    width: 100%;
    height: auto;
  }

  .owl-carousel .owl-nav button.owl-next,
  .owl-carousel .owl-nav button.owl-prev {
    width: 34px !important;
    height: 34px !important;
    margin: 0 !important;
  }
}

@media (max-width: 400px) {
  .egy-nav-call-mobile {
    padding: 0.35rem 0.65rem;
    font-size: 0.8rem;
  }

  .egy-hero .carousel-caption {
    min-height: 0;
    padding: 1.6rem 0.85rem 1.5rem !important;
  }
}

