/*
Theme Name: AIT Softwares Classic PHP Theme
Theme URI: https://www.aitsoftwares.com/
Author: AIT Softwares
Description: Independent classic PHP theme for AIT Softwares with responsive header/footer, WordPress-managed navigation, and content-first templates.
Version: 1.8.0
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: ait-softwares
*/

:root {
  --ait-blue: #0798ea;
  --ait-blue-dark: #0879b8;
  --ait-text: #242424;
  --ait-muted: #68727c;
  --ait-border: #e5edf2;
  --ait-soft: #f5f9fc;
  --ait-footer: #102f45;
  --ait-content-width: 1160px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ait-text); background: #fff; font: 16px/1.7 Arial, Helvetica, sans-serif; }
img { max-width: 100%; height: auto; }
a { color: var(--ait-blue-dark); text-decoration: none; }
a:hover, a:focus { color: #055d91; }
button, input, textarea, select { font: inherit; }
.ait-container { width: min(100% - 40px, var(--ait-content-width)); margin-inline: auto; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

/* Contact strip */
.ait-topbar { background: var(--ait-blue); color: #fff; font-size: 16px; font-weight: 700; }
.ait-topbar-inner { min-height: 50px; display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.ait-topbar-contact { display: flex; align-items: center; gap: 26px; }
.ait-topbar-contact a, .ait-topbar-location { color: #fff; }
.ait-topbar-contact a:hover { color: #eaf7ff; }
.ait-topbar-contact span[aria-hidden="true"], .ait-topbar-location span[aria-hidden="true"] { font-size: 20px; margin-right: 6px; }

/* Header and main navigation */
.ait-site-header { background: #fff; border-bottom: 1px solid #f0f2f4; position: relative; z-index: 100; }
.ait-header-inner { min-height: 136px; display: flex; align-items: center; gap: 26px; }
.ait-brand { flex: 0 0 230px; min-width: 230px; }
.ait-brand .custom-logo-link { display: inline-flex; align-items: center; }
.ait-brand .custom-logo { display: block; width: 230px; max-width: 100%; height: auto; max-height: 124px; object-fit: contain; }
.ait-site-name { font-size: 26px; font-weight: 800; color: #1c4964; }
.ait-primary-navigation { flex: 1 1 0; min-width: 0; max-width: none; margin-right: 22px; }
.ait-menu, .ait-menu ul { list-style: none; padding: 0; margin: 0; }
.ait-menu { display: flex; align-items: center; justify-content: flex-start; gap: 6px; }
.ait-menu > li { position: relative; display: flex; align-items: center; }
.ait-menu > li > a { display: block; padding: 20px 5px; color: #171717; font-size: 15.5px; font-weight: 700; line-height: 1.3; white-space: nowrap; }
.ait-menu > li > a:hover, .ait-menu > li.current-menu-item > a, .ait-menu > li.current-menu-ancestor > a { color: var(--ait-blue); }
.ait-menu .sub-menu { display: none; position: absolute; top: 100%; left: 0; min-width: 240px; max-width: 320px; padding: 8px 0; background: #fff; border: 1px solid var(--ait-border); box-shadow: 0 12px 30px rgba(0,0,0,.12); z-index: 110; }
.ait-menu .sub-menu li { position: relative; }
.ait-menu .sub-menu a { display: block; padding: 10px 16px; color: #222; font-size: 14px; font-weight: 600; white-space: normal; }
.ait-menu .sub-menu a:hover, .ait-menu .sub-menu .current-menu-item > a { color: var(--ait-blue); background: #f5faff; }
.ait-menu li:hover > .sub-menu, .ait-menu li:focus-within > .sub-menu, .ait-menu li.submenu-open > .sub-menu { display: block; }
.ait-menu .sub-menu .sub-menu { top: 0; left: 100%; }
.submenu-toggle { display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; padding: 0; border: 0; background: transparent; color: #333; cursor: pointer; font-size: 18px; }
.ait-header-actions { display: flex; align-items: center; gap: 22px; flex: 0 0 auto; margin-left: 0; }
.ait-phone { display: flex; align-items: center; gap: 8px; color: #222; font-size: 15px; line-height: 1.4; white-space: nowrap; }
.ait-phone strong { font-size: 18px; color: #111; }
.ait-phone span span { color: #69737c; font-weight: 600; }
.ait-phone-icon { color: var(--ait-blue); font-size: 30px; }
.ait-consult-button, .ait-button { display: inline-flex; align-items: center; justify-content: center; background: var(--ait-blue); color: #fff !important; padding: 15px 22px; font-size: 16px; font-weight: 700; border-radius: 0; white-space: nowrap; }
.ait-consult-button:hover, .ait-button:hover { background: var(--ait-blue-dark); }
.ait-menu-toggle { display: none; align-items: center; justify-content: center; width: 44px; height: 42px; border: 1px solid var(--ait-border); background: #fff; color: #222; border-radius: 2px; font-size: 23px; cursor: pointer; }
.ait-menu-toggle[aria-expanded="true"] .ait-menu-toggle-icon { transform: rotate(90deg); }

/* Page and blog templates */
.ait-main { min-height: 45vh; }
.ait-content-area { padding-top: 55px; padding-bottom: 60px; }
.ait-page-content-wrap { max-width: 980px; margin-inline: auto; }
.ait-page-content { font-size: 17px; line-height: 1.8; overflow-wrap: anywhere; }
.ait-page-content > *:first-child { margin-top: 0; }
.ait-page-content h1, .ait-page-content h2, .ait-page-content h3, .ait-page-content h4 { line-height: 1.3; color: #183e57; }
.ait-page-content h1 { font-size: clamp(32px, 4.5vw, 52px); }
.ait-page-content h2 { font-size: clamp(27px, 3.5vw, 38px); margin: 34px 0 18px; }
.ait-page-content h3 { font-size: 25px; margin: 28px 0 12px; }
.ait-page-content p { margin: 0 0 18px; }
.ait-page-content ul, .ait-page-content ol { padding-left: 24px; margin: 0 0 22px; }
.ait-page-content li { margin-bottom: 7px; }
.ait-page-content img { max-width: 100%; height: auto; }
.ait-page-content .aligncenter { display: block; margin-inline: auto; }
.ait-page-content .alignright { float: right; margin: 0 0 20px 25px; }
.ait-page-content .alignleft { float: left; margin: 0 25px 20px 0; }
.ait-page-content blockquote { margin: 28px 0; padding: 20px 25px; border-left: 4px solid var(--ait-blue); background: var(--ait-soft); }
.ait-page-content table { width: 100%; border-collapse: collapse; margin: 25px 0; }
.ait-page-content th, .ait-page-content td { border: 1px solid var(--ait-border); padding: 10px; text-align: left; }
.ait-page-title { background: linear-gradient(120deg, #0879b8, #0798ea); color: #fff; padding: 45px 0; }
.ait-page-title h1 { color: #fff; margin: 0; font-size: clamp(30px, 4.5vw, 48px); line-height: 1.2; }
.ait-kicker { margin: 0 0 8px; font-size: 13px; font-weight: 700; letter-spacing: 1.3px; text-transform: uppercase; }
.ait-post-meta { margin-top: 12px; font-size: 14px; color: var(--ait-muted); }
.ait-page-title .ait-post-meta { color: #eaf7ff; }
.ait-post-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 26px; }
.ait-post-card { border: 1px solid var(--ait-border); border-radius: 7px; overflow: hidden; background: #fff; }
.ait-post-thumb { display: block; aspect-ratio: 16/9; background: var(--ait-soft); overflow: hidden; }
.ait-post-thumb img { width: 100%; height: 100%; object-fit: cover; }
.ait-post-card-content { padding: 22px; }
.ait-post-card h2 { font-size: 22px; line-height: 1.35; margin: 0 0 10px; }
.ait-post-card h2 a { color: #173d56; }
.ait-post-card p { margin: 0 0 15px; }
.ait-read-more { font-weight: 700; }
.ait-no-results { padding-top: 55px; padding-bottom: 55px; }
.navigation.pagination, .pagination { margin-top: 35px; }

/* Footer */
.ait-site-footer { margin-top: 55px; background: var(--ait-footer); color: #dce8ef; }
.ait-footer-main { padding: 52px 0 35px; }
.ait-footer-grid { display: grid; grid-template-columns: 1.45fr 1fr 1fr 1fr; gap: 32px; }
.ait-site-footer h2, .ait-site-footer h3 { color: #fff; font-size: 20px; line-height: 1.3; margin: 0 0 16px; }
.ait-site-footer p { margin: 0 0 16px; }
.ait-site-footer a { color: #dce8ef; }
.ait-site-footer a:hover { color: #fff; text-decoration: underline; }
.ait-site-footer ul { list-style: none; padding: 0; margin: 0; }
.ait-site-footer li { margin: 0 0 8px; }
.ait-footer-bottom { border-top: 1px solid rgba(255,255,255,.15); padding: 17px 0; font-size: 14px; }
.ait-footer-bottom-inner { display: flex; align-items: center; justify-content: space-between; gap: 18px; }

/* Home page CSS originally authored for Pages > Home, now safely bundled with the theme. */
.ait-home{font-family:inherit;color:#333;line-height:1.7}
.ait-home *{box-sizing:border-box}
.ait-home section{padding:60px 24px}
.ait-home .wrap{max-width:1160px;margin:auto}
.ait-home .eyebrow{color:#0798ea;font-size:13px;font-weight:700;letter-spacing:1.4px;text-transform:uppercase;margin:0 0 10px}
.ait-home h1,.ait-home h2,.ait-home h3{line-height:1.25;margin:0 0 18px}
.ait-home h1{font-size:clamp(32px,5vw,54px)}
.ait-home h2{font-size:clamp(26px,3.5vw,38px)}
.ait-home h3{font-size:21px}
.ait-home p{margin:0 0 16px}
.ait-home img{max-width:100%;height:auto}
.ait-home .split{display:grid;grid-template-columns:1fr 1fr;gap:40px;align-items:center}
.ait-home .grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:22px}
.ait-home .card{border:1px solid #e7edf1;background:#fff;border-radius:8px;padding:26px;height:100%}
.ait-home .image{display:block;width:100%;border-radius:8px}
.ait-home .icon{width:64px;height:64px;object-fit:contain;display:block;margin:0 auto 18px}
.ait-home .soft{background:#f5f9fc}
.ait-home .blue{background:#0798ea;color:#fff}
.ait-home .blue .eyebrow{color:#fff}
.ait-home .center{text-align:center}
.ait-home .button{display:inline-block;background:#0798ea;color:#fff!important;text-decoration:none!important;padding:12px 26px;border-radius:4px;font-weight:600}
.ait-home .button-outline{display:inline-block;border:2px solid #0798ea;color:#0798ea!important;text-decoration:none!important;padding:10px 24px;border-radius:4px;font-weight:600}
.ait-home ul{padding-left:22px;margin:12px 0 22px}
.ait-home li{margin-bottom:7px}
@media(max-width:760px){.ait-home section{padding:42px 18px}.ait-home .split,.ait-home .grid{grid-template-columns:1fr}.ait-home .split{gap:25px}}
/* Header container aligned with the wider homepage content */
/* Header container aligned with the wider homepage content */
@media (min-width: 1181px) {
  .ait-site-header .ait-header-inner {
    width: min(calc(100% - 40px), 1460px);
    max-width: 1460px;
  }
}

/* Responsive layout */
@media (max-width: 1320px) {
  .ait-header-inner { min-height: 112px; gap: 22px; }
  .ait-menu { gap: 5px; }
  .ait-menu > li > a { padding-inline: 5px; font-size: 14px; }
  .ait-brand { flex: 0 0 190px; min-width: 190px; }
  .ait-brand .custom-logo { width: 190px; max-width: 190px; max-height: 94px; }
  .ait-header-actions { gap: 14px; margin-left: 0; }
  .ait-phone { font-size: 14px; }
  .ait-phone strong { font-size: 16px; }
  .ait-phone-icon { font-size: 28px; }
  .ait-consult-button { padding: 13px 16px; font-size: 15px; }
}
@media (max-width: 1180px) {
  .ait-header-inner { flex-wrap: wrap; justify-content: space-between; padding-top: 12px; padding-bottom: 12px; }
  .ait-brand { order: 1; flex: 0 0 auto; min-width: 0; }
  .ait-menu-toggle { display: inline-flex; order: 2; }
  .ait-header-actions { order: 3; margin-left: auto; }
  .ait-primary-navigation { display: none; order: 4; flex: 0 0 100%; width: 100%; }
  .ait-primary-navigation.is-open { display: block; }
  .ait-menu { display: block; border-top: 1px solid var(--ait-border); padding: 8px 0; }
  .ait-menu > li { display: flex; flex-wrap: wrap; align-items: center; }
  .ait-menu > li > a { flex: 1 1 auto; padding: 13px 8px; border-bottom: 1px solid #f0f3f5; white-space: normal; }
  .ait-menu .sub-menu { display: none; position: static; flex: 0 0 100%; width: 100%; max-width: none; border: 0; box-shadow: none; padding: 0 0 8px 15px; }
  .ait-menu li.submenu-open > .sub-menu { display: block; }
  .ait-menu .sub-menu .sub-menu { left: auto; }
  .ait-menu .submenu-toggle { display: inline-flex; }
  .ait-footer-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .ait-post-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
}
@media (min-width: 1051px) {
  .ait-menu .submenu-toggle { display: none; }
}
@media (max-width: 700px) {
  .ait-container { width: min(100% - 28px, var(--ait-content-width)); }
  .ait-topbar-inner { display: block; text-align: center; padding: 6px 0; }
  .ait-topbar-contact { flex-wrap: wrap; justify-content: center; gap: 6px 15px; }
  .ait-topbar-location { margin-bottom: 3px; }
  .ait-header-inner { gap: 10px; }
  .ait-brand { min-width: 0; }
  .ait-brand .custom-logo { width: 165px; max-width: 165px; max-height: 82px; }
  .ait-header-actions { flex: 0 0 100%; justify-content: space-between; margin-left: 0; gap: 8px; }
  .ait-phone { font-size: 13px; }
  .ait-phone strong { font-size: 14px; }
  .ait-phone-icon { font-size: 25px; }
  .ait-consult-button { padding: 11px 14px; font-size: 14px; }
  .ait-content-area { padding-top: 38px; padding-bottom: 42px; }
  .ait-page-content { font-size: 16px; }
  .ait-page-title { padding: 34px 0; }
  .ait-post-grid, .ait-footer-grid { grid-template-columns: 1fr; }
  .ait-footer-main { padding-top: 38px; }
  .ait-footer-bottom-inner { display: block; }
  .ait-footer-bottom-inner span { display: block; margin: 4px 0; }
  .ait-home section { padding: 42px 18px; }
  .ait-home .split, .ait-home .grid { grid-template-columns: 1fr; }
  .ait-home .split { gap: 25px; }
}


/* v4.7: align desktop header's left edge with the homepage content container */
@media (min-width: 1181px) {
  .ait-site-header .ait-header-inner {
    width: min(calc(100% - 40px), 1460px) !important;
    max-width: 1460px !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }
}

/* Sticky main header (the contact strip scrolls away) */
.ait-site-header {
  position: sticky;
  top: 0;
  z-index: 999;
  background: #fff;
  box-shadow: 0 3px 12px rgba(20, 45, 65, .08);
}

/* Keep the sticky header below the WordPress admin toolbar when logged in. */
body.admin-bar .ait-site-header {
  top: 32px;
}
@media screen and (max-width: 782px) {
  body.admin-bar .ait-site-header {
    top: 46px;
  }
}
