/* ==========================================================
   AILEX TINKERERS LTD. — SERVICES PAGE
   Custom stylesheet. Load after vendor and responsive CSS.
   Shares the home-page navy / blue visual system and navigation.
   ========================================================== */

@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Manrope:wght@500;600;700;800&display=swap');

:root {
  --ailex-navy: #071a33;
  --ailex-navy-2: #0d2848;
  --ailex-blue: #4283e4;
  --ailex-blue-2: #2466c7;
  --ailex-ink: #10233d;
  --ailex-text: #536174;
  --ailex-muted: #7c8796;
  --ailex-bg: #f7f9fc;
  --ailex-white: #fff;
  --ailex-line: #e3e9f1;
  --ailex-shadow: 0 18px 50px rgba(7, 26, 51, .09);
  --ailex-shadow-hover: 0 26px 65px rgba(7, 26, 51, .15);
}

html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ailex-text);
  background: var(--ailex-white);
  font-family: 'DM Sans', sans-serif;
  font-size: 16px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
body, button, input, textarea, select { font-family: 'DM Sans', sans-serif; }
h1, h2, h3, h4, h5, h6 { color: var(--ailex-ink); font-family: 'Manrope', sans-serif; font-weight: 800; letter-spacing: -.035em; }
a { color: inherit; text-decoration: none; transition: color .25s ease, background .25s ease, transform .25s ease, box-shadow .25s ease; }
a:hover, a:focus { text-decoration: none; }
img { max-width: 100%; height: auto; }
button { font: inherit; }
::selection { color: #fff; background: var(--ailex-blue); }

/* PRELOADER — keeps the existing HTML and JavaScript behaviour intact */
#preloader-active {
  position: fixed; inset: 0; z-index: 999999;
  display: flex; align-items: center; justify-content: center;
  background: #fff; opacity: 1; visibility: visible;
  transition: opacity .4s ease, visibility .4s ease;
}
#preloader-active.preloader-hidden { opacity: 0; visibility: hidden; pointer-events: none; }
#preloader-active .preloader { width: 100%; height: 100%; }
#preloader-active .preloader-inner { width: 100px; height: 100px; }
#preloader-active .preloader-circle {
  position: absolute; inset: 0; border: 2px solid #e7edf6; border-top-color: var(--ailex-blue) !important;
  border-radius: 50%; animation: ailex-spin .9s linear infinite;
}
#preloader-active .preloader-img { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; }
#preloader-active .preloader-img img { width: 62px; height: 42px; object-fit: contain; }
@keyframes ailex-spin { to { transform: rotate(360deg); } }

/* HEADER / NAV — intentionally mirrors the homepage header system */
.site-header { position: absolute; top: 24px; left: 0; right: 0; z-index: 1000; padding: 0 24px; }
.nav-container {
  position: relative; display: flex; align-items: center; gap: 28px;
  width: 100%; max-width: 1240px; min-height: 76px; margin: 0 auto; padding: 0 18px 0 20px;
  background: rgba(255,255,255,.97); border: 1px solid rgba(227,233,241,.95); border-radius: 18px;
  box-shadow: 0 12px 35px rgba(4,19,38,.10); backdrop-filter: blur(14px);
}
.brand { display: inline-flex; align-items: center; flex: 0 0 auto; min-width: 110px; }
.brand img { display: block; width: auto; max-width: 150px; max-height: 52px; object-fit: contain; }
.brand-text { display: none; }
.main-nav { display: flex; align-items: center; justify-content: center; gap: clamp(16px, 2vw, 29px); margin: 0 auto; }
.main-nav > a, .nav-dropdown-toggle {
  position: relative; display: inline-flex; align-items: center; gap: 8px; padding: 27px 0;
  border: 0; background: transparent; color: #26374d; font-size: 13px; font-weight: 700; letter-spacing: .01em; white-space: nowrap;
}
.main-nav > a::after, .nav-dropdown-toggle::after {
  position: absolute; right: 0; bottom: 19px; left: 0; height: 2px; content: ''; transform: scaleX(0); transform-origin: left;
  background: var(--ailex-blue); transition: transform .25s ease;
}
.main-nav > a:hover, .main-nav > a:focus, .main-nav > a.active, .nav-dropdown-toggle:hover { color: var(--ailex-blue-2); }
.main-nav > a:hover::after, .main-nav > a.active::after, .nav-dropdown-toggle:hover::after { transform: scaleX(1); }
.nav-dropdown-wrapper { position: relative; }
.nav-dropdown-toggle { cursor: pointer; }
.nav-dropdown-toggle i { font-size: 10px; transition: transform .2s ease; }
.nav-dropdown-wrapper.open .nav-dropdown-toggle i { transform: rotate(180deg); }
.nav-dropdown {
  position: absolute; top: calc(100% - 9px); left: -20px; z-index: 1002; display: block; min-width: 190px; padding: 9px;
  border: 1px solid var(--ailex-line); border-radius: 12px; background: #fff; box-shadow: var(--ailex-shadow);
  opacity: 0; visibility: hidden; transform: translateY(8px); transition: .2s ease;
}
.nav-dropdown-wrapper:hover .nav-dropdown, .nav-dropdown-wrapper:focus-within .nav-dropdown, .nav-dropdown-wrapper.open .nav-dropdown { opacity: 1; visibility: visible; transform: translateY(0); }
.nav-dropdown a { display: block; padding: 10px 12px; border-radius: 7px; color: #35465d; font-size: 13px; font-weight: 600; }
.nav-dropdown a:hover { color: var(--ailex-blue-2); background: #f2f6fc; }
.nav-actions { flex: 0 0 auto; }
.nav-cta { display: inline-flex; align-items: center; justify-content: center; gap: 12px; min-height: 48px; padding: 0 19px; border: 1px solid var(--ailex-blue); border-radius: 12px; background: var(--ailex-blue); color: #fff; font-size: 13px; font-weight: 800; white-space: nowrap; box-shadow: 0 8px 18px rgba(66,131,228,.2); }
.nav-cta i { font-size: 12px; transition: transform .2s ease; }
.nav-cta:hover, .nav-cta:focus { color: #fff; background: var(--ailex-blue-2); border-color: var(--ailex-blue-2); transform: translateY(-1px); }
.nav-cta:hover i { transform: translateX(3px); }
.mobile-nav-toggle { display: none; width: 46px; height: 44px; padding: 11px; border: 1px solid var(--ailex-line); border-radius: 10px; background: #fff; cursor: pointer; }
.mobile-nav-toggle span { display: block; width: 100%; height: 2px; margin: 4px 0; border-radius: 2px; background: var(--ailex-navy); transition: transform .25s ease, opacity .2s ease; }
.mobile-nav-toggle.active span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.mobile-nav-toggle.active span:nth-child(2) { opacity: 0; }
.mobile-nav-toggle.active span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* PAGE HERO — uses the existing page hero image and markup */
.slider-area { position: relative; }
.single-slider.slider-height2 {
  position: relative; isolation: isolate; min-height: 440px; padding: 175px 0 94px;
  background-color: var(--ailex-navy); background-position: center; background-size: cover; background-repeat: no-repeat;
}
.single-slider.slider-height2::before { position: absolute; inset: 0; z-index: -1; content: ''; background: linear-gradient(110deg, rgba(5,19,39,.92), rgba(8,34,65,.78) 56%, rgba(14,47,84,.62)); }
.hero-cap { max-width: 850px; margin: 0 auto; }
.hero-eyebrow { display: inline-block; margin-bottom: 14px; color: #9fc4ff; font-size: 11px; font-weight: 800; letter-spacing: .2em; }
.hero-cap h1 { margin: 0 0 18px; color: #fff; font-size: clamp(42px, 5.2vw, 66px); line-height: 1.08; letter-spacing: -.05em; }
.hero-cap p { max-width: 680px; margin: 0 auto; color: rgba(255,255,255,.84); font-size: clamp(16px, 1.8vw, 19px); line-height: 1.75; }

/* SERVICES INTRODUCTION */
.services-intro { position: relative; overflow: hidden; padding: 104px 0 54px; background: #fff; }
.services-intro::before { position: absolute; top: 45px; right: -115px; width: 300px; height: 300px; content: ''; border: 1px solid rgba(66,131,228,.10); border-radius: 50%; box-shadow: 0 0 0 35px rgba(66,131,228,.025), 0 0 0 70px rgba(66,131,228,.02); pointer-events: none; }
.services-intro-content { position: relative; z-index: 1; max-width: 840px; margin: 0 auto; text-align: center; }
.services-intro-label { display: inline-flex; align-items: center; gap: 10px; margin-bottom: 16px; color: var(--ailex-blue-2); font-size: 11px; font-weight: 800; letter-spacing: .17em; }
.services-intro-label::before { width: 25px; height: 2px; content: ''; background: var(--ailex-blue); }
.services-intro-content h2 { margin: 0 0 22px; font-size: clamp(32px, 4vw, 47px); line-height: 1.2; }
.services-intro-content h2 span { color: var(--ailex-blue); }
.services-intro-content p { max-width: 770px; margin: 0 auto; color: var(--ailex-text); font-size: 16px; line-height: 1.9; }

/* SERVICE CARDS */
.legal-practice-area { position: relative; padding: 30px 0 108px; background: #fff; }
.legal-practice-area .row { align-items: stretch; }
.legal-practice-area [class*='col-'] { display: flex; }
.single-practice {
  display: flex; flex-direction: column; width: 100%; overflow: hidden; margin-bottom: 30px;
  border: 1px solid var(--ailex-line); border-radius: 16px; background: #fff;
  box-shadow: 0 8px 28px rgba(7,26,51,.045); transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}
.single-practice:hover { transform: translateY(-8px); border-color: rgba(66,131,228,.4); box-shadow: var(--ailex-shadow-hover); }
.practice-img { position: relative; height: 235px; overflow: hidden; background: #e9eff8; }
.practice-img::after { position: absolute; inset: 0; content: ''; background: linear-gradient(180deg, transparent 50%, rgba(7,26,51,.22)); pointer-events: none; }
.practice-img img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .6s cubic-bezier(.2,.7,.2,1); }
.single-practice:hover .practice-img img { transform: scale(1.055); }
.practice-icon { position: absolute; right: 22px; bottom: -1px; z-index: 2; display: flex; align-items: center; justify-content: center; width: 56px; height: 56px; border: 4px solid #fff; border-radius: 14px 14px 0 0; background: var(--ailex-blue); color: #fff; font-size: 21px; box-shadow: 0 8px 20px rgba(36,102,199,.25); }
.practice-caption { display: flex; flex: 1; flex-direction: column; align-items: flex-start; padding: 28px 28px 30px; }
.service-number { display: inline-block; margin-bottom: 11px; color: var(--ailex-blue); font-family: 'Manrope', sans-serif; font-size: 12px; font-weight: 800; letter-spacing: .13em; }
.practice-caption h4 { margin: 0 0 15px; font-size: 20px; line-height: 1.42; letter-spacing: -.025em; }
.practice-caption h4 a { color: var(--ailex-navy); }
.practice-caption h4 a:hover { color: var(--ailex-blue-2); }
.practice-caption p { margin: 0 0 23px; color: var(--ailex-text); font-size: 14px; line-height: 1.85; }
.service-link { display: inline-flex; align-items: center; gap: 9px; margin-top: auto; color: var(--ailex-blue-2); font-size: 13px; font-weight: 800; }
.service-link i { font-size: 13px; transition: transform .2s ease; }
.service-link:hover { color: var(--ailex-navy); }
.service-link:hover i { transform: translateX(4px); }

/* CTA */
.wantToWork-area.w-padding { position: relative; overflow: hidden; padding: 72px 0; background: linear-gradient(115deg, var(--ailex-navy), #123c70); }
.wantToWork-area::before { position: absolute; top: -150px; right: 8%; width: 360px; height: 360px; content: ''; border: 1px solid rgba(255,255,255,.12); border-radius: 50%; box-shadow: 0 0 0 38px rgba(255,255,255,.035), 0 0 0 76px rgba(255,255,255,.025); pointer-events: none; }
.wantToWork-area .container { position: relative; z-index: 1; }
.wantToWork-caption .cta-label { display: inline-block; margin-bottom: 12px; color: #9fc4ff; font-size: 11px; font-weight: 800; letter-spacing: .16em; }
.wantToWork-caption h2 { max-width: 620px; margin: 0 0 14px; color: #fff; font-size: clamp(29px, 3.4vw, 42px); line-height: 1.2; }
.wantToWork-caption p { max-width: 590px; margin: 0; color: rgba(255,255,255,.78); font-size: 15px; }
.wantToWork-btn { display: flex; justify-content: flex-end; }
.btn-ans { display: inline-flex; align-items: center; justify-content: center; gap: 13px; min-height: 52px; padding: 0 23px; border: 1px solid rgba(255,255,255,.25); border-radius: 9px; background: #fff; color: var(--ailex-navy); font-size: 13px; font-weight: 800; box-shadow: 0 12px 28px rgba(0,0,0,.13); }
.btn-ans i { color: var(--ailex-blue-2); transition: transform .2s ease; }
.btn-ans:hover { color: #fff; border-color: var(--ailex-blue); background: var(--ailex-blue); transform: translateY(-2px); }
.btn-ans:hover i { color: #fff; transform: translateX(3px); }

/* FOOTER — keep existing footer structure but unify with homepage palette */
.footer-area.footer-bg { padding: 78px 0 44px; background: #07172d; }
.footer-area .single-footer-caption { margin-bottom: 28px; }
.footer-area .footer-logo { margin-bottom: 22px; }
.footer-area .footer-logo img { max-width: 165px; max-height: 60px; object-fit: contain; }
.footer-area .footer-tittle h4, .footer-area h4 { margin: 0 0 20px; color: #fff; font-size: 15px; font-weight: 800; letter-spacing: -.01em; }
.footer-area .footer-pera p, .footer-area p { color: #b7c3d4; font-size: 13px; line-height: 1.9; }
.footer-area ul { margin: 0; padding: 0; list-style: none; }
.footer-area ul li { margin: 0 0 11px; }
.footer-area ul li a { color: #b7c3d4; font-size: 13px; }
.footer-area ul li a:hover { color: #9fc4ff; padding-left: 3px; }
.footer-social { display: flex; gap: 9px; margin-top: 22px; }
.footer-social a { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; border: 1px solid rgba(255,255,255,.16); border-radius: 9px; color: #fff; }
.footer-social a:hover { border-color: var(--ailex-blue); background: var(--ailex-blue); color: #fff; transform: translateY(-2px); }
.footer-form input[type='email'] { width: 100%; min-height: 48px; padding: 0 14px; border: 1px solid rgba(255,255,255,.18); border-radius: 8px; outline: 0; background: rgba(255,255,255,.07); color: #fff; font-size: 13px; }
.footer-form input[type='email']::placeholder { color: #a9b6c8; }
.footer-form .submit-btn { margin-top: 10px; }
.footer-form button { min-height: 44px; padding: 0 16px; border: 0; border-radius: 8px; background: var(--ailex-blue); color: #fff; font-size: 12px; font-weight: 800; cursor: pointer; }
.footer-form button:hover { background: var(--ailex-blue-2); }
.footer-bottom-area.footer-bg { padding: 0 0 22px; background: #07172d; }
.footer-bottom-area .footer-border { border-top: 1px solid rgba(255,255,255,.12); padding-top: 22px; }
.footer-copy-right p { margin: 0; color: #9cabc0; font-size: 12px; }

/* ACCESSIBILITY */
a:focus-visible, button:focus-visible, input:focus-visible { outline: 3px solid rgba(66,131,228,.55); outline-offset: 3px; }

/* RESPONSIVE NAV — same .mobile-nav-open and .active classes used by existing JS */
@media (max-width: 1100px) {
  .nav-container { gap: 18px; }
  .main-nav { gap: 16px; }
  .main-nav > a, .nav-dropdown-toggle { font-size: 12px; }
  .nav-cta { padding: 0 13px; font-size: 12px; }
}
@media (max-width: 991px) {
  .site-header { top: 14px; padding: 0 16px; }
  .nav-container { min-height: 68px; padding: 0 14px 0 16px; gap: 12px; border-radius: 14px; }
  .brand img { max-width: 130px; max-height: 46px; }
  .nav-actions { margin-left: auto; }
  .nav-cta { min-height: 44px; }
  .mobile-nav-toggle { display: block; flex: 0 0 44px; }
  .main-nav {
    position: absolute; top: calc(100% + 10px); right: 0; left: 0; z-index: 1001;
    display: flex; flex-direction: column; align-items: stretch; gap: 0; margin: 0; padding: 10px;
    border: 1px solid var(--ailex-line); border-radius: 14px; background: #fff; box-shadow: var(--ailex-shadow);
    opacity: 0; visibility: hidden; pointer-events: none; transform: translateY(-7px); transition: opacity .22s ease, visibility .22s ease, transform .22s ease;
  }
  .main-nav.mobile-nav-open { opacity: 1; visibility: visible; pointer-events: auto; transform: translateY(0); }
  .main-nav > a, .nav-dropdown-toggle { display: flex; width: 100%; min-height: 46px; padding: 12px 13px; border-radius: 8px; font-size: 14px; }
  .main-nav > a::after, .nav-dropdown-toggle::after { display: none; }
  .main-nav > a:hover, .main-nav > a.active, .nav-dropdown-toggle:hover { background: #f2f6fc; }
  .nav-dropdown-wrapper { width: 100%; }
  .nav-dropdown-toggle { justify-content: space-between; }
  .nav-dropdown { position: static; display: none; min-width: 0; padding: 4px 0 4px 12px; border: 0; border-radius: 0; box-shadow: none; opacity: 1; visibility: visible; transform: none; }
  .nav-dropdown-wrapper.open .nav-dropdown { display: block; }
  .nav-dropdown a { padding: 10px 13px; }
  .single-slider.slider-height2 { min-height: 400px; padding: 150px 0 75px; }
  .services-intro { padding-top: 78px; }
  .practice-img { height: 210px; }
  .practice-caption { padding: 24px; }
  .wantToWork-btn { justify-content: flex-start; margin-top: 24px; }
}
@media (max-width: 575px) {
  .site-header { top: 10px; padding: 0 10px; }
  .nav-container { min-height: 62px; padding: 0 10px 0 12px; gap: 8px; }
  .brand { min-width: 0; }
  .brand img { max-width: 105px; max-height: 40px; }
  .nav-cta { min-height: 41px; gap: 7px; padding: 0 10px; font-size: 11px; }
  .nav-cta i { display: none; }
  .mobile-nav-toggle { width: 40px; height: 40px; flex-basis: 40px; padding: 9px; }
  .single-slider.slider-height2 { min-height: 365px; padding: 132px 0 58px; }
  .hero-eyebrow { margin-bottom: 10px; font-size: 10px; }
  .hero-cap h1 { font-size: clamp(36px, 10vw, 46px); }
  .hero-cap p { font-size: 15px; }
  .services-intro { padding: 65px 0 35px; }
  .services-intro-content h2 { font-size: 31px; }
  .services-intro-content p { font-size: 14px; }
  .legal-practice-area { padding: 20px 0 60px; }
  .practice-img { height: 215px; }
  .practice-caption { padding: 23px 22px 25px; }
  .practice-caption h4 { font-size: 19px; }
  .wantToWork-area.w-padding { padding: 54px 0; }
  .wantToWork-caption h2 { font-size: 30px; }
  .footer-area.footer-bg { padding-top: 55px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}


/* Homepage-matched consultation button sizing on very small screens */
@media (max-width: 420px) {
  .nav-cta { max-width: 112px; white-space: normal; line-height: 1.2; text-align: center; }
}

/* FINAL NAV CTA OVERRIDE — match the homepage consultation button exactly.
   Keep this block at the very end of services.css so it wins over template CSS. */
.site-header .nav-actions > a.nav-cta {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 12px !important;
  min-height: 0 !important;
  padding: 13px 18px !important;
  border: 0 !important;
  border-radius: 10px !important;
  background: #071a33 !important;
  color: #ffffff !important;
  font-family: 'DM Sans', sans-serif !important;
  font-size: 12px !important;
  font-weight: 700 !important;
  line-height: 1.4 !important;
  letter-spacing: normal !important;
  text-decoration: none !important;
  white-space: nowrap !important;
  box-shadow: none !important;
  transform: none;
  transition: background .25s ease, transform .25s ease !important;
}
.site-header .nav-actions > a.nav-cta:hover,
.site-header .nav-actions > a.nav-cta:focus-visible {
  background: #4283e4 !important;
  color: #ffffff !important;
  transform: translateY(-2px) !important;
  box-shadow: none !important;
}
.site-header .nav-actions > a.nav-cta i {
  color: inherit !important;
  font-size: 13px !important;
  line-height: 1 !important;
  transition: transform .25s ease !important;
}
.site-header .nav-actions > a.nav-cta:hover i {
  transform: translateX(3px) !important;
}
@media (max-width: 991px) {
  .site-header .nav-actions > a.nav-cta {
    min-height: 0 !important;
    padding: 13px 18px !important;
  }
}
@media (max-width: 480px) {
  .site-header .nav-actions > a.nav-cta {
    display: none !important;
  }
}
