/* BJR Infotech — shared styles */
:root {
  --navy: #0b2545;
  --navy-light: #13395e;
  --blue: #1467c7;
  --accent: #f5a623;
  --bg: #f7f9fc;
  --text: #28303d;
  --muted: #5b6676;
  --white: #ffffff;
  --border: #e3e8ef;
  --radius: 10px;
  --shadow: 0 6px 20px rgba(11, 37, 69, 0.08);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.65;
}

a { color: inherit; text-decoration: none; }

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

.container {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ---------- Header ---------- */
.site-header {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  max-width: 1140px;
  margin: 0 auto;
}

.logo {
  font-family: 'Montserrat', "Segoe UI", sans-serif;
  font-weight: 600;
  font-size: 1.5rem;
  color: #222;
}

nav.main-nav ul {
  list-style: none;
  display: flex;
  gap: 30px;
  margin: 0;
  padding: 0;
}

nav.main-nav a {
  font-family: 'Montserrat', "Segoe UI", sans-serif;
  font-size: 0.95rem;
  font-weight: 500;
  color: #333;
  padding: 6px 2px;
  border-bottom: 2px solid transparent;
  transition: color 0.2s, border-color 0.2s;
}

nav.main-nav a:hover,
nav.main-nav a.active {
  color: #000;
  border-bottom-color: #000;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.btn {
  display: inline-block;
  padding: 10px 20px;
  border-radius: 6px;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  border: none;
  transition: transform 0.15s, box-shadow 0.15s, background 0.2s;
}

.btn-primary {
  background: var(--blue);
  color: var(--white);
}
.btn-primary:hover { background: var(--navy); }

.btn-outline {
  background: transparent;
  border: 1px solid var(--blue);
  color: var(--blue);
}
.btn-outline:hover { background: var(--blue); color: var(--white); }

.btn-accent {
  background: var(--accent);
  color: var(--navy);
}
.btn-accent:hover { transform: translateY(-1px); box-shadow: var(--shadow); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.nav-toggle span {
  width: 24px;
  height: 2px;
  background: var(--navy);
  display: block;
}

/* ---------- Hero slider ---------- */
.hero-slider {
  position: relative;
  width: 100%;
  overflow: hidden;
  background: #000;
}

.hero-slider .slides {
  position: relative;
  width: 100%;
  aspect-ratio: 700 / 300;
  max-height: 560px;
}

.hero-slider .slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.6s ease;
}

.hero-slider .slide.active { opacity: 1; }

.hero-slider .slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-slider .slide-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255,255,255,0.85);
  color: var(--navy);
  border: none;
  font-size: 1.3rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 5;
}
.hero-slider .slide-nav:hover { background: var(--white); }
.hero-slider .slide-prev { left: 16px; }
.hero-slider .slide-next { right: 16px; }

.hero-slider .slide-dots {
  position: absolute;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 5;
}
.hero-slider .slide-dots button {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: none;
  background: rgba(255,255,255,0.6);
  cursor: pointer;
  padding: 0;
}
.hero-slider .slide-dots button.active { background: var(--white); }

.page-hero {
  background: linear-gradient(135deg, var(--navy), var(--blue));
  color: var(--white);
  padding: 52px 20px;
  text-align: center;
}
.page-hero h1 { margin: 0 0 10px; font-size: 2rem; }
.page-hero p { color: #dbe6f3; max-width: 640px; margin: 0 auto; }
.breadcrumb {
  font-size: 0.85rem;
  color: #c3d4ea;
  margin-top: 10px;
}
.breadcrumb a { color: var(--accent); }

/* ---------- Sections ---------- */
section { padding: 60px 0; }
section.alt { background: var(--white); }

.section-head { text-align: center; max-width: 700px; margin: 0 auto 40px; }
.section-head .eyebrow {
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--blue);
}
.section-head h2 { font-size: 1.9rem; margin: 10px 0 12px; color: var(--navy); }
.section-head p { color: var(--muted); }

.grid {
  display: grid;
  gap: 24px;
}
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
}
.card h3 { color: var(--navy); margin-top: 0; }
.card .icon {
  width: 46px;
  height: 46px;
  border-radius: 10px;
  background: #eaf1fc;
  color: var(--blue);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  margin-bottom: 16px;
}

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

ul.check-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
ul.check-list li {
  position: relative;
  padding-left: 28px;
  margin-bottom: 12px;
  color: var(--text);
}
ul.check-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--blue);
  font-weight: 700;
  background: #eaf1fc;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
}

.timeline {
  list-style: none;
  padding: 0;
  margin: 0;
  counter-reset: step;
}
.timeline li {
  counter-increment: step;
  position: relative;
  padding: 0 0 32px 52px;
  border-left: 2px solid var(--border);
}
.timeline li:last-child { border-left: 2px solid transparent; }
.timeline li::before {
  content: counter(step);
  position: absolute;
  left: -19px;
  top: 0;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--blue);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
}
.timeline h4 { margin: 0 0 6px; color: var(--navy); }
.timeline p { margin: 0; color: var(--muted); }

.badge {
  display: inline-block;
  background: #eaf1fc;
  color: var(--blue);
  font-size: 0.78rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 20px;
  margin-bottom: 14px;
}

table.detail-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
table.detail-table th, table.detail-table td {
  text-align: left;
  padding: 14px 18px;
  border-bottom: 1px solid var(--border);
}
table.detail-table th { background: var(--navy); color: var(--white); width: 32%; }

.stat-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  text-align: center;
}
.stat-row .stat h3 { font-size: 2rem; color: var(--blue); margin: 0; }
.stat-row .stat p { margin: 4px 0 0; color: var(--muted); font-size: 0.9rem; }

.cta-band {
  background: linear-gradient(135deg, var(--navy), var(--blue));
  color: var(--white);
  padding: 50px 20px;
  text-align: center;
}
.cta-band h2 { margin: 0 0 10px; }
.cta-band p { color: #dbe6f3; margin-bottom: 24px; }

/* ---------- Contact form ---------- */
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.form-grid .full { grid-column: 1 / -1; }
label { display: block; font-size: 0.85rem; font-weight: 600; margin-bottom: 6px; color: var(--navy); }
input, select, textarea {
  width: 100%;
  padding: 11px 13px;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 0.95rem;
  font-family: inherit;
  background: var(--white);
}
input:focus, select:focus, textarea:focus { outline: 2px solid var(--blue); outline-offset: 1px; }
.form-note { font-size: 0.82rem; color: var(--muted); margin-top: 10px; }
.form-success {
  display: none;
  background: #e8f6ec;
  color: #1f7a3b;
  padding: 12px 16px;
  border-radius: 8px;
  margin-bottom: 18px;
  font-size: 0.9rem;
}

.office-card { display: flex; gap: 16px; }
.office-card .icon { flex-shrink: 0; }

/* ---------- Footer ---------- */
footer.site-footer {
  background: var(--navy);
  color: #c3d4ea;
  padding: 50px 0 20px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.4fr;
  gap: 32px;
  padding-bottom: 30px;
  border-bottom: 1px solid rgba(255,255,255,0.12);
}
.footer-grid h4 { color: var(--white); margin: 0 0 14px; font-size: 1rem; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid li { margin-bottom: 10px; font-size: 0.9rem; }
.footer-grid a:hover { color: var(--white); }
.footer-brand p { font-size: 0.9rem; color: #9fb4ce; max-width: 300px; }
.social-row { display: flex; gap: 10px; margin-top: 14px; }
.social-row a {
  width: 34px; height: 34px; border-radius: 50%;
  background: rgba(255,255,255,0.1);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.9rem;
}
.social-row a:hover { background: var(--accent); color: var(--navy); }
.footer-bottom {
  text-align: center;
  padding-top: 18px;
  font-size: 0.82rem;
  color: #8ba2bf;
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .two-col { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .stat-row { grid-template-columns: repeat(2, 1fr); gap: 24px; }
}

@media (max-width: 760px) {
  nav.main-nav {
    position: fixed;
    top: 66px;
    left: 0;
    right: 0;
    background: var(--white);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.25s ease;
  }
  nav.main-nav.open { max-height: 420px; }
  nav.main-nav ul {
    flex-direction: column;
    gap: 0;
    padding: 10px 20px;
  }
  nav.main-nav li { border-bottom: 1px solid var(--border); }
  nav.main-nav a { display: block; padding: 14px 0; }
  .nav-toggle { display: flex; }
  .header-actions .btn-outline { display: none; }
  .hero h1 { font-size: 1.9rem; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .stat-row { grid-template-columns: repeat(2, 1fr); }
}
