/**
* RedFox AI - brand overrides on top of the Arsha template.
* Loaded AFTER assets/css/main.css so these values win.
* Change the colours here; main.css is left untouched.
*/

/* ---- Brand palette ------------------------------------------------------ */
:root {
  --heading-color: #17203a;
  --accent-color: #e63946;   /* RedFox red */
  --default-color: #4a4a55;
}

:root {
  --nav-color: #ffffff;
  --nav-hover-color: #ff6b57;
  --nav-dropdown-hover-color: #e63946;
}

.dark-background {
  --background-color: #17203a;
  --surface-color: #26314f;
}

.light-background {
  --background-color: #f7f5f4;
  --surface-color: #ffffff;
}

/* Header: solid dark on inner pages, transparent over the hero on home */
.header {
  --background-color: #17203a;
}

.index-page.scrolled .header {
  --background-color: rgba(23, 32, 58, 0.94);
}

.footer {
  --background-color: #17203a;
}

/* ---- Logo --------------------------------------------------------------- */
.header .logo img {
  max-height: 46px;
  width: auto;
  margin-right: 10px;
}

/* The icon opens the full logo in a lightbox — show that it is clickable */
.header .logo .logo-pop {
  display: flex;
  align-items: center;
  line-height: 0;
  cursor: zoom-in;
}

.header .logo .logo-pop img {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* glow rather than a box — the logo art is transparent, so a ring would
   outline empty space around it */
.header .logo .logo-pop:hover img {
  transform: scale(1.07);
  filter: drop-shadow(0 0 7px color-mix(in srgb, var(--accent-color), transparent 35%));
}

.header .logo .logo-pop:focus-visible img {
  outline: 2px solid var(--accent-color);
  outline-offset: 3px;
}

.header .logo .logo-name {
  display: flex;
  align-items: center;
}

/* Lightbox: brand-dark backdrop so the logo's white half stays visible */
.glightbox-clean .gslide-media,
.gslide-image img {
  background: transparent;
  box-shadow: none;
}

.goverlay {
  background: rgba(23, 32, 58, 0.94);
}

/* The caption panel defaults to a white block — drop it onto the backdrop */
.glightbox-clean .gslide-description {
  background: transparent;
}

.glightbox-clean .gslide-title {
  font-family: var(--heading-font);
  font-size: 20px;
  text-align: center;
  color: #ffffff;
  margin-bottom: 0;
}

.glightbox-clean .gslide-desc {
  color: rgba(255, 255, 255, 0.75);
  text-align: center;
}

/* The logo popout is a single image — no arrows. Scoped to the class that
   footer.php puts on this instance's modal, so the portfolio keeps its arrows. */
.logo-lightbox-modal .gprev,
.logo-lightbox-modal .gnext {
  display: none !important;
}

.header .logo h1 {
  font-size: 26px;
  letter-spacing: 1px;
}

.header .logo h1 span {
  color: var(--accent-color);
}

.footer .footer-logo img {
  max-height: 54px;
  width: auto;
  margin-right: 10px;
}

@media (max-width: 575px) {
  .header .logo img {
    max-height: 38px;
    margin-right: 7px;
  }

  .header .logo h1 {
    font-size: 21px;
  }
}

/* ---- Hero --------------------------------------------------------------- */
.hero {
  background: linear-gradient(135deg, #17203a 0%, #2a1f33 55%, #4a1f26 100%);
}

.hero .hero-badge {
  display: inline-block;
  align-self: flex-start;
  background: color-mix(in srgb, var(--accent-color), transparent 80%);
  border: 1px solid color-mix(in srgb, var(--accent-color), transparent 50%);
  color: #ffd9d6;
  font-size: 13px;
  letter-spacing: 0.5px;
  padding: 6px 16px;
  border-radius: 50px;
  margin-bottom: 18px;
}

.hero .hero-stats {
  margin-top: 40px;
  gap: 40px;
}

.hero .hero-stats h4 {
  color: #ffffff;
  font-size: 30px;
  font-weight: 700;
  margin: 0;
}

.hero .hero-stats span {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.7);
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* ---- Brand watermark behind the About section --------------------------- */
.about {
  position: relative;
  overflow: hidden;
}

.about::before {
  content: "";
  position: absolute;
  right: -70px;
  top: 50%;
  transform: translateY(-50%);
  width: 520px;
  height: 350px;
  background: url("../img/logo-watermark.png") no-repeat center center / contain;
  opacity: 0.6;
  pointer-events: none;
  z-index: 0;
}

/* keep the copy above the watermark */
.about .container {
  position: relative;
  z-index: 1;
}

@media (max-width: 991px) {
  .about::before {
    display: none;
  }
}

/* ---- Page title strip --------------------------------------------------- */
.page-title {
  --background-color: #17203a;
  --default-color: #ffffff;
  --heading-color: #ffffff;
  padding: 45px 0 40px 0;
}

.page-title h1 {
  font-size: 34px;
}

.page-title p {
  max-width: 720px;
  color: rgba(255, 255, 255, 0.75);
  padding-top: 8px;
}

.page-title .breadcrumbs ol a {
  color: color-mix(in srgb, var(--accent-color), white 30%);
}

/* ---- Enquiry cards (training / internship / project) --------------------- */
.enquiry-card {
  background-color: var(--surface-color);
  box-shadow: 0 6px 30px rgba(23, 32, 58, 0.08);
  border-radius: 14px;
  border-top: 4px solid var(--accent-color);
  padding: 34px 28px;
  display: flex;
  flex-direction: column;
  transition: 0.3s;
}

/* Stretch to full column height ONLY when the card is alone in its column, so
   rows of cards line up. Cards stacked in one column (the project-request
   sidebar) keep their natural height instead of each filling the whole column. */
.enquiry-card:only-child {
  height: 100%;
}

.enquiry-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 14px 40px rgba(23, 32, 58, 0.14);
}

.enquiry-card .icon {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: color-mix(in srgb, var(--accent-color), transparent 88%);
  color: var(--accent-color);
  font-size: 26px;
  margin-bottom: 18px;
}

.enquiry-card h3 {
  font-size: 21px;
  font-weight: 700;
  color: var(--heading-color);
  margin-bottom: 10px;
}

.enquiry-card p {
  font-size: 15px;
  margin-bottom: 16px;
}

.enquiry-card ul {
  list-style: none;
  padding: 0;
  margin: 0 0 22px 0;
  font-size: 14px;
}

.enquiry-card ul li {
  padding: 5px 0;
  display: flex;
  align-items: flex-start;
}

.enquiry-card ul li i {
  color: var(--accent-color);
  margin-right: 9px;
  margin-top: 3px;
}

.enquiry-card .card-cta {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-color);
  color: var(--contrast-color);
  border-radius: 50px;
  padding: 10px 26px;
  font-size: 15px;
  font-weight: 500;
  align-self: flex-start;
}

.enquiry-card .card-cta:hover {
  background: color-mix(in srgb, var(--accent-color), black 12%);
  color: var(--contrast-color);
}

.enquiry-card .card-cta i {
  margin-left: 8px;
}

/* ---- Forms -------------------------------------------------------------- */
.rf-form {
  background-color: var(--surface-color);
  box-shadow: 0 6px 30px rgba(23, 32, 58, 0.08);
  border-radius: 14px;
  padding: 34px;
  scroll-margin-top: 110px;
}

.rf-form h3 {
  font-size: 24px;
  font-weight: 700;
  color: var(--heading-color);
  margin-bottom: 4px;
}

.rf-form .form-intro {
  font-size: 15px;
  margin-bottom: 24px;
}

.rf-form label {
  font-size: 14px;
  font-weight: 500;
  color: var(--heading-color);
  padding-bottom: 6px;
}

.rf-form label .req {
  color: var(--accent-color);
}

.rf-form .form-control,
.rf-form .form-select {
  font-size: 15px;
  padding: 11px 14px;
  border-color: color-mix(in srgb, var(--default-color), transparent 82%);
  border-radius: 8px;
  box-shadow: none;
}

.rf-form .form-control:focus,
.rf-form .form-select:focus {
  border-color: var(--accent-color);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent-color), transparent 88%);
}

.rf-form button[type=submit] {
  background: var(--accent-color);
  border: 0;
  color: var(--contrast-color);
  padding: 12px 38px;
  border-radius: 50px;
  font-size: 15px;
  transition: 0.3s;
}

.rf-form button[type=submit]:hover {
  background: color-mix(in srgb, var(--accent-color), black 12%);
}

/* ---- Service detail rows ------------------------------------------------ */
.service-block {
  scroll-margin-top: 100px;
}

.service-block .service-icon {
  width: 62px;
  height: 62px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: color-mix(in srgb, var(--accent-color), transparent 88%);
  color: var(--accent-color);
  font-size: 28px;
  margin-bottom: 18px;
}

.service-block h3 {
  font-size: 26px;
  font-weight: 700;
  color: var(--heading-color);
}

.service-block .tag-list {
  list-style: none;
  padding: 0;
  margin: 18px 0 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.service-block .tag-list li {
  font-size: 13px;
  background: color-mix(in srgb, var(--heading-color), transparent 94%);
  color: var(--heading-color);
  border-radius: 50px;
  padding: 6px 15px;
}

/* ---- Service cards: image head, red border, fill-on-hover ---------------- */
.services .service-item {
  padding: 0;
  overflow: hidden;
  border-radius: 14px;
  border: 1px solid color-mix(in srgb, var(--default-color), transparent 88%);
  box-shadow: 0 5px 30px rgba(23, 32, 58, 0.07);
  transition: background-color 0.35s ease, border-color 0.35s ease, transform 0.35s ease, box-shadow 0.35s ease;
}

.services .service-item .service-media {
  position: relative;
  height: 165px;
  overflow: hidden;
  border-bottom: 4px solid var(--accent-color);
}

.services .service-item .service-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

/* Red wash over the image, deepened on hover */
.services .service-item .service-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, color-mix(in srgb, var(--accent-color), transparent 25%), transparent 65%);
  opacity: 0.55;
  transition: opacity 0.35s ease;
}

/* Icon badge sitting on the image */
.services .service-item .icon {
  position: absolute;
  left: 20px;
  bottom: 14px;
  z-index: 2;
  width: 52px;
  height: 52px;
  margin: 0;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-color);
  box-shadow: 0 4px 14px rgba(23, 32, 58, 0.25);
  transition: 0.35s ease;
}

.services .service-item .icon i {
  color: #ffffff;
  font-size: 24px;
  transition: 0.35s ease;
}

.services .service-item .service-body {
  padding: 26px 24px 30px 24px;
}

.services .service-item h4 {
  font-size: 19px;
  margin-bottom: 12px;
}

.services .service-item h4 a,
.services .service-item p {
  transition: color 0.35s ease;
}

/* Hover — the whole card takes the brand red, text inverts to white */
.services .service-item:hover {
  background-color: var(--accent-color);
  border-color: var(--accent-color);
  transform: translateY(-10px);
  box-shadow: 0 18px 40px color-mix(in srgb, var(--accent-color), transparent 65%);
}

.services .service-item:hover h4 a,
.services .service-item:hover p {
  color: #ffffff;
}

.services .service-item:hover .service-media img {
  transform: scale(1.08);
}

.services .service-item:hover .service-media::after {
  opacity: 0.85;
}

.services .service-item:hover .icon {
  background: #ffffff;
}

.services .service-item:hover .icon i {
  color: var(--accent-color);
}

/* Cards without an image (the Why Us reason cards keep the plain layout) */
.services .service-item.no-media {
  padding: 40px 30px;
}

.services .service-item.no-media .icon {
  position: static;
  box-shadow: none;
  margin-bottom: 16px;
}

/* ---- Misc --------------------------------------------------------------- */
.info-wrap .info-item i {
  color: var(--accent-color);
  background: color-mix(in srgb, var(--accent-color), transparent 90%);
}

.whatsapp-float {
  position: fixed;
  right: 15px;
  bottom: 80px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #25d366;
  color: #ffffff;
  font-size: 22px;
  z-index: 996;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2);
  transition: 0.3s;
}

.whatsapp-float:hover {
  color: #ffffff;
  background: #1eb455;
}

.alert {
  border-radius: 10px;
  font-size: 15px;
}

/* ==========================================================================
   Our Work — real apps and sites we have shipped
   ========================================================================== */
.work-slider {
  padding-bottom: 50px;
}

.work-slider .swiper-slide {
  height: auto;
}

.work-card {
  background: var(--surface-color);
  border: 1px solid color-mix(in srgb, var(--default-color), transparent 88%);
  border-radius: 16px;
  padding: 32px 28px;
  height: 100%;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  box-shadow: 0 6px 30px rgba(23, 32, 58, 0.07);
  transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
}

.work-card:hover {
  transform: translateY(-8px);
  border-color: var(--accent-color);
  box-shadow: 0 16px 40px color-mix(in srgb, var(--accent-color), transparent 75%);
}

.work-card .work-logo {
  width: 96px;
  height: 96px;
  border-radius: 22px;
  overflow: hidden;
  margin-bottom: 18px;
  box-shadow: 0 6px 18px rgba(23, 32, 58, 0.18);
  flex-shrink: 0;
}

.work-card .work-logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.work-card h3 {
  font-size: 21px;
  font-weight: 700;
  color: var(--heading-color);
  margin: 0 0 6px 0;
}

.work-card .work-badge {
  display: inline-block;
  font-size: 12.5px;
  letter-spacing: 0.3px;
  color: var(--accent-color);
  background: color-mix(in srgb, var(--accent-color), transparent 90%);
  border-radius: 50px;
  padding: 4px 14px;
  margin-bottom: 14px;
}

.work-card p {
  font-size: 14.5px;
  margin: 0 0 20px 0;
}

.work-card .work-link,
.work-card .work-status {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 14px;
  font-weight: 500;
  border-radius: 50px;
  padding: 9px 22px;
  transition: 0.3s;
}

.work-card .work-link {
  background: var(--accent-color);
  color: var(--contrast-color);
}

.work-card .work-link:hover {
  background: color-mix(in srgb, var(--accent-color), black 12%);
  color: var(--contrast-color);
}

/* "Launching soon" — reads as a status, not a button */
.work-card .work-status {
  background: color-mix(in srgb, var(--heading-color), transparent 92%);
  color: var(--heading-color);
}

.work-slider .swiper-pagination-bullet {
  background-color: color-mix(in srgb, var(--heading-color), transparent 60%);
  opacity: 1;
}

.work-slider .swiper-pagination-bullet-active {
  background-color: var(--accent-color);
}

/* ==========================================================================
   Device showcase — laptop + tablet + phone mockup (pure CSS, no image file)
   ========================================================================== */
.device-showcase {
  position: relative;
  max-width: 1000px;
  margin: 0 auto;
  padding-bottom: 40px;
}

.device-showcase .device {
  position: relative;
  background: #1d2437;
  border-radius: 14px;
  box-shadow: 0 22px 50px rgba(23, 32, 58, 0.28);
}

.device-showcase .device .screen {
  overflow: hidden;
  background: #eef3f8;
  position: relative;
}

/* --- Laptop --- */
/* The lid and the base live in one wrapper so the base can be sized and
   centred against the lid rather than against the whole showcase. */
.device-showcase .laptop-wrap {
  width: 74%;
}

.device-showcase .device-laptop {
  width: 100%;
  padding: 12px 12px 0 12px;
  border-radius: 16px 16px 4px 4px;
}

.device-showcase .device-laptop .notch {
  position: absolute;
  top: 5px;
  left: 50%;
  transform: translateX(-50%);
  width: 62px;
  height: 5px;
  border-radius: 3px;
  background: #333c55;
}

.device-showcase .device-laptop .screen {
  height: 340px;
  border-radius: 6px;
}

.device-showcase .laptop-base {
  width: 112%;
  margin-left: -6%;
  height: 13px;
  background: linear-gradient(180deg, #c9ced8, #9aa1b0);
  border-radius: 0 0 12px 12px;
  position: relative;
  box-shadow: 0 10px 20px rgba(23, 32, 58, 0.2);
}

.device-showcase .laptop-base::after {
  content: "";
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  top: 0;
  width: 90px;
  height: 5px;
  border-radius: 0 0 6px 6px;
  background: #808799;
}

/* --- Tablet --- */
.device-showcase .device-tablet {
  position: absolute;
  right: 0;
  bottom: 55px;
  width: 40%;
  padding: 11px 9px;
  border-radius: 14px;
  z-index: 2;
}

.device-showcase .device-tablet .screen {
  height: 270px;
  border-radius: 5px;
}

.device-showcase .device-tablet .bar {
  position: absolute;
  right: 14px;
  top: 16px;
  width: 13px;
  height: 2px;
  background: #4b5470;
  box-shadow: 0 4px 0 #4b5470, 0 8px 0 #4b5470;
  z-index: 3;
}

/* --- Phone --- */
.device-showcase .device-phone {
  position: absolute;
  right: 27%;
  bottom: 0;
  width: 16.5%;
  padding: 9px 6px;
  border-radius: 18px;
  z-index: 3;
}

.device-showcase .device-phone .screen {
  height: 245px;
  border-radius: 12px;
}

.device-showcase .device-phone .dot {
  position: absolute;
  top: 15px;
  left: 50%;
  transform: translateX(-50%);
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #333c55;
  z-index: 3;
}

/* --- The miniature RedFox AI page rendered inside each screen --- */
.mock {
  height: 100%;
  display: flex;
  flex-direction: column;
  background: #f2f7fb;
}

.mock .mock-nav {
  background: #17203a;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 7px 12px;
  flex-shrink: 0;
}

.mock .mock-logo {
  color: #ffffff;
  font-family: var(--heading-font);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.5px;
  white-space: nowrap;
}

.mock .mock-logo b {
  color: var(--accent-color);
  font-weight: 700;
}

.mock .mock-links {
  display: flex;
  gap: 6px;
}

.mock .mock-links i {
  display: block;
  width: 16px;
  height: 3px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.45);
}

.mock .mock-links i:first-child {
  background: var(--accent-color);
}

.mock .mock-body {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px;
  min-height: 0;
}

.mock .mock-copy {
  flex: 1 1 52%;
  min-width: 0;
}

.mock .mock-copy h6 {
  font-family: var(--heading-font);
  font-weight: 700;
  color: #17203a;
  line-height: 1.15;
  font-size: 13px;
  margin: 0 0 6px 0;
}

.mock .mock-copy p {
  font-size: 8px;
  color: #5b6274;
  margin: 0 0 8px 0;
  line-height: 1.35;
}

.mock .mock-btn {
  display: inline-block;
  background: var(--accent-color);
  color: #ffffff;
  font-size: 7px;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 20px;
}

.mock .mock-art {
  flex: 1 1 48%;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
}

.mock .mock-art img {
  width: 100%;
  height: auto;
  max-height: 100%;
  object-fit: contain;
}

/* Phone / narrow variant stacks the art above the copy */
.mock.narrow .mock-body {
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  padding: 10px 8px;
}

.mock.narrow .mock-copy {
  flex: 0 0 auto;
  text-align: center;
}

.mock.narrow .mock-copy h6 {
  font-size: 9px;
}

.mock.narrow .mock-copy p {
  font-size: 6px;
}

.mock.narrow .mock-art {
  flex: 0 0 auto;
}

.mock.medium .mock-copy h6 {
  font-size: 11px;
}

@media (max-width: 991px) {
  .device-showcase .device-laptop .screen {
    height: 240px;
  }

  .device-showcase .device-tablet .screen {
    height: 180px;
  }

  .device-showcase .device-phone .screen {
    height: 160px;
  }

  .mock .mock-copy h6 {
    font-size: 10px;
  }
}

@media (max-width: 767px) {
  .device-showcase .laptop-wrap {
    width: 100%;
  }

  .device-showcase .device-tablet,
  .device-showcase .device-phone {
    display: none;
  }

  .device-showcase .laptop-base {
    width: 100%;
    margin-left: 0;
  }
}

/* ==========================================================================
   Why Us — reason cards in a carousel, title inside a red header bar
   ========================================================================== */
.reason-slider {
  padding-bottom: 50px;
}

.reason-slider .swiper-slide {
  height: auto;
}

.reason-card {
  background: var(--surface-color);
  border-radius: 14px;
  overflow: hidden;
  height: 100%;
  display: flex;
  flex-direction: column;
  box-shadow: 0 6px 30px rgba(23, 32, 58, 0.08);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.reason-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 16px 40px color-mix(in srgb, var(--accent-color), transparent 72%);
}

/* The red header — the card title sits in here */
.reason-card .reason-head {
  background: var(--accent-color);
  color: #ffffff;
  padding: 22px 24px;
  display: flex;
  align-items: center;
  gap: 14px;
}

.reason-card .reason-head i {
  font-size: 26px;
  flex-shrink: 0;
  width: 46px;
  height: 46px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.18);
}

.reason-card .reason-head h3 {
  color: #ffffff;
  font-size: 19px;
  font-weight: 700;
  margin: 0;
  line-height: 1.25;
}

.reason-card .reason-body {
  padding: 24px;
  font-size: 15px;
  flex: 1;
}

.reason-card .reason-body p {
  margin: 0;
}

/* Carousel controls in brand colours */
.reason-slider .swiper-pagination-bullet {
  background-color: color-mix(in srgb, var(--heading-color), transparent 60%);
  opacity: 1;
}

.reason-slider .swiper-pagination-bullet-active {
  background-color: var(--accent-color);
}

@media (max-width: 575px) {
  .rf-form {
    padding: 24px 20px;
  }

  .hero .hero-stats {
    gap: 24px;
  }

  .reason-card .reason-head h3 {
    font-size: 17px;
  }
}
