/* ===== ARASUTECH GROUPS – new home page top section =====
   Loaded after style.css and extras.css. All classes start with "ag-". */

:root {
  --ag-navy: #0a1f3d;
  --ag-navy-2: #12305c;
  --ag-gold: #f5b700;
  --ag-gold-dark: #d4a017;
  --ag-red: #e5262b;
  --ag-red-dark: #c41d22;
  --ag-text: #0a1f3d;
  --ag-head: "Barlow Condensed", "Segoe UI", Arial, sans-serif;
  --ag-body: "Barlow", "Segoe UI", Arial, sans-serif;
}

.ag-groupbar svg, .ag-nav svg, .ag-hero svg, .ag-strip svg, .ag-band svg { width: 1em; height: 1em; }

/* ---------- Group companies bar ---------- */
.ag-groupbar {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 10px 2.5%;
  background: #fff;
  border-bottom: 1px solid #e3e8f0;
}
.ag-mainbrand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  flex-shrink: 0;
  padding-right: 18px;
  border-right: 1px solid #dfe5ee;
}
.ag-mark { width: 84px; height: 66px; object-fit: contain; display: block; }
.ag-mainbrand strong {
  display: block;
  font-family: var(--ag-head);
  font-weight: 800;
  font-size: 34px;
  line-height: 1;
  color: var(--ag-navy);
  letter-spacing: .5px;
}
.ag-mainbrand small {
  display: block;
  margin-top: 6px;
  font-family: var(--ag-body);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 2.2px;
  text-transform: uppercase;
  color: #3c4a60;
}
.ag-companies {
  display: flex;
  flex: 1;
  min-width: 0;
  overflow-x: auto;
  scrollbar-width: none;
}
.ag-companies::-webkit-scrollbar { display: none; }
.ag-company {
  display: flex;
  align-items: center;
  gap: 9px;
  flex: 1 1 0;
  min-width: 0;
  padding: 4px 10px;
  border-right: 1px solid #e6ebf2;
}
.ag-company:last-child { border-right: 0; }
.ag-company img { flex-shrink: 0; width: 58px; height: 50px; object-fit: contain; }
.ag-mono {
  flex-shrink: 0;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 8px;
  color: #fff;
  font-family: var(--ag-head);
  font-weight: 800;
  font-size: 20px;
}
.ag-company b {
  display: block;
  font-family: var(--ag-head);
  font-weight: 700;
  font-size: 15.5px;
  line-height: 1.1;
  color: var(--ag-navy);
}
.ag-company small {
  display: block;
  margin-top: 3px;
  font-family: var(--ag-body);
  font-size: 10.5px;
  line-height: 1.3;
  color: #55637a;
}

/* ---------- Main nav ---------- */
.ag-nav {
  position: sticky;
  top: 0;
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0 16px;
  padding: 0 2.5%;
  background: var(--ag-navy);
  box-shadow: 0 4px 18px rgba(0, 0, 0, .25);
}
nav.ag-links {
  display: flex;
  flex-wrap: nowrap;
  justify-content: flex-start;
  min-width: 0;
  gap: 4px;
  overflow-x: auto;
  scrollbar-width: none;
}
nav.ag-links::-webkit-scrollbar { display: none; }
nav.ag-links a {
  position: relative;
  padding: 17px 12px;
  white-space: nowrap;
  color: #fff;
  font-family: var(--ag-body);
  font-weight: 600;
  font-size: 16px;
}
nav.ag-links a:hover, nav.ag-links a.active { color: var(--ag-gold); }
nav.ag-links a.active::after {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 8px;
  height: 3px;
  border-radius: 2px;
  background: var(--ag-gold);
}
.ag-nav-right { display: flex; align-items: center; gap: 12px; flex-shrink: 0; margin-left: auto; padding: 8px 0; }
.ag-phone {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #fff;
  text-decoration: none;
  font-family: var(--ag-head);
  font-weight: 700;
  font-size: 22px;
  white-space: nowrap;
}
.ag-phone svg { width: 30px; height: 30px; color: #25d366; }
.ag-nav .lang-select {
  margin: 0;
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, .35);
}
.ag-nav .lang-select option { color: #111; }

/* ---------- Buttons ---------- */
.ag-btn-red, .ag-btn-gold, .ag-btn-ghost {
  display: inline-block;
  white-space: nowrap;
  text-decoration: none;
  font-family: var(--ag-head);
  font-weight: 700;
  transition: background .2s, transform .2s;
}
.ag-btn-red {
  padding: 9px 18px;
  border-radius: 6px;
  background: var(--ag-red);
  color: #fff;
  font-size: 18px;
}
.ag-btn-red:hover { background: var(--ag-red-dark); }
.ag-btn-lg { padding: 13px 30px; border-radius: 40px; font-size: 22px; box-shadow: 0 6px 18px rgba(229, 38, 43, .4); }
.ag-btn-lg:hover { transform: translateY(-2px); }
.ag-btn-ghost {
  padding: 12px 24px;
  border: 2px solid rgba(255, 255, 255, .6);
  border-radius: 40px;
  color: #fff;
  font-size: 19px;
}
.ag-btn-ghost:hover { background: rgba(255, 255, 255, .12); }
.ag-btn-gold {
  padding: 10px 22px;
  border-radius: 8px;
  background: var(--ag-gold);
  color: var(--ag-navy);
  font-size: 19px;
}
.ag-btn-gold:hover { background: #ffc928; }

/* ---------- Hero ---------- */
.ag-hero {
  position: relative;
  color: #fff;
  background:
    linear-gradient(90deg, rgba(8, 24, 50, .96) 0%, rgba(8, 24, 50, .82) 38%, rgba(8, 24, 50, .25) 70%, rgba(8, 24, 50, .55) 100%),
    var(--hero-img) center / cover no-repeat,
    var(--ag-navy);
}
.ag-hero-inner {
  display: flex;
  justify-content: space-between;
  gap: 30px;
  max-width: 1600px;
  margin: 0 auto;
  padding: 34px 2.5% 30px;
  min-height: 470px;
}
.ag-hero-text { max-width: 640px; }
.ag-hero h1 { margin: 0; font-family: var(--ag-head); font-weight: 800; line-height: 1; text-transform: uppercase; }
.ag-sectors {
  display: block;
  margin: 10px 0 4px;
  font-family: var(--ag-head);
  font-weight: 700;
  font-size: clamp(18px, 1.9vw, 26px);
  letter-spacing: .5px;
  line-height: 1.3;
  color: #fff;
  text-transform: none;
}
.ag-h-white { display: block; font-size: clamp(38px, 5vw, 64px); letter-spacing: .5px; text-shadow: 0 3px 12px rgba(0, 0, 0, .4); }
.ag-h-gold {
  display: inline-block;
  margin-top: 8px;
  padding-bottom: 10px;
  font-size: clamp(32px, 4.3vw, 58px);
  color: var(--ag-gold);
  background: linear-gradient(90deg, var(--ag-gold), rgba(245, 183, 0, 0)) left bottom / 100% 4px no-repeat;
}
.ag-countries {
  margin: 14px 0 6px;
  font-family: var(--ag-head);
  font-weight: 700;
  font-size: clamp(24px, 2.6vw, 36px);
}
.ag-countries i { font-style: normal; color: var(--ag-gold); margin: 0 6px; }
.ag-onestop { margin: 0 0 14px; font-family: var(--ag-head); font-weight: 700; font-size: clamp(20px, 2vw, 28px); }
.ag-checks {
  display: grid;
  grid-template-columns: auto auto;
  gap: 8px 30px;
  margin: 0 0 24px;
  padding: 0;
  list-style: none;
}
.ag-checks li { display: flex; align-items: center; gap: 9px; font-family: var(--ag-body); font-size: 17px; }
.ag-checks svg { width: 24px; height: 24px; flex-shrink: 0; color: var(--ag-gold); }
.ag-hero-actions { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }

.ag-hero-side { display: flex; flex-direction: column; align-items: flex-end; justify-content: space-between; gap: 20px; }
.ag-ribbon {
  max-width: 330px;
  margin: 10px 0 0;
  padding: 12px 22px;
  background: var(--ag-navy);
  transform: rotate(-4deg);
  font-family: var(--ag-head);
  font-style: italic;
  font-weight: 700;
  font-size: 25px;
  line-height: 1.15;
  text-align: center;
  box-shadow: 0 8px 20px rgba(0, 0, 0, .35);
  border-bottom: 3px solid var(--ag-gold);
}
.ag-features { display: flex; flex-direction: column; gap: 9px; margin: 0; padding: 0; list-style: none; }
.ag-features li {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 245px;
  padding: 5px 14px 5px 5px;
  border-radius: 40px 0 0 40px;
  background: rgba(10, 31, 61, .9);
  font-family: var(--ag-head);
  font-weight: 600;
  font-size: 18px;
  line-height: 1.1;
  box-shadow: 0 4px 14px rgba(0, 0, 0, .3);
}
.ag-fi {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 50px;
  height: 50px;
  border: 3px solid var(--ag-gold);
  border-radius: 50%;
  color: var(--ag-gold);
}
.ag-fi svg { width: 26px; height: 26px; }

/* ---------- Services strip ---------- */
.ag-strip {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  row-gap: 12px;
  padding: 14px 2.5%;
  background: #fff;
  box-shadow: 0 6px 20px rgba(0, 0, 0, .06);
}
.ag-strip-item {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 6px 10px;
  border-right: 1px solid #e3e8f0;
  text-decoration: none;
  color: var(--ag-text);
  font-family: var(--ag-head);
  font-weight: 600;
  font-size: 16px;
  line-height: 1.15;
}
.ag-strip-item:nth-child(6n) { border-right: 0; }
@media (min-width: 1900px) {
  .ag-strip { grid-template-columns: repeat(12, 1fr); }
  .ag-strip-item:nth-child(6n) { border-right: 1px solid #e3e8f0; }
  .ag-strip-item:last-child { border-right: 0; }
}
@media (max-width: 1250px) and (min-width: 801px) {
  .ag-strip { grid-template-columns: repeat(4, 1fr); }
  .ag-strip-item:nth-child(6n) { border-right: 1px solid #e3e8f0; }
  .ag-strip-item:nth-child(4n) { border-right: 0; }
}
.ag-strip-item:hover { color: var(--ag-red); }
.ag-strip-icon {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 46px;
  height: 46px;
  border-radius: 8px;
  color: #fff;
}
.ag-strip-icon svg { width: 26px; height: 26px; }

/* ---------- Projects showcase ---------- */
.ag-projects { background: #fff; padding-bottom: 26px; }
.ag-projects-head {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px 24px;
  padding: 14px 2.5%;
  background: linear-gradient(90deg, var(--ag-navy), var(--ag-navy-2));
  color: #fff;
}
.ag-projects-head h2 {
  margin: 0;
  font-family: var(--ag-head);
  font-weight: 800;
  font-size: clamp(32px, 3.4vw, 44px);
  color: var(--ag-gold);
  text-transform: uppercase;
  letter-spacing: .5px;
}
.ag-projects-head p { flex: 1; margin: 0; font-family: var(--ag-body); font-size: 19px; }
.ag-cards {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 12px;
  padding: 14px 1%;
}
.ag-card { margin: 0; text-align: center; }
.ag-card img {
  width: 100%;
  height: 175px;
  object-fit: cover;
  border-radius: 4px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, .12);
  transition: transform .3s;
}
.ag-card:hover img { transform: translateY(-4px); }
.ag-card figcaption {
  margin-top: 8px;
  font-family: var(--ag-head);
  font-weight: 600;
  font-size: 17px;
  line-height: 1.25;
  color: var(--ag-text);
}

/* ---------- Bottom band ---------- */
.ag-band {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  padding: 18px 3%;
  background: var(--ag-navy);
  border-bottom: 6px solid var(--ag-gold);
  color: #fff;
  text-align: center;
}
.ag-band-line { flex: 1; max-width: 260px; height: 2px; background: var(--ag-gold); }
.ag-band-icon { width: 46px !important; height: 46px !important; color: var(--ag-gold); }
.ag-band strong { font-family: var(--ag-head); font-weight: 800; font-size: 32px; letter-spacing: 1px; }
.ag-band-words { font-family: var(--ag-body); font-size: 16px; letter-spacing: 3px; text-transform: uppercase; }

/* ---------- Language fonts for the new parts ---------- */
html[data-lang="ta"] .ag-hero, html[data-lang="ta"] .ag-nav,
html[data-lang="ta"] .ag-strip, html[data-lang="ta"] .ag-projects, html[data-lang="ta"] .ag-band {
  --ag-head: "Noto Sans Tamil", sans-serif; --ag-body: "Noto Sans Tamil", sans-serif;
}
html[data-lang="ta"] .ag-hero h1 .ag-h-gold { font-size: clamp(24px, 3vw, 40px); line-height: 1.3; }
html[data-lang="ta"] .ag-strip-item, html[data-lang="ta"] .ag-card figcaption { font-size: 13px; }
html[data-lang="zh"] .ag-hero, html[data-lang="zh"] .ag-nav,
html[data-lang="zh"] .ag-strip, html[data-lang="zh"] .ag-projects, html[data-lang="zh"] .ag-band {
  --ag-head: "Noto Sans SC", sans-serif; --ag-body: "Noto Sans SC", sans-serif;
}

/* ---------- Responsive ---------- */
@media (max-width: 1650px) {
  .ag-phone span { display: none; }
  .ag-mainbrand strong { font-size: 30px; }
}
@media (max-width: 1350px) {
  .ag-cards { grid-template-columns: repeat(4, 1fr); }
  .ag-phone { font-size: 18px; }
  nav.ag-links a { padding: 16px 10px; font-size: 15px; }
}
@media (max-width: 1100px) {
  .ag-nav { flex-direction: column; flex-wrap: nowrap; align-items: stretch; gap: 0; padding: 0; }
  nav.ag-links { padding: 0 2%; }
  .ag-nav-right { justify-content: center; margin-left: 0; padding: 8px 2% 10px; background: var(--ag-navy-2); }
  .ag-phone span { display: inline; }
  .ag-hero-side { display: none; }
  .ag-hero { background:
      linear-gradient(180deg, rgba(8, 24, 50, .9), rgba(8, 24, 50, .78)),
      var(--hero-img) center / cover no-repeat, var(--ag-navy); }
}
@media (max-width: 800px) {
  .ag-groupbar { flex-direction: column; align-items: stretch; gap: 8px; }
  .ag-mainbrand { border-right: 0; padding-right: 0; justify-content: center; }
  .ag-mainbrand strong { font-size: 28px; }
  .ag-mark { width: 56px; height: 54px; }
  .ag-company { flex: 0 0 auto; width: 215px; }
  .ag-checks { grid-template-columns: 1fr; }
  .ag-strip {
    display: flex;
    overflow-x: auto;
    padding: 12px 3%;
    scroll-snap-type: x mandatory;
  }
  .ag-strip-item { flex: 0 0 auto; width: 165px; scroll-snap-align: start; }
  .ag-cards { grid-template-columns: repeat(2, 1fr); padding: 14px 3%; }
  .ag-card img { height: 140px; }
  .ag-projects-head { flex-direction: column; text-align: center; }
  .ag-projects-head p { font-size: 16px; }
  .ag-band { flex-direction: column; gap: 6px; }
  .ag-band-line { display: none; }
  .ag-band strong { font-size: 26px; }
  .ag-band-words { font-size: 13px; letter-spacing: 1.5px; }
}
@media (max-width: 480px) {
  .ag-nav-right { flex-wrap: wrap; gap: 8px; }
  .ag-hero-inner { padding: 26px 5% 28px; min-height: 0; }
  .ag-checks li { font-size: 16px; }
  .ag-btn-lg { font-size: 19px; padding: 12px 22px; }
  .ag-hero-actions { flex-direction: column; align-items: stretch; text-align: center; }
}
/* ---------- Footer & contact email links ---------- */
.footer a { color: #fbb03b; text-decoration: none; font-weight: 600; word-break: break-word; }
.footer a:hover { color: #fff; text-decoration: underline; }
.contact a { color: #0a2f57; font-weight: 600; word-break: break-word; }
.contact a:hover { color: #f7941d; }
