/*--------------------------------------------------------------
  WardLink — modern design layer
  Loaded after style.css. Same brand palette:
  green #A4CE3C · blue #48BCED · navy #002c60
--------------------------------------------------------------*/

:root {
  --wl-green: #A4CE3C;
  --wl-blue: #48BCED;
  --wl-navy: #002c60;
  --wl-ink: #2b3440;
  --wl-muted: #66707d;
  --wl-line: rgba(0, 44, 96, 0.08);
  --wl-radius: 18px;
  --wl-radius-sm: 12px;
  --wl-shadow-sm: 0 2px 8px rgba(0, 44, 96, 0.06);
  --wl-shadow-md: 0 10px 30px rgba(0, 44, 96, 0.10);
  --wl-shadow-lg: 0 24px 48px -12px rgba(0, 44, 96, 0.18);
  --wl-ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------- Base polish ---------- */
html {
  scroll-behavior: smooth;
}
html, body {
  overflow-x: hidden;
}
body {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  color: var(--wl-ink);
}
::selection {
  background: var(--wl-green);
  color: #fff;
}
:focus-visible {
  outline: 2px solid var(--wl-blue);
  outline-offset: 2px;
}
h1, h2, h3, h4, h5 {
  letter-spacing: -0.015em;
  color: var(--wl-ink);
}
p {
  line-height: 1.75;
}

/* Subtle custom scrollbar (WebKit) */
::-webkit-scrollbar {
  width: 10px;
}
::-webkit-scrollbar-track {
  background: #f1f4f8;
}
::-webkit-scrollbar-thumb {
  background: #c3cdd9;
  border-radius: 8px;
  border: 2px solid #f1f4f8;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--wl-blue);
}

/* ---------- Section headings ---------- */
.section-head h6 {
  letter-spacing: 3px;
  font-weight: 700;
}
.section-head h6 span {
  display: inline-block;
  background: rgba(164, 206, 60, 0.14);
  color: #7ea32b;
  padding: 6px 16px;
  border-radius: 999px;
  line-height: 1.4;
}
.section-head.text-light h6 {
  opacity: 1;
}
.section-head.text-light h6 span {
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
}
/* the has-line variant paints its own white bg — reset the pill there */
.section-head.has-line h6 span {
  background: #fff;
  color: #7ea32b;
  padding: 0 10px 0 0;
  border-radius: 0;
}
.section-title {
  font-size: clamp(26px, 4vw, 40px);
  line-height: 1.18;
  font-weight: 700;
}

/* ---------- Buttons ---------- */
.btn,
input.wpcf7-submit {
  border-radius: 999px;
  letter-spacing: 1.5px;
  font-weight: 700;
  padding: 14px 36px;
  box-shadow: 0 8px 20px -8px rgba(164, 206, 60, 0.65);
  transition: all 0.35s var(--wl-ease);
}
.btn:hover, .btn:focus,
input.wpcf7-submit:hover, input.wpcf7-submit:focus {
  transform: translateY(-2px);
  box-shadow: 0 14px 28px -10px rgba(72, 188, 237, 0.65);
}
.btn:active,
input.wpcf7-submit:active {
  transform: translateY(0);
}
.btn.btn-border {
  box-shadow: none;
}

/* Read-more style links */
.pagelink {
  border-bottom-width: 2px;
  padding-bottom: 3px;
  letter-spacing: 1px;
  text-transform: uppercase;
  transition: color 0.25s ease, border-color 0.25s ease, padding-left 0.25s ease;
}
.pagelink:hover {
  border-color: var(--wl-green);
}

/* ---------- Header ---------- */
.header-topbar {
  font-size: 12px;
  letter-spacing: 0.4px;
}
.header-topbar .social-list a {
  transition: color 0.25s ease, transform 0.25s ease;
  display: inline-block;
}
.header-topbar .social-list a:hover {
  color: var(--wl-green);
  transform: translateY(-2px);
}
.main-header {
  box-shadow: var(--wl-shadow-sm);
}
.main-navigation ul.menu > li > a {
  position: relative;
  letter-spacing: 0.5px;
  transition: color 0.25s ease;
}
.main-navigation ul.menu > li > a:after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 8px;
  width: 0;
  height: 2px;
  border-radius: 2px;
  background: var(--wl-green);
  transform: translateX(-50%);
  transition: width 0.3s var(--wl-ease);
}
.main-navigation ul.menu > li > a:hover:after,
.main-navigation ul.menu > li.current-menu-item > a:after {
  width: calc(100% - 36px);
}
.main-navigation .sub-menu {
  border-radius: 0 0 var(--wl-radius-sm) var(--wl-radius-sm);
  box-shadow: var(--wl-shadow-lg);
  border: 1px solid var(--wl-line);
  overflow: hidden;
}
.main-navigation .sub-menu li a {
  transition: background 0.2s ease, color 0.2s ease, padding-left 0.2s ease;
}
.main-navigation .sub-menu li a:hover {
  padding-left: 26px;
}
/* Sticky header: frosted glass */
.sticky-header.sticked, .header-fixed {
  background: rgba(255, 255, 255, 0.9);
  -webkit-backdrop-filter: saturate(160%) blur(12px);
  backdrop-filter: saturate(160%) blur(12px);
  box-shadow: 0 6px 24px rgba(0, 44, 96, 0.10);
}
.header_mobile {
  box-shadow: var(--wl-shadow-sm);
}

/* ---------- Page header / breadcrumbs ---------- */
.page-header {
  position: relative;
  background-image:
    linear-gradient(115deg, rgba(0, 44, 96, 0.88) 0%, rgba(0, 44, 96, 0.55) 55%, rgba(72, 188, 237, 0.35) 100%),
    url(../images/bg-pheader.jpg);
  background-repeat: no-repeat;
  background-position: center center;
  background-size: cover;
}
.page-title {
  font-size: clamp(28px, 4.5vw, 44px);
  color: #fff;
  letter-spacing: -0.01em;
}

/* ---------- Cards: services, icon boxes, posts, projects ---------- */
.service-box,
.testi-item,
.news-item .inner-item,
.project-item .inner-item {
  border-radius: var(--wl-radius);
  border: 1px solid var(--wl-line);
  box-shadow: var(--wl-shadow-sm);
  transition: transform 0.4s var(--wl-ease), box-shadow 0.4s var(--wl-ease),
              background 0.4s var(--wl-ease), border-color 0.4s var(--wl-ease);
}
.service-box {
  padding: 34px 32px 36px;
  height: 100%;
}
.service-box:hover,
.testi-item:hover,
.news-item .inner-item:hover,
.project-item .inner-item:hover {
  transform: translateY(-6px);
  box-shadow: var(--wl-shadow-lg);
  border-color: transparent;
}
.service-box.box-shadow-2,
.box-shadow-2 {
  box-shadow: var(--wl-shadow-md);
}
/* icon chip inside service/icon boxes */
.service-box.icon-box > i {
  width: 68px;
  height: 68px;
  max-width: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  border-radius: 20px;
  background: rgba(164, 206, 60, 0.14);
  margin-bottom: 24px;
  transition: background 0.35s var(--wl-ease), color 0.35s var(--wl-ease),
              transform 0.35s var(--wl-ease);
}
.service-box.icon-box:hover > i {
  transform: scale(1.07) rotate(-3deg);
}
.service-box.hover-box:hover > i {
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
}
.service-box h4 {
  transition: color 0.3s ease;
}
.service-box .content-box ul {
  padding-left: 18px;
}
.service-box .content-box ul li {
  margin-bottom: 8px;
  line-height: 1.65;
}

/* Testimonials */
.testi-item {
  padding: 30px 28px;
  background: #fff;
}
.testi-item .testi-head img {
  border-radius: 50%;
}

/* News / blog cards */
.news-item .inner-item {
  overflow: hidden;
  background: #fff;
}
.news-item .thumb img,
.inner-post img {
  transition: transform 0.6s var(--wl-ease);
}
.news-item .inner-item:hover .thumb img {
  transform: scale(1.05);
}

/* Generic content imagery */
.wpb_single_image img,
.inner-post img,
.thumb-image,
.entry-content img {
  border-radius: var(--wl-radius-sm);
  max-width: 100%;
  height: auto;
}

/* Partner logos */
.partner-item {
  transition: transform 0.35s var(--wl-ease), opacity 0.35s ease, filter 0.35s ease;
  opacity: 0.75;
  filter: grayscale(35%);
}
.partner-item:hover {
  transform: translateY(-4px);
  opacity: 1;
  filter: none;
}

/* Fun facts / counters */
.icon-fact {
  transition: transform 0.4s var(--wl-ease);
}
.icon-fact:hover {
  transform: translateY(-5px);
}
.fun-facts .number,
.icon-fact .number {
  font-weight: 800;
  letter-spacing: -0.02em;
}

/* ---------- Forms ---------- */
.wpcf7 .wpcf7-form-control:not(.btn):not(.wpcf7-submit) {
  border: 1px solid #dde4ec;
  border-radius: var(--wl-radius-sm);
  padding: 13px 18px;
  background: #fff;
  color: var(--wl-ink);
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}
.wpcf7 .wpcf7-form-control:not(.btn):not(select):focus {
  border-color: var(--wl-green);
  box-shadow: 0 0 0 4px rgba(164, 206, 60, 0.18);
  outline: none;
}
.wpcf7 textarea.wpcf7-form-control {
  min-height: 140px;
  resize: vertical;
}
.wpcf7 .wpcf7-form-control::placeholder {
  color: #9aa6b3;
}
/* dark panels (footer/sidebar subscribe forms) */
.bg-second .wpcf7 .wpcf7-form-control:not(.btn):not(.wpcf7-submit),
.site-footer .wpcf7 .wpcf7-form-control:not(.btn):not(.wpcf7-submit) {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.25);
  color: #fff;
}
.bg-second .wpcf7 .wpcf7-form-control::placeholder,
.site-footer .wpcf7 .wpcf7-form-control::placeholder {
  color: rgba(255, 255, 255, 0.65);
}

/* ---------- Sidebar widgets (service pages) ---------- */
.service-sidebar .widget {
  border-radius: var(--wl-radius);
  overflow: hidden;
}
.service-sidebar .widget_nav_menu {
  border: 1px solid var(--wl-line);
  box-shadow: var(--wl-shadow-sm);
}
.service-sidebar .widget_nav_menu li a {
  transition: color 0.25s ease, padding-left 0.25s ease;
}
.service-sidebar .widget_nav_menu li a:hover {
  padding-left: 8px;
  color: var(--wl-green);
}

/* ---------- Footer ---------- */
.site-footer {
  background:
    radial-gradient(120% 140% at 100% 0%, rgba(0, 44, 96, 0.28) 0%, rgba(0, 44, 96, 0) 55%),
    #48BCED;
}
.main-footer {
  padding: 90px 0 60px;
}
.main-footer h4:after {
  width: 45px;
  height: 3px;
  border-radius: 3px;
  background: var(--wl-green);
}
.main-footer ul a,
.main-footer a {
  transition: opacity 0.25s ease, padding-left 0.25s ease;
}
.main-footer .footer-nav a:hover {
  padding-left: 6px;
  opacity: 0.85;
}
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.18);
}
.main-footer .ot-socials a,
.ot-socials a {
  transition: all 0.3s var(--wl-ease);
}
.ot-socials a:hover {
  transform: translateY(-3px);
}

/* ---------- Scroll-reveal (js/modern.js adds .wl-reveal, then .wl-in) ---------- */
.wl-reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.7s var(--wl-ease), transform 0.7s var(--wl-ease);
  will-change: opacity, transform;
}
.wl-reveal.wl-in {
  opacity: 1;
  transform: none;
}
/* stagger siblings a touch */
.wl-reveal.wl-in:nth-child(2) { transition-delay: 0.06s; }
.wl-reveal.wl-in:nth-child(3) { transition-delay: 0.12s; }
.wl-reveal.wl-in:nth-child(4) { transition-delay: 0.18s; }

/* ---------- Responsive refinements ---------- */
@media (max-width: 991px) {
  .section-padd {
    padding: 80px 0;
  }
  .section-padd-2 {
    padding: 110px 0;
  }
  .section-padd-bot {
    padding-bottom: 80px;
  }
  .main-footer {
    padding: 70px 0 40px;
  }
}
@media (max-width: 767px) {
  .section-padd {
    padding: 60px 0;
  }
  .section-padd-2 {
    padding: 80px 0;
  }
  .section-padd-bot {
    padding-bottom: 60px;
  }
  .main-footer {
    padding: 56px 0 30px;
  }
  .main-footer h4 {
    margin-bottom: 24px;
  }
  .main-footer .widget {
    margin-bottom: 34px;
  }
  .footer-copyright, .footer-nav {
    float: none !important;
    text-align: center;
  }
  .service-box {
    padding: 28px 24px 30px;
  }
  /* spacing helpers are tuned for desktop — tighten on phones */
  .empty_space_60 { height: 34px; }
  .empty_space_30 { height: 20px; }
  .breadc-box .fright, .breadc-box .pull-right {
    float: none !important;
    display: block;
    margin-top: 6px;
  }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *, *::before, *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
  .wl-reveal {
    opacity: 1;
    transform: none;
  }
}
