/*
 * ils.css — ilovesalary.com Theme
 * Header (nav) + Footer styles
 * Matches the HTML design in /HTML Design/ilovesalary-homepage.html
 */

/* ── CSS VARIABLES ──────────────────────────────────────────── */
:root {
  --ils-blue:   #1a73e8;
  --ils-red:    #ea4335;
  --ils-yellow: #fbbc04;
  --ils-green:  #34a853;
  --ils-gray:   #5f6368;
  --ils-border: #dadce0;
  --ils-surf:   #f8f9fa;
  --ils-dark:   #202124;
  --ils-nav-h:  64px;
}

/* ── BASE RESET (scoped to ILS elements) ────────────────────── */
.ils-nav *, .ils-footer * { box-sizing: border-box; }

/* ═══════════════════════════════════════════════════════════════
   NAV / HEADER
═══════════════════════════════════════════════════════════════ */
.ils-nav {
  position: sticky;
  top: 0;
  z-index: 200;
  height: var(--ils-nav-h);
  background: #fff;
  border-bottom: 1px solid var(--ils-border);
  box-shadow: 0 1px 0 var(--ils-border);
  display: flex;
  align-items: center;
  padding: 0 40px;
  gap: 8px;
  font-family: 'Google Sans', 'Roboto', sans-serif;
}

/* ── Logo ── */
.ils-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--ils-dark);
  margin-right: 24px;
  flex-shrink: 0;
}
.ils-logo-img {
  height: 38px;
  width: auto;
  border-radius: 9px;
  border: 1.5px solid var(--ils-border);
}
.ils-logo-svg {
  border-radius: 9px;
  border: 1.5px solid var(--ils-border);
  flex-shrink: 0;
}
.ils-logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1;
}
.ils-logo-name {
  font-size: 20px;
  font-weight: 400;
  white-space: nowrap;
}
.ils-logo-name .n-i    { color: var(--ils-blue); }
.ils-logo-name .n-love { color: var(--ils-red); }
.ils-logo-name .n-s    { color: var(--ils-dark); }
.ils-logo-name .n-dot  { color: var(--ils-green); }
.ils-logo-name .n-com  { color: var(--ils-gray); font-size: 17px; }
.ils-logo-tag {
  font-size: 10px;
  color: var(--ils-gray);
  letter-spacing: .3px;
  margin-top: 3px;
  white-space: nowrap;
  font-weight: 400;
}

/* ── Nav menu (MenuService BEM output) ── */
.ils-nav .ocs-nav { display: contents; }

.ils-nav .ocs-nav__list {
  display: flex;
  align-items: center;
  flex: 1;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 0;
}

.ils-nav .ocs-nav__list > li { position: relative; }

.ils-nav .ocs-nav__list > li > a {
  display: flex;
  align-items: center;
  gap: 3px;
  padding: 0 14px;
  height: var(--ils-nav-h);
  font-size: 14px;
  font-weight: 500;
  color: var(--ils-gray);
  text-decoration: none;
  white-space: nowrap;
  border-bottom: 3px solid transparent;
  transition: color .15s, border-color .15s;
}
.ils-nav .ocs-nav__list > li > a:hover { color: var(--ils-dark); }
.ils-nav .ocs-nav__list > li.is-active > a {
  color: var(--ils-blue);
  border-bottom-color: var(--ils-blue);
}

/* Dropdown caret on parent items */
.ils-nav .ocs-nav__list > li.has-dropdown > a::after {
  content: ' ▾';
  font-size: 10px;
  opacity: .7;
  margin-left: 1px;
}

/* ── Dropdown panel ── */
.ils-nav .ocs-nav__list > li:hover .ocs-nav__dropdown { display: block; }

.ils-nav .ocs-nav__dropdown {
  display: none;
  position: absolute;
  top: calc(var(--ils-nav-h) - 1px);
  left: 0;
  background: #fff;
  border: 1px solid var(--ils-border);
  border-radius: 0 0 8px 8px;
  box-shadow: 0 8px 28px rgba(0,0,0,.12);
  min-width: 220px;
  padding: 8px 0;
  z-index: 300;
  list-style: none;
  margin: 0;
}
.ils-nav .ocs-nav__dropdown li a {
  display: block;
  padding: 10px 20px;
  font-size: 14px;
  color: var(--ils-dark);
  text-decoration: none;
  transition: background .1s;
}
.ils-nav .ocs-nav__dropdown li a:hover { background: var(--ils-surf); }

/* ── Nav right buttons ── */
.ils-nav-r {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
  flex-shrink: 0;
}
.ils-btn-ghost {
  padding: 8px 18px;
  font-size: 14px;
  font-weight: 500;
  color: var(--ils-blue);
  background: none;
  border: 1px solid var(--ils-border);
  border-radius: 4px;
  cursor: pointer;
  font-family: inherit;
  text-decoration: none;
  transition: background .15s, border-color .15s;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
}
.ils-btn-ghost:hover { background: #e8f0fe; border-color: var(--ils-blue); }

.ils-btn-solid {
  padding: 9px 20px;
  font-size: 14px;
  font-weight: 500;
  background: var(--ils-blue);
  color: #fff;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-family: inherit;
  text-decoration: none;
  transition: background .2s;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
}
.ils-btn-solid:hover { background: #1557b0; }

/* ── Hamburger button ── */
.ils-ham-btn {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  border-radius: 6px;
  transition: background .2s;
  flex-shrink: 0;
  position: relative;
  z-index: 201;
  margin-left: 10px;
}
.ils-ham-btn:hover { background: #f1f3f4; }
.ils-ham-btn span {
  display: block;
  width: 22px;
  height: 2px;
  background: #202124;
  border-radius: 2px;
  transition: all .3s;
}
.ils-ham-btn.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.ils-ham-btn.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.ils-ham-btn.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── Mobile menu overlay ── */
.ils-mob-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.25);
  z-index: 198;
  display: none;
}
.ils-mob-overlay.open { display: block; }

/* ── Mobile slide-down menu ── */
.ils-mob-menu {
  position: fixed;
  top: var(--ils-nav-h);
  left: 0;
  right: 0;
  background: #fff;
  border-bottom: 1px solid var(--ils-border);
  box-shadow: 0 8px 32px rgba(0,0,0,.12);
  z-index: 199;
  transform: translateY(-110%);
  transition: transform .3s cubic-bezier(.4,0,.2,1);
  max-height: calc(100vh - var(--ils-nav-h));
  overflow-y: auto;
}
.ils-mob-menu.open { transform: translateY(0); }

.ils-mob-section {
  padding: 8px 0 4px;
  border-bottom: 1px solid #f1f3f4;
}
.ils-mob-label {
  font-size: 11px;
  font-weight: 700;
  color: #9aa0a6;
  text-transform: uppercase;
  letter-spacing: .8px;
  padding: 8px 24px 4px;
}
.ils-mob-a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 13px 24px;
  font-size: 15px;
  font-weight: 500;
  color: var(--ils-dark);
  text-decoration: none;
  transition: background .15s;
}
.ils-mob-a:hover,
.ils-mob-a.act { background: #f8f9fa; color: var(--ils-blue); }

.ils-mob-cta-wrap { padding: 16px 20px 20px; }
.ils-mob-cta {
  display: block;
  background: var(--ils-blue);
  color: #fff;
  padding: 14px;
  border-radius: 10px;
  text-align: center;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  transition: background .2s;
}
.ils-mob-cta:hover { background: #1557b0; }

/* ═══════════════════════════════════════════════════════════════
   FOOTER
═══════════════════════════════════════════════════════════════ */
.ils-footer {
  background: var(--ils-surf);
  border-top: 1px solid var(--ils-border);
  padding: 52px 48px 28px;
  font-family: 'Google Sans', 'Roboto', sans-serif;
  color: var(--ils-dark);
}
.ils-footer-inner { max-width: 1200px; margin: 0 auto; }

/* 4-color top gradient bar */
.ils-footer-bar {
  height: 4px;
  background: linear-gradient(90deg, var(--ils-blue) 25%, var(--ils-red) 25% 50%, var(--ils-yellow) 50% 75%, var(--ils-green) 75%);
}

/* ── Footer top grid ── */
.ils-ft {
  display: grid;
  grid-template-columns: 2.2fr 1fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 36px;
}

/* ── Footer brand column ── */
.ils-f-logo {
  font-size: 19px;
  margin-bottom: 14px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: var(--ils-dark);
}
.ils-f-logo img {
  height: 32px;
  width: auto;
  border-radius: 7px;
  border: 1.5px solid var(--ils-border);
}
.ils-f-tag {
  font-size: 13px;
  color: var(--ils-gray);
  line-height: 1.65;
  max-width: 280px;
  margin-bottom: 22px;
}
.ils-f-tag a { color: var(--ils-blue); font-weight: 700; text-decoration: underline; }

/* ── Social icons ── */
.ils-f-soc { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.ils-f-soc-label { font-size: 14px; color: var(--ils-gray); margin-right: 4px; }
.ils-f-soc a {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: var(--ils-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: opacity .15s;
  flex-shrink: 0;
}
.ils-f-soc a:hover { opacity: .75; }
.ils-f-soc svg { display: block; }

/* ── Footer link columns ── */
.ils-fc h4 {
  font-size: 11px;
  font-weight: 600;
  color: var(--ils-dark);
  text-transform: uppercase;
  letter-spacing: .6px;
  margin-bottom: 14px;
}
.ils-fc a {
  display: block;
  font-size: 14px;
  color: var(--ils-gray);
  text-decoration: none;
  margin-bottom: 10px;
  transition: color .15s;
}
.ils-fc a:hover { color: var(--ils-blue); }

/* ── Footer bottom bar ── */
.ils-fb {
  border-top: 1px solid var(--ils-border);
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}
.ils-fb p { font-size: 12px; color: var(--ils-gray); }
.ils-fb a { color: var(--ils-blue); text-decoration: underline; }
.ils-fb-links { display: flex; gap: 22px; }
.ils-fb-links a {
  font-size: 12px;
  color: var(--ils-gray);
  text-decoration: none;
}
.ils-fb-links a:hover { color: var(--ils-blue); }

/* ── Google 4-dots ── */
.ils-g4 { display: flex; gap: 5px; align-items: center; flex-shrink: 0; }
.ils-g4d { width: 8px; height: 8px; border-radius: 50%; }

/* ── Legal strip below footer ── */
.ils-footer-legal {
  margin-top: 12px;
  padding: 12px 48px;
  border-top: 1px solid var(--ils-border);
  background: var(--ils-surf);
  font-size: 12px;
  color: #9aa0a6;
  line-height: 1.8;
  max-width: 100%;
}
.ils-footer-legal a { color: var(--ils-blue); font-weight: 700; text-decoration: underline; }

/* ═══════════════════════════════════════════════════════════════
   RESPONSIVE
═══════════════════════════════════════════════════════════════ */

/* ── Tablet ── */
@media (max-width: 960px) {
  .ils-ham-btn       { display: flex; }
  .ils-nav .ocs-nav  { display: none !important; }
  .ils-btn-ghost     { display: none !important; }

  .ils-ft { grid-template-columns: 1fr 1fr; }
  .ils-footer { padding-left: 20px; padding-right: 20px; }
  .ils-footer-legal { padding-left: 20px; padding-right: 20px; }
}

/* ── Mobile ── */
@media (max-width: 600px) {
  .ils-nav { padding: 0 16px; height: 58px; --ils-nav-h: 58px; }
  .ils-logo-name { font-size: 17px; }
  .ils-btn-solid { padding: 7px 14px; font-size: 13px; }

  .ils-mob-menu { top: 58px; }

  .ils-ft { grid-template-columns: 1fr 1fr; gap: 20px; }
  .ils-footer { padding: 20px 16px; }
  .ils-footer-legal { padding: 12px 16px; }
  .ils-fb { flex-direction: column; align-items: flex-start; gap: 10px; }
}

/* ── Touch UX ── */
button, a { -webkit-tap-highlight-color: transparent; }
