/* ==========================================================================
   Yashoda Solutions - shared site chrome (header, nav, footer)
   Scoped entirely to .site-* classes so it never leaks into the page
   bodies' .ys / .ys-* scoped styles. The .ys * reset does not reach these
   elements, so the chrome declares its own box-sizing and base font.
   Palette matches the page bodies: navy #0a1f44, mid-blue #1e5fa8,
   light-blue #7eb8f7, gold #FBB040, tints #f7faff / #f0f6ff, border #d0e4f7.
   ========================================================================== */

:root {
  --ys-navy: #0a1f44;
  --ys-blue: #1e5fa8;
  --ys-lightblue: #7eb8f7;
  --ys-gold: #fbb040;
  --ys-tint: #f7faff;
  --ys-tint2: #f0f6ff;
  --ys-border: #d0e4f7;
  --ys-text: #4a6580;
  --ys-header-h: 68px;
}

/* Document canvas. The page bodies (.ys) render their own sections on top of
   a plain white page, the way the WordPress theme used to provide. This sets
   only the document background/margins; it does not touch any .ys selector. */
html {
  background: #ffffff;
}
body {
  margin: 0;
  background: #ffffff;
}

.site-header,
.site-header *,
.site-footer,
.site-footer * {
  box-sizing: border-box;
  font-family: 'Segoe UI', Arial, sans-serif;
}

/* --------------------------------------------------------------------------
   HEADER
   -------------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: #ffffff;
  border-bottom: 1px solid var(--ys-border);
  box-shadow: 0 1px 0 rgba(10, 31, 68, 0.03), 0 6px 18px rgba(10, 31, 68, 0.05);
}

.site-header-inner {
  max-width: 1180px;
  margin: 0 auto;
  min-height: var(--ys-header-h);
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

/* Brand / logo */
.site-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  flex-shrink: 0;
}
.site-logo {
  display: block;
  height: 40px;
  width: auto;
}
.site-brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
}
.site-brand-name {
  font-size: 17px;
  font-weight: 800;
  letter-spacing: 0.2px;
  color: var(--ys-navy);
}
.site-brand-tag {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--ys-blue);
}

/* Nav cluster (links + CTA) */
.site-nav-wrap {
  display: flex;
  align-items: center;
  gap: 26px;
}
.site-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.site-nav a {
  position: relative;
  display: block;
  padding: 8px 12px;
  font-size: 14px;
  font-weight: 600;
  color: var(--ys-navy);
  text-decoration: none;
  border-radius: 5px;
  transition: color 0.15s ease, background 0.15s ease;
}
.site-nav a::after {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 2px;
  height: 2px;
  border-radius: 2px;
  background: var(--ys-gold);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.18s ease;
}
.site-nav a:hover {
  color: var(--ys-blue);
  background: var(--ys-tint2);
}
.site-nav a:hover::after {
  transform: scaleX(1);
}
.site-nav a[aria-current="page"] {
  color: var(--ys-blue);
}
.site-nav a[aria-current="page"]::after {
  transform: scaleX(1);
}

/* CTA button */
.site-cta {
  display: inline-block;
  background: var(--ys-gold);
  color: var(--ys-navy);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.2px;
  padding: 10px 20px;
  border-radius: 5px;
  text-decoration: none;
  white-space: nowrap;
  box-shadow: 0 2px 8px rgba(251, 176, 64, 0.35);
  transition: transform 0.12s ease, box-shadow 0.12s ease, background 0.12s ease;
}
.site-cta:hover {
  background: #ffbe57;
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(251, 176, 64, 0.45);
}

/* Hamburger toggle (hidden on desktop) */
.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 1px solid var(--ys-border);
  border-radius: 6px;
  background: #fff;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}
.nav-toggle .bar {
  display: block;
  width: 20px;
  height: 2px;
  border-radius: 2px;
  background: var(--ys-navy);
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.nav-toggle[aria-expanded="true"] .bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] .bar:nth-child(2) {
  opacity: 0;
}
.nav-toggle[aria-expanded="true"] .bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* --------------------------------------------------------------------------
   FOOTER
   -------------------------------------------------------------------------- */
.site-footer {
  background: var(--ys-navy);
  color: #c8dff7;
  padding: 52px 24px 28px;
}
.site-footer-inner {
  max-width: 1180px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 40px;
  align-items: start;
}
.site-footer-brand-name {
  font-size: 18px;
  font-weight: 800;
  color: #fff;
  margin: 0 0 8px;
}
.site-footer-tagline {
  font-size: 14px;
  line-height: 1.7;
  color: #9fbfe4;
  margin: 0 0 16px;
  max-width: 320px;
}
.site-footer-contact {
  display: inline-block;
  font-size: 14px;
  font-weight: 700;
  color: var(--ys-gold);
  text-decoration: none;
}
.site-footer-contact:hover {
  text-decoration: underline;
}
.site-footer-heading {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--ys-lightblue);
  margin: 0 0 14px;
}
.site-footer-nav {
  list-style: none;
  margin: 0;
  padding: 0;
  columns: 2;
  column-gap: 24px;
}
.site-footer-nav li {
  margin-bottom: 10px;
  break-inside: avoid;
}
.site-footer-nav a {
  font-size: 14px;
  color: #c8dff7;
  text-decoration: none;
  transition: color 0.15s ease;
}
.site-footer-nav a:hover {
  color: #fff;
}
.site-footer-bottom {
  max-width: 1180px;
  margin: 36px auto 0;
  padding-top: 20px;
  border-top: 1px solid rgba(126, 184, 247, 0.18);
  font-size: 12.5px;
  color: #8aa9cf;
}

/* --------------------------------------------------------------------------
   RESPONSIVE - collapse nav into hamburger drawer
   -------------------------------------------------------------------------- */
@media (max-width: 860px) {
  .nav-toggle {
    display: inline-flex;
  }
  .site-nav-wrap {
    position: absolute;
    top: var(--ys-header-h);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: #fff;
    border-bottom: 1px solid var(--ys-border);
    box-shadow: 0 12px 24px rgba(10, 31, 68, 0.08);
    padding: 8px 16px 18px;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
    transition: max-height 0.28s ease, opacity 0.2s ease, padding 0.28s ease;
  }
  .site-nav-wrap.open {
    max-height: 520px;
    opacity: 1;
    pointer-events: auto;
  }
  .site-nav {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    width: 100%;
  }
  .site-nav a {
    padding: 13px 10px;
    border-radius: 6px;
    font-size: 15px;
    border-bottom: 1px solid var(--ys-tint2);
  }
  .site-nav a::after {
    display: none;
  }
  .site-nav a[aria-current="page"] {
    background: var(--ys-tint2);
  }
  .site-cta {
    margin-top: 14px;
    text-align: center;
    padding: 13px 20px;
    font-size: 15px;
  }
}

@media (max-width: 560px) {
  .site-brand-tag {
    display: none;
  }
  .site-footer-inner {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .site-footer-nav {
    columns: 2;
  }
}
