/* ═══════════════════════════════════════════
   Arshith Group – Careers Page Stylesheet
   Covers: Reset · Base · Header · Careers · Footer · Responsive
   ═══════════════════════════════════════════ */

/* ── RESET & BASE ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; overflow-x: hidden; }
body { font-family: 'Roboto', sans-serif; color: #333; background: #fff; line-height: 1.6; -webkit-font-smoothing: antialiased; overflow-x: hidden; max-width: 100vw; }
a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
ul { list-style: none; }

.container { max-width: 1400px; margin: 0 auto; padding: 0 24px; }

/* ── HEADER ── */
.ag-header { position: fixed; top: 0; left: 0; right: 0; z-index: 1000; background: #fff; border-bottom: 1px solid #e8e8e8; transition: box-shadow 0.3s; }
.ag-header--scrolled { box-shadow: 0 2px 20px rgba(0,0,0,0.12); }

.ag-nav { display: flex; align-items: center; height: 90px; position: relative; }
.ag-logo { flex-shrink: 0; display: flex; align-items: center; margin-left: -20px; }
.ag-logo-img { height: 58px; width: auto; object-fit: contain; display: block; }

/* Right-aligned nav links */
.ag-nav-links {
  display: flex;
  align-items: center;
  gap: 0;
  margin-left: auto;
}
.ag-nav-item { position: relative; }
.ag-nav-item > a {
  display: block;
  padding: 0 16px;
  height: 90px;
  line-height: 90px;
  font-size: 0.85rem;
  font-weight: 500;
  color: #333;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  white-space: nowrap;
  transition: color 0.2s;
}
.ag-nav-item > a:hover,
.ag-nav-active { color: #004b8d !important; }
.ag-caret { font-size: 0.65rem; margin-left: 4px; }

/* Dropdown */
.ag-dropdown {
  display: none;
  position: absolute;
  top: 90px;
  left: 0;
  background: #fff;
  border-top: 3px solid #004b8d;
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
  min-width: 200px;
  z-index: 100;
}
.ag-dropdown a { display: block; padding: 12px 20px; font-size: 0.85rem; color: #333; border-bottom: 1px solid #f0f0f0; transition: background 0.2s, color 0.2s; }
.ag-dropdown a:hover { background: #f5f9ff; color: #004b8d; padding-left: 26px; }
.ag-nav-item:hover .ag-dropdown { display: block; }

/* Hamburger (hidden on desktop) */
.ag-nav-right { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.ag-hamburger { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 8px; }
.ag-hamburger span { display: block; width: 24px; height: 2px; background: #333; transition: all 0.3s; border-radius: 2px; }
.ag-hamburger:hover span { background: #004b8d; }

/* Animated hamburger → X */
.ag-ham-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.ag-ham-open span:nth-child(2) { opacity: 0; }
.ag-ham-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── SHARED BUTTONS ── */
.ag-btn { display: inline-flex; align-items: center; gap: 10px; padding: 13px 28px; font-size: 0.9rem; font-weight: 500; letter-spacing: 0.5px; transition: all 0.25s; cursor: pointer; border: none; }
.ag-btn--solid-dark { background: #004b8d; color: #fff; }
.ag-btn--solid-dark:hover { background: #003570; }

/* ── SECTION TITLE ── */
.ag-section-title { font-family: 'Roboto Condensed', sans-serif; font-size: 2.2rem; font-weight: 700; color: #222; text-transform: uppercase; letter-spacing: 1px; }

/* ── FADE-IN ANIMATION ── */
.ag-visible { animation: agFadeUp 0.7s ease forwards; }
@keyframes agFadeUp { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: translateY(0); } }

/* ══════════════════════════════
   CAREERS SECTION
══════════════════════════════ */
.ag-careers { padding: 140px 0 80px; background: #f8f9fa; }
.ag-careers-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 40px; }
.ag-careers-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; }
.ag-career-card {
  position: relative;
  height: 400px;
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
  overflow: hidden;
  cursor: pointer;
}
.ag-career-overlay { position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,0.78) 0%, rgba(0,0,0,0.1) 60%); transition: background 0.3s; }
.ag-career-card:hover .ag-career-overlay { background: linear-gradient(to top, rgba(0,40,90,0.88) 0%, rgba(0,40,90,0.3) 60%); }
.ag-career-body { position: absolute; bottom: 0; left: 0; right: 0; padding: 28px; display: flex; justify-content: space-between; align-items: flex-end; color: #fff; }
.ag-career-body h4 { font-size: 1.05rem; font-weight: 700; font-family: 'Roboto Condensed', sans-serif; text-transform: uppercase; letter-spacing: 0.5px; }
.ag-career-body i { font-size: 1.1rem; opacity: 0.7; transform: translateX(0); transition: transform 0.25s, opacity 0.25s; }
.ag-career-card:hover .ag-career-body i { opacity: 1; transform: translateX(4px); }

/* ══════════════════════════════
   CONTACT SECTION
══════════════════════════════ */
.ag-contact { padding: 80px 0; background: #fff; }

/* Centered heading */
.ag-contact-heading { text-align: center; max-width: 600px; margin: 0 auto 48px; }
.ag-contact-eyebrow { display: block; font-size: 0.78rem; font-weight: 700; text-transform: uppercase; letter-spacing: 3px; color: #004b8d; margin-bottom: 14px; }
.ag-contact-title { font-family: 'Roboto Condensed', sans-serif; font-size: 2.4rem; font-weight: 700; color: #222; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 16px; line-height: 1.1; }
.ag-contact-sub { font-size: 0.95rem; color: #666; line-height: 1.75; }

/* Centered form */
.ag-contact-form-wrap { max-width: 720px; margin: 0 auto; background: #f8f9fa; padding: 40px; border-top: 4px solid #004b8d; }
.ag-contact-form { display: flex; flex-direction: column; gap: 20px; }
.ag-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.ag-form-group { display: flex; flex-direction: column; gap: 6px; }
.ag-form-group label { font-size: 0.8rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; color: #444; }
.ag-form-group input,
.ag-form-group select,
.ag-form-group textarea {
  width: 100%;
  padding: 12px 16px;
  font-size: 0.9rem;
  font-family: 'Roboto', sans-serif;
  color: #333;
  background: #fff;
  border: 1.5px solid #ddd;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  resize: none;
  border-radius: 0;
  -webkit-appearance: none;
  appearance: none;
}
.ag-form-group input:focus,
.ag-form-group select:focus,
.ag-form-group textarea:focus { border-color: #004b8d; box-shadow: 0 0 0 3px rgba(0,75,141,0.1); }
.ag-form-group input::placeholder,
.ag-form-group textarea::placeholder { color: #aaa; }

.ag-form-submit-row { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.ag-form-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: #004b8d;
  color: #fff;
  border: none;
  padding: 14px 32px;
  font-size: 0.9rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  cursor: pointer;
  transition: background 0.25s, gap 0.25s;
}
.ag-form-btn:hover { background: #003570; gap: 16px; }
.ag-form-success { display: none; font-size: 0.88rem; color: #16a34a; font-weight: 500; }
.ag-form-success--show { display: block; }

/* ══════════════════════════════
   FOOTER
══════════════════════════════ */
.ag-footer { background: #f5f5f5; border-top: 1px solid #e0e0e0; padding: 60px 0 0; }
.ag-footer-inner { display: grid; grid-template-columns: 280px 1fr; gap: 60px; padding-bottom: 48px; }
.ag-footer-logo-img { height: 56px; width: auto; object-fit: contain; display: block; margin-bottom: 16px; }
.ag-footer-brand p { font-size: 0.88rem; color: #666; line-height: 1.7; margin: 0 0 24px; max-width: 240px; }
.ag-footer-social { display: flex; gap: 10px; }
.ag-footer-social a { width: 36px; height: 36px; border-radius: 50%; background: #e0e0e0; display: flex; align-items: center; justify-content: center; color: #555; font-size: 0.85rem; transition: all 0.2s; }
.ag-footer-social a:hover { background: #004b8d; color: #fff; }
.ag-footer-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; }
.ag-footer-col h5 { font-size: 0.8rem; font-weight: 700; text-transform: uppercase; letter-spacing: 1.5px; color: #222; margin-bottom: 20px; }
.ag-footer-col ul { display: flex; flex-direction: column; gap: 10px; }
.ag-footer-col ul a { font-size: 0.88rem; color: #666; transition: color 0.2s; }
.ag-footer-col ul a:hover { color: #004b8d; }
.ag-footer-bottom { background: #e8e8e8; padding: 18px 0; }
.ag-footer-bottom-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.ag-footer-bottom p { font-size: 0.8rem; color: #666; }
.ag-footer-legal { display: flex; gap: 20px; flex-wrap: wrap; }
.ag-footer-legal a { font-size: 0.78rem; color: #666; transition: color 0.2s; }
.ag-footer-legal a:hover { color: #004b8d; }
.ag-back-top { width: 40px; height: 40px; border-radius: 50%; background: #004b8d; color: #fff; border: none; cursor: pointer; display: flex; align-items: center; justify-content: center; font-size: 0.9rem; transition: background 0.2s; }
.ag-back-top:hover { background: #003570; }

/* ══════════════════════════════
   RESPONSIVE
══════════════════════════════ */
@media (max-width: 1024px) {
  .ag-nav-links { gap: 0; }
  .ag-nav-item > a { padding: 0 11px; font-size: 0.78rem; }
}

@media (max-width: 900px) {
  /* Slide-down mobile menu */
  .ag-nav-links {
    display: none;
    position: fixed;
    top: 90px;
    left: 0;
    right: 0;
    background: #fff;
    flex-direction: column;
    padding: 16px 0;
    border-top: 3px solid #004b8d;
    box-shadow: 0 8px 24px rgba(0,0,0,0.1);
    z-index: 999;
    overflow-y: auto;
    max-height: calc(100vh - 90px);
    /* override absolute centering */
    position: fixed;
    left: 0;
    transform: none;
  }
  .ag-nav-open { display: flex; }
  .ag-nav-item > a { height: auto; line-height: normal; padding: 14px 24px; border-bottom: 1px solid #f0f0f0; }
  .ag-dropdown { display: none !important; position: static; box-shadow: none; border-top: none; background: #f5f5f5; }
  .ag-hamburger { display: flex; }

  /* Careers */
  .ag-careers-grid { grid-template-columns: repeat(2, 1fr); }
  .ag-careers-head { flex-direction: column; align-items: flex-start; gap: 16px; }

  /* Contact */
  .ag-contact-inner { grid-template-columns: 1fr; gap: 40px; }
  .ag-contact-form-wrap { padding: 28px; }
  .ag-contact-sub { max-width: 100%; }

  /* Footer */
  .ag-footer-inner { grid-template-columns: 1fr; gap: 32px; }
  .ag-footer-brand p { max-width: 100%; }
}

@media (max-width: 600px) {
  .ag-careers-grid { grid-template-columns: 1fr; }
  .ag-career-card { height: 280px; }
  .ag-form-row { grid-template-columns: 1fr; }
  .ag-footer-cols { grid-template-columns: 1fr 1fr; gap: 24px; }
  .ag-footer-bottom-inner { flex-direction: column; text-align: center; }
}
