/* =========================================================
   LB International Vocational Training Institute Pvt. Ltd.
   Main stylesheet
   ========================================================= */

:root {
  --navy: #0d2a4a;
  --navy-deep: #081c33;
  --orange: #f28c1b;
  --orange-dark: #d9740a;
  --ink: #1f2933;
  --muted: #5f6b7a;
  --line: #e3e8ee;
  --bg: #ffffff;
  --bg-soft: #f4f7fa;
  --radius: 10px;
  --shadow: 0 10px 30px rgba(13, 42, 74, 0.10);
  --container: 1180px;
  --font-head: "Poppins", "Segoe UI", Arial, sans-serif;
  --font-body: "Inter", "Segoe UI", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  font-size: 16px;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4, h5, h6 { font-family: var(--font-head); line-height: 1.25; margin: 0 0 .6em; color: var(--navy); }
p { margin: 0 0 1em; }
ul { margin: 0; padding: 0; list-style: none; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 20px; }
.section { padding: 90px 0; }
.section-soft { background: var(--bg-soft); }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 50px; }
.section-head .eyebrow,
.eyebrow {
  display: inline-block; font-size: 13px; font-weight: 600; letter-spacing: 2px;
  text-transform: uppercase; color: var(--orange); margin-bottom: 10px;
}
.section-head h2 { font-size: clamp(28px, 4vw, 40px); }
.section-head p { color: var(--muted); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 28px; border-radius: 50px; font-weight: 600; font-size: 15px;
  letter-spacing: .5px; border: 2px solid transparent; cursor: pointer;
  transition: all .25s ease; font-family: var(--font-head);
}
.btn-primary { background: var(--orange); color: #fff; }
.btn-primary:hover { background: var(--orange-dark); transform: translateY(-2px); }
.btn-outline { border-color: #fff; color: #fff; background: transparent; }
.btn-outline:hover { background: #fff; color: var(--navy); }
.btn-navy { background: var(--navy); color: #fff; }
.btn-navy:hover { background: var(--navy-deep); }

/* ---------- Top bar ---------- */
.topbar { background: var(--navy-deep); color: #c9d6e4; font-size: 14px; }
.topbar .container { display: flex; justify-content: space-between; align-items: center; padding-top: 9px; padding-bottom: 9px; gap: 16px; flex-wrap: wrap; }
.topbar span { display: inline-flex; align-items: center; gap: 8px; }
.topbar a:hover { color: var(--orange); }
.topbar svg { width: 15px; height: 15px; fill: var(--orange); }

/* ---------- Header / Nav ---------- */
.header {
  position: sticky; top: 0; z-index: 100; background: #fff;
  box-shadow: 0 2px 14px rgba(0,0,0,.06); transition: padding .25s;
}
.header .container { display: flex; align-items: center; justify-content: space-between; height: 80px; }
.logo { display: flex; align-items: center; gap: 12px; }
.logo img { height: 52px; width: auto; }
.logo-text strong { display: block; font-family: var(--font-head); font-size: 20px; color: var(--navy); line-height: 1.1; }
.logo-text small { font-size: 11px; color: var(--muted); letter-spacing: 1px; text-transform: uppercase; }

.nav ul { display: flex; gap: 6px; align-items: center; }
.nav a {
  display: block; padding: 10px 16px; font-weight: 500; font-size: 15px;
  color: var(--navy); border-radius: 6px; transition: color .2s;
  position: relative;
}
.nav a::after {
  content: ""; position: absolute; left: 16px; right: 16px; bottom: 4px; height: 2px;
  background: var(--orange); transform: scaleX(0); transition: transform .25s;
}
.nav a:hover::after, .nav a.active::after { transform: scaleX(1); }
.nav a.active, .nav a:hover { color: var(--orange); }
.nav .btn { margin-left: 10px; padding: 11px 22px; }
.nav .btn::after { display: none; }
.nav .btn:hover { color: #fff; }

.menu-toggle {
  display: none; background: none; border: 0; cursor: pointer; padding: 8px;
  width: 44px; height: 44px;
}
.menu-toggle span { display: block; height: 2px; background: var(--navy); margin: 6px 0; transition: .3s; }
.menu-toggle.open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.menu-toggle.open span:nth-child(2) { opacity: 0; }
.menu-toggle.open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ---------- Hero slider ---------- */
.hero { position: relative; height: calc(100vh - 118px); min-height: 560px; max-height: 780px; overflow: hidden; color: #fff; }
.hero-slide {
  position: absolute; inset: 0; background-size: cover; background-position: center;
  opacity: 0; transform: scale(1.06); transition: opacity 1.1s ease, transform 6s ease;
}
.hero-slide.active { opacity: 1; transform: scale(1); }
.hero::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(8,28,51,.92) 0%, rgba(8,28,51,.65) 55%, rgba(8,28,51,.25) 100%);
}
.hero-content { position: relative; z-index: 2; height: 100%; display: flex; align-items: center; }
.hero-content .inner { max-width: 680px; }
.hero h1 { color: #fff; font-size: clamp(36px, 6vw, 64px); font-weight: 800; letter-spacing: 1px; }
.hero h1 span { color: var(--orange); display: block; }
.hero p { font-size: 18px; color: #d9e3ee; max-width: 600px; margin-bottom: 30px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-dots { position: absolute; z-index: 3; bottom: 110px; left: 50%; transform: translateX(-50%); display: flex; gap: 10px; }
.hero-dots button { width: 12px; height: 12px; border-radius: 50%; border: 2px solid #fff; background: transparent; cursor: pointer; padding: 0; }
.hero-dots button.active { background: var(--orange); border-color: var(--orange); }

/* Highlights strip */
.highlights { position: relative; z-index: 5; margin-top: -60px; }
.highlights .grid {
  display: grid; grid-template-columns: repeat(5, 1fr); background: #fff;
  border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden;
}
.highlight { padding: 26px 16px; text-align: center; border-right: 1px solid var(--line); transition: background .25s; }
.highlight:last-child { border-right: 0; }
.highlight:hover { background: var(--navy); }
.highlight:hover h6, .highlight:hover svg { color: #fff; fill: var(--orange); }
.highlight svg { width: 40px; height: 40px; fill: var(--navy); margin: 0 auto 10px; transition: fill .25s; }
.highlight h6 { margin: 0; font-size: 14px; letter-spacing: 1px; text-transform: uppercase; transition: color .25s; }

/* ---------- Feature cards ---------- */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.feature { background: #fff; padding: 36px 30px; border-radius: var(--radius); box-shadow: var(--shadow); border-top: 4px solid var(--orange); transition: transform .3s; }
.feature:hover { transform: translateY(-6px); }
.feature .icon, .card .icon { width: 58px; height: 58px; border-radius: 12px; background: rgba(242,140,27,.12); display: grid; place-items: center; margin-bottom: 18px; }
.feature .icon svg, .card .icon svg { width: 30px; height: 30px; fill: var(--orange); }
.feature h4 { font-size: 19px; text-transform: uppercase; letter-spacing: .5px; }
.feature p { color: var(--muted); margin: 0; }

/* ---------- About / Welcome ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.split-media { position: relative; }
.split-media img { border-radius: var(--radius); box-shadow: var(--shadow); width: 100%; }
.split-media .badge {
  position: absolute; bottom: -24px; right: -10px; background: var(--orange); color: #fff;
  padding: 20px 26px; border-radius: var(--radius); box-shadow: var(--shadow); font-family: var(--font-head);
}
.split-media .badge strong { display: block; font-size: 17px; }
.split-media .badge small { font-size: 13px; opacity: .9; }
.split-body h2 { font-size: clamp(28px, 3.6vw, 38px); }
.split-body p { color: var(--muted); }
.check-list li { position: relative; padding-left: 30px; margin-bottom: 10px; font-weight: 500; }
.check-list li::before {
  content: ""; position: absolute; left: 0; top: 5px; width: 18px; height: 18px; border-radius: 50%;
  background: var(--orange) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23fff' d='M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z'/%3E%3C/svg%3E") center/12px no-repeat;
}

/* ---------- Stats ---------- */
.stats { background: var(--navy) url("../images/pattern.svg") center/cover; color: #fff; padding: 70px 0; }
.stats .grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; text-align: center; }
.stat strong { display: block; font-family: var(--font-head); font-size: 46px; color: var(--orange); line-height: 1; }
.stat span { font-size: 15px; color: #c9d6e4; letter-spacing: 1px; text-transform: uppercase; }

/* ---------- Courses ---------- */
.courses { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.course {
  position: relative; border-radius: var(--radius); overflow: hidden; background: #fff;
  box-shadow: var(--shadow); transition: transform .3s;
}
.course:hover { transform: translateY(-6px); }
.course-img { aspect-ratio: 4 / 3; overflow: hidden; background: var(--bg-soft); }
.course-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.course:hover .course-img img { transform: scale(1.08); }
.course-body { padding: 18px 20px 22px; }
.course-body h5 { font-size: 17px; margin-bottom: 6px; }
.course-body a { color: var(--orange); font-weight: 600; font-size: 14px; }
.course-body a:hover { text-decoration: underline; }

/* ---------- Process ---------- */
.process-steps { display: flex; justify-content: center; gap: 0; margin-bottom: 50px; flex-wrap: wrap; }
.step-pill { display: flex; align-items: center; gap: 12px; font-family: var(--font-head); font-weight: 700; color: var(--navy); letter-spacing: 1px; }
.step-pill .num { width: 48px; height: 48px; border-radius: 50%; background: var(--orange); color: #fff; display: grid; place-items: center; font-size: 20px; }
.step-line { width: 90px; height: 2px; background: repeating-linear-gradient(90deg, var(--orange) 0 8px, transparent 8px 14px); margin: 0 18px; align-self: center; }
.process-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.process-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 32px 28px; position: relative; transition: box-shadow .3s, border-color .3s; }
.process-card:hover { box-shadow: var(--shadow); border-color: transparent; }
.process-card h5 { font-size: 19px; }
.process-card p { color: var(--muted); }
.tag { display: inline-block; font-size: 12px; font-weight: 600; letter-spacing: 1px; text-transform: uppercase; background: rgba(13,42,74,.08); color: var(--navy); padding: 5px 12px; border-radius: 30px; }

/* ---------- Why us ---------- */
.why-list .why-item { display: flex; gap: 20px; margin-bottom: 28px; }
.why-item .n { flex: 0 0 56px; height: 56px; border-radius: 12px; background: var(--navy); color: var(--orange); font-family: var(--font-head); font-weight: 700; font-size: 20px; display: grid; place-items: center; }
.why-item h5 { font-size: 18px; margin-bottom: 4px; }
.why-item p { color: var(--muted); margin: 0; }

/* ---------- CTA ---------- */
.cta { background: linear-gradient(120deg, var(--navy-deep), var(--navy)); color: #fff; padding: 80px 0; position: relative; overflow: hidden; }
.cta::before { content: ""; position: absolute; right: -120px; top: -120px; width: 380px; height: 380px; border-radius: 50%; background: rgba(242,140,27,.18); }
.cta .container { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 30px; flex-wrap: wrap; }
.cta h2 { color: #fff; font-size: clamp(26px, 3.4vw, 36px); margin-bottom: 10px; }
.cta p { color: #c9d6e4; max-width: 640px; margin: 0; }

/* ---------- Page banner (inner pages) ---------- */
.page-banner { background: var(--navy) url("../images/banner.svg") center/cover; color: #fff; padding: 90px 0 80px; text-align: center; }
.page-banner h1 { color: #fff; font-size: clamp(32px, 5vw, 48px); }
.breadcrumb { color: #c9d6e4; font-size: 15px; }
.breadcrumb a { color: var(--orange); }

/* ---------- Trades detail ---------- */
.trade-detail { display: grid; grid-template-columns: 1fr 1.2fr; gap: 50px; align-items: center; padding: 50px 0; border-bottom: 1px solid var(--line); scroll-margin-top: 100px; }
.trade-detail:last-child { border-bottom: 0; }
.trade-detail:nth-child(even) .trade-media { order: 2; }
.trade-media img { border-radius: var(--radius); box-shadow: var(--shadow); width: 100%; }
.trade-meta { display: flex; gap: 12px; flex-wrap: wrap; margin: 16px 0 20px; }
.trade-meta span { background: var(--bg-soft); border: 1px solid var(--line); padding: 6px 14px; border-radius: 30px; font-size: 14px; color: var(--navy); font-weight: 500; }

/* ---------- Values / mission cards ---------- */
.cards-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.card { background: #fff; border-radius: var(--radius); padding: 34px 30px; box-shadow: var(--shadow); }
.card h4 { font-size: 20px; }
.card p { color: var(--muted); margin: 0; }

/* ---------- Forms ---------- */
.form-card { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 40px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-grid .full { grid-column: 1 / -1; }
.field label { display: block; font-weight: 600; font-size: 14px; color: var(--navy); margin-bottom: 6px; }
.field label .req { color: #d64545; }
.field label .opt { color: var(--muted); font-weight: 400; font-size: 12px; }
.field input, .field select, .field textarea {
  width: 100%; padding: 13px 16px; border: 1px solid var(--line); border-radius: 8px;
  font: inherit; font-size: 15px; background: #fbfcfd; transition: border-color .2s, box-shadow .2s;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--orange); box-shadow: 0 0 0 3px rgba(242,140,27,.15); }
.field textarea { min-height: 130px; resize: vertical; }
.field input[type="file"] { padding: 10px; background: #fff; }
.field .error { color: #d64545; font-size: 13px; margin-top: 4px; display: none; }
.field.invalid input, .field.invalid select, .field.invalid textarea { border-color: #d64545; }
.field.invalid .error { display: block; }
.form-note { font-size: 13px; color: var(--muted); margin-top: 14px; }
.form-msg { display: none; margin-top: 18px; padding: 14px 18px; border-radius: 8px; font-weight: 500; }
.form-msg.success { display: block; background: #e7f6ec; color: #1d7a3d; }
.form-msg.error { display: block; background: #fdecec; color: #b42f2f; }

/* Contact info */
.contact-wrap { display: grid; grid-template-columns: 1fr 1.4fr; gap: 40px; align-items: start; }
.info-list li { display: flex; gap: 16px; padding: 22px 0; border-bottom: 1px solid var(--line); }
.info-list li:last-child { border-bottom: 0; }
.info-list .ic { flex: 0 0 50px; height: 50px; border-radius: 50%; background: var(--orange); display: grid; place-items: center; }
.info-list .ic svg { width: 22px; height: 22px; fill: #fff; }
.info-list h6 { margin: 0 0 4px; font-size: 16px; }
.info-list p { margin: 0; color: var(--muted); }
.map-frame { border: 0; width: 100%; height: 380px; border-radius: var(--radius); display: block; }

/* ---------- Footer ---------- */
.footer { background: var(--navy-deep); color: #b5c3d3; padding-top: 70px; font-size: 15px; }
.footer .grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.3fr; gap: 40px; }
.footer h6 { color: #fff; font-size: 17px; margin-bottom: 20px; position: relative; padding-bottom: 10px; }
.footer h6::after { content: ""; position: absolute; left: 0; bottom: 0; width: 36px; height: 3px; background: var(--orange); }
.footer li { margin-bottom: 10px; }
.footer a:hover { color: var(--orange); }
.footer .logo-text strong { color: #fff; }
.footer .logo-text small { color: #8ea1b6; }
.footer-about p { margin-top: 18px; }
.footer .contact-li { display: flex; gap: 10px; }
.footer .contact-li svg { flex: 0 0 16px; width: 16px; height: 16px; fill: var(--orange); margin-top: 5px; }
.socials { display: flex; gap: 10px; margin-top: 16px; }
.socials a { width: 38px; height: 38px; border-radius: 50%; background: rgba(255,255,255,.08); display: grid; place-items: center; transition: background .25s; }
.socials a:hover { background: var(--orange); }
.socials svg { width: 16px; height: 16px; fill: #fff; }
.copyright { border-top: 1px solid rgba(255,255,255,.08); margin-top: 50px; padding: 22px 0; text-align: center; font-size: 14px; }

/* ---------- Floating buttons & modals ---------- */
.float-btn {
  position: fixed; right: 0; top: 50%; z-index: 90; background: var(--orange); color: #fff;
  writing-mode: vertical-rl; transform: translateY(-50%) rotate(180deg);
  padding: 18px 11px; font-family: var(--font-head); font-weight: 600; letter-spacing: 2px;
  font-size: 13px; border: 0; cursor: pointer; border-radius: 0 8px 8px 0;
}
.float-btn:hover { background: var(--orange-dark); }
.back-top {
  position: fixed; right: 22px; bottom: 22px; z-index: 90; width: 46px; height: 46px; border-radius: 50%;
  background: var(--navy); border: 0; cursor: pointer; display: grid; place-items: center;
  opacity: 0; visibility: hidden; transition: .3s; box-shadow: var(--shadow);
}
.back-top.show { opacity: 1; visibility: visible; }
.back-top svg { width: 20px; height: 20px; fill: #fff; }

.modal { position: fixed; inset: 0; z-index: 200; display: none; align-items: center; justify-content: center; padding: 20px; background: rgba(8,28,51,.7); }
.modal.open { display: flex; }
.modal-box { background: #fff; border-radius: var(--radius); max-width: 560px; width: 100%; max-height: 92vh; overflow-y: auto; position: relative; padding: 36px; animation: pop .3s ease; }
@keyframes pop { from { transform: translateY(20px); opacity: 0; } to { transform: none; opacity: 1; } }
.modal-close { position: absolute; top: 12px; right: 14px; background: none; border: 0; font-size: 30px; line-height: 1; cursor: pointer; color: var(--muted); }
.modal-box h4 { text-align: center; letter-spacing: 1px; }
.modal-box .form-grid { grid-template-columns: 1fr; }

/* Certificate result */
.verify-result { margin-top: 20px; }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity .8s ease, transform .8s ease; }
.reveal.visible { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .courses { grid-template-columns: repeat(3, 1fr); }
  .footer .grid { grid-template-columns: 1fr 1fr; }
  .highlights .grid { grid-template-columns: repeat(3, 1fr); }
  .highlight:nth-child(3) { border-right: 0; }
  .highlight:nth-child(n+4) { border-top: 1px solid var(--line); }
}
@media (max-width: 900px) {
  .menu-toggle { display: block; }
  .nav {
    position: fixed; top: 80px; left: 0; right: 0; background: #fff; box-shadow: 0 10px 20px rgba(0,0,0,.08);
    max-height: 0; overflow: hidden; transition: max-height .35s ease;
  }
  .nav.open { max-height: 480px; }
  .nav ul { flex-direction: column; align-items: stretch; padding: 10px 20px 20px; gap: 0; }
  .nav a { padding: 14px 4px; border-bottom: 1px solid var(--line); }
  .nav a::after { display: none; }
  .nav .btn { margin: 14px 0 0; justify-content: center; }
  .split, .contact-wrap, .trade-detail { grid-template-columns: 1fr; gap: 36px; }
  .trade-detail:nth-child(even) .trade-media { order: 0; }
  .features, .process-cards, .cards-3 { grid-template-columns: 1fr; }
  .stats .grid { grid-template-columns: repeat(2, 1fr); row-gap: 36px; }
  .courses { grid-template-columns: repeat(2, 1fr); }
  .step-line { width: 40px; margin: 0 10px; }
  .section { padding: 70px 0; }
}
@media (max-width: 600px) {
  .topbar .container { justify-content: center; }
  .topbar .hide-sm { display: none; }
  .highlights .grid { grid-template-columns: repeat(2, 1fr); }
  .highlight { border-right: 1px solid var(--line) !important; border-top: 1px solid var(--line); }
  .highlight:nth-child(even) { border-right: 0 !important; }
  .highlight:last-child { grid-column: 1 / -1; border-right: 0 !important; }
  .courses, .form-grid, .footer .grid { grid-template-columns: 1fr; }
  .form-card, .modal-box { padding: 26px 20px; }
  .logo-text small { display: none; }
  .logo-text strong { font-size: 17px; }
  .process-steps { flex-direction: column; align-items: center; gap: 10px; }
  .step-line { width: 2px; height: 24px; background: var(--orange); margin: 0; }
  .split-media .badge { right: 10px; }
  .float-btn { display: none; }
}
