/*
Theme Name: Ajial Theme
Theme URI: https://ajial.com/
Author: Ahmed Abdel Nasser
Author URI: http://qpoint.com.sa
Description: Custom theme for ajial.
Version: 1.9.23
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: ajial
*/

:root {
  --aj-green-dark:  #076e6a;
  --aj-green:       #0a905a;
  --aj-green-ink:   #043f3c;
  --aj-cream:       #f8f6f1;
  --aj-bg:          #f9f9f9;
  --aj-text:        #2a2a2a;
  --aj-muted:       #6b7280;
  --aj-header-h:    72px;
  --aj-shadow-sm:   0 6px 18px rgba(4, 63, 60, 0.08);
  --aj-shadow-md:   0 14px 38px rgba(4, 63, 60, 0.12);
  --aj-radius:      12px;
  --aj-radius-lg:   20px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html,
body {
  max-width: 100%;
  overflow-x: hidden;
}

body {
  position: relative;
  direction: rtl;
  color: var(--aj-text);
  font-family: "Tajawal", Arial, sans-serif;
  background: var(--aj-bg);
}

header.main-header .header-container {
  direction: ltr;
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
  gap: 20px;
}

.header-left {
  flex: 0 0 auto;
}

.brand-logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: clamp(150px, 16vw, 220px);
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  filter: none;
}

.brand-logo img {
  display: block;
  width: 100%;
  height: auto;
  filter: brightness(0) invert(1) drop-shadow(0 6px 16px rgba(0, 0, 0, 0.22));
}

.header-nav {
  flex: 1;
  min-width: 0;
  text-align: center;
}

.desktop-nav,
.mobile-links {
  list-style: none;
}

.desktop-nav {
  display: inline-flex;
  direction: rtl;
  align-items: center;
  gap: 22px;
  margin: 0;
  padding: 0;
}

.desktop-nav a,
.icon-link,
.mobile-links a,
.mobile-social a,
.footer-bottom a {
  color: #fff;
  text-decoration: none;
}

.header-right,
.header-icons,
.mobile-social,
.social-icons {
  display: flex;
  align-items: center;
}

.header-right {
  flex: 0 0 auto;
}

.mobile-hamburger,
.close-menu {
  color: #fff;
  cursor: pointer;
  background: none;
  border: 0;
}

.mobile-menu-overlay {
  position: fixed;
  inset: 0;
  z-index: 998;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.mobile-menu-overlay[hidden],
.mobile-menu[hidden] {
  display: none;
}

.mobile-menu-overlay.active {
  opacity: 1;
  visibility: visible;
}

body.mobile-menu-open {
  overflow: hidden;
}

.mobile-menu {
  position: fixed;
  top: 0;
  z-index: 999;
  height: 100%;
  text-align: right;
  direction: rtl;
  display: flex;
  flex-direction: column;
}

.mobile-links {
  display: flex;
  flex-direction: column;
  gap: 15px;
  margin: 0;
  padding: 0;
}

.mobile-links a {
  display: flex;
  align-items: center;
}

.social-icons {
  gap: 1rem;
  margin-top: 0.8rem;
}

header.main-header {
  position: fixed !important;
  top: 0; left: 0; right: 0;
  z-index: 999;
  transition: background 0.35s ease,
              box-shadow 0.35s ease,
              backdrop-filter 0.35s ease,
              padding 0.25s ease;
  padding: 4px 0;
}

body.home header.main-header {
  background: linear-gradient(180deg,
    rgba(0, 0, 0, 0.45) 0%,
    rgba(0, 0, 0, 0.18) 60%,
    transparent 100%) !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

body.home header.main-header.is-scrolled,
body:not(.home) header.main-header {
  background: linear-gradient(90deg,
    rgba(7, 110, 106, 0.94) 0%,
    rgba(10, 144, 90, 0.94) 100%) !important;
  box-shadow: 0 6px 24px rgba(4, 63, 60, 0.18);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
}
body.home header.main-header.is-scrolled { padding: 0; }

body:not(.home) { padding-top: var(--aj-header-h); }

header.main-header .header-container {
  padding: 8px 22px !important;
  max-width: 1240px !important;
}

header.main-header .brand-logo {
  transition: width 0.3s ease, padding 0.3s ease, box-shadow 0.3s ease;
}

header.main-header.is-scrolled .brand-logo {
  width: clamp(138px, 14vw, 190px);
  padding: 6px 10px;
}

header.main-header .desktop-nav {
  gap: clamp(14px, 1.8vw, 24px) !important;
}
header.main-header .desktop-nav li a {
  position: relative;
  padding: 6px 2px;
  font-size: clamp(13px, 1.05vw, 15px);
  font-weight: 700;
  white-space: nowrap;
  transition: color 0.25s ease;
}
header.main-header .desktop-nav li a::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: -4px;
  transform: translateX(-50%);
  width: 0;
  height: 2px;
  background: #ffffff;
  border-radius: 2px;
  transition: width 0.3s ease;
}
header.main-header .desktop-nav li a:hover {
  color: #ffffff !important;
}
header.main-header .desktop-nav li a:hover::after {
  width: 100%;
}

header.main-header .header-icons { gap: 8px !important; }
header.main-header .icon-link {
  width: 36px;
  height: 36px;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-size: 1rem !important;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  transition: all 0.25s ease;
}
header.main-header .icon-link:hover {
  background: rgba(255, 255, 255, 0.18);
  border-color: rgba(255, 255, 255, 0.28);
  transform: translateY(-2px);
}

header.main-header .mobile-hamburger {
  width: 44px !important;
  height: 44px !important;
  display: none;
  align-items: center;
  justify-content: center;
  border-radius: 10px !important;
  font-size: 22px !important;
  background: rgba(255, 255, 255, 0.1) !important;
  border: 1px solid rgba(255, 255, 255, 0.18) !important;
}
@media (max-width: 991px) {
  header.main-header .mobile-hamburger { display: inline-flex !important; }
  header.main-header .desktop-nav { display: none !important; }
  header.main-header .header-nav { display: none !important; }
  header.main-header .header-icons .social-icon { display: none !important; }
  header.main-header .header-container { padding: 6px 16px !important; }
}
@media (max-width: 480px) {
  header.main-header .brand-logo { width: 150px; padding: 0; }
  header.main-header.is-scrolled .brand-logo { width: 136px; }
  header.main-header .icon-link {
    width: 34px;
    height: 34px;
  }
}

.mobile-menu {
  right: 0 !important;
  left: auto !important;
  transform: translateX(100%);
  transition: transform 0.3s ease !important;
  background: linear-gradient(180deg, #076e6a 0%, #0a905a 100%) !important;
  width: min(300px, 85vw) !important;
  padding: 24px !important;
  gap: 12px !important;
  will-change: transform;
}
.mobile-menu.active {
  right: 0 !important;
  transform: translateX(0) !important;
}
.mobile-menu .close-menu {
  font-size: 32px !important;
  padding: 4px;
  margin-bottom: 8px;
  align-self: flex-start;
}
.mobile-menu .mobile-links li a {
  padding: 12px 4px !important;
  font-size: 1.05rem !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  gap: 12px !important;
}
.mobile-menu .mobile-links li:last-child a { border-bottom: none; }
.mobile-menu .mobile-links li a i {
  width: 24px;
  text-align: center;
  opacity: 0.85;
}
.mobile-menu .mobile-social {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
}
.mobile-menu .mobile-social a {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  transition: all 0.25s ease;
}
.mobile-menu .mobile-social a:hover {
  background: rgba(255, 255, 255, 0.25);
  transform: translateY(-2px);
}
.mobile-menu-overlay {
  background: rgba(4, 63, 60, 0.55) !important;
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
}


section,
section > * {
  max-width: 100%;
  box-sizing: border-box;
}

a.cta-button,
a.primary-button,
.btn-primary {
  display: inline-flex !important;
  align-items: center;
  gap: 8px;
  padding: 12px 24px !important;
  font-weight: 700 !important;
  border-radius: 999px !important;
  text-decoration: none !important;
  background: linear-gradient(135deg, var(--aj-green) 0%, #14b670 100%) !important;
  color: #fff !important;
  box-shadow: var(--aj-shadow-sm);
  transition: transform 0.25s ease, box-shadow 0.25s ease !important;
  white-space: nowrap;
}
a.cta-button:hover,
a.primary-button:hover,
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--aj-shadow-md);
  color: #fff !important;
}

img { max-width: 100%; height: auto; }

.wa-float {
  position: fixed;
  bottom: 22px;
  left: 22px;
  z-index: 9999;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 18px 10px 12px;
  color: #fff;
  font-family: "Tajawal", Arial, sans-serif;
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  direction: ltr;
  background: linear-gradient(135deg, #25d366 0%, #128c7e 100%);
  border-radius: 999px;
  box-shadow: 0 10px 30px rgba(37, 211, 102, 0.35), 0 4px 10px rgba(0, 0, 0, 0.12);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.wa-float:hover,
.wa-float:focus-visible {
  color: #fff;
  text-decoration: none;
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 16px 36px rgba(37, 211, 102, 0.45), 0 6px 14px rgba(0, 0, 0, 0.15);
}

.wa-float:focus-visible {
  outline: 3px solid rgba(37, 211, 102, 0.4);
  outline-offset: 3px;
}

.wa-float__icon {
  position: relative;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 50%;
}

.wa-float__icon svg {
  width: 28px;
  height: 28px;
}

.wa-float__label {
  margin-inline-end: 4px;
  letter-spacing: 0.5px;
  white-space: nowrap;
}

.wa-float__pulse {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  border-radius: 999px;
  box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.55);
  animation: waFloatPulse 2.2s ease-out infinite;
}

@keyframes waFloatPulse {
  0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.45); }
  70% { box-shadow: 0 0 0 18px rgba(37, 211, 102, 0); }
  100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

body.admin-bar .wa-float { bottom: 54px; }

@media (max-width: 600px) {
  .wa-float {
    bottom: 16px;
    left: 16px;
    width: 58px;
    height: 58px;
    justify-content: center;
    padding: 0;
  }

  .wa-float__icon {
    width: 58px;
    height: 58px;
    background: transparent;
  }

  .wa-float__label { display: none; }
}

@media print {
  .wa-float { display: none !important; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

html { scroll-behavior: smooth; }

@media (max-width: 768px) {
  a, button { min-height: 40px; }
}

header.main-header {
  --header-logo-w: clamp(152px, 15vw, 210px);
}

header.main-header .brand-logo {
  width: var(--header-logo-w);
  border-radius: 8px;
}

@media (max-width: 991px) {
  :root { --aj-header-h: 74px; }

  header.main-header {
    padding: 5px 0 !important;
  }

  body.home header.main-header {
    background: linear-gradient(180deg, rgba(4, 63, 60, 0.72), rgba(4, 63, 60, 0.28)) !important;
  }

  header.main-header .header-container {
    gap: 10px;
    padding: 8px 12px !important;
  }

  header.main-header .brand-logo,
  header.main-header.is-scrolled .brand-logo {
    width: clamp(126px, 34vw, 178px);
    padding: 0;
  }

  header.main-header .header-icons {
    gap: 6px !important;
  }

  header.main-header .icon-link,
  header.main-header .mobile-hamburger {
    width: 42px !important;
    height: 42px !important;
    border-radius: 50% !important;
    font-size: 19px !important;
    background: rgba(255, 255, 255, 0.14) !important;
    border-color: rgba(255, 255, 255, 0.24) !important;
  }

  header.main-header .header-right {
    margin-inline-start: auto;
  }
}

@media (max-width: 430px) {
  header.main-header .header-container {
    padding: 7px 10px !important;
    gap: 7px;
  }

  header.main-header .brand-logo,
  header.main-header.is-scrolled .brand-logo {
    width: clamp(112px, 32vw, 148px);
    padding: 0;
  }

  header.main-header .icon-link,
  header.main-header .mobile-hamburger {
    width: 38px !important;
    height: 38px !important;
    font-size: 17px !important;
  }
}

@media (max-width: 768px) {
  header.main-header .header-container {
    min-height: 62px;
    padding: 7px 10px !important;
    gap: 8px !important;
  }

  header.main-header .brand-logo,
  header.main-header.is-scrolled .brand-logo {
    width: clamp(118px, 30vw, 156px) !important;
    padding: 0 !important;
    border-radius: 0;
  }

  header.main-header .header-right,
  header.main-header .header-icons {
    gap: 5px !important;
  }

  header.main-header .icon-link,
  header.main-header .mobile-hamburger {
    width: 34px !important;
    height: 34px !important;
    min-width: 34px !important;
    min-height: 34px !important;
    padding: 0 !important;
    font-size: 15px !important;
    border-radius: 50% !important;
    background: rgba(255, 255, 255, 0.13) !important;
    border: 1px solid rgba(255, 255, 255, 0.24) !important;
    box-shadow: none !important;
  }

  header.main-header .mobile-hamburger i,
  header.main-header .icon-link i {
    line-height: 1;
  }
}

@media (max-width: 390px) {
  header.main-header .brand-logo,
  header.main-header.is-scrolled .brand-logo {
    width: clamp(104px, 29vw, 128px) !important;
    padding: 0 !important;
  }

  header.main-header .icon-link,
  header.main-header .mobile-hamburger {
    width: 32px !important;
    height: 32px !important;
    min-width: 32px !important;
    min-height: 32px !important;
    font-size: 14px !important;
  }
}

footer.footer {
  padding: clamp(38px, 6vw, 72px) 16px max(28px, env(safe-area-inset-bottom)) !important;
  color: #ffffff;
  text-align: center;
  background:
    radial-gradient(circle at 16% 0%, rgba(34, 199, 122, 0.18), transparent 30%),
    linear-gradient(135deg, #043f3c 0%, #076e6a 54%, #0a905a 100%) !important;
}

footer.footer .footer-inner {
  display: grid;
  gap: clamp(18px, 3vw, 28px);
  width: min(900px, 100%);
  margin-inline: auto;
}

footer.footer .footer-brand-block {
  display: grid;
  justify-items: center;
  gap: 16px;
  width: min(620px, 100%);
  margin-inline: auto;
}

footer.footer .footer-logo {
  display: block;
  width: min(280px, 74vw) !important;
  height: auto;
  margin: 0 auto;
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  filter: brightness(0) invert(1) drop-shadow(0 10px 24px rgba(0, 0, 0, 0.22));
}

footer.footer .footer-intro {
  max-width: 44rem !important;
  margin: 0 auto;
  color: rgba(255, 255, 255, 0.86);
  font-size: clamp(15px, 2.2vw, 18px);
  font-weight: 700;
  line-height: 1.9;
  text-align: center !important;
}

footer.footer .footer-link-groups {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  width: min(660px, 100%);
  margin-inline: auto;
}

footer.footer .footer-link-group ul {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

footer.footer .footer-link-group a,
footer.footer .footer-contact-row a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 48px;
  padding: 11px 14px;
  color: #ffffff !important;
  font-weight: 900;
  line-height: 1.35;
  text-align: center;
  text-decoration: none !important;
  background: rgba(255, 255, 255, 0.09);
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 8px;
  transition: transform 0.22s ease, background-color 0.22s ease, border-color 0.22s ease;
}

footer.footer .footer-link-group a:hover,
footer.footer .footer-link-group a:focus-visible,
footer.footer .footer-contact-row a:hover,
footer.footer .footer-contact-row a:focus-visible {
  color: #ffffff !important;
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.25);
  transform: translateY(-2px);
}

footer.footer .footer-contact-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  width: min(760px, 100%);
  margin-inline: auto;
}

footer.footer .footer-contact-row a {
  gap: 9px;
  direction: ltr;
}

footer.footer .footer-contact-row i {
  flex: 0 0 auto;
  color: #ffffff;
  font-size: 18px;
}

footer.footer .footer-social-block {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

footer.footer .footer-social-block a {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  width: 46px !important;
  height: 46px !important;
  min-height: 46px;
  color: #ffffff !important;
  text-decoration: none !important;
  background: rgba(255, 255, 255, 0.13) !important;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 50% !important;
  box-shadow: none !important;
  transition: transform 0.22s ease, background-color 0.22s ease;
}

footer.footer .footer-social-block a:hover,
footer.footer .footer-social-block a:focus-visible {
  color: #ffffff !important;
  background: rgba(255, 255, 255, 0.24) !important;
  transform: translateY(-2px);
}

footer.footer .footer-social-block i {
  color: #ffffff !important;
  font-size: 1.25rem;
  line-height: 1;
}

footer.footer .footer-bottom {
  margin-top: 4px !important;
  padding-top: 20px !important;
  color: rgba(255, 255, 255, 0.82);
  font-size: 14px !important;
  font-weight: 700;
  line-height: 1.8;
  text-align: center !important;
  border-top: 1px solid rgba(255, 255, 255, 0.16) !important;
}

footer.footer .footer-bottom a {
  color: #ffffff !important;
  font-weight: 900;
  text-decoration: none !important;
}

@media (max-width: 720px) {
  footer.footer {
    padding: 34px 12px 90px !important;
  }

  footer.footer .footer-inner {
    gap: 18px;
  }

  footer.footer .footer-logo {
    width: min(250px, 78vw) !important;
  }

  footer.footer .footer-link-groups {
    grid-template-columns: 1fr;
  }

  footer.footer .footer-contact-row {
    grid-template-columns: 1fr;
    width: min(420px, 100%);
  }
}

@media (max-width: 430px) {
  footer.footer .footer-intro {
    font-size: 14px;
  }

  footer.footer .footer-link-group ul {
    gap: 8px;
  }

  footer.footer .footer-link-group a {
    min-height: 46px;
    padding: 10px 8px;
    font-size: 14px;
  }

  footer.footer .footer-contact-row a {
    min-height: 46px;
    font-size: 14px;
  }

  footer.footer .footer-social-block a {
    width: 42px !important;
    height: 42px !important;
    min-height: 42px;
  }
}

body.page-template-contact-page {
  background:
    radial-gradient(circle at 18% 14%, rgba(20, 182, 112, 0.12), transparent 30%),
    linear-gradient(180deg, #f7fbf9 0%, #ffffff 52%, #f7fbf9 100%) !important;
  color: var(--aj-green-ink) !important;
}

main.contact-page {
  min-height: 70vh;
  padding: 0 18px 72px;
  text-align: right;
  color: var(--aj-green-ink);
  background: transparent;
}

.contact-hero {
  position: relative;
  isolation: isolate;
  display: grid;
  place-items: center;
  width: min(1160px, 100%);
  min-height: clamp(300px, 42vw, 470px);
  margin: 24px auto 34px;
  padding: clamp(30px, 6vw, 64px);
  overflow: hidden;
  color: #ffffff;
  text-align: center;
  border-radius: 22px;
  background-image:
    linear-gradient(180deg, rgba(4, 63, 60, 0.8), rgba(4, 63, 60, 0.72)),
    url('assets/images/hero2.webp?v=1918');
  background-size: cover;
  background-position: center;
  box-shadow: 0 24px 70px rgba(4, 63, 60, 0.16);
}

.contact-hero::after {
  content: '';
  position: absolute;
  inset: 16px;
  z-index: -1;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 16px;
}

.contact-hero__content {
  max-width: 720px;
  margin-inline: auto;
}

.contact-hero__eyebrow,
.contact-info-card__label {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  width: max-content;
  max-width: 100%;
  margin-bottom: 14px;
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 900;
  border-radius: 999px;
}

.contact-hero__eyebrow {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.contact-hero__dot {
  width: 9px;
  height: 9px;
  background: #22c77a;
  border-radius: 50%;
  box-shadow: 0 0 0 5px rgba(34, 199, 122, 0.18);
}

.contact-hero h1 {
  margin: 0 0 14px;
  color: #ffffff;
  font-size: clamp(2.15rem, 6vw, 4rem);
  font-weight: 900;
  line-height: 1.15;
}

.contact-hero p {
  max-width: 46ch;
  margin: 0 auto;
  color: rgba(255, 255, 255, 0.84);
  font-size: clamp(15px, 1.8vw, 19px);
  line-height: 1.9;
}

.contact-hero__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 24px;
}

.contact-hero__actions a,
.contact-info-card__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 46px;
  padding: 11px 18px;
  font-weight: 900;
  text-decoration: none;
  border-radius: 999px;
  transition: transform 0.25s ease, background-color 0.25s ease, color 0.25s ease;
}

.contact-hero__actions a {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.contact-hero__actions a:hover,
.contact-hero__actions a:focus-visible,
.contact-info-card__cta:hover,
.contact-info-card__cta:focus-visible {
  transform: translateY(-2px);
}

.contact-shell {
  display: grid;
  grid-template-columns: minmax(260px, 0.85fr) minmax(0, 1.25fr);
  gap: 20px;
  align-items: start;
  width: min(1160px, 100%);
  margin: 0 auto;
}

.contact-info-card,
.contact-form-wrapper {
  border: 1px solid rgba(10, 144, 90, 0.14);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 18px 48px rgba(4, 63, 60, 0.08);
}

.contact-info-card {
  position: sticky;
  top: calc(var(--aj-header-h) + 24px);
  padding: clamp(22px, 4vw, 34px);
}

.contact-info-card__label {
  color: var(--aj-green);
  background: rgba(10, 144, 90, 0.08);
  border: 1px solid rgba(10, 144, 90, 0.16);
}

.contact-info-card h2 {
  margin: 0 0 12px;
  color: var(--aj-green-ink);
  font-size: clamp(1.45rem, 3vw, 2.1rem);
  font-weight: 900;
  line-height: 1.25;
}

.contact-info-card p {
  margin: 0 0 20px;
  color: #637083;
  line-height: 1.85;
}

.contact-info-card ul {
  display: grid;
  gap: 10px;
  margin: 0 0 22px;
  padding: 0;
  list-style: none;
}

.contact-info-card li {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #0b5f55;
  font-weight: 800;
  line-height: 1.5;
}

.contact-info-card li i {
  color: #16bd74;
  font-size: 20px;
}

.contact-info-card__cta {
  color: #ffffff;
  background: linear-gradient(135deg, var(--aj-green), #18c57a);
  box-shadow: 0 12px 26px rgba(10, 144, 90, 0.25);
}

.contact-form-wrapper {
  max-width: none;
  margin: 0;
  padding: clamp(20px, 4vw, 34px);
  text-align: right;
  color: var(--aj-green-ink);
}

.contact-form-head {
  margin-bottom: 20px;
}

.contact-form-head__tag {
  display: inline-flex;
  width: max-content;
  margin-bottom: 10px;
  padding: 7px 12px;
  color: var(--aj-green);
  font-size: 12.5px;
  font-weight: 900;
  background: rgba(10, 144, 90, 0.08);
  border: 1px solid rgba(10, 144, 90, 0.14);
  border-radius: 999px;
}

.contact-form-head h2 {
  margin: 0 0 8px;
  color: var(--aj-green-ink);
  font-size: clamp(1.45rem, 3vw, 2rem);
  font-weight: 900;
}

.contact-form-head p {
  margin: 0;
  color: #637083;
  line-height: 1.75;
}

.aj-form-status {
  margin-bottom: 18px;
  padding: 12px 14px;
  font-weight: 800;
  line-height: 1.6;
  border-radius: 12px;
}

.aj-form-status--success {
  color: #086446;
  background: rgba(20, 182, 112, 0.12);
  border: 1px solid rgba(20, 182, 112, 0.22);
}

.aj-form-status--error {
  color: #8a1f17;
  background: rgba(216, 59, 45, 0.08);
  border: 1px solid rgba(216, 59, 45, 0.16);
}

.aj-contact-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.aj-contact-field {
  display: grid;
  gap: 7px;
  margin: 0;
}

.aj-contact-field--full {
  grid-column: 1 / -1;
}

.aj-contact-field--trap {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.contact-form-wrapper label,
.aj-contact-field span {
  color: var(--aj-green-ink) !important;
  font-family: "Tajawal", Arial, sans-serif !important;
  font-weight: 900 !important;
}

.contact-form-wrapper input[type="text"],
.contact-form-wrapper input[type="email"],
.contact-form-wrapper input[type="tel"],
.contact-form-wrapper input[type="number"],
.contact-form-wrapper select,
.contact-form-wrapper textarea {
  width: 100% !important;
  min-height: 48px !important;
  margin-bottom: 0 !important;
  padding: 12px 14px !important;
  color: var(--aj-green-ink) !important;
  font-family: "Tajawal", Arial, sans-serif !important;
  font-size: 15px !important;
  background: #f8fbfa !important;
  border: 1px solid rgba(10, 144, 90, 0.18) !important;
  border-radius: 12px !important;
  box-shadow: none !important;
  transition: border-color 0.25s ease, box-shadow 0.25s ease, background-color 0.25s ease;
}

.contact-form-wrapper textarea {
  min-height: 132px !important;
  resize: vertical;
}

.contact-form-wrapper input:focus,
.contact-form-wrapper select:focus,
.contact-form-wrapper textarea:focus {
  outline: none !important;
  background: #ffffff !important;
  border-color: rgba(10, 144, 90, 0.5) !important;
  box-shadow: 0 0 0 4px rgba(10, 144, 90, 0.1) !important;
}

.contact-form-wrapper button[type="submit"] {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  min-height: 50px !important;
  padding: 12px 28px !important;
  color: #ffffff !important;
  font-family: "Tajawal", Arial, sans-serif !important;
  font-weight: 900 !important;
  background: linear-gradient(135deg, var(--aj-green), #18c57a) !important;
  border: 0 !important;
  border-radius: 999px !important;
  box-shadow: 0 14px 30px rgba(10, 144, 90, 0.26) !important;
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease !important;
}

.contact-form-wrapper button[type="submit"]:hover {
  color: #ffffff !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 18px 36px rgba(10, 144, 90, 0.34) !important;
}

@media (max-width: 900px) {
  main.contact-page {
    padding-inline: 14px;
  }

  .contact-shell {
    grid-template-columns: 1fr;
  }

  .contact-info-card {
    position: static;
    text-align: center;
  }

  .contact-info-card__label,
  .contact-info-card__cta {
    margin-inline: auto;
  }

  .contact-info-card li {
    justify-content: center;
  }

  .contact-form-wrapper {
    text-align: right;
  }
}

@media (max-width: 520px) {
  .contact-hero {
    min-height: 360px;
    margin-top: 16px;
    padding: 28px 16px;
    border-radius: 18px;
  }

  .contact-hero::after {
    inset: 10px;
    border-radius: 13px;
  }

  .contact-hero h1 {
    font-size: clamp(2rem, 10vw, 2.75rem);
  }

  .contact-hero p {
    max-width: 30ch;
    font-size: 14px;
  }

  .contact-hero__actions a {
    width: 100%;
  }

  .aj-contact-form {
    grid-template-columns: 1fr;
  }

  .contact-info-card,
  .contact-form-wrapper {
    padding: 18px 14px;
    border-radius: 16px;
  }
}
