/* ==========================================================================
   Site redesign: "Midnight & Mint"
   Loads after styles.css, responsive.css and polish.css. Content and page
   structure stay the same; this file changes the look of the shared pieces:
   page background, header, inner-page banners, section headings, feature
   cards and the footer. Delete the <link> in includes/utils/links.php to
   go back to the previous design.
   ========================================================================== */

:root {
  --rd-navy: #1C1D2C;
  --rd-surface: #F7F7F0;
  --rd-card-dark: #23253b;
  --rd-mint: #3DDC97;
  --rd-mint-strong: #12A36B;
  --rd-mint-soft: rgba(61, 220, 151, 0.12);
  --rd-line-dark: rgba(255, 255, 255, 0.08);
}

/* --------------------------------------------------------------------------
   Page background: the site's cream everywhere, including the newer sections
   -------------------------------------------------------------------------- */
body,
.services-sec:not(.different-sec),
.howwork-sec,
.service-intro,
.process-sec .head-shape.sticky {
  background: var(--rd-surface);
}

/* dark sections keep their navy background */
.services-sec.different-sec {
  background: var(--rd-navy);
}

/* --------------------------------------------------------------------------
   One vertical rhythm for every section: 100px desktop, 80px tablet, 60px phone.
   (!important because several pages override section padding in their own <style>.)
   -------------------------------------------------------------------------- */
:root {
  --rd-section-y: 100px;
}

@media (max-width: 991px) {
  :root {
    --rd-section-y: 80px;
  }
}

@media (max-width: 575px) {
  :root {
    --rd-section-y: 60px;
  }
}

section.services-sec,
section.frequently-sec,
section.bespoke-sec,
section.process-sec,
section.packages-sec,
section.splider,
section.contact-form-sec,
section.privacy-policy-sec,
section.service-intro,
section.howwork-sec,
section.about-sec,
section.our-awards-sec,
section.whatwedo-sec{
  padding-top: var(--rd-section-y) !important;
  padding-bottom: var(--rd-section-y) !important;
}

section.portfolio-sec {
  padding-top: var(--rd-section-y) !important;
  padding-bottom: var(--rd-section-y) !important;
}

/* slider dots sit in normal flow under the slides, so they never overlap the images */
.portfolio-sec .slick-dots,
.portfolio-sec .mobile-slider ul.slick-dots {
  position: static !important;
  bottom: auto !important;
  margin: 28px 0 0;
}

.portfolio-sec .pro-btn {
  margin-top: 28px;
}

/* slider images: website screenshots show from the top, logos are shown whole,
   brand boards, apps and other artwork are centred */
.portfolio-sec .center-slider img,
.portfolio-sec .mobile-slider img {
  object-position: center !important;
}

.portfolio-sec .center-slider img[src*="/rp/"],
.portfolio-sec .mobile-slider img[src*="/rp/"] {
  object-position: top !important;
}

.portfolio-sec .center-slider img[src*="portfolio/logo/"],
.portfolio-sec .mobile-slider img[src*="portfolio/logo/"] {
  object-fit: contain !important;
  background: #ffffff;
}

/* sections that only end the page keep no top padding, so two gaps don't stack */
section.closing-cta,
section.animation-samples {
  padding-top: 0 !important;
  padding-bottom: var(--rd-section-y) !important;
}

/* headings sit the same distance above their content everywhere */
.head-shape {
  margin-bottom: 40px;
}

.head-shape h2 {
  margin-bottom: 12px;
}

.head-shape p {
  margin-bottom: 0;
}

@media (max-width: 575px) {
  .head-shape {
    margin-bottom: 28px;
  }
}

/* CTA boxes between sections: half a section of space above and below, so the box
   never touches a neighbouring section of a different colour */
section.container > .web_cta {
  margin: 0;
}

section.container:has(> .web_cta) {
  padding-top: calc(var(--rd-section-y) / 2);
  padding-bottom: calc(var(--rd-section-y) / 2);
}

/* --------------------------------------------------------------------------
   Header: transparent over the banner, solid glass bar once scrolled
   -------------------------------------------------------------------------- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  padding: 22px 0;
  transition: padding 0.3s ease, background-color 0.3s ease, box-shadow 0.3s ease;
}

.header.is-scrolled {
  padding: 12px 0;
  background: rgba(20, 21, 34, 0.86);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  backdrop-filter: saturate(160%) blur(14px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.25);
  border-bottom: 1px solid var(--rd-line-dark);
}

.header .main-header .logo a img {
  transition: height 0.3s ease;
}

.header.is-scrolled .main-header .logo a img {
  height: 38px;
}

.header .main-header .navbar .nav-list {
  gap: 40px;
}

.header .main-header .navbar .nav-list li a {
  font-size: 17px;
  font-weight: 500;
}

.header .main-header .navbar .nav-list li a::before {
  background: var(--rd-mint);
}

/* "Get a quote" pill in the header */
.header .main-header .navbar .nav-list li a.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: 999px;
  background: var(--rd-mint);
  color: var(--rd-navy);
  font-size: 15px;
  font-weight: 600;
}

.header .main-header .navbar .nav-list li a.nav-cta::before {
  display: none;
}

.header .main-header .navbar .nav-list li a.nav-cta:hover {
  background: #fff;
  color: var(--rd-navy);
}

.header .main-header .navbar .nav-list li a.nav-cta i {
  font-size: 13px;
  transition: transform 0.25s ease;
}

.header .main-header .navbar .nav-list li a.nav-cta:hover i {
  transform: translateX(3px);
}

@media (max-width: 1199px) {
  .header .main-header .navbar .nav-list {
    gap: 26px;
  }
}

@media (max-width: 991px) {
  .header .main-header .navbar .nav-list li.nav-cta-item {
    display: none;
  }
}

/* --------------------------------------------------------------------------
   Inner-page banners: left-aligned title over a navy gradient
   -------------------------------------------------------------------------- */
.about-banner-sec {
  position: relative;
  isolation: isolate;
  padding: 210px 0 110px;
  background-position: center;
}

.about-banner-sec::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(20, 21, 34, 0.94) 0%, rgba(20, 21, 34, 0.78) 45%, rgba(20, 21, 34, 0.35) 100%),
    linear-gradient(0deg, rgba(20, 21, 34, 0.55) 0%, rgba(20, 21, 34, 0) 40%);
}

.about-banner-sec .about-contant {
  text-align: left;
  max-width: 780px;
}

.about-banner-sec .about-contant::before {
  content: "";
  display: block;
  width: 56px;
  height: 4px;
  border-radius: 4px;
  background: var(--rd-mint);
  margin: 0 0 24px;
}

.about-banner-sec .about-contant h1 {
  margin-bottom: 18px;
}

.about-banner-sec .about-contant p {
  width: auto;
  max-width: 640px;
  margin: 0 0 12px;
}

.about-banner-sec .about-contant .pro-btn,
.about-banner-sec .about-contant ul {
  justify-content: flex-start !important;
}

.about-banner-sec .about-contant .pro-btn {
  margin-top: 26px;
}

/* the first banner button is the main action */
.about-banner-sec .about-contant .pro-btn .btn-project:first-child {
  background: var(--rd-mint);
  border-color: var(--rd-mint);
  color: var(--rd-navy);
}

.about-banner-sec .about-contant .pro-btn .btn-project:first-child:hover {
  background: #fff;
  border-color: #fff;
}

.about-banner-sec .about-contant .pro-btn .btn-project:not(:first-child) {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.6);
  color: #fff;
}

.about-banner-sec .about-contant .pro-btn .btn-project:not(:first-child):hover {
  background: #fff;
  color: var(--rd-navy);
}

@media (max-width: 991px) {
  .about-banner-sec {
    padding: 170px 0 80px;
  }
}

@media (max-width: 575px) {
  .about-banner-sec {
    padding: 130px 0 56px;
  }

  .about-banner-sec .about-contant::before {
    margin-bottom: 18px;
  }
}

/* --------------------------------------------------------------------------
   Section headings: no floating triangles; small label becomes a mint pill
   -------------------------------------------------------------------------- */
.head-shape > img.shape1,
.head-shape > img.shape2,
.head-shape > img.shape3,
.bespoke-contant .head-shape > img {
  display: none !important;
}

.head-shape h6,
.bespoke-sec .bespoke-contant .head-shape h6 {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  margin: 0 0 16px;
  border-radius: 999px;
  background: var(--rd-mint-soft);
  color: var(--rd-mint-strong);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  line-height: 1.4;
}

.head-shape h6::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}

/* home "what we do" and "how we work" eyebrows match */
.whatwedo-head .eyebrow,
.howwork-head .eyebrow {
  color: var(--rd-mint-strong);
}

.whatwedo-head .eyebrow {
  color: var(--rd-mint);
}

.whatwedo-head .eyebrow::before,
.whatwedo-head .eyebrow::after,
.howwork-head .eyebrow::before,
.howwork-head .eyebrow::after {
  background: currentColor;
  opacity: 0.5;
}

/* --------------------------------------------------------------------------
   Feature cards
   -------------------------------------------------------------------------- */
.services-sec .main-box {
  border-radius: 28px;
  border-color: rgba(28, 29, 44, 0.08);
}

/* dark feature cards on service pages */
.different-sec .main-box {
  background: linear-gradient(160deg, #272a44 0%, var(--rd-navy) 70%);
  border: 1px solid var(--rd-line-dark);
}

.different-sec .main-box:hover {
  border-color: rgba(61, 220, 151, 0.35);
}

.services-sec .main-box::before,
.services-sec .main-box::after {
  display: none;
}

/* home "what we do" list and "how we work" steps pick up the accent */
.howwork-sec .hw-icon {
  background: var(--rd-navy);
}

.howwork-step:hover {
  border-color: rgba(18, 163, 107, 0.45);
}

.howwork-step:hover .hw-num {
  color: rgba(18, 163, 107, 0.35);
}

/* check icons everywhere use the same mint */
.service-intro .si-check,
.work-sec .work-did i,
.closing-cta .cc-points i {
  background: var(--rd-mint-strong);
}

/* --------------------------------------------------------------------------
   Buttons: mint as the main action on dark backgrounds
   -------------------------------------------------------------------------- */
.closing-cta .cc-btn-solid {
  background: var(--rd-mint);
  border-color: var(--rd-mint);
  color: var(--rd-navy);
}

.closing-cta .cc-btn-solid:hover {
  background: #fff;
  border-color: #fff;
  color: var(--rd-navy);
}

.service-intro .si-actions .btn-project.si-btn-solid:hover {
  background: var(--rd-mint-strong);
  border-color: var(--rd-mint-strong);
  color: #fff;
}

/* --------------------------------------------------------------------------
   Footer: call-to-action band becomes a card, columns get more air
   -------------------------------------------------------------------------- */
.footer-sec {
  padding-top: 80px;
  background:
    radial-gradient(ellipse 50% 40% at 15% 0%, rgba(61, 220, 151, 0.08), transparent 70%),
    #171827;
}

.footer-sec::before {
  display: none;
}

.footer-sec .read {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  padding: 48px 56px;
  margin: 0 0 64px;
  border: 1px solid var(--rd-line-dark);
  border-radius: 28px;
  background: linear-gradient(120deg, #2a2d48 0%, #1f2136 60%);
}

.footer-sec .read::after {
  content: "";
  position: absolute;
  width: 320px;
  height: 320px;
  right: -80px;
  top: -140px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(61, 220, 151, 0.22) 0%, rgba(61, 220, 151, 0) 70%);
  pointer-events: none;
}

.footer-sec .read .read-text {
  position: relative;
  z-index: 1;
  max-width: 620px;
}

.footer-sec .read .read-eyebrow {
  display: inline-block;
  margin: 0 0 12px;
  color: var(--rd-mint);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.footer-sec .read h2 {
  width: auto;
  margin: 0 0 10px;
  font-size: clamp(28px, 3vw, 40px);
  line-height: 1.2;
}

.footer-sec .read p {
  margin: 0;
  font-size: 17px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.7);
}

.footer-sec .read .read-actions {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  flex: 0 0 auto;
}

.footer-sec .read .read-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 26px;
  border-radius: 999px;
  border: 2px solid transparent;
  font-size: 16px;
  font-weight: 600;
  transition: background-color 0.25s ease, color 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
}

.footer-sec .read .read-btn:hover {
  transform: translateY(-2px);
}

.footer-sec .read .read-btn-solid {
  background: var(--rd-mint);
  color: var(--rd-navy);
}

.footer-sec .read .read-btn-solid:hover {
  background: #fff;
  color: var(--rd-navy);
}

.footer-sec .read .read-btn-outline {
  border-color: rgba(255, 255, 255, 0.35);
  color: #fff;
}

.footer-sec .read .read-btn-outline:hover {
  border-color: #fff;
  background: #fff;
  color: var(--rd-navy);
}

.footer-sec .quick-links h4,
.footer-sec .contact-info h4,
.footer-sec .foot-logo .links h4 {
  color: #fff;
}

.footer-sec .quick-links ul li a::before {
  background: var(--rd-mint);
}

.footer-sec .foot-logo .links ul li a:hover i {
  color: var(--rd-mint);
}

.footer-sec .contact-info ul li i {
  color: var(--rd-mint);
}

@media (max-width: 991px) {
  .footer-sec .read {
    flex-direction: column;
    align-items: flex-start;
    padding: 36px 32px;
  }
}

@media (max-width: 575px) {
  .footer-sec .read {
    padding: 30px 22px;
    margin-bottom: 44px;
    border-radius: 22px;
  }

  .footer-sec .read .read-actions,
  .footer-sec .read .read-btn {
    width: 100%;
  }
}

/* home hero: same button pair as the inner-page banners */
.banner-sec .banner-content .pro-btn .btn-project:first-child {
  background: var(--rd-mint);
  border-color: var(--rd-mint);
  color: var(--rd-navy);
}

.banner-sec .banner-content .pro-btn .btn-project:first-child:hover {
  background: #fff;
  border-color: #fff;
}

.banner-sec .banner-content .pro-btn .btn-project:not(:first-child) {
  background: transparent;
  border: 2px solid rgba(255, 255, 255, 0.6);
  color: #fff;
}

.banner-sec .banner-content .pro-btn .btn-project:not(:first-child):hover {
  background: #fff;
  color: var(--rd-navy);
}

/* Header menu: address and hours rows match the phone/email rows */
.nav-modal .modal-content .modal-body .contact ul { gap: 28px; }
.nav-modal .modal-content .modal-body .contact ul li p {
  color: #fff;
  font-size: 20px;
  font-weight: 300;
  line-height: 1.4;
  margin: 0;
}
.nav-modal .modal-content .modal-body .contact ul li p span {
  display: block;
  font-size: 18px;
  letter-spacing: 2px;
  text-transform: uppercase;
}
@media (max-width: 767px) {
  .nav-modal .modal-content .modal-body .contact ul li p { font-size: 16px; }
}

/* About page: office address and hours line */
.bespoke-contant .about-hq { margin-top: 12px; }

/* --------------------------------------------------------------------------
   Testimonials: equal-height review cards with stars, quote and author
   -------------------------------------------------------------------------- */
.testimonials-sec { background: var(--rd-surface); }
.testimonials-sec .head-shape p { max-width: 620px; margin-left: auto; margin-right: auto; }

.testimonials-sec .testi .owl-stage { display: flex; }
.testimonials-sec .testi .owl-item { display: flex; }
.testimonials-sec .testi .item { display: flex; width: 100%; padding: 6px 2px 18px; }

.testimonials-sec .testi-card {
  display: flex;
  flex-direction: column;
  width: 100%;
  margin: 0;
  padding: 30px 30px 26px;
  background: #fff;
  border: 1px solid rgba(28, 29, 44, 0.08);
  border-radius: 24px;
  box-shadow: 0 10px 30px rgba(28, 29, 44, 0.06);
  transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}
.testimonials-sec .testi-card:hover {
  transform: translateY(-4px);
  border-color: rgba(18, 163, 107, 0.35);
  box-shadow: 0 18px 40px rgba(28, 29, 44, 0.10);
}

.testimonials-sec .testi-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}
.testimonials-sec .testi-stars {
  display: flex;
  gap: 4px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.testimonials-sec .testi-stars i { color: #F5B301; font-size: 15px; }
.testimonials-sec .testi-quote { font-size: 34px; color: var(--rd-mint); opacity: .45; }

.testimonials-sec .testi-text { margin: 0 0 24px; flex: 1 1 auto; }
.testimonials-sec .testi-text p {
  margin: 0;
  color: var(--rd-navy);
  font-size: 16px;
  line-height: 1.7;
}

.testimonials-sec .testi-author {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-top: 20px;
  border-top: 1px solid rgba(28, 29, 44, 0.08);
}
.testimonials-sec .testi-avatar {
  flex: 0 0 46px;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--rd-navy);
  color: var(--rd-mint);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: .04em;
}
.testimonials-sec .testi-who { display: flex; flex-direction: column; line-height: 1.3; }
.testimonials-sec .testi-who strong { color: var(--rd-navy); font-size: 16px; font-weight: 600; }
.testimonials-sec .testi-who small { color: #6b6c7b; font-size: 13.5px; margin-top: 2px; }

.testimonials-sec .owl-theme .owl-dots { margin-top: 18px !important; }
.testimonials-sec .owl-theme .owl-dots .owl-dot span {
  width: 9px;
  height: 9px;
  margin: 4px;
  background: rgba(28, 29, 44, 0.2);
  transition: width .3s ease, background .3s ease;
}
.testimonials-sec .owl-theme .owl-dots .owl-dot.active span,
.testimonials-sec .owl-theme .owl-dots .owl-dot:hover span {
  width: 26px;
  background: var(--rd-mint-strong);
}

@media (max-width: 575px) {
  .testimonials-sec .testi-card { padding: 24px 22px 22px; border-radius: 20px; }
  .testimonials-sec .testi-text p { font-size: 15px; }
}
.testimonials-sec .head-shape,
.testimonials-sec .head-shape h2,
.testimonials-sec .head-shape p { text-align: center !important; }
.testimonials-sec .head-shape p { max-width: 700px; }

/* --------------------------------------------------------------------------
   404 page
   -------------------------------------------------------------------------- */
.notfound-banner .nf-code {
  display: inline-block;
  margin-bottom: 14px;
  color: var(--rd-mint);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
}
.notfound-banner .nf-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 28px; }
section.notfound-sec {
  background: var(--rd-surface);
  padding-top: var(--rd-section-y) !important;
  padding-bottom: var(--rd-section-y) !important;
}
.notfound-sec .nf-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
}
.notfound-sec .nf-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 20px;
  background: #fff;
  border: 1px solid rgba(28, 29, 44, 0.08);
  border-radius: 18px;
  color: var(--rd-navy);
  text-decoration: none;
  transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
}
.notfound-sec .nf-card:hover {
  transform: translateY(-3px);
  border-color: rgba(18, 163, 107, 0.4);
  box-shadow: 0 14px 30px rgba(28, 29, 44, 0.08);
  color: var(--rd-navy);
}
.notfound-sec .nf-card .nd-icon {
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--rd-navy);
  color: var(--rd-mint);
  font-size: 18px;
}
.notfound-sec .nf-text { display: flex; flex-direction: column; flex: 1 1 auto; line-height: 1.3; }
.notfound-sec .nf-text strong { font-size: 16px; font-weight: 600; }
.notfound-sec .nf-text small { color: #6b6c7b; font-size: 13.5px; margin-top: 2px;display:none; }
.notfound-sec .nf-arrow { color: var(--rd-mint-strong); transition: transform .25s ease; }
.notfound-sec .nf-card:hover .nf-arrow { transform: translateX(3px); }
.notfound-sec .nf-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 26px;
  margin: 36px 0 0;
  padding: 0;
  list-style: none;
}
.notfound-sec .nf-links a { color: var(--rd-navy); font-weight: 500; text-decoration: underline; text-underline-offset: 4px; }
.notfound-sec .nf-links a:hover { color: var(--rd-mint-strong); }
.notfound-sec .head-shape h2 { color: var(--rd-navy) !important; }
.notfound-sec .head-shape, .notfound-sec .head-shape h2 { text-align: center !important; }
