/* ==========================================================================
   DBR Human Resource and Services — Core Styles
   Palette: Royal Blue #0F52BA | White #FFFFFF | Light Gray #F8F9FA
            Orange #FF8C00 (accents only) | Dark Gray #333333
   ========================================================================== */

:root {
  --blue: #0f52ba;
  --blue-dark: #0b3d8c;
  --white: #ffffff;
  --gray-bg: #f8f9fa;
  --orange: #ff8c00;
  --text: #333333;
  --muted: #5f6b7a;
  --border: #e6e9ee;
  --shadow: 0 10px 30px rgba(15, 82, 186, 0.08);
  --shadow-lg: 0 18px 45px rgba(15, 82, 186, 0.15);
  --radius: 14px;
  --radius-lg: 22px;
  --wrap: 1180px;
  --transition: all 0.3s ease;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: "Poppins", Arial, Helvetica, sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.7;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: var(--blue); text-decoration: none; transition: var(--transition); }
ul { list-style: none; }

h1, h2, h3, h4 { line-height: 1.25; font-weight: 700; color: #16202e; }
h1 { font-size: 3rem; }
h2 { font-size: 2.1rem; }
h3 { font-size: 1.2rem; }
p { color: var(--muted); }

/* Layout helpers ---------------------------------------------------------- */
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 28px; }
.section { padding: 112px 0; }
.section--gray { background: var(--gray-bg); }
.section-head { max-width: 720px; margin: 0 auto 64px; text-align: center; }

.section-head p { margin-top: 14px; }

.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--orange);
  margin-bottom: 12px;
}

/* Buttons ----------------------------------------------------------------- */
.btn {
  display: inline-block;
  padding: 14px 30px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: var(--transition);
}
.btn--primary { background: var(--blue); color: var(--white); }
.btn--primary:hover { background: var(--orange); color: var(--white); transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.btn--ghost { background: transparent; color: var(--white); border-color: rgba(255, 255, 255, 0.75); }
.btn--ghost:hover { background: var(--orange); border-color: var(--orange); transform: translateY(-2px); }
.btn--outline { background: transparent; color: var(--blue); border-color: var(--blue); }
.btn--outline:hover { background: var(--blue); color: var(--white); }

:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; }

/* Header / Navigation ------------------------------------------------------ */
.header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  background: transparent;
  transition: var(--transition);
}
.header.is-solid {
  background: var(--white);
  box-shadow: 0 6px 24px rgba(20, 35, 60, 0.08);
}
.nav { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 14px 0; min-height: 76px; }
.brand { display: flex; align-items: center; gap: 12px; min-width: 0; }
.brand img { height: 46px; width: auto; }
.brand__text { display: none; }

.nav__menu { display: flex; align-items: center; gap: 8px; }
.nav__menu a {
  position: relative;
  padding: 10px 16px;
  border-radius: 999px;
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--white);
}
.header.is-solid .nav__menu a { color: var(--text); }
.nav__menu a:hover { color: white; }
.nav__menu a.is-active { color: var(--orange); }
.nav__menu a.is-active::after {
  content: "";
  position: absolute;
  left: 16px; right: 16px; bottom: 2px;
  height: 2px;
  border-radius: 2px;
  background: var(--orange);
}
.nav__cta { margin-left: 8px;color:white !important; }

.nav__toggle {
  display: none;
  width: 46px; height: 46px;
  border: 0; border-radius: 12px;
  background: rgba(255, 255, 255, 0.15);
  cursor: pointer;
}
.header.is-solid .nav__toggle { background: var(--gray-bg); }
.nav__toggle span {
  display: block;
  width: 22px; height: 2px;
  margin: 4px auto;
  background: var(--white);
  border-radius: 2px;
  transition: var(--transition);
}
.header.is-solid .nav__toggle span { background: var(--text); }

/* Hero slideshow ----------------------------------------------------------- */
.hero { position: relative; height: 96vh; min-height: 640px; overflow: hidden; }
.slide {
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0; visibility: hidden;
  transition: opacity 1s ease;
}
.slide.is-active { opacity: 1; visibility: visible; }
.slide::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(4, 12, 26, 0.72), rgba(6, 17, 35, 0.62) 45%, rgba(10, 45, 110, 0.7));
}
.slide__inner {
  position: relative; z-index: 2;
  height: 100%;
  display: flex; flex-direction: column; justify-content: center; align-items: center;
  text-align: center;
  max-width: 900px;
}
.slide__inner h1, .slide__inner p { color: var(--white); }
.slide__inner h1 { font-size: clamp(2.1rem, 5vw, 3.6rem); line-height: 1.15; text-shadow: 0 4px 24px rgba(0,0,0,.35); }
.slide__inner p { color: rgba(255, 255, 255, 0.92); margin: 22px 0 40px; font-size: clamp(1rem, 1.6vw, 1.2rem); }
.slide__actions { display: flex; flex-wrap: wrap; gap: 16px; justify-content: center; }


.hero__arrow {
  position: absolute; top: 50%; transform: translateY(-50%);
  z-index: 5;
  width: 52px; height: 52px;
  border: 0; border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
  color: var(--white);
  font-size: 1.4rem; line-height: 1;
  cursor: pointer;
  transition: var(--transition);
}
.hero__arrow:hover { background: var(--orange); }
.hero__arrow--prev { left: 24px; }
.hero__arrow--next { right: 24px; }

.hero__dots {
  position: absolute; bottom: 34px; left: 0; right: 0;
  z-index: 5;
  display: flex; justify-content: center; gap: 10px;
}
.hero__dots button {
  width: 12px; height: 12px; padding: 0;
  border: 0; border-radius: 50%;
  background: rgba(255, 255, 255, 0.45);
  cursor: pointer; transition: var(--transition);
}
.hero__dots button.is-active { background: var(--orange); width: 30px; border-radius: 999px; }

/* Page banner (inner pages) ------------------------------------------------ */
.banner {
  padding: 190px 0 90px;
  background: linear-gradient(100deg, #091830, var(--blue));
  color: var(--white);
}
.banner h1 { color: var(--white); font-size: 2.6rem; }
.banner p { color: rgba(255, 255, 255, 0.85); max-width: 640px; margin-top: 12px; }

/* Split section ------------------------------------------------------------ */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.split__media img {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  width: 100%; height: 440px; object-fit: cover;
}
.split__body p + p { margin-top: 16px; }
.split__body h2 { margin-bottom: 18px; }

/* Cards -------------------------------------------------------------------- */
.grid { display: grid; gap: 26px; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }

.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-left: 4px solid var(--blue);
  border-radius: var(--radius);
  padding: 30px;
  box-shadow: var(--shadow);
  transition: var(--transition);
}
.card:hover { transform: translateY(-8px); border-left-color: var(--orange); box-shadow: var(--shadow-lg); }
.card h3 { margin-bottom: 8px; }
.card p { font-size: 0.94rem; }

.card__logo {
  width: 64px; height: 64px;
  border-radius: 14px;
  background: var(--gray-bg);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 18px;
  overflow: hidden;
}
.card__logo img { width: 100%; height: 100%; object-fit: cover; }

.icon {
  width: 56px; height: 56px;
  border-radius: 16px;
  background: rgba(15, 82, 186, 0.09);
  color: var(--blue);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 18px;
  transition: var(--transition);
}
.icon svg { width: 26px; height: 26px; }
.card:hover .icon { background: rgba(255, 140, 0, 0.14); color: var(--orange); }

/* Vision band -------------------------------------------------------------- */
.vision {
  background: linear-gradient(100deg, var(--blue), var(--blue-dark));
  color: var(--white);
  border-radius: var(--radius-lg);
  padding: 60px;
  text-align: center;
  box-shadow: var(--shadow-lg);
}
.vision h2, .vision p { color: var(--white); }
.vision p { max-width: 760px; margin: 16px auto 0; }
.vision .icon { margin: 0 auto 22px; background: rgba(255, 255, 255, 0.16); color: var(--white); }

/* Stats -------------------------------------------------------------------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px; text-align: center; }
.stat__num { font-size: 2.6rem; font-weight: 700; color: var(--blue); }
.stat__num span { color: var(--orange); }
.stat p { font-size: 0.9rem; text-transform: uppercase; letter-spacing: 0.08em; }

/* Contact ------------------------------------------------------------------ */
.contact-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 40px; align-items: start; }
.form-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px;
  box-shadow: var(--shadow);
}
.field { margin-bottom: 18px; }
.field label { display: block; font-size: 0.88rem; font-weight: 600; margin-bottom: 7px; }
.field input, .field textarea {
  width: 100%;
  padding: 13px 16px;
  font: inherit;
  color: var(--text);
  background: var(--gray-bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  transition: var(--transition);
}
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus, .field textarea:focus { border-color: var(--blue); background: var(--white); outline: none; }
.field.has-error input, .field.has-error textarea { border-color: #d33; }
.error { display: none; color: #d33; font-size: 0.82rem; margin-top: 6px; }
.field.has-error .error { display: block; }
.form-note { display: none; margin-top: 16px; padding: 14px 18px; border-radius: 12px; background: rgba(15, 82, 186, 0.08); color: var(--blue); font-weight: 600; }

.map-embed {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}
.map-embed iframe { width: 100%; height: 380px; border: 0; display: block; }

.socials { display: flex; gap: 12px; flex-wrap: wrap; }
.socials a {
  width: 48px; height: 48px;
  border-radius: 14px;
  background: var(--gray-bg);
  color: var(--blue);
  display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--border);
}
.socials a:hover { background: var(--orange); color: var(--white); border-color: var(--orange); transform: translateY(-3px); }
.socials svg { width: 20px; height: 20px; }

/* Footer ------------------------------------------------------------------- */
.footer { background: #0a1626; color: rgba(255, 255, 255, 0.72); padding: 70px 0 0; }
.footer h4 { color: var(--white); font-size: 1rem; margin-bottom: 18px; }
.footer p, .footer li, .footer a { color: rgba(255, 255, 255, 0.72); font-size: 0.92rem; }
.footer a:hover { color: var(--orange); }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1.2fr; gap: 40px; }
.footer__brand img { height: 46px; background: var(--white); padding: 8px 12px; border-radius: 12px; }
.footer li + li { margin-top: 10px; }
.footer__bottom {
  margin-top: 56px;
  padding: 22px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  text-align: center;
  font-size: 0.86rem;
}
