/* ============================================
   ITI COLLEGE — Main Stylesheet
   ============================================ */

:root {
  --ink: #111318;
  --slate: #3d434f;
  --muted: #6b7280;
  --line: #e6e8ec;
  --bg: #ffffff;
  --bg-soft: #f6f7f9;
  --accent: #f5a300;
  --accent-dark: #d98e00;
  --accent-soft: #fff4dd;
  --dark: #14161c;
  --dark-2: #1d2027;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(17, 19, 24, 0.08);
  --shadow-lg: 0 20px 50px rgba(17, 19, 24, 0.14);
  --font-head: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  /* clip (not hidden) so the off-canvas mobile nav can't widen the page
     while position: sticky on the header keeps working */
  overflow-x: clip;
  font-family: var(--font-body);
  color: var(--slate);
  background: var(--bg);
  line-height: 1.65;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3, h4 {
  font-family: var(--font-head);
  color: var(--ink);
  line-height: 1.15;
  font-weight: 800;
  letter-spacing: -0.01em;
}

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

.container {
  width: min(1160px, 92%);
  margin: 0 auto;
}

section { padding: 88px 0; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 30px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 15px;
  font-family: var(--font-head);
  letter-spacing: 0.02em;
  transition: all 0.25s ease;
  cursor: pointer;
  border: 2px solid transparent;
}

.btn-primary {
  background: var(--accent);
  color: var(--ink);
}
.btn-primary:hover {
  background: var(--accent-dark);
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(245, 163, 0, 0.35);
}

.btn-dark {
  background: var(--ink);
  color: #fff;
}
.btn-dark:hover {
  background: #000;
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn-outline {
  border-color: var(--ink);
  color: var(--ink);
  background: transparent;
}
.btn-outline:hover {
  background: var(--ink);
  color: #fff;
  transform: translateY(-2px);
}

.btn-light-outline {
  border-color: rgba(255, 255, 255, 0.4);
  color: #fff;
  background: transparent;
}
.btn-light-outline:hover {
  border-color: #fff;
  background: rgba(255, 255, 255, 0.1);
}

/* ---------- Top bar ---------- */
.topbar {
  background: var(--ink);
  color: rgba(255, 255, 255, 0.85);
  font-size: 13px;
  padding: 8px 0;
}
.topbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}
.topbar a { color: var(--accent); font-weight: 600; }
.topbar-contacts { display: flex; gap: 22px; flex-wrap: wrap; }

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow 0.3s ease;
}
.site-header.scrolled { box-shadow: var(--shadow); }

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
}
.brand img {
  width: 58px;
  height: 58px;
  object-fit: cover;
  border-radius: 10px;
}
.brand-text .brand-name {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 20px;
  color: var(--ink);
  letter-spacing: 0.04em;
  line-height: 1.1;
}
.brand-text .brand-tag {
  font-size: 11.5px;
  color: var(--muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.main-nav ul {
  display: flex;
  list-style: none;
  gap: 6px;
  align-items: center;
}
.main-nav a {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 14.5px;
  padding: 10px 16px;
  border-radius: 8px;
  color: var(--slate);
  transition: all 0.2s ease;
}
.main-nav a:hover { color: var(--ink); background: var(--bg-soft); }
.main-nav a.active { color: var(--ink); }
.main-nav a.active::after {
  content: "";
  display: block;
  height: 3px;
  border-radius: 3px;
  background: var(--accent);
  margin-top: 2px;
}
.main-nav .nav-cta {
  background: var(--accent);
  color: var(--ink);
  font-weight: 700;
  padding: 11px 22px;
  border-radius: 999px;
  margin-left: 10px;
}
.main-nav .nav-cta:hover { background: var(--accent-dark); }
.main-nav .nav-cta.active::after { display: none; }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span {
  display: block;
  width: 26px;
  height: 3px;
  background: var(--ink);
  margin: 5px 0;
  border-radius: 3px;
  transition: all 0.3s ease;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  background:
    radial-gradient(1000px 500px at 85% -10%, rgba(245, 163, 0, 0.16), transparent 60%),
    linear-gradient(160deg, var(--dark) 0%, var(--dark-2) 60%, #23262f 100%);
  color: #fff;
  padding: 110px 0 130px;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.035) 1px, transparent 1px);
  background-size: 56px 56px;
  pointer-events: none;
}
.hero .container {
  position: relative;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 60px;
  align-items: center;
}
.hero h1 {
  color: #fff;
  font-size: clamp(38px, 5vw, 60px);
  margin: 18px 0 20px;
}
.hero h1 .accent { color: var(--accent); }
.hero p.lead {
  font-size: 18px;
  color: rgba(255, 255, 255, 0.78);
  max-width: 540px;
  margin-bottom: 34px;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(245, 163, 0, 0.14);
  border: 1px solid rgba(245, 163, 0, 0.4);
  color: var(--accent);
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 8px 18px;
  border-radius: 999px;
}
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }

.hero-panel {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 20px;
  padding: 34px;
  backdrop-filter: blur(6px);
}
.hero-panel h3 {
  color: #fff;
  font-size: 17px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 20px;
}
.hero-panel h3 span { color: var(--accent); }
.hero-panel ul { list-style: none; }
.hero-panel li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 13px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.09);
  color: rgba(255, 255, 255, 0.85);
  font-size: 15px;
}
.hero-panel li:last-child { border-bottom: none; }
.hero-panel li .dur {
  color: var(--accent);
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 13px;
}
.hero-panel .panel-cta {
  margin-top: 22px;
  width: 100%;
  justify-content: center;
}

/* ---------- Stats strip ---------- */
.stats-strip {
  background: var(--accent);
  padding: 0;
}
.stats-strip .container {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  text-align: center;
}
.stat {
  padding: 34px 12px;
  border-right: 1px solid rgba(17, 19, 24, 0.12);
}
.stat:last-child { border-right: none; }
.stat .num {
  font-family: var(--font-head);
  font-size: 40px;
  font-weight: 800;
  color: var(--ink);
  line-height: 1;
}
.stat .label {
  font-size: 13.5px;
  font-weight: 600;
  color: rgba(17, 19, 24, 0.72);
  margin-top: 8px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* ---------- Section headers ---------- */
.section-head { max-width: 640px; margin-bottom: 52px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.kicker {
  font-family: var(--font-head);
  color: var(--accent-dark);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.kicker::before {
  content: "";
  width: 26px;
  height: 3px;
  background: var(--accent);
  border-radius: 3px;
}
.section-head.center .kicker::after {
  content: "";
  width: 26px;
  height: 3px;
  background: var(--accent);
  border-radius: 3px;
}
.section-head h2 {
  font-size: clamp(28px, 3.6vw, 40px);
  margin: 14px 0 14px;
}
.section-head p { color: var(--muted); font-size: 16.5px; }

/* ---------- Cards / grids ---------- */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; }

.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px;
  transition: all 0.3s ease;
}
.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}
.card .icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: var(--accent-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  margin-bottom: 20px;
}
.card h3 { font-size: 19px; margin-bottom: 10px; }
.card p { font-size: 15px; color: var(--muted); }

/* Trade / course cards */
.trade-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
}
.trade-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}
.trade-card .trade-top {
  background: var(--dark);
  color: #fff;
  padding: 24px 26px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.trade-card .trade-top .trade-icon { font-size: 30px; }
.trade-card .trade-top h3 { color: #fff; font-size: 19px; }
.trade-card .trade-body { padding: 24px 26px; flex: 1; display: flex; flex-direction: column; }
.trade-card .trade-body p { font-size: 14.5px; color: var(--muted); flex: 1; }
.trade-meta {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 18px;
}
.trade-meta span {
  font-family: var(--font-head);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.03em;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  padding: 6px 12px;
  border-radius: 999px;
  color: var(--slate);
}
.trade-meta span.hl { background: var(--accent-soft); border-color: #f2d9a0; color: var(--accent-dark); }

/* ---------- Alt sections ---------- */
.section-soft { background: var(--bg-soft); }
.section-dark {
  background:
    radial-gradient(800px 400px at 15% 110%, rgba(245, 163, 0, 0.12), transparent 60%),
    var(--dark);
  color: rgba(255, 255, 255, 0.8);
}
.section-dark h2, .section-dark h3 { color: #fff; }
.section-dark .section-head p { color: rgba(255, 255, 255, 0.65); }
.section-dark .card {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.1);
}
.section-dark .card p { color: rgba(255, 255, 255, 0.65); }
.section-dark .card .icon { background: rgba(245, 163, 0, 0.15); }

/* ---------- Split (about preview) ---------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.split-media {
  position: relative;
}
.split-media .media-frame {
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  background: linear-gradient(145deg, var(--dark), #2a2e38);
  aspect-ratio: 4 / 3.4;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
}
.split-media .media-frame img {
  width: 70%;
  border-radius: 16px;
}
.split-media .media-chip {
  position: absolute;
  bottom: -22px;
  right: -14px;
  background: var(--accent);
  color: var(--ink);
  font-family: var(--font-head);
  font-weight: 800;
  padding: 18px 26px;
  border-radius: 14px;
  box-shadow: var(--shadow-lg);
  font-size: 15px;
  line-height: 1.3;
  text-align: center;
}
.split-media .media-chip small {
  display: block;
  font-weight: 600;
  font-size: 11.5px;
  opacity: 0.75;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.checklist { list-style: none; margin: 26px 0 34px; }
.checklist li {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 9px 0;
  font-size: 15.5px;
}
.checklist li::before {
  content: "✓";
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent-dark);
  font-weight: 800;
  font-size: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 2px;
}

/* ---------- Steps (admission process) ---------- */
.steps { counter-reset: step; }
.step {
  position: relative;
  padding: 30px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: all 0.3s ease;
}
.step:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.step::before {
  counter-increment: step;
  content: "0" counter(step);
  font-family: var(--font-head);
  font-size: 44px;
  font-weight: 800;
  color: var(--accent);
  opacity: 0.9;
  line-height: 1;
  display: block;
  margin-bottom: 16px;
}
.step h3 { font-size: 18px; margin-bottom: 8px; }
.step p { font-size: 14.5px; color: var(--muted); }

/* ---------- Testimonials ---------- */
.quote-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.quote-card .stars { color: var(--accent); font-size: 15px; letter-spacing: 3px; }
.quote-card blockquote { font-size: 15px; color: var(--slate); font-style: italic; flex: 1; }
.quote-card .who { display: flex; align-items: center; gap: 14px; }
.quote-card .who .avatar {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--dark);
  color: var(--accent);
  font-family: var(--font-head);
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
}
.quote-card .who strong { display: block; color: var(--ink); font-size: 15px; }
.quote-card .who span { font-size: 13px; color: var(--muted); }

/* ---------- CTA band ---------- */
.cta-band {
  background:
    radial-gradient(700px 300px at 90% 0%, rgba(255, 255, 255, 0.12), transparent 60%),
    var(--accent);
  padding: 72px 0;
}
.cta-band .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  flex-wrap: wrap;
}
.cta-band h2 { font-size: clamp(26px, 3.2vw, 38px); color: var(--ink); }
.cta-band p { color: rgba(17, 19, 24, 0.75); margin-top: 8px; font-size: 16.5px; }

/* ---------- Tables ---------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); }
table { width: 100%; border-collapse: collapse; background: #fff; min-width: 640px; }
th, td { text-align: left; padding: 16px 20px; font-size: 14.5px; }
thead th {
  background: var(--dark);
  color: #fff;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
tbody tr { border-bottom: 1px solid var(--line); }
tbody tr:last-child { border-bottom: none; }
tbody tr:hover { background: var(--bg-soft); }
td strong { color: var(--ink); }

/* ---------- Forms ---------- */
.form-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 38px;
  box-shadow: var(--shadow);
}
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-grid .full { grid-column: 1 / -1; }
.field label {
  display: block;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 13.5px;
  color: var(--ink);
  margin-bottom: 7px;
}
.field input, .field select, .field textarea {
  width: 100%;
  padding: 13px 16px;
  border: 1.5px solid var(--line);
  border-radius: 10px;
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--ink);
  background: var(--bg-soft);
  transition: all 0.2s ease;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--accent);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(245, 163, 0, 0.15);
}
.field textarea { resize: vertical; min-height: 120px; }
.form-note { font-size: 13px; color: var(--muted); margin-top: 14px; }
.form-success {
  display: none;
  background: #ecfdf3;
  border: 1px solid #b7e4c7;
  color: #1e7a3f;
  padding: 14px 18px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 14.5px;
  margin-bottom: 18px;
}
.form-success.show { display: block; }

/* ---------- Contact info ---------- */
.info-tile {
  display: flex;
  gap: 18px;
  padding: 24px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.info-tile .icon {
  flex-shrink: 0;
  width: 50px;
  height: 50px;
  border-radius: 12px;
  background: var(--accent-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
}
.info-tile h3 { font-size: 16px; margin-bottom: 4px; }
.info-tile p { font-size: 14.5px; color: var(--muted); }

.map-placeholder {
  border-radius: 18px;
  border: 2px dashed var(--line);
  background:
    repeating-linear-gradient(45deg, var(--bg-soft) 0 14px, #fff 14px 28px);
  min-height: 320px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  font-family: var(--font-head);
  font-weight: 600;
  text-align: center;
  padding: 24px;
}

/* ---------- Page hero (inner pages) ---------- */
.page-hero {
  background:
    radial-gradient(800px 360px at 85% -20%, rgba(245, 163, 0, 0.18), transparent 60%),
    var(--dark);
  color: #fff;
  padding: 76px 0;
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.035) 1px, transparent 1px);
  background-size: 56px 56px;
}
.page-hero .container { position: relative; }
.page-hero .crumb {
  font-family: var(--font-head);
  font-size: 13px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 700;
}
.page-hero h1 { color: #fff; font-size: clamp(32px, 4.4vw, 50px); margin-top: 12px; }
.page-hero p { color: rgba(255, 255, 255, 0.72); max-width: 620px; margin-top: 14px; font-size: 17px; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--dark);
  color: rgba(255, 255, 255, 0.68);
  padding: 70px 0 0;
  font-size: 14.5px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 44px;
  padding-bottom: 50px;
}
.site-footer .brand img {
  filter: invert(1);
  mix-blend-mode: screen;
}
.site-footer .brand .brand-name { color: #fff; }
.site-footer .brand .brand-tag { color: rgba(255, 255, 255, 0.5); }
.site-footer h4 {
  color: #fff;
  font-size: 15px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 20px;
}
.site-footer ul { list-style: none; }
.site-footer li { margin-bottom: 11px; }
.site-footer a { transition: color 0.2s ease; }
.site-footer a:hover { color: var(--accent); }
.footer-about p { margin-top: 18px; max-width: 320px; }
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 22px 0;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 13.5px;
  color: rgba(255, 255, 255, 0.45);
}

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

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .hero .container { grid-template-columns: 1fr; gap: 44px; }
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .split { grid-template-columns: 1fr; gap: 48px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .stats-strip .container { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(2) { border-right: none; }
  .stat:nth-child(1), .stat:nth-child(2) { border-bottom: 1px solid rgba(17, 19, 24, 0.12); }
}

@media (max-width: 720px) {
  section { padding: 64px 0; }
  .grid-3, .grid-4, .grid-2, .form-grid { grid-template-columns: 1fr; }
  .form-grid .full { grid-column: auto; }
  .topbar { display: none; }

  .nav-toggle { display: block; }
  .main-nav {
    position: fixed;
    top: 0;
    right: -300px;
    width: 280px;
    height: 100vh;
    background: #fff;
    box-shadow: -12px 0 40px rgba(0, 0, 0, 0.15);
    padding: 90px 28px 28px;
    transition: right 0.35s ease;
    z-index: 99;
  }
  .main-nav.open { right: 0; }
  .main-nav ul { flex-direction: column; align-items: stretch; gap: 4px; }
  .main-nav a { display: block; padding: 13px 16px; font-size: 16px; }
  .main-nav .nav-cta { margin: 14px 0 0; text-align: center; }

  .stats-strip .container { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 34px; }
  .cta-band .container { flex-direction: column; text-align: center; }
}
