/* ------------------------------------------------------------------
   Skywebit overrides on top of the Rubien template.
   Keep brand and layout tweaks here rather than editing style.css.
   ------------------------------------------------------------------ */

/* Theme colours, taken from the Skywebit logo (images/brand/). The template's
   own colours were replaced with these variables; the values below are
   defaults, and components/SiteChrome.jsx overrides them with the colours
   chosen under Admin > Site settings > Theme. */
:root {
  --sw-primary: #2563eb;
  --sw-primary-dark: #1d4ed8;
  --sw-accent: #0ea5e9;
  --sw-dark: #0f172a;
}

/* Header: keep the menu row on one line (see notes in style.css overrides). */
.header-button a {
  color: inherit;
}
.slider-button-text h2:where(:not(.sw-h1,.sw-h2,.sw-h3,.sw-h4,.sw-h5,.sw-h6)) a, .slider-button-text :is(h1,h2,h3,h4,h5,h6,p):where(.sw-h2) a {
  color: inherit;
}
.rubien_menu > ul > li.current-page > a {
  background-position: 0 0;
}

/* Blog and portfolio detail typography */
.sw-article p:where(:not(.sw-h1,.sw-h2,.sw-h3,.sw-h4,.sw-h5,.sw-h6)) {
  margin-bottom: 18px;
  line-height: 1.8;
}
.sw-article h3:where(:not(.sw-h1,.sw-h2,.sw-h3,.sw-h4,.sw-h5,.sw-h6)), .sw-article :is(h1,h2,h3,h4,h5,h6,p):where(.sw-h3) {
  margin: 30px 0 14px;
}
.sw-list li {
  position: relative;
  padding-left: 26px;
  margin-bottom: 10px;
}
.sw-list li i {
  position: absolute;
  left: 0;
  top: 5px;
  color: var(--sw-primary);
}

/* Generic section spacing helper */
.sw-section {
  padding: 100px 0;
}
.sw-section.sw-tight {
  padding: 60px 0;
}

/* Contact form status line */
#form-status {
  margin-top: 14px;
  font-weight: 600;
}

/* Jobs list */
.sw-job {
  border: 1px solid #eee;
  padding: 28px 30px;
  margin-bottom: 24px;
  background: #fff;
  transition: 0.3s;
}
.sw-job:hover {
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
}
.sw-job h3:where(:not(.sw-h1,.sw-h2,.sw-h3,.sw-h4,.sw-h5,.sw-h6)), .sw-job :is(h1,h2,h3,h4,h5,h6,p):where(.sw-h3) {
  margin-bottom: 6px;
}
.sw-job .sw-meta {
  color: #777;
  font-size: 14px;
  margin-bottom: 12px;
}
.sw-job .sw-meta span {
  margin-right: 18px;
}

/* Simple prose page (privacy policy) */
.sw-prose h2:where(:not(.sw-h1,.sw-h2,.sw-h3,.sw-h4,.sw-h5,.sw-h6)), .sw-prose :is(h1,h2,h3,h4,h5,h6,p):where(.sw-h2) {
  margin: 36px 0 12px;
  font-size: 26px;
}
.sw-prose p:where(:not(.sw-h1,.sw-h2,.sw-h3,.sw-h4,.sw-h5,.sw-h6)),
.sw-prose li {
  line-height: 1.8;
}

/* Keep large photos in template slots that were designed for small images */
.dreamit-single-service-box .dreamit-sigle-tmumb img,
.portfolio-details-thumb img,
.dreamit-single-blog-box .dreamit-sigle-tmumb img {
  width: 100%;
  max-height: 460px;
  object-fit: cover;
}
.singles-joins-box .joins-thumb img,
.singles-joinss-box .joins-thumb img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}
.single_blog_thumb img {
  width: 100%;
  height: 230px;
  object-fit: cover;
}

/* Text logo sizing */
.logo img,
.rubien-logo img,
.nav-logo img {
  max-height: 44px;
  width: auto;
}

/* About images come from the admin at any size; keep them inside their column. */
.rubien-about-thumb-3 img {
  max-width: 100%;
  height: auto;
}

/* Footer contact and bottom links inherited the template's dark link colour,
   which disappears on the dark footer background. */
.footer-socail-info a,
.footer-bottom-menu a {
  color: #c9cbd6;
}
.footer-socail-info a:hover,
.footer-bottom-menu a:hover {
  color: var(--sw-primary);
}

/* When there are fewer team members than columns, centre them instead of leaving a gap on the right. */
.team-list .owl-stage {
  margin: 0 auto;
}

/* The template points this section at an image it never shipped; drop the request so it stops 404ing. */
.feture-area.style-two {
  background-image: none;
}

/* ------------------------------------------------------------------
   Theme-coloured artwork. The template painted its red curves and
   shapes into the images, so they could not follow a theme change.
   images/theme/ holds the same artwork split into a neutral photo plus
   a white mask, and the mask is filled with the theme colour here.
   ------------------------------------------------------------------ */

/* Hero slider (components/HeroSlider.jsx): a plain photo behind the headline,
   one slide at a time. No curves, shapes or entrance animations; changing
   slide fades the current one out, then the next one in. */
.slider4.slider-area { background-image: url(../images/theme/hero-coding.jpg); }
.slider-area.slider5 { background-image: url(../images/theme/hero-web.jpg); }
.slider-area.slider6 { background-image: url(../images/theme/hero-devices.jpg); }
.slider_list2 .slider-area *,
.slider_list2 .slider-area *::before,
.slider_list2 .slider-area *::after {
  animation: none;
}
.sw-hero { position: relative; overflow: hidden; background: #111; }
.sw-hero-stage { opacity: 1; transition: opacity 350ms ease; }
.sw-hero-stage.is-fading { opacity: 0; }
/* Arrows in the template's original place: stacked at 19% from the right,
   "previous" above "next". */
.sw-hero-nav button {
  position: absolute;
  right: 19%;
  z-index: 3;
  width: 50px;
  height: 50px;
  border: 0;
  border-radius: 50%;
  background: rgba(126, 127, 131, 0.85);
  color: #fff;
  line-height: 50px;
  text-align: center;
  cursor: pointer;
  transition: background 0.2s ease;
}
.sw-hero-nav .sw-hero-prev { bottom: 44%; }
.sw-hero-nav .sw-hero-next { bottom: 37%; }
.sw-hero-nav button:hover,
.sw-hero-nav button:focus-visible { background: var(--sw-primary); }
.sw-hero-nav button i::before { margin: 0; font-size: 18px; }
@media (max-width: 599px) {
  .sw-hero-nav { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .sw-hero-stage { transition: none; }
}

/* Page banners. */
.breatcumb-area {
  position: relative;
  z-index: 1;
  background-image: url(../images/theme/banner-code.jpg);
}
.breatcumb-area::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--sw-primary);
  -webkit-mask: url(../images/theme/banner-curve.png) center / cover no-repeat;
  mask: url(../images/theme/banner-curve.png) center / cover no-repeat;
  pointer-events: none;
}

/* "Have a project in mind?" banner: lettering texture over the brand colour. */
.row.subscribe-bg {
  background: url(../images/theme/cta-texture.jpg) center / cover no-repeat, var(--sw-primary);
  background-blend-mode: multiply;
}

/* ------------------------------------------------------------------
   Phones and small tablets
   ------------------------------------------------------------------ */

/* The mobile menu bar printed the template's name ("rubien") from CSS;
   the header now shows the real logo there instead. */
.mean-container .mean-bar::before {
  content: none;
}

@media (max-width: 767px) {
  /* FAQ questions and answers were 11–12px on phones. */
  .accordion a,
  .style-two .accordion a,
  .style-two.upper8 .accordion a {
    font-size: 15px;
    line-height: 1.5;
    padding-top: 12px;
    padding-bottom: 12px;
    padding-right: 44px;
  }
  .accordion li p:where(:not(.sw-h1,.sw-h2,.sw-h3,.sw-h4,.sw-h5,.sw-h6)),
  .style-two .accordion li p:where(:not(.sw-h1,.sw-h2,.sw-h3,.sw-h4,.sw-h5,.sw-h6)),
  .style-two.upper8 .accordion li p:where(:not(.sw-h1,.sw-h2,.sw-h3,.sw-h4,.sw-h5,.sw-h6)) {
    font-size: 14px;
    line-height: 1.7;
  }
  .about-name-title p:where(:not(.sw-h1,.sw-h2,.sw-h3,.sw-h4,.sw-h5,.sw-h6)) {
    font-size: 13px;
  }

  /* Job list: the template lifts this button 42px, which made it sit on the card's edge once stacked. */
  .sw-job .circular-btn {
    top: 0;
    text-align: left;
    margin-top: 4px;
  }
  .sw-job .circular-btn a {
    font-size: 14px;
    padding: 10px 18px;
  }

  /* Bigger tap targets in the footer. */
  .footer-socail-info a,
  .footer-bottom-menu a,
  .footer-menu li a {
    display: inline-block;
    padding: 6px 0;
  }
}

@media (max-width: 991px) {
  /* The footer link dashes are placed for the desktop layout and strike through the centred links. */
  .menu-quick-link-content ul li:before,
  .footer-recent-post ul li:before {
    display: none;
  }
}

/* Mobile header: the real logo sits on the menu bar. The bar uses the dark
   theme colour so a logo drawn in the brand colour stays visible. */
.mobile-menu-area {
  position: relative;
}
.sw-mobile-logo {
  position: absolute;
  z-index: 1000000; /* the menu plugin's bar sits at 999999 */
  top: 0;
  left: 15px;
  height: 62px;
  display: flex;
  align-items: center;
}
.sw-mobile-logo img {
  max-height: 34px;
  width: auto;
}
.mean-container .mean-bar {
  background: var(--sw-dark);
}

/* ------------------------------------------------------------------
   SEO headings. The first hero slide's two headline lines are one <h1>
   (the home page's only h1); each line is a block span, and the second
   line takes the h1's own top margin so the spacing matches the two
   separate headings the template used.
   ------------------------------------------------------------------ */
.sw-hero-title .sw-line { display: block; }
.sw-hero-title .sw-line + .sw-line { margin-top: inherit; }

/* Images now carry width/height attributes so the browser reserves their
   space before they load (no layout jump); keep their natural proportions. */
.dreamit-department-thumb img { height: auto; }

/* ------------------------------------------------------------------
   Footer and the "Have a project in mind?" banner on tablets and phones.
   ------------------------------------------------------------------ */

/* The banner button had a transparent background, so it barely showed
   against the brand colour. */
.subscribe-area .about-button a {
  background: #fff;
  color: var(--sw-primary);
}
.subscribe-area .about-button a i { color: var(--sw-primary); }
.subscribe-area .about-button a:hover { background: var(--sw-dark, #212123); color: #fff; }
.subscribe-area .about-button a:hover i { color: #fff; }

@media (max-width: 991px) {
  /* Link lists were indented by three stacked paddings, so they sat off
     their headings. */
  .footer-middle .widget-nav-menu,
  .footer-middle .menu li { padding-left: 0; }
  .footer-middle .widget-nav-menu .menu li a,
  .footer-middle .footer-recent-post .menu li a { padding-left: 0; }
  .footer-middle .company_icon { margin-bottom: 20px; }
  .footer-middle .company_icon a { margin: 15px 8px 0 0; }
  .footer-middle .row.footer-bottom { align-items: center; margin-top: 32px; padding: 20px 0 24px; }
  .footer-middle .footer-bottom-content-copy p:where(:not(.sw-h1,.sw-h2,.sw-h3,.sw-h4,.sw-h5,.sw-h6)),
  .footer-middle .footer-bottom-menu p:where(:not(.sw-h1,.sw-h2,.sw-h3,.sw-h4,.sw-h5,.sw-h6)) { margin: 0; padding: 0; }
}

@media (min-width: 768px) and (max-width: 991px) {
  .footer-middle .footer-bottom-menu { text-align: right; }
}

@media (max-width: 767px) {
  /* One clear, left-aligned column with Services and Company side by side. */
  .footer-middle,
  .footer-middle .widget-widgets-company-info,
  .footer-middle .rubien-logo,
  .footer-middle .widget-nav-menu,
  .footer-middle .widget-footer-title,
  .footer-middle .footer-recent-post,
  .footer-middle #footer-widget-address,
  .footer-middle .footer-inner { text-align: left; }
  .footer-middle .container { padding-left: 20px; padding-right: 20px; }
  .footer-middle .company-info-desc p:where(:not(.sw-h1,.sw-h2,.sw-h3,.sw-h4,.sw-h5,.sw-h6)) { padding: 18px 0 0; margin-bottom: 6px; font-size: 15px; line-height: 1.7; }
  .footer-middle .company_icon a { margin: 12px 8px 0 0; }
  .footer-middle .widget-title { margin-top: 30px; padding-bottom: 14px; font-size: 18px; line-height: 1.3; text-align: left; }
  .footer-middle .widget-nav-menu .menu li a,
  .footer-middle .footer-recent-post .menu li a { display: inline-block; padding: 5px 0; font-size: 15px; line-height: 1.45; }

  /* Contact details: icon beside the text instead of above it. */
  .footer-middle .footer-inner { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
  .footer-middle .footer-socail-icon { float: none; flex: 0 0 26px; width: 26px; margin: 0; text-align: center; }
  .footer-middle .footer-socail-info p:where(:not(.sw-h1,.sw-h2,.sw-h3,.sw-h4,.sw-h5,.sw-h6)),
  .footer-middle .footer-socail-info2 p:where(:not(.sw-h1,.sw-h2,.sw-h3,.sw-h4,.sw-h5,.sw-h6)) { margin: 0; font-size: 15px; line-height: 1.5; text-align: left; overflow-wrap: anywhere; }

  .footer-middle .row.footer-bottom { margin-top: 24px; text-align: center; }
  .footer-middle .footer-bottom-content-copy p:where(:not(.sw-h1,.sw-h2,.sw-h3,.sw-h4,.sw-h5,.sw-h6)) { font-size: 13px; line-height: 1.6; }
  .footer-middle .footer-bottom-menu p:where(:not(.sw-h1,.sw-h2,.sw-h3,.sw-h4,.sw-h5,.sw-h6)) { padding-top: 8px; font-size: 13px; }

  /* Banner: centred, readable text and a full-width button. */
  .subscribe-area .row.subscribe-bg { padding: 32px 22px; text-align: center; }
  .subscribe-area .subscribe-title .sw-h1 { font-size: 24px; line-height: 1.25; }
  .subscribe-area .subscribe-title p:where(:not(.sw-h1,.sw-h2,.sw-h3,.sw-h4,.sw-h5,.sw-h6)) { font-size: 15px; line-height: 1.6; }
  .subscribe-area .row.subscribe-bg > div { justify-content: center; }
  .subscribe-area .about-button { width: 100%; }
  .subscribe-area .about-button a { display: block; margin-top: 8px; }
}

/* Dark textured bands (home "About us" band, footer) used fixed charcoal and
   purple photos. A wash of the "Dark sections" theme colour over the texture
   keeps the texture but makes them follow the theme. */
.about-area.style-three,
.service-area.style-three {
  background-image:
    linear-gradient(color-mix(in srgb, var(--sw-dark) 80%, transparent), color-mix(in srgb, var(--sw-dark) 80%, transparent)),
    url(../images/resource/services.jpg);
}
.footer-middle {
  background-image:
    linear-gradient(color-mix(in srgb, var(--sw-dark) 72%, transparent), color-mix(in srgb, var(--sw-dark) 72%, transparent)),
    url(../images/resource/footer-bg.jpg);
}

/* The side panel's close control is a <button> (it was an href="#" link). */
button.close-side-widget { padding: 0; border: 0; background: none; cursor: pointer; line-height: 1; }

/* Elements marked sw-hN look like an hN whatever their tag (see
   scripts/heading-selectors.mjs). These are the browser's own heading
   defaults, at zero specificity so every template rule still wins. */
:where(.sw-h1, .sw-h2, .sw-h3, .sw-h4, .sw-h5, .sw-h6) { display: block; font-weight: bold; margin-left: 0; margin-right: 0; }
:where(.sw-h1) { font-size: 2em; margin-top: .67em; margin-bottom: .67em; }
:where(.sw-h2) { font-size: 1.5em; margin-top: .83em; margin-bottom: .83em; }
:where(.sw-h3) { font-size: 1.17em; margin-top: 1em; margin-bottom: 1em; }
:where(.sw-h4) { font-size: 1em; margin-top: 1.33em; margin-bottom: 1.33em; }
:where(.sw-h5) { font-size: .83em; margin-top: 1.67em; margin-bottom: 1.67em; }
:where(.sw-h6) { font-size: .67em; margin-top: 2.33em; margin-bottom: 2.33em; }

/* Blog category bar (blog page and category pages). */
.sw-blog-cats { margin: 0 0 40px; }
.sw-blog-cats ul { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin: 0; padding: 0; list-style: none; }
.sw-blog-cats li { margin: 0; padding: 0; }
.sw-blog-cats a { display: inline-flex; align-items: center; gap: 8px; padding: 8px 18px; border: 1px solid color-mix(in srgb, var(--sw-primary) 30%, #fff); border-radius: 999px; background: #fff; color: var(--sw-dark); font-size: 15px; font-weight: 500; line-height: 1.4; transition: background-color .2s, border-color .2s, color .2s; }
.sw-blog-cats a:hover, .sw-blog-cats a:focus-visible, .sw-blog-cats a[aria-current="page"] { border-color: var(--sw-primary); background: var(--sw-primary); color: #fff; }
.sw-blog-cats-count { display: inline-block; min-width: 22px; padding: 0 6px; border-radius: 999px; background: color-mix(in srgb, var(--sw-primary) 12%, #fff); color: var(--sw-primary); font-size: 12px; font-weight: 600; line-height: 20px; text-align: center; }
.sw-blog-cats a:hover .sw-blog-cats-count, .sw-blog-cats a[aria-current="page"] .sw-blog-cats-count { background: rgba(255, 255, 255, .22); color: #fff; }
.sw-blog-cat-intro { max-width: 720px; margin: -16px auto 40px; text-align: center; }
@media (max-width: 575px) {
  .sw-blog-cats ul { justify-content: flex-start; }
  .sw-blog-cats a { padding: 6px 14px; font-size: 14px; }
}