/* ==========================================================================
   ABS Bright Solution — header.css
   Loaded on every page. Holds design tokens, base/reset, shared components
   (buttons, sections, cards, forms) and the site header.
   ========================================================================== */

:root {
  /* Brand palette pulled from the logo */
  --cyan: #00aee6;
  --cyan-deep: #0084b4;
  --cyan-wash: #e3f6fd;
  --yellow: #ffc20e;
  --yellow-deep: #e0a400;
  --yellow-wash: #fff6dd;

  /* Neutrals */
  --ink: #082b3a;
  --ink-soft: #2b4d5e;
  --slate: #56707e;
  --line: #d7e4ea;
  --paper: #f2f7f9;
  --white: #ffffff;

  /* Type */
  --display: "Rajdhani", "Segoe UI", sans-serif;
  --body: "Karla", "Segoe UI", Arial, sans-serif;

  /* Space + shape */
  --rail: clamp(1.1rem, 4vw, 3rem);
  --max: 1180px;
  --r-lg: 22px;
  --r-md: 12px;
  --r-sm: 6px;
  --shadow: 0 18px 40px -26px rgba(8, 43, 58, 0.55);
  --header-h: 82px;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }
}

body {
  margin: 0;
  background: var(--white);
  color: var(--ink-soft);
  font-family: var(--body);
  font-size: 1.03rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

a { color: var(--cyan-deep); }

h1, h2, h3, h4 {
  font-family: var(--display);
  color: var(--ink);
  line-height: 1.08;
  letter-spacing: 0.005em;
  margin: 0 0 0.5em;
  font-weight: 700;
}

h1 { font-size: clamp(2.5rem, 6vw, 4.2rem); }
h2 { font-size: clamp(1.9rem, 3.8vw, 2.9rem); }
h3 { font-size: clamp(1.25rem, 2vw, 1.55rem); }

p { margin: 0 0 1rem; max-width: 68ch; }

:focus-visible {
  outline: 3px solid var(--yellow-deep);
  outline-offset: 3px;
  border-radius: 3px;
}

.wrap {
  width: 100%;
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: var(--rail);
}

.band { padding: clamp(3.4rem, 7vw, 5.6rem) 0; }
.band--paper { background: var(--paper); }
.band--ink { background: var(--ink); color: #c9dde6; }
.band--ink h2, .band--ink h3 { color: var(--white); }

.band-head { max-width: 40rem; margin-bottom: 2.4rem; }
.band-head p { color: var(--slate); font-size: 1.08rem; }
.band--ink .band-head p { color: #9dbecd; }

.skip {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--yellow);
  color: var(--ink);
  padding: 0.7rem 1.1rem;
  z-index: 200;
  font-weight: 700;
}
.skip:focus { left: 0; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.08rem;
  letter-spacing: 0.02em;
  padding: 0.7rem 1.5rem;
  border-radius: 999px;
  border: 2px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.16s ease, background-color 0.16s ease, color 0.16s ease;
}
.btn:hover { transform: translateY(-2px); }

.btn--yellow { background: var(--yellow); color: var(--ink); }
.btn--yellow:hover { background: var(--yellow-deep); }

.btn--cyan { background: var(--cyan); color: var(--white); }
.btn--cyan:hover { background: var(--cyan-deep); }

.btn--ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--cyan);
}
.btn--ghost:hover { background: var(--cyan-wash); }

.btn--light { background: var(--white); color: var(--ink); }
.btn--light:hover { background: var(--cyan-wash); }

.btn--wide { width: 100%; }

/* ---------- Small shared pieces ---------- */
.tag {
  display: inline-block;
  font-family: var(--display);
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--cyan-deep);
  background: var(--cyan-wash);
  border-radius: 999px;
  padding: 0.18rem 0.8rem;
}
.tag--yellow { color: #8a6500; background: var(--yellow-wash); }

.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 1.6rem;
}

.field { display: block; margin-bottom: 1.1rem; }
.field span {
  display: block;
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--ink);
  margin-bottom: 0.3rem;
}
.field input,
.field select,
.field textarea {
  width: 100%;
  font: inherit;
  color: var(--ink);
  padding: 0.7rem 0.85rem;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  background: var(--white);
}
.field input:focus,
.field select:focus,
.field textarea:focus { border-color: var(--cyan); }
.field .err { color: #b3261e; font-size: 0.9rem; font-family: var(--body); font-weight: 400; margin-top: 0.25rem; }
.field.is-bad input,
.field.is-bad select,
.field.is-bad textarea { border-color: #b3261e; background: #fdf3f2; }

/* ==========================================================================
   Header
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.site-header.is-stuck { box-shadow: 0 10px 26px -22px rgba(8, 43, 58, 0.8); }

.header-bar {
  min-height: var(--header-h);
  display: flex;
  align-items: center;
  gap: 1.2rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  margin-right: auto;
}
.brand img { height: 52px; width: auto; }
.brand b {
  font-family: var(--display);
  font-size: 1.22rem;
  color: var(--ink);
  line-height: 1;
  display: block;
}
.brand small {
  display: block;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  color: var(--yellow-deep);
  font-weight: 700;
}
.brand-text { display: none; }

.nav ul {
  list-style: none;
  display: flex;
  gap: 1.5rem;
  margin: 0;
  padding: 0;
}
.nav a {
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.08rem;
  color: var(--ink-soft);
  text-decoration: none;
  padding: 0.35rem 0;
  border-bottom: 3px solid transparent;
}
.nav a:hover { color: var(--cyan-deep); }
.nav a[aria-current="page"] {
  color: var(--ink);
  border-bottom-color: var(--yellow);
}

.header-cta { display: flex; gap: 0.6rem; }
.header-cta .btn { padding: 0.55rem 1.2rem; font-size: 1rem; }

.burger {
  display: none;
  width: 46px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  background: var(--white);
  cursor: pointer;
  padding: 0;
}
.burger i {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--ink);
  margin: 4px auto;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.burger[aria-expanded="true"] i:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.burger[aria-expanded="true"] i:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] i:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 1040px) {
  .nav { display: none; }
  .burger { display: block; order: 3; }
  .header-cta { order: 2; }
  .header-cta .btn { font-size: 0.95rem; padding: 0.5rem 1rem; }

  .nav.is-open {
    display: block;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    background: var(--white);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
    padding: 0.6rem var(--rail) 1.4rem;
  }
  .nav.is-open ul { flex-direction: column; gap: 0; }
  .nav.is-open a {
    display: block;
    padding: 0.85rem 0;
    border-bottom: 1px solid var(--line);
    font-size: 1.15rem;
  }
  .nav.is-open a[aria-current="page"] { color: var(--cyan-deep); }
  .nav.is-open .nav-cta { display: grid; gap: 0.6rem; margin-top: 1.1rem; }
}

.nav-cta { display: none; }

@media (max-width: 560px) {
  .brand img { height: 42px; }
  .header-cta .btn--ghost { display: none; }
}
